x-prop-tree 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +343 -341
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { provide as
|
|
1
|
+
import { provide as xe, inject as Me, defineComponent as z, ref as B, computed as G, resolveComponent as O, createBlock as R, openBlock as S, unref as E, isRef as Fe, withCtx as J, createVNode as k, createElementBlock as F, Fragment as He, renderList as Ht, createTextVNode as st, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as K, normalizeStyle as ie, createElementVNode as q, createCommentVNode as X, renderSlot as Mn, h, mergeModels as I, useModel as oe, useId as Gt, onUnmounted as zt, withKeys as Un, mergeProps as Kt, watchEffect as vt, watch as Be, reactive as Ln, onMounted as Dn, onBeforeUnmount as jn } from "vue";
|
|
2
2
|
import { useI18n as de } from "vue-i18n";
|
|
3
3
|
import { useViewStack as at, useColor as Te, eventBus as _e, useSystem as En } from "x-essential-lib";
|
|
4
4
|
import { getPropDefault as N, parsePixelStr as Nn, parsePercentStr as kn } from "x-runtime-lib";
|
|
5
5
|
import { useDisplay as Bn } from "vuetify";
|
|
6
6
|
import { globalState as Rn } from "x-state-lib";
|
|
7
|
-
var
|
|
7
|
+
var qt = typeof global == "object" && global && global.Object === Object && global, Fn = typeof self == "object" && self && self.Object === Object && self, Y = qt || Fn || Function("return this")(), se = Y.Symbol, Xt = Object.prototype, Hn = Xt.hasOwnProperty, Gn = Xt.toString, we = se ? se.toStringTag : void 0;
|
|
8
8
|
function zn(e) {
|
|
9
9
|
var t = Hn.call(e, we), n = e[we];
|
|
10
10
|
try {
|
|
@@ -19,31 +19,31 @@ var Kn = Object.prototype, qn = Kn.toString;
|
|
|
19
19
|
function Xn(e) {
|
|
20
20
|
return qn.call(e);
|
|
21
21
|
}
|
|
22
|
-
var In = "[object Null]", Zn = "[object Undefined]",
|
|
23
|
-
function
|
|
24
|
-
return e == null ? e === void 0 ? Zn : In :
|
|
22
|
+
var In = "[object Null]", Zn = "[object Undefined]", gt = se ? se.toStringTag : void 0;
|
|
23
|
+
function Ue(e) {
|
|
24
|
+
return e == null ? e === void 0 ? Zn : In : gt && gt in Object(e) ? zn(e) : Xn(e);
|
|
25
25
|
}
|
|
26
26
|
function ce(e) {
|
|
27
27
|
return e != null && typeof e == "object";
|
|
28
28
|
}
|
|
29
|
-
var
|
|
29
|
+
var Pe = Array.isArray;
|
|
30
30
|
function qe(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
|
-
function
|
|
35
|
+
function It(e) {
|
|
36
36
|
if (!qe(e))
|
|
37
37
|
return !1;
|
|
38
|
-
var t =
|
|
38
|
+
var t = Ue(e);
|
|
39
39
|
return t == Wn || t == Yn || t == Jn || t == Qn;
|
|
40
40
|
}
|
|
41
|
-
var Ye = Y["__core-js_shared__"],
|
|
41
|
+
var Ye = Y["__core-js_shared__"], yt = function() {
|
|
42
42
|
var e = /[^.]+$/.exec(Ye && Ye.keys && Ye.keys.IE_PROTO || "");
|
|
43
43
|
return e ? "Symbol(src)_1." + e : "";
|
|
44
44
|
}();
|
|
45
45
|
function er(e) {
|
|
46
|
-
return !!
|
|
46
|
+
return !!yt && yt in e;
|
|
47
47
|
}
|
|
48
48
|
var tr = Function.prototype, nr = tr.toString;
|
|
49
49
|
function pe(e) {
|
|
@@ -65,7 +65,7 @@ var rr = /[\\^$.*+?()[\]{}|]/g, or = /^\[object .+?Constructor\]$/, lr = Functio
|
|
|
65
65
|
function cr(e) {
|
|
66
66
|
if (!qe(e) || er(e))
|
|
67
67
|
return !1;
|
|
68
|
-
var t =
|
|
68
|
+
var t = It(e) ? ur : or;
|
|
69
69
|
return t.test(pe(e));
|
|
70
70
|
}
|
|
71
71
|
function fr(e, t) {
|
|
@@ -75,19 +75,19 @@ function me(e, t) {
|
|
|
75
75
|
var n = fr(e, t);
|
|
76
76
|
return cr(n) ? n : void 0;
|
|
77
77
|
}
|
|
78
|
-
var nt = me(Y, "WeakMap"),
|
|
78
|
+
var nt = me(Y, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
|
|
79
79
|
function e() {
|
|
80
80
|
}
|
|
81
81
|
return function(t) {
|
|
82
82
|
if (!qe(t))
|
|
83
83
|
return {};
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
84
|
+
if (ht)
|
|
85
|
+
return ht(t);
|
|
86
86
|
e.prototype = t;
|
|
87
87
|
var n = new e();
|
|
88
88
|
return e.prototype = void 0, n;
|
|
89
89
|
};
|
|
90
|
-
}(),
|
|
90
|
+
}(), _t = function() {
|
|
91
91
|
try {
|
|
92
92
|
var e = me(Object, "defineProperty");
|
|
93
93
|
return e({}, "", {}), e;
|
|
@@ -105,7 +105,7 @@ function gr(e, t) {
|
|
|
105
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
|
-
t == "__proto__" &&
|
|
108
|
+
t == "__proto__" && _t ? _t(e, t, {
|
|
109
109
|
configurable: !0,
|
|
110
110
|
enumerable: !0,
|
|
111
111
|
value: n,
|
|
@@ -121,14 +121,14 @@ function br(e, t, n) {
|
|
|
121
121
|
(!(_r.call(e, t) && ut(r, n)) || n === void 0 && !(t in e)) && yr(e, t, n);
|
|
122
122
|
}
|
|
123
123
|
var $r = 9007199254740991;
|
|
124
|
-
function
|
|
124
|
+
function Zt(e) {
|
|
125
125
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= $r;
|
|
126
126
|
}
|
|
127
127
|
function Tr(e) {
|
|
128
|
-
return e != null &&
|
|
128
|
+
return e != null && Zt(e.length) && !It(e);
|
|
129
129
|
}
|
|
130
130
|
var Sr = Object.prototype;
|
|
131
|
-
function
|
|
131
|
+
function Jt(e) {
|
|
132
132
|
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Sr;
|
|
133
133
|
return e === n;
|
|
134
134
|
}
|
|
@@ -138,37 +138,37 @@ function wr(e, t) {
|
|
|
138
138
|
return r;
|
|
139
139
|
}
|
|
140
140
|
var Ar = "[object Arguments]";
|
|
141
|
-
function
|
|
142
|
-
return ce(e) &&
|
|
141
|
+
function bt(e) {
|
|
142
|
+
return ce(e) && Ue(e) == Ar;
|
|
143
143
|
}
|
|
144
|
-
var
|
|
144
|
+
var Wt = Object.prototype, Cr = Wt.hasOwnProperty, Pr = Wt.propertyIsEnumerable, Or = bt(/* @__PURE__ */ function() {
|
|
145
145
|
return arguments;
|
|
146
|
-
}()) ?
|
|
146
|
+
}()) ? bt : function(e) {
|
|
147
147
|
return ce(e) && Cr.call(e, "callee") && !Pr.call(e, "callee");
|
|
148
148
|
};
|
|
149
149
|
function Vr() {
|
|
150
150
|
return !1;
|
|
151
151
|
}
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Yt && typeof module == "object" && module && !module.nodeType && module, xr = $t && $t.exports === Yt, Tt = xr ? Y.Buffer : void 0, Mr = Tt ? Tt.isBuffer : void 0, Ge = Mr || Vr, Ur = "[object Arguments]", Lr = "[object Array]", Dr = "[object Boolean]", jr = "[object Date]", Er = "[object Error]", Nr = "[object Function]", kr = "[object Map]", Br = "[object Number]", Rr = "[object Object]", Fr = "[object RegExp]", Hr = "[object Set]", Gr = "[object String]", zr = "[object WeakMap]", Kr = "[object ArrayBuffer]", qr = "[object DataView]", Xr = "[object Float32Array]", Ir = "[object Float64Array]", Zr = "[object Int8Array]", Jr = "[object Int16Array]", Wr = "[object Int32Array]", Yr = "[object Uint8Array]", Qr = "[object Uint8ClampedArray]", eo = "[object Uint16Array]", to = "[object Uint32Array]", V = {};
|
|
153
|
+
V[Xr] = V[Ir] = V[Zr] = V[Jr] = V[Wr] = V[Yr] = V[Qr] = V[eo] = V[to] = !0;
|
|
154
|
+
V[Ur] = V[Lr] = V[Kr] = V[Dr] = V[qr] = V[jr] = V[Er] = V[Nr] = V[kr] = V[Br] = V[Rr] = V[Fr] = V[Hr] = V[Gr] = V[zr] = !1;
|
|
155
155
|
function no(e) {
|
|
156
|
-
return ce(e) &&
|
|
156
|
+
return ce(e) && Zt(e.length) && !!V[Ue(e)];
|
|
157
157
|
}
|
|
158
158
|
function ct(e) {
|
|
159
159
|
return function(t) {
|
|
160
160
|
return e(t);
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
var
|
|
163
|
+
var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, Ce = Qt && typeof module == "object" && module && !module.nodeType && module, ro = Ce && Ce.exports === Qt, Qe = ro && qt.process, $e = function() {
|
|
164
164
|
try {
|
|
165
|
-
var e =
|
|
165
|
+
var e = Ce && Ce.require && Ce.require("util").types;
|
|
166
166
|
return e || Qe && Qe.binding && Qe.binding("util");
|
|
167
167
|
} catch {
|
|
168
168
|
}
|
|
169
|
-
}(),
|
|
169
|
+
}(), St = $e && $e.isTypedArray, en = St ? ct(St) : no, oo = Object.prototype, lo = oo.hasOwnProperty;
|
|
170
170
|
function io(e, t) {
|
|
171
|
-
var n =
|
|
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) : [], a = s.length;
|
|
172
172
|
for (var u in e)
|
|
173
173
|
lo.call(e, u) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
174
174
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -177,14 +177,14 @@ function io(e, t) {
|
|
|
177
177
|
gr(u, a))) && s.push(u);
|
|
178
178
|
return s;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function tn(e, t) {
|
|
181
181
|
return function(n) {
|
|
182
182
|
return e(t(n));
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
var so =
|
|
185
|
+
var so = tn(Object.keys, Object), ao = Object.prototype, uo = ao.hasOwnProperty;
|
|
186
186
|
function co(e) {
|
|
187
|
-
if (!
|
|
187
|
+
if (!Jt(e))
|
|
188
188
|
return so(e);
|
|
189
189
|
var t = [];
|
|
190
190
|
for (var n in Object(e))
|
|
@@ -194,9 +194,9 @@ function co(e) {
|
|
|
194
194
|
function fo(e) {
|
|
195
195
|
return Tr(e) ? io(e) : co(e);
|
|
196
196
|
}
|
|
197
|
-
var
|
|
197
|
+
var Oe = me(Object, "create");
|
|
198
198
|
function po() {
|
|
199
|
-
this.__data__ =
|
|
199
|
+
this.__data__ = Oe ? Oe(null) : {}, this.size = 0;
|
|
200
200
|
}
|
|
201
201
|
function mo(e) {
|
|
202
202
|
var t = this.has(e) && delete this.__data__[e];
|
|
@@ -205,7 +205,7 @@ function mo(e) {
|
|
|
205
205
|
var vo = "__lodash_hash_undefined__", go = Object.prototype, yo = go.hasOwnProperty;
|
|
206
206
|
function ho(e) {
|
|
207
207
|
var t = this.__data__;
|
|
208
|
-
if (
|
|
208
|
+
if (Oe) {
|
|
209
209
|
var n = t[e];
|
|
210
210
|
return n === vo ? void 0 : n;
|
|
211
211
|
}
|
|
@@ -214,12 +214,12 @@ function ho(e) {
|
|
|
214
214
|
var _o = Object.prototype, bo = _o.hasOwnProperty;
|
|
215
215
|
function $o(e) {
|
|
216
216
|
var t = this.__data__;
|
|
217
|
-
return
|
|
217
|
+
return Oe ? t[e] !== void 0 : bo.call(t, e);
|
|
218
218
|
}
|
|
219
219
|
var To = "__lodash_hash_undefined__";
|
|
220
220
|
function So(e, t) {
|
|
221
221
|
var n = this.__data__;
|
|
222
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
222
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = Oe && t === void 0 ? To : t, this;
|
|
223
223
|
}
|
|
224
224
|
function fe(e) {
|
|
225
225
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -273,11 +273,11 @@ le.prototype.delete = Po;
|
|
|
273
273
|
le.prototype.get = Oo;
|
|
274
274
|
le.prototype.has = Vo;
|
|
275
275
|
le.prototype.set = xo;
|
|
276
|
-
var
|
|
276
|
+
var Ve = me(Y, "Map");
|
|
277
277
|
function Mo() {
|
|
278
278
|
this.size = 0, this.__data__ = {
|
|
279
279
|
hash: new fe(),
|
|
280
|
-
map: new (
|
|
280
|
+
map: new (Ve || le)(),
|
|
281
281
|
string: new fe()
|
|
282
282
|
};
|
|
283
283
|
}
|
|
@@ -320,7 +320,7 @@ function No(e, t) {
|
|
|
320
320
|
e[l + n] = t[n];
|
|
321
321
|
return e;
|
|
322
322
|
}
|
|
323
|
-
var ko =
|
|
323
|
+
var ko = tn(Object.getPrototypeOf, Object);
|
|
324
324
|
function Bo() {
|
|
325
325
|
this.__data__ = new le(), this.size = 0;
|
|
326
326
|
}
|
|
@@ -339,7 +339,7 @@ function zo(e, t) {
|
|
|
339
339
|
var n = this.__data__;
|
|
340
340
|
if (n instanceof le) {
|
|
341
341
|
var r = n.__data__;
|
|
342
|
-
if (!
|
|
342
|
+
if (!Ve || r.length < Go - 1)
|
|
343
343
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
344
344
|
n = this.__data__ = new ve(r);
|
|
345
345
|
}
|
|
@@ -354,8 +354,8 @@ te.prototype.delete = Ro;
|
|
|
354
354
|
te.prototype.get = Fo;
|
|
355
355
|
te.prototype.has = Ho;
|
|
356
356
|
te.prototype.set = zo;
|
|
357
|
-
var
|
|
358
|
-
|
|
357
|
+
var nn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = nn && typeof module == "object" && module && !module.nodeType && module, Ko = wt && wt.exports === nn, At = Ko ? Y.Buffer : void 0;
|
|
358
|
+
At && At.allocUnsafe;
|
|
359
359
|
function qo(e, t) {
|
|
360
360
|
return e.slice();
|
|
361
361
|
}
|
|
@@ -369,33 +369,33 @@ function Xo(e, t) {
|
|
|
369
369
|
function Io() {
|
|
370
370
|
return [];
|
|
371
371
|
}
|
|
372
|
-
var Zo = Object.prototype, Jo = Zo.propertyIsEnumerable,
|
|
373
|
-
return e == null ? [] : (e = Object(e), Xo(
|
|
372
|
+
var Zo = Object.prototype, Jo = Zo.propertyIsEnumerable, Ct = Object.getOwnPropertySymbols, Wo = Ct ? function(e) {
|
|
373
|
+
return e == null ? [] : (e = Object(e), Xo(Ct(e), function(t) {
|
|
374
374
|
return Jo.call(e, t);
|
|
375
375
|
}));
|
|
376
376
|
} : Io;
|
|
377
377
|
function Yo(e, t, n) {
|
|
378
378
|
var r = t(e);
|
|
379
|
-
return
|
|
379
|
+
return Pe(e) ? r : No(r, n(e));
|
|
380
380
|
}
|
|
381
381
|
function rt(e) {
|
|
382
382
|
return Yo(e, fo, Wo);
|
|
383
383
|
}
|
|
384
|
-
var ot = me(Y, "DataView"), lt = me(Y, "Promise"), it = me(Y, "Set"),
|
|
385
|
-
(ot && Z(new ot(new ArrayBuffer(1))) !=
|
|
386
|
-
var t =
|
|
384
|
+
var ot = me(Y, "DataView"), lt = me(Y, "Promise"), it = me(Y, "Set"), Pt = "[object Map]", Qo = "[object Object]", Ot = "[object Promise]", Vt = "[object Set]", xt = "[object WeakMap]", Mt = "[object DataView]", el = pe(ot), tl = pe(Ve), nl = pe(lt), rl = pe(it), ol = pe(nt), Z = Ue;
|
|
385
|
+
(ot && Z(new ot(new ArrayBuffer(1))) != Mt || Ve && Z(new Ve()) != Pt || lt && Z(lt.resolve()) != Ot || it && Z(new it()) != Vt || nt && Z(new nt()) != xt) && (Z = function(e) {
|
|
386
|
+
var t = Ue(e), n = t == Qo ? e.constructor : void 0, r = n ? pe(n) : "";
|
|
387
387
|
if (r)
|
|
388
388
|
switch (r) {
|
|
389
389
|
case el:
|
|
390
|
-
return
|
|
390
|
+
return Mt;
|
|
391
391
|
case tl:
|
|
392
|
-
return Ct;
|
|
393
|
-
case nl:
|
|
394
392
|
return Pt;
|
|
395
|
-
case
|
|
393
|
+
case nl:
|
|
396
394
|
return Ot;
|
|
397
|
-
case
|
|
395
|
+
case rl:
|
|
398
396
|
return Vt;
|
|
397
|
+
case ol:
|
|
398
|
+
return xt;
|
|
399
399
|
}
|
|
400
400
|
return t;
|
|
401
401
|
});
|
|
@@ -418,9 +418,9 @@ 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
|
|
421
|
+
var Ut = se ? se.prototype : void 0, Lt = Ut ? Ut.valueOf : void 0;
|
|
422
422
|
function fl(e) {
|
|
423
|
-
return
|
|
423
|
+
return Lt ? Object(Lt.call(e)) : {};
|
|
424
424
|
}
|
|
425
425
|
function dl(e, t) {
|
|
426
426
|
var n = ft(e.buffer);
|
|
@@ -461,33 +461,33 @@ function Ul(e, t, n) {
|
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function Ll(e) {
|
|
464
|
-
return typeof e.constructor == "function" && !
|
|
464
|
+
return typeof e.constructor == "function" && !Jt(e) ? dr(ko(e)) : {};
|
|
465
465
|
}
|
|
466
466
|
var Dl = "[object Map]";
|
|
467
467
|
function jl(e) {
|
|
468
468
|
return ce(e) && Z(e) == Dl;
|
|
469
469
|
}
|
|
470
|
-
var
|
|
470
|
+
var Dt = $e && $e.isMap, El = Dt ? ct(Dt) : jl, Nl = "[object Set]";
|
|
471
471
|
function kl(e) {
|
|
472
472
|
return ce(e) && Z(e) == Nl;
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
P[
|
|
476
|
-
P[Gl] = P[
|
|
474
|
+
var jt = $e && $e.isSet, Bl = jt ? ct(jt) : kl, rn = "[object Arguments]", Rl = "[object Array]", Fl = "[object Boolean]", Hl = "[object Date]", Gl = "[object Error]", on = "[object Function]", zl = "[object GeneratorFunction]", Kl = "[object Map]", ql = "[object Number]", ln = "[object Object]", Xl = "[object RegExp]", Il = "[object Set]", Zl = "[object String]", Jl = "[object Symbol]", Wl = "[object WeakMap]", Yl = "[object ArrayBuffer]", Ql = "[object DataView]", ei = "[object Float32Array]", ti = "[object Float64Array]", ni = "[object Int8Array]", ri = "[object Int16Array]", oi = "[object Int32Array]", li = "[object Uint8Array]", ii = "[object Uint8ClampedArray]", si = "[object Uint16Array]", ai = "[object Uint32Array]", P = {};
|
|
475
|
+
P[rn] = P[Rl] = P[Yl] = P[Ql] = P[Fl] = P[Hl] = P[ei] = P[ti] = P[ni] = P[ri] = P[oi] = P[Kl] = P[ql] = P[ln] = P[Xl] = P[Il] = P[Zl] = P[Jl] = P[li] = P[ii] = P[si] = P[ai] = !0;
|
|
476
|
+
P[Gl] = P[on] = P[Wl] = !1;
|
|
477
477
|
function Re(e, t, n, r, l, o) {
|
|
478
478
|
var i;
|
|
479
479
|
if (i !== void 0)
|
|
480
480
|
return i;
|
|
481
481
|
if (!qe(e))
|
|
482
482
|
return e;
|
|
483
|
-
var s =
|
|
483
|
+
var s = Pe(e);
|
|
484
484
|
if (s)
|
|
485
485
|
i = sl(e);
|
|
486
486
|
else {
|
|
487
|
-
var a = Z(e), u = a ==
|
|
487
|
+
var a = Z(e), u = a == on || a == zl;
|
|
488
488
|
if (Ge(e))
|
|
489
489
|
return qo(e);
|
|
490
|
-
if (a ==
|
|
490
|
+
if (a == ln || a == rn || u && !l)
|
|
491
491
|
i = u ? {} : Ll(e);
|
|
492
492
|
else {
|
|
493
493
|
if (!P[a])
|
|
@@ -496,21 +496,21 @@ function Re(e, t, n, r, l, o) {
|
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
o || (o = new te());
|
|
499
|
-
var
|
|
500
|
-
if (
|
|
501
|
-
return
|
|
499
|
+
var d = o.get(e);
|
|
500
|
+
if (d)
|
|
501
|
+
return d;
|
|
502
502
|
o.set(e, i), Bl(e) ? e.forEach(function(v) {
|
|
503
503
|
i.add(Re(v, t, n, v, e, o));
|
|
504
|
-
}) : El(e) && e.forEach(function(v,
|
|
505
|
-
i.set(
|
|
504
|
+
}) : El(e) && e.forEach(function(v, b) {
|
|
505
|
+
i.set(b, Re(v, t, n, b, e, o));
|
|
506
506
|
});
|
|
507
|
-
var
|
|
508
|
-
return pr(y || e, function(v,
|
|
509
|
-
y && (
|
|
507
|
+
var f = rt, y = s ? void 0 : f(e);
|
|
508
|
+
return pr(y || e, function(v, b) {
|
|
509
|
+
y && (b = v, v = e[b]), br(i, b, Re(v, t, n, b, e, o));
|
|
510
510
|
}), i;
|
|
511
511
|
}
|
|
512
512
|
var ui = 1, ci = 4;
|
|
513
|
-
function
|
|
513
|
+
function sn(e) {
|
|
514
514
|
return Re(e, ui | ci);
|
|
515
515
|
}
|
|
516
516
|
var fi = "__lodash_hash_undefined__";
|
|
@@ -537,33 +537,33 @@ function vi(e, t) {
|
|
|
537
537
|
return e.has(t);
|
|
538
538
|
}
|
|
539
539
|
var gi = 1, yi = 2;
|
|
540
|
-
function
|
|
540
|
+
function an(e, t, n, r, l, o) {
|
|
541
541
|
var i = n & gi, s = e.length, a = t.length;
|
|
542
542
|
if (s != a && !(i && a > s))
|
|
543
543
|
return !1;
|
|
544
|
-
var u = o.get(e),
|
|
545
|
-
if (u &&
|
|
546
|
-
return u == t &&
|
|
547
|
-
var
|
|
548
|
-
for (o.set(e, t), o.set(t, e); ++
|
|
549
|
-
var
|
|
544
|
+
var u = o.get(e), d = o.get(t);
|
|
545
|
+
if (u && d)
|
|
546
|
+
return u == t && d == e;
|
|
547
|
+
var f = -1, y = !0, v = n & yi ? new Ke() : void 0;
|
|
548
|
+
for (o.set(e, t), o.set(t, e); ++f < s; ) {
|
|
549
|
+
var b = e[f], L = t[f];
|
|
550
550
|
if (r)
|
|
551
|
-
var
|
|
552
|
-
if (
|
|
553
|
-
if (
|
|
551
|
+
var _ = i ? r(L, b, f, t, e, o) : r(b, L, f, e, t, o);
|
|
552
|
+
if (_ !== void 0) {
|
|
553
|
+
if (_)
|
|
554
554
|
continue;
|
|
555
555
|
y = !1;
|
|
556
556
|
break;
|
|
557
557
|
}
|
|
558
558
|
if (v) {
|
|
559
559
|
if (!mi(t, function(D, w) {
|
|
560
|
-
if (!vi(v, w) && (
|
|
560
|
+
if (!vi(v, w) && (b === D || l(b, D, n, r, o)))
|
|
561
561
|
return v.push(w);
|
|
562
562
|
})) {
|
|
563
563
|
y = !1;
|
|
564
564
|
break;
|
|
565
565
|
}
|
|
566
|
-
} else if (!(
|
|
566
|
+
} else if (!(b === L || l(b, L, n, r, o))) {
|
|
567
567
|
y = !1;
|
|
568
568
|
break;
|
|
569
569
|
}
|
|
@@ -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]", Vi = "[object String]", xi = "[object Symbol]", Mi = "[object ArrayBuffer]", Ui = "[object DataView]",
|
|
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]", Vi = "[object String]", xi = "[object Symbol]", Mi = "[object ArrayBuffer]", Ui = "[object DataView]", Et = se ? se.prototype : void 0, et = Et ? Et.valueOf : void 0;
|
|
586
586
|
function Li(e, t, n, r, l, o, i) {
|
|
587
587
|
switch (n) {
|
|
588
588
|
case Ui:
|
|
@@ -610,8 +610,8 @@ function Li(e, t, n, r, l, o, i) {
|
|
|
610
610
|
if (u)
|
|
611
611
|
return u == t;
|
|
612
612
|
r |= $i, i.set(e, t);
|
|
613
|
-
var
|
|
614
|
-
return i.delete(e),
|
|
613
|
+
var d = an(s(e), s(t), r, l, o, i);
|
|
614
|
+
return i.delete(e), d;
|
|
615
615
|
case xi:
|
|
616
616
|
if (et)
|
|
617
617
|
return et.call(e) == et.call(t);
|
|
@@ -620,62 +620,62 @@ function Li(e, t, n, r, l, o, i) {
|
|
|
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 = rt(e), a = s.length, u = rt(t),
|
|
624
|
-
if (a !=
|
|
623
|
+
var i = n & Di, s = rt(e), a = s.length, u = rt(t), d = u.length;
|
|
624
|
+
if (a != d && !i)
|
|
625
625
|
return !1;
|
|
626
|
-
for (var
|
|
627
|
-
var y = s[
|
|
626
|
+
for (var f = a; f--; ) {
|
|
627
|
+
var y = s[f];
|
|
628
628
|
if (!(i ? y in t : Ei.call(t, y)))
|
|
629
629
|
return !1;
|
|
630
630
|
}
|
|
631
|
-
var v = o.get(e),
|
|
632
|
-
if (v &&
|
|
633
|
-
return v == t &&
|
|
634
|
-
var
|
|
631
|
+
var v = o.get(e), b = o.get(t);
|
|
632
|
+
if (v && b)
|
|
633
|
+
return v == t && b == e;
|
|
634
|
+
var L = !0;
|
|
635
635
|
o.set(e, t), o.set(t, e);
|
|
636
|
-
for (var
|
|
637
|
-
y = s[
|
|
636
|
+
for (var _ = i; ++f < a; ) {
|
|
637
|
+
y = s[f];
|
|
638
638
|
var D = e[y], w = t[y];
|
|
639
639
|
if (r)
|
|
640
|
-
var
|
|
641
|
-
if (!(
|
|
642
|
-
|
|
640
|
+
var x = i ? r(w, D, y, t, e, o) : r(D, w, y, e, t, o);
|
|
641
|
+
if (!(x === void 0 ? D === w || l(D, w, n, r, o) : x)) {
|
|
642
|
+
L = !1;
|
|
643
643
|
break;
|
|
644
644
|
}
|
|
645
|
-
|
|
645
|
+
_ || (_ = y == "constructor");
|
|
646
646
|
}
|
|
647
|
-
if (
|
|
648
|
-
var A = e.constructor,
|
|
649
|
-
A !=
|
|
647
|
+
if (L && !_) {
|
|
648
|
+
var A = e.constructor, M = t.constructor;
|
|
649
|
+
A != M && "constructor" in e && "constructor" in t && !(typeof A == "function" && A instanceof A && typeof M == "function" && M instanceof M) && (L = !1);
|
|
650
650
|
}
|
|
651
|
-
return o.delete(e), o.delete(t),
|
|
651
|
+
return o.delete(e), o.delete(t), L;
|
|
652
652
|
}
|
|
653
|
-
var ki = 1,
|
|
653
|
+
var ki = 1, Nt = "[object Arguments]", kt = "[object Array]", Ee = "[object Object]", Bi = Object.prototype, Bt = Bi.hasOwnProperty;
|
|
654
654
|
function Ri(e, t, n, r, l, o) {
|
|
655
|
-
var i =
|
|
656
|
-
a = a ==
|
|
657
|
-
var
|
|
655
|
+
var i = Pe(e), s = Pe(t), a = i ? kt : Z(e), u = s ? kt : Z(t);
|
|
656
|
+
a = a == Nt ? Ee : a, u = u == Nt ? Ee : u;
|
|
657
|
+
var d = a == Ee, f = u == Ee, y = a == u;
|
|
658
658
|
if (y && Ge(e)) {
|
|
659
659
|
if (!Ge(t))
|
|
660
660
|
return !1;
|
|
661
|
-
i = !0,
|
|
661
|
+
i = !0, d = !1;
|
|
662
662
|
}
|
|
663
|
-
if (y && !
|
|
664
|
-
return o || (o = new te()), i ||
|
|
663
|
+
if (y && !d)
|
|
664
|
+
return o || (o = new te()), i || en(e) ? an(e, t, n, r, l, o) : Li(e, t, a, n, r, l, o);
|
|
665
665
|
if (!(n & ki)) {
|
|
666
|
-
var v =
|
|
667
|
-
if (v ||
|
|
668
|
-
var
|
|
669
|
-
return o || (o = new te()), l(
|
|
666
|
+
var v = d && Bt.call(e, "__wrapped__"), b = f && Bt.call(t, "__wrapped__");
|
|
667
|
+
if (v || b) {
|
|
668
|
+
var L = v ? e.value() : e, _ = b ? t.value() : t;
|
|
669
|
+
return o || (o = new te()), l(L, _, n, r, o);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
return y ? (o || (o = new te()), Ni(e, t, n, r, l, o)) : !1;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
return e === t ? !0 : e == null || t == null || !ce(e) && !ce(t) ? e !== e && t !== t : Ri(e, t, n, r,
|
|
674
|
+
function un(e, t, n, r, l) {
|
|
675
|
+
return e === t ? !0 : e == null || t == null || !ce(e) && !ce(t) ? e !== e && t !== t : Ri(e, t, n, r, un, l);
|
|
676
676
|
}
|
|
677
677
|
function Ze(e, t) {
|
|
678
|
-
return
|
|
678
|
+
return un(e, t);
|
|
679
679
|
}
|
|
680
680
|
function Fi(e, t) {
|
|
681
681
|
const n = [];
|
|
@@ -695,7 +695,7 @@ function Fi(e, t) {
|
|
|
695
695
|
}), i.count = s.length, i.count > 0 && (o.push(i), o.push(...s));
|
|
696
696
|
}), o;
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function cn(e, t) {
|
|
699
699
|
return e.value.find((n) => n.id === t);
|
|
700
700
|
}
|
|
701
701
|
function Hi(e, t, n) {
|
|
@@ -712,7 +712,7 @@ function Hi(e, t, n) {
|
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
|
-
const
|
|
715
|
+
const Ne = (e, t) => {
|
|
716
716
|
let n = { key: "", name: "", children: e };
|
|
717
717
|
return t.forEach((r) => {
|
|
718
718
|
if (typeof r != "number") {
|
|
@@ -736,7 +736,7 @@ const ke = (e, t) => {
|
|
|
736
736
|
}
|
|
737
737
|
n = n[r];
|
|
738
738
|
}), n;
|
|
739
|
-
},
|
|
739
|
+
}, Rt = (e) => !(e instanceof Array), tt = (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;
|
|
@@ -753,7 +753,7 @@ const ke = (e, t) => {
|
|
|
753
753
|
}, dt = (e) => !(e instanceof Array), pt = (e) => e instanceof Array, zi = [
|
|
754
754
|
["basic", "id"],
|
|
755
755
|
["basic", "name"]
|
|
756
|
-
], Ki = (e) => zi.find((t) => Ze(e, t)), Je = (e, t, n, r, l, o, i) => (e =
|
|
756
|
+
], Ki = (e) => zi.find((t) => Ze(e, t)), Je = (e, t, n, r, l, o, i) => (e = sn(e), o !== void 0 ? (e.push(o), i && e.push(t.key)) : e.push(t.key), Ki(e) ? (r.change = !1, r.change) : t.ui ? t.array && o === void 0 ? Ii(
|
|
757
757
|
e,
|
|
758
758
|
t,
|
|
759
759
|
n,
|
|
@@ -792,19 +792,19 @@ const ke = (e, t) => {
|
|
|
792
792
|
children: {}
|
|
793
793
|
});
|
|
794
794
|
const u = r.children[a];
|
|
795
|
-
t.children.forEach((
|
|
795
|
+
t.children.forEach((d) => {
|
|
796
796
|
if (!dt(u.children)) {
|
|
797
797
|
console.assert(!1);
|
|
798
798
|
return;
|
|
799
799
|
}
|
|
800
|
-
u.children[
|
|
800
|
+
u.children[d.key] = {
|
|
801
801
|
change: !1,
|
|
802
|
-
children:
|
|
802
|
+
children: d.array ? [] : {}
|
|
803
803
|
}, Je(
|
|
804
804
|
e,
|
|
805
|
-
|
|
805
|
+
d,
|
|
806
806
|
s[a],
|
|
807
|
-
u.children[
|
|
807
|
+
u.children[d.key],
|
|
808
808
|
l,
|
|
809
809
|
a,
|
|
810
810
|
!0
|
|
@@ -849,7 +849,7 @@ const ke = (e, t) => {
|
|
|
849
849
|
return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
|
|
850
850
|
let o;
|
|
851
851
|
return r !== void 0 && !l ? o = t[r] : o = t[e.key], n.change = !Ze(o, N(e, !0)), n.change;
|
|
852
|
-
},
|
|
852
|
+
}, Ft = (e, t, n, r) => {
|
|
853
853
|
if (t.length <= 0 || !n) {
|
|
854
854
|
e.value = {};
|
|
855
855
|
return;
|
|
@@ -868,100 +868,100 @@ const ke = (e, t) => {
|
|
|
868
868
|
return console.assert(!1, `isPropChanged state must be valid keys=${t}`), !1;
|
|
869
869
|
typeof r == "string" ? dt(n.children) && (n = n.children[r]) : pt(n.children) && (n = n.children[r]);
|
|
870
870
|
}), (n == null ? void 0 : n.change) ?? !1;
|
|
871
|
-
},
|
|
871
|
+
}, fn = Symbol(), dn = Symbol(), pn = Symbol(), mn = Symbol(), vn = Symbol();
|
|
872
872
|
function Ji(e) {
|
|
873
|
-
|
|
873
|
+
xe(fn, e);
|
|
874
874
|
}
|
|
875
875
|
function Wi() {
|
|
876
|
-
return
|
|
876
|
+
return Me(fn);
|
|
877
877
|
}
|
|
878
878
|
function Yi(e) {
|
|
879
|
-
|
|
879
|
+
xe(dn, e);
|
|
880
880
|
}
|
|
881
881
|
function Qi() {
|
|
882
|
-
return
|
|
882
|
+
return Me(dn);
|
|
883
883
|
}
|
|
884
884
|
function es(e) {
|
|
885
|
-
|
|
885
|
+
xe(pn, e);
|
|
886
886
|
}
|
|
887
887
|
function ts() {
|
|
888
|
-
return
|
|
888
|
+
return Me(pn);
|
|
889
889
|
}
|
|
890
890
|
function ns(e) {
|
|
891
|
-
|
|
891
|
+
xe(mn, e);
|
|
892
892
|
}
|
|
893
893
|
function rs() {
|
|
894
|
-
return
|
|
894
|
+
return Me(mn);
|
|
895
895
|
}
|
|
896
896
|
function os(e) {
|
|
897
|
-
|
|
897
|
+
xe(vn, e);
|
|
898
898
|
}
|
|
899
|
-
function
|
|
900
|
-
return
|
|
899
|
+
function gn() {
|
|
900
|
+
return Me(vn);
|
|
901
901
|
}
|
|
902
902
|
const ls = /* @__PURE__ */ z({
|
|
903
903
|
__name: "menu",
|
|
904
904
|
setup(e) {
|
|
905
|
-
const { t } = de(), n = Wi(), r = Qi(), l = ts(), o = rs(), i = B(0), s = B(0), a = B([]), u = G(() => [i.value, s.value]),
|
|
905
|
+
const { t } = de(), n = Wi(), r = Qi(), l = ts(), o = rs(), i = B(0), s = B(0), a = B([]), u = G(() => [i.value, s.value]), d = (_) => {
|
|
906
906
|
const D = () => !(a.value.length <= 0 || !be(l.value, a.value)), w = () => {
|
|
907
907
|
if (!D())
|
|
908
908
|
return;
|
|
909
|
-
const
|
|
910
|
-
if (
|
|
911
|
-
if (
|
|
909
|
+
const x = Ne(n.value, a.value);
|
|
910
|
+
if (x)
|
|
911
|
+
if (x.ui) {
|
|
912
912
|
const A = Ae(r.value, a.value.slice(0, -1));
|
|
913
913
|
if (!A)
|
|
914
914
|
return;
|
|
915
|
-
A[a.value.at(-1)] = N(
|
|
916
|
-
} else if (
|
|
915
|
+
A[a.value.at(-1)] = N(x), o(a.value, A[a.value.at(-1)]);
|
|
916
|
+
} else if (x.array) {
|
|
917
917
|
const A = a.value.at(-1);
|
|
918
918
|
if (A === void 0) {
|
|
919
919
|
console.assert(!1, "invalid last key");
|
|
920
920
|
return;
|
|
921
921
|
}
|
|
922
922
|
if (typeof A == "string") {
|
|
923
|
-
const
|
|
924
|
-
if (!
|
|
923
|
+
const M = Ae(r.value, a.value.slice(0, -1));
|
|
924
|
+
if (!M)
|
|
925
925
|
return;
|
|
926
|
-
|
|
926
|
+
M[a.value.at(-1)] = N(x), o(a.value, M[a.value.at(-1)]);
|
|
927
927
|
} else {
|
|
928
|
-
const
|
|
929
|
-
if (!
|
|
928
|
+
const M = Ae(r.value, a.value);
|
|
929
|
+
if (!M)
|
|
930
930
|
return;
|
|
931
|
-
|
|
932
|
-
|
|
931
|
+
x.children.forEach((W) => {
|
|
932
|
+
M[W.key] = N(x), o([...a.value, W.key], M[W.key]);
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
935
|
} else {
|
|
936
936
|
const A = Ae(r.value, a.value);
|
|
937
937
|
if (!A)
|
|
938
938
|
return;
|
|
939
|
-
|
|
940
|
-
A[
|
|
939
|
+
x.children.forEach((M) => {
|
|
940
|
+
A[M.key] = N(x), o([...a.value, M.key], A[M.key]);
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
943
|
};
|
|
944
|
-
D() &&
|
|
944
|
+
D() && _.push({
|
|
945
945
|
title: t("x-prop-tree.reset"),
|
|
946
946
|
func: w
|
|
947
947
|
});
|
|
948
|
-
},
|
|
948
|
+
}, f = (_) => {
|
|
949
949
|
const D = () => {
|
|
950
|
-
const w =
|
|
951
|
-
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: w, object:
|
|
950
|
+
const w = Ne(n.value, a.value), x = Ae(r.value, a.value);
|
|
951
|
+
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: w, object: x }));
|
|
952
952
|
};
|
|
953
|
-
|
|
953
|
+
_.push({
|
|
954
954
|
title: t("x-prop-tree.copy"),
|
|
955
955
|
func: D
|
|
956
956
|
});
|
|
957
|
-
}, y = (
|
|
957
|
+
}, y = (_) => {
|
|
958
958
|
const D = () => {
|
|
959
|
-
const
|
|
960
|
-
if (!
|
|
959
|
+
const x = localStorage.getItem("propTreeCopy");
|
|
960
|
+
if (!x)
|
|
961
961
|
return !1;
|
|
962
962
|
try {
|
|
963
|
-
const { prop: A } = JSON.parse(
|
|
964
|
-
return Gi(A,
|
|
963
|
+
const { prop: A } = JSON.parse(x), M = Ne(n.value, a.value);
|
|
964
|
+
return Gi(A, M);
|
|
965
965
|
} catch (A) {
|
|
966
966
|
console.error(A);
|
|
967
967
|
}
|
|
@@ -969,30 +969,30 @@ const ls = /* @__PURE__ */ z({
|
|
|
969
969
|
}, w = () => {
|
|
970
970
|
if (!D())
|
|
971
971
|
return;
|
|
972
|
-
const
|
|
973
|
-
if (
|
|
972
|
+
const x = localStorage.getItem("propTreeCopy");
|
|
973
|
+
if (x)
|
|
974
974
|
try {
|
|
975
|
-
const { object: A } = JSON.parse(
|
|
976
|
-
console.log(A,
|
|
975
|
+
const { object: A } = JSON.parse(x), M = Ne(n.value, a.value);
|
|
976
|
+
console.log(A, M);
|
|
977
977
|
} catch (A) {
|
|
978
978
|
console.error(A);
|
|
979
979
|
}
|
|
980
980
|
};
|
|
981
|
-
D() &&
|
|
981
|
+
D() && _.push({
|
|
982
982
|
title: t("x-prop-tree.paste"),
|
|
983
983
|
func: w
|
|
984
984
|
});
|
|
985
985
|
}, v = G(() => {
|
|
986
|
-
const
|
|
987
|
-
return
|
|
988
|
-
}),
|
|
989
|
-
i.value =
|
|
990
|
-
}, { open:
|
|
991
|
-
return (
|
|
992
|
-
const w = O("v-list-item-title"),
|
|
993
|
-
return S(), R(
|
|
994
|
-
modelValue: E(
|
|
995
|
-
"onUpdate:modelValue": D[0] || (D[0] = (W) => Fe(
|
|
986
|
+
const _ = [];
|
|
987
|
+
return d(_), f(_), y(_), _;
|
|
988
|
+
}), b = (_) => {
|
|
989
|
+
i.value = _.x, s.value = _.y, a.value = _.keys;
|
|
990
|
+
}, { open: L } = at("propTreeMenu", b);
|
|
991
|
+
return (_, D) => {
|
|
992
|
+
const w = O("v-list-item-title"), x = O("v-list-item"), A = O("v-list"), M = O("v-menu");
|
|
993
|
+
return S(), R(M, {
|
|
994
|
+
modelValue: E(L),
|
|
995
|
+
"onUpdate:modelValue": D[0] || (D[0] = (W) => Fe(L) ? L.value = W : null),
|
|
996
996
|
"location-strategy": "connected",
|
|
997
997
|
target: u.value,
|
|
998
998
|
scrim: "transparent"
|
|
@@ -1000,7 +1000,7 @@ const ls = /* @__PURE__ */ z({
|
|
|
1000
1000
|
default: J(() => [
|
|
1001
1001
|
k(A, null, {
|
|
1002
1002
|
default: J(() => [
|
|
1003
|
-
(S(!0), F(He, null,
|
|
1003
|
+
(S(!0), F(He, null, Ht(v.value, (W, We) => (S(), R(x, {
|
|
1004
1004
|
key: We,
|
|
1005
1005
|
link: "",
|
|
1006
1006
|
onClick: W.func
|
|
@@ -1024,8 +1024,8 @@ const ls = /* @__PURE__ */ z({
|
|
|
1024
1024
|
};
|
|
1025
1025
|
}
|
|
1026
1026
|
});
|
|
1027
|
-
var
|
|
1028
|
-
const
|
|
1027
|
+
var yn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", hn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", is = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", ge = "M19,13H5V11H19V13Z", ss = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
1028
|
+
const ke = /* @__PURE__ */ z({
|
|
1029
1029
|
__name: "title",
|
|
1030
1030
|
props: {
|
|
1031
1031
|
title: {},
|
|
@@ -1046,33 +1046,33 @@ const Be = /* @__PURE__ */ z({
|
|
|
1046
1046
|
}, a = (u) => {
|
|
1047
1047
|
l("menu", u.clientX, u.clientY);
|
|
1048
1048
|
};
|
|
1049
|
-
return (u,
|
|
1050
|
-
const
|
|
1049
|
+
return (u, d) => {
|
|
1050
|
+
const f = O("v-icon"), y = O("v-spacer"), v = ae("ripple");
|
|
1051
1051
|
return re((S(), F("div", {
|
|
1052
1052
|
class: "d-flex align-center cursor-pointer",
|
|
1053
1053
|
style: ie(i.value),
|
|
1054
1054
|
onClick: s,
|
|
1055
1055
|
onContextmenu: K(a, ["prevent"]),
|
|
1056
|
-
onMouseover:
|
|
1057
|
-
onMouseout:
|
|
1056
|
+
onMouseover: d[2] || (d[2] = (b) => o.value = !0),
|
|
1057
|
+
onMouseout: d[3] || (d[3] = (b) => o.value = !1)
|
|
1058
1058
|
}, [
|
|
1059
|
-
k(
|
|
1059
|
+
k(f, {
|
|
1060
1060
|
class: "mr-1",
|
|
1061
|
-
icon: u.collapse ? E(
|
|
1061
|
+
icon: u.collapse ? E(hn) : E(yn)
|
|
1062
1062
|
}, null, 8, ["icon"]),
|
|
1063
1063
|
q("span", null, ne(u.title), 1),
|
|
1064
1064
|
k(y),
|
|
1065
|
-
u.hasCreate ? (S(), R(
|
|
1065
|
+
u.hasCreate ? (S(), R(f, {
|
|
1066
1066
|
key: 0,
|
|
1067
1067
|
class: "mx-3",
|
|
1068
1068
|
icon: E(ss),
|
|
1069
|
-
onClick:
|
|
1069
|
+
onClick: d[0] || (d[0] = K((b) => l("create"), ["stop"]))
|
|
1070
1070
|
}, null, 8, ["icon"])) : X("", !0),
|
|
1071
|
-
u.hasDelete ? (S(), R(
|
|
1071
|
+
u.hasDelete ? (S(), R(f, {
|
|
1072
1072
|
key: 1,
|
|
1073
1073
|
class: "mx-3",
|
|
1074
1074
|
icon: E(ge),
|
|
1075
|
-
onClick:
|
|
1075
|
+
onClick: d[1] || (d[1] = K((b) => l("delete", u.index), ["stop"]))
|
|
1076
1076
|
}, null, 8, ["icon"])) : X("", !0)
|
|
1077
1077
|
], 36)), [
|
|
1078
1078
|
[v]
|
|
@@ -1096,17 +1096,17 @@ const Be = /* @__PURE__ */ z({
|
|
|
1096
1096
|
l("menu", a.clientX, a.clientY);
|
|
1097
1097
|
};
|
|
1098
1098
|
return (a, u) => {
|
|
1099
|
-
const
|
|
1099
|
+
const d = ae("ripple");
|
|
1100
1100
|
return re((S(), F("div", {
|
|
1101
1101
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1102
1102
|
style: ie(i.value),
|
|
1103
1103
|
onContextmenu: K(s, ["prevent"]),
|
|
1104
|
-
onMouseover: u[0] || (u[0] = (
|
|
1105
|
-
onMouseout: u[1] || (u[1] = (
|
|
1104
|
+
onMouseover: u[0] || (u[0] = (f) => o.value = !0),
|
|
1105
|
+
onMouseout: u[1] || (u[1] = (f) => o.value = !1)
|
|
1106
1106
|
}, [
|
|
1107
|
-
|
|
1107
|
+
Mn(a.$slots, "default")
|
|
1108
1108
|
], 36)), [
|
|
1109
|
-
[
|
|
1109
|
+
[d]
|
|
1110
1110
|
]);
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
@@ -1119,8 +1119,8 @@ function us(e, t, n) {
|
|
|
1119
1119
|
as,
|
|
1120
1120
|
{
|
|
1121
1121
|
minHeight: t.value,
|
|
1122
|
-
onMenu: (u,
|
|
1123
|
-
_e.emit("propTreeMenu", { x: u, y:
|
|
1122
|
+
onMenu: (u, d) => {
|
|
1123
|
+
_e.emit("propTreeMenu", { x: u, y: d, keys: o });
|
|
1124
1124
|
}
|
|
1125
1125
|
},
|
|
1126
1126
|
() => [
|
|
@@ -1433,10 +1433,10 @@ function Ts(e) {
|
|
|
1433
1433
|
},
|
|
1434
1434
|
items: (() => {
|
|
1435
1435
|
const a = [];
|
|
1436
|
-
return l.items.forEach(({ title: u, value:
|
|
1436
|
+
return l.items.forEach(({ title: u, value: d }) => {
|
|
1437
1437
|
a.push({
|
|
1438
1438
|
title: t(u),
|
|
1439
|
-
value:
|
|
1439
|
+
value: d
|
|
1440
1440
|
});
|
|
1441
1441
|
}), a;
|
|
1442
1442
|
})(),
|
|
@@ -1460,7 +1460,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1460
1460
|
userSelect: "none"
|
|
1461
1461
|
}));
|
|
1462
1462
|
return (a, u) => {
|
|
1463
|
-
const
|
|
1463
|
+
const d = O("v-icon"), f = ae("ripple");
|
|
1464
1464
|
return re((S(), F("div", {
|
|
1465
1465
|
class: "d-flex align-center cursor-pointer",
|
|
1466
1466
|
style: ie(s.value),
|
|
@@ -1468,14 +1468,14 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1468
1468
|
onMouseover: u[1] || (u[1] = (y) => i.value = !0),
|
|
1469
1469
|
onMouseout: u[2] || (u[2] = (y) => i.value = !1)
|
|
1470
1470
|
}, [
|
|
1471
|
-
k(
|
|
1472
|
-
icon: l.collapse ? E(
|
|
1471
|
+
k(d, {
|
|
1472
|
+
icon: l.collapse ? E(hn) : E(yn),
|
|
1473
1473
|
size: "small"
|
|
1474
1474
|
}, null, 8, ["icon"]),
|
|
1475
1475
|
q("span", Ss, ne(l.title), 1),
|
|
1476
1476
|
q("span", ws, ne(l.count), 1)
|
|
1477
1477
|
], 36)), [
|
|
1478
|
-
[
|
|
1478
|
+
[f]
|
|
1479
1479
|
]);
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
@@ -1494,17 +1494,17 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1494
1494
|
userSelect: "none"
|
|
1495
1495
|
}));
|
|
1496
1496
|
return (a, u) => {
|
|
1497
|
-
const
|
|
1497
|
+
const d = ae("ripple");
|
|
1498
1498
|
return re((S(), F("div", {
|
|
1499
1499
|
class: "d-flex align-center cursor-pointer",
|
|
1500
1500
|
style: ie(s.value),
|
|
1501
|
-
onClick: u[0] || (u[0] = (
|
|
1502
|
-
onMouseover: u[1] || (u[1] = (
|
|
1503
|
-
onMouseout: u[2] || (u[2] = (
|
|
1501
|
+
onClick: u[0] || (u[0] = (f) => o("x-click", l.id)),
|
|
1502
|
+
onMouseover: u[1] || (u[1] = (f) => i.value = !0),
|
|
1503
|
+
onMouseout: u[2] || (u[2] = (f) => i.value = !1)
|
|
1504
1504
|
}, [
|
|
1505
1505
|
q("span", Cs, ne(l.title), 1)
|
|
1506
1506
|
], 36)), [
|
|
1507
|
-
[
|
|
1507
|
+
[d]
|
|
1508
1508
|
]);
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
@@ -1521,14 +1521,14 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1521
1521
|
},
|
|
1522
1522
|
emits: ["update:modelValue", "update:open"],
|
|
1523
1523
|
setup(e) {
|
|
1524
|
-
const { t } = de(), n = oe(e, "modelValue"), r = oe(e, "open"), l =
|
|
1525
|
-
const a =
|
|
1524
|
+
const { t } = de(), n = oe(e, "modelValue"), r = oe(e, "open"), l = gn(), o = (s) => {
|
|
1525
|
+
const a = cn(l, s);
|
|
1526
1526
|
a && Hi(l, s, !a.collapse);
|
|
1527
1527
|
}, i = (s) => {
|
|
1528
1528
|
n.value = s, r.value = !1, _e.emit("refreshDepends");
|
|
1529
1529
|
};
|
|
1530
1530
|
return (s, a) => E(l).length > 0 ? (S(), F("div", Os, [
|
|
1531
|
-
(S(!0), F(He, null,
|
|
1531
|
+
(S(!0), F(He, null, Ht(E(l), (u) => (S(), F(He, {
|
|
1532
1532
|
key: u.id
|
|
1533
1533
|
}, [
|
|
1534
1534
|
u.type === 0 ? (S(), R(As, {
|
|
@@ -1556,7 +1556,7 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1556
1556
|
},
|
|
1557
1557
|
emits: ["update:modelValue"],
|
|
1558
1558
|
setup(e) {
|
|
1559
|
-
const { t } = de(), n = Bn(), { sysBarAvail: r } = En(), { backgroundColor1: l } = Te(), o = oe(e, "modelValue"), i =
|
|
1559
|
+
const { t } = de(), n = Bn(), { sysBarAvail: r } = En(), { backgroundColor1: l } = Te(), o = oe(e, "modelValue"), i = gn(), s = G(() => {
|
|
1560
1560
|
let y = "100%";
|
|
1561
1561
|
return n.mdAndUp.value && (y = "400px"), {
|
|
1562
1562
|
background: l.value,
|
|
@@ -1567,37 +1567,36 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1567
1567
|
let y = 48;
|
|
1568
1568
|
return r.value && (y += 24), {
|
|
1569
1569
|
position: "relative",
|
|
1570
|
-
width: "100%",
|
|
1571
1570
|
height: `calc(100% - ${y}px)`
|
|
1572
1571
|
};
|
|
1573
1572
|
}), u = G(() => ({
|
|
1574
1573
|
height: "60px"
|
|
1575
|
-
})),
|
|
1574
|
+
})), d = G(() => {
|
|
1576
1575
|
if (!o.value)
|
|
1577
1576
|
return t("x-prop-tree.notSet");
|
|
1578
|
-
const y =
|
|
1577
|
+
const y = cn(i, o.value);
|
|
1579
1578
|
return y ? y.name : t("x-runtime-lib.compNotAvail");
|
|
1580
|
-
}), { open:
|
|
1581
|
-
return
|
|
1582
|
-
|
|
1579
|
+
}), { open: f } = at(`propTreeCompSelectDlg${Gt()}`);
|
|
1580
|
+
return zt(() => {
|
|
1581
|
+
f.value = !1;
|
|
1583
1582
|
}), (y, v) => {
|
|
1584
|
-
const
|
|
1583
|
+
const b = O("v-btn"), L = O("v-sheet"), _ = O("v-icon"), D = O("v-dialog");
|
|
1585
1584
|
return S(), R(D, {
|
|
1586
|
-
modelValue: E(
|
|
1587
|
-
"onUpdate:modelValue": v[5] || (v[5] = (w) => Fe(
|
|
1585
|
+
modelValue: E(f),
|
|
1586
|
+
"onUpdate:modelValue": v[5] || (v[5] = (w) => Fe(f) ? f.value = w : null),
|
|
1588
1587
|
transition: "scroll-x-reverse-transition",
|
|
1589
1588
|
persistent: "",
|
|
1590
1589
|
"no-click-animation": "",
|
|
1591
1590
|
fullscreen: "",
|
|
1592
|
-
onKeydown: v[6] || (v[6] =
|
|
1591
|
+
onKeydown: v[6] || (v[6] = Un(K((w) => f.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1593
1592
|
}, {
|
|
1594
1593
|
activator: J(({ props: w }) => [
|
|
1595
|
-
k(
|
|
1594
|
+
k(b, Kt(w, {
|
|
1596
1595
|
density: "comfortable",
|
|
1597
1596
|
block: ""
|
|
1598
1597
|
}), {
|
|
1599
1598
|
default: J(() => [
|
|
1600
|
-
st(ne(
|
|
1599
|
+
st(ne(d.value), 1)
|
|
1601
1600
|
]),
|
|
1602
1601
|
_: 2
|
|
1603
1602
|
}, 1040)
|
|
@@ -1605,27 +1604,27 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1605
1604
|
default: J(() => [
|
|
1606
1605
|
q("div", {
|
|
1607
1606
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1608
|
-
onClick: v[3] || (v[3] = K((w) =>
|
|
1609
|
-
onContextmenu: v[4] || (v[4] = K((w) =>
|
|
1607
|
+
onClick: v[3] || (v[3] = K((w) => f.value = !1, ["self"])),
|
|
1608
|
+
onContextmenu: v[4] || (v[4] = K((w) => f.value = !1, ["self", "prevent"]))
|
|
1610
1609
|
}, [
|
|
1611
1610
|
q("div", {
|
|
1612
1611
|
class: "elevation-2",
|
|
1613
1612
|
style: ie(s.value)
|
|
1614
1613
|
}, [
|
|
1615
|
-
E(r) ? (S(), R(
|
|
1614
|
+
E(r) ? (S(), R(L, {
|
|
1616
1615
|
key: 0,
|
|
1617
1616
|
color: "transparent",
|
|
1618
1617
|
height: 24
|
|
1619
1618
|
})) : X("", !0),
|
|
1620
|
-
k(
|
|
1619
|
+
k(L, {
|
|
1621
1620
|
class: "d-flex align-center px-3",
|
|
1622
1621
|
color: "transparent",
|
|
1623
1622
|
height: 48
|
|
1624
1623
|
}, {
|
|
1625
1624
|
default: J(() => [
|
|
1626
|
-
k(
|
|
1625
|
+
k(_, {
|
|
1627
1626
|
icon: E(is),
|
|
1628
|
-
onClick: v[0] || (v[0] = (w) =>
|
|
1627
|
+
onClick: v[0] || (v[0] = (w) => f.value = !1)
|
|
1629
1628
|
}, null, 8, ["icon"]),
|
|
1630
1629
|
q("span", Ms, ne(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
1631
1630
|
]),
|
|
@@ -1638,8 +1637,8 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1638
1637
|
k(xs, {
|
|
1639
1638
|
modelValue: o.value,
|
|
1640
1639
|
"onUpdate:modelValue": v[1] || (v[1] = (w) => o.value = w),
|
|
1641
|
-
open: E(
|
|
1642
|
-
"onUpdate:open": v[2] || (v[2] = (w) => Fe(
|
|
1640
|
+
open: E(f),
|
|
1641
|
+
"onUpdate:open": v[2] || (v[2] = (w) => Fe(f) ? f.value = w : null)
|
|
1643
1642
|
}, null, 8, ["modelValue", "open"]),
|
|
1644
1643
|
q("div", {
|
|
1645
1644
|
style: ie(u.value)
|
|
@@ -1692,11 +1691,11 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1692
1691
|
return e.hasDelete && (s = "calc(100% - 37px)"), {
|
|
1693
1692
|
width: s
|
|
1694
1693
|
};
|
|
1695
|
-
}), o = G(() => e.readonly), { open: i } = at(`propTreeColorPickerMenu${
|
|
1696
|
-
return
|
|
1694
|
+
}), o = G(() => e.readonly), { open: i } = at(`propTreeColorPickerMenu${Gt()}`);
|
|
1695
|
+
return zt(() => {
|
|
1697
1696
|
i.value = !1;
|
|
1698
1697
|
}), (s, a) => {
|
|
1699
|
-
const u = O("v-btn"),
|
|
1698
|
+
const u = O("v-btn"), d = O("v-icon"), f = O("v-color-picker"), y = O("v-menu");
|
|
1700
1699
|
return S(), R(y, {
|
|
1701
1700
|
modelValue: E(i),
|
|
1702
1701
|
"onUpdate:modelValue": a[2] || (a[2] = (v) => Fe(i) ? i.value = v : null),
|
|
@@ -1709,7 +1708,7 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1709
1708
|
class: "flex-grow-1",
|
|
1710
1709
|
style: ie(l.value)
|
|
1711
1710
|
}, [
|
|
1712
|
-
k(u,
|
|
1711
|
+
k(u, Kt(v, {
|
|
1713
1712
|
density: "comfortable",
|
|
1714
1713
|
color: n.value,
|
|
1715
1714
|
block: "",
|
|
@@ -1721,16 +1720,16 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1721
1720
|
_: 2
|
|
1722
1721
|
}, 1040, ["color", "disabled"])
|
|
1723
1722
|
], 4),
|
|
1724
|
-
s.hasDelete ? (S(), R(
|
|
1723
|
+
s.hasDelete ? (S(), R(d, {
|
|
1725
1724
|
key: 0,
|
|
1726
1725
|
class: "mx-2",
|
|
1727
1726
|
icon: E(ge),
|
|
1728
|
-
onClick: a[0] || (a[0] = K((
|
|
1727
|
+
onClick: a[0] || (a[0] = K((b) => r("delete"), ["stop"]))
|
|
1729
1728
|
}, null, 8, ["icon"])) : X("", !0)
|
|
1730
1729
|
])
|
|
1731
1730
|
]),
|
|
1732
1731
|
default: J(() => [
|
|
1733
|
-
k(
|
|
1732
|
+
k(f, {
|
|
1734
1733
|
modelValue: n.value,
|
|
1735
1734
|
"onUpdate:modelValue": a[1] || (a[1] = (v) => n.value = v),
|
|
1736
1735
|
mode: "hexa",
|
|
@@ -1783,47 +1782,50 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, ks = { c
|
|
|
1783
1782
|
emits: /* @__PURE__ */ I(["delete"], ["update:modelValue"]),
|
|
1784
1783
|
setup(e, { emit: t }) {
|
|
1785
1784
|
const { t: n } = de(), r = oe(e, "modelValue"), l = t, o = B(0), i = G(() => {
|
|
1786
|
-
const
|
|
1787
|
-
return e.types.forEach((f,
|
|
1788
|
-
|
|
1789
|
-
title: n(f
|
|
1790
|
-
value:
|
|
1785
|
+
const d = [];
|
|
1786
|
+
return e.types.forEach(({ name: f }, y) => {
|
|
1787
|
+
d.push({
|
|
1788
|
+
title: n(f),
|
|
1789
|
+
value: y
|
|
1791
1790
|
});
|
|
1792
|
-
}),
|
|
1791
|
+
}), d;
|
|
1793
1792
|
});
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
Ce(s, (u) => {
|
|
1797
|
-
r.value = u.default;
|
|
1793
|
+
vt(() => {
|
|
1794
|
+
e.types.some((d, f) => d.validator(r.value) ? (o.value = f, !0) : !1);
|
|
1798
1795
|
});
|
|
1799
|
-
const a =
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
s.value.ui === "pixelInput" ?
|
|
1804
|
-
}), (u,
|
|
1805
|
-
|
|
1796
|
+
const s = G(() => e.types[o.value]), a = () => {
|
|
1797
|
+
r.value = s.value.default;
|
|
1798
|
+
}, u = B(0);
|
|
1799
|
+
return vt(() => {
|
|
1800
|
+
s.value.ui === "pixelInput" ? u.value = Nn(r.value) : s.value.ui === "percentInput" && (u.value = kn(r.value));
|
|
1801
|
+
}), Be(u, (d) => {
|
|
1802
|
+
s.value.ui === "pixelInput" ? r.value = d + "px" : s.value.ui === "percentInput" && (r.value = d + "%");
|
|
1803
|
+
}), (d, f) => {
|
|
1804
|
+
const y = O("v-select"), v = O("v-number-input"), b = O("v-icon"), L = ae("ripple");
|
|
1806
1805
|
return S(), F("div", Ns, [
|
|
1807
1806
|
q("div", ks, [
|
|
1808
|
-
re(k(
|
|
1807
|
+
re(k(y, {
|
|
1809
1808
|
modelValue: o.value,
|
|
1810
|
-
"onUpdate:modelValue":
|
|
1809
|
+
"onUpdate:modelValue": [
|
|
1810
|
+
f[0] || (f[0] = (_) => o.value = _),
|
|
1811
|
+
a
|
|
1812
|
+
],
|
|
1811
1813
|
density: "compact",
|
|
1812
1814
|
items: i.value,
|
|
1813
1815
|
"hide-details": "",
|
|
1814
1816
|
"single-line": ""
|
|
1815
1817
|
}, null, 8, ["modelValue", "items"]), [
|
|
1816
1818
|
[
|
|
1817
|
-
|
|
1819
|
+
L,
|
|
1818
1820
|
void 0,
|
|
1819
1821
|
void 0,
|
|
1820
1822
|
{ stop: !0 }
|
|
1821
1823
|
]
|
|
1822
1824
|
]),
|
|
1823
|
-
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? re((S(), R(
|
|
1825
|
+
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? re((S(), R(v, {
|
|
1824
1826
|
key: 0,
|
|
1825
|
-
modelValue:
|
|
1826
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
1827
|
+
modelValue: u.value,
|
|
1828
|
+
"onUpdate:modelValue": f[1] || (f[1] = (_) => u.value = _),
|
|
1827
1829
|
density: "compact",
|
|
1828
1830
|
"control-variant": "stacked",
|
|
1829
1831
|
precision: s.value.precision,
|
|
@@ -1834,18 +1836,18 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, ks = { c
|
|
|
1834
1836
|
"single-line": ""
|
|
1835
1837
|
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
1836
1838
|
[
|
|
1837
|
-
|
|
1839
|
+
L,
|
|
1838
1840
|
void 0,
|
|
1839
1841
|
void 0,
|
|
1840
1842
|
{ stop: !0 }
|
|
1841
1843
|
]
|
|
1842
1844
|
]) : X("", !0)
|
|
1843
1845
|
]),
|
|
1844
|
-
|
|
1846
|
+
d.hasDelete ? (S(), R(b, {
|
|
1845
1847
|
key: 0,
|
|
1846
1848
|
class: "mx-2",
|
|
1847
1849
|
icon: E(ge),
|
|
1848
|
-
onClick: f[2] || (f[2] = K((
|
|
1850
|
+
onClick: f[2] || (f[2] = K((_) => l("delete"), ["stop"]))
|
|
1849
1851
|
}, null, 8, ["icon"])) : X("", !0)
|
|
1850
1852
|
]);
|
|
1851
1853
|
};
|
|
@@ -1888,81 +1890,81 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1888
1890
|
},
|
|
1889
1891
|
emits: ["change"],
|
|
1890
1892
|
setup(e, { emit: t }) {
|
|
1891
|
-
const { t: n } = de(), { backgroundColor1: r } = Te(), l = e, o = t, i = B("20px"), s = B("56px"), a = B("200px"), u = Ln({}),
|
|
1892
|
-
|
|
1893
|
+
const { t: n } = de(), { backgroundColor1: r } = Te(), l = e, o = t, i = B("20px"), s = B("56px"), a = B("200px"), u = Ln({}), d = B({}), f = (m, c) => {
|
|
1894
|
+
Ft(d, l.config, l.object), o("change", m, c);
|
|
1893
1895
|
};
|
|
1894
|
-
|
|
1896
|
+
Be(
|
|
1895
1897
|
[() => l.config, () => l.object],
|
|
1896
1898
|
() => {
|
|
1897
|
-
|
|
1899
|
+
Ft(d, l.config, l.object, (m, c) => {
|
|
1898
1900
|
o("change", m, c);
|
|
1899
1901
|
});
|
|
1900
1902
|
},
|
|
1901
1903
|
{ immediate: !0 }
|
|
1902
1904
|
);
|
|
1903
1905
|
const y = B(l.config);
|
|
1904
|
-
Ji(y),
|
|
1906
|
+
Ji(y), Be(
|
|
1905
1907
|
() => l.config,
|
|
1906
1908
|
() => {
|
|
1907
1909
|
y.value = l.config;
|
|
1908
1910
|
}
|
|
1909
1911
|
);
|
|
1910
1912
|
const v = B(l.object);
|
|
1911
|
-
Yi(v),
|
|
1913
|
+
Yi(v), Be(
|
|
1912
1914
|
() => l.object,
|
|
1913
1915
|
() => {
|
|
1914
1916
|
v.value = l.object;
|
|
1915
1917
|
}
|
|
1916
|
-
), es(
|
|
1917
|
-
const
|
|
1918
|
-
os(
|
|
1919
|
-
const
|
|
1918
|
+
), es(d), ns(f);
|
|
1919
|
+
const b = B([]);
|
|
1920
|
+
os(b);
|
|
1921
|
+
const L = () => {
|
|
1920
1922
|
const { compGroups: m, comps: c } = Rn.app.activeApp, g = [];
|
|
1921
|
-
m.forEach(({ id: p, name:
|
|
1922
|
-
const
|
|
1923
|
+
m.forEach(({ id: p, name: $, position: C }) => {
|
|
1924
|
+
const U = b.value.find((Q) => Q.id === p);
|
|
1923
1925
|
g.push({
|
|
1924
1926
|
id: p,
|
|
1925
1927
|
type: 0,
|
|
1926
|
-
name:
|
|
1928
|
+
name: $,
|
|
1927
1929
|
position: C,
|
|
1928
|
-
collapse: (
|
|
1930
|
+
collapse: (U == null ? void 0 : U.collapse) ?? !0
|
|
1929
1931
|
});
|
|
1930
|
-
}), c.forEach(({ id: p, groupid:
|
|
1931
|
-
g.push({ id: p, type: 1, name: C, position:
|
|
1932
|
-
}), Fi(g, !0),
|
|
1932
|
+
}), c.forEach(({ id: p, groupid: $, name: C, position: U }) => {
|
|
1933
|
+
g.push({ id: p, type: 1, name: C, position: U, group: $ });
|
|
1934
|
+
}), Fi(g, !0), b.value = g;
|
|
1933
1935
|
};
|
|
1934
|
-
let
|
|
1936
|
+
let _;
|
|
1935
1937
|
const D = () => {
|
|
1936
|
-
clearTimeout(
|
|
1937
|
-
|
|
1938
|
+
clearTimeout(_), _ = window.setTimeout(() => {
|
|
1939
|
+
L(), _ && D();
|
|
1938
1940
|
}, 1e3);
|
|
1939
1941
|
}, w = () => {
|
|
1940
|
-
clearTimeout(
|
|
1942
|
+
clearTimeout(_), _ = void 0;
|
|
1941
1943
|
};
|
|
1942
1944
|
Dn(() => {
|
|
1943
1945
|
D();
|
|
1944
1946
|
}), jn(() => {
|
|
1945
1947
|
w();
|
|
1946
1948
|
});
|
|
1947
|
-
const { renderProp:
|
|
1949
|
+
const { renderProp: x } = us(d, s, a), { renderUiDummy: A } = cs(f), { renderUiStrInput: M } = ps(f), { renderUiNumInput: W } = gs(f), { renderUiSwitch: We } = _s(f), { renderUiSelect: _n } = Ts(f), { renderUiColorPicker: bn } = Es(f), { renderUiMultiTypes: $n } = Rs(f), { renderUiCompSelect: Tn } = Ls(f), Le = (m, c, g, p, $, C) => (m = sn(m), $ !== void 0 ? (m.push($), C && m.push(c.key)) : m.push(c.key), c.ui ? c.array && $ === void 0 ? An(m, c, g, p, $, C) : Cn(m, c, g, $, C) : c.array ? Sn(m, c, g, p, $, C) : wn(
|
|
1948
1950
|
m,
|
|
1949
1951
|
c,
|
|
1950
1952
|
g,
|
|
1951
1953
|
p,
|
|
1952
|
-
|
|
1954
|
+
$,
|
|
1953
1955
|
C
|
|
1954
|
-
)),
|
|
1956
|
+
)), Sn = (m, c, g, p, $, C) => {
|
|
1955
1957
|
if (c.ui)
|
|
1956
1958
|
return console.assert(!1), h("div", "renderBranchArray prop ui must be invalid");
|
|
1957
1959
|
if (!c.array)
|
|
1958
1960
|
return console.assert(!1), h("div", "renderBranchArray prop array must be valid");
|
|
1959
1961
|
if (!p)
|
|
1960
1962
|
return console.assert(!1), h("div", "renderBranchArray branch must be valid");
|
|
1961
|
-
let
|
|
1962
|
-
|
|
1963
|
+
let U;
|
|
1964
|
+
$ !== void 0 && !C ? (g[$] instanceof Array || (g[$] = N(c), f(m, g[c.key])), U = g[$]) : (g[c.key] instanceof Array || (g[c.key] = N(c), f(m, g[c.key])), U = g[c.key]);
|
|
1963
1965
|
let Q = n(c.name);
|
|
1964
|
-
p.collapse && be(
|
|
1965
|
-
const Se = h(
|
|
1966
|
+
p.collapse && be(d.value, m) && (Q += " *");
|
|
1967
|
+
const Se = h(ke, {
|
|
1966
1968
|
title: Q,
|
|
1967
1969
|
collapse: p.collapse,
|
|
1968
1970
|
hasCreate: !0,
|
|
@@ -1973,7 +1975,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1973
1975
|
_e.emit("propTreeMenu", { x: T, y: j, keys: m });
|
|
1974
1976
|
},
|
|
1975
1977
|
onCreate: () => {
|
|
1976
|
-
|
|
1978
|
+
U.push({}), f(m, U);
|
|
1977
1979
|
}
|
|
1978
1980
|
}), H = h(
|
|
1979
1981
|
"div",
|
|
@@ -1984,7 +1986,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1984
1986
|
},
|
|
1985
1987
|
(() => {
|
|
1986
1988
|
const T = [];
|
|
1987
|
-
for (let j = 0; j <
|
|
1989
|
+
for (let j = 0; j < U.length; j++) {
|
|
1988
1990
|
if (!tt(p.children)) {
|
|
1989
1991
|
console.assert(!1);
|
|
1990
1992
|
break;
|
|
@@ -1993,10 +1995,10 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1993
1995
|
collapse: !0,
|
|
1994
1996
|
children: {}
|
|
1995
1997
|
});
|
|
1996
|
-
const
|
|
1998
|
+
const De = [...m, j], je = p.children[j];
|
|
1997
1999
|
let mt = n("x-prop-tree.entry", { index: j });
|
|
1998
|
-
p.children[j].collapse && be(
|
|
1999
|
-
const
|
|
2000
|
+
p.children[j].collapse && be(d.value, De) && (mt += " *");
|
|
2001
|
+
const On = h(ke, {
|
|
2000
2002
|
title: mt,
|
|
2001
2003
|
collapse: p.children[j].collapse,
|
|
2002
2004
|
hasDelete: !0,
|
|
@@ -2009,18 +2011,18 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2009
2011
|
p.children[j].collapse = ee;
|
|
2010
2012
|
},
|
|
2011
2013
|
onMenu: (ee, ue) => {
|
|
2012
|
-
_e.emit("propTreeMenu", { x: ee, y: ue, keys:
|
|
2014
|
+
_e.emit("propTreeMenu", { x: ee, y: ue, keys: De });
|
|
2013
2015
|
},
|
|
2014
2016
|
onDelete: (ee) => {
|
|
2015
2017
|
if (!tt(p.children)) {
|
|
2016
2018
|
console.assert(!1);
|
|
2017
2019
|
return;
|
|
2018
2020
|
}
|
|
2019
|
-
p.children.splice(ee, 1),
|
|
2021
|
+
p.children.splice(ee, 1), U.splice(ee, 1), f(m, U);
|
|
2020
2022
|
}
|
|
2021
2023
|
});
|
|
2022
|
-
T.push(
|
|
2023
|
-
const
|
|
2024
|
+
T.push(On);
|
|
2025
|
+
const Vn = h(
|
|
2024
2026
|
"div",
|
|
2025
2027
|
{
|
|
2026
2028
|
style: {
|
|
@@ -2030,27 +2032,27 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2030
2032
|
(() => {
|
|
2031
2033
|
const ee = [];
|
|
2032
2034
|
return c.children.forEach((ue) => {
|
|
2033
|
-
if (!
|
|
2035
|
+
if (!Rt(je.children)) {
|
|
2034
2036
|
console.assert(!1);
|
|
2035
2037
|
return;
|
|
2036
2038
|
}
|
|
2037
|
-
|
|
2039
|
+
je.children[ue.key] || (je.children[ue.key] = {
|
|
2038
2040
|
collapse: !0,
|
|
2039
2041
|
children: ue.array ? [] : {}
|
|
2040
2042
|
});
|
|
2041
|
-
const
|
|
2043
|
+
const xn = Le(
|
|
2042
2044
|
m,
|
|
2043
2045
|
ue,
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
+
U[j],
|
|
2047
|
+
je.children[ue.key],
|
|
2046
2048
|
j,
|
|
2047
2049
|
!0
|
|
2048
2050
|
);
|
|
2049
|
-
ee.push(
|
|
2051
|
+
ee.push(xn);
|
|
2050
2052
|
}), ee;
|
|
2051
2053
|
})()
|
|
2052
2054
|
);
|
|
2053
|
-
p.children[j].collapse || T.push(
|
|
2055
|
+
p.children[j].collapse || T.push(Vn);
|
|
2054
2056
|
}
|
|
2055
2057
|
return T;
|
|
2056
2058
|
})()
|
|
@@ -2067,19 +2069,19 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2067
2069
|
return T.push(Se), p.collapse || T.push(H), T;
|
|
2068
2070
|
})()
|
|
2069
2071
|
);
|
|
2070
|
-
},
|
|
2072
|
+
}, wn = (m, c, g, p, $, C) => {
|
|
2071
2073
|
if (c.ui)
|
|
2072
2074
|
return console.assert(!1), h("div", "renderBranchScalar prop ui must be invalid");
|
|
2073
2075
|
if (c.array)
|
|
2074
2076
|
return console.assert(!1), h("div", "renderBranchScalar prop array must be invalid");
|
|
2075
2077
|
if (!p)
|
|
2076
2078
|
return console.assert(!1), h("div", "renderBranchScalar branch must be valid");
|
|
2077
|
-
let
|
|
2078
|
-
p.collapse && be(
|
|
2079
|
-
const Q = h(
|
|
2080
|
-
title:
|
|
2079
|
+
let U = n(c.name);
|
|
2080
|
+
p.collapse && be(d.value, m) && (U += " *");
|
|
2081
|
+
const Q = h(ke, {
|
|
2082
|
+
title: U,
|
|
2081
2083
|
collapse: p.collapse,
|
|
2082
|
-
hasDelete:
|
|
2084
|
+
hasDelete: $ !== void 0 && !C,
|
|
2083
2085
|
onCollapse: (H) => {
|
|
2084
2086
|
p.collapse = H;
|
|
2085
2087
|
},
|
|
@@ -2087,7 +2089,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2087
2089
|
_e.emit("propTreeMenu", { x: H, y: T, keys: m });
|
|
2088
2090
|
},
|
|
2089
2091
|
onDelete: () => {
|
|
2090
|
-
|
|
2092
|
+
$ === void 0 || C || (g.splice($, 1), f(m.slice(0, -1), g));
|
|
2091
2093
|
}
|
|
2092
2094
|
}), Se = h(
|
|
2093
2095
|
"div",
|
|
@@ -2099,7 +2101,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2099
2101
|
(() => {
|
|
2100
2102
|
const H = [];
|
|
2101
2103
|
return c.children.forEach((T) => {
|
|
2102
|
-
if (!
|
|
2104
|
+
if (!Rt(p.children)) {
|
|
2103
2105
|
console.assert(!1);
|
|
2104
2106
|
return;
|
|
2105
2107
|
}
|
|
@@ -2107,10 +2109,10 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2107
2109
|
collapse: !0,
|
|
2108
2110
|
children: !T.ui && T.array ? [] : {}
|
|
2109
2111
|
});
|
|
2110
|
-
const j =
|
|
2112
|
+
const j = Le(
|
|
2111
2113
|
m,
|
|
2112
2114
|
T,
|
|
2113
|
-
(typeof g[c.key] != "object" && (g[c.key] = {},
|
|
2115
|
+
(typeof g[c.key] != "object" && (g[c.key] = {}, f(m, g[c.key])), g[c.key]),
|
|
2114
2116
|
p.children[T.key]
|
|
2115
2117
|
);
|
|
2116
2118
|
H.push(j);
|
|
@@ -2129,18 +2131,18 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2129
2131
|
return H.push(Q), p.collapse || H.push(Se), H;
|
|
2130
2132
|
})()
|
|
2131
2133
|
);
|
|
2132
|
-
},
|
|
2134
|
+
}, An = (m, c, g, p, $, C) => {
|
|
2133
2135
|
if (!c.ui)
|
|
2134
2136
|
return console.assert(!1), h("div", "renderLeafArray prop ui must be valid");
|
|
2135
2137
|
if (!c.array)
|
|
2136
2138
|
return console.assert(!1), h("div", "renderLeafArray prop array must be valid");
|
|
2137
2139
|
if (!p)
|
|
2138
2140
|
return console.assert(!1), h("div", "renderLeafArray branch must be valid");
|
|
2139
|
-
let
|
|
2140
|
-
|
|
2141
|
+
let U;
|
|
2142
|
+
$ !== void 0 && !C ? (g[$] instanceof Array || (g[$] = N(c), f(m, g[$])), U = g[$]) : (g[c.key] instanceof Array || (g[c.key] = N(c), f(m, g[c.key])), U = g[c.key]);
|
|
2141
2143
|
let Q = n(c.name);
|
|
2142
|
-
p.collapse && be(
|
|
2143
|
-
const Se = h(
|
|
2144
|
+
p.collapse && be(d.value, m) && (Q += " *");
|
|
2145
|
+
const Se = h(ke, {
|
|
2144
2146
|
title: Q,
|
|
2145
2147
|
collapse: p.collapse,
|
|
2146
2148
|
hasCreate: !0,
|
|
@@ -2151,7 +2153,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2151
2153
|
_e.emit("propTreeMenu", { x: T, y: j, keys: m });
|
|
2152
2154
|
},
|
|
2153
2155
|
onCreate: () => {
|
|
2154
|
-
|
|
2156
|
+
U.push(N(c, !0)), f(m, U);
|
|
2155
2157
|
}
|
|
2156
2158
|
}), H = h(
|
|
2157
2159
|
"div",
|
|
@@ -2162,9 +2164,9 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2162
2164
|
},
|
|
2163
2165
|
(() => {
|
|
2164
2166
|
const T = [];
|
|
2165
|
-
for (let j = 0; j <
|
|
2166
|
-
const
|
|
2167
|
-
T.push(
|
|
2167
|
+
for (let j = 0; j < U.length; j++) {
|
|
2168
|
+
const De = Le(m, c, U, void 0, j, !1);
|
|
2169
|
+
T.push(De);
|
|
2168
2170
|
}
|
|
2169
2171
|
return T;
|
|
2170
2172
|
})()
|
|
@@ -2181,12 +2183,12 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2181
2183
|
return T.push(Se), p.collapse || T.push(H), T;
|
|
2182
2184
|
})()
|
|
2183
2185
|
);
|
|
2184
|
-
},
|
|
2186
|
+
}, Cn = (m, c, g, p, $) => {
|
|
2185
2187
|
if (!c.ui)
|
|
2186
2188
|
return console.assert(!1), h("div", "renderLeafScalar prop ui must be valid");
|
|
2187
2189
|
let C;
|
|
2188
|
-
return c.ui === "dummy" ? C = A(m, c, g, p,
|
|
2189
|
-
},
|
|
2190
|
+
return c.ui === "dummy" ? C = A(m, c, g, p, $) : c.ui === "strInput" ? C = M(m, c, g, p, $) : c.ui === "numInput" ? C = W(m, c, g, p, $) : c.ui === "switch" ? C = We(m, c, g, p, $) : c.ui === "select" ? C = _n(m, c, g, p, $) : c.ui === "colorPicker" ? C = bn(m, c, g, p, $) : c.ui === "multiTypes" ? C = $n(m, c, g, p, $) : c.ui === "compSelect" ? C = Tn(m, c, g, p, $) : console.assert(!1, "renderLeafScalar not implemented"), C ? x(m, c, C) : h("div");
|
|
2191
|
+
}, Pn = () => h(
|
|
2190
2192
|
"div",
|
|
2191
2193
|
{
|
|
2192
2194
|
class: "text-body-2",
|
|
@@ -2204,7 +2206,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2204
2206
|
collapse: !0,
|
|
2205
2207
|
children: !g.ui && g.array ? [] : {}
|
|
2206
2208
|
});
|
|
2207
|
-
const p =
|
|
2209
|
+
const p = Le([], g, l.object, c[g.key]);
|
|
2208
2210
|
m.push(p);
|
|
2209
2211
|
});
|
|
2210
2212
|
}
|
|
@@ -2212,11 +2214,11 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2212
2214
|
})()
|
|
2213
2215
|
);
|
|
2214
2216
|
return (m, c) => (S(), F(He, null, [
|
|
2215
|
-
k(
|
|
2217
|
+
k(Pn),
|
|
2216
2218
|
k(ls, {
|
|
2217
2219
|
config: l.config,
|
|
2218
2220
|
object: l.object,
|
|
2219
|
-
"prop-states":
|
|
2221
|
+
"prop-states": d.value
|
|
2220
2222
|
}, null, 8, ["config", "object", "prop-states"])
|
|
2221
2223
|
], 64));
|
|
2222
2224
|
}
|