x-prop-tree 0.6.8 → 0.6.10
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/common/propState.d.ts +1 -1
- package/dist/i18n/locales/en/index.d.ts +0 -2
- package/dist/i18n/locales/zhHans/index.d.ts +0 -2
- package/dist/{i18n-en-nonohi4u.js → i18n-en-g2bvdvq4.js} +0 -2
- package/dist/{i18n-zhHans-gdfh4wwz.js → i18n-zhHans-enket0x3.js} +0 -2
- package/dist/index.js +306 -299
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { provide as Me, inject as Ue, defineComponent as
|
|
1
|
+
import { provide as Me, inject as Ue, defineComponent as K, ref as R, computed as G, resolveComponent as O, createBlock as k, 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 at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as q, normalizeStyle as ie, createElementVNode as z, createCommentVNode as I, renderSlot as Un, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as Kt, withKeys as Vn, mergeProps as qt, watchEffect as vt, watch as Re, reactive as Ln, onMounted as Dn, onBeforeUnmount as jn } from "vue";
|
|
2
2
|
import { useI18n as ue } from "vue-i18n";
|
|
3
|
-
import { useViewStack as
|
|
3
|
+
import { useViewStack as ut, useColor as Te, eventBus as _e, useSystem as En } from "x-essential-lib";
|
|
4
4
|
import { getPropDefault as N, parsePixelStr as Nn, parsePercentStr as Bn } from "x-runtime-lib";
|
|
5
|
-
import { useDisplay as
|
|
6
|
-
import { globalState as
|
|
7
|
-
var
|
|
8
|
-
function
|
|
5
|
+
import { useDisplay as Rn } from "vuetify";
|
|
6
|
+
import { globalState as kn } from "x-state-lib";
|
|
7
|
+
var zt = typeof global == "object" && global && global.Object === Object && global, Fn = typeof self == "object" && self && self.Object === Object && self, Y = zt || Fn || Function("return this")(), se = Y.Symbol, It = Object.prototype, Hn = It.hasOwnProperty, Gn = It.toString, we = se ? se.toStringTag : void 0;
|
|
8
|
+
function Kn(e) {
|
|
9
9
|
var t = Hn.call(e, we), n = e[we];
|
|
10
10
|
try {
|
|
11
11
|
e[we] = void 0;
|
|
@@ -15,38 +15,38 @@ function qn(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 qn = Object.prototype, zn = qn.toString;
|
|
19
19
|
function In(e) {
|
|
20
|
-
return
|
|
20
|
+
return zn.call(e);
|
|
21
21
|
}
|
|
22
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) ? Kn(e) : In(e);
|
|
25
25
|
}
|
|
26
26
|
function de(e) {
|
|
27
27
|
return e != null && typeof e == "object";
|
|
28
28
|
}
|
|
29
29
|
var Pe = Array.isArray;
|
|
30
|
-
function
|
|
30
|
+
function ze(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 (!ze(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
|
|
42
|
-
var e = /[^.]+$/.exec(
|
|
41
|
+
var Qe = Y["__core-js_shared__"], yt = function() {
|
|
42
|
+
var e = /[^.]+$/.exec(Qe && Qe.keys && Qe.keys.IE_PROTO || "");
|
|
43
43
|
return e ? "Symbol(src)_1." + e : "";
|
|
44
44
|
}();
|
|
45
45
|
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 me(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 (!ze(e) || er(e))
|
|
67
67
|
return !1;
|
|
68
68
|
var t = Xt(e) ? ur : or;
|
|
69
|
-
return t.test(
|
|
69
|
+
return t.test(me(e));
|
|
70
70
|
}
|
|
71
71
|
function fr(e, t) {
|
|
72
72
|
return e == null ? void 0 : e[t];
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function ve(e, t) {
|
|
75
75
|
var n = fr(e, t);
|
|
76
76
|
return cr(n) ? n : void 0;
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var rt = ve(Y, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
|
|
79
79
|
function e() {
|
|
80
80
|
}
|
|
81
81
|
return function(t) {
|
|
82
|
-
if (!
|
|
82
|
+
if (!ze(t))
|
|
83
83
|
return {};
|
|
84
84
|
if (ht)
|
|
85
85
|
return ht(t);
|
|
@@ -89,7 +89,7 @@ var nt = me(Y, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
|
|
|
89
89
|
};
|
|
90
90
|
}(), _t = function() {
|
|
91
91
|
try {
|
|
92
|
-
var e =
|
|
92
|
+
var e = ve(Object, "defineProperty");
|
|
93
93
|
return e({}, "", {}), e;
|
|
94
94
|
} catch {
|
|
95
95
|
}
|
|
@@ -99,10 +99,10 @@ function pr(e, t) {
|
|
|
99
99
|
;
|
|
100
100
|
return e;
|
|
101
101
|
}
|
|
102
|
-
var
|
|
102
|
+
var mr = 9007199254740991, vr = /^(?:0|[1-9]\d*)$/;
|
|
103
103
|
function gr(e, t) {
|
|
104
104
|
var n = typeof e;
|
|
105
|
-
return t = t ??
|
|
105
|
+
return t = t ?? mr, !!t && (n == "number" || n != "symbol" && vr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
106
106
|
}
|
|
107
107
|
function yr(e, t, n) {
|
|
108
108
|
t == "__proto__" && _t ? _t(e, t, {
|
|
@@ -112,13 +112,13 @@ function yr(e, t, n) {
|
|
|
112
112
|
writable: !0
|
|
113
113
|
}) : e[t] = n;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ct(e, t) {
|
|
116
116
|
return e === t || e !== e && t !== t;
|
|
117
117
|
}
|
|
118
118
|
var hr = Object.prototype, _r = hr.hasOwnProperty;
|
|
119
119
|
function br(e, t, n) {
|
|
120
120
|
var r = e[t];
|
|
121
|
-
(!(_r.call(e, t) &&
|
|
121
|
+
(!(_r.call(e, t) && ct(r, n)) || n === void 0 && !(t in e)) && yr(e, t, n);
|
|
122
122
|
}
|
|
123
123
|
var $r = 9007199254740991;
|
|
124
124
|
function Zt(e) {
|
|
@@ -149,24 +149,24 @@ var Wt = Object.prototype, Cr = Wt.hasOwnProperty, Pr = Wt.propertyIsEnumerable,
|
|
|
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 ? 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]",
|
|
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]", Rr = "[object Number]", kr = "[object Object]", Fr = "[object RegExp]", Hr = "[object Set]", Gr = "[object String]", Kr = "[object WeakMap]", qr = "[object ArrayBuffer]", zr = "[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[qr] = x[Dr] = x[zr] = x[jr] = x[Er] = x[Nr] = x[Br] = x[Rr] = x[kr] = x[Fr] = x[Hr] = x[Gr] = x[Kr] = !1;
|
|
155
155
|
function no(e) {
|
|
156
156
|
return de(e) && Zt(e.length) && !!x[Ve(e)];
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ft(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,
|
|
163
|
+
var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = Qt && typeof module == "object" && module && !module.nodeType && module, ro = Ce && Ce.exports === Qt, et = ro && zt.process, $e = function() {
|
|
164
164
|
try {
|
|
165
165
|
var e = Ce && Ce.require && Ce.require("util").types;
|
|
166
|
-
return e ||
|
|
166
|
+
return e || et && et.binding && et.binding("util");
|
|
167
167
|
} catch {
|
|
168
168
|
}
|
|
169
|
-
}(), St = $e && $e.isTypedArray, en = St ?
|
|
169
|
+
}(), St = $e && $e.isTypedArray, en = St ? ft(St) : no, oo = Object.prototype, lo = oo.hasOwnProperty;
|
|
170
170
|
function io(e, t) {
|
|
171
171
|
var n = Pe(e), r = !n && Or(e), l = !n && !r && Ge(e), o = !n && !r && !l && en(e), i = n || r || l || o, s = i ? wr(e.length, String) : [], u = s.length;
|
|
172
172
|
for (var a in e)
|
|
@@ -194,20 +194,20 @@ 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 = ve(Object, "create");
|
|
198
198
|
function po() {
|
|
199
199
|
this.__data__ = Oe ? Oe(null) : {}, this.size = 0;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function mo(e) {
|
|
202
202
|
var t = this.has(e) && delete this.__data__[e];
|
|
203
203
|
return this.size -= t ? 1 : 0, t;
|
|
204
204
|
}
|
|
205
|
-
var
|
|
205
|
+
var vo = "__lodash_hash_undefined__", go = Object.prototype, yo = go.hasOwnProperty;
|
|
206
206
|
function ho(e) {
|
|
207
207
|
var t = this.__data__;
|
|
208
208
|
if (Oe) {
|
|
209
209
|
var n = t[e];
|
|
210
|
-
return n ===
|
|
210
|
+
return n === vo ? void 0 : n;
|
|
211
211
|
}
|
|
212
212
|
return yo.call(t, e) ? t[e] : void 0;
|
|
213
213
|
}
|
|
@@ -229,7 +229,7 @@ function pe(e) {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
pe.prototype.clear = po;
|
|
232
|
-
pe.prototype.delete =
|
|
232
|
+
pe.prototype.delete = mo;
|
|
233
233
|
pe.prototype.get = ho;
|
|
234
234
|
pe.prototype.has = $o;
|
|
235
235
|
pe.prototype.set = So;
|
|
@@ -238,7 +238,7 @@ function wo() {
|
|
|
238
238
|
}
|
|
239
239
|
function Ie(e, t) {
|
|
240
240
|
for (var n = e.length; n--; )
|
|
241
|
-
if (
|
|
241
|
+
if (ct(e[n][0], t))
|
|
242
242
|
return n;
|
|
243
243
|
return -1;
|
|
244
244
|
}
|
|
@@ -273,7 +273,7 @@ le.prototype.delete = Po;
|
|
|
273
273
|
le.prototype.get = Oo;
|
|
274
274
|
le.prototype.has = xo;
|
|
275
275
|
le.prototype.set = Mo;
|
|
276
|
-
var xe =
|
|
276
|
+
var xe = ve(Y, "Map");
|
|
277
277
|
function Uo() {
|
|
278
278
|
this.size = 0, this.__data__ = {
|
|
279
279
|
hash: new pe(),
|
|
@@ -321,10 +321,10 @@ function No(e, t) {
|
|
|
321
321
|
return e;
|
|
322
322
|
}
|
|
323
323
|
var Bo = tn(Object.getPrototypeOf, Object);
|
|
324
|
-
function
|
|
324
|
+
function Ro() {
|
|
325
325
|
this.__data__ = new le(), this.size = 0;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function ko(e) {
|
|
328
328
|
var t = this.__data__, n = t.delete(e);
|
|
329
329
|
return this.size = t.size, n;
|
|
330
330
|
}
|
|
@@ -335,7 +335,7 @@ function Ho(e) {
|
|
|
335
335
|
return this.__data__.has(e);
|
|
336
336
|
}
|
|
337
337
|
var Go = 200;
|
|
338
|
-
function
|
|
338
|
+
function Ko(e, t) {
|
|
339
339
|
var n = this.__data__;
|
|
340
340
|
if (n instanceof le) {
|
|
341
341
|
var r = n.__data__;
|
|
@@ -349,14 +349,14 @@ function te(e) {
|
|
|
349
349
|
var t = this.__data__ = new le(e);
|
|
350
350
|
this.size = t.size;
|
|
351
351
|
}
|
|
352
|
-
te.prototype.clear =
|
|
353
|
-
te.prototype.delete =
|
|
352
|
+
te.prototype.clear = Ro;
|
|
353
|
+
te.prototype.delete = ko;
|
|
354
354
|
te.prototype.get = Fo;
|
|
355
355
|
te.prototype.has = Ho;
|
|
356
|
-
te.prototype.set =
|
|
357
|
-
var nn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = nn && typeof module == "object" && module && !module.nodeType && module,
|
|
356
|
+
te.prototype.set = Ko;
|
|
357
|
+
var nn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = nn && typeof module == "object" && module && !module.nodeType && module, qo = wt && wt.exports === nn, At = qo ? Y.Buffer : void 0;
|
|
358
358
|
At && At.allocUnsafe;
|
|
359
|
-
function
|
|
359
|
+
function zo(e, t) {
|
|
360
360
|
return e.slice();
|
|
361
361
|
}
|
|
362
362
|
function Io(e, t) {
|
|
@@ -378,12 +378,12 @@ function Yo(e, t, n) {
|
|
|
378
378
|
var r = t(e);
|
|
379
379
|
return Pe(e) ? r : No(r, n(e));
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function ot(e) {
|
|
382
382
|
return Yo(e, fo, Wo);
|
|
383
383
|
}
|
|
384
|
-
var
|
|
385
|
-
(
|
|
386
|
-
var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ?
|
|
384
|
+
var lt = ve(Y, "DataView"), it = ve(Y, "Promise"), st = ve(Y, "Set"), Pt = "[object Map]", Qo = "[object Object]", Ot = "[object Promise]", xt = "[object Set]", Mt = "[object WeakMap]", Ut = "[object DataView]", el = me(lt), tl = me(xe), nl = me(it), rl = me(st), ol = me(rt), Z = Ve;
|
|
385
|
+
(lt && Z(new lt(new ArrayBuffer(1))) != Ut || xe && Z(new xe()) != Pt || it && Z(it.resolve()) != Ot || st && Z(new st()) != xt || rt && Z(new rt()) != Mt) && (Z = function(e) {
|
|
386
|
+
var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ? me(n) : "";
|
|
387
387
|
if (r)
|
|
388
388
|
switch (r) {
|
|
389
389
|
case el:
|
|
@@ -404,13 +404,13 @@ 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
|
|
408
|
-
function
|
|
407
|
+
var Ke = Y.Uint8Array;
|
|
408
|
+
function dt(e) {
|
|
409
409
|
var t = new e.constructor(e.byteLength);
|
|
410
|
-
return new
|
|
410
|
+
return new Ke(t).set(new Ke(e)), t;
|
|
411
411
|
}
|
|
412
412
|
function al(e, t) {
|
|
413
|
-
var n =
|
|
413
|
+
var n = dt(e.buffer);
|
|
414
414
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
415
415
|
}
|
|
416
416
|
var ul = /\w*$/;
|
|
@@ -423,17 +423,17 @@ function fl(e) {
|
|
|
423
423
|
return Lt ? Object(Lt.call(e)) : {};
|
|
424
424
|
}
|
|
425
425
|
function dl(e, t) {
|
|
426
|
-
var n =
|
|
426
|
+
var n = dt(e.buffer);
|
|
427
427
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
428
428
|
}
|
|
429
|
-
var pl = "[object Boolean]",
|
|
429
|
+
var pl = "[object Boolean]", ml = "[object Date]", vl = "[object Map]", gl = "[object Number]", yl = "[object RegExp]", hl = "[object Set]", _l = "[object String]", bl = "[object Symbol]", $l = "[object ArrayBuffer]", Tl = "[object DataView]", Sl = "[object Float32Array]", wl = "[object Float64Array]", Al = "[object Int8Array]", Cl = "[object Int16Array]", Pl = "[object Int32Array]", Ol = "[object Uint8Array]", xl = "[object Uint8ClampedArray]", Ml = "[object Uint16Array]", Ul = "[object Uint32Array]";
|
|
430
430
|
function Vl(e, t, n) {
|
|
431
431
|
var r = e.constructor;
|
|
432
432
|
switch (t) {
|
|
433
433
|
case $l:
|
|
434
|
-
return
|
|
434
|
+
return dt(e);
|
|
435
435
|
case pl:
|
|
436
|
-
case
|
|
436
|
+
case ml:
|
|
437
437
|
return new r(+e);
|
|
438
438
|
case Tl:
|
|
439
439
|
return al(e);
|
|
@@ -447,7 +447,7 @@ function Vl(e, t, n) {
|
|
|
447
447
|
case Ml:
|
|
448
448
|
case Ul:
|
|
449
449
|
return dl(e);
|
|
450
|
-
case
|
|
450
|
+
case vl:
|
|
451
451
|
return new r();
|
|
452
452
|
case gl:
|
|
453
453
|
case _l:
|
|
@@ -467,26 +467,26 @@ var Dl = "[object Map]";
|
|
|
467
467
|
function jl(e) {
|
|
468
468
|
return de(e) && Z(e) == Dl;
|
|
469
469
|
}
|
|
470
|
-
var Dt = $e && $e.isMap, El = Dt ?
|
|
470
|
+
var Dt = $e && $e.isMap, El = Dt ? ft(Dt) : jl, Nl = "[object Set]";
|
|
471
471
|
function Bl(e) {
|
|
472
472
|
return de(e) && Z(e) == Nl;
|
|
473
473
|
}
|
|
474
|
-
var jt = $e && $e.isSet,
|
|
475
|
-
P[rn] = P[
|
|
474
|
+
var jt = $e && $e.isSet, Rl = jt ? ft(jt) : Bl, rn = "[object Arguments]", kl = "[object Array]", Fl = "[object Boolean]", Hl = "[object Date]", Gl = "[object Error]", on = "[object Function]", Kl = "[object GeneratorFunction]", ql = "[object Map]", zl = "[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[kl] = P[Yl] = P[Ql] = P[Fl] = P[Hl] = P[ei] = P[ti] = P[ni] = P[ri] = P[oi] = P[ql] = P[zl] = 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
|
-
function
|
|
477
|
+
function ke(e, t, n, r, l, o) {
|
|
478
478
|
var i;
|
|
479
479
|
if (i !== void 0)
|
|
480
480
|
return i;
|
|
481
|
-
if (!
|
|
481
|
+
if (!ze(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 == Kl;
|
|
488
488
|
if (Ge(e))
|
|
489
|
-
return
|
|
489
|
+
return zo(e);
|
|
490
490
|
if (u == ln || u == rn || a && !l)
|
|
491
491
|
i = a ? {} : Ll(e);
|
|
492
492
|
else {
|
|
@@ -499,19 +499,19 @@ function Re(e, t, n, r, l, o) {
|
|
|
499
499
|
var d = o.get(e);
|
|
500
500
|
if (d)
|
|
501
501
|
return d;
|
|
502
|
-
o.set(e, i),
|
|
503
|
-
i.add(
|
|
502
|
+
o.set(e, i), Rl(e) ? e.forEach(function(y) {
|
|
503
|
+
i.add(ke(y, t, n, y, e, o));
|
|
504
504
|
}) : El(e) && e.forEach(function(y, h) {
|
|
505
|
-
i.set(h,
|
|
505
|
+
i.set(h, ke(y, t, n, h, e, o));
|
|
506
506
|
});
|
|
507
|
-
var
|
|
507
|
+
var c = ot, g = s ? void 0 : c(e);
|
|
508
508
|
return pr(g || e, function(y, h) {
|
|
509
|
-
g && (h = y, y = e[h]), br(i, h,
|
|
509
|
+
g && (h = y, y = e[h]), br(i, h, ke(y, t, n, h, e, o));
|
|
510
510
|
}), i;
|
|
511
511
|
}
|
|
512
512
|
var ui = 1, ci = 4;
|
|
513
513
|
function sn(e) {
|
|
514
|
-
return
|
|
514
|
+
return ke(e, ui | ci);
|
|
515
515
|
}
|
|
516
516
|
var fi = "__lodash_hash_undefined__";
|
|
517
517
|
function di(e) {
|
|
@@ -520,20 +520,20 @@ function di(e) {
|
|
|
520
520
|
function pi(e) {
|
|
521
521
|
return this.__data__.has(e);
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function qe(e) {
|
|
524
524
|
var t = -1, n = e == null ? 0 : e.length;
|
|
525
525
|
for (this.__data__ = new ge(); ++t < n; )
|
|
526
526
|
this.add(e[t]);
|
|
527
527
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
function
|
|
528
|
+
qe.prototype.add = qe.prototype.push = di;
|
|
529
|
+
qe.prototype.has = pi;
|
|
530
|
+
function mi(e, t) {
|
|
531
531
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
532
532
|
if (t(e[n], n, e))
|
|
533
533
|
return !0;
|
|
534
534
|
return !1;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function vi(e, t) {
|
|
537
537
|
return e.has(t);
|
|
538
538
|
}
|
|
539
539
|
var gi = 1, yi = 2;
|
|
@@ -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 c = -1, g = !0, y = n & yi ? new qe() : void 0;
|
|
548
|
+
for (o.set(e, t), o.set(t, e); ++c < s; ) {
|
|
549
|
+
var h = e[c], M = t[c];
|
|
550
550
|
if (r)
|
|
551
|
-
var b = i ? r(M, h,
|
|
551
|
+
var b = i ? r(M, h, c, t, e, o) : r(h, M, c, e, t, o);
|
|
552
552
|
if (b !== void 0) {
|
|
553
553
|
if (b)
|
|
554
554
|
continue;
|
|
@@ -556,8 +556,8 @@ function an(e, t, n, r, l, o) {
|
|
|
556
556
|
break;
|
|
557
557
|
}
|
|
558
558
|
if (y) {
|
|
559
|
-
if (!
|
|
560
|
-
if (!
|
|
559
|
+
if (!mi(t, function(D, w) {
|
|
560
|
+
if (!vi(y, w) && (h === D || l(h, D, n, r, o)))
|
|
561
561
|
return y.push(w);
|
|
562
562
|
})) {
|
|
563
563
|
g = !1;
|
|
@@ -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 = se ? se.prototype : void 0,
|
|
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, tt = 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,11 +590,11 @@ 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 Ke(e), new Ke(t)));
|
|
594
594
|
case Ti:
|
|
595
595
|
case Si:
|
|
596
596
|
case Ci:
|
|
597
|
-
return
|
|
597
|
+
return ct(+e, +t);
|
|
598
598
|
case wi:
|
|
599
599
|
return e.name == t.name && e.message == t.message;
|
|
600
600
|
case Pi:
|
|
@@ -613,18 +613,18 @@ function Li(e, t, n, r, l, o, i) {
|
|
|
613
613
|
var d = an(s(e), s(t), r, l, o, i);
|
|
614
614
|
return i.delete(e), d;
|
|
615
615
|
case Mi:
|
|
616
|
-
if (
|
|
617
|
-
return
|
|
616
|
+
if (tt)
|
|
617
|
+
return tt.call(e) == tt.call(t);
|
|
618
618
|
}
|
|
619
619
|
return !1;
|
|
620
620
|
}
|
|
621
621
|
var Di = 1, ji = Object.prototype, Ei = ji.hasOwnProperty;
|
|
622
622
|
function Ni(e, t, n, r, l, o) {
|
|
623
|
-
var i = n & Di, s =
|
|
623
|
+
var i = n & Di, s = ot(e), u = s.length, a = ot(t), d = a.length;
|
|
624
624
|
if (u != d && !i)
|
|
625
625
|
return !1;
|
|
626
|
-
for (var
|
|
627
|
-
var g = s[
|
|
626
|
+
for (var c = u; c--; ) {
|
|
627
|
+
var g = s[c];
|
|
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; ++c < u; ) {
|
|
637
|
+
g = s[c];
|
|
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,11 +650,11 @@ function Ni(e, t, n, r, l, o) {
|
|
|
650
650
|
}
|
|
651
651
|
return o.delete(e), o.delete(t), M;
|
|
652
652
|
}
|
|
653
|
-
var Bi = 1, Nt = "[object Arguments]", Bt = "[object Array]", Ee = "[object Object]",
|
|
654
|
-
function
|
|
653
|
+
var Bi = 1, Nt = "[object Arguments]", Bt = "[object Array]", Ee = "[object Object]", Ri = Object.prototype, Rt = Ri.hasOwnProperty;
|
|
654
|
+
function ki(e, t, n, r, l, o) {
|
|
655
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, c = a == Ee, g = u == a;
|
|
658
658
|
if (g && Ge(e)) {
|
|
659
659
|
if (!Ge(t))
|
|
660
660
|
return !1;
|
|
@@ -663,7 +663,7 @@ function Ri(e, t, n, r, l, o) {
|
|
|
663
663
|
if (g && !d)
|
|
664
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
665
|
if (!(n & Bi)) {
|
|
666
|
-
var y = d &&
|
|
666
|
+
var y = d && Rt.call(e, "__wrapped__"), h = c && Rt.call(t, "__wrapped__");
|
|
667
667
|
if (y || h) {
|
|
668
668
|
var M = y ? e.value() : e, b = h ? t.value() : t;
|
|
669
669
|
return o || (o = new te()), l(M, b, n, r, o);
|
|
@@ -672,7 +672,7 @@ function Ri(e, t, n, r, l, o) {
|
|
|
672
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 || !de(e) && !de(t) ? e !== e && t !== t :
|
|
675
|
+
return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : ki(e, t, n, r, un, l);
|
|
676
676
|
}
|
|
677
677
|
function Ze(e, t) {
|
|
678
678
|
return un(e, t);
|
|
@@ -736,7 +736,7 @@ const Ne = (e, t) => {
|
|
|
736
736
|
}
|
|
737
737
|
n = n[r];
|
|
738
738
|
}), n;
|
|
739
|
-
},
|
|
739
|
+
}, kt = (e) => !(e instanceof Array), nt = (e) => e instanceof Array, Gi = (e, t) => {
|
|
740
740
|
const n = (r, l) => {
|
|
741
741
|
if (r.ui !== l.ui || r.array !== l.array)
|
|
742
742
|
return !1;
|
|
@@ -750,10 +750,10 @@ const Ne = (e, t) => {
|
|
|
750
750
|
return !0;
|
|
751
751
|
};
|
|
752
752
|
return n(e, t);
|
|
753
|
-
},
|
|
753
|
+
}, pt = (e) => !(e instanceof Array), Je = (e) => e instanceof Array, Ki = [
|
|
754
754
|
["basic", "id"],
|
|
755
755
|
["basic", "name"]
|
|
756
|
-
],
|
|
756
|
+
], qi = (e) => Ki.find((t) => Ze(e, t)), We = (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), qi(e) ? (r.change = !1, r.change) : t.ui ? t.array && r.children && Je(r.children) ? 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 ? zi(
|
|
765
765
|
e,
|
|
766
766
|
t,
|
|
767
767
|
n,
|
|
@@ -777,12 +777,12 @@ const Ne = (e, t) => {
|
|
|
777
777
|
l,
|
|
778
778
|
o,
|
|
779
779
|
i
|
|
780
|
-
)),
|
|
780
|
+
)), zi = (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)
|
|
784
784
|
return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
|
|
785
|
-
if (!
|
|
785
|
+
if (!r.children || !Je(r.children))
|
|
786
786
|
return console.assert(!1, "execPropBranchArray state children must be array"), !1;
|
|
787
787
|
let s;
|
|
788
788
|
o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = N(t), l == null || l(e, n[o])), s = n[o]) : (n[t.key] instanceof Array || (n[t.key] = N(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
|
|
@@ -793,14 +793,14 @@ const Ne = (e, t) => {
|
|
|
793
793
|
});
|
|
794
794
|
const a = r.children[u];
|
|
795
795
|
t.children.forEach((d) => {
|
|
796
|
-
if (!
|
|
796
|
+
if (!a.children || !pt(a.children)) {
|
|
797
797
|
console.assert(!1);
|
|
798
798
|
return;
|
|
799
799
|
}
|
|
800
800
|
a.children[d.key] = {
|
|
801
801
|
change: !1,
|
|
802
802
|
children: d.array ? [] : {}
|
|
803
|
-
},
|
|
803
|
+
}, We(
|
|
804
804
|
e,
|
|
805
805
|
d,
|
|
806
806
|
s[u],
|
|
@@ -817,7 +817,7 @@ const Ne = (e, t) => {
|
|
|
817
817
|
return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
|
|
818
818
|
if (t.array)
|
|
819
819
|
return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
|
|
820
|
-
if (!
|
|
820
|
+
if (!r.children || !pt(r.children))
|
|
821
821
|
return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
|
|
822
822
|
let s;
|
|
823
823
|
o !== void 0 && !i ? (n[o] || (n[o] = {}), s = n[o]) : (n[t.key] || (n[t.key] = {}), s = n[t.key]), r.change = !1;
|
|
@@ -826,7 +826,7 @@ const Ne = (e, t) => {
|
|
|
826
826
|
r.children[a.key] = {
|
|
827
827
|
change: !1,
|
|
828
828
|
children: a.array ? [] : {}
|
|
829
|
-
},
|
|
829
|
+
}, We(e, a, s, r.children[a.key], l) && (r.change = !0);
|
|
830
830
|
}
|
|
831
831
|
return r.change;
|
|
832
832
|
}, Xi = (e, t, n, r, l, o, i) => {
|
|
@@ -834,7 +834,7 @@ const Ne = (e, t) => {
|
|
|
834
834
|
return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
|
|
835
835
|
if (!t.array)
|
|
836
836
|
return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
|
|
837
|
-
if (!
|
|
837
|
+
if (!r.children || !Je(r.children))
|
|
838
838
|
return console.assert(!1, "execPropLeafArray state children must be array"), !1;
|
|
839
839
|
let s;
|
|
840
840
|
o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = N(t), l == null || l(e, n[o])), s = n[o]) : (n[t.key] instanceof Array || (n[t.key] = N(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
|
|
@@ -842,7 +842,7 @@ const Ne = (e, t) => {
|
|
|
842
842
|
r.children[u] = {
|
|
843
843
|
change: !1,
|
|
844
844
|
children: {}
|
|
845
|
-
},
|
|
845
|
+
}, We(e, t, s, r.children[u], l, u, !1) && (r.change = !0);
|
|
846
846
|
return r.change || (r.change = !Ze(s, N(t))), r.change;
|
|
847
847
|
}, Zi = (e, t, n, r, l) => {
|
|
848
848
|
if (!e.ui)
|
|
@@ -859,16 +859,18 @@ const Ne = (e, t) => {
|
|
|
859
859
|
l[o.key] = {
|
|
860
860
|
change: !1,
|
|
861
861
|
children: o.array ? [] : {}
|
|
862
|
-
},
|
|
862
|
+
}, We([], o, n, l[o.key], r);
|
|
863
863
|
}), e.value = l;
|
|
864
864
|
}, be = (e, t) => {
|
|
865
865
|
let n = { change: !1, children: e };
|
|
866
866
|
return t.forEach((r) => {
|
|
867
867
|
if (!n)
|
|
868
868
|
return console.assert(!1, `isPropChanged state must be valid keys=${t}`), !1;
|
|
869
|
-
|
|
869
|
+
if (!n.children)
|
|
870
|
+
return console.assert(!1, `isPropChanged state must be valid keys=${t}`), !1;
|
|
871
|
+
typeof r == "string" ? pt(n.children) && (n = n.children[r]) : Je(n.children) && (n = n.children[r]);
|
|
870
872
|
}), (n == null ? void 0 : n.change) ?? !1;
|
|
871
|
-
}, fn = Symbol(), dn = Symbol(), pn = Symbol(),
|
|
873
|
+
}, fn = Symbol(), dn = Symbol(), pn = Symbol(), mn = Symbol(), vn = Symbol();
|
|
872
874
|
function Ji(e) {
|
|
873
875
|
Me(fn, e);
|
|
874
876
|
}
|
|
@@ -888,21 +890,21 @@ function ts() {
|
|
|
888
890
|
return Ue(pn);
|
|
889
891
|
}
|
|
890
892
|
function ns(e) {
|
|
891
|
-
Me(
|
|
893
|
+
Me(mn, e);
|
|
892
894
|
}
|
|
893
895
|
function rs() {
|
|
894
|
-
return Ue(
|
|
896
|
+
return Ue(mn);
|
|
895
897
|
}
|
|
896
898
|
function os(e) {
|
|
897
|
-
Me(
|
|
899
|
+
Me(vn, e);
|
|
898
900
|
}
|
|
899
901
|
function gn() {
|
|
900
|
-
return Ue(
|
|
902
|
+
return Ue(vn);
|
|
901
903
|
}
|
|
902
|
-
const ls = /* @__PURE__ */
|
|
904
|
+
const ls = /* @__PURE__ */ K({
|
|
903
905
|
__name: "menu",
|
|
904
906
|
setup(e) {
|
|
905
|
-
const { t } = ue(), n = Wi(), r = Qi(), l = ts(), o = rs(), i =
|
|
907
|
+
const { t } = ue(), n = Wi(), r = Qi(), l = ts(), o = rs(), i = R(0), s = R(0), u = R([]), a = G(() => [i.value, s.value]), d = (b) => {
|
|
906
908
|
const D = () => !(u.value.length <= 0 || !be(l.value, u.value)), w = () => {
|
|
907
909
|
if (!D())
|
|
908
910
|
return;
|
|
@@ -945,7 +947,7 @@ const ls = /* @__PURE__ */ q({
|
|
|
945
947
|
title: t("x-prop-tree.reset"),
|
|
946
948
|
func: w
|
|
947
949
|
});
|
|
948
|
-
},
|
|
950
|
+
}, c = (b) => {
|
|
949
951
|
const D = () => {
|
|
950
952
|
const w = Ne(n.value, u.value), U = Ae(r.value, u.value);
|
|
951
953
|
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: w, object: U }));
|
|
@@ -984,13 +986,13 @@ const ls = /* @__PURE__ */ q({
|
|
|
984
986
|
});
|
|
985
987
|
}, y = G(() => {
|
|
986
988
|
const b = [];
|
|
987
|
-
return d(b),
|
|
989
|
+
return d(b), c(b), g(b), b;
|
|
988
990
|
}), h = (b) => {
|
|
989
991
|
i.value = b.x, s.value = b.y, u.value = b.keys;
|
|
990
|
-
}, { open: M } =
|
|
992
|
+
}, { open: M } = ut("propTreeMenu", h);
|
|
991
993
|
return (b, D) => {
|
|
992
994
|
const w = O("v-list-item-title"), U = O("v-list-item"), A = O("v-list"), V = O("v-menu");
|
|
993
|
-
return S(),
|
|
995
|
+
return S(), k(V, {
|
|
994
996
|
modelValue: E(M),
|
|
995
997
|
"onUpdate:modelValue": D[0] || (D[0] = (W) => Fe(M) ? M.value = W : null),
|
|
996
998
|
"location-strategy": "connected",
|
|
@@ -1000,15 +1002,15 @@ const ls = /* @__PURE__ */ q({
|
|
|
1000
1002
|
default: J(() => [
|
|
1001
1003
|
B(A, null, {
|
|
1002
1004
|
default: J(() => [
|
|
1003
|
-
(S(!0), F(He, null, Ht(y.value, (W,
|
|
1004
|
-
key:
|
|
1005
|
+
(S(!0), F(He, null, Ht(y.value, (W, Ye) => (S(), k(U, {
|
|
1006
|
+
key: Ye,
|
|
1005
1007
|
link: "",
|
|
1006
1008
|
onClick: W.func
|
|
1007
1009
|
}, {
|
|
1008
1010
|
default: J(() => [
|
|
1009
1011
|
B(w, null, {
|
|
1010
1012
|
default: J(() => [
|
|
1011
|
-
|
|
1013
|
+
at(ne(W.title), 1)
|
|
1012
1014
|
]),
|
|
1013
1015
|
_: 2
|
|
1014
1016
|
}, 1024)
|
|
@@ -1025,7 +1027,7 @@ const ls = /* @__PURE__ */ q({
|
|
|
1025
1027
|
}
|
|
1026
1028
|
});
|
|
1027
1029
|
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__ */
|
|
1030
|
+
const Be = /* @__PURE__ */ K({
|
|
1029
1031
|
__name: "title",
|
|
1030
1032
|
props: {
|
|
1031
1033
|
title: {},
|
|
@@ -1036,7 +1038,7 @@ const Be = /* @__PURE__ */ q({
|
|
|
1036
1038
|
},
|
|
1037
1039
|
emits: ["collapse", "menu", "create", "delete"],
|
|
1038
1040
|
setup(e, { emit: t }) {
|
|
1039
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o =
|
|
1041
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = R(!1), i = G(() => ({
|
|
1040
1042
|
background: o.value ? r.value : n.value,
|
|
1041
1043
|
height: "36px",
|
|
1042
1044
|
marginBottom: "1px",
|
|
@@ -1047,46 +1049,46 @@ const Be = /* @__PURE__ */ q({
|
|
|
1047
1049
|
l("menu", a.clientX, a.clientY);
|
|
1048
1050
|
};
|
|
1049
1051
|
return (a, d) => {
|
|
1050
|
-
const
|
|
1052
|
+
const c = O("v-icon"), g = O("v-spacer"), y = ae("ripple");
|
|
1051
1053
|
return re((S(), F("div", {
|
|
1052
1054
|
class: "d-flex align-center cursor-pointer",
|
|
1053
1055
|
style: ie(i.value),
|
|
1054
1056
|
onClick: s,
|
|
1055
|
-
onContextmenu:
|
|
1057
|
+
onContextmenu: q(u, ["prevent"]),
|
|
1056
1058
|
onMouseover: d[2] || (d[2] = (h) => o.value = !0),
|
|
1057
1059
|
onMouseout: d[3] || (d[3] = (h) => o.value = !1)
|
|
1058
1060
|
}, [
|
|
1059
|
-
B(
|
|
1061
|
+
B(c, {
|
|
1060
1062
|
class: "mr-1",
|
|
1061
1063
|
icon: a.collapse ? E(hn) : E(yn)
|
|
1062
1064
|
}, null, 8, ["icon"]),
|
|
1063
|
-
|
|
1065
|
+
z("span", null, ne(a.title), 1),
|
|
1064
1066
|
B(g),
|
|
1065
|
-
a.hasCreate ? (S(),
|
|
1067
|
+
a.hasCreate ? (S(), k(c, {
|
|
1066
1068
|
key: 0,
|
|
1067
1069
|
class: "mx-3",
|
|
1068
1070
|
icon: E(ss),
|
|
1069
|
-
onClick: d[0] || (d[0] =
|
|
1071
|
+
onClick: d[0] || (d[0] = q((h) => l("create"), ["stop"]))
|
|
1070
1072
|
}, null, 8, ["icon"])) : I("", !0),
|
|
1071
|
-
a.hasDelete ? (S(),
|
|
1073
|
+
a.hasDelete ? (S(), k(c, {
|
|
1072
1074
|
key: 1,
|
|
1073
1075
|
class: "mx-3",
|
|
1074
1076
|
icon: E(ye),
|
|
1075
|
-
onClick: d[1] || (d[1] =
|
|
1077
|
+
onClick: d[1] || (d[1] = q((h) => l("delete", a.index), ["stop"]))
|
|
1076
1078
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1077
1079
|
], 36)), [
|
|
1078
1080
|
[y]
|
|
1079
1081
|
]);
|
|
1080
1082
|
};
|
|
1081
1083
|
}
|
|
1082
|
-
}), as = /* @__PURE__ */
|
|
1084
|
+
}), as = /* @__PURE__ */ K({
|
|
1083
1085
|
__name: "entry",
|
|
1084
1086
|
props: {
|
|
1085
1087
|
minHeight: {}
|
|
1086
1088
|
},
|
|
1087
1089
|
emits: ["menu"],
|
|
1088
1090
|
setup(e, { emit: t }) {
|
|
1089
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o =
|
|
1091
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = R(!1), i = G(() => ({
|
|
1090
1092
|
background: o.value ? r.value : n.value,
|
|
1091
1093
|
minHeight: e.minHeight,
|
|
1092
1094
|
paddingRight: "4px",
|
|
@@ -1100,9 +1102,9 @@ const Be = /* @__PURE__ */ q({
|
|
|
1100
1102
|
return re((S(), F("div", {
|
|
1101
1103
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1102
1104
|
style: ie(i.value),
|
|
1103
|
-
onContextmenu:
|
|
1104
|
-
onMouseover: a[0] || (a[0] = (
|
|
1105
|
-
onMouseout: a[1] || (a[1] = (
|
|
1105
|
+
onContextmenu: q(s, ["prevent"]),
|
|
1106
|
+
onMouseover: a[0] || (a[0] = (c) => o.value = !0),
|
|
1107
|
+
onMouseout: a[1] || (a[1] = (c) => o.value = !1)
|
|
1106
1108
|
}, [
|
|
1107
1109
|
Un(u.$slots, "default")
|
|
1108
1110
|
], 36)), [
|
|
@@ -1114,17 +1116,18 @@ const Be = /* @__PURE__ */ q({
|
|
|
1114
1116
|
function us(e, t, n) {
|
|
1115
1117
|
const { t: r } = ue();
|
|
1116
1118
|
return { renderProp: (o, i, s) => {
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
+
const u = o.at(-1);
|
|
1120
|
+
let d = typeof u == "number" ? `[${u + 1}]` : r(i.name);
|
|
1121
|
+
return be(e.value, o) && (d += " *"), _(
|
|
1119
1122
|
as,
|
|
1120
1123
|
{
|
|
1121
1124
|
minHeight: t.value,
|
|
1122
|
-
onMenu: (
|
|
1123
|
-
_e.emit("propTreeMenu", { x:
|
|
1125
|
+
onMenu: (c, g) => {
|
|
1126
|
+
_e.emit("propTreeMenu", { x: c, y: g, keys: o });
|
|
1124
1127
|
}
|
|
1125
1128
|
},
|
|
1126
1129
|
() => [
|
|
1127
|
-
_("span", { class: "ml-1", innerHTML:
|
|
1130
|
+
_("span", { class: "ml-1", innerHTML: d }),
|
|
1128
1131
|
_("div", { style: { width: n.value } }, s)
|
|
1129
1132
|
]
|
|
1130
1133
|
);
|
|
@@ -1156,7 +1159,7 @@ function cs(e) {
|
|
|
1156
1159
|
ce(n, r, l, e, o, i);
|
|
1157
1160
|
} };
|
|
1158
1161
|
}
|
|
1159
|
-
const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PURE__ */
|
|
1162
|
+
const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PURE__ */ K({
|
|
1160
1163
|
__name: "strInput",
|
|
1161
1164
|
props: /* @__PURE__ */ X({
|
|
1162
1165
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1186,11 +1189,11 @@ const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PU
|
|
|
1186
1189
|
{ stop: !0 }
|
|
1187
1190
|
]
|
|
1188
1191
|
]),
|
|
1189
|
-
l.hasDelete ? (S(),
|
|
1192
|
+
l.hasDelete ? (S(), k(s, {
|
|
1190
1193
|
key: 0,
|
|
1191
1194
|
class: "mx-2",
|
|
1192
1195
|
icon: E(ye),
|
|
1193
|
-
onClick: o[1] || (o[1] =
|
|
1196
|
+
onClick: o[1] || (o[1] = q((a) => r("delete"), ["stop"]))
|
|
1194
1197
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1195
1198
|
]);
|
|
1196
1199
|
};
|
|
@@ -1224,7 +1227,7 @@ function ps(e) {
|
|
|
1224
1227
|
readonly: r.static || r.readonly
|
|
1225
1228
|
}) };
|
|
1226
1229
|
}
|
|
1227
|
-
const
|
|
1230
|
+
const ms = { class: "d-flex justify-space-between align-center" }, vs = /* @__PURE__ */ K({
|
|
1228
1231
|
__name: "numInput",
|
|
1229
1232
|
props: /* @__PURE__ */ X({
|
|
1230
1233
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1243,7 +1246,7 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
|
|
|
1243
1246
|
const n = oe(e, "modelValue"), r = t;
|
|
1244
1247
|
return (l, o) => {
|
|
1245
1248
|
const i = O("v-number-input"), s = O("v-icon"), u = ae("ripple");
|
|
1246
|
-
return S(), F("div",
|
|
1249
|
+
return S(), F("div", ms, [
|
|
1247
1250
|
re(B(i, {
|
|
1248
1251
|
modelValue: n.value,
|
|
1249
1252
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
@@ -1264,18 +1267,18 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
|
|
|
1264
1267
|
{ stop: !0 }
|
|
1265
1268
|
]
|
|
1266
1269
|
]),
|
|
1267
|
-
l.hasDelete ? (S(),
|
|
1270
|
+
l.hasDelete ? (S(), k(s, {
|
|
1268
1271
|
key: 0,
|
|
1269
1272
|
class: "mx-2",
|
|
1270
1273
|
icon: E(ye),
|
|
1271
|
-
onClick: o[1] || (o[1] =
|
|
1274
|
+
onClick: o[1] || (o[1] = q((a) => r("delete"), ["stop"]))
|
|
1272
1275
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1273
1276
|
]);
|
|
1274
1277
|
};
|
|
1275
1278
|
}
|
|
1276
1279
|
});
|
|
1277
1280
|
function gs(e) {
|
|
1278
|
-
return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(
|
|
1281
|
+
return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(vs, {
|
|
1279
1282
|
modelValue: ce(
|
|
1280
1283
|
n,
|
|
1281
1284
|
r,
|
|
@@ -1299,10 +1302,14 @@ function gs(e) {
|
|
|
1299
1302
|
onDelete: () => {
|
|
1300
1303
|
o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
|
|
1301
1304
|
},
|
|
1305
|
+
precision: r.precision,
|
|
1306
|
+
min: r.min,
|
|
1307
|
+
max: r.max,
|
|
1308
|
+
step: r.step,
|
|
1302
1309
|
readonly: r.readonly
|
|
1303
1310
|
}) };
|
|
1304
1311
|
}
|
|
1305
|
-
const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PURE__ */
|
|
1312
|
+
const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PURE__ */ K({
|
|
1306
1313
|
__name: "switch",
|
|
1307
1314
|
props: /* @__PURE__ */ X({
|
|
1308
1315
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1326,11 +1333,11 @@ const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PU
|
|
|
1326
1333
|
"hide-details": "",
|
|
1327
1334
|
readonly: l.readonly
|
|
1328
1335
|
}, null, 8, ["modelValue", "readonly"]),
|
|
1329
|
-
l.hasDelete ? (S(),
|
|
1336
|
+
l.hasDelete ? (S(), k(s, {
|
|
1330
1337
|
key: 0,
|
|
1331
1338
|
class: "mx-2",
|
|
1332
1339
|
icon: E(ye),
|
|
1333
|
-
onClick: o[1] || (o[1] =
|
|
1340
|
+
onClick: o[1] || (o[1] = q((u) => r("delete"), ["stop"]))
|
|
1334
1341
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1335
1342
|
]);
|
|
1336
1343
|
};
|
|
@@ -1364,7 +1371,7 @@ function _s(e) {
|
|
|
1364
1371
|
readonly: r.readonly
|
|
1365
1372
|
}) };
|
|
1366
1373
|
}
|
|
1367
|
-
const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PURE__ */
|
|
1374
|
+
const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PURE__ */ K({
|
|
1368
1375
|
__name: "select",
|
|
1369
1376
|
props: /* @__PURE__ */ X({
|
|
1370
1377
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1396,11 +1403,11 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
|
|
|
1396
1403
|
{ stop: !0 }
|
|
1397
1404
|
]
|
|
1398
1405
|
]),
|
|
1399
|
-
l.hasDelete ? (S(),
|
|
1406
|
+
l.hasDelete ? (S(), k(s, {
|
|
1400
1407
|
key: 0,
|
|
1401
1408
|
class: "mx-2",
|
|
1402
1409
|
icon: E(ye),
|
|
1403
|
-
onClick: o[1] || (o[1] =
|
|
1410
|
+
onClick: o[1] || (o[1] = q((a) => r("delete"), ["stop"]))
|
|
1404
1411
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1405
1412
|
]);
|
|
1406
1413
|
};
|
|
@@ -1444,7 +1451,7 @@ function Ts(e) {
|
|
|
1444
1451
|
readonly: l.readonly
|
|
1445
1452
|
}) };
|
|
1446
1453
|
}
|
|
1447
|
-
const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-grey ml-1" }, As = /* @__PURE__ */
|
|
1454
|
+
const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-grey ml-1" }, As = /* @__PURE__ */ K({
|
|
1448
1455
|
__name: "group",
|
|
1449
1456
|
props: {
|
|
1450
1457
|
id: {},
|
|
@@ -1454,14 +1461,14 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1454
1461
|
},
|
|
1455
1462
|
emits: ["x-click"],
|
|
1456
1463
|
setup(e, { emit: t }) {
|
|
1457
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i =
|
|
1464
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = R(!1), s = G(() => ({
|
|
1458
1465
|
background: i.value ? r.value : n.value,
|
|
1459
1466
|
height: "30px",
|
|
1460
1467
|
marginBottom: "1px",
|
|
1461
1468
|
userSelect: "none"
|
|
1462
1469
|
}));
|
|
1463
1470
|
return (u, a) => {
|
|
1464
|
-
const d = O("v-icon"),
|
|
1471
|
+
const d = O("v-icon"), c = ae("ripple");
|
|
1465
1472
|
return re((S(), F("div", {
|
|
1466
1473
|
class: "d-flex align-center cursor-pointer",
|
|
1467
1474
|
style: ie(s.value),
|
|
@@ -1473,14 +1480,14 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1473
1480
|
icon: l.collapse ? E(hn) : E(yn),
|
|
1474
1481
|
size: "small"
|
|
1475
1482
|
}, null, 8, ["icon"]),
|
|
1476
|
-
|
|
1477
|
-
|
|
1483
|
+
z("span", Ss, ne(l.title), 1),
|
|
1484
|
+
z("span", ws, ne(l.count), 1)
|
|
1478
1485
|
], 36)), [
|
|
1479
|
-
[
|
|
1486
|
+
[c]
|
|
1480
1487
|
]);
|
|
1481
1488
|
};
|
|
1482
1489
|
}
|
|
1483
|
-
}), Cs = { class: "text-subtitle-1 ml-6" }, Ps = /* @__PURE__ */
|
|
1490
|
+
}), Cs = { class: "text-subtitle-1 ml-6" }, Ps = /* @__PURE__ */ K({
|
|
1484
1491
|
__name: "item",
|
|
1485
1492
|
props: {
|
|
1486
1493
|
id: {},
|
|
@@ -1488,7 +1495,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1488
1495
|
},
|
|
1489
1496
|
emits: ["x-click"],
|
|
1490
1497
|
setup(e, { emit: t }) {
|
|
1491
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i =
|
|
1498
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = R(!1), s = G(() => ({
|
|
1492
1499
|
background: i.value ? r.value : n.value,
|
|
1493
1500
|
height: "48px",
|
|
1494
1501
|
marginBottom: "1px",
|
|
@@ -1499,11 +1506,11 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1499
1506
|
return re((S(), F("div", {
|
|
1500
1507
|
class: "d-flex align-center cursor-pointer",
|
|
1501
1508
|
style: ie(s.value),
|
|
1502
|
-
onClick: a[0] || (a[0] = (
|
|
1503
|
-
onMouseover: a[1] || (a[1] = (
|
|
1504
|
-
onMouseout: a[2] || (a[2] = (
|
|
1509
|
+
onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
|
|
1510
|
+
onMouseover: a[1] || (a[1] = (c) => i.value = !0),
|
|
1511
|
+
onMouseout: a[2] || (a[2] = (c) => i.value = !1)
|
|
1505
1512
|
}, [
|
|
1506
|
-
|
|
1513
|
+
z("span", Cs, ne(l.title), 1)
|
|
1507
1514
|
], 36)), [
|
|
1508
1515
|
[d]
|
|
1509
1516
|
]);
|
|
@@ -1512,7 +1519,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1512
1519
|
}), Os = { key: 0 }, xs = {
|
|
1513
1520
|
key: 1,
|
|
1514
1521
|
class: "text-body-2 text-grey ml-3"
|
|
1515
|
-
}, Ms = /* @__PURE__ */
|
|
1522
|
+
}, Ms = /* @__PURE__ */ K({
|
|
1516
1523
|
__name: "index",
|
|
1517
1524
|
props: {
|
|
1518
1525
|
modelValue: {},
|
|
@@ -1532,7 +1539,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1532
1539
|
(S(!0), F(He, null, Ht(E(l), (a) => (S(), F(He, {
|
|
1533
1540
|
key: a.id
|
|
1534
1541
|
}, [
|
|
1535
|
-
a.type === 0 ? (S(),
|
|
1542
|
+
a.type === 0 ? (S(), k(As, {
|
|
1536
1543
|
key: 0,
|
|
1537
1544
|
id: a.id,
|
|
1538
1545
|
title: a.name,
|
|
@@ -1540,7 +1547,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1540
1547
|
count: a.count ?? 0,
|
|
1541
1548
|
onXClick: o
|
|
1542
1549
|
}, null, 8, ["id", "title", "collapse", "count"])) : I("", !0),
|
|
1543
|
-
a.type === 1 && a.show ? (S(),
|
|
1550
|
+
a.type === 1 && a.show ? (S(), k(Ps, {
|
|
1544
1551
|
key: 1,
|
|
1545
1552
|
id: a.id,
|
|
1546
1553
|
title: a.name,
|
|
@@ -1549,7 +1556,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1549
1556
|
], 64))), 128))
|
|
1550
1557
|
])) : (S(), F("div", xs, ne(E(t)("x-prop-tree.noComp")), 1));
|
|
1551
1558
|
}
|
|
1552
|
-
}), Us = { class: "text-subtitle-1 ml-3" }, Vs = /* @__PURE__ */
|
|
1559
|
+
}), Us = { class: "text-subtitle-1 ml-3" }, Vs = /* @__PURE__ */ K({
|
|
1553
1560
|
__name: "index",
|
|
1554
1561
|
props: {
|
|
1555
1562
|
modelValue: {},
|
|
@@ -1557,7 +1564,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1557
1564
|
},
|
|
1558
1565
|
emits: ["update:modelValue"],
|
|
1559
1566
|
setup(e) {
|
|
1560
|
-
const { t } = ue(), n =
|
|
1567
|
+
const { t } = ue(), n = Rn(), { sysBarAvail: r } = En(), { backgroundColor1: l } = Te(), o = oe(e, "modelValue"), i = gn(), s = G(() => {
|
|
1561
1568
|
let g = "100%";
|
|
1562
1569
|
return n.mdAndUp.value && (g = "400px"), {
|
|
1563
1570
|
background: l.value,
|
|
@@ -1574,45 +1581,45 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1574
1581
|
height: "60px"
|
|
1575
1582
|
})), d = G(() => {
|
|
1576
1583
|
if (!o.value)
|
|
1577
|
-
return t("x-
|
|
1584
|
+
return t("x-runtime-lib.notSet");
|
|
1578
1585
|
const g = cn(i, o.value);
|
|
1579
1586
|
return g ? g.name : t("x-runtime-lib.compNotAvail");
|
|
1580
|
-
}), { open:
|
|
1581
|
-
return
|
|
1582
|
-
|
|
1587
|
+
}), { open: c } = ut(`propTreeCompSelectDlg${Gt()}`);
|
|
1588
|
+
return Kt(() => {
|
|
1589
|
+
c.value = !1;
|
|
1583
1590
|
}), (g, y) => {
|
|
1584
1591
|
const h = O("v-btn"), M = O("v-sheet"), b = O("v-icon"), D = O("v-dialog");
|
|
1585
|
-
return S(),
|
|
1586
|
-
modelValue: E(
|
|
1587
|
-
"onUpdate:modelValue": y[5] || (y[5] = (w) => Fe(
|
|
1592
|
+
return S(), k(D, {
|
|
1593
|
+
modelValue: E(c),
|
|
1594
|
+
"onUpdate:modelValue": y[5] || (y[5] = (w) => Fe(c) ? c.value = w : null),
|
|
1588
1595
|
transition: "scroll-x-reverse-transition",
|
|
1589
1596
|
persistent: "",
|
|
1590
1597
|
"no-click-animation": "",
|
|
1591
1598
|
fullscreen: "",
|
|
1592
|
-
onKeydown: y[6] || (y[6] = Vn(
|
|
1599
|
+
onKeydown: y[6] || (y[6] = Vn(q((w) => c.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1593
1600
|
}, {
|
|
1594
1601
|
activator: J(({ props: w }) => [
|
|
1595
|
-
B(h,
|
|
1602
|
+
B(h, qt(w, {
|
|
1596
1603
|
density: "comfortable",
|
|
1597
1604
|
block: ""
|
|
1598
1605
|
}), {
|
|
1599
1606
|
default: J(() => [
|
|
1600
|
-
|
|
1607
|
+
at(ne(d.value), 1)
|
|
1601
1608
|
]),
|
|
1602
1609
|
_: 2
|
|
1603
1610
|
}, 1040)
|
|
1604
1611
|
]),
|
|
1605
1612
|
default: J(() => [
|
|
1606
|
-
|
|
1613
|
+
z("div", {
|
|
1607
1614
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1608
|
-
onClick: y[3] || (y[3] =
|
|
1609
|
-
onContextmenu: y[4] || (y[4] =
|
|
1615
|
+
onClick: y[3] || (y[3] = q((w) => c.value = !1, ["self"])),
|
|
1616
|
+
onContextmenu: y[4] || (y[4] = q((w) => c.value = !1, ["self", "prevent"]))
|
|
1610
1617
|
}, [
|
|
1611
|
-
|
|
1618
|
+
z("div", {
|
|
1612
1619
|
class: "elevation-2",
|
|
1613
1620
|
style: ie(s.value)
|
|
1614
1621
|
}, [
|
|
1615
|
-
E(r) ? (S(),
|
|
1622
|
+
E(r) ? (S(), k(M, {
|
|
1616
1623
|
key: 0,
|
|
1617
1624
|
color: "transparent",
|
|
1618
1625
|
height: 24
|
|
@@ -1625,23 +1632,23 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1625
1632
|
default: J(() => [
|
|
1626
1633
|
B(b, {
|
|
1627
1634
|
icon: E(is),
|
|
1628
|
-
onClick: y[0] || (y[0] = (w) =>
|
|
1635
|
+
onClick: y[0] || (y[0] = (w) => c.value = !1)
|
|
1629
1636
|
}, null, 8, ["icon"]),
|
|
1630
|
-
|
|
1637
|
+
z("span", Us, ne(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
1631
1638
|
]),
|
|
1632
1639
|
_: 1
|
|
1633
1640
|
}),
|
|
1634
|
-
|
|
1641
|
+
z("div", {
|
|
1635
1642
|
class: "overflow-y-auto",
|
|
1636
1643
|
style: ie(u.value)
|
|
1637
1644
|
}, [
|
|
1638
1645
|
B(Ms, {
|
|
1639
1646
|
modelValue: o.value,
|
|
1640
1647
|
"onUpdate:modelValue": y[1] || (y[1] = (w) => o.value = w),
|
|
1641
|
-
open: E(
|
|
1642
|
-
"onUpdate:open": y[2] || (y[2] = (w) => Fe(
|
|
1648
|
+
open: E(c),
|
|
1649
|
+
"onUpdate:open": y[2] || (y[2] = (w) => Fe(c) ? c.value = w : null)
|
|
1643
1650
|
}, null, 8, ["modelValue", "open"]),
|
|
1644
|
-
|
|
1651
|
+
z("div", {
|
|
1645
1652
|
style: ie(a.value)
|
|
1646
1653
|
}, null, 4)
|
|
1647
1654
|
], 4)
|
|
@@ -1676,7 +1683,7 @@ function Ls(e) {
|
|
|
1676
1683
|
}
|
|
1677
1684
|
}) };
|
|
1678
1685
|
}
|
|
1679
|
-
const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PURE__ */
|
|
1686
|
+
const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PURE__ */ K({
|
|
1680
1687
|
__name: "colorPicker",
|
|
1681
1688
|
props: /* @__PURE__ */ X({
|
|
1682
1689
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1692,40 +1699,40 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1692
1699
|
return e.hasDelete && (u = "calc(100% - 37px)"), {
|
|
1693
1700
|
width: u
|
|
1694
1701
|
};
|
|
1695
|
-
}), i = G(() => e.readonly), { open: s } =
|
|
1696
|
-
return
|
|
1702
|
+
}), i = G(() => e.readonly), { open: s } = ut(`propTreeColorPickerMenu${Gt()}`);
|
|
1703
|
+
return Kt(() => {
|
|
1697
1704
|
s.value = !1;
|
|
1698
1705
|
}), (u, a) => {
|
|
1699
|
-
const d = O("v-btn"),
|
|
1700
|
-
return S(),
|
|
1706
|
+
const d = O("v-btn"), c = O("v-icon"), g = O("v-color-picker"), y = O("v-menu");
|
|
1707
|
+
return S(), k(y, {
|
|
1701
1708
|
modelValue: E(s),
|
|
1702
1709
|
"onUpdate:modelValue": a[2] || (a[2] = (h) => Fe(s) ? s.value = h : null),
|
|
1703
1710
|
"close-on-content-click": !1,
|
|
1704
1711
|
scrim: "transparent"
|
|
1705
1712
|
}, {
|
|
1706
1713
|
activator: J(({ props: h }) => [
|
|
1707
|
-
|
|
1708
|
-
|
|
1714
|
+
z("div", Ds, [
|
|
1715
|
+
z("div", {
|
|
1709
1716
|
class: "flex-grow-1",
|
|
1710
1717
|
style: ie(o.value)
|
|
1711
1718
|
}, [
|
|
1712
|
-
B(d,
|
|
1719
|
+
B(d, qt(h, {
|
|
1713
1720
|
density: "comfortable",
|
|
1714
1721
|
color: r.value,
|
|
1715
1722
|
block: "",
|
|
1716
1723
|
disabled: i.value
|
|
1717
1724
|
}), {
|
|
1718
1725
|
default: J(() => [
|
|
1719
|
-
|
|
1726
|
+
at(ne(r.value ? r.value : E(n)("x-runtime-lib.notSet")), 1)
|
|
1720
1727
|
]),
|
|
1721
1728
|
_: 2
|
|
1722
1729
|
}, 1040, ["color", "disabled"])
|
|
1723
1730
|
], 4),
|
|
1724
|
-
u.hasDelete ? (S(),
|
|
1731
|
+
u.hasDelete ? (S(), k(c, {
|
|
1725
1732
|
key: 0,
|
|
1726
1733
|
class: "mx-2",
|
|
1727
1734
|
icon: E(ye),
|
|
1728
|
-
onClick: a[0] || (a[0] =
|
|
1735
|
+
onClick: a[0] || (a[0] = q((M) => l("delete"), ["stop"]))
|
|
1729
1736
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1730
1737
|
])
|
|
1731
1738
|
]),
|
|
@@ -1771,7 +1778,7 @@ function Es(e) {
|
|
|
1771
1778
|
readonly: r.readonly
|
|
1772
1779
|
}) };
|
|
1773
1780
|
}
|
|
1774
|
-
const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { class: "flex-grow-1" },
|
|
1781
|
+
const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { class: "flex-grow-1" }, Rs = /* @__PURE__ */ K({
|
|
1775
1782
|
__name: "multiTypes",
|
|
1776
1783
|
props: /* @__PURE__ */ X({
|
|
1777
1784
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1782,33 +1789,33 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
|
|
|
1782
1789
|
}),
|
|
1783
1790
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1784
1791
|
setup(e, { emit: t }) {
|
|
1785
|
-
const { t: n } = ue(), r = oe(e, "modelValue"), l = t, o =
|
|
1792
|
+
const { t: n } = ue(), r = oe(e, "modelValue"), l = t, o = R(0), i = G(() => {
|
|
1786
1793
|
const d = [];
|
|
1787
|
-
return e.types.forEach(({
|
|
1794
|
+
return e.types.forEach(({ title: c }, g) => {
|
|
1788
1795
|
d.push({
|
|
1789
|
-
title: n(
|
|
1796
|
+
title: n(c),
|
|
1790
1797
|
value: g
|
|
1791
1798
|
});
|
|
1792
1799
|
}), d;
|
|
1793
1800
|
});
|
|
1794
|
-
|
|
1795
|
-
e.types.some((d,
|
|
1801
|
+
vt(() => {
|
|
1802
|
+
e.types.some((d, c) => d.validator(r.value) ? (o.value = c, !0) : !1);
|
|
1796
1803
|
});
|
|
1797
1804
|
const s = G(() => e.types[o.value]), u = () => {
|
|
1798
1805
|
r.value = s.value.default;
|
|
1799
|
-
}, a =
|
|
1800
|
-
return
|
|
1806
|
+
}, a = R(0);
|
|
1807
|
+
return vt(() => {
|
|
1801
1808
|
s.value.ui === "pixelInput" ? a.value = Nn(r.value) : s.value.ui === "percentInput" && (a.value = Bn(r.value));
|
|
1802
|
-
}),
|
|
1809
|
+
}), Re(a, (d) => {
|
|
1803
1810
|
s.value.ui === "pixelInput" ? r.value = d + "px" : s.value.ui === "percentInput" && (r.value = d + "%");
|
|
1804
|
-
}), (d,
|
|
1811
|
+
}), (d, c) => {
|
|
1805
1812
|
const g = O("v-select"), y = O("v-number-input"), h = O("v-icon"), M = ae("ripple");
|
|
1806
1813
|
return S(), F("div", Ns, [
|
|
1807
|
-
|
|
1814
|
+
z("div", Bs, [
|
|
1808
1815
|
re(B(g, {
|
|
1809
1816
|
modelValue: o.value,
|
|
1810
1817
|
"onUpdate:modelValue": [
|
|
1811
|
-
|
|
1818
|
+
c[0] || (c[0] = (b) => o.value = b),
|
|
1812
1819
|
u
|
|
1813
1820
|
],
|
|
1814
1821
|
density: "compact",
|
|
@@ -1823,10 +1830,10 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
|
|
|
1823
1830
|
{ stop: !0 }
|
|
1824
1831
|
]
|
|
1825
1832
|
]),
|
|
1826
|
-
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? re((S(),
|
|
1833
|
+
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? re((S(), k(y, {
|
|
1827
1834
|
key: 0,
|
|
1828
1835
|
modelValue: a.value,
|
|
1829
|
-
"onUpdate:modelValue":
|
|
1836
|
+
"onUpdate:modelValue": c[1] || (c[1] = (b) => a.value = b),
|
|
1830
1837
|
density: "compact",
|
|
1831
1838
|
"control-variant": "stacked",
|
|
1832
1839
|
precision: s.value.precision,
|
|
@@ -1844,18 +1851,18 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
|
|
|
1844
1851
|
]
|
|
1845
1852
|
]) : I("", !0)
|
|
1846
1853
|
]),
|
|
1847
|
-
d.hasDelete ? (S(),
|
|
1854
|
+
d.hasDelete ? (S(), k(h, {
|
|
1848
1855
|
key: 0,
|
|
1849
1856
|
class: "mx-2",
|
|
1850
1857
|
icon: E(ye),
|
|
1851
|
-
onClick:
|
|
1858
|
+
onClick: c[2] || (c[2] = q((b) => l("delete"), ["stop"]))
|
|
1852
1859
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1853
1860
|
]);
|
|
1854
1861
|
};
|
|
1855
1862
|
}
|
|
1856
1863
|
});
|
|
1857
|
-
function
|
|
1858
|
-
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(
|
|
1864
|
+
function ks(e) {
|
|
1865
|
+
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(Rs, {
|
|
1859
1866
|
modelValue: ce(
|
|
1860
1867
|
n,
|
|
1861
1868
|
r,
|
|
@@ -1882,7 +1889,7 @@ function Rs(e) {
|
|
|
1882
1889
|
types: r.types
|
|
1883
1890
|
}) };
|
|
1884
1891
|
}
|
|
1885
|
-
const Fs = /* @__PURE__ */
|
|
1892
|
+
const Fs = /* @__PURE__ */ K({
|
|
1886
1893
|
__name: "index",
|
|
1887
1894
|
props: {
|
|
1888
1895
|
unique: {},
|
|
@@ -1891,48 +1898,48 @@ const Fs = /* @__PURE__ */ q({
|
|
|
1891
1898
|
},
|
|
1892
1899
|
emits: ["change"],
|
|
1893
1900
|
setup(e, { emit: t }) {
|
|
1894
|
-
const { t: n } = ue(), { backgroundColor1: r } = Te(), l = e, o = t, i =
|
|
1895
|
-
Ft(d, l.config, l.object), o("change",
|
|
1901
|
+
const { t: n } = ue(), { backgroundColor1: r } = Te(), l = e, o = t, i = R("20px"), s = R("56px"), u = R("200px"), a = Ln({}), d = R({}), c = (m, f) => {
|
|
1902
|
+
Ft(d, l.config, l.object), o("change", m, f);
|
|
1896
1903
|
};
|
|
1897
|
-
|
|
1904
|
+
Re(
|
|
1898
1905
|
[() => l.config, () => l.object],
|
|
1899
1906
|
() => {
|
|
1900
|
-
Ft(d, l.config, l.object, (
|
|
1901
|
-
o("change",
|
|
1907
|
+
Ft(d, l.config, l.object, (m, f) => {
|
|
1908
|
+
o("change", m, f);
|
|
1902
1909
|
});
|
|
1903
1910
|
},
|
|
1904
1911
|
{ immediate: !0 }
|
|
1905
1912
|
);
|
|
1906
|
-
const g =
|
|
1907
|
-
Ji(g),
|
|
1913
|
+
const g = R(l.config);
|
|
1914
|
+
Ji(g), Re(
|
|
1908
1915
|
() => l.config,
|
|
1909
1916
|
() => {
|
|
1910
1917
|
g.value = l.config;
|
|
1911
1918
|
}
|
|
1912
1919
|
);
|
|
1913
|
-
const y =
|
|
1914
|
-
Yi(y),
|
|
1920
|
+
const y = R(l.object);
|
|
1921
|
+
Yi(y), Re(
|
|
1915
1922
|
() => l.object,
|
|
1916
1923
|
() => {
|
|
1917
1924
|
y.value = l.object;
|
|
1918
1925
|
}
|
|
1919
|
-
), es(d), ns(
|
|
1920
|
-
const h =
|
|
1926
|
+
), es(d), ns(c);
|
|
1927
|
+
const h = R([]);
|
|
1921
1928
|
os(h);
|
|
1922
1929
|
const M = () => {
|
|
1923
|
-
const { compGroups:
|
|
1924
|
-
|
|
1930
|
+
const { compGroups: m, comps: f } = kn.app.activeApp, v = [];
|
|
1931
|
+
m.forEach(({ id: p, name: $, position: C }) => {
|
|
1925
1932
|
const L = h.value.find((Q) => Q.id === p);
|
|
1926
|
-
|
|
1933
|
+
v.push({
|
|
1927
1934
|
id: p,
|
|
1928
1935
|
type: 0,
|
|
1929
1936
|
name: $,
|
|
1930
1937
|
position: C,
|
|
1931
1938
|
collapse: (L == null ? void 0 : L.collapse) ?? !0
|
|
1932
1939
|
});
|
|
1933
|
-
}),
|
|
1934
|
-
|
|
1935
|
-
}), Fi(
|
|
1940
|
+
}), f.forEach(({ id: p, groupid: $, name: C, position: L }) => {
|
|
1941
|
+
v.push({ id: p, type: 1, name: C, position: L, group: $ });
|
|
1942
|
+
}), Fi(v, !0), h.value = v;
|
|
1936
1943
|
};
|
|
1937
1944
|
let b;
|
|
1938
1945
|
const D = () => {
|
|
@@ -1947,24 +1954,24 @@ const Fs = /* @__PURE__ */ q({
|
|
|
1947
1954
|
}), jn(() => {
|
|
1948
1955
|
w();
|
|
1949
1956
|
});
|
|
1950
|
-
const { renderProp: U } = us(d, s, u), { renderUiDummy: A } = cs(
|
|
1951
|
-
v,
|
|
1952
|
-
c,
|
|
1957
|
+
const { renderProp: U } = us(d, s, u), { renderUiDummy: A } = cs(c), { renderUiStrInput: V } = ps(c), { renderUiNumInput: W } = gs(c), { renderUiSwitch: Ye } = _s(c), { renderUiSelect: _n } = Ts(c), { renderUiColorPicker: bn } = Es(c), { renderUiMultiTypes: $n } = ks(c), { renderUiCompSelect: Tn } = Ls(c), Le = (m, f, v, p, $, C) => (m = sn(m), $ !== void 0 ? (m.push($), C && m.push(f.key)) : m.push(f.key), f.ui ? f.array && p ? An(m, f, v, p, $, C) : Cn(m, f, v, $, C) : f.array ? Sn(m, f, v, p, $, C) : wn(
|
|
1953
1958
|
m,
|
|
1959
|
+
f,
|
|
1960
|
+
v,
|
|
1954
1961
|
p,
|
|
1955
1962
|
$,
|
|
1956
1963
|
C
|
|
1957
|
-
)), Sn = (
|
|
1958
|
-
if (
|
|
1964
|
+
)), Sn = (m, f, v, p, $, C) => {
|
|
1965
|
+
if (f.ui)
|
|
1959
1966
|
return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
|
|
1960
|
-
if (!
|
|
1967
|
+
if (!f.array)
|
|
1961
1968
|
return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
|
|
1962
1969
|
if (!p)
|
|
1963
1970
|
return console.assert(!1), _("div", "renderBranchArray branch must be valid");
|
|
1964
1971
|
let L;
|
|
1965
|
-
$ !== void 0 && !C ? (
|
|
1966
|
-
let Q = n(
|
|
1967
|
-
p.collapse && be(d.value,
|
|
1972
|
+
$ !== void 0 && !C ? (v[$] instanceof Array || (v[$] = N(f), c(m, v[f.key])), L = v[$]) : (v[f.key] instanceof Array || (v[f.key] = N(f), c(m, v[f.key])), L = v[f.key]);
|
|
1973
|
+
let Q = n(f.name);
|
|
1974
|
+
p.collapse && be(d.value, m) && (Q += " *");
|
|
1968
1975
|
const Se = _(Be, {
|
|
1969
1976
|
title: Q,
|
|
1970
1977
|
collapse: p.collapse,
|
|
@@ -1973,10 +1980,10 @@ const Fs = /* @__PURE__ */ q({
|
|
|
1973
1980
|
p.collapse = T;
|
|
1974
1981
|
},
|
|
1975
1982
|
onMenu: (T, j) => {
|
|
1976
|
-
_e.emit("propTreeMenu", { x: T, y: j, keys:
|
|
1983
|
+
_e.emit("propTreeMenu", { x: T, y: j, keys: m });
|
|
1977
1984
|
},
|
|
1978
1985
|
onCreate: () => {
|
|
1979
|
-
L.push({}),
|
|
1986
|
+
L.push({}), c(m, L);
|
|
1980
1987
|
}
|
|
1981
1988
|
}), H = _(
|
|
1982
1989
|
"div",
|
|
@@ -1988,7 +1995,7 @@ const Fs = /* @__PURE__ */ q({
|
|
|
1988
1995
|
(() => {
|
|
1989
1996
|
const T = [];
|
|
1990
1997
|
for (let j = 0; j < L.length; j++) {
|
|
1991
|
-
if (!
|
|
1998
|
+
if (!nt(p.children)) {
|
|
1992
1999
|
console.assert(!1);
|
|
1993
2000
|
break;
|
|
1994
2001
|
}
|
|
@@ -1996,16 +2003,16 @@ const Fs = /* @__PURE__ */ q({
|
|
|
1996
2003
|
collapse: !0,
|
|
1997
2004
|
children: {}
|
|
1998
2005
|
});
|
|
1999
|
-
const De = [...
|
|
2000
|
-
let
|
|
2001
|
-
p.children[j].collapse && be(d.value, De) && (
|
|
2006
|
+
const De = [...m, j], je = p.children[j];
|
|
2007
|
+
let mt = `[${j + 1}]`;
|
|
2008
|
+
p.children[j].collapse && be(d.value, De) && (mt += " *");
|
|
2002
2009
|
const On = _(Be, {
|
|
2003
|
-
title:
|
|
2010
|
+
title: mt,
|
|
2004
2011
|
collapse: p.children[j].collapse,
|
|
2005
2012
|
hasDelete: !0,
|
|
2006
2013
|
index: j,
|
|
2007
2014
|
onCollapse: (ee) => {
|
|
2008
|
-
if (!
|
|
2015
|
+
if (!nt(p.children)) {
|
|
2009
2016
|
console.assert(!1);
|
|
2010
2017
|
return;
|
|
2011
2018
|
}
|
|
@@ -2015,11 +2022,11 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2015
2022
|
_e.emit("propTreeMenu", { x: ee, y: fe, keys: De });
|
|
2016
2023
|
},
|
|
2017
2024
|
onDelete: (ee) => {
|
|
2018
|
-
if (!
|
|
2025
|
+
if (!nt(p.children)) {
|
|
2019
2026
|
console.assert(!1);
|
|
2020
2027
|
return;
|
|
2021
2028
|
}
|
|
2022
|
-
p.children.splice(ee, 1), L.splice(ee, 1),
|
|
2029
|
+
p.children.splice(ee, 1), L.splice(ee, 1), c(m, L);
|
|
2023
2030
|
}
|
|
2024
2031
|
});
|
|
2025
2032
|
T.push(On);
|
|
@@ -2032,8 +2039,8 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2032
2039
|
},
|
|
2033
2040
|
(() => {
|
|
2034
2041
|
const ee = [];
|
|
2035
|
-
return
|
|
2036
|
-
if (!
|
|
2042
|
+
return f.children.forEach((fe) => {
|
|
2043
|
+
if (!kt(je.children)) {
|
|
2037
2044
|
console.assert(!1);
|
|
2038
2045
|
return;
|
|
2039
2046
|
}
|
|
@@ -2042,7 +2049,7 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2042
2049
|
children: fe.array ? [] : {}
|
|
2043
2050
|
});
|
|
2044
2051
|
const Mn = Le(
|
|
2045
|
-
|
|
2052
|
+
m,
|
|
2046
2053
|
fe,
|
|
2047
2054
|
L[j],
|
|
2048
2055
|
je.children[fe.key],
|
|
@@ -2070,15 +2077,15 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2070
2077
|
return T.push(Se), p.collapse || T.push(H), T;
|
|
2071
2078
|
})()
|
|
2072
2079
|
);
|
|
2073
|
-
}, wn = (
|
|
2074
|
-
if (
|
|
2080
|
+
}, wn = (m, f, v, p, $, C) => {
|
|
2081
|
+
if (f.ui)
|
|
2075
2082
|
return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
|
|
2076
|
-
if (
|
|
2083
|
+
if (f.array)
|
|
2077
2084
|
return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
|
|
2078
2085
|
if (!p)
|
|
2079
2086
|
return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
|
|
2080
|
-
let L = n(
|
|
2081
|
-
p.collapse && be(d.value,
|
|
2087
|
+
let L = n(f.name);
|
|
2088
|
+
p.collapse && be(d.value, m) && (L += " *");
|
|
2082
2089
|
const Q = _(Be, {
|
|
2083
2090
|
title: L,
|
|
2084
2091
|
collapse: p.collapse,
|
|
@@ -2087,10 +2094,10 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2087
2094
|
p.collapse = H;
|
|
2088
2095
|
},
|
|
2089
2096
|
onMenu: (H, T) => {
|
|
2090
|
-
_e.emit("propTreeMenu", { x: H, y: T, keys:
|
|
2097
|
+
_e.emit("propTreeMenu", { x: H, y: T, keys: m });
|
|
2091
2098
|
},
|
|
2092
2099
|
onDelete: () => {
|
|
2093
|
-
$ === void 0 || C || (
|
|
2100
|
+
$ === void 0 || C || (v.splice($, 1), c(m.slice(0, -1), v));
|
|
2094
2101
|
}
|
|
2095
2102
|
}), Se = _(
|
|
2096
2103
|
"div",
|
|
@@ -2101,8 +2108,8 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2101
2108
|
},
|
|
2102
2109
|
(() => {
|
|
2103
2110
|
const H = [];
|
|
2104
|
-
return
|
|
2105
|
-
if (!
|
|
2111
|
+
return f.children.forEach((T) => {
|
|
2112
|
+
if (!kt(p.children)) {
|
|
2106
2113
|
console.assert(!1);
|
|
2107
2114
|
return;
|
|
2108
2115
|
}
|
|
@@ -2111,9 +2118,9 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2111
2118
|
children: !T.ui && T.array ? [] : {}
|
|
2112
2119
|
});
|
|
2113
2120
|
const j = Le(
|
|
2114
|
-
|
|
2121
|
+
m,
|
|
2115
2122
|
T,
|
|
2116
|
-
(typeof
|
|
2123
|
+
(typeof v[f.key] != "object" && (v[f.key] = {}, c(m, v[f.key])), v[f.key]),
|
|
2117
2124
|
p.children[T.key]
|
|
2118
2125
|
);
|
|
2119
2126
|
H.push(j);
|
|
@@ -2132,17 +2139,17 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2132
2139
|
return H.push(Q), p.collapse || H.push(Se), H;
|
|
2133
2140
|
})()
|
|
2134
2141
|
);
|
|
2135
|
-
}, An = (
|
|
2136
|
-
if (!
|
|
2142
|
+
}, An = (m, f, v, p, $, C) => {
|
|
2143
|
+
if (!f.ui)
|
|
2137
2144
|
return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
|
|
2138
|
-
if (!
|
|
2145
|
+
if (!f.array)
|
|
2139
2146
|
return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
|
|
2140
2147
|
if (!p)
|
|
2141
2148
|
return console.assert(!1), _("div", "renderLeafArray branch must be valid");
|
|
2142
2149
|
let L;
|
|
2143
|
-
$ !== void 0 && !C ? (
|
|
2144
|
-
let Q = n(
|
|
2145
|
-
p.collapse && be(d.value,
|
|
2150
|
+
$ !== void 0 && !C ? (v[$] instanceof Array || (v[$] = N(f), c(m, v[$])), L = v[$]) : (v[f.key] instanceof Array || (v[f.key] = N(f), c(m, v[f.key])), L = v[f.key]);
|
|
2151
|
+
let Q = n(f.name);
|
|
2152
|
+
p.collapse && be(d.value, m) && (Q += " *");
|
|
2146
2153
|
const Se = _(Be, {
|
|
2147
2154
|
title: Q,
|
|
2148
2155
|
collapse: p.collapse,
|
|
@@ -2151,10 +2158,10 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2151
2158
|
p.collapse = T;
|
|
2152
2159
|
},
|
|
2153
2160
|
onMenu: (T, j) => {
|
|
2154
|
-
_e.emit("propTreeMenu", { x: T, y: j, keys:
|
|
2161
|
+
_e.emit("propTreeMenu", { x: T, y: j, keys: m });
|
|
2155
2162
|
},
|
|
2156
2163
|
onCreate: () => {
|
|
2157
|
-
L.push(N(
|
|
2164
|
+
L.push(N(f, !0)), c(m, L);
|
|
2158
2165
|
}
|
|
2159
2166
|
}), H = _(
|
|
2160
2167
|
"div",
|
|
@@ -2166,7 +2173,7 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2166
2173
|
(() => {
|
|
2167
2174
|
const T = [];
|
|
2168
2175
|
for (let j = 0; j < L.length; j++) {
|
|
2169
|
-
const De = Le(
|
|
2176
|
+
const De = Le(m, f, L, void 0, j, !1);
|
|
2170
2177
|
T.push(De);
|
|
2171
2178
|
}
|
|
2172
2179
|
return T;
|
|
@@ -2184,11 +2191,11 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2184
2191
|
return T.push(Se), p.collapse || T.push(H), T;
|
|
2185
2192
|
})()
|
|
2186
2193
|
);
|
|
2187
|
-
}, Cn = (
|
|
2188
|
-
if (!
|
|
2194
|
+
}, Cn = (m, f, v, p, $) => {
|
|
2195
|
+
if (!f.ui)
|
|
2189
2196
|
return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
|
|
2190
2197
|
let C;
|
|
2191
|
-
return
|
|
2198
|
+
return f.ui === "dummy" ? C = A(m, f, v, p, $) : f.ui === "strInput" ? C = V(m, f, v, p, $) : f.ui === "numInput" ? C = W(m, f, v, p, $) : f.ui === "switch" ? C = Ye(m, f, v, p, $) : f.ui === "select" ? C = _n(m, f, v, p, $) : f.ui === "colorPicker" ? C = bn(m, f, v, p, $) : f.ui === "multiTypes" ? C = $n(m, f, v, p, $) : f.ui === "compSelect" ? C = Tn(m, f, v, p, $) : console.assert(!1, "renderLeafScalar not implemented"), C ? U(m, f, C) : _("div");
|
|
2192
2199
|
}, Pn = () => _(
|
|
2193
2200
|
"div",
|
|
2194
2201
|
{
|
|
@@ -2198,23 +2205,23 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2198
2205
|
}
|
|
2199
2206
|
},
|
|
2200
2207
|
(() => {
|
|
2201
|
-
const
|
|
2208
|
+
const m = [];
|
|
2202
2209
|
if (l.unique && l.config.length > 0 && l.object) {
|
|
2203
2210
|
a[l.unique] || (a[l.unique] = {});
|
|
2204
|
-
const
|
|
2205
|
-
l.config.forEach((
|
|
2206
|
-
|
|
2211
|
+
const f = a[l.unique];
|
|
2212
|
+
l.config.forEach((v) => {
|
|
2213
|
+
f[v.key] || (f[v.key] = {
|
|
2207
2214
|
collapse: !0,
|
|
2208
|
-
children: !
|
|
2215
|
+
children: !v.ui && v.array ? [] : {}
|
|
2209
2216
|
});
|
|
2210
|
-
const p = Le([],
|
|
2211
|
-
|
|
2217
|
+
const p = Le([], v, l.object, f[v.key]);
|
|
2218
|
+
m.push(p);
|
|
2212
2219
|
});
|
|
2213
2220
|
}
|
|
2214
|
-
return
|
|
2221
|
+
return m;
|
|
2215
2222
|
})()
|
|
2216
2223
|
);
|
|
2217
|
-
return (
|
|
2224
|
+
return (m, f) => (S(), F(He, null, [
|
|
2218
2225
|
B(Pn),
|
|
2219
2226
|
B(ls, {
|
|
2220
2227
|
config: l.config,
|
|
@@ -2239,7 +2246,7 @@ const Fs = /* @__PURE__ */ q({
|
|
|
2239
2246
|
});
|
|
2240
2247
|
};
|
|
2241
2248
|
async function Js(e) {
|
|
2242
|
-
return (await Gs(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-
|
|
2249
|
+
return (await Gs(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-g2bvdvq4.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-enket0x3.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
2243
2250
|
}
|
|
2244
2251
|
const Ws = { install: Hs };
|
|
2245
2252
|
export {
|