x-prop-tree 0.6.7 → 0.6.9
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/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/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 +292 -300
- 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
|
|
3
|
-
import { useViewStack 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 mt, watch as Re, reactive as Ln, onMounted as Dn, onBeforeUnmount as jn } from "vue";
|
|
2
|
+
import { useI18n as ue } from "vue-i18n";
|
|
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,31 +15,31 @@ 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 qn = Object.prototype, zn = qn.toString;
|
|
19
19
|
function In(e) {
|
|
20
|
-
return
|
|
20
|
+
return zn.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) ? 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) {
|
|
@@ -63,7 +63,7 @@ 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
69
|
return t.test(ve(e));
|
|
@@ -75,11 +75,11 @@ function me(e, t) {
|
|
|
75
75
|
var n = fr(e, t);
|
|
76
76
|
return cr(n) ? n : void 0;
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var rt = me(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);
|
|
@@ -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 ?
|
|
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)
|
|
@@ -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
|
}
|
|
@@ -261,23 +261,23 @@ 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 = me(
|
|
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
279
|
hash: new pe(),
|
|
280
|
-
map: new (xe ||
|
|
280
|
+
map: new (xe || le)(),
|
|
281
281
|
string: new pe()
|
|
282
282
|
};
|
|
283
283
|
}
|
|
@@ -321,10 +321,10 @@ function No(e, t) {
|
|
|
321
321
|
return e;
|
|
322
322
|
}
|
|
323
323
|
var Bo = tn(Object.getPrototypeOf, Object);
|
|
324
|
-
function
|
|
325
|
-
this.__data__ = new
|
|
324
|
+
function Ro() {
|
|
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,9 +335,9 @@ 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
|
-
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;
|
|
@@ -345,18 +345,18 @@ function zo(e, t) {
|
|
|
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 = Ro;
|
|
353
|
+
te.prototype.delete = ko;
|
|
354
|
+
te.prototype.get = Fo;
|
|
355
|
+
te.prototype.has = Ho;
|
|
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,11 +378,11 @@ 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
|
-
(
|
|
384
|
+
var lt = me(Y, "DataView"), it = me(Y, "Promise"), st = me(Y, "Set"), Pt = "[object Map]", Qo = "[object Object]", Ot = "[object Promise]", xt = "[object Set]", Mt = "[object WeakMap]", Ut = "[object DataView]", el = ve(lt), tl = ve(xe), nl = ve(it), rl = ve(st), ol = ve(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
386
|
var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ? ve(n) : "";
|
|
387
387
|
if (r)
|
|
388
388
|
switch (r) {
|
|
@@ -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*$/;
|
|
@@ -418,12 +418,12 @@ 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
|
}
|
|
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
429
|
var pl = "[object Boolean]", vl = "[object Date]", ml = "[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]";
|
|
@@ -431,7 +431,7 @@ 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
436
|
case vl:
|
|
437
437
|
return new r(+e);
|
|
@@ -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 {
|
|
@@ -495,23 +495,23 @@ 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),
|
|
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 c =
|
|
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,13 +520,13 @@ 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
|
-
|
|
528
|
+
qe.prototype.add = qe.prototype.push = di;
|
|
529
|
+
qe.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,7 +544,7 @@ 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 c = -1, g = !0, y = n & yi ? new
|
|
547
|
+
var c = -1, g = !0, y = n & yi ? new qe() : void 0;
|
|
548
548
|
for (o.set(e, t), o.set(t, e); ++c < s; ) {
|
|
549
549
|
var h = e[c], M = t[c];
|
|
550
550
|
if (r)
|
|
@@ -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, 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,14 +613,14 @@ 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
626
|
for (var c = u; c--; ) {
|
|
@@ -650,8 +650,8 @@ 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
657
|
var d = u == Ee, c = a == Ee, g = u == a;
|
|
@@ -661,18 +661,18 @@ function Ri(e, t, n, r, l, o) {
|
|
|
661
661
|
i = !0, d = !1;
|
|
662
662
|
}
|
|
663
663
|
if (g && !d)
|
|
664
|
-
return o || (o = new
|
|
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
|
-
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 || !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,14 +859,16 @@ 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
873
|
}, fn = Symbol(), dn = Symbol(), pn = Symbol(), vn = Symbol(), mn = Symbol();
|
|
872
874
|
function Ji(e) {
|
|
@@ -899,10 +901,10 @@ function os(e) {
|
|
|
899
901
|
function gn() {
|
|
900
902
|
return Ue(mn);
|
|
901
903
|
}
|
|
902
|
-
const ls = /* @__PURE__ */
|
|
904
|
+
const ls = /* @__PURE__ */ K({
|
|
903
905
|
__name: "menu",
|
|
904
906
|
setup(e) {
|
|
905
|
-
const { t } =
|
|
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;
|
|
@@ -982,15 +984,15 @@ const ls = /* @__PURE__ */ z({
|
|
|
982
984
|
title: t("x-prop-tree.paste"),
|
|
983
985
|
func: w
|
|
984
986
|
});
|
|
985
|
-
}, y =
|
|
987
|
+
}, y = G(() => {
|
|
986
988
|
const b = [];
|
|
987
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__ */ z({
|
|
|
1000
1002
|
default: J(() => [
|
|
1001
1003
|
B(A, null, {
|
|
1002
1004
|
default: J(() => [
|
|
1003
|
-
(S(!0),
|
|
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__ */ z({
|
|
|
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__ */ z({
|
|
|
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,12 +1049,12 @@ const Be = /* @__PURE__ */ z({
|
|
|
1047
1049
|
l("menu", a.clientX, a.clientY);
|
|
1048
1050
|
};
|
|
1049
1051
|
return (a, d) => {
|
|
1050
|
-
const c = O("v-icon"), g = O("v-spacer"), y =
|
|
1051
|
-
return
|
|
1052
|
+
const c = O("v-icon"), g = O("v-spacer"), y = ae("ripple");
|
|
1053
|
+
return re((S(), F("div", {
|
|
1052
1054
|
class: "d-flex align-center cursor-pointer",
|
|
1053
|
-
style:
|
|
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
|
}, [
|
|
@@ -1060,33 +1062,33 @@ const Be = /* @__PURE__ */ z({
|
|
|
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",
|
|
@@ -1096,11 +1098,11 @@ const Be = /* @__PURE__ */ z({
|
|
|
1096
1098
|
l("menu", u.clientX, u.clientY);
|
|
1097
1099
|
};
|
|
1098
1100
|
return (u, a) => {
|
|
1099
|
-
const d =
|
|
1100
|
-
return
|
|
1101
|
+
const d = ae("ripple");
|
|
1102
|
+
return re((S(), F("div", {
|
|
1101
1103
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1102
|
-
style:
|
|
1103
|
-
onContextmenu:
|
|
1104
|
+
style: ie(i.value),
|
|
1105
|
+
onContextmenu: q(s, ["prevent"]),
|
|
1104
1106
|
onMouseover: a[0] || (a[0] = (c) => o.value = !0),
|
|
1105
1107
|
onMouseout: a[1] || (a[1] = (c) => o.value = !1)
|
|
1106
1108
|
}, [
|
|
@@ -1112,19 +1114,20 @@ const Be = /* @__PURE__ */ z({
|
|
|
1112
1114
|
}
|
|
1113
1115
|
});
|
|
1114
1116
|
function us(e, t, n) {
|
|
1115
|
-
const { t: r } =
|
|
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,22 +1159,22 @@ 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 },
|
|
1163
1166
|
readonly: { type: Boolean, default: !1 }
|
|
1164
1167
|
}, {
|
|
1165
|
-
modelValue: {},
|
|
1168
|
+
modelValue: { required: !0 },
|
|
1166
1169
|
modelModifiers: {}
|
|
1167
1170
|
}),
|
|
1168
1171
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1169
1172
|
setup(e, { emit: t }) {
|
|
1170
1173
|
const n = oe(e, "modelValue"), r = t;
|
|
1171
1174
|
return (l, o) => {
|
|
1172
|
-
const i = O("v-text-field"), s = O("v-icon"), u =
|
|
1173
|
-
return S(),
|
|
1174
|
-
|
|
1175
|
+
const i = O("v-text-field"), s = O("v-icon"), u = ae("ripple");
|
|
1176
|
+
return S(), F("div", fs, [
|
|
1177
|
+
re(B(i, {
|
|
1175
1178
|
modelValue: n.value,
|
|
1176
1179
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1177
1180
|
density: "compact",
|
|
@@ -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 vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PURE__ */
|
|
1230
|
+
const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PURE__ */ K({
|
|
1228
1231
|
__name: "numInput",
|
|
1229
1232
|
props: /* @__PURE__ */ X({
|
|
1230
1233
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1235,16 +1238,16 @@ const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PU
|
|
|
1235
1238
|
step: { default: 1 },
|
|
1236
1239
|
readonly: { type: Boolean, default: !1 }
|
|
1237
1240
|
}, {
|
|
1238
|
-
modelValue: {},
|
|
1241
|
+
modelValue: { required: !0 },
|
|
1239
1242
|
modelModifiers: {}
|
|
1240
1243
|
}),
|
|
1241
1244
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1242
1245
|
setup(e, { emit: t }) {
|
|
1243
1246
|
const n = oe(e, "modelValue"), r = t;
|
|
1244
1247
|
return (l, o) => {
|
|
1245
|
-
const i = O("v-number-input"), s = O("v-icon"), u =
|
|
1246
|
-
return S(),
|
|
1247
|
-
|
|
1248
|
+
const i = O("v-number-input"), s = O("v-icon"), u = ae("ripple");
|
|
1249
|
+
return S(), F("div", vs, [
|
|
1250
|
+
re(B(i, {
|
|
1248
1251
|
modelValue: n.value,
|
|
1249
1252
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1250
1253
|
density: "compact",
|
|
@@ -1264,11 +1267,11 @@ 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
|
};
|
|
@@ -1302,46 +1305,35 @@ function gs(e) {
|
|
|
1302
1305
|
readonly: r.readonly
|
|
1303
1306
|
}) };
|
|
1304
1307
|
}
|
|
1305
|
-
const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PURE__ */
|
|
1308
|
+
const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PURE__ */ K({
|
|
1306
1309
|
__name: "switch",
|
|
1307
1310
|
props: /* @__PURE__ */ X({
|
|
1308
1311
|
hasDelete: { type: Boolean, default: !1 },
|
|
1309
1312
|
readonly: { type: Boolean, default: !1 }
|
|
1310
1313
|
}, {
|
|
1311
|
-
modelValue: { type: Boolean },
|
|
1314
|
+
modelValue: { type: Boolean, required: !0 },
|
|
1312
1315
|
modelModifiers: {}
|
|
1313
1316
|
}),
|
|
1314
1317
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1315
1318
|
setup(e, { emit: t }) {
|
|
1316
|
-
const
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
Y(B(u, {
|
|
1325
|
-
modelValue: r.value,
|
|
1326
|
-
"onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
|
|
1319
|
+
const n = oe(e, "modelValue"), r = t;
|
|
1320
|
+
return (l, o) => {
|
|
1321
|
+
const i = O("v-switch"), s = O("v-icon");
|
|
1322
|
+
return S(), F("div", ys, [
|
|
1323
|
+
B(i, {
|
|
1324
|
+
modelValue: n.value,
|
|
1325
|
+
"onUpdate:modelValue": o[0] || (o[0] = (u) => n.value = u),
|
|
1326
|
+
class: "ml-1",
|
|
1327
1327
|
density: "compact",
|
|
1328
|
-
|
|
1328
|
+
color: "primary",
|
|
1329
1329
|
"hide-details": "",
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
[
|
|
1334
|
-
d,
|
|
1335
|
-
void 0,
|
|
1336
|
-
void 0,
|
|
1337
|
-
{ stop: !0 }
|
|
1338
|
-
]
|
|
1339
|
-
]),
|
|
1340
|
-
i.hasDelete ? (S(), R(a, {
|
|
1330
|
+
readonly: l.readonly
|
|
1331
|
+
}, null, 8, ["modelValue", "readonly"]),
|
|
1332
|
+
l.hasDelete ? (S(), k(s, {
|
|
1341
1333
|
key: 0,
|
|
1342
1334
|
class: "mx-2",
|
|
1343
1335
|
icon: E(ye),
|
|
1344
|
-
onClick:
|
|
1336
|
+
onClick: o[1] || (o[1] = q((u) => r("delete"), ["stop"]))
|
|
1345
1337
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1346
1338
|
]);
|
|
1347
1339
|
};
|
|
@@ -1375,23 +1367,23 @@ function _s(e) {
|
|
|
1375
1367
|
readonly: r.readonly
|
|
1376
1368
|
}) };
|
|
1377
1369
|
}
|
|
1378
|
-
const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PURE__ */
|
|
1370
|
+
const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PURE__ */ K({
|
|
1379
1371
|
__name: "select",
|
|
1380
1372
|
props: /* @__PURE__ */ X({
|
|
1381
1373
|
hasDelete: { type: Boolean, default: !1 },
|
|
1382
1374
|
readonly: { type: Boolean, default: !1 },
|
|
1383
1375
|
items: {}
|
|
1384
1376
|
}, {
|
|
1385
|
-
modelValue: {},
|
|
1377
|
+
modelValue: { required: !0 },
|
|
1386
1378
|
modelModifiers: {}
|
|
1387
1379
|
}),
|
|
1388
1380
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1389
1381
|
setup(e, { emit: t }) {
|
|
1390
1382
|
const n = oe(e, "modelValue"), r = t;
|
|
1391
1383
|
return (l, o) => {
|
|
1392
|
-
const i = O("v-select"), s = O("v-icon"), u =
|
|
1393
|
-
return S(),
|
|
1394
|
-
|
|
1384
|
+
const i = O("v-select"), s = O("v-icon"), u = ae("ripple");
|
|
1385
|
+
return S(), F("div", bs, [
|
|
1386
|
+
re(B(i, {
|
|
1395
1387
|
modelValue: n.value,
|
|
1396
1388
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1397
1389
|
density: "compact",
|
|
@@ -1407,18 +1399,18 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
|
|
|
1407
1399
|
{ stop: !0 }
|
|
1408
1400
|
]
|
|
1409
1401
|
]),
|
|
1410
|
-
l.hasDelete ? (S(),
|
|
1402
|
+
l.hasDelete ? (S(), k(s, {
|
|
1411
1403
|
key: 0,
|
|
1412
1404
|
class: "mx-2",
|
|
1413
1405
|
icon: E(ye),
|
|
1414
|
-
onClick: o[1] || (o[1] =
|
|
1406
|
+
onClick: o[1] || (o[1] = q((a) => r("delete"), ["stop"]))
|
|
1415
1407
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1416
1408
|
]);
|
|
1417
1409
|
};
|
|
1418
1410
|
}
|
|
1419
1411
|
});
|
|
1420
1412
|
function Ts(e) {
|
|
1421
|
-
const { t } =
|
|
1413
|
+
const { t } = ue();
|
|
1422
1414
|
return { renderUiSelect: (r, l, o, i, s) => l.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _($s, {
|
|
1423
1415
|
modelValue: ce(
|
|
1424
1416
|
r,
|
|
@@ -1455,7 +1447,7 @@ function Ts(e) {
|
|
|
1455
1447
|
readonly: l.readonly
|
|
1456
1448
|
}) };
|
|
1457
1449
|
}
|
|
1458
|
-
const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-grey ml-1" }, As = /* @__PURE__ */
|
|
1450
|
+
const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-grey ml-1" }, As = /* @__PURE__ */ K({
|
|
1459
1451
|
__name: "group",
|
|
1460
1452
|
props: {
|
|
1461
1453
|
id: {},
|
|
@@ -1465,17 +1457,17 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1465
1457
|
},
|
|
1466
1458
|
emits: ["x-click"],
|
|
1467
1459
|
setup(e, { emit: t }) {
|
|
1468
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i =
|
|
1460
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = R(!1), s = G(() => ({
|
|
1469
1461
|
background: i.value ? r.value : n.value,
|
|
1470
1462
|
height: "30px",
|
|
1471
1463
|
marginBottom: "1px",
|
|
1472
1464
|
userSelect: "none"
|
|
1473
1465
|
}));
|
|
1474
1466
|
return (u, a) => {
|
|
1475
|
-
const d = O("v-icon"), c =
|
|
1476
|
-
return
|
|
1467
|
+
const d = O("v-icon"), c = ae("ripple");
|
|
1468
|
+
return re((S(), F("div", {
|
|
1477
1469
|
class: "d-flex align-center cursor-pointer",
|
|
1478
|
-
style:
|
|
1470
|
+
style: ie(s.value),
|
|
1479
1471
|
onClick: a[0] || (a[0] = (g) => o("x-click", l.id)),
|
|
1480
1472
|
onMouseover: a[1] || (a[1] = (g) => i.value = !0),
|
|
1481
1473
|
onMouseout: a[2] || (a[2] = (g) => i.value = !1)
|
|
@@ -1484,14 +1476,14 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1484
1476
|
icon: l.collapse ? E(hn) : E(yn),
|
|
1485
1477
|
size: "small"
|
|
1486
1478
|
}, null, 8, ["icon"]),
|
|
1487
|
-
|
|
1488
|
-
|
|
1479
|
+
z("span", Ss, ne(l.title), 1),
|
|
1480
|
+
z("span", ws, ne(l.count), 1)
|
|
1489
1481
|
], 36)), [
|
|
1490
1482
|
[c]
|
|
1491
1483
|
]);
|
|
1492
1484
|
};
|
|
1493
1485
|
}
|
|
1494
|
-
}), Cs = { class: "text-subtitle-1 ml-6" }, Ps = /* @__PURE__ */
|
|
1486
|
+
}), Cs = { class: "text-subtitle-1 ml-6" }, Ps = /* @__PURE__ */ K({
|
|
1495
1487
|
__name: "item",
|
|
1496
1488
|
props: {
|
|
1497
1489
|
id: {},
|
|
@@ -1499,22 +1491,22 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1499
1491
|
},
|
|
1500
1492
|
emits: ["x-click"],
|
|
1501
1493
|
setup(e, { emit: t }) {
|
|
1502
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i =
|
|
1494
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = R(!1), s = G(() => ({
|
|
1503
1495
|
background: i.value ? r.value : n.value,
|
|
1504
1496
|
height: "48px",
|
|
1505
1497
|
marginBottom: "1px",
|
|
1506
1498
|
userSelect: "none"
|
|
1507
1499
|
}));
|
|
1508
1500
|
return (u, a) => {
|
|
1509
|
-
const d =
|
|
1510
|
-
return
|
|
1501
|
+
const d = ae("ripple");
|
|
1502
|
+
return re((S(), F("div", {
|
|
1511
1503
|
class: "d-flex align-center cursor-pointer",
|
|
1512
|
-
style:
|
|
1504
|
+
style: ie(s.value),
|
|
1513
1505
|
onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
|
|
1514
1506
|
onMouseover: a[1] || (a[1] = (c) => i.value = !0),
|
|
1515
1507
|
onMouseout: a[2] || (a[2] = (c) => i.value = !1)
|
|
1516
1508
|
}, [
|
|
1517
|
-
|
|
1509
|
+
z("span", Cs, ne(l.title), 1)
|
|
1518
1510
|
], 36)), [
|
|
1519
1511
|
[d]
|
|
1520
1512
|
]);
|
|
@@ -1523,7 +1515,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1523
1515
|
}), Os = { key: 0 }, xs = {
|
|
1524
1516
|
key: 1,
|
|
1525
1517
|
class: "text-body-2 text-grey ml-3"
|
|
1526
|
-
}, Ms = /* @__PURE__ */
|
|
1518
|
+
}, Ms = /* @__PURE__ */ K({
|
|
1527
1519
|
__name: "index",
|
|
1528
1520
|
props: {
|
|
1529
1521
|
modelValue: {},
|
|
@@ -1533,17 +1525,17 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1533
1525
|
},
|
|
1534
1526
|
emits: ["update:modelValue", "update:open"],
|
|
1535
1527
|
setup(e) {
|
|
1536
|
-
const { t } =
|
|
1528
|
+
const { t } = ue(), n = oe(e, "modelValue"), r = oe(e, "open"), l = gn(), o = (s) => {
|
|
1537
1529
|
const u = cn(l, s);
|
|
1538
1530
|
u && Hi(l, s, !u.collapse);
|
|
1539
1531
|
}, i = (s) => {
|
|
1540
1532
|
n.value = s, r.value = !1, _e.emit("refreshDepends");
|
|
1541
1533
|
};
|
|
1542
|
-
return (s, u) => E(l).length > 0 ? (S(),
|
|
1543
|
-
(S(!0),
|
|
1534
|
+
return (s, u) => E(l).length > 0 ? (S(), F("div", Os, [
|
|
1535
|
+
(S(!0), F(He, null, Ht(E(l), (a) => (S(), F(He, {
|
|
1544
1536
|
key: a.id
|
|
1545
1537
|
}, [
|
|
1546
|
-
a.type === 0 ? (S(),
|
|
1538
|
+
a.type === 0 ? (S(), k(As, {
|
|
1547
1539
|
key: 0,
|
|
1548
1540
|
id: a.id,
|
|
1549
1541
|
title: a.name,
|
|
@@ -1551,16 +1543,16 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1551
1543
|
count: a.count ?? 0,
|
|
1552
1544
|
onXClick: o
|
|
1553
1545
|
}, null, 8, ["id", "title", "collapse", "count"])) : I("", !0),
|
|
1554
|
-
a.type === 1 && a.show ? (S(),
|
|
1546
|
+
a.type === 1 && a.show ? (S(), k(Ps, {
|
|
1555
1547
|
key: 1,
|
|
1556
1548
|
id: a.id,
|
|
1557
1549
|
title: a.name,
|
|
1558
1550
|
onXClick: i
|
|
1559
1551
|
}, null, 8, ["id", "title"])) : I("", !0)
|
|
1560
1552
|
], 64))), 128))
|
|
1561
|
-
])) : (S(),
|
|
1553
|
+
])) : (S(), F("div", xs, ne(E(t)("x-prop-tree.noComp")), 1));
|
|
1562
1554
|
}
|
|
1563
|
-
}), Us = { class: "text-subtitle-1 ml-3" }, Vs = /* @__PURE__ */
|
|
1555
|
+
}), Us = { class: "text-subtitle-1 ml-3" }, Vs = /* @__PURE__ */ K({
|
|
1564
1556
|
__name: "index",
|
|
1565
1557
|
props: {
|
|
1566
1558
|
modelValue: {},
|
|
@@ -1568,62 +1560,62 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1568
1560
|
},
|
|
1569
1561
|
emits: ["update:modelValue"],
|
|
1570
1562
|
setup(e) {
|
|
1571
|
-
const { t } =
|
|
1563
|
+
const { t } = ue(), n = Rn(), { sysBarAvail: r } = En(), { backgroundColor1: l } = Te(), o = oe(e, "modelValue"), i = gn(), s = G(() => {
|
|
1572
1564
|
let g = "100%";
|
|
1573
1565
|
return n.mdAndUp.value && (g = "400px"), {
|
|
1574
1566
|
background: l.value,
|
|
1575
1567
|
width: g,
|
|
1576
1568
|
height: "100%"
|
|
1577
1569
|
};
|
|
1578
|
-
}), u =
|
|
1570
|
+
}), u = G(() => {
|
|
1579
1571
|
let g = 48;
|
|
1580
1572
|
return r.value && (g += 24), {
|
|
1581
1573
|
position: "relative",
|
|
1582
1574
|
height: `calc(100% - ${g}px)`
|
|
1583
1575
|
};
|
|
1584
|
-
}), a =
|
|
1576
|
+
}), a = G(() => ({
|
|
1585
1577
|
height: "60px"
|
|
1586
|
-
})), d =
|
|
1578
|
+
})), d = G(() => {
|
|
1587
1579
|
if (!o.value)
|
|
1588
1580
|
return t("x-prop-tree.notSet");
|
|
1589
1581
|
const g = cn(i, o.value);
|
|
1590
1582
|
return g ? g.name : t("x-runtime-lib.compNotAvail");
|
|
1591
|
-
}), { open: c } =
|
|
1592
|
-
return
|
|
1583
|
+
}), { open: c } = ut(`propTreeCompSelectDlg${Gt()}`);
|
|
1584
|
+
return Kt(() => {
|
|
1593
1585
|
c.value = !1;
|
|
1594
1586
|
}), (g, y) => {
|
|
1595
1587
|
const h = O("v-btn"), M = O("v-sheet"), b = O("v-icon"), D = O("v-dialog");
|
|
1596
|
-
return S(),
|
|
1588
|
+
return S(), k(D, {
|
|
1597
1589
|
modelValue: E(c),
|
|
1598
1590
|
"onUpdate:modelValue": y[5] || (y[5] = (w) => Fe(c) ? c.value = w : null),
|
|
1599
1591
|
transition: "scroll-x-reverse-transition",
|
|
1600
1592
|
persistent: "",
|
|
1601
1593
|
"no-click-animation": "",
|
|
1602
1594
|
fullscreen: "",
|
|
1603
|
-
onKeydown: y[6] || (y[6] = Vn(
|
|
1595
|
+
onKeydown: y[6] || (y[6] = Vn(q((w) => c.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1604
1596
|
}, {
|
|
1605
1597
|
activator: J(({ props: w }) => [
|
|
1606
|
-
B(h,
|
|
1598
|
+
B(h, qt(w, {
|
|
1607
1599
|
density: "comfortable",
|
|
1608
1600
|
block: ""
|
|
1609
1601
|
}), {
|
|
1610
1602
|
default: J(() => [
|
|
1611
|
-
|
|
1603
|
+
at(ne(d.value), 1)
|
|
1612
1604
|
]),
|
|
1613
1605
|
_: 2
|
|
1614
1606
|
}, 1040)
|
|
1615
1607
|
]),
|
|
1616
1608
|
default: J(() => [
|
|
1617
|
-
|
|
1609
|
+
z("div", {
|
|
1618
1610
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1619
|
-
onClick: y[3] || (y[3] =
|
|
1620
|
-
onContextmenu: y[4] || (y[4] =
|
|
1611
|
+
onClick: y[3] || (y[3] = q((w) => c.value = !1, ["self"])),
|
|
1612
|
+
onContextmenu: y[4] || (y[4] = q((w) => c.value = !1, ["self", "prevent"]))
|
|
1621
1613
|
}, [
|
|
1622
|
-
|
|
1614
|
+
z("div", {
|
|
1623
1615
|
class: "elevation-2",
|
|
1624
|
-
style:
|
|
1616
|
+
style: ie(s.value)
|
|
1625
1617
|
}, [
|
|
1626
|
-
E(r) ? (S(),
|
|
1618
|
+
E(r) ? (S(), k(M, {
|
|
1627
1619
|
key: 0,
|
|
1628
1620
|
color: "transparent",
|
|
1629
1621
|
height: 24
|
|
@@ -1638,13 +1630,13 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1638
1630
|
icon: E(is),
|
|
1639
1631
|
onClick: y[0] || (y[0] = (w) => c.value = !1)
|
|
1640
1632
|
}, null, 8, ["icon"]),
|
|
1641
|
-
|
|
1633
|
+
z("span", Us, ne(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
1642
1634
|
]),
|
|
1643
1635
|
_: 1
|
|
1644
1636
|
}),
|
|
1645
|
-
|
|
1637
|
+
z("div", {
|
|
1646
1638
|
class: "overflow-y-auto",
|
|
1647
|
-
style:
|
|
1639
|
+
style: ie(u.value)
|
|
1648
1640
|
}, [
|
|
1649
1641
|
B(Ms, {
|
|
1650
1642
|
modelValue: o.value,
|
|
@@ -1652,8 +1644,8 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1652
1644
|
open: E(c),
|
|
1653
1645
|
"onUpdate:open": y[2] || (y[2] = (w) => Fe(c) ? c.value = w : null)
|
|
1654
1646
|
}, null, 8, ["modelValue", "open"]),
|
|
1655
|
-
|
|
1656
|
-
style:
|
|
1647
|
+
z("div", {
|
|
1648
|
+
style: ie(a.value)
|
|
1657
1649
|
}, null, 4)
|
|
1658
1650
|
], 4)
|
|
1659
1651
|
], 4)
|
|
@@ -1687,7 +1679,7 @@ function Ls(e) {
|
|
|
1687
1679
|
}
|
|
1688
1680
|
}) };
|
|
1689
1681
|
}
|
|
1690
|
-
const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PURE__ */
|
|
1682
|
+
const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PURE__ */ K({
|
|
1691
1683
|
__name: "colorPicker",
|
|
1692
1684
|
props: /* @__PURE__ */ X({
|
|
1693
1685
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1698,45 +1690,45 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1698
1690
|
}),
|
|
1699
1691
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1700
1692
|
setup(e, { emit: t }) {
|
|
1701
|
-
const { t: n } =
|
|
1693
|
+
const { t: n } = ue(), r = oe(e, "modelValue"), l = t, o = G(() => {
|
|
1702
1694
|
let u = "100%";
|
|
1703
1695
|
return e.hasDelete && (u = "calc(100% - 37px)"), {
|
|
1704
1696
|
width: u
|
|
1705
1697
|
};
|
|
1706
|
-
}), i =
|
|
1707
|
-
return
|
|
1698
|
+
}), i = G(() => e.readonly), { open: s } = ut(`propTreeColorPickerMenu${Gt()}`);
|
|
1699
|
+
return Kt(() => {
|
|
1708
1700
|
s.value = !1;
|
|
1709
1701
|
}), (u, a) => {
|
|
1710
1702
|
const d = O("v-btn"), c = O("v-icon"), g = O("v-color-picker"), y = O("v-menu");
|
|
1711
|
-
return S(),
|
|
1703
|
+
return S(), k(y, {
|
|
1712
1704
|
modelValue: E(s),
|
|
1713
1705
|
"onUpdate:modelValue": a[2] || (a[2] = (h) => Fe(s) ? s.value = h : null),
|
|
1714
1706
|
"close-on-content-click": !1,
|
|
1715
1707
|
scrim: "transparent"
|
|
1716
1708
|
}, {
|
|
1717
1709
|
activator: J(({ props: h }) => [
|
|
1718
|
-
|
|
1719
|
-
|
|
1710
|
+
z("div", Ds, [
|
|
1711
|
+
z("div", {
|
|
1720
1712
|
class: "flex-grow-1",
|
|
1721
|
-
style:
|
|
1713
|
+
style: ie(o.value)
|
|
1722
1714
|
}, [
|
|
1723
|
-
B(d,
|
|
1715
|
+
B(d, qt(h, {
|
|
1724
1716
|
density: "comfortable",
|
|
1725
1717
|
color: r.value,
|
|
1726
1718
|
block: "",
|
|
1727
1719
|
disabled: i.value
|
|
1728
1720
|
}), {
|
|
1729
1721
|
default: J(() => [
|
|
1730
|
-
|
|
1722
|
+
at(ne(r.value ? r.value : E(n)("x-runtime-lib.notSet")), 1)
|
|
1731
1723
|
]),
|
|
1732
1724
|
_: 2
|
|
1733
1725
|
}, 1040, ["color", "disabled"])
|
|
1734
1726
|
], 4),
|
|
1735
|
-
u.hasDelete ? (S(),
|
|
1727
|
+
u.hasDelete ? (S(), k(c, {
|
|
1736
1728
|
key: 0,
|
|
1737
1729
|
class: "mx-2",
|
|
1738
1730
|
icon: E(ye),
|
|
1739
|
-
onClick: a[0] || (a[0] =
|
|
1731
|
+
onClick: a[0] || (a[0] = q((M) => l("delete"), ["stop"]))
|
|
1740
1732
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1741
1733
|
])
|
|
1742
1734
|
]),
|
|
@@ -1782,7 +1774,7 @@ function Es(e) {
|
|
|
1782
1774
|
readonly: r.readonly
|
|
1783
1775
|
}) };
|
|
1784
1776
|
}
|
|
1785
|
-
const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { class: "flex-grow-1" },
|
|
1777
|
+
const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { class: "flex-grow-1" }, Rs = /* @__PURE__ */ K({
|
|
1786
1778
|
__name: "multiTypes",
|
|
1787
1779
|
props: /* @__PURE__ */ X({
|
|
1788
1780
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1793,7 +1785,7 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
|
|
|
1793
1785
|
}),
|
|
1794
1786
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1795
1787
|
setup(e, { emit: t }) {
|
|
1796
|
-
const { t: n } =
|
|
1788
|
+
const { t: n } = ue(), r = oe(e, "modelValue"), l = t, o = R(0), i = G(() => {
|
|
1797
1789
|
const d = [];
|
|
1798
1790
|
return e.types.forEach(({ name: c }, g) => {
|
|
1799
1791
|
d.push({
|
|
@@ -1805,18 +1797,18 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
|
|
|
1805
1797
|
mt(() => {
|
|
1806
1798
|
e.types.some((d, c) => d.validator(r.value) ? (o.value = c, !0) : !1);
|
|
1807
1799
|
});
|
|
1808
|
-
const s =
|
|
1800
|
+
const s = G(() => e.types[o.value]), u = () => {
|
|
1809
1801
|
r.value = s.value.default;
|
|
1810
|
-
}, a =
|
|
1802
|
+
}, a = R(0);
|
|
1811
1803
|
return mt(() => {
|
|
1812
1804
|
s.value.ui === "pixelInput" ? a.value = Nn(r.value) : s.value.ui === "percentInput" && (a.value = Bn(r.value));
|
|
1813
|
-
}),
|
|
1805
|
+
}), Re(a, (d) => {
|
|
1814
1806
|
s.value.ui === "pixelInput" ? r.value = d + "px" : s.value.ui === "percentInput" && (r.value = d + "%");
|
|
1815
1807
|
}), (d, c) => {
|
|
1816
|
-
const g = O("v-select"), y = O("v-number-input"), h = O("v-icon"), M =
|
|
1817
|
-
return S(),
|
|
1818
|
-
|
|
1819
|
-
|
|
1808
|
+
const g = O("v-select"), y = O("v-number-input"), h = O("v-icon"), M = ae("ripple");
|
|
1809
|
+
return S(), F("div", Ns, [
|
|
1810
|
+
z("div", Bs, [
|
|
1811
|
+
re(B(g, {
|
|
1820
1812
|
modelValue: o.value,
|
|
1821
1813
|
"onUpdate:modelValue": [
|
|
1822
1814
|
c[0] || (c[0] = (b) => o.value = b),
|
|
@@ -1834,7 +1826,7 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
|
|
|
1834
1826
|
{ stop: !0 }
|
|
1835
1827
|
]
|
|
1836
1828
|
]),
|
|
1837
|
-
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ?
|
|
1829
|
+
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? re((S(), k(y, {
|
|
1838
1830
|
key: 0,
|
|
1839
1831
|
modelValue: a.value,
|
|
1840
1832
|
"onUpdate:modelValue": c[1] || (c[1] = (b) => a.value = b),
|
|
@@ -1855,18 +1847,18 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { c
|
|
|
1855
1847
|
]
|
|
1856
1848
|
]) : I("", !0)
|
|
1857
1849
|
]),
|
|
1858
|
-
d.hasDelete ? (S(),
|
|
1850
|
+
d.hasDelete ? (S(), k(h, {
|
|
1859
1851
|
key: 0,
|
|
1860
1852
|
class: "mx-2",
|
|
1861
1853
|
icon: E(ye),
|
|
1862
|
-
onClick: c[2] || (c[2] =
|
|
1854
|
+
onClick: c[2] || (c[2] = q((b) => l("delete"), ["stop"]))
|
|
1863
1855
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1864
1856
|
]);
|
|
1865
1857
|
};
|
|
1866
1858
|
}
|
|
1867
1859
|
});
|
|
1868
|
-
function
|
|
1869
|
-
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(
|
|
1860
|
+
function ks(e) {
|
|
1861
|
+
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(Rs, {
|
|
1870
1862
|
modelValue: ce(
|
|
1871
1863
|
n,
|
|
1872
1864
|
r,
|
|
@@ -1893,7 +1885,7 @@ function Rs(e) {
|
|
|
1893
1885
|
types: r.types
|
|
1894
1886
|
}) };
|
|
1895
1887
|
}
|
|
1896
|
-
const Fs = /* @__PURE__ */
|
|
1888
|
+
const Fs = /* @__PURE__ */ K({
|
|
1897
1889
|
__name: "index",
|
|
1898
1890
|
props: {
|
|
1899
1891
|
unique: {},
|
|
@@ -1902,10 +1894,10 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1902
1894
|
},
|
|
1903
1895
|
emits: ["change"],
|
|
1904
1896
|
setup(e, { emit: t }) {
|
|
1905
|
-
const { t: n } =
|
|
1897
|
+
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 = (v, f) => {
|
|
1906
1898
|
Ft(d, l.config, l.object), o("change", v, f);
|
|
1907
1899
|
};
|
|
1908
|
-
|
|
1900
|
+
Re(
|
|
1909
1901
|
[() => l.config, () => l.object],
|
|
1910
1902
|
() => {
|
|
1911
1903
|
Ft(d, l.config, l.object, (v, f) => {
|
|
@@ -1914,26 +1906,26 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1914
1906
|
},
|
|
1915
1907
|
{ immediate: !0 }
|
|
1916
1908
|
);
|
|
1917
|
-
const g =
|
|
1918
|
-
Ji(g),
|
|
1909
|
+
const g = R(l.config);
|
|
1910
|
+
Ji(g), Re(
|
|
1919
1911
|
() => l.config,
|
|
1920
1912
|
() => {
|
|
1921
1913
|
g.value = l.config;
|
|
1922
1914
|
}
|
|
1923
1915
|
);
|
|
1924
|
-
const y =
|
|
1925
|
-
Yi(y),
|
|
1916
|
+
const y = R(l.object);
|
|
1917
|
+
Yi(y), Re(
|
|
1926
1918
|
() => l.object,
|
|
1927
1919
|
() => {
|
|
1928
1920
|
y.value = l.object;
|
|
1929
1921
|
}
|
|
1930
1922
|
), es(d), ns(c);
|
|
1931
|
-
const h =
|
|
1923
|
+
const h = R([]);
|
|
1932
1924
|
os(h);
|
|
1933
1925
|
const M = () => {
|
|
1934
|
-
const { compGroups: v, comps: f } =
|
|
1926
|
+
const { compGroups: v, comps: f } = kn.app.activeApp, m = [];
|
|
1935
1927
|
v.forEach(({ id: p, name: $, position: C }) => {
|
|
1936
|
-
const L = h.value.find((
|
|
1928
|
+
const L = h.value.find((Q) => Q.id === p);
|
|
1937
1929
|
m.push({
|
|
1938
1930
|
id: p,
|
|
1939
1931
|
type: 0,
|
|
@@ -1958,7 +1950,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1958
1950
|
}), jn(() => {
|
|
1959
1951
|
w();
|
|
1960
1952
|
});
|
|
1961
|
-
const { renderProp: U } = us(d, s, u), { renderUiDummy: A } = cs(c), { renderUiStrInput: V } = ps(c), { renderUiNumInput: W } = gs(c), { renderUiSwitch:
|
|
1953
|
+
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 = (v, f, m, p, $, C) => (v = sn(v), $ !== void 0 ? (v.push($), C && v.push(f.key)) : v.push(f.key), f.ui ? f.array && p ? An(v, f, m, p, $, C) : Cn(v, f, m, $, C) : f.array ? Sn(v, f, m, p, $, C) : wn(
|
|
1962
1954
|
v,
|
|
1963
1955
|
f,
|
|
1964
1956
|
m,
|
|
@@ -1974,10 +1966,10 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1974
1966
|
return console.assert(!1), _("div", "renderBranchArray branch must be valid");
|
|
1975
1967
|
let L;
|
|
1976
1968
|
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(f), c(v, m[f.key])), L = m[$]) : (m[f.key] instanceof Array || (m[f.key] = N(f), c(v, m[f.key])), L = m[f.key]);
|
|
1977
|
-
let
|
|
1978
|
-
p.collapse && be(d.value, v) && (
|
|
1969
|
+
let Q = n(f.name);
|
|
1970
|
+
p.collapse && be(d.value, v) && (Q += " *");
|
|
1979
1971
|
const Se = _(Be, {
|
|
1980
|
-
title:
|
|
1972
|
+
title: Q,
|
|
1981
1973
|
collapse: p.collapse,
|
|
1982
1974
|
hasCreate: !0,
|
|
1983
1975
|
onCollapse: (T) => {
|
|
@@ -1989,7 +1981,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1989
1981
|
onCreate: () => {
|
|
1990
1982
|
L.push({}), c(v, L);
|
|
1991
1983
|
}
|
|
1992
|
-
}),
|
|
1984
|
+
}), H = _(
|
|
1993
1985
|
"div",
|
|
1994
1986
|
{
|
|
1995
1987
|
style: {
|
|
@@ -1999,7 +1991,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1999
1991
|
(() => {
|
|
2000
1992
|
const T = [];
|
|
2001
1993
|
for (let j = 0; j < L.length; j++) {
|
|
2002
|
-
if (!
|
|
1994
|
+
if (!nt(p.children)) {
|
|
2003
1995
|
console.assert(!1);
|
|
2004
1996
|
break;
|
|
2005
1997
|
}
|
|
@@ -2008,29 +2000,29 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2008
2000
|
children: {}
|
|
2009
2001
|
});
|
|
2010
2002
|
const De = [...v, j], je = p.children[j];
|
|
2011
|
-
let vt =
|
|
2003
|
+
let vt = `[${j + 1}]`;
|
|
2012
2004
|
p.children[j].collapse && be(d.value, De) && (vt += " *");
|
|
2013
2005
|
const On = _(Be, {
|
|
2014
2006
|
title: vt,
|
|
2015
2007
|
collapse: p.children[j].collapse,
|
|
2016
2008
|
hasDelete: !0,
|
|
2017
2009
|
index: j,
|
|
2018
|
-
onCollapse: (
|
|
2019
|
-
if (!
|
|
2010
|
+
onCollapse: (ee) => {
|
|
2011
|
+
if (!nt(p.children)) {
|
|
2020
2012
|
console.assert(!1);
|
|
2021
2013
|
return;
|
|
2022
2014
|
}
|
|
2023
|
-
p.children[j].collapse =
|
|
2015
|
+
p.children[j].collapse = ee;
|
|
2024
2016
|
},
|
|
2025
|
-
onMenu: (
|
|
2026
|
-
_e.emit("propTreeMenu", { x:
|
|
2017
|
+
onMenu: (ee, fe) => {
|
|
2018
|
+
_e.emit("propTreeMenu", { x: ee, y: fe, keys: De });
|
|
2027
2019
|
},
|
|
2028
|
-
onDelete: (
|
|
2029
|
-
if (!
|
|
2020
|
+
onDelete: (ee) => {
|
|
2021
|
+
if (!nt(p.children)) {
|
|
2030
2022
|
console.assert(!1);
|
|
2031
2023
|
return;
|
|
2032
2024
|
}
|
|
2033
|
-
p.children.splice(
|
|
2025
|
+
p.children.splice(ee, 1), L.splice(ee, 1), c(v, L);
|
|
2034
2026
|
}
|
|
2035
2027
|
});
|
|
2036
2028
|
T.push(On);
|
|
@@ -2042,9 +2034,9 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2042
2034
|
}
|
|
2043
2035
|
},
|
|
2044
2036
|
(() => {
|
|
2045
|
-
const
|
|
2037
|
+
const ee = [];
|
|
2046
2038
|
return f.children.forEach((fe) => {
|
|
2047
|
-
if (!
|
|
2039
|
+
if (!kt(je.children)) {
|
|
2048
2040
|
console.assert(!1);
|
|
2049
2041
|
return;
|
|
2050
2042
|
}
|
|
@@ -2060,8 +2052,8 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2060
2052
|
j,
|
|
2061
2053
|
!0
|
|
2062
2054
|
);
|
|
2063
|
-
|
|
2064
|
-
}),
|
|
2055
|
+
ee.push(Mn);
|
|
2056
|
+
}), ee;
|
|
2065
2057
|
})()
|
|
2066
2058
|
);
|
|
2067
2059
|
p.children[j].collapse || T.push(xn);
|
|
@@ -2078,7 +2070,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2078
2070
|
},
|
|
2079
2071
|
(() => {
|
|
2080
2072
|
const T = [];
|
|
2081
|
-
return T.push(Se), p.collapse || T.push(
|
|
2073
|
+
return T.push(Se), p.collapse || T.push(H), T;
|
|
2082
2074
|
})()
|
|
2083
2075
|
);
|
|
2084
2076
|
}, wn = (v, f, m, p, $, C) => {
|
|
@@ -2090,15 +2082,15 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2090
2082
|
return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
|
|
2091
2083
|
let L = n(f.name);
|
|
2092
2084
|
p.collapse && be(d.value, v) && (L += " *");
|
|
2093
|
-
const
|
|
2085
|
+
const Q = _(Be, {
|
|
2094
2086
|
title: L,
|
|
2095
2087
|
collapse: p.collapse,
|
|
2096
2088
|
hasDelete: $ !== void 0 && !C,
|
|
2097
|
-
onCollapse: (
|
|
2098
|
-
p.collapse =
|
|
2089
|
+
onCollapse: (H) => {
|
|
2090
|
+
p.collapse = H;
|
|
2099
2091
|
},
|
|
2100
|
-
onMenu: (
|
|
2101
|
-
_e.emit("propTreeMenu", { x:
|
|
2092
|
+
onMenu: (H, T) => {
|
|
2093
|
+
_e.emit("propTreeMenu", { x: H, y: T, keys: v });
|
|
2102
2094
|
},
|
|
2103
2095
|
onDelete: () => {
|
|
2104
2096
|
$ === void 0 || C || (m.splice($, 1), c(v.slice(0, -1), m));
|
|
@@ -2111,9 +2103,9 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2111
2103
|
}
|
|
2112
2104
|
},
|
|
2113
2105
|
(() => {
|
|
2114
|
-
const
|
|
2106
|
+
const H = [];
|
|
2115
2107
|
return f.children.forEach((T) => {
|
|
2116
|
-
if (!
|
|
2108
|
+
if (!kt(p.children)) {
|
|
2117
2109
|
console.assert(!1);
|
|
2118
2110
|
return;
|
|
2119
2111
|
}
|
|
@@ -2127,8 +2119,8 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2127
2119
|
(typeof m[f.key] != "object" && (m[f.key] = {}, c(v, m[f.key])), m[f.key]),
|
|
2128
2120
|
p.children[T.key]
|
|
2129
2121
|
);
|
|
2130
|
-
|
|
2131
|
-
}),
|
|
2122
|
+
H.push(j);
|
|
2123
|
+
}), H;
|
|
2132
2124
|
})()
|
|
2133
2125
|
);
|
|
2134
2126
|
return _(
|
|
@@ -2139,8 +2131,8 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2139
2131
|
}
|
|
2140
2132
|
},
|
|
2141
2133
|
(() => {
|
|
2142
|
-
const
|
|
2143
|
-
return
|
|
2134
|
+
const H = [];
|
|
2135
|
+
return H.push(Q), p.collapse || H.push(Se), H;
|
|
2144
2136
|
})()
|
|
2145
2137
|
);
|
|
2146
2138
|
}, An = (v, f, m, p, $, C) => {
|
|
@@ -2152,10 +2144,10 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2152
2144
|
return console.assert(!1), _("div", "renderLeafArray branch must be valid");
|
|
2153
2145
|
let L;
|
|
2154
2146
|
$ !== void 0 && !C ? (m[$] instanceof Array || (m[$] = N(f), c(v, m[$])), L = m[$]) : (m[f.key] instanceof Array || (m[f.key] = N(f), c(v, m[f.key])), L = m[f.key]);
|
|
2155
|
-
let
|
|
2156
|
-
p.collapse && be(d.value, v) && (
|
|
2147
|
+
let Q = n(f.name);
|
|
2148
|
+
p.collapse && be(d.value, v) && (Q += " *");
|
|
2157
2149
|
const Se = _(Be, {
|
|
2158
|
-
title:
|
|
2150
|
+
title: Q,
|
|
2159
2151
|
collapse: p.collapse,
|
|
2160
2152
|
hasCreate: !0,
|
|
2161
2153
|
onCollapse: (T) => {
|
|
@@ -2167,7 +2159,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2167
2159
|
onCreate: () => {
|
|
2168
2160
|
L.push(N(f, !0)), c(v, L);
|
|
2169
2161
|
}
|
|
2170
|
-
}),
|
|
2162
|
+
}), H = _(
|
|
2171
2163
|
"div",
|
|
2172
2164
|
{
|
|
2173
2165
|
style: {
|
|
@@ -2192,14 +2184,14 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2192
2184
|
},
|
|
2193
2185
|
(() => {
|
|
2194
2186
|
const T = [];
|
|
2195
|
-
return T.push(Se), p.collapse || T.push(
|
|
2187
|
+
return T.push(Se), p.collapse || T.push(H), T;
|
|
2196
2188
|
})()
|
|
2197
2189
|
);
|
|
2198
2190
|
}, Cn = (v, f, m, p, $) => {
|
|
2199
2191
|
if (!f.ui)
|
|
2200
2192
|
return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
|
|
2201
2193
|
let C;
|
|
2202
|
-
return f.ui === "dummy" ? C = A(v, f, m, p, $) : f.ui === "strInput" ? C = V(v, f, m, p, $) : f.ui === "numInput" ? C = W(v, f, m, p, $) : f.ui === "switch" ? C =
|
|
2194
|
+
return f.ui === "dummy" ? C = A(v, f, m, p, $) : f.ui === "strInput" ? C = V(v, f, m, p, $) : f.ui === "numInput" ? C = W(v, f, m, p, $) : f.ui === "switch" ? C = Ye(v, f, m, p, $) : f.ui === "select" ? C = _n(v, f, m, p, $) : f.ui === "colorPicker" ? C = bn(v, f, m, p, $) : f.ui === "multiTypes" ? C = $n(v, f, m, p, $) : f.ui === "compSelect" ? C = Tn(v, f, m, p, $) : console.assert(!1, "renderLeafScalar not implemented"), C ? U(v, f, C) : _("div");
|
|
2203
2195
|
}, Pn = () => _(
|
|
2204
2196
|
"div",
|
|
2205
2197
|
{
|
|
@@ -2225,7 +2217,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2225
2217
|
return v;
|
|
2226
2218
|
})()
|
|
2227
2219
|
);
|
|
2228
|
-
return (v, f) => (S(),
|
|
2220
|
+
return (v, f) => (S(), F(He, null, [
|
|
2229
2221
|
B(Pn),
|
|
2230
2222
|
B(ls, {
|
|
2231
2223
|
config: l.config,
|
|
@@ -2250,7 +2242,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2250
2242
|
});
|
|
2251
2243
|
};
|
|
2252
2244
|
async function Js(e) {
|
|
2253
|
-
return (await Gs(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-
|
|
2245
|
+
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;
|
|
2254
2246
|
}
|
|
2255
2247
|
const Ws = { install: Hs };
|
|
2256
2248
|
export {
|