x-prop-tree 0.6.6 → 0.6.8
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/components/propTree/components/values/numInput.vue.d.ts +3 -3
- package/dist/components/propTree/components/values/select.vue.d.ts +3 -3
- package/dist/components/propTree/components/values/strInput.vue.d.ts +3 -3
- package/dist/components/propTree/components/values/switch.vue.d.ts +3 -3
- package/dist/components/propTree/composables/common.d.ts +1 -1
- package/dist/index.js +373 -380
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { provide as Me, inject as Ue, defineComponent as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { provide as Me, inject as Ue, defineComponent as q, ref as k, computed as G, resolveComponent as O, createBlock as R, openBlock as S, unref as E, isRef as Fe, withCtx as J, createVNode as B, createElementBlock as F, Fragment as He, renderList as Ht, createTextVNode as st, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as z, normalizeStyle as ie, createElementVNode as K, createCommentVNode as I, renderSlot as Un, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as qt, withKeys as Vn, mergeProps as zt, watchEffect as mt, watch as ke, reactive as Ln, onMounted as Dn, onBeforeUnmount as jn } from "vue";
|
|
2
|
+
import { useI18n as ue } from "vue-i18n";
|
|
3
3
|
import { useViewStack as at, useColor as Te, eventBus as _e, useSystem as En } from "x-essential-lib";
|
|
4
|
-
import { getPropDefault as N, parsePixelStr as Nn, parsePercentStr as
|
|
5
|
-
import { useDisplay as
|
|
4
|
+
import { getPropDefault as N, parsePixelStr as Nn, parsePercentStr as Bn } from "x-runtime-lib";
|
|
5
|
+
import { useDisplay as kn } from "vuetify";
|
|
6
6
|
import { globalState as Rn } from "x-state-lib";
|
|
7
|
-
var
|
|
8
|
-
function
|
|
7
|
+
var Kt = typeof global == "object" && global && global.Object === Object && global, Fn = typeof self == "object" && self && self.Object === Object && self, Y = Kt || Fn || Function("return this")(), se = Y.Symbol, It = Object.prototype, Hn = It.hasOwnProperty, Gn = It.toString, we = se ? se.toStringTag : void 0;
|
|
8
|
+
function qn(e) {
|
|
9
9
|
var t = Hn.call(e, we), n = e[we];
|
|
10
10
|
try {
|
|
11
11
|
e[we] = void 0;
|
|
@@ -15,30 +15,30 @@ function zn(e) {
|
|
|
15
15
|
var l = Gn.call(e);
|
|
16
16
|
return r && (t ? e[we] = n : delete e[we]), l;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var zn = Object.prototype, Kn = zn.toString;
|
|
19
19
|
function In(e) {
|
|
20
|
-
return
|
|
20
|
+
return Kn.call(e);
|
|
21
21
|
}
|
|
22
|
-
var Xn = "[object Null]", Zn = "[object Undefined]", gt =
|
|
22
|
+
var Xn = "[object Null]", Zn = "[object Undefined]", gt = se ? se.toStringTag : void 0;
|
|
23
23
|
function Ve(e) {
|
|
24
|
-
return e == null ? e === void 0 ? Zn : Xn : gt && gt in Object(e) ?
|
|
24
|
+
return e == null ? e === void 0 ? Zn : Xn : gt && gt in Object(e) ? qn(e) : In(e);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function de(e) {
|
|
27
27
|
return e != null && typeof e == "object";
|
|
28
28
|
}
|
|
29
29
|
var Pe = Array.isArray;
|
|
30
|
-
function
|
|
30
|
+
function Ke(e) {
|
|
31
31
|
var t = typeof e;
|
|
32
32
|
return e != null && (t == "object" || t == "function");
|
|
33
33
|
}
|
|
34
34
|
var Jn = "[object AsyncFunction]", Wn = "[object Function]", Yn = "[object GeneratorFunction]", Qn = "[object Proxy]";
|
|
35
35
|
function Xt(e) {
|
|
36
|
-
if (!
|
|
36
|
+
if (!Ke(e))
|
|
37
37
|
return !1;
|
|
38
38
|
var t = Ve(e);
|
|
39
39
|
return t == Wn || t == Yn || t == Jn || t == Qn;
|
|
40
40
|
}
|
|
41
|
-
var Ye =
|
|
41
|
+
var Ye = Y["__core-js_shared__"], yt = function() {
|
|
42
42
|
var e = /[^.]+$/.exec(Ye && Ye.keys && Ye.keys.IE_PROTO || "");
|
|
43
43
|
return e ? "Symbol(src)_1." + e : "";
|
|
44
44
|
}();
|
|
@@ -46,7 +46,7 @@ function er(e) {
|
|
|
46
46
|
return !!yt && yt in e;
|
|
47
47
|
}
|
|
48
48
|
var tr = Function.prototype, nr = tr.toString;
|
|
49
|
-
function
|
|
49
|
+
function ve(e) {
|
|
50
50
|
if (e != null) {
|
|
51
51
|
try {
|
|
52
52
|
return nr.call(e);
|
|
@@ -63,23 +63,23 @@ var rr = /[\\^$.*+?()[\]{}|]/g, or = /^\[object .+?Constructor\]$/, lr = Functio
|
|
|
63
63
|
"^" + sr.call(ar).replace(rr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
64
64
|
);
|
|
65
65
|
function cr(e) {
|
|
66
|
-
if (!
|
|
66
|
+
if (!Ke(e) || er(e))
|
|
67
67
|
return !1;
|
|
68
68
|
var t = Xt(e) ? ur : or;
|
|
69
|
-
return t.test(
|
|
69
|
+
return t.test(ve(e));
|
|
70
70
|
}
|
|
71
71
|
function fr(e, t) {
|
|
72
72
|
return e == null ? void 0 : e[t];
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function me(e, t) {
|
|
75
75
|
var n = fr(e, t);
|
|
76
76
|
return cr(n) ? n : void 0;
|
|
77
77
|
}
|
|
78
|
-
var nt =
|
|
78
|
+
var nt = me(Y, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
|
|
79
79
|
function e() {
|
|
80
80
|
}
|
|
81
81
|
return function(t) {
|
|
82
|
-
if (!
|
|
82
|
+
if (!Ke(t))
|
|
83
83
|
return {};
|
|
84
84
|
if (ht)
|
|
85
85
|
return ht(t);
|
|
@@ -89,7 +89,7 @@ var nt = ve(Q, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
|
|
|
89
89
|
};
|
|
90
90
|
}(), _t = function() {
|
|
91
91
|
try {
|
|
92
|
-
var e =
|
|
92
|
+
var e = me(Object, "defineProperty");
|
|
93
93
|
return e({}, "", {}), e;
|
|
94
94
|
} catch {
|
|
95
95
|
}
|
|
@@ -139,28 +139,28 @@ function wr(e, t) {
|
|
|
139
139
|
}
|
|
140
140
|
var Ar = "[object Arguments]";
|
|
141
141
|
function bt(e) {
|
|
142
|
-
return
|
|
142
|
+
return de(e) && Ve(e) == Ar;
|
|
143
143
|
}
|
|
144
144
|
var Wt = Object.prototype, Cr = Wt.hasOwnProperty, Pr = Wt.propertyIsEnumerable, Or = bt(/* @__PURE__ */ function() {
|
|
145
145
|
return arguments;
|
|
146
146
|
}()) ? bt : function(e) {
|
|
147
|
-
return
|
|
147
|
+
return de(e) && Cr.call(e, "callee") && !Pr.call(e, "callee");
|
|
148
148
|
};
|
|
149
149
|
function xr() {
|
|
150
150
|
return !1;
|
|
151
151
|
}
|
|
152
|
-
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Yt && typeof module == "object" && module && !module.nodeType && module, Mr = $t && $t.exports === Yt, Tt = Mr ?
|
|
152
|
+
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Yt && typeof module == "object" && module && !module.nodeType && module, Mr = $t && $t.exports === Yt, Tt = Mr ? Y.Buffer : void 0, Ur = Tt ? Tt.isBuffer : void 0, Ge = Ur || xr, Vr = "[object Arguments]", Lr = "[object Array]", Dr = "[object Boolean]", jr = "[object Date]", Er = "[object Error]", Nr = "[object Function]", Br = "[object Map]", kr = "[object Number]", Rr = "[object Object]", Fr = "[object RegExp]", Hr = "[object Set]", Gr = "[object String]", qr = "[object WeakMap]", zr = "[object ArrayBuffer]", Kr = "[object DataView]", Ir = "[object Float32Array]", Xr = "[object Float64Array]", Zr = "[object Int8Array]", Jr = "[object Int16Array]", Wr = "[object Int32Array]", Yr = "[object Uint8Array]", Qr = "[object Uint8ClampedArray]", eo = "[object Uint16Array]", to = "[object Uint32Array]", x = {};
|
|
153
153
|
x[Ir] = x[Xr] = x[Zr] = x[Jr] = x[Wr] = x[Yr] = x[Qr] = x[eo] = x[to] = !0;
|
|
154
|
-
x[Vr] = x[Lr] = x[
|
|
154
|
+
x[Vr] = x[Lr] = x[zr] = x[Dr] = x[Kr] = x[jr] = x[Er] = x[Nr] = x[Br] = x[kr] = x[Rr] = x[Fr] = x[Hr] = x[Gr] = x[qr] = !1;
|
|
155
155
|
function no(e) {
|
|
156
|
-
return
|
|
156
|
+
return de(e) && Zt(e.length) && !!x[Ve(e)];
|
|
157
157
|
}
|
|
158
158
|
function ct(e) {
|
|
159
159
|
return function(t) {
|
|
160
160
|
return e(t);
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = Qt && typeof module == "object" && module && !module.nodeType && module, ro = Ce && Ce.exports === Qt, Qe = ro &&
|
|
163
|
+
var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = Qt && typeof module == "object" && module && !module.nodeType && module, ro = Ce && Ce.exports === Qt, Qe = ro && Kt.process, $e = function() {
|
|
164
164
|
try {
|
|
165
165
|
var e = Ce && Ce.require && Ce.require("util").types;
|
|
166
166
|
return e || Qe && Qe.binding && Qe.binding("util");
|
|
@@ -194,7 +194,7 @@ function co(e) {
|
|
|
194
194
|
function fo(e) {
|
|
195
195
|
return Tr(e) ? io(e) : co(e);
|
|
196
196
|
}
|
|
197
|
-
var Oe =
|
|
197
|
+
var Oe = me(Object, "create");
|
|
198
198
|
function po() {
|
|
199
199
|
this.__data__ = Oe ? Oe(null) : {}, this.size = 0;
|
|
200
200
|
}
|
|
@@ -221,18 +221,18 @@ function So(e, t) {
|
|
|
221
221
|
var n = this.__data__;
|
|
222
222
|
return this.size += this.has(e) ? 0 : 1, n[e] = Oe && t === void 0 ? To : t, this;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function pe(e) {
|
|
225
225
|
var t = -1, n = e == null ? 0 : e.length;
|
|
226
226
|
for (this.clear(); ++t < n; ) {
|
|
227
227
|
var r = e[t];
|
|
228
228
|
this.set(r[0], r[1]);
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
231
|
+
pe.prototype.clear = po;
|
|
232
|
+
pe.prototype.delete = vo;
|
|
233
|
+
pe.prototype.get = ho;
|
|
234
|
+
pe.prototype.has = $o;
|
|
235
|
+
pe.prototype.set = So;
|
|
236
236
|
function wo() {
|
|
237
237
|
this.__data__ = [], this.size = 0;
|
|
238
238
|
}
|
|
@@ -261,24 +261,24 @@ function Mo(e, t) {
|
|
|
261
261
|
var n = this.__data__, r = Ie(n, e);
|
|
262
262
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function le(e) {
|
|
265
265
|
var t = -1, n = e == null ? 0 : e.length;
|
|
266
266
|
for (this.clear(); ++t < n; ) {
|
|
267
267
|
var r = e[t];
|
|
268
268
|
this.set(r[0], r[1]);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
var xe =
|
|
271
|
+
le.prototype.clear = wo;
|
|
272
|
+
le.prototype.delete = Po;
|
|
273
|
+
le.prototype.get = Oo;
|
|
274
|
+
le.prototype.has = xo;
|
|
275
|
+
le.prototype.set = Mo;
|
|
276
|
+
var xe = me(Y, "Map");
|
|
277
277
|
function Uo() {
|
|
278
278
|
this.size = 0, this.__data__ = {
|
|
279
|
-
hash: new
|
|
280
|
-
map: new (xe ||
|
|
281
|
-
string: new
|
|
279
|
+
hash: new pe(),
|
|
280
|
+
map: new (xe || le)(),
|
|
281
|
+
string: new pe()
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
function Vo(e) {
|
|
@@ -303,26 +303,26 @@ function Eo(e, t) {
|
|
|
303
303
|
var n = Xe(this, e), r = n.size;
|
|
304
304
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function ge(e) {
|
|
307
307
|
var t = -1, n = e == null ? 0 : e.length;
|
|
308
308
|
for (this.clear(); ++t < n; ) {
|
|
309
309
|
var r = e[t];
|
|
310
310
|
this.set(r[0], r[1]);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
313
|
+
ge.prototype.clear = Uo;
|
|
314
|
+
ge.prototype.delete = Lo;
|
|
315
|
+
ge.prototype.get = Do;
|
|
316
|
+
ge.prototype.has = jo;
|
|
317
|
+
ge.prototype.set = Eo;
|
|
318
318
|
function No(e, t) {
|
|
319
319
|
for (var n = -1, r = t.length, l = e.length; ++n < r; )
|
|
320
320
|
e[l + n] = t[n];
|
|
321
321
|
return e;
|
|
322
322
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
325
|
-
this.__data__ = new
|
|
323
|
+
var Bo = tn(Object.getPrototypeOf, Object);
|
|
324
|
+
function ko() {
|
|
325
|
+
this.__data__ = new le(), this.size = 0;
|
|
326
326
|
}
|
|
327
327
|
function Ro(e) {
|
|
328
328
|
var t = this.__data__, n = t.delete(e);
|
|
@@ -335,28 +335,28 @@ function Ho(e) {
|
|
|
335
335
|
return this.__data__.has(e);
|
|
336
336
|
}
|
|
337
337
|
var Go = 200;
|
|
338
|
-
function
|
|
338
|
+
function qo(e, t) {
|
|
339
339
|
var n = this.__data__;
|
|
340
|
-
if (n instanceof
|
|
340
|
+
if (n instanceof le) {
|
|
341
341
|
var r = n.__data__;
|
|
342
342
|
if (!xe || r.length < Go - 1)
|
|
343
343
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
344
|
-
n = this.__data__ = new
|
|
344
|
+
n = this.__data__ = new ge(r);
|
|
345
345
|
}
|
|
346
346
|
return n.set(e, t), this.size = n.size, this;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
var t = this.__data__ = new
|
|
348
|
+
function te(e) {
|
|
349
|
+
var t = this.__data__ = new le(e);
|
|
350
350
|
this.size = t.size;
|
|
351
351
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
var nn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = nn && typeof module == "object" && module && !module.nodeType && module,
|
|
352
|
+
te.prototype.clear = ko;
|
|
353
|
+
te.prototype.delete = Ro;
|
|
354
|
+
te.prototype.get = Fo;
|
|
355
|
+
te.prototype.has = Ho;
|
|
356
|
+
te.prototype.set = qo;
|
|
357
|
+
var nn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = nn && typeof module == "object" && module && !module.nodeType && module, zo = wt && wt.exports === nn, At = zo ? Y.Buffer : void 0;
|
|
358
358
|
At && At.allocUnsafe;
|
|
359
|
-
function
|
|
359
|
+
function Ko(e, t) {
|
|
360
360
|
return e.slice();
|
|
361
361
|
}
|
|
362
362
|
function Io(e, t) {
|
|
@@ -381,9 +381,9 @@ function Yo(e, t, n) {
|
|
|
381
381
|
function rt(e) {
|
|
382
382
|
return Yo(e, fo, Wo);
|
|
383
383
|
}
|
|
384
|
-
var ot =
|
|
384
|
+
var ot = me(Y, "DataView"), lt = me(Y, "Promise"), it = me(Y, "Set"), Pt = "[object Map]", Qo = "[object Object]", Ot = "[object Promise]", xt = "[object Set]", Mt = "[object WeakMap]", Ut = "[object DataView]", el = ve(ot), tl = ve(xe), nl = ve(lt), rl = ve(it), ol = ve(nt), Z = Ve;
|
|
385
385
|
(ot && Z(new ot(new ArrayBuffer(1))) != Ut || xe && Z(new xe()) != Pt || lt && Z(lt.resolve()) != Ot || it && Z(new it()) != xt || nt && Z(new nt()) != Mt) && (Z = function(e) {
|
|
386
|
-
var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ?
|
|
386
|
+
var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ? ve(n) : "";
|
|
387
387
|
if (r)
|
|
388
388
|
switch (r) {
|
|
389
389
|
case el:
|
|
@@ -404,10 +404,10 @@ function sl(e) {
|
|
|
404
404
|
var t = e.length, n = new e.constructor(t);
|
|
405
405
|
return t && typeof e[0] == "string" && il.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
406
406
|
}
|
|
407
|
-
var
|
|
407
|
+
var qe = Y.Uint8Array;
|
|
408
408
|
function ft(e) {
|
|
409
409
|
var t = new e.constructor(e.byteLength);
|
|
410
|
-
return new
|
|
410
|
+
return new qe(t).set(new qe(e)), t;
|
|
411
411
|
}
|
|
412
412
|
function al(e, t) {
|
|
413
413
|
var n = ft(e.buffer);
|
|
@@ -418,7 +418,7 @@ function cl(e) {
|
|
|
418
418
|
var t = new e.constructor(e.source, ul.exec(e));
|
|
419
419
|
return t.lastIndex = e.lastIndex, t;
|
|
420
420
|
}
|
|
421
|
-
var Vt =
|
|
421
|
+
var Vt = se ? se.prototype : void 0, Lt = Vt ? Vt.valueOf : void 0;
|
|
422
422
|
function fl(e) {
|
|
423
423
|
return Lt ? Object(Lt.call(e)) : {};
|
|
424
424
|
}
|
|
@@ -461,32 +461,32 @@ function Vl(e, t, n) {
|
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function Ll(e) {
|
|
464
|
-
return typeof e.constructor == "function" && !Jt(e) ? dr(
|
|
464
|
+
return typeof e.constructor == "function" && !Jt(e) ? dr(Bo(e)) : {};
|
|
465
465
|
}
|
|
466
466
|
var Dl = "[object Map]";
|
|
467
467
|
function jl(e) {
|
|
468
|
-
return
|
|
468
|
+
return de(e) && Z(e) == Dl;
|
|
469
469
|
}
|
|
470
470
|
var Dt = $e && $e.isMap, El = Dt ? ct(Dt) : jl, Nl = "[object Set]";
|
|
471
|
-
function
|
|
472
|
-
return
|
|
471
|
+
function Bl(e) {
|
|
472
|
+
return de(e) && Z(e) == Nl;
|
|
473
473
|
}
|
|
474
|
-
var jt = $e && $e.isSet,
|
|
475
|
-
P[rn] = P[Rl] = P[Yl] = P[Ql] = P[Fl] = P[Hl] = P[ei] = P[ti] = P[ni] = P[ri] = P[oi] = P[
|
|
474
|
+
var jt = $e && $e.isSet, kl = jt ? ct(jt) : Bl, rn = "[object Arguments]", Rl = "[object Array]", Fl = "[object Boolean]", Hl = "[object Date]", Gl = "[object Error]", on = "[object Function]", ql = "[object GeneratorFunction]", zl = "[object Map]", Kl = "[object Number]", ln = "[object Object]", Il = "[object RegExp]", Xl = "[object Set]", Zl = "[object String]", Jl = "[object Symbol]", Wl = "[object WeakMap]", Yl = "[object ArrayBuffer]", Ql = "[object DataView]", ei = "[object Float32Array]", ti = "[object Float64Array]", ni = "[object Int8Array]", ri = "[object Int16Array]", oi = "[object Int32Array]", li = "[object Uint8Array]", ii = "[object Uint8ClampedArray]", si = "[object Uint16Array]", ai = "[object Uint32Array]", P = {};
|
|
475
|
+
P[rn] = P[Rl] = P[Yl] = P[Ql] = P[Fl] = P[Hl] = P[ei] = P[ti] = P[ni] = P[ri] = P[oi] = P[zl] = P[Kl] = P[ln] = P[Il] = P[Xl] = P[Zl] = P[Jl] = P[li] = P[ii] = P[si] = P[ai] = !0;
|
|
476
476
|
P[Gl] = P[on] = P[Wl] = !1;
|
|
477
477
|
function Re(e, t, n, r, l, o) {
|
|
478
478
|
var i;
|
|
479
479
|
if (i !== void 0)
|
|
480
480
|
return i;
|
|
481
|
-
if (!
|
|
481
|
+
if (!Ke(e))
|
|
482
482
|
return e;
|
|
483
483
|
var s = Pe(e);
|
|
484
484
|
if (s)
|
|
485
485
|
i = sl(e);
|
|
486
486
|
else {
|
|
487
|
-
var u = Z(e), a = u == on || u ==
|
|
487
|
+
var u = Z(e), a = u == on || u == ql;
|
|
488
488
|
if (Ge(e))
|
|
489
|
-
return
|
|
489
|
+
return Ko(e);
|
|
490
490
|
if (u == ln || u == rn || a && !l)
|
|
491
491
|
i = a ? {} : Ll(e);
|
|
492
492
|
else {
|
|
@@ -495,16 +495,16 @@ function Re(e, t, n, r, l, o) {
|
|
|
495
495
|
i = Vl(e, u);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
o || (o = new
|
|
498
|
+
o || (o = new te());
|
|
499
499
|
var d = o.get(e);
|
|
500
500
|
if (d)
|
|
501
501
|
return d;
|
|
502
|
-
o.set(e, i),
|
|
502
|
+
o.set(e, i), kl(e) ? e.forEach(function(y) {
|
|
503
503
|
i.add(Re(y, t, n, y, e, o));
|
|
504
504
|
}) : El(e) && e.forEach(function(y, h) {
|
|
505
505
|
i.set(h, Re(y, t, n, h, e, o));
|
|
506
506
|
});
|
|
507
|
-
var
|
|
507
|
+
var f = rt, g = s ? void 0 : f(e);
|
|
508
508
|
return pr(g || e, function(y, h) {
|
|
509
509
|
g && (h = y, y = e[h]), br(i, h, Re(y, t, n, h, e, o));
|
|
510
510
|
}), i;
|
|
@@ -520,13 +520,13 @@ function di(e) {
|
|
|
520
520
|
function pi(e) {
|
|
521
521
|
return this.__data__.has(e);
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function ze(e) {
|
|
524
524
|
var t = -1, n = e == null ? 0 : e.length;
|
|
525
|
-
for (this.__data__ = new
|
|
525
|
+
for (this.__data__ = new ge(); ++t < n; )
|
|
526
526
|
this.add(e[t]);
|
|
527
527
|
}
|
|
528
|
-
|
|
529
|
-
|
|
528
|
+
ze.prototype.add = ze.prototype.push = di;
|
|
529
|
+
ze.prototype.has = pi;
|
|
530
530
|
function vi(e, t) {
|
|
531
531
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
532
532
|
if (t(e[n], n, e))
|
|
@@ -544,11 +544,11 @@ function an(e, t, n, r, l, o) {
|
|
|
544
544
|
var a = o.get(e), d = o.get(t);
|
|
545
545
|
if (a && d)
|
|
546
546
|
return a == t && d == e;
|
|
547
|
-
var
|
|
548
|
-
for (o.set(e, t), o.set(t, e); ++
|
|
549
|
-
var h = e[
|
|
547
|
+
var f = -1, g = !0, y = n & yi ? new ze() : void 0;
|
|
548
|
+
for (o.set(e, t), o.set(t, e); ++f < s; ) {
|
|
549
|
+
var h = e[f], M = t[f];
|
|
550
550
|
if (r)
|
|
551
|
-
var b = i ? r(M, h,
|
|
551
|
+
var b = i ? r(M, h, f, t, e, o) : r(h, M, f, e, t, o);
|
|
552
552
|
if (b !== void 0) {
|
|
553
553
|
if (b)
|
|
554
554
|
continue;
|
|
@@ -582,7 +582,7 @@ function _i(e) {
|
|
|
582
582
|
n[++t] = r;
|
|
583
583
|
}), n;
|
|
584
584
|
}
|
|
585
|
-
var bi = 1, $i = 2, Ti = "[object Boolean]", Si = "[object Date]", wi = "[object Error]", Ai = "[object Map]", Ci = "[object Number]", Pi = "[object RegExp]", Oi = "[object Set]", xi = "[object String]", Mi = "[object Symbol]", Ui = "[object ArrayBuffer]", Vi = "[object DataView]", Et =
|
|
585
|
+
var bi = 1, $i = 2, Ti = "[object Boolean]", Si = "[object Date]", wi = "[object Error]", Ai = "[object Map]", Ci = "[object Number]", Pi = "[object RegExp]", Oi = "[object Set]", xi = "[object String]", Mi = "[object Symbol]", Ui = "[object ArrayBuffer]", Vi = "[object DataView]", Et = se ? se.prototype : void 0, et = Et ? Et.valueOf : void 0;
|
|
586
586
|
function Li(e, t, n, r, l, o, i) {
|
|
587
587
|
switch (n) {
|
|
588
588
|
case Vi:
|
|
@@ -590,7 +590,7 @@ function Li(e, t, n, r, l, o, i) {
|
|
|
590
590
|
return !1;
|
|
591
591
|
e = e.buffer, t = t.buffer;
|
|
592
592
|
case Ui:
|
|
593
|
-
return !(e.byteLength != t.byteLength || !o(new
|
|
593
|
+
return !(e.byteLength != t.byteLength || !o(new qe(e), new qe(t)));
|
|
594
594
|
case Ti:
|
|
595
595
|
case Si:
|
|
596
596
|
case Ci:
|
|
@@ -623,8 +623,8 @@ function Ni(e, t, n, r, l, o) {
|
|
|
623
623
|
var i = n & Di, s = rt(e), u = s.length, a = rt(t), d = a.length;
|
|
624
624
|
if (u != d && !i)
|
|
625
625
|
return !1;
|
|
626
|
-
for (var
|
|
627
|
-
var g = s[
|
|
626
|
+
for (var f = u; f--; ) {
|
|
627
|
+
var g = s[f];
|
|
628
628
|
if (!(i ? g in t : Ei.call(t, g)))
|
|
629
629
|
return !1;
|
|
630
630
|
}
|
|
@@ -633,8 +633,8 @@ function Ni(e, t, n, r, l, o) {
|
|
|
633
633
|
return y == t && h == e;
|
|
634
634
|
var M = !0;
|
|
635
635
|
o.set(e, t), o.set(t, e);
|
|
636
|
-
for (var b = i; ++
|
|
637
|
-
g = s[
|
|
636
|
+
for (var b = i; ++f < u; ) {
|
|
637
|
+
g = s[f];
|
|
638
638
|
var D = e[g], w = t[g];
|
|
639
639
|
if (r)
|
|
640
640
|
var U = i ? r(w, D, g, t, e, o) : r(D, w, g, e, t, o);
|
|
@@ -650,29 +650,29 @@ function Ni(e, t, n, r, l, o) {
|
|
|
650
650
|
}
|
|
651
651
|
return o.delete(e), o.delete(t), M;
|
|
652
652
|
}
|
|
653
|
-
var
|
|
653
|
+
var Bi = 1, Nt = "[object Arguments]", Bt = "[object Array]", Ee = "[object Object]", ki = Object.prototype, kt = ki.hasOwnProperty;
|
|
654
654
|
function Ri(e, t, n, r, l, o) {
|
|
655
|
-
var i = Pe(e), s = Pe(t), u = i ?
|
|
655
|
+
var i = Pe(e), s = Pe(t), u = i ? Bt : Z(e), a = s ? Bt : Z(t);
|
|
656
656
|
u = u == Nt ? Ee : u, a = a == Nt ? Ee : a;
|
|
657
|
-
var d = u == Ee,
|
|
657
|
+
var d = u == Ee, f = a == Ee, g = u == a;
|
|
658
658
|
if (g && Ge(e)) {
|
|
659
659
|
if (!Ge(t))
|
|
660
660
|
return !1;
|
|
661
661
|
i = !0, d = !1;
|
|
662
662
|
}
|
|
663
663
|
if (g && !d)
|
|
664
|
-
return o || (o = new
|
|
665
|
-
if (!(n &
|
|
666
|
-
var y = d &&
|
|
664
|
+
return o || (o = new te()), i || en(e) ? an(e, t, n, r, l, o) : Li(e, t, u, n, r, l, o);
|
|
665
|
+
if (!(n & Bi)) {
|
|
666
|
+
var y = d && kt.call(e, "__wrapped__"), h = f && kt.call(t, "__wrapped__");
|
|
667
667
|
if (y || h) {
|
|
668
668
|
var M = y ? e.value() : e, b = h ? t.value() : t;
|
|
669
|
-
return o || (o = new
|
|
669
|
+
return o || (o = new te()), l(M, b, n, r, o);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
return g ? (o || (o = new
|
|
672
|
+
return g ? (o || (o = new te()), Ni(e, t, n, r, l, o)) : !1;
|
|
673
673
|
}
|
|
674
674
|
function un(e, t, n, r, l) {
|
|
675
|
-
return e === t ? !0 : e == null || t == null || !
|
|
675
|
+
return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : Ri(e, t, n, r, un, l);
|
|
676
676
|
}
|
|
677
677
|
function Ze(e, t) {
|
|
678
678
|
return un(e, t);
|
|
@@ -750,10 +750,10 @@ const Ne = (e, t) => {
|
|
|
750
750
|
return !0;
|
|
751
751
|
};
|
|
752
752
|
return n(e, t);
|
|
753
|
-
}, dt = (e) => !(e instanceof Array), pt = (e) => e instanceof Array,
|
|
753
|
+
}, dt = (e) => !(e instanceof Array), pt = (e) => e instanceof Array, qi = [
|
|
754
754
|
["basic", "id"],
|
|
755
755
|
["basic", "name"]
|
|
756
|
-
],
|
|
756
|
+
], zi = (e) => qi.find((t) => Ze(e, t)), Je = (e, t, n, r, l, o, i) => (e = sn(e), o !== void 0 ? (e.push(o), i && e.push(t.key)) : e.push(t.key), zi(e) ? (r.change = !1, r.change) : t.ui ? t.array && o === void 0 ? Xi(
|
|
757
757
|
e,
|
|
758
758
|
t,
|
|
759
759
|
n,
|
|
@@ -761,7 +761,7 @@ const Ne = (e, t) => {
|
|
|
761
761
|
l,
|
|
762
762
|
o,
|
|
763
763
|
i
|
|
764
|
-
) : Zi(t, n, r, o, i) : t.array ?
|
|
764
|
+
) : Zi(t, n, r, o, i) : t.array ? Ki(
|
|
765
765
|
e,
|
|
766
766
|
t,
|
|
767
767
|
n,
|
|
@@ -777,7 +777,7 @@ const Ne = (e, t) => {
|
|
|
777
777
|
l,
|
|
778
778
|
o,
|
|
779
779
|
i
|
|
780
|
-
)),
|
|
780
|
+
)), Ki = (e, t, n, r, l, o, i) => {
|
|
781
781
|
if (t.ui)
|
|
782
782
|
return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
|
|
783
783
|
if (!t.array)
|
|
@@ -899,10 +899,10 @@ function os(e) {
|
|
|
899
899
|
function gn() {
|
|
900
900
|
return Ue(mn);
|
|
901
901
|
}
|
|
902
|
-
const ls = /* @__PURE__ */
|
|
902
|
+
const ls = /* @__PURE__ */ q({
|
|
903
903
|
__name: "menu",
|
|
904
904
|
setup(e) {
|
|
905
|
-
const { t } =
|
|
905
|
+
const { t } = ue(), n = Wi(), r = Qi(), l = ts(), o = rs(), i = k(0), s = k(0), u = k([]), a = G(() => [i.value, s.value]), d = (b) => {
|
|
906
906
|
const D = () => !(u.value.length <= 0 || !be(l.value, u.value)), w = () => {
|
|
907
907
|
if (!D())
|
|
908
908
|
return;
|
|
@@ -945,7 +945,7 @@ const ls = /* @__PURE__ */ z({
|
|
|
945
945
|
title: t("x-prop-tree.reset"),
|
|
946
946
|
func: w
|
|
947
947
|
});
|
|
948
|
-
},
|
|
948
|
+
}, f = (b) => {
|
|
949
949
|
const D = () => {
|
|
950
950
|
const w = Ne(n.value, u.value), U = Ae(r.value, u.value);
|
|
951
951
|
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: w, object: U }));
|
|
@@ -982,9 +982,9 @@ const ls = /* @__PURE__ */ z({
|
|
|
982
982
|
title: t("x-prop-tree.paste"),
|
|
983
983
|
func: w
|
|
984
984
|
});
|
|
985
|
-
}, y =
|
|
985
|
+
}, y = G(() => {
|
|
986
986
|
const b = [];
|
|
987
|
-
return d(b),
|
|
987
|
+
return d(b), f(b), g(b), b;
|
|
988
988
|
}), h = (b) => {
|
|
989
989
|
i.value = b.x, s.value = b.y, u.value = b.keys;
|
|
990
990
|
}, { open: M } = at("propTreeMenu", h);
|
|
@@ -998,17 +998,17 @@ const ls = /* @__PURE__ */ z({
|
|
|
998
998
|
scrim: "transparent"
|
|
999
999
|
}, {
|
|
1000
1000
|
default: J(() => [
|
|
1001
|
-
|
|
1001
|
+
B(A, null, {
|
|
1002
1002
|
default: J(() => [
|
|
1003
|
-
(S(!0),
|
|
1003
|
+
(S(!0), F(He, null, Ht(y.value, (W, We) => (S(), R(U, {
|
|
1004
1004
|
key: We,
|
|
1005
1005
|
link: "",
|
|
1006
1006
|
onClick: W.func
|
|
1007
1007
|
}, {
|
|
1008
1008
|
default: J(() => [
|
|
1009
|
-
|
|
1009
|
+
B(w, null, {
|
|
1010
1010
|
default: J(() => [
|
|
1011
|
-
st(
|
|
1011
|
+
st(ne(W.title), 1)
|
|
1012
1012
|
]),
|
|
1013
1013
|
_: 2
|
|
1014
1014
|
}, 1024)
|
|
@@ -1024,8 +1024,8 @@ const ls = /* @__PURE__ */ z({
|
|
|
1024
1024
|
};
|
|
1025
1025
|
}
|
|
1026
1026
|
});
|
|
1027
|
-
var yn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", hn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", is = "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",
|
|
1028
|
-
const
|
|
1027
|
+
var yn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", hn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", is = "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", ye = "M19,13H5V11H19V13Z", ss = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
1028
|
+
const Be = /* @__PURE__ */ q({
|
|
1029
1029
|
__name: "title",
|
|
1030
1030
|
props: {
|
|
1031
1031
|
title: {},
|
|
@@ -1036,7 +1036,7 @@ const ke = /* @__PURE__ */ z({
|
|
|
1036
1036
|
},
|
|
1037
1037
|
emits: ["collapse", "menu", "create", "delete"],
|
|
1038
1038
|
setup(e, { emit: t }) {
|
|
1039
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o =
|
|
1039
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = k(!1), i = G(() => ({
|
|
1040
1040
|
background: o.value ? r.value : n.value,
|
|
1041
1041
|
height: "36px",
|
|
1042
1042
|
marginBottom: "1px",
|
|
@@ -1047,46 +1047,46 @@ const ke = /* @__PURE__ */ z({
|
|
|
1047
1047
|
l("menu", a.clientX, a.clientY);
|
|
1048
1048
|
};
|
|
1049
1049
|
return (a, d) => {
|
|
1050
|
-
const
|
|
1051
|
-
return
|
|
1050
|
+
const f = O("v-icon"), g = O("v-spacer"), y = ae("ripple");
|
|
1051
|
+
return re((S(), F("div", {
|
|
1052
1052
|
class: "d-flex align-center cursor-pointer",
|
|
1053
|
-
style:
|
|
1053
|
+
style: ie(i.value),
|
|
1054
1054
|
onClick: s,
|
|
1055
|
-
onContextmenu:
|
|
1055
|
+
onContextmenu: z(u, ["prevent"]),
|
|
1056
1056
|
onMouseover: d[2] || (d[2] = (h) => o.value = !0),
|
|
1057
1057
|
onMouseout: d[3] || (d[3] = (h) => o.value = !1)
|
|
1058
1058
|
}, [
|
|
1059
|
-
|
|
1059
|
+
B(f, {
|
|
1060
1060
|
class: "mr-1",
|
|
1061
1061
|
icon: a.collapse ? E(hn) : E(yn)
|
|
1062
1062
|
}, null, 8, ["icon"]),
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
a.hasCreate ? (S(), R(
|
|
1063
|
+
K("span", null, ne(a.title), 1),
|
|
1064
|
+
B(g),
|
|
1065
|
+
a.hasCreate ? (S(), R(f, {
|
|
1066
1066
|
key: 0,
|
|
1067
1067
|
class: "mx-3",
|
|
1068
1068
|
icon: E(ss),
|
|
1069
|
-
onClick: d[0] || (d[0] =
|
|
1069
|
+
onClick: d[0] || (d[0] = z((h) => l("create"), ["stop"]))
|
|
1070
1070
|
}, null, 8, ["icon"])) : I("", !0),
|
|
1071
|
-
a.hasDelete ? (S(), R(
|
|
1071
|
+
a.hasDelete ? (S(), R(f, {
|
|
1072
1072
|
key: 1,
|
|
1073
1073
|
class: "mx-3",
|
|
1074
|
-
icon: E(
|
|
1075
|
-
onClick: d[1] || (d[1] =
|
|
1074
|
+
icon: E(ye),
|
|
1075
|
+
onClick: d[1] || (d[1] = z((h) => l("delete", a.index), ["stop"]))
|
|
1076
1076
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1077
1077
|
], 36)), [
|
|
1078
1078
|
[y]
|
|
1079
1079
|
]);
|
|
1080
1080
|
};
|
|
1081
1081
|
}
|
|
1082
|
-
}), as = /* @__PURE__ */
|
|
1082
|
+
}), as = /* @__PURE__ */ q({
|
|
1083
1083
|
__name: "entry",
|
|
1084
1084
|
props: {
|
|
1085
1085
|
minHeight: {}
|
|
1086
1086
|
},
|
|
1087
1087
|
emits: ["menu"],
|
|
1088
1088
|
setup(e, { emit: t }) {
|
|
1089
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o =
|
|
1089
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = k(!1), i = G(() => ({
|
|
1090
1090
|
background: o.value ? r.value : n.value,
|
|
1091
1091
|
minHeight: e.minHeight,
|
|
1092
1092
|
paddingRight: "4px",
|
|
@@ -1096,13 +1096,13 @@ const ke = /* @__PURE__ */ z({
|
|
|
1096
1096
|
l("menu", u.clientX, u.clientY);
|
|
1097
1097
|
};
|
|
1098
1098
|
return (u, a) => {
|
|
1099
|
-
const d =
|
|
1100
|
-
return
|
|
1099
|
+
const d = ae("ripple");
|
|
1100
|
+
return re((S(), F("div", {
|
|
1101
1101
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1102
|
-
style:
|
|
1103
|
-
onContextmenu:
|
|
1104
|
-
onMouseover: a[0] || (a[0] = (
|
|
1105
|
-
onMouseout: a[1] || (a[1] = (
|
|
1102
|
+
style: ie(i.value),
|
|
1103
|
+
onContextmenu: z(s, ["prevent"]),
|
|
1104
|
+
onMouseover: a[0] || (a[0] = (f) => o.value = !0),
|
|
1105
|
+
onMouseout: a[1] || (a[1] = (f) => o.value = !1)
|
|
1106
1106
|
}, [
|
|
1107
1107
|
Un(u.$slots, "default")
|
|
1108
1108
|
], 36)), [
|
|
@@ -1112,7 +1112,7 @@ const ke = /* @__PURE__ */ z({
|
|
|
1112
1112
|
}
|
|
1113
1113
|
});
|
|
1114
1114
|
function us(e, t, n) {
|
|
1115
|
-
const { t: r } =
|
|
1115
|
+
const { t: r } = ue();
|
|
1116
1116
|
return { renderProp: (o, i, s) => {
|
|
1117
1117
|
let u = r(i.name);
|
|
1118
1118
|
return be(e.value, o) && (u += " *"), _(
|
|
@@ -1130,37 +1130,48 @@ function us(e, t, n) {
|
|
|
1130
1130
|
);
|
|
1131
1131
|
} };
|
|
1132
1132
|
}
|
|
1133
|
+
const ce = (e, t, n, r, l, o) => {
|
|
1134
|
+
if (l !== void 0 && !o) {
|
|
1135
|
+
if (n[l] === void 0) {
|
|
1136
|
+
const i = N(t, !0);
|
|
1137
|
+
i !== void 0 && (n[l] = i, r(e, n[l]));
|
|
1138
|
+
}
|
|
1139
|
+
return n[l];
|
|
1140
|
+
} else {
|
|
1141
|
+
if (n[t.key] === void 0) {
|
|
1142
|
+
const i = N(t);
|
|
1143
|
+
i !== void 0 && (n[t.key] = i, r(e, n[t.key]));
|
|
1144
|
+
}
|
|
1145
|
+
return n[t.key];
|
|
1146
|
+
}
|
|
1147
|
+
}, he = (e, t, n, r, l, o, i) => {
|
|
1148
|
+
o !== void 0 && !i ? r !== n[o] && (n[o] = r, l(e, n[o])) : r !== n[t.key] && (n[t.key] = r, l(e, n[t.key]));
|
|
1149
|
+
};
|
|
1133
1150
|
function cs(e) {
|
|
1134
1151
|
return { renderUiDummy: (n, r, l, o, i) => {
|
|
1135
1152
|
if (r.ui !== "dummy") {
|
|
1136
1153
|
console.assert(!1, "renderUiDummy prop ui must be dummy");
|
|
1137
1154
|
return;
|
|
1138
1155
|
}
|
|
1139
|
-
|
|
1140
|
-
const s = N(r, !0);
|
|
1141
|
-
typeof l[o] != typeof s && (l[o] = s, e(n, l[o]));
|
|
1142
|
-
} else {
|
|
1143
|
-
const s = N(r);
|
|
1144
|
-
typeof l[r.key] != typeof s && (l[r.key] = s, e(n, l[r.key]));
|
|
1145
|
-
}
|
|
1156
|
+
ce(n, r, l, e, o, i);
|
|
1146
1157
|
} };
|
|
1147
1158
|
}
|
|
1148
|
-
const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PURE__ */
|
|
1159
|
+
const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PURE__ */ q({
|
|
1149
1160
|
__name: "strInput",
|
|
1150
1161
|
props: /* @__PURE__ */ X({
|
|
1151
1162
|
hasDelete: { type: Boolean, default: !1 },
|
|
1152
1163
|
readonly: { type: Boolean, default: !1 }
|
|
1153
1164
|
}, {
|
|
1154
|
-
modelValue: {},
|
|
1165
|
+
modelValue: { required: !0 },
|
|
1155
1166
|
modelModifiers: {}
|
|
1156
1167
|
}),
|
|
1157
1168
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1158
1169
|
setup(e, { emit: t }) {
|
|
1159
1170
|
const n = oe(e, "modelValue"), r = t;
|
|
1160
1171
|
return (l, o) => {
|
|
1161
|
-
const i = O("v-text-field"), s = O("v-icon"), u =
|
|
1162
|
-
return S(),
|
|
1163
|
-
|
|
1172
|
+
const i = O("v-text-field"), s = O("v-icon"), u = ae("ripple");
|
|
1173
|
+
return S(), F("div", fs, [
|
|
1174
|
+
re(B(i, {
|
|
1164
1175
|
modelValue: n.value,
|
|
1165
1176
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1166
1177
|
density: "compact",
|
|
@@ -1178,23 +1189,16 @@ const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PU
|
|
|
1178
1189
|
l.hasDelete ? (S(), R(s, {
|
|
1179
1190
|
key: 0,
|
|
1180
1191
|
class: "mx-2",
|
|
1181
|
-
icon: E(
|
|
1182
|
-
onClick: o[1] || (o[1] =
|
|
1192
|
+
icon: E(ye),
|
|
1193
|
+
onClick: o[1] || (o[1] = z((a) => r("delete"), ["stop"]))
|
|
1183
1194
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1184
1195
|
]);
|
|
1185
1196
|
};
|
|
1186
1197
|
}
|
|
1187
|
-
})
|
|
1188
|
-
const s = N(t, !0);
|
|
1189
|
-
if (typeof r != typeof s) {
|
|
1190
|
-
console.assert(!1);
|
|
1191
|
-
return;
|
|
1192
|
-
}
|
|
1193
|
-
o !== void 0 && !i ? r !== n[o] && (n[o] = r, l(e, n[o])) : r !== n[t.key] && (n[t.key] = r, l(e, n[t.key]));
|
|
1194
|
-
};
|
|
1198
|
+
});
|
|
1195
1199
|
function ps(e) {
|
|
1196
1200
|
return { renderUiStrInput: (n, r, l, o, i) => r.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(ds, {
|
|
1197
|
-
modelValue: r.static ? r.value :
|
|
1201
|
+
modelValue: r.static ? r.value : ce(
|
|
1198
1202
|
n,
|
|
1199
1203
|
r,
|
|
1200
1204
|
l,
|
|
@@ -1220,7 +1224,7 @@ function ps(e) {
|
|
|
1220
1224
|
readonly: r.static || r.readonly
|
|
1221
1225
|
}) };
|
|
1222
1226
|
}
|
|
1223
|
-
const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PURE__ */
|
|
1227
|
+
const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PURE__ */ q({
|
|
1224
1228
|
__name: "numInput",
|
|
1225
1229
|
props: /* @__PURE__ */ X({
|
|
1226
1230
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1231,16 +1235,16 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
|
|
|
1231
1235
|
step: { default: 1 },
|
|
1232
1236
|
readonly: { type: Boolean, default: !1 }
|
|
1233
1237
|
}, {
|
|
1234
|
-
modelValue: {},
|
|
1238
|
+
modelValue: { required: !0 },
|
|
1235
1239
|
modelModifiers: {}
|
|
1236
1240
|
}),
|
|
1237
1241
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1238
1242
|
setup(e, { emit: t }) {
|
|
1239
1243
|
const n = oe(e, "modelValue"), r = t;
|
|
1240
1244
|
return (l, o) => {
|
|
1241
|
-
const i = O("v-number-input"), s = O("v-icon"), u =
|
|
1242
|
-
return S(),
|
|
1243
|
-
|
|
1245
|
+
const i = O("v-number-input"), s = O("v-icon"), u = ae("ripple");
|
|
1246
|
+
return S(), F("div", vs, [
|
|
1247
|
+
re(B(i, {
|
|
1244
1248
|
modelValue: n.value,
|
|
1245
1249
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1246
1250
|
density: "compact",
|
|
@@ -1263,8 +1267,8 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
|
|
|
1263
1267
|
l.hasDelete ? (S(), R(s, {
|
|
1264
1268
|
key: 0,
|
|
1265
1269
|
class: "mx-2",
|
|
1266
|
-
icon: E(
|
|
1267
|
-
onClick: o[1] || (o[1] =
|
|
1270
|
+
icon: E(ye),
|
|
1271
|
+
onClick: o[1] || (o[1] = z((a) => r("delete"), ["stop"]))
|
|
1268
1272
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1269
1273
|
]);
|
|
1270
1274
|
};
|
|
@@ -1272,7 +1276,7 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
|
|
|
1272
1276
|
});
|
|
1273
1277
|
function gs(e) {
|
|
1274
1278
|
return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(ms, {
|
|
1275
|
-
modelValue:
|
|
1279
|
+
modelValue: ce(
|
|
1276
1280
|
n,
|
|
1277
1281
|
r,
|
|
1278
1282
|
l,
|
|
@@ -1298,46 +1302,35 @@ function gs(e) {
|
|
|
1298
1302
|
readonly: r.readonly
|
|
1299
1303
|
}) };
|
|
1300
1304
|
}
|
|
1301
|
-
const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PURE__ */
|
|
1305
|
+
const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PURE__ */ q({
|
|
1302
1306
|
__name: "switch",
|
|
1303
1307
|
props: /* @__PURE__ */ X({
|
|
1304
1308
|
hasDelete: { type: Boolean, default: !1 },
|
|
1305
1309
|
readonly: { type: Boolean, default: !1 }
|
|
1306
1310
|
}, {
|
|
1307
|
-
modelValue: { type: Boolean },
|
|
1311
|
+
modelValue: { type: Boolean, required: !0 },
|
|
1308
1312
|
modelModifiers: {}
|
|
1309
1313
|
}),
|
|
1310
1314
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1311
1315
|
setup(e, { emit: t }) {
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
Y(k(u, {
|
|
1321
|
-
modelValue: r.value,
|
|
1322
|
-
"onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
|
|
1316
|
+
const n = oe(e, "modelValue"), r = t;
|
|
1317
|
+
return (l, o) => {
|
|
1318
|
+
const i = O("v-switch"), s = O("v-icon");
|
|
1319
|
+
return S(), F("div", ys, [
|
|
1320
|
+
B(i, {
|
|
1321
|
+
modelValue: n.value,
|
|
1322
|
+
"onUpdate:modelValue": o[0] || (o[0] = (u) => n.value = u),
|
|
1323
|
+
class: "ml-1",
|
|
1323
1324
|
density: "compact",
|
|
1324
|
-
|
|
1325
|
+
color: "primary",
|
|
1325
1326
|
"hide-details": "",
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
[
|
|
1330
|
-
d,
|
|
1331
|
-
void 0,
|
|
1332
|
-
void 0,
|
|
1333
|
-
{ stop: !0 }
|
|
1334
|
-
]
|
|
1335
|
-
]),
|
|
1336
|
-
i.hasDelete ? (S(), R(a, {
|
|
1327
|
+
readonly: l.readonly
|
|
1328
|
+
}, null, 8, ["modelValue", "readonly"]),
|
|
1329
|
+
l.hasDelete ? (S(), R(s, {
|
|
1337
1330
|
key: 0,
|
|
1338
1331
|
class: "mx-2",
|
|
1339
|
-
icon: E(
|
|
1340
|
-
onClick:
|
|
1332
|
+
icon: E(ye),
|
|
1333
|
+
onClick: o[1] || (o[1] = z((u) => r("delete"), ["stop"]))
|
|
1341
1334
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1342
1335
|
]);
|
|
1343
1336
|
};
|
|
@@ -1345,7 +1338,7 @@ const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PU
|
|
|
1345
1338
|
});
|
|
1346
1339
|
function _s(e) {
|
|
1347
1340
|
return { renderUiSwitch: (n, r, l, o, i) => r.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(hs, {
|
|
1348
|
-
modelValue:
|
|
1341
|
+
modelValue: ce(
|
|
1349
1342
|
n,
|
|
1350
1343
|
r,
|
|
1351
1344
|
l,
|
|
@@ -1371,23 +1364,23 @@ function _s(e) {
|
|
|
1371
1364
|
readonly: r.readonly
|
|
1372
1365
|
}) };
|
|
1373
1366
|
}
|
|
1374
|
-
const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PURE__ */
|
|
1367
|
+
const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PURE__ */ q({
|
|
1375
1368
|
__name: "select",
|
|
1376
1369
|
props: /* @__PURE__ */ X({
|
|
1377
1370
|
hasDelete: { type: Boolean, default: !1 },
|
|
1378
1371
|
readonly: { type: Boolean, default: !1 },
|
|
1379
1372
|
items: {}
|
|
1380
1373
|
}, {
|
|
1381
|
-
modelValue: {},
|
|
1374
|
+
modelValue: { required: !0 },
|
|
1382
1375
|
modelModifiers: {}
|
|
1383
1376
|
}),
|
|
1384
1377
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1385
1378
|
setup(e, { emit: t }) {
|
|
1386
1379
|
const n = oe(e, "modelValue"), r = t;
|
|
1387
1380
|
return (l, o) => {
|
|
1388
|
-
const i = O("v-select"), s = O("v-icon"), u =
|
|
1389
|
-
return S(),
|
|
1390
|
-
|
|
1381
|
+
const i = O("v-select"), s = O("v-icon"), u = ae("ripple");
|
|
1382
|
+
return S(), F("div", bs, [
|
|
1383
|
+
re(B(i, {
|
|
1391
1384
|
modelValue: n.value,
|
|
1392
1385
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1393
1386
|
density: "compact",
|
|
@@ -1406,17 +1399,17 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
|
|
|
1406
1399
|
l.hasDelete ? (S(), R(s, {
|
|
1407
1400
|
key: 0,
|
|
1408
1401
|
class: "mx-2",
|
|
1409
|
-
icon: E(
|
|
1410
|
-
onClick: o[1] || (o[1] =
|
|
1402
|
+
icon: E(ye),
|
|
1403
|
+
onClick: o[1] || (o[1] = z((a) => r("delete"), ["stop"]))
|
|
1411
1404
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1412
1405
|
]);
|
|
1413
1406
|
};
|
|
1414
1407
|
}
|
|
1415
1408
|
});
|
|
1416
1409
|
function Ts(e) {
|
|
1417
|
-
const { t } =
|
|
1410
|
+
const { t } = ue();
|
|
1418
1411
|
return { renderUiSelect: (r, l, o, i, s) => l.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _($s, {
|
|
1419
|
-
modelValue:
|
|
1412
|
+
modelValue: ce(
|
|
1420
1413
|
r,
|
|
1421
1414
|
l,
|
|
1422
1415
|
o,
|
|
@@ -1451,7 +1444,7 @@ function Ts(e) {
|
|
|
1451
1444
|
readonly: l.readonly
|
|
1452
1445
|
}) };
|
|
1453
1446
|
}
|
|
1454
|
-
const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-grey ml-1" }, As = /* @__PURE__ */
|
|
1447
|
+
const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-grey ml-1" }, As = /* @__PURE__ */ q({
|
|
1455
1448
|
__name: "group",
|
|
1456
1449
|
props: {
|
|
1457
1450
|
id: {},
|
|
@@ -1461,33 +1454,33 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1461
1454
|
},
|
|
1462
1455
|
emits: ["x-click"],
|
|
1463
1456
|
setup(e, { emit: t }) {
|
|
1464
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i =
|
|
1457
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = k(!1), s = G(() => ({
|
|
1465
1458
|
background: i.value ? r.value : n.value,
|
|
1466
1459
|
height: "30px",
|
|
1467
1460
|
marginBottom: "1px",
|
|
1468
1461
|
userSelect: "none"
|
|
1469
1462
|
}));
|
|
1470
1463
|
return (u, a) => {
|
|
1471
|
-
const d = O("v-icon"),
|
|
1472
|
-
return
|
|
1464
|
+
const d = O("v-icon"), f = ae("ripple");
|
|
1465
|
+
return re((S(), F("div", {
|
|
1473
1466
|
class: "d-flex align-center cursor-pointer",
|
|
1474
|
-
style:
|
|
1467
|
+
style: ie(s.value),
|
|
1475
1468
|
onClick: a[0] || (a[0] = (g) => o("x-click", l.id)),
|
|
1476
1469
|
onMouseover: a[1] || (a[1] = (g) => i.value = !0),
|
|
1477
1470
|
onMouseout: a[2] || (a[2] = (g) => i.value = !1)
|
|
1478
1471
|
}, [
|
|
1479
|
-
|
|
1472
|
+
B(d, {
|
|
1480
1473
|
icon: l.collapse ? E(hn) : E(yn),
|
|
1481
1474
|
size: "small"
|
|
1482
1475
|
}, null, 8, ["icon"]),
|
|
1483
|
-
|
|
1484
|
-
|
|
1476
|
+
K("span", Ss, ne(l.title), 1),
|
|
1477
|
+
K("span", ws, ne(l.count), 1)
|
|
1485
1478
|
], 36)), [
|
|
1486
|
-
[
|
|
1479
|
+
[f]
|
|
1487
1480
|
]);
|
|
1488
1481
|
};
|
|
1489
1482
|
}
|
|
1490
|
-
}), Cs = { class: "text-subtitle-1 ml-6" }, Ps = /* @__PURE__ */
|
|
1483
|
+
}), Cs = { class: "text-subtitle-1 ml-6" }, Ps = /* @__PURE__ */ q({
|
|
1491
1484
|
__name: "item",
|
|
1492
1485
|
props: {
|
|
1493
1486
|
id: {},
|
|
@@ -1495,22 +1488,22 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1495
1488
|
},
|
|
1496
1489
|
emits: ["x-click"],
|
|
1497
1490
|
setup(e, { emit: t }) {
|
|
1498
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i =
|
|
1491
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = k(!1), s = G(() => ({
|
|
1499
1492
|
background: i.value ? r.value : n.value,
|
|
1500
1493
|
height: "48px",
|
|
1501
1494
|
marginBottom: "1px",
|
|
1502
1495
|
userSelect: "none"
|
|
1503
1496
|
}));
|
|
1504
1497
|
return (u, a) => {
|
|
1505
|
-
const d =
|
|
1506
|
-
return
|
|
1498
|
+
const d = ae("ripple");
|
|
1499
|
+
return re((S(), F("div", {
|
|
1507
1500
|
class: "d-flex align-center cursor-pointer",
|
|
1508
|
-
style:
|
|
1509
|
-
onClick: a[0] || (a[0] = (
|
|
1510
|
-
onMouseover: a[1] || (a[1] = (
|
|
1511
|
-
onMouseout: a[2] || (a[2] = (
|
|
1501
|
+
style: ie(s.value),
|
|
1502
|
+
onClick: a[0] || (a[0] = (f) => o("x-click", l.id)),
|
|
1503
|
+
onMouseover: a[1] || (a[1] = (f) => i.value = !0),
|
|
1504
|
+
onMouseout: a[2] || (a[2] = (f) => i.value = !1)
|
|
1512
1505
|
}, [
|
|
1513
|
-
|
|
1506
|
+
K("span", Cs, ne(l.title), 1)
|
|
1514
1507
|
], 36)), [
|
|
1515
1508
|
[d]
|
|
1516
1509
|
]);
|
|
@@ -1519,7 +1512,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1519
1512
|
}), Os = { key: 0 }, xs = {
|
|
1520
1513
|
key: 1,
|
|
1521
1514
|
class: "text-body-2 text-grey ml-3"
|
|
1522
|
-
}, Ms = /* @__PURE__ */
|
|
1515
|
+
}, Ms = /* @__PURE__ */ q({
|
|
1523
1516
|
__name: "index",
|
|
1524
1517
|
props: {
|
|
1525
1518
|
modelValue: {},
|
|
@@ -1529,14 +1522,14 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1529
1522
|
},
|
|
1530
1523
|
emits: ["update:modelValue", "update:open"],
|
|
1531
1524
|
setup(e) {
|
|
1532
|
-
const { t } =
|
|
1525
|
+
const { t } = ue(), n = oe(e, "modelValue"), r = oe(e, "open"), l = gn(), o = (s) => {
|
|
1533
1526
|
const u = cn(l, s);
|
|
1534
1527
|
u && Hi(l, s, !u.collapse);
|
|
1535
1528
|
}, i = (s) => {
|
|
1536
1529
|
n.value = s, r.value = !1, _e.emit("refreshDepends");
|
|
1537
1530
|
};
|
|
1538
|
-
return (s, u) => E(l).length > 0 ? (S(),
|
|
1539
|
-
(S(!0),
|
|
1531
|
+
return (s, u) => E(l).length > 0 ? (S(), F("div", Os, [
|
|
1532
|
+
(S(!0), F(He, null, Ht(E(l), (a) => (S(), F(He, {
|
|
1540
1533
|
key: a.id
|
|
1541
1534
|
}, [
|
|
1542
1535
|
a.type === 0 ? (S(), R(As, {
|
|
@@ -1554,9 +1547,9 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1554
1547
|
onXClick: i
|
|
1555
1548
|
}, null, 8, ["id", "title"])) : I("", !0)
|
|
1556
1549
|
], 64))), 128))
|
|
1557
|
-
])) : (S(),
|
|
1550
|
+
])) : (S(), F("div", xs, ne(E(t)("x-prop-tree.noComp")), 1));
|
|
1558
1551
|
}
|
|
1559
|
-
}), Us = { class: "text-subtitle-1 ml-3" }, Vs = /* @__PURE__ */
|
|
1552
|
+
}), Us = { class: "text-subtitle-1 ml-3" }, Vs = /* @__PURE__ */ q({
|
|
1560
1553
|
__name: "index",
|
|
1561
1554
|
props: {
|
|
1562
1555
|
modelValue: {},
|
|
@@ -1564,92 +1557,92 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1564
1557
|
},
|
|
1565
1558
|
emits: ["update:modelValue"],
|
|
1566
1559
|
setup(e) {
|
|
1567
|
-
const { t } =
|
|
1560
|
+
const { t } = ue(), n = kn(), { sysBarAvail: r } = En(), { backgroundColor1: l } = Te(), o = oe(e, "modelValue"), i = gn(), s = G(() => {
|
|
1568
1561
|
let g = "100%";
|
|
1569
1562
|
return n.mdAndUp.value && (g = "400px"), {
|
|
1570
1563
|
background: l.value,
|
|
1571
1564
|
width: g,
|
|
1572
1565
|
height: "100%"
|
|
1573
1566
|
};
|
|
1574
|
-
}), u =
|
|
1567
|
+
}), u = G(() => {
|
|
1575
1568
|
let g = 48;
|
|
1576
1569
|
return r.value && (g += 24), {
|
|
1577
1570
|
position: "relative",
|
|
1578
1571
|
height: `calc(100% - ${g}px)`
|
|
1579
1572
|
};
|
|
1580
|
-
}), a =
|
|
1573
|
+
}), a = G(() => ({
|
|
1581
1574
|
height: "60px"
|
|
1582
|
-
})), d =
|
|
1575
|
+
})), d = G(() => {
|
|
1583
1576
|
if (!o.value)
|
|
1584
1577
|
return t("x-prop-tree.notSet");
|
|
1585
1578
|
const g = cn(i, o.value);
|
|
1586
1579
|
return g ? g.name : t("x-runtime-lib.compNotAvail");
|
|
1587
|
-
}), { open:
|
|
1588
|
-
return
|
|
1589
|
-
|
|
1580
|
+
}), { open: f } = at(`propTreeCompSelectDlg${Gt()}`);
|
|
1581
|
+
return qt(() => {
|
|
1582
|
+
f.value = !1;
|
|
1590
1583
|
}), (g, y) => {
|
|
1591
1584
|
const h = O("v-btn"), M = O("v-sheet"), b = O("v-icon"), D = O("v-dialog");
|
|
1592
1585
|
return S(), R(D, {
|
|
1593
|
-
modelValue: E(
|
|
1594
|
-
"onUpdate:modelValue": y[5] || (y[5] = (w) => Fe(
|
|
1586
|
+
modelValue: E(f),
|
|
1587
|
+
"onUpdate:modelValue": y[5] || (y[5] = (w) => Fe(f) ? f.value = w : null),
|
|
1595
1588
|
transition: "scroll-x-reverse-transition",
|
|
1596
1589
|
persistent: "",
|
|
1597
1590
|
"no-click-animation": "",
|
|
1598
1591
|
fullscreen: "",
|
|
1599
|
-
onKeydown: y[6] || (y[6] = Vn(
|
|
1592
|
+
onKeydown: y[6] || (y[6] = Vn(z((w) => f.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1600
1593
|
}, {
|
|
1601
1594
|
activator: J(({ props: w }) => [
|
|
1602
|
-
|
|
1595
|
+
B(h, zt(w, {
|
|
1603
1596
|
density: "comfortable",
|
|
1604
1597
|
block: ""
|
|
1605
1598
|
}), {
|
|
1606
1599
|
default: J(() => [
|
|
1607
|
-
st(
|
|
1600
|
+
st(ne(d.value), 1)
|
|
1608
1601
|
]),
|
|
1609
1602
|
_: 2
|
|
1610
1603
|
}, 1040)
|
|
1611
1604
|
]),
|
|
1612
1605
|
default: J(() => [
|
|
1613
|
-
|
|
1606
|
+
K("div", {
|
|
1614
1607
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1615
|
-
onClick: y[3] || (y[3] =
|
|
1616
|
-
onContextmenu: y[4] || (y[4] =
|
|
1608
|
+
onClick: y[3] || (y[3] = z((w) => f.value = !1, ["self"])),
|
|
1609
|
+
onContextmenu: y[4] || (y[4] = z((w) => f.value = !1, ["self", "prevent"]))
|
|
1617
1610
|
}, [
|
|
1618
|
-
|
|
1611
|
+
K("div", {
|
|
1619
1612
|
class: "elevation-2",
|
|
1620
|
-
style:
|
|
1613
|
+
style: ie(s.value)
|
|
1621
1614
|
}, [
|
|
1622
1615
|
E(r) ? (S(), R(M, {
|
|
1623
1616
|
key: 0,
|
|
1624
1617
|
color: "transparent",
|
|
1625
1618
|
height: 24
|
|
1626
1619
|
})) : I("", !0),
|
|
1627
|
-
|
|
1620
|
+
B(M, {
|
|
1628
1621
|
class: "d-flex align-center px-3",
|
|
1629
1622
|
color: "transparent",
|
|
1630
1623
|
height: 48
|
|
1631
1624
|
}, {
|
|
1632
1625
|
default: J(() => [
|
|
1633
|
-
|
|
1626
|
+
B(b, {
|
|
1634
1627
|
icon: E(is),
|
|
1635
|
-
onClick: y[0] || (y[0] = (w) =>
|
|
1628
|
+
onClick: y[0] || (y[0] = (w) => f.value = !1)
|
|
1636
1629
|
}, null, 8, ["icon"]),
|
|
1637
|
-
|
|
1630
|
+
K("span", Us, ne(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
1638
1631
|
]),
|
|
1639
1632
|
_: 1
|
|
1640
1633
|
}),
|
|
1641
|
-
|
|
1634
|
+
K("div", {
|
|
1642
1635
|
class: "overflow-y-auto",
|
|
1643
|
-
style:
|
|
1636
|
+
style: ie(u.value)
|
|
1644
1637
|
}, [
|
|
1645
|
-
|
|
1638
|
+
B(Ms, {
|
|
1646
1639
|
modelValue: o.value,
|
|
1647
1640
|
"onUpdate:modelValue": y[1] || (y[1] = (w) => o.value = w),
|
|
1648
|
-
open: E(
|
|
1649
|
-
"onUpdate:open": y[2] || (y[2] = (w) => Fe(
|
|
1641
|
+
open: E(f),
|
|
1642
|
+
"onUpdate:open": y[2] || (y[2] = (w) => Fe(f) ? f.value = w : null)
|
|
1650
1643
|
}, null, 8, ["modelValue", "open"]),
|
|
1651
|
-
|
|
1652
|
-
style:
|
|
1644
|
+
K("div", {
|
|
1645
|
+
style: ie(a.value)
|
|
1653
1646
|
}, null, 4)
|
|
1654
1647
|
], 4)
|
|
1655
1648
|
], 4)
|
|
@@ -1662,7 +1655,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1662
1655
|
});
|
|
1663
1656
|
function Ls(e) {
|
|
1664
1657
|
return { renderUiCompSelect: (n, r, l, o, i) => r.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : _(Vs, {
|
|
1665
|
-
modelValue:
|
|
1658
|
+
modelValue: ce(
|
|
1666
1659
|
n,
|
|
1667
1660
|
r,
|
|
1668
1661
|
l,
|
|
@@ -1683,7 +1676,7 @@ function Ls(e) {
|
|
|
1683
1676
|
}
|
|
1684
1677
|
}) };
|
|
1685
1678
|
}
|
|
1686
|
-
const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PURE__ */
|
|
1679
|
+
const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PURE__ */ q({
|
|
1687
1680
|
__name: "colorPicker",
|
|
1688
1681
|
props: /* @__PURE__ */ X({
|
|
1689
1682
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1694,16 +1687,16 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1694
1687
|
}),
|
|
1695
1688
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1696
1689
|
setup(e, { emit: t }) {
|
|
1697
|
-
const { t: n } =
|
|
1690
|
+
const { t: n } = ue(), r = oe(e, "modelValue"), l = t, o = G(() => {
|
|
1698
1691
|
let u = "100%";
|
|
1699
1692
|
return e.hasDelete && (u = "calc(100% - 37px)"), {
|
|
1700
1693
|
width: u
|
|
1701
1694
|
};
|
|
1702
|
-
}), i =
|
|
1703
|
-
return
|
|
1695
|
+
}), i = G(() => e.readonly), { open: s } = at(`propTreeColorPickerMenu${Gt()}`);
|
|
1696
|
+
return qt(() => {
|
|
1704
1697
|
s.value = !1;
|
|
1705
1698
|
}), (u, a) => {
|
|
1706
|
-
const d = O("v-btn"),
|
|
1699
|
+
const d = O("v-btn"), f = O("v-icon"), g = O("v-color-picker"), y = O("v-menu");
|
|
1707
1700
|
return S(), R(y, {
|
|
1708
1701
|
modelValue: E(s),
|
|
1709
1702
|
"onUpdate:modelValue": a[2] || (a[2] = (h) => Fe(s) ? s.value = h : null),
|
|
@@ -1711,33 +1704,33 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1711
1704
|
scrim: "transparent"
|
|
1712
1705
|
}, {
|
|
1713
1706
|
activator: J(({ props: h }) => [
|
|
1714
|
-
|
|
1715
|
-
|
|
1707
|
+
K("div", Ds, [
|
|
1708
|
+
K("div", {
|
|
1716
1709
|
class: "flex-grow-1",
|
|
1717
|
-
style:
|
|
1710
|
+
style: ie(o.value)
|
|
1718
1711
|
}, [
|
|
1719
|
-
|
|
1712
|
+
B(d, zt(h, {
|
|
1720
1713
|
density: "comfortable",
|
|
1721
1714
|
color: r.value,
|
|
1722
1715
|
block: "",
|
|
1723
1716
|
disabled: i.value
|
|
1724
1717
|
}), {
|
|
1725
1718
|
default: J(() => [
|
|
1726
|
-
st(
|
|
1719
|
+
st(ne(r.value ? r.value : E(n)("x-runtime-lib.notSet")), 1)
|
|
1727
1720
|
]),
|
|
1728
1721
|
_: 2
|
|
1729
1722
|
}, 1040, ["color", "disabled"])
|
|
1730
1723
|
], 4),
|
|
1731
|
-
u.hasDelete ? (S(), R(
|
|
1724
|
+
u.hasDelete ? (S(), R(f, {
|
|
1732
1725
|
key: 0,
|
|
1733
1726
|
class: "mx-2",
|
|
1734
|
-
icon: E(
|
|
1735
|
-
onClick: a[0] || (a[0] =
|
|
1727
|
+
icon: E(ye),
|
|
1728
|
+
onClick: a[0] || (a[0] = z((M) => l("delete"), ["stop"]))
|
|
1736
1729
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1737
1730
|
])
|
|
1738
1731
|
]),
|
|
1739
1732
|
default: J(() => [
|
|
1740
|
-
|
|
1733
|
+
B(g, {
|
|
1741
1734
|
modelValue: r.value,
|
|
1742
1735
|
"onUpdate:modelValue": a[1] || (a[1] = (h) => r.value = h),
|
|
1743
1736
|
mode: "hexa",
|
|
@@ -1752,7 +1745,7 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1752
1745
|
});
|
|
1753
1746
|
function Es(e) {
|
|
1754
1747
|
return { renderUiColorPicker: (n, r, l, o, i) => r.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(js, {
|
|
1755
|
-
modelValue:
|
|
1748
|
+
modelValue: ce(
|
|
1756
1749
|
n,
|
|
1757
1750
|
r,
|
|
1758
1751
|
l,
|
|
@@ -1778,7 +1771,7 @@ function Es(e) {
|
|
|
1778
1771
|
readonly: r.readonly
|
|
1779
1772
|
}) };
|
|
1780
1773
|
}
|
|
1781
|
-
const Ns = { class: "d-flex justify-space-between align-center my-2" },
|
|
1774
|
+
const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { class: "flex-grow-1" }, ks = /* @__PURE__ */ q({
|
|
1782
1775
|
__name: "multiTypes",
|
|
1783
1776
|
props: /* @__PURE__ */ X({
|
|
1784
1777
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1789,33 +1782,33 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, ks = { c
|
|
|
1789
1782
|
}),
|
|
1790
1783
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1791
1784
|
setup(e, { emit: t }) {
|
|
1792
|
-
const { t: n } =
|
|
1785
|
+
const { t: n } = ue(), r = oe(e, "modelValue"), l = t, o = k(0), i = G(() => {
|
|
1793
1786
|
const d = [];
|
|
1794
|
-
return e.types.forEach(({ name:
|
|
1787
|
+
return e.types.forEach(({ name: f }, g) => {
|
|
1795
1788
|
d.push({
|
|
1796
|
-
title: n(
|
|
1789
|
+
title: n(f),
|
|
1797
1790
|
value: g
|
|
1798
1791
|
});
|
|
1799
1792
|
}), d;
|
|
1800
1793
|
});
|
|
1801
1794
|
mt(() => {
|
|
1802
|
-
e.types.some((d,
|
|
1795
|
+
e.types.some((d, f) => d.validator(r.value) ? (o.value = f, !0) : !1);
|
|
1803
1796
|
});
|
|
1804
|
-
const s =
|
|
1797
|
+
const s = G(() => e.types[o.value]), u = () => {
|
|
1805
1798
|
r.value = s.value.default;
|
|
1806
|
-
}, a =
|
|
1799
|
+
}, a = k(0);
|
|
1807
1800
|
return mt(() => {
|
|
1808
|
-
s.value.ui === "pixelInput" ? a.value = Nn(r.value) : s.value.ui === "percentInput" && (a.value =
|
|
1809
|
-
}),
|
|
1801
|
+
s.value.ui === "pixelInput" ? a.value = Nn(r.value) : s.value.ui === "percentInput" && (a.value = Bn(r.value));
|
|
1802
|
+
}), ke(a, (d) => {
|
|
1810
1803
|
s.value.ui === "pixelInput" ? r.value = d + "px" : s.value.ui === "percentInput" && (r.value = d + "%");
|
|
1811
|
-
}), (d,
|
|
1812
|
-
const g = O("v-select"), y = O("v-number-input"), h = O("v-icon"), M =
|
|
1813
|
-
return S(),
|
|
1814
|
-
|
|
1815
|
-
|
|
1804
|
+
}), (d, f) => {
|
|
1805
|
+
const g = O("v-select"), y = O("v-number-input"), h = O("v-icon"), M = ae("ripple");
|
|
1806
|
+
return S(), F("div", Ns, [
|
|
1807
|
+
K("div", Bs, [
|
|
1808
|
+
re(B(g, {
|
|
1816
1809
|
modelValue: o.value,
|
|
1817
1810
|
"onUpdate:modelValue": [
|
|
1818
|
-
|
|
1811
|
+
f[0] || (f[0] = (b) => o.value = b),
|
|
1819
1812
|
u
|
|
1820
1813
|
],
|
|
1821
1814
|
density: "compact",
|
|
@@ -1830,10 +1823,10 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, ks = { c
|
|
|
1830
1823
|
{ stop: !0 }
|
|
1831
1824
|
]
|
|
1832
1825
|
]),
|
|
1833
|
-
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ?
|
|
1826
|
+
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? re((S(), R(y, {
|
|
1834
1827
|
key: 0,
|
|
1835
1828
|
modelValue: a.value,
|
|
1836
|
-
"onUpdate:modelValue":
|
|
1829
|
+
"onUpdate:modelValue": f[1] || (f[1] = (b) => a.value = b),
|
|
1837
1830
|
density: "compact",
|
|
1838
1831
|
"control-variant": "stacked",
|
|
1839
1832
|
precision: s.value.precision,
|
|
@@ -1854,16 +1847,16 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, ks = { c
|
|
|
1854
1847
|
d.hasDelete ? (S(), R(h, {
|
|
1855
1848
|
key: 0,
|
|
1856
1849
|
class: "mx-2",
|
|
1857
|
-
icon: E(
|
|
1858
|
-
onClick:
|
|
1850
|
+
icon: E(ye),
|
|
1851
|
+
onClick: f[2] || (f[2] = z((b) => l("delete"), ["stop"]))
|
|
1859
1852
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1860
1853
|
]);
|
|
1861
1854
|
};
|
|
1862
1855
|
}
|
|
1863
1856
|
});
|
|
1864
1857
|
function Rs(e) {
|
|
1865
|
-
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(
|
|
1866
|
-
modelValue:
|
|
1858
|
+
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(ks, {
|
|
1859
|
+
modelValue: ce(
|
|
1867
1860
|
n,
|
|
1868
1861
|
r,
|
|
1869
1862
|
l,
|
|
@@ -1889,7 +1882,7 @@ function Rs(e) {
|
|
|
1889
1882
|
types: r.types
|
|
1890
1883
|
}) };
|
|
1891
1884
|
}
|
|
1892
|
-
const Fs = /* @__PURE__ */
|
|
1885
|
+
const Fs = /* @__PURE__ */ q({
|
|
1893
1886
|
__name: "index",
|
|
1894
1887
|
props: {
|
|
1895
1888
|
unique: {},
|
|
@@ -1898,38 +1891,38 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1898
1891
|
},
|
|
1899
1892
|
emits: ["change"],
|
|
1900
1893
|
setup(e, { emit: t }) {
|
|
1901
|
-
const { t: n } =
|
|
1902
|
-
Ft(d, l.config, l.object), o("change", v,
|
|
1894
|
+
const { t: n } = ue(), { backgroundColor1: r } = Te(), l = e, o = t, i = k("20px"), s = k("56px"), u = k("200px"), a = Ln({}), d = k({}), f = (v, c) => {
|
|
1895
|
+
Ft(d, l.config, l.object), o("change", v, c);
|
|
1903
1896
|
};
|
|
1904
|
-
|
|
1897
|
+
ke(
|
|
1905
1898
|
[() => l.config, () => l.object],
|
|
1906
1899
|
() => {
|
|
1907
|
-
Ft(d, l.config, l.object, (v,
|
|
1908
|
-
o("change", v,
|
|
1900
|
+
Ft(d, l.config, l.object, (v, c) => {
|
|
1901
|
+
o("change", v, c);
|
|
1909
1902
|
});
|
|
1910
1903
|
},
|
|
1911
1904
|
{ immediate: !0 }
|
|
1912
1905
|
);
|
|
1913
|
-
const g =
|
|
1914
|
-
Ji(g),
|
|
1906
|
+
const g = k(l.config);
|
|
1907
|
+
Ji(g), ke(
|
|
1915
1908
|
() => l.config,
|
|
1916
1909
|
() => {
|
|
1917
1910
|
g.value = l.config;
|
|
1918
1911
|
}
|
|
1919
1912
|
);
|
|
1920
|
-
const y =
|
|
1921
|
-
Yi(y),
|
|
1913
|
+
const y = k(l.object);
|
|
1914
|
+
Yi(y), ke(
|
|
1922
1915
|
() => l.object,
|
|
1923
1916
|
() => {
|
|
1924
1917
|
y.value = l.object;
|
|
1925
1918
|
}
|
|
1926
|
-
), es(d), ns(
|
|
1927
|
-
const h =
|
|
1919
|
+
), es(d), ns(f);
|
|
1920
|
+
const h = k([]);
|
|
1928
1921
|
os(h);
|
|
1929
1922
|
const M = () => {
|
|
1930
|
-
const { compGroups: v, comps:
|
|
1923
|
+
const { compGroups: v, comps: c } = Rn.app.activeApp, m = [];
|
|
1931
1924
|
v.forEach(({ id: p, name: $, position: C }) => {
|
|
1932
|
-
const L = h.value.find((
|
|
1925
|
+
const L = h.value.find((Q) => Q.id === p);
|
|
1933
1926
|
m.push({
|
|
1934
1927
|
id: p,
|
|
1935
1928
|
type: 0,
|
|
@@ -1937,7 +1930,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1937
1930
|
position: C,
|
|
1938
1931
|
collapse: (L == null ? void 0 : L.collapse) ?? !0
|
|
1939
1932
|
});
|
|
1940
|
-
}),
|
|
1933
|
+
}), c.forEach(({ id: p, groupid: $, name: C, position: L }) => {
|
|
1941
1934
|
m.push({ id: p, type: 1, name: C, position: L, group: $ });
|
|
1942
1935
|
}), Fi(m, !0), h.value = m;
|
|
1943
1936
|
};
|
|
@@ -1954,26 +1947,26 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1954
1947
|
}), jn(() => {
|
|
1955
1948
|
w();
|
|
1956
1949
|
});
|
|
1957
|
-
const { renderProp: U } = us(d, s, u), { renderUiDummy: A } = cs(
|
|
1950
|
+
const { renderProp: U } = us(d, s, u), { renderUiDummy: A } = cs(f), { renderUiStrInput: V } = ps(f), { renderUiNumInput: W } = gs(f), { renderUiSwitch: We } = _s(f), { renderUiSelect: _n } = Ts(f), { renderUiColorPicker: bn } = Es(f), { renderUiMultiTypes: $n } = Rs(f), { renderUiCompSelect: Tn } = Ls(f), Le = (v, c, m, p, $, C) => (v = sn(v), $ !== void 0 ? (v.push($), C && v.push(c.key)) : v.push(c.key), c.ui ? c.array && $ === void 0 ? An(v, c, m, p, $, C) : Cn(v, c, m, $, C) : c.array ? Sn(v, c, m, p, $, C) : wn(
|
|
1958
1951
|
v,
|
|
1959
|
-
|
|
1952
|
+
c,
|
|
1960
1953
|
m,
|
|
1961
1954
|
p,
|
|
1962
1955
|
$,
|
|
1963
1956
|
C
|
|
1964
|
-
)), Sn = (v,
|
|
1965
|
-
if (
|
|
1957
|
+
)), Sn = (v, c, m, p, $, C) => {
|
|
1958
|
+
if (c.ui)
|
|
1966
1959
|
return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
|
|
1967
|
-
if (!
|
|
1960
|
+
if (!c.array)
|
|
1968
1961
|
return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
|
|
1969
1962
|
if (!p)
|
|
1970
1963
|
return console.assert(!1), _("div", "renderBranchArray branch must be valid");
|
|
1971
1964
|
let L;
|
|
1972
|
-
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(
|
|
1973
|
-
let
|
|
1974
|
-
p.collapse && be(d.value, v) && (
|
|
1975
|
-
const Se = _(
|
|
1976
|
-
title:
|
|
1965
|
+
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(c), f(v, m[c.key])), L = m[$]) : (m[c.key] instanceof Array || (m[c.key] = N(c), f(v, m[c.key])), L = m[c.key]);
|
|
1966
|
+
let Q = n(c.name);
|
|
1967
|
+
p.collapse && be(d.value, v) && (Q += " *");
|
|
1968
|
+
const Se = _(Be, {
|
|
1969
|
+
title: Q,
|
|
1977
1970
|
collapse: p.collapse,
|
|
1978
1971
|
hasCreate: !0,
|
|
1979
1972
|
onCollapse: (T) => {
|
|
@@ -1983,9 +1976,9 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1983
1976
|
_e.emit("propTreeMenu", { x: T, y: j, keys: v });
|
|
1984
1977
|
},
|
|
1985
1978
|
onCreate: () => {
|
|
1986
|
-
L.push({}),
|
|
1979
|
+
L.push({}), f(v, L);
|
|
1987
1980
|
}
|
|
1988
|
-
}),
|
|
1981
|
+
}), H = _(
|
|
1989
1982
|
"div",
|
|
1990
1983
|
{
|
|
1991
1984
|
style: {
|
|
@@ -2006,27 +1999,27 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2006
1999
|
const De = [...v, j], je = p.children[j];
|
|
2007
2000
|
let vt = n("x-prop-tree.entry", { index: j });
|
|
2008
2001
|
p.children[j].collapse && be(d.value, De) && (vt += " *");
|
|
2009
|
-
const On = _(
|
|
2002
|
+
const On = _(Be, {
|
|
2010
2003
|
title: vt,
|
|
2011
2004
|
collapse: p.children[j].collapse,
|
|
2012
2005
|
hasDelete: !0,
|
|
2013
2006
|
index: j,
|
|
2014
|
-
onCollapse: (
|
|
2007
|
+
onCollapse: (ee) => {
|
|
2015
2008
|
if (!tt(p.children)) {
|
|
2016
2009
|
console.assert(!1);
|
|
2017
2010
|
return;
|
|
2018
2011
|
}
|
|
2019
|
-
p.children[j].collapse =
|
|
2012
|
+
p.children[j].collapse = ee;
|
|
2020
2013
|
},
|
|
2021
|
-
onMenu: (
|
|
2022
|
-
_e.emit("propTreeMenu", { x:
|
|
2014
|
+
onMenu: (ee, fe) => {
|
|
2015
|
+
_e.emit("propTreeMenu", { x: ee, y: fe, keys: De });
|
|
2023
2016
|
},
|
|
2024
|
-
onDelete: (
|
|
2017
|
+
onDelete: (ee) => {
|
|
2025
2018
|
if (!tt(p.children)) {
|
|
2026
2019
|
console.assert(!1);
|
|
2027
2020
|
return;
|
|
2028
2021
|
}
|
|
2029
|
-
p.children.splice(
|
|
2022
|
+
p.children.splice(ee, 1), L.splice(ee, 1), f(v, L);
|
|
2030
2023
|
}
|
|
2031
2024
|
});
|
|
2032
2025
|
T.push(On);
|
|
@@ -2038,26 +2031,26 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2038
2031
|
}
|
|
2039
2032
|
},
|
|
2040
2033
|
(() => {
|
|
2041
|
-
const
|
|
2042
|
-
return
|
|
2034
|
+
const ee = [];
|
|
2035
|
+
return c.children.forEach((fe) => {
|
|
2043
2036
|
if (!Rt(je.children)) {
|
|
2044
2037
|
console.assert(!1);
|
|
2045
2038
|
return;
|
|
2046
2039
|
}
|
|
2047
|
-
je.children[
|
|
2040
|
+
je.children[fe.key] || (je.children[fe.key] = {
|
|
2048
2041
|
collapse: !0,
|
|
2049
|
-
children:
|
|
2042
|
+
children: fe.array ? [] : {}
|
|
2050
2043
|
});
|
|
2051
2044
|
const Mn = Le(
|
|
2052
2045
|
v,
|
|
2053
|
-
|
|
2046
|
+
fe,
|
|
2054
2047
|
L[j],
|
|
2055
|
-
je.children[
|
|
2048
|
+
je.children[fe.key],
|
|
2056
2049
|
j,
|
|
2057
2050
|
!0
|
|
2058
2051
|
);
|
|
2059
|
-
|
|
2060
|
-
}),
|
|
2052
|
+
ee.push(Mn);
|
|
2053
|
+
}), ee;
|
|
2061
2054
|
})()
|
|
2062
2055
|
);
|
|
2063
2056
|
p.children[j].collapse || T.push(xn);
|
|
@@ -2074,30 +2067,30 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2074
2067
|
},
|
|
2075
2068
|
(() => {
|
|
2076
2069
|
const T = [];
|
|
2077
|
-
return T.push(Se), p.collapse || T.push(
|
|
2070
|
+
return T.push(Se), p.collapse || T.push(H), T;
|
|
2078
2071
|
})()
|
|
2079
2072
|
);
|
|
2080
|
-
}, wn = (v,
|
|
2081
|
-
if (
|
|
2073
|
+
}, wn = (v, c, m, p, $, C) => {
|
|
2074
|
+
if (c.ui)
|
|
2082
2075
|
return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
|
|
2083
|
-
if (
|
|
2076
|
+
if (c.array)
|
|
2084
2077
|
return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
|
|
2085
2078
|
if (!p)
|
|
2086
2079
|
return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
|
|
2087
|
-
let L = n(
|
|
2080
|
+
let L = n(c.name);
|
|
2088
2081
|
p.collapse && be(d.value, v) && (L += " *");
|
|
2089
|
-
const
|
|
2082
|
+
const Q = _(Be, {
|
|
2090
2083
|
title: L,
|
|
2091
2084
|
collapse: p.collapse,
|
|
2092
2085
|
hasDelete: $ !== void 0 && !C,
|
|
2093
|
-
onCollapse: (
|
|
2094
|
-
p.collapse =
|
|
2086
|
+
onCollapse: (H) => {
|
|
2087
|
+
p.collapse = H;
|
|
2095
2088
|
},
|
|
2096
|
-
onMenu: (
|
|
2097
|
-
_e.emit("propTreeMenu", { x:
|
|
2089
|
+
onMenu: (H, T) => {
|
|
2090
|
+
_e.emit("propTreeMenu", { x: H, y: T, keys: v });
|
|
2098
2091
|
},
|
|
2099
2092
|
onDelete: () => {
|
|
2100
|
-
$ === void 0 || C || (m.splice($, 1),
|
|
2093
|
+
$ === void 0 || C || (m.splice($, 1), f(v.slice(0, -1), m));
|
|
2101
2094
|
}
|
|
2102
2095
|
}), Se = _(
|
|
2103
2096
|
"div",
|
|
@@ -2107,8 +2100,8 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2107
2100
|
}
|
|
2108
2101
|
},
|
|
2109
2102
|
(() => {
|
|
2110
|
-
const
|
|
2111
|
-
return
|
|
2103
|
+
const H = [];
|
|
2104
|
+
return c.children.forEach((T) => {
|
|
2112
2105
|
if (!Rt(p.children)) {
|
|
2113
2106
|
console.assert(!1);
|
|
2114
2107
|
return;
|
|
@@ -2120,11 +2113,11 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2120
2113
|
const j = Le(
|
|
2121
2114
|
v,
|
|
2122
2115
|
T,
|
|
2123
|
-
(typeof m[
|
|
2116
|
+
(typeof m[c.key] != "object" && (m[c.key] = {}, f(v, m[c.key])), m[c.key]),
|
|
2124
2117
|
p.children[T.key]
|
|
2125
2118
|
);
|
|
2126
|
-
|
|
2127
|
-
}),
|
|
2119
|
+
H.push(j);
|
|
2120
|
+
}), H;
|
|
2128
2121
|
})()
|
|
2129
2122
|
);
|
|
2130
2123
|
return _(
|
|
@@ -2135,23 +2128,23 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2135
2128
|
}
|
|
2136
2129
|
},
|
|
2137
2130
|
(() => {
|
|
2138
|
-
const
|
|
2139
|
-
return
|
|
2131
|
+
const H = [];
|
|
2132
|
+
return H.push(Q), p.collapse || H.push(Se), H;
|
|
2140
2133
|
})()
|
|
2141
2134
|
);
|
|
2142
|
-
}, An = (v,
|
|
2143
|
-
if (!
|
|
2135
|
+
}, An = (v, c, m, p, $, C) => {
|
|
2136
|
+
if (!c.ui)
|
|
2144
2137
|
return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
|
|
2145
|
-
if (!
|
|
2138
|
+
if (!c.array)
|
|
2146
2139
|
return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
|
|
2147
2140
|
if (!p)
|
|
2148
2141
|
return console.assert(!1), _("div", "renderLeafArray branch must be valid");
|
|
2149
2142
|
let L;
|
|
2150
|
-
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(
|
|
2151
|
-
let
|
|
2152
|
-
p.collapse && be(d.value, v) && (
|
|
2153
|
-
const Se = _(
|
|
2154
|
-
title:
|
|
2143
|
+
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(c), f(v, m[$])), L = m[$]) : (m[c.key] instanceof Array || (m[c.key] = N(c), f(v, m[c.key])), L = m[c.key]);
|
|
2144
|
+
let Q = n(c.name);
|
|
2145
|
+
p.collapse && be(d.value, v) && (Q += " *");
|
|
2146
|
+
const Se = _(Be, {
|
|
2147
|
+
title: Q,
|
|
2155
2148
|
collapse: p.collapse,
|
|
2156
2149
|
hasCreate: !0,
|
|
2157
2150
|
onCollapse: (T) => {
|
|
@@ -2161,9 +2154,9 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2161
2154
|
_e.emit("propTreeMenu", { x: T, y: j, keys: v });
|
|
2162
2155
|
},
|
|
2163
2156
|
onCreate: () => {
|
|
2164
|
-
L.push(N(
|
|
2157
|
+
L.push(N(c, !0)), f(v, L);
|
|
2165
2158
|
}
|
|
2166
|
-
}),
|
|
2159
|
+
}), H = _(
|
|
2167
2160
|
"div",
|
|
2168
2161
|
{
|
|
2169
2162
|
style: {
|
|
@@ -2173,7 +2166,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2173
2166
|
(() => {
|
|
2174
2167
|
const T = [];
|
|
2175
2168
|
for (let j = 0; j < L.length; j++) {
|
|
2176
|
-
const De = Le(v,
|
|
2169
|
+
const De = Le(v, c, L, void 0, j, !1);
|
|
2177
2170
|
T.push(De);
|
|
2178
2171
|
}
|
|
2179
2172
|
return T;
|
|
@@ -2188,14 +2181,14 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2188
2181
|
},
|
|
2189
2182
|
(() => {
|
|
2190
2183
|
const T = [];
|
|
2191
|
-
return T.push(Se), p.collapse || T.push(
|
|
2184
|
+
return T.push(Se), p.collapse || T.push(H), T;
|
|
2192
2185
|
})()
|
|
2193
2186
|
);
|
|
2194
|
-
}, Cn = (v,
|
|
2195
|
-
if (!
|
|
2187
|
+
}, Cn = (v, c, m, p, $) => {
|
|
2188
|
+
if (!c.ui)
|
|
2196
2189
|
return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
|
|
2197
2190
|
let C;
|
|
2198
|
-
return
|
|
2191
|
+
return c.ui === "dummy" ? C = A(v, c, m, p, $) : c.ui === "strInput" ? C = V(v, c, m, p, $) : c.ui === "numInput" ? C = W(v, c, m, p, $) : c.ui === "switch" ? C = We(v, c, m, p, $) : c.ui === "select" ? C = _n(v, c, m, p, $) : c.ui === "colorPicker" ? C = bn(v, c, m, p, $) : c.ui === "multiTypes" ? C = $n(v, c, m, p, $) : c.ui === "compSelect" ? C = Tn(v, c, m, p, $) : console.assert(!1, "renderLeafScalar not implemented"), C ? U(v, c, C) : _("div");
|
|
2199
2192
|
}, Pn = () => _(
|
|
2200
2193
|
"div",
|
|
2201
2194
|
{
|
|
@@ -2208,22 +2201,22 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2208
2201
|
const v = [];
|
|
2209
2202
|
if (l.unique && l.config.length > 0 && l.object) {
|
|
2210
2203
|
a[l.unique] || (a[l.unique] = {});
|
|
2211
|
-
const
|
|
2204
|
+
const c = a[l.unique];
|
|
2212
2205
|
l.config.forEach((m) => {
|
|
2213
|
-
|
|
2206
|
+
c[m.key] || (c[m.key] = {
|
|
2214
2207
|
collapse: !0,
|
|
2215
2208
|
children: !m.ui && m.array ? [] : {}
|
|
2216
2209
|
});
|
|
2217
|
-
const p = Le([], m, l.object,
|
|
2210
|
+
const p = Le([], m, l.object, c[m.key]);
|
|
2218
2211
|
v.push(p);
|
|
2219
2212
|
});
|
|
2220
2213
|
}
|
|
2221
2214
|
return v;
|
|
2222
2215
|
})()
|
|
2223
2216
|
);
|
|
2224
|
-
return (v,
|
|
2225
|
-
|
|
2226
|
-
|
|
2217
|
+
return (v, c) => (S(), F(He, null, [
|
|
2218
|
+
B(Pn),
|
|
2219
|
+
B(ls, {
|
|
2227
2220
|
config: l.config,
|
|
2228
2221
|
object: l.object,
|
|
2229
2222
|
"prop-states": d.value
|