x-prop-tree 0.6.5 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/propTree/components/values/compSelect/compList/index.vue.d.ts +3 -3
- package/dist/components/propTree/components/values/compSelect/index.vue.d.ts +3 -3
- package/dist/components/propTree/components/values/multiTypes.vue.d.ts +2 -2
- package/dist/index.js +684 -672
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { provide as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { provide as Me, inject as Ue, defineComponent as z, ref as k, computed as F, resolveComponent as O, createBlock as R, openBlock as S, unref as E, isRef as Fe, withCtx as J, createVNode as B, createElementBlock as H, Fragment as He, renderList as Ht, createTextVNode as st, toDisplayString as re, resolveDirective as le, withDirectives as Y, withModifiers as K, normalizeStyle as ae, createElementVNode as q, createCommentVNode as I, renderSlot as Un, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as zt, withKeys as Vn, mergeProps as Kt, watchEffect as mt, watch as ke, reactive as Ln, onMounted as Dn, onBeforeUnmount as jn } from "vue";
|
|
2
|
+
import { useI18n as ie } from "vue-i18n";
|
|
3
3
|
import { useViewStack as at, useColor as Te, eventBus as _e, useSystem as En } from "x-essential-lib";
|
|
4
|
-
import { getPropDefault as N, parsePixelStr as Nn, parsePercentStr as
|
|
5
|
-
import { useDisplay as
|
|
4
|
+
import { getPropDefault as N, parsePixelStr as Nn, parsePercentStr as Bn } from "x-runtime-lib";
|
|
5
|
+
import { useDisplay as kn } from "vuetify";
|
|
6
6
|
import { globalState as Rn } from "x-state-lib";
|
|
7
|
-
var qt = typeof global == "object" && global && global.Object === Object && global, Fn = typeof self == "object" && self && self.Object === Object && self,
|
|
7
|
+
var qt = typeof global == "object" && global && global.Object === Object && global, Fn = typeof self == "object" && self && self.Object === Object && self, Q = qt || Fn || Function("return this")(), ue = Q.Symbol, It = Object.prototype, Hn = It.hasOwnProperty, Gn = It.toString, we = ue ? ue.toStringTag : void 0;
|
|
8
8
|
function zn(e) {
|
|
9
9
|
var t = Hn.call(e, we), n = e[we];
|
|
10
10
|
try {
|
|
@@ -16,14 +16,14 @@ function zn(e) {
|
|
|
16
16
|
return r && (t ? e[we] = n : delete e[we]), l;
|
|
17
17
|
}
|
|
18
18
|
var Kn = Object.prototype, qn = Kn.toString;
|
|
19
|
-
function
|
|
19
|
+
function In(e) {
|
|
20
20
|
return qn.call(e);
|
|
21
21
|
}
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
return e == null ? e === void 0 ? Zn :
|
|
22
|
+
var Xn = "[object Null]", Zn = "[object Undefined]", gt = ue ? ue.toStringTag : void 0;
|
|
23
|
+
function Ve(e) {
|
|
24
|
+
return e == null ? e === void 0 ? Zn : Xn : gt && gt in Object(e) ? zn(e) : In(e);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function de(e) {
|
|
27
27
|
return e != null && typeof e == "object";
|
|
28
28
|
}
|
|
29
29
|
var Pe = Array.isArray;
|
|
@@ -32,13 +32,13 @@ function qe(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 Xt(e) {
|
|
36
36
|
if (!qe(e))
|
|
37
37
|
return !1;
|
|
38
|
-
var t =
|
|
38
|
+
var t = Ve(e);
|
|
39
39
|
return t == Wn || t == Yn || t == Jn || t == Qn;
|
|
40
40
|
}
|
|
41
|
-
var Ye =
|
|
41
|
+
var Ye = Q["__core-js_shared__"], yt = function() {
|
|
42
42
|
var e = /[^.]+$/.exec(Ye && Ye.keys && Ye.keys.IE_PROTO || "");
|
|
43
43
|
return e ? "Symbol(src)_1." + e : "";
|
|
44
44
|
}();
|
|
@@ -46,7 +46,7 @@ function er(e) {
|
|
|
46
46
|
return !!yt && yt in e;
|
|
47
47
|
}
|
|
48
48
|
var tr = Function.prototype, nr = tr.toString;
|
|
49
|
-
function
|
|
49
|
+
function ve(e) {
|
|
50
50
|
if (e != null) {
|
|
51
51
|
try {
|
|
52
52
|
return nr.call(e);
|
|
@@ -65,8 +65,8 @@ 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 =
|
|
69
|
-
return t.test(
|
|
68
|
+
var t = Xt(e) ? ur : or;
|
|
69
|
+
return t.test(ve(e));
|
|
70
70
|
}
|
|
71
71
|
function fr(e, t) {
|
|
72
72
|
return e == null ? void 0 : e[t];
|
|
@@ -75,7 +75,7 @@ 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(
|
|
78
|
+
var nt = me(Q, "WeakMap"), ht = Object.create, dr = /* @__PURE__ */ function() {
|
|
79
79
|
function e() {
|
|
80
80
|
}
|
|
81
81
|
return function(t) {
|
|
@@ -99,10 +99,10 @@ function pr(e, t) {
|
|
|
99
99
|
;
|
|
100
100
|
return e;
|
|
101
101
|
}
|
|
102
|
-
var
|
|
102
|
+
var vr = 9007199254740991, mr = /^(?:0|[1-9]\d*)$/;
|
|
103
103
|
function gr(e, t) {
|
|
104
104
|
var n = typeof e;
|
|
105
|
-
return t = t ??
|
|
105
|
+
return t = t ?? vr, !!t && (n == "number" || n != "symbol" && mr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
106
106
|
}
|
|
107
107
|
function yr(e, t, n) {
|
|
108
108
|
t == "__proto__" && _t ? _t(e, t, {
|
|
@@ -125,7 +125,7 @@ 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 && Zt(e.length) && !
|
|
128
|
+
return e != null && Zt(e.length) && !Xt(e);
|
|
129
129
|
}
|
|
130
130
|
var Sr = Object.prototype;
|
|
131
131
|
function Jt(e) {
|
|
@@ -139,21 +139,21 @@ function wr(e, t) {
|
|
|
139
139
|
}
|
|
140
140
|
var Ar = "[object Arguments]";
|
|
141
141
|
function bt(e) {
|
|
142
|
-
return
|
|
142
|
+
return de(e) && Ve(e) == Ar;
|
|
143
143
|
}
|
|
144
144
|
var Wt = Object.prototype, Cr = Wt.hasOwnProperty, Pr = Wt.propertyIsEnumerable, Or = bt(/* @__PURE__ */ function() {
|
|
145
145
|
return arguments;
|
|
146
146
|
}()) ? bt : function(e) {
|
|
147
|
-
return
|
|
147
|
+
return de(e) && Cr.call(e, "callee") && !Pr.call(e, "callee");
|
|
148
148
|
};
|
|
149
|
-
function
|
|
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,
|
|
153
|
-
|
|
154
|
-
|
|
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 ? Q.Buffer : void 0, Ur = Tt ? Tt.isBuffer : void 0, Ge = Ur || xr, Vr = "[object Arguments]", Lr = "[object Array]", Dr = "[object Boolean]", jr = "[object Date]", Er = "[object Error]", Nr = "[object Function]", Br = "[object Map]", kr = "[object Number]", Rr = "[object Object]", Fr = "[object RegExp]", Hr = "[object Set]", Gr = "[object String]", zr = "[object WeakMap]", Kr = "[object ArrayBuffer]", qr = "[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
|
+
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[Kr] = x[Dr] = x[qr] = x[jr] = x[Er] = x[Nr] = x[Br] = x[kr] = x[Rr] = x[Fr] = x[Hr] = x[Gr] = x[zr] = !1;
|
|
155
155
|
function no(e) {
|
|
156
|
-
return
|
|
156
|
+
return de(e) && Zt(e.length) && !!x[Ve(e)];
|
|
157
157
|
}
|
|
158
158
|
function ct(e) {
|
|
159
159
|
return function(t) {
|
|
@@ -168,13 +168,13 @@ var Qt = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
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 = 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) : [],
|
|
172
|
-
for (var
|
|
173
|
-
lo.call(e,
|
|
174
|
-
(
|
|
175
|
-
l && (
|
|
176
|
-
o && (
|
|
177
|
-
gr(
|
|
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
|
+
for (var a in e)
|
|
173
|
+
lo.call(e, a) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
174
|
+
(a == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
175
|
+
l && (a == "offset" || a == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
176
|
+
o && (a == "buffer" || a == "byteLength" || a == "byteOffset") || // Skip index properties.
|
|
177
|
+
gr(a, u))) && s.push(a);
|
|
178
178
|
return s;
|
|
179
179
|
}
|
|
180
180
|
function tn(e, t) {
|
|
@@ -198,16 +198,16 @@ var Oe = me(Object, "create");
|
|
|
198
198
|
function po() {
|
|
199
199
|
this.__data__ = Oe ? Oe(null) : {}, this.size = 0;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function vo(e) {
|
|
202
202
|
var t = this.has(e) && delete this.__data__[e];
|
|
203
203
|
return this.size -= t ? 1 : 0, t;
|
|
204
204
|
}
|
|
205
|
-
var
|
|
205
|
+
var mo = "__lodash_hash_undefined__", go = Object.prototype, yo = go.hasOwnProperty;
|
|
206
206
|
function ho(e) {
|
|
207
207
|
var t = this.__data__;
|
|
208
208
|
if (Oe) {
|
|
209
209
|
var n = t[e];
|
|
210
|
-
return n ===
|
|
210
|
+
return n === mo ? void 0 : n;
|
|
211
211
|
}
|
|
212
212
|
return yo.call(t, e) ? t[e] : void 0;
|
|
213
213
|
}
|
|
@@ -221,22 +221,22 @@ function So(e, t) {
|
|
|
221
221
|
var n = this.__data__;
|
|
222
222
|
return this.size += this.has(e) ? 0 : 1, n[e] = Oe && t === void 0 ? To : t, this;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function pe(e) {
|
|
225
225
|
var t = -1, n = e == null ? 0 : e.length;
|
|
226
226
|
for (this.clear(); ++t < n; ) {
|
|
227
227
|
var r = e[t];
|
|
228
228
|
this.set(r[0], r[1]);
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
231
|
+
pe.prototype.clear = po;
|
|
232
|
+
pe.prototype.delete = vo;
|
|
233
|
+
pe.prototype.get = ho;
|
|
234
|
+
pe.prototype.has = $o;
|
|
235
|
+
pe.prototype.set = So;
|
|
236
236
|
function wo() {
|
|
237
237
|
this.__data__ = [], this.size = 0;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Ie(e, t) {
|
|
240
240
|
for (var n = e.length; n--; )
|
|
241
241
|
if (ut(e[n][0], t))
|
|
242
242
|
return n;
|
|
@@ -244,85 +244,85 @@ function Xe(e, t) {
|
|
|
244
244
|
}
|
|
245
245
|
var Ao = Array.prototype, Co = Ao.splice;
|
|
246
246
|
function Po(e) {
|
|
247
|
-
var t = this.__data__, n =
|
|
247
|
+
var t = this.__data__, n = Ie(t, e);
|
|
248
248
|
if (n < 0)
|
|
249
249
|
return !1;
|
|
250
250
|
var r = t.length - 1;
|
|
251
251
|
return n == r ? t.pop() : Co.call(t, n, 1), --this.size, !0;
|
|
252
252
|
}
|
|
253
253
|
function Oo(e) {
|
|
254
|
-
var t = this.__data__, n =
|
|
254
|
+
var t = this.__data__, n = Ie(t, e);
|
|
255
255
|
return n < 0 ? void 0 : t[n][1];
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
return
|
|
257
|
+
function xo(e) {
|
|
258
|
+
return Ie(this.__data__, e) > -1;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
var n = this.__data__, r =
|
|
260
|
+
function Mo(e, t) {
|
|
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 se(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
|
|
277
|
-
function
|
|
271
|
+
se.prototype.clear = wo;
|
|
272
|
+
se.prototype.delete = Po;
|
|
273
|
+
se.prototype.get = Oo;
|
|
274
|
+
se.prototype.has = xo;
|
|
275
|
+
se.prototype.set = Mo;
|
|
276
|
+
var xe = me(Q, "Map");
|
|
277
|
+
function Uo() {
|
|
278
278
|
this.size = 0, this.__data__ = {
|
|
279
|
-
hash: new
|
|
280
|
-
map: new (
|
|
281
|
-
string: new
|
|
279
|
+
hash: new pe(),
|
|
280
|
+
map: new (xe || se)(),
|
|
281
|
+
string: new pe()
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Vo(e) {
|
|
285
285
|
var t = typeof e;
|
|
286
286
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Xe(e, t) {
|
|
289
289
|
var n = e.__data__;
|
|
290
|
-
return
|
|
290
|
+
return Vo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
291
291
|
}
|
|
292
292
|
function Lo(e) {
|
|
293
|
-
var t =
|
|
293
|
+
var t = Xe(this, e).delete(e);
|
|
294
294
|
return this.size -= t ? 1 : 0, t;
|
|
295
295
|
}
|
|
296
296
|
function Do(e) {
|
|
297
|
-
return
|
|
297
|
+
return Xe(this, e).get(e);
|
|
298
298
|
}
|
|
299
299
|
function jo(e) {
|
|
300
|
-
return
|
|
300
|
+
return Xe(this, e).has(e);
|
|
301
301
|
}
|
|
302
302
|
function Eo(e, t) {
|
|
303
|
-
var n =
|
|
303
|
+
var n = Xe(this, e), r = n.size;
|
|
304
304
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function ge(e) {
|
|
307
307
|
var t = -1, n = e == null ? 0 : e.length;
|
|
308
308
|
for (this.clear(); ++t < n; ) {
|
|
309
309
|
var r = e[t];
|
|
310
310
|
this.set(r[0], r[1]);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
313
|
+
ge.prototype.clear = Uo;
|
|
314
|
+
ge.prototype.delete = Lo;
|
|
315
|
+
ge.prototype.get = Do;
|
|
316
|
+
ge.prototype.has = jo;
|
|
317
|
+
ge.prototype.set = Eo;
|
|
318
318
|
function No(e, t) {
|
|
319
319
|
for (var n = -1, r = t.length, l = e.length; ++n < r; )
|
|
320
320
|
e[l + n] = t[n];
|
|
321
321
|
return e;
|
|
322
322
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
325
|
-
this.__data__ = new
|
|
323
|
+
var Bo = tn(Object.getPrototypeOf, Object);
|
|
324
|
+
function ko() {
|
|
325
|
+
this.__data__ = new se(), this.size = 0;
|
|
326
326
|
}
|
|
327
327
|
function Ro(e) {
|
|
328
328
|
var t = this.__data__, n = t.delete(e);
|
|
@@ -337,43 +337,43 @@ function Ho(e) {
|
|
|
337
337
|
var Go = 200;
|
|
338
338
|
function zo(e, t) {
|
|
339
339
|
var n = this.__data__;
|
|
340
|
-
if (n instanceof
|
|
340
|
+
if (n instanceof se) {
|
|
341
341
|
var r = n.__data__;
|
|
342
|
-
if (!
|
|
342
|
+
if (!xe || r.length < Go - 1)
|
|
343
343
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
344
|
-
n = this.__data__ = new
|
|
344
|
+
n = this.__data__ = new ge(r);
|
|
345
345
|
}
|
|
346
346
|
return n.set(e, t), this.size = n.size, this;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
var t = this.__data__ = new
|
|
348
|
+
function ne(e) {
|
|
349
|
+
var t = this.__data__ = new se(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, Ko = wt && wt.exports === nn, At = Ko ?
|
|
352
|
+
ne.prototype.clear = ko;
|
|
353
|
+
ne.prototype.delete = Ro;
|
|
354
|
+
ne.prototype.get = Fo;
|
|
355
|
+
ne.prototype.has = Ho;
|
|
356
|
+
ne.prototype.set = zo;
|
|
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 ? Q.Buffer : void 0;
|
|
358
358
|
At && At.allocUnsafe;
|
|
359
359
|
function qo(e, t) {
|
|
360
360
|
return e.slice();
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Io(e, t) {
|
|
363
363
|
for (var n = -1, r = e == null ? 0 : e.length, l = 0, o = []; ++n < r; ) {
|
|
364
364
|
var i = e[n];
|
|
365
365
|
t(i, n, e) && (o[l++] = i);
|
|
366
366
|
}
|
|
367
367
|
return o;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Xo() {
|
|
370
370
|
return [];
|
|
371
371
|
}
|
|
372
372
|
var Zo = Object.prototype, Jo = Zo.propertyIsEnumerable, Ct = Object.getOwnPropertySymbols, Wo = Ct ? function(e) {
|
|
373
|
-
return e == null ? [] : (e = Object(e),
|
|
373
|
+
return e == null ? [] : (e = Object(e), Io(Ct(e), function(t) {
|
|
374
374
|
return Jo.call(e, t);
|
|
375
375
|
}));
|
|
376
|
-
} :
|
|
376
|
+
} : Xo;
|
|
377
377
|
function Yo(e, t, n) {
|
|
378
378
|
var r = t(e);
|
|
379
379
|
return Pe(e) ? r : No(r, n(e));
|
|
@@ -381,21 +381,21 @@ function Yo(e, t, n) {
|
|
|
381
381
|
function rt(e) {
|
|
382
382
|
return Yo(e, fo, Wo);
|
|
383
383
|
}
|
|
384
|
-
var ot = me(
|
|
385
|
-
(ot && Z(new ot(new ArrayBuffer(1))) !=
|
|
386
|
-
var t =
|
|
384
|
+
var ot = me(Q, "DataView"), lt = me(Q, "Promise"), it = me(Q, "Set"), Pt = "[object Map]", Qo = "[object Object]", Ot = "[object Promise]", xt = "[object Set]", Mt = "[object WeakMap]", Ut = "[object DataView]", el = ve(ot), tl = ve(xe), nl = ve(lt), rl = ve(it), ol = ve(nt), Z = Ve;
|
|
385
|
+
(ot && Z(new ot(new ArrayBuffer(1))) != Ut || xe && Z(new xe()) != Pt || lt && Z(lt.resolve()) != Ot || it && Z(new it()) != xt || nt && Z(new nt()) != Mt) && (Z = function(e) {
|
|
386
|
+
var t = Ve(e), n = t == Qo ? e.constructor : void 0, r = n ? ve(n) : "";
|
|
387
387
|
if (r)
|
|
388
388
|
switch (r) {
|
|
389
389
|
case el:
|
|
390
|
-
return
|
|
390
|
+
return Ut;
|
|
391
391
|
case tl:
|
|
392
392
|
return Pt;
|
|
393
393
|
case nl:
|
|
394
394
|
return Ot;
|
|
395
395
|
case rl:
|
|
396
|
-
return Vt;
|
|
397
|
-
case ol:
|
|
398
396
|
return xt;
|
|
397
|
+
case ol:
|
|
398
|
+
return Mt;
|
|
399
399
|
}
|
|
400
400
|
return t;
|
|
401
401
|
});
|
|
@@ -404,7 +404,7 @@ 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 ze =
|
|
407
|
+
var ze = Q.Uint8Array;
|
|
408
408
|
function ft(e) {
|
|
409
409
|
var t = new e.constructor(e.byteLength);
|
|
410
410
|
return new ze(t).set(new ze(e)), t;
|
|
@@ -418,7 +418,7 @@ function cl(e) {
|
|
|
418
418
|
var t = new e.constructor(e.source, ul.exec(e));
|
|
419
419
|
return t.lastIndex = e.lastIndex, t;
|
|
420
420
|
}
|
|
421
|
-
var
|
|
421
|
+
var Vt = ue ? ue.prototype : void 0, Lt = Vt ? Vt.valueOf : void 0;
|
|
422
422
|
function fl(e) {
|
|
423
423
|
return Lt ? Object(Lt.call(e)) : {};
|
|
424
424
|
}
|
|
@@ -426,14 +426,14 @@ function dl(e, t) {
|
|
|
426
426
|
var n = ft(e.buffer);
|
|
427
427
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
428
428
|
}
|
|
429
|
-
var pl = "[object Boolean]",
|
|
430
|
-
function
|
|
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]";
|
|
430
|
+
function Vl(e, t, n) {
|
|
431
431
|
var r = e.constructor;
|
|
432
432
|
switch (t) {
|
|
433
433
|
case $l:
|
|
434
434
|
return ft(e);
|
|
435
435
|
case pl:
|
|
436
|
-
case
|
|
436
|
+
case vl:
|
|
437
437
|
return new r(+e);
|
|
438
438
|
case Tl:
|
|
439
439
|
return al(e);
|
|
@@ -443,11 +443,11 @@ function Ul(e, t, n) {
|
|
|
443
443
|
case Cl:
|
|
444
444
|
case Pl:
|
|
445
445
|
case Ol:
|
|
446
|
-
case Vl:
|
|
447
446
|
case xl:
|
|
448
447
|
case Ml:
|
|
448
|
+
case Ul:
|
|
449
449
|
return dl(e);
|
|
450
|
-
case
|
|
450
|
+
case ml:
|
|
451
451
|
return new r();
|
|
452
452
|
case gl:
|
|
453
453
|
case _l:
|
|
@@ -461,18 +461,18 @@ function Ul(e, t, n) {
|
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function Ll(e) {
|
|
464
|
-
return typeof e.constructor == "function" && !Jt(e) ? dr(
|
|
464
|
+
return typeof e.constructor == "function" && !Jt(e) ? dr(Bo(e)) : {};
|
|
465
465
|
}
|
|
466
466
|
var Dl = "[object Map]";
|
|
467
467
|
function jl(e) {
|
|
468
|
-
return
|
|
468
|
+
return de(e) && Z(e) == Dl;
|
|
469
469
|
}
|
|
470
470
|
var Dt = $e && $e.isMap, El = Dt ? ct(Dt) : jl, Nl = "[object Set]";
|
|
471
|
-
function
|
|
472
|
-
return
|
|
471
|
+
function Bl(e) {
|
|
472
|
+
return de(e) && Z(e) == Nl;
|
|
473
473
|
}
|
|
474
|
-
var jt = $e && $e.isSet,
|
|
475
|
-
P[rn] = P[Rl] = P[Yl] = P[Ql] = P[Fl] = P[Hl] = P[ei] = P[ti] = P[ni] = P[ri] = P[oi] = P[Kl] = P[ql] = P[ln] = P[
|
|
474
|
+
var jt = $e && $e.isSet, kl = jt ? ct(jt) : Bl, rn = "[object Arguments]", Rl = "[object Array]", Fl = "[object Boolean]", Hl = "[object Date]", Gl = "[object Error]", on = "[object Function]", zl = "[object GeneratorFunction]", Kl = "[object Map]", ql = "[object Number]", ln = "[object Object]", Il = "[object RegExp]", Xl = "[object Set]", Zl = "[object String]", Jl = "[object Symbol]", Wl = "[object WeakMap]", Yl = "[object ArrayBuffer]", Ql = "[object DataView]", ei = "[object Float32Array]", ti = "[object Float64Array]", ni = "[object Int8Array]", ri = "[object Int16Array]", oi = "[object Int32Array]", li = "[object Uint8Array]", ii = "[object Uint8ClampedArray]", si = "[object Uint16Array]", ai = "[object Uint32Array]", P = {};
|
|
475
|
+
P[rn] = P[Rl] = P[Yl] = P[Ql] = P[Fl] = P[Hl] = P[ei] = P[ti] = P[ni] = P[ri] = P[oi] = P[Kl] = P[ql] = P[ln] = P[Il] = P[Xl] = P[Zl] = P[Jl] = P[li] = P[ii] = P[si] = P[ai] = !0;
|
|
476
476
|
P[Gl] = P[on] = P[Wl] = !1;
|
|
477
477
|
function Re(e, t, n, r, l, o) {
|
|
478
478
|
var i;
|
|
@@ -484,29 +484,29 @@ function Re(e, t, n, r, l, o) {
|
|
|
484
484
|
if (s)
|
|
485
485
|
i = sl(e);
|
|
486
486
|
else {
|
|
487
|
-
var
|
|
487
|
+
var u = Z(e), a = u == on || u == zl;
|
|
488
488
|
if (Ge(e))
|
|
489
489
|
return qo(e);
|
|
490
|
-
if (
|
|
491
|
-
i =
|
|
490
|
+
if (u == ln || u == rn || a && !l)
|
|
491
|
+
i = a ? {} : Ll(e);
|
|
492
492
|
else {
|
|
493
|
-
if (!P[
|
|
493
|
+
if (!P[u])
|
|
494
494
|
return l ? e : {};
|
|
495
|
-
i =
|
|
495
|
+
i = Vl(e, u);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
o || (o = new
|
|
498
|
+
o || (o = new ne());
|
|
499
499
|
var d = o.get(e);
|
|
500
500
|
if (d)
|
|
501
501
|
return d;
|
|
502
|
-
o.set(e, i),
|
|
503
|
-
i.add(Re(
|
|
504
|
-
}) : El(e) && e.forEach(function(
|
|
505
|
-
i.set(
|
|
502
|
+
o.set(e, i), kl(e) ? e.forEach(function(y) {
|
|
503
|
+
i.add(Re(y, t, n, y, e, o));
|
|
504
|
+
}) : El(e) && e.forEach(function(y, h) {
|
|
505
|
+
i.set(h, Re(y, t, n, h, e, o));
|
|
506
506
|
});
|
|
507
|
-
var
|
|
508
|
-
return pr(
|
|
509
|
-
|
|
507
|
+
var c = rt, g = s ? void 0 : c(e);
|
|
508
|
+
return pr(g || e, function(y, h) {
|
|
509
|
+
g && (h = y, y = e[h]), br(i, h, Re(y, t, n, h, e, o));
|
|
510
510
|
}), i;
|
|
511
511
|
}
|
|
512
512
|
var ui = 1, ci = 4;
|
|
@@ -522,53 +522,53 @@ function pi(e) {
|
|
|
522
522
|
}
|
|
523
523
|
function Ke(e) {
|
|
524
524
|
var t = -1, n = e == null ? 0 : e.length;
|
|
525
|
-
for (this.__data__ = new
|
|
525
|
+
for (this.__data__ = new ge(); ++t < n; )
|
|
526
526
|
this.add(e[t]);
|
|
527
527
|
}
|
|
528
528
|
Ke.prototype.add = Ke.prototype.push = di;
|
|
529
529
|
Ke.prototype.has = pi;
|
|
530
|
-
function
|
|
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))
|
|
533
533
|
return !0;
|
|
534
534
|
return !1;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function mi(e, t) {
|
|
537
537
|
return e.has(t);
|
|
538
538
|
}
|
|
539
539
|
var gi = 1, yi = 2;
|
|
540
540
|
function an(e, t, n, r, l, o) {
|
|
541
|
-
var i = n & gi, s = e.length,
|
|
542
|
-
if (s !=
|
|
541
|
+
var i = n & gi, s = e.length, u = t.length;
|
|
542
|
+
if (s != u && !(i && u > s))
|
|
543
543
|
return !1;
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
546
|
-
return
|
|
547
|
-
var
|
|
548
|
-
for (o.set(e, t), o.set(t, e); ++
|
|
549
|
-
var
|
|
544
|
+
var a = o.get(e), d = o.get(t);
|
|
545
|
+
if (a && d)
|
|
546
|
+
return a == t && d == e;
|
|
547
|
+
var c = -1, g = !0, y = n & yi ? new Ke() : void 0;
|
|
548
|
+
for (o.set(e, t), o.set(t, e); ++c < s; ) {
|
|
549
|
+
var h = e[c], M = t[c];
|
|
550
550
|
if (r)
|
|
551
|
-
var
|
|
552
|
-
if (
|
|
553
|
-
if (
|
|
551
|
+
var b = i ? r(M, h, c, t, e, o) : r(h, M, c, e, t, o);
|
|
552
|
+
if (b !== void 0) {
|
|
553
|
+
if (b)
|
|
554
554
|
continue;
|
|
555
|
-
|
|
555
|
+
g = !1;
|
|
556
556
|
break;
|
|
557
557
|
}
|
|
558
|
-
if (
|
|
559
|
-
if (!
|
|
560
|
-
if (!
|
|
561
|
-
return
|
|
558
|
+
if (y) {
|
|
559
|
+
if (!vi(t, function(D, w) {
|
|
560
|
+
if (!mi(y, w) && (h === D || l(h, D, n, r, o)))
|
|
561
|
+
return y.push(w);
|
|
562
562
|
})) {
|
|
563
|
-
|
|
563
|
+
g = !1;
|
|
564
564
|
break;
|
|
565
565
|
}
|
|
566
|
-
} else if (!(
|
|
567
|
-
|
|
566
|
+
} else if (!(h === M || l(h, M, n, r, o))) {
|
|
567
|
+
g = !1;
|
|
568
568
|
break;
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
return o.delete(e), o.delete(t),
|
|
571
|
+
return o.delete(e), o.delete(t), g;
|
|
572
572
|
}
|
|
573
573
|
function hi(e) {
|
|
574
574
|
var t = -1, n = Array(e.size);
|
|
@@ -582,14 +582,14 @@ 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]",
|
|
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 = ue ? ue.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
|
-
case
|
|
588
|
+
case Vi:
|
|
589
589
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
590
590
|
return !1;
|
|
591
591
|
e = e.buffer, t = t.buffer;
|
|
592
|
-
case
|
|
592
|
+
case Ui:
|
|
593
593
|
return !(e.byteLength != t.byteLength || !o(new ze(e), new ze(t)));
|
|
594
594
|
case Ti:
|
|
595
595
|
case Si:
|
|
@@ -598,21 +598,21 @@ function Li(e, t, n, r, l, o, i) {
|
|
|
598
598
|
case wi:
|
|
599
599
|
return e.name == t.name && e.message == t.message;
|
|
600
600
|
case Pi:
|
|
601
|
-
case
|
|
601
|
+
case xi:
|
|
602
602
|
return e == t + "";
|
|
603
603
|
case Ai:
|
|
604
604
|
var s = hi;
|
|
605
605
|
case Oi:
|
|
606
|
-
var
|
|
607
|
-
if (s || (s = _i), e.size != t.size && !
|
|
606
|
+
var u = r & bi;
|
|
607
|
+
if (s || (s = _i), e.size != t.size && !u)
|
|
608
608
|
return !1;
|
|
609
|
-
var
|
|
610
|
-
if (
|
|
611
|
-
return
|
|
609
|
+
var a = i.get(e);
|
|
610
|
+
if (a)
|
|
611
|
+
return a == t;
|
|
612
612
|
r |= $i, i.set(e, t);
|
|
613
613
|
var d = an(s(e), s(t), r, l, o, i);
|
|
614
614
|
return i.delete(e), d;
|
|
615
|
-
case
|
|
615
|
+
case Mi:
|
|
616
616
|
if (et)
|
|
617
617
|
return et.call(e) == et.call(t);
|
|
618
618
|
}
|
|
@@ -620,59 +620,59 @@ 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),
|
|
624
|
-
if (
|
|
623
|
+
var i = n & Di, s = rt(e), u = s.length, a = rt(t), d = a.length;
|
|
624
|
+
if (u != d && !i)
|
|
625
625
|
return !1;
|
|
626
|
-
for (var
|
|
627
|
-
var
|
|
628
|
-
if (!(i ?
|
|
626
|
+
for (var c = u; c--; ) {
|
|
627
|
+
var g = s[c];
|
|
628
|
+
if (!(i ? g in t : Ei.call(t, g)))
|
|
629
629
|
return !1;
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
if (
|
|
633
|
-
return
|
|
634
|
-
var
|
|
631
|
+
var y = o.get(e), h = o.get(t);
|
|
632
|
+
if (y && h)
|
|
633
|
+
return y == t && h == e;
|
|
634
|
+
var M = !0;
|
|
635
635
|
o.set(e, t), o.set(t, e);
|
|
636
|
-
for (var
|
|
637
|
-
|
|
638
|
-
var D = e[
|
|
636
|
+
for (var b = i; ++c < u; ) {
|
|
637
|
+
g = s[c];
|
|
638
|
+
var D = e[g], w = t[g];
|
|
639
639
|
if (r)
|
|
640
|
-
var
|
|
641
|
-
if (!(
|
|
642
|
-
|
|
640
|
+
var U = i ? r(w, D, g, t, e, o) : r(D, w, g, e, t, o);
|
|
641
|
+
if (!(U === void 0 ? D === w || l(D, w, n, r, o) : U)) {
|
|
642
|
+
M = !1;
|
|
643
643
|
break;
|
|
644
644
|
}
|
|
645
|
-
|
|
645
|
+
b || (b = g == "constructor");
|
|
646
646
|
}
|
|
647
|
-
if (
|
|
648
|
-
var A = e.constructor,
|
|
649
|
-
A !=
|
|
647
|
+
if (M && !b) {
|
|
648
|
+
var A = e.constructor, V = t.constructor;
|
|
649
|
+
A != V && "constructor" in e && "constructor" in t && !(typeof A == "function" && A instanceof A && typeof V == "function" && V instanceof V) && (M = !1);
|
|
650
650
|
}
|
|
651
|
-
return o.delete(e), o.delete(t),
|
|
651
|
+
return o.delete(e), o.delete(t), M;
|
|
652
652
|
}
|
|
653
|
-
var
|
|
653
|
+
var Bi = 1, Nt = "[object Arguments]", Bt = "[object Array]", Ee = "[object Object]", ki = Object.prototype, kt = ki.hasOwnProperty;
|
|
654
654
|
function Ri(e, t, n, r, l, o) {
|
|
655
|
-
var i = Pe(e), s = Pe(t),
|
|
656
|
-
|
|
657
|
-
var d =
|
|
658
|
-
if (
|
|
655
|
+
var i = Pe(e), s = Pe(t), u = i ? Bt : Z(e), a = s ? Bt : Z(t);
|
|
656
|
+
u = u == Nt ? Ee : u, a = a == Nt ? Ee : a;
|
|
657
|
+
var d = u == Ee, c = a == Ee, g = u == a;
|
|
658
|
+
if (g && Ge(e)) {
|
|
659
659
|
if (!Ge(t))
|
|
660
660
|
return !1;
|
|
661
661
|
i = !0, d = !1;
|
|
662
662
|
}
|
|
663
|
-
if (
|
|
664
|
-
return o || (o = new
|
|
665
|
-
if (!(n &
|
|
666
|
-
var
|
|
667
|
-
if (
|
|
668
|
-
var
|
|
669
|
-
return o || (o = new
|
|
663
|
+
if (g && !d)
|
|
664
|
+
return o || (o = new ne()), i || en(e) ? an(e, t, n, r, l, o) : Li(e, t, u, n, r, l, o);
|
|
665
|
+
if (!(n & Bi)) {
|
|
666
|
+
var y = d && kt.call(e, "__wrapped__"), h = c && kt.call(t, "__wrapped__");
|
|
667
|
+
if (y || h) {
|
|
668
|
+
var M = y ? e.value() : e, b = h ? t.value() : t;
|
|
669
|
+
return o || (o = new ne()), l(M, b, n, r, o);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
return
|
|
672
|
+
return g ? (o || (o = new ne()), Ni(e, t, n, r, l, o)) : !1;
|
|
673
673
|
}
|
|
674
674
|
function un(e, t, n, r, l) {
|
|
675
|
-
return e === t ? !0 : e == null || t == null || !
|
|
675
|
+
return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : Ri(e, t, n, r, un, l);
|
|
676
676
|
}
|
|
677
677
|
function Ze(e, t) {
|
|
678
678
|
return un(e, t);
|
|
@@ -690,8 +690,8 @@ function Fi(e, t) {
|
|
|
690
690
|
const o = [];
|
|
691
691
|
return n.forEach((i) => {
|
|
692
692
|
const s = [];
|
|
693
|
-
r.forEach((
|
|
694
|
-
|
|
693
|
+
r.forEach((u) => {
|
|
694
|
+
u.group === i.id && (u.show = !i.collapse, s.push(u));
|
|
695
695
|
}), i.count = s.length, i.count > 0 && (o.push(i), o.push(...s));
|
|
696
696
|
}), o;
|
|
697
697
|
}
|
|
@@ -753,7 +753,7 @@ const Ne = (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 = 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 ?
|
|
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 ? Xi(
|
|
757
757
|
e,
|
|
758
758
|
t,
|
|
759
759
|
n,
|
|
@@ -769,7 +769,7 @@ const Ne = (e, t) => {
|
|
|
769
769
|
l,
|
|
770
770
|
o,
|
|
771
771
|
i
|
|
772
|
-
) :
|
|
772
|
+
) : Ii(
|
|
773
773
|
e,
|
|
774
774
|
t,
|
|
775
775
|
n,
|
|
@@ -786,33 +786,33 @@ const Ne = (e, t) => {
|
|
|
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;
|
|
789
|
-
for (let
|
|
789
|
+
for (let u = 0; u < s.length; u++) {
|
|
790
790
|
r.children.push({
|
|
791
791
|
change: !1,
|
|
792
792
|
children: {}
|
|
793
793
|
});
|
|
794
|
-
const
|
|
794
|
+
const a = r.children[u];
|
|
795
795
|
t.children.forEach((d) => {
|
|
796
|
-
if (!dt(
|
|
796
|
+
if (!dt(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
|
}, Je(
|
|
804
804
|
e,
|
|
805
805
|
d,
|
|
806
|
-
s[
|
|
807
|
-
|
|
806
|
+
s[u],
|
|
807
|
+
a.children[d.key],
|
|
808
808
|
l,
|
|
809
|
-
|
|
809
|
+
u,
|
|
810
810
|
!0
|
|
811
|
-
) && (
|
|
811
|
+
) && (a.change = !0), a.change && (r.change = !0);
|
|
812
812
|
});
|
|
813
813
|
}
|
|
814
814
|
return r.change || (r.change = !Ze(s, N(t))), r.change;
|
|
815
|
-
},
|
|
815
|
+
}, Ii = (e, t, n, r, l, o, i) => {
|
|
816
816
|
if (t.ui)
|
|
817
817
|
return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
|
|
818
818
|
if (t.array)
|
|
@@ -821,15 +821,15 @@ const Ne = (e, t) => {
|
|
|
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;
|
|
824
|
-
for (let
|
|
825
|
-
const
|
|
826
|
-
r.children[
|
|
824
|
+
for (let u = 0; u < t.children.length; u++) {
|
|
825
|
+
const a = t.children[u];
|
|
826
|
+
r.children[a.key] = {
|
|
827
827
|
change: !1,
|
|
828
|
-
children:
|
|
829
|
-
}, Je(e,
|
|
828
|
+
children: a.array ? [] : {}
|
|
829
|
+
}, Je(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) => {
|
|
833
833
|
if (!t.ui)
|
|
834
834
|
return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
|
|
835
835
|
if (!t.array)
|
|
@@ -838,11 +838,11 @@ const Ne = (e, t) => {
|
|
|
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;
|
|
841
|
-
for (let
|
|
842
|
-
r.children[
|
|
841
|
+
for (let u = 0; u < s.length; u++)
|
|
842
|
+
r.children[u] = {
|
|
843
843
|
change: !1,
|
|
844
844
|
children: {}
|
|
845
|
-
}, Je(e, t, s, r.children[
|
|
845
|
+
}, Je(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)
|
|
@@ -868,100 +868,100 @@ const Ne = (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
|
-
}, fn = Symbol(), dn = Symbol(), pn = Symbol(),
|
|
871
|
+
}, fn = Symbol(), dn = Symbol(), pn = Symbol(), vn = Symbol(), mn = Symbol();
|
|
872
872
|
function Ji(e) {
|
|
873
|
-
|
|
873
|
+
Me(fn, e);
|
|
874
874
|
}
|
|
875
875
|
function Wi() {
|
|
876
|
-
return
|
|
876
|
+
return Ue(fn);
|
|
877
877
|
}
|
|
878
878
|
function Yi(e) {
|
|
879
|
-
|
|
879
|
+
Me(dn, e);
|
|
880
880
|
}
|
|
881
881
|
function Qi() {
|
|
882
|
-
return
|
|
882
|
+
return Ue(dn);
|
|
883
883
|
}
|
|
884
884
|
function es(e) {
|
|
885
|
-
|
|
885
|
+
Me(pn, e);
|
|
886
886
|
}
|
|
887
887
|
function ts() {
|
|
888
|
-
return
|
|
888
|
+
return Ue(pn);
|
|
889
889
|
}
|
|
890
890
|
function ns(e) {
|
|
891
|
-
|
|
891
|
+
Me(vn, e);
|
|
892
892
|
}
|
|
893
893
|
function rs() {
|
|
894
|
-
return
|
|
894
|
+
return Ue(vn);
|
|
895
895
|
}
|
|
896
896
|
function os(e) {
|
|
897
|
-
|
|
897
|
+
Me(mn, e);
|
|
898
898
|
}
|
|
899
899
|
function gn() {
|
|
900
|
-
return
|
|
900
|
+
return Ue(mn);
|
|
901
901
|
}
|
|
902
902
|
const ls = /* @__PURE__ */ z({
|
|
903
903
|
__name: "menu",
|
|
904
904
|
setup(e) {
|
|
905
|
-
const { t } =
|
|
906
|
-
const D = () => !(
|
|
905
|
+
const { t } = ie(), n = Wi(), r = Qi(), l = ts(), o = rs(), i = k(0), s = k(0), u = k([]), a = F(() => [i.value, s.value]), d = (b) => {
|
|
906
|
+
const D = () => !(u.value.length <= 0 || !be(l.value, u.value)), w = () => {
|
|
907
907
|
if (!D())
|
|
908
908
|
return;
|
|
909
|
-
const
|
|
910
|
-
if (
|
|
911
|
-
if (
|
|
912
|
-
const A = Ae(r.value,
|
|
909
|
+
const U = Ne(n.value, u.value);
|
|
910
|
+
if (U)
|
|
911
|
+
if (U.ui) {
|
|
912
|
+
const A = Ae(r.value, u.value.slice(0, -1));
|
|
913
913
|
if (!A)
|
|
914
914
|
return;
|
|
915
|
-
A[
|
|
916
|
-
} else if (
|
|
917
|
-
const A =
|
|
915
|
+
A[u.value.at(-1)] = N(U), o(u.value, A[u.value.at(-1)]);
|
|
916
|
+
} else if (U.array) {
|
|
917
|
+
const A = u.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 V = Ae(r.value, u.value.slice(0, -1));
|
|
924
|
+
if (!V)
|
|
925
925
|
return;
|
|
926
|
-
|
|
926
|
+
V[u.value.at(-1)] = N(U), o(u.value, V[u.value.at(-1)]);
|
|
927
927
|
} else {
|
|
928
|
-
const
|
|
929
|
-
if (!
|
|
928
|
+
const V = Ae(r.value, u.value);
|
|
929
|
+
if (!V)
|
|
930
930
|
return;
|
|
931
|
-
|
|
932
|
-
|
|
931
|
+
U.children.forEach((W) => {
|
|
932
|
+
V[W.key] = N(U), o([...u.value, W.key], V[W.key]);
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
935
|
} else {
|
|
936
|
-
const A = Ae(r.value,
|
|
936
|
+
const A = Ae(r.value, u.value);
|
|
937
937
|
if (!A)
|
|
938
938
|
return;
|
|
939
|
-
|
|
940
|
-
A[
|
|
939
|
+
U.children.forEach((V) => {
|
|
940
|
+
A[V.key] = N(U), o([...u.value, V.key], A[V.key]);
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
943
|
};
|
|
944
|
-
D() &&
|
|
944
|
+
D() && b.push({
|
|
945
945
|
title: t("x-prop-tree.reset"),
|
|
946
946
|
func: w
|
|
947
947
|
});
|
|
948
|
-
},
|
|
948
|
+
}, c = (b) => {
|
|
949
949
|
const D = () => {
|
|
950
|
-
const w = Ne(n.value,
|
|
951
|
-
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: w, object:
|
|
950
|
+
const w = Ne(n.value, u.value), U = Ae(r.value, u.value);
|
|
951
|
+
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: w, object: U }));
|
|
952
952
|
};
|
|
953
|
-
|
|
953
|
+
b.push({
|
|
954
954
|
title: t("x-prop-tree.copy"),
|
|
955
955
|
func: D
|
|
956
956
|
});
|
|
957
|
-
},
|
|
957
|
+
}, g = (b) => {
|
|
958
958
|
const D = () => {
|
|
959
|
-
const
|
|
960
|
-
if (!
|
|
959
|
+
const U = localStorage.getItem("propTreeCopy");
|
|
960
|
+
if (!U)
|
|
961
961
|
return !1;
|
|
962
962
|
try {
|
|
963
|
-
const { prop: A } = JSON.parse(
|
|
964
|
-
return Gi(A,
|
|
963
|
+
const { prop: A } = JSON.parse(U), V = Ne(n.value, u.value);
|
|
964
|
+
return Gi(A, V);
|
|
965
965
|
} catch (A) {
|
|
966
966
|
console.error(A);
|
|
967
967
|
}
|
|
@@ -969,46 +969,46 @@ const ls = /* @__PURE__ */ z({
|
|
|
969
969
|
}, w = () => {
|
|
970
970
|
if (!D())
|
|
971
971
|
return;
|
|
972
|
-
const
|
|
973
|
-
if (
|
|
972
|
+
const U = localStorage.getItem("propTreeCopy");
|
|
973
|
+
if (U)
|
|
974
974
|
try {
|
|
975
|
-
const { object: A } = JSON.parse(
|
|
976
|
-
console.log(A,
|
|
975
|
+
const { object: A } = JSON.parse(U), V = Ne(n.value, u.value);
|
|
976
|
+
console.log(A, V);
|
|
977
977
|
} catch (A) {
|
|
978
978
|
console.error(A);
|
|
979
979
|
}
|
|
980
980
|
};
|
|
981
|
-
D() &&
|
|
981
|
+
D() && b.push({
|
|
982
982
|
title: t("x-prop-tree.paste"),
|
|
983
983
|
func: w
|
|
984
984
|
});
|
|
985
|
-
},
|
|
986
|
-
const
|
|
987
|
-
return d(
|
|
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(
|
|
985
|
+
}, y = F(() => {
|
|
986
|
+
const b = [];
|
|
987
|
+
return d(b), c(b), g(b), b;
|
|
988
|
+
}), h = (b) => {
|
|
989
|
+
i.value = b.x, s.value = b.y, u.value = b.keys;
|
|
990
|
+
}, { open: M } = at("propTreeMenu", h);
|
|
991
|
+
return (b, D) => {
|
|
992
|
+
const w = O("v-list-item-title"), U = O("v-list-item"), A = O("v-list"), V = O("v-menu");
|
|
993
|
+
return S(), R(V, {
|
|
994
|
+
modelValue: E(M),
|
|
995
|
+
"onUpdate:modelValue": D[0] || (D[0] = (W) => Fe(M) ? M.value = W : null),
|
|
996
996
|
"location-strategy": "connected",
|
|
997
|
-
target:
|
|
997
|
+
target: a.value,
|
|
998
998
|
scrim: "transparent"
|
|
999
999
|
}, {
|
|
1000
1000
|
default: J(() => [
|
|
1001
|
-
|
|
1001
|
+
B(A, null, {
|
|
1002
1002
|
default: J(() => [
|
|
1003
|
-
(S(!0),
|
|
1003
|
+
(S(!0), H(He, null, Ht(y.value, (W, We) => (S(), R(U, {
|
|
1004
1004
|
key: We,
|
|
1005
1005
|
link: "",
|
|
1006
1006
|
onClick: W.func
|
|
1007
1007
|
}, {
|
|
1008
1008
|
default: J(() => [
|
|
1009
|
-
|
|
1009
|
+
B(w, null, {
|
|
1010
1010
|
default: J(() => [
|
|
1011
|
-
st(
|
|
1011
|
+
st(re(W.title), 1)
|
|
1012
1012
|
]),
|
|
1013
1013
|
_: 2
|
|
1014
1014
|
}, 1024)
|
|
@@ -1024,8 +1024,8 @@ const ls = /* @__PURE__ */ z({
|
|
|
1024
1024
|
};
|
|
1025
1025
|
}
|
|
1026
1026
|
});
|
|
1027
|
-
var yn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", hn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", is = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",
|
|
1028
|
-
const
|
|
1027
|
+
var yn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", hn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", is = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", ye = "M19,13H5V11H19V13Z", ss = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
1028
|
+
const Be = /* @__PURE__ */ z({
|
|
1029
1029
|
__name: "title",
|
|
1030
1030
|
props: {
|
|
1031
1031
|
title: {},
|
|
@@ -1036,46 +1036,46 @@ const ke = /* @__PURE__ */ z({
|
|
|
1036
1036
|
},
|
|
1037
1037
|
emits: ["collapse", "menu", "create", "delete"],
|
|
1038
1038
|
setup(e, { emit: t }) {
|
|
1039
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o =
|
|
1039
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = k(!1), i = F(() => ({
|
|
1040
1040
|
background: o.value ? r.value : n.value,
|
|
1041
1041
|
height: "36px",
|
|
1042
1042
|
marginBottom: "1px",
|
|
1043
1043
|
userSelect: "none"
|
|
1044
1044
|
})), s = () => {
|
|
1045
1045
|
l("collapse", !e.collapse);
|
|
1046
|
-
},
|
|
1047
|
-
l("menu",
|
|
1046
|
+
}, u = (a) => {
|
|
1047
|
+
l("menu", a.clientX, a.clientY);
|
|
1048
1048
|
};
|
|
1049
|
-
return (
|
|
1050
|
-
const
|
|
1051
|
-
return
|
|
1049
|
+
return (a, d) => {
|
|
1050
|
+
const c = O("v-icon"), g = O("v-spacer"), y = le("ripple");
|
|
1051
|
+
return Y((S(), H("div", {
|
|
1052
1052
|
class: "d-flex align-center cursor-pointer",
|
|
1053
|
-
style:
|
|
1053
|
+
style: ae(i.value),
|
|
1054
1054
|
onClick: s,
|
|
1055
|
-
onContextmenu: K(
|
|
1056
|
-
onMouseover: d[2] || (d[2] = (
|
|
1057
|
-
onMouseout: d[3] || (d[3] = (
|
|
1055
|
+
onContextmenu: K(u, ["prevent"]),
|
|
1056
|
+
onMouseover: d[2] || (d[2] = (h) => o.value = !0),
|
|
1057
|
+
onMouseout: d[3] || (d[3] = (h) => o.value = !1)
|
|
1058
1058
|
}, [
|
|
1059
|
-
|
|
1059
|
+
B(c, {
|
|
1060
1060
|
class: "mr-1",
|
|
1061
|
-
icon:
|
|
1061
|
+
icon: a.collapse ? E(hn) : E(yn)
|
|
1062
1062
|
}, null, 8, ["icon"]),
|
|
1063
|
-
q("span", null,
|
|
1064
|
-
|
|
1065
|
-
|
|
1063
|
+
q("span", null, re(a.title), 1),
|
|
1064
|
+
B(g),
|
|
1065
|
+
a.hasCreate ? (S(), R(c, {
|
|
1066
1066
|
key: 0,
|
|
1067
1067
|
class: "mx-3",
|
|
1068
1068
|
icon: E(ss),
|
|
1069
|
-
onClick: d[0] || (d[0] = K((
|
|
1070
|
-
}, null, 8, ["icon"])) :
|
|
1071
|
-
|
|
1069
|
+
onClick: d[0] || (d[0] = K((h) => l("create"), ["stop"]))
|
|
1070
|
+
}, null, 8, ["icon"])) : I("", !0),
|
|
1071
|
+
a.hasDelete ? (S(), R(c, {
|
|
1072
1072
|
key: 1,
|
|
1073
1073
|
class: "mx-3",
|
|
1074
|
-
icon: E(
|
|
1075
|
-
onClick: d[1] || (d[1] = K((
|
|
1076
|
-
}, null, 8, ["icon"])) :
|
|
1074
|
+
icon: E(ye),
|
|
1075
|
+
onClick: d[1] || (d[1] = K((h) => l("delete", a.index), ["stop"]))
|
|
1076
|
+
}, null, 8, ["icon"])) : I("", !0)
|
|
1077
1077
|
], 36)), [
|
|
1078
|
-
[
|
|
1078
|
+
[y]
|
|
1079
1079
|
]);
|
|
1080
1080
|
};
|
|
1081
1081
|
}
|
|
@@ -1086,25 +1086,25 @@ const ke = /* @__PURE__ */ z({
|
|
|
1086
1086
|
},
|
|
1087
1087
|
emits: ["menu"],
|
|
1088
1088
|
setup(e, { emit: t }) {
|
|
1089
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o =
|
|
1089
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = t, o = k(!1), i = F(() => ({
|
|
1090
1090
|
background: o.value ? r.value : n.value,
|
|
1091
1091
|
minHeight: e.minHeight,
|
|
1092
1092
|
paddingRight: "4px",
|
|
1093
1093
|
marginBottom: "1px",
|
|
1094
1094
|
userSelect: "none"
|
|
1095
|
-
})), s = (
|
|
1096
|
-
l("menu",
|
|
1095
|
+
})), s = (u) => {
|
|
1096
|
+
l("menu", u.clientX, u.clientY);
|
|
1097
1097
|
};
|
|
1098
|
-
return (
|
|
1099
|
-
const d =
|
|
1100
|
-
return
|
|
1098
|
+
return (u, a) => {
|
|
1099
|
+
const d = le("ripple");
|
|
1100
|
+
return Y((S(), H("div", {
|
|
1101
1101
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1102
|
-
style:
|
|
1102
|
+
style: ae(i.value),
|
|
1103
1103
|
onContextmenu: K(s, ["prevent"]),
|
|
1104
|
-
onMouseover:
|
|
1105
|
-
onMouseout:
|
|
1104
|
+
onMouseover: a[0] || (a[0] = (c) => o.value = !0),
|
|
1105
|
+
onMouseout: a[1] || (a[1] = (c) => o.value = !1)
|
|
1106
1106
|
}, [
|
|
1107
|
-
|
|
1107
|
+
Un(u.$slots, "default")
|
|
1108
1108
|
], 36)), [
|
|
1109
1109
|
[d]
|
|
1110
1110
|
]);
|
|
@@ -1112,64 +1112,75 @@ const ke = /* @__PURE__ */ z({
|
|
|
1112
1112
|
}
|
|
1113
1113
|
});
|
|
1114
1114
|
function us(e, t, n) {
|
|
1115
|
-
const { t: r } =
|
|
1115
|
+
const { t: r } = ie();
|
|
1116
1116
|
return { renderProp: (o, i, s) => {
|
|
1117
|
-
let
|
|
1118
|
-
return be(e.value, o) && (
|
|
1117
|
+
let u = r(i.name);
|
|
1118
|
+
return be(e.value, o) && (u += " *"), _(
|
|
1119
1119
|
as,
|
|
1120
1120
|
{
|
|
1121
1121
|
minHeight: t.value,
|
|
1122
|
-
onMenu: (
|
|
1123
|
-
_e.emit("propTreeMenu", { x:
|
|
1122
|
+
onMenu: (a, d) => {
|
|
1123
|
+
_e.emit("propTreeMenu", { x: a, y: d, keys: o });
|
|
1124
1124
|
}
|
|
1125
1125
|
},
|
|
1126
1126
|
() => [
|
|
1127
|
-
|
|
1128
|
-
|
|
1127
|
+
_("span", { class: "ml-1", innerHTML: u }),
|
|
1128
|
+
_("div", { style: { width: n.value } }, s)
|
|
1129
1129
|
]
|
|
1130
1130
|
);
|
|
1131
1131
|
} };
|
|
1132
1132
|
}
|
|
1133
|
+
const ce = (e, t, n, r, l, o) => {
|
|
1134
|
+
if (l !== void 0 && !o) {
|
|
1135
|
+
if (n[l] === void 0) {
|
|
1136
|
+
const i = N(t, !0);
|
|
1137
|
+
i !== void 0 && (n[l] = i, r(e, n[l]));
|
|
1138
|
+
}
|
|
1139
|
+
return n[l];
|
|
1140
|
+
} else {
|
|
1141
|
+
if (n[t.key] === void 0) {
|
|
1142
|
+
const i = N(t);
|
|
1143
|
+
i !== void 0 && (n[t.key] = i, r(e, n[t.key]));
|
|
1144
|
+
}
|
|
1145
|
+
return n[t.key];
|
|
1146
|
+
}
|
|
1147
|
+
}, he = (e, t, n, r, l, o, i) => {
|
|
1148
|
+
o !== void 0 && !i ? r !== n[o] && (n[o] = r, l(e, n[o])) : r !== n[t.key] && (n[t.key] = r, l(e, n[t.key]));
|
|
1149
|
+
};
|
|
1133
1150
|
function cs(e) {
|
|
1134
1151
|
return { renderUiDummy: (n, r, l, o, i) => {
|
|
1135
1152
|
if (r.ui !== "dummy") {
|
|
1136
1153
|
console.assert(!1, "renderUiDummy prop ui must be dummy");
|
|
1137
1154
|
return;
|
|
1138
1155
|
}
|
|
1139
|
-
|
|
1140
|
-
const s = N(r, !0);
|
|
1141
|
-
typeof l[o] != typeof s && (l[o] = s, e(n, l[o]));
|
|
1142
|
-
} else {
|
|
1143
|
-
const s = N(r);
|
|
1144
|
-
typeof l[r.key] != typeof s && (l[r.key] = s, e(n, l[r.key]));
|
|
1145
|
-
}
|
|
1156
|
+
ce(n, r, l, e, o, i);
|
|
1146
1157
|
} };
|
|
1147
1158
|
}
|
|
1148
1159
|
const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PURE__ */ z({
|
|
1149
1160
|
__name: "strInput",
|
|
1150
|
-
props: /* @__PURE__ */
|
|
1161
|
+
props: /* @__PURE__ */ X({
|
|
1151
1162
|
hasDelete: { type: Boolean, default: !1 },
|
|
1152
1163
|
readonly: { type: Boolean, default: !1 }
|
|
1153
1164
|
}, {
|
|
1154
1165
|
modelValue: {},
|
|
1155
1166
|
modelModifiers: {}
|
|
1156
1167
|
}),
|
|
1157
|
-
emits: /* @__PURE__ */
|
|
1168
|
+
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1158
1169
|
setup(e, { emit: t }) {
|
|
1159
1170
|
const n = oe(e, "modelValue"), r = t;
|
|
1160
1171
|
return (l, o) => {
|
|
1161
|
-
const i = O("v-text-field"), s = O("v-icon"),
|
|
1162
|
-
return S(),
|
|
1163
|
-
|
|
1172
|
+
const i = O("v-text-field"), s = O("v-icon"), u = le("ripple");
|
|
1173
|
+
return S(), H("div", fs, [
|
|
1174
|
+
Y(B(i, {
|
|
1164
1175
|
modelValue: n.value,
|
|
1165
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1176
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1166
1177
|
density: "compact",
|
|
1167
1178
|
"hide-details": "",
|
|
1168
1179
|
"single-line": "",
|
|
1169
1180
|
readonly: l.readonly
|
|
1170
1181
|
}, null, 8, ["modelValue", "readonly"]), [
|
|
1171
1182
|
[
|
|
1172
|
-
|
|
1183
|
+
u,
|
|
1173
1184
|
void 0,
|
|
1174
1185
|
void 0,
|
|
1175
1186
|
{ stop: !0 }
|
|
@@ -1178,26 +1189,16 @@ const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PU
|
|
|
1178
1189
|
l.hasDelete ? (S(), R(s, {
|
|
1179
1190
|
key: 0,
|
|
1180
1191
|
class: "mx-2",
|
|
1181
|
-
icon: E(
|
|
1182
|
-
onClick: o[1] || (o[1] = K((
|
|
1183
|
-
}, null, 8, ["icon"])) :
|
|
1192
|
+
icon: E(ye),
|
|
1193
|
+
onClick: o[1] || (o[1] = K((a) => r("delete"), ["stop"]))
|
|
1194
|
+
}, null, 8, ["icon"])) : I("", !0)
|
|
1184
1195
|
]);
|
|
1185
1196
|
};
|
|
1186
1197
|
}
|
|
1187
|
-
})
|
|
1188
|
-
const i = N(t, !0);
|
|
1189
|
-
return l !== void 0 && !o ? (typeof n[l] != typeof i && (n[l] = i, r(e, n[l])), n[l]) : (typeof n[t.key] != typeof i && (n[t.key] = i, r(e, n[t.key])), n[t.key]);
|
|
1190
|
-
}, he = (e, t, n, r, l, o, i) => {
|
|
1191
|
-
const s = N(t, !0);
|
|
1192
|
-
if (typeof r != typeof s) {
|
|
1193
|
-
console.assert(!1);
|
|
1194
|
-
return;
|
|
1195
|
-
}
|
|
1196
|
-
o !== void 0 && !i ? r !== n[o] && (n[o] = r, l(e, n[o])) : r !== n[t.key] && (n[t.key] = r, l(e, n[t.key]));
|
|
1197
|
-
};
|
|
1198
|
+
});
|
|
1198
1199
|
function ps(e) {
|
|
1199
|
-
return { renderUiStrInput: (n, r, l, o, i) => r.ui !== "strInput" ? (console.assert(!1),
|
|
1200
|
-
modelValue: r.static ? r.value :
|
|
1200
|
+
return { renderUiStrInput: (n, r, l, o, i) => r.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(ds, {
|
|
1201
|
+
modelValue: r.static ? r.value : ce(
|
|
1201
1202
|
n,
|
|
1202
1203
|
r,
|
|
1203
1204
|
l,
|
|
@@ -1223,9 +1224,9 @@ function ps(e) {
|
|
|
1223
1224
|
readonly: r.static || r.readonly
|
|
1224
1225
|
}) };
|
|
1225
1226
|
}
|
|
1226
|
-
const
|
|
1227
|
+
const vs = { class: "d-flex justify-space-between align-center" }, ms = /* @__PURE__ */ z({
|
|
1227
1228
|
__name: "numInput",
|
|
1228
|
-
props: /* @__PURE__ */
|
|
1229
|
+
props: /* @__PURE__ */ X({
|
|
1229
1230
|
hasDelete: { type: Boolean, default: !1 },
|
|
1230
1231
|
precision: { default: () => {
|
|
1231
1232
|
} },
|
|
@@ -1237,15 +1238,15 @@ const ms = { class: "d-flex justify-space-between align-center" }, vs = /* @__PU
|
|
|
1237
1238
|
modelValue: {},
|
|
1238
1239
|
modelModifiers: {}
|
|
1239
1240
|
}),
|
|
1240
|
-
emits: /* @__PURE__ */
|
|
1241
|
+
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1241
1242
|
setup(e, { emit: t }) {
|
|
1242
1243
|
const n = oe(e, "modelValue"), r = t;
|
|
1243
1244
|
return (l, o) => {
|
|
1244
|
-
const i = O("v-number-input"), s = O("v-icon"),
|
|
1245
|
-
return S(),
|
|
1246
|
-
|
|
1245
|
+
const i = O("v-number-input"), s = O("v-icon"), u = le("ripple");
|
|
1246
|
+
return S(), H("div", vs, [
|
|
1247
|
+
Y(B(i, {
|
|
1247
1248
|
modelValue: n.value,
|
|
1248
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1249
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1249
1250
|
density: "compact",
|
|
1250
1251
|
"control-variant": "stacked",
|
|
1251
1252
|
precision: l.precision,
|
|
@@ -1257,7 +1258,7 @@ const ms = { class: "d-flex justify-space-between align-center" }, vs = /* @__PU
|
|
|
1257
1258
|
readonly: l.readonly
|
|
1258
1259
|
}, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
|
|
1259
1260
|
[
|
|
1260
|
-
|
|
1261
|
+
u,
|
|
1261
1262
|
void 0,
|
|
1262
1263
|
void 0,
|
|
1263
1264
|
{ stop: !0 }
|
|
@@ -1266,16 +1267,16 @@ const ms = { class: "d-flex justify-space-between align-center" }, vs = /* @__PU
|
|
|
1266
1267
|
l.hasDelete ? (S(), R(s, {
|
|
1267
1268
|
key: 0,
|
|
1268
1269
|
class: "mx-2",
|
|
1269
|
-
icon: E(
|
|
1270
|
-
onClick: o[1] || (o[1] = K((
|
|
1271
|
-
}, null, 8, ["icon"])) :
|
|
1270
|
+
icon: E(ye),
|
|
1271
|
+
onClick: o[1] || (o[1] = K((a) => r("delete"), ["stop"]))
|
|
1272
|
+
}, null, 8, ["icon"])) : I("", !0)
|
|
1272
1273
|
]);
|
|
1273
1274
|
};
|
|
1274
1275
|
}
|
|
1275
1276
|
});
|
|
1276
1277
|
function gs(e) {
|
|
1277
|
-
return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1),
|
|
1278
|
-
modelValue:
|
|
1278
|
+
return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(ms, {
|
|
1279
|
+
modelValue: ce(
|
|
1279
1280
|
n,
|
|
1280
1281
|
r,
|
|
1281
1282
|
l,
|
|
@@ -1303,41 +1304,52 @@ function gs(e) {
|
|
|
1303
1304
|
}
|
|
1304
1305
|
const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PURE__ */ z({
|
|
1305
1306
|
__name: "switch",
|
|
1306
|
-
props: /* @__PURE__ */
|
|
1307
|
+
props: /* @__PURE__ */ X({
|
|
1307
1308
|
hasDelete: { type: Boolean, default: !1 },
|
|
1308
1309
|
readonly: { type: Boolean, default: !1 }
|
|
1309
1310
|
}, {
|
|
1310
1311
|
modelValue: { type: Boolean },
|
|
1311
1312
|
modelModifiers: {}
|
|
1312
1313
|
}),
|
|
1313
|
-
emits: /* @__PURE__ */
|
|
1314
|
+
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1314
1315
|
setup(e, { emit: t }) {
|
|
1315
|
-
const n = oe(e, "modelValue"),
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1316
|
+
const { t: n } = ie(), r = oe(e, "modelValue"), l = t, o = F(() => [
|
|
1317
|
+
{ title: n("x-runtime-lib.notSet"), value: void 0 },
|
|
1318
|
+
{ title: n("x-runtime-lib.true"), value: !0 },
|
|
1319
|
+
{ title: n("x-runtime-lib.false"), value: !1 }
|
|
1320
|
+
]);
|
|
1321
|
+
return (i, s) => {
|
|
1322
|
+
const u = O("v-select"), a = O("v-icon"), d = le("ripple");
|
|
1323
|
+
return S(), H("div", ys, [
|
|
1324
|
+
Y(B(u, {
|
|
1325
|
+
modelValue: r.value,
|
|
1326
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
|
|
1323
1327
|
density: "compact",
|
|
1324
|
-
|
|
1328
|
+
items: o.value,
|
|
1325
1329
|
"hide-details": "",
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1330
|
+
"single-line": "",
|
|
1331
|
+
readonly: i.readonly
|
|
1332
|
+
}, null, 8, ["modelValue", "items", "readonly"]), [
|
|
1333
|
+
[
|
|
1334
|
+
d,
|
|
1335
|
+
void 0,
|
|
1336
|
+
void 0,
|
|
1337
|
+
{ stop: !0 }
|
|
1338
|
+
]
|
|
1339
|
+
]),
|
|
1340
|
+
i.hasDelete ? (S(), R(a, {
|
|
1329
1341
|
key: 0,
|
|
1330
1342
|
class: "mx-2",
|
|
1331
|
-
icon: E(
|
|
1332
|
-
onClick:
|
|
1333
|
-
}, null, 8, ["icon"])) :
|
|
1343
|
+
icon: E(ye),
|
|
1344
|
+
onClick: s[1] || (s[1] = K((c) => l("delete"), ["stop"]))
|
|
1345
|
+
}, null, 8, ["icon"])) : I("", !0)
|
|
1334
1346
|
]);
|
|
1335
1347
|
};
|
|
1336
1348
|
}
|
|
1337
1349
|
});
|
|
1338
1350
|
function _s(e) {
|
|
1339
|
-
return { renderUiSwitch: (n, r, l, o, i) => r.ui !== "switch" ? (console.assert(!1),
|
|
1340
|
-
modelValue:
|
|
1351
|
+
return { renderUiSwitch: (n, r, l, o, i) => r.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(hs, {
|
|
1352
|
+
modelValue: ce(
|
|
1341
1353
|
n,
|
|
1342
1354
|
r,
|
|
1343
1355
|
l,
|
|
@@ -1365,7 +1377,7 @@ function _s(e) {
|
|
|
1365
1377
|
}
|
|
1366
1378
|
const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PURE__ */ z({
|
|
1367
1379
|
__name: "select",
|
|
1368
|
-
props: /* @__PURE__ */
|
|
1380
|
+
props: /* @__PURE__ */ X({
|
|
1369
1381
|
hasDelete: { type: Boolean, default: !1 },
|
|
1370
1382
|
readonly: { type: Boolean, default: !1 },
|
|
1371
1383
|
items: {}
|
|
@@ -1373,15 +1385,15 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
|
|
|
1373
1385
|
modelValue: {},
|
|
1374
1386
|
modelModifiers: {}
|
|
1375
1387
|
}),
|
|
1376
|
-
emits: /* @__PURE__ */
|
|
1388
|
+
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1377
1389
|
setup(e, { emit: t }) {
|
|
1378
1390
|
const n = oe(e, "modelValue"), r = t;
|
|
1379
1391
|
return (l, o) => {
|
|
1380
|
-
const i = O("v-select"), s = O("v-icon"),
|
|
1381
|
-
return S(),
|
|
1382
|
-
|
|
1392
|
+
const i = O("v-select"), s = O("v-icon"), u = le("ripple");
|
|
1393
|
+
return S(), H("div", bs, [
|
|
1394
|
+
Y(B(i, {
|
|
1383
1395
|
modelValue: n.value,
|
|
1384
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1396
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
|
|
1385
1397
|
density: "compact",
|
|
1386
1398
|
items: l.items,
|
|
1387
1399
|
"hide-details": "",
|
|
@@ -1389,7 +1401,7 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
|
|
|
1389
1401
|
readonly: l.readonly
|
|
1390
1402
|
}, null, 8, ["modelValue", "items", "readonly"]), [
|
|
1391
1403
|
[
|
|
1392
|
-
|
|
1404
|
+
u,
|
|
1393
1405
|
void 0,
|
|
1394
1406
|
void 0,
|
|
1395
1407
|
{ stop: !0 }
|
|
@@ -1398,17 +1410,17 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
|
|
|
1398
1410
|
l.hasDelete ? (S(), R(s, {
|
|
1399
1411
|
key: 0,
|
|
1400
1412
|
class: "mx-2",
|
|
1401
|
-
icon: E(
|
|
1402
|
-
onClick: o[1] || (o[1] = K((
|
|
1403
|
-
}, null, 8, ["icon"])) :
|
|
1413
|
+
icon: E(ye),
|
|
1414
|
+
onClick: o[1] || (o[1] = K((a) => r("delete"), ["stop"]))
|
|
1415
|
+
}, null, 8, ["icon"])) : I("", !0)
|
|
1404
1416
|
]);
|
|
1405
1417
|
};
|
|
1406
1418
|
}
|
|
1407
1419
|
});
|
|
1408
1420
|
function Ts(e) {
|
|
1409
|
-
const { t } =
|
|
1410
|
-
return { renderUiSelect: (r, l, o, i, s) => l.ui !== "select" ? (console.assert(!1),
|
|
1411
|
-
modelValue:
|
|
1421
|
+
const { t } = ie();
|
|
1422
|
+
return { renderUiSelect: (r, l, o, i, s) => l.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _($s, {
|
|
1423
|
+
modelValue: ce(
|
|
1412
1424
|
r,
|
|
1413
1425
|
l,
|
|
1414
1426
|
o,
|
|
@@ -1416,12 +1428,12 @@ function Ts(e) {
|
|
|
1416
1428
|
i,
|
|
1417
1429
|
s
|
|
1418
1430
|
),
|
|
1419
|
-
"onUpdate:modelValue": (
|
|
1431
|
+
"onUpdate:modelValue": (u) => {
|
|
1420
1432
|
he(
|
|
1421
1433
|
r,
|
|
1422
1434
|
l,
|
|
1423
1435
|
o,
|
|
1424
|
-
|
|
1436
|
+
u,
|
|
1425
1437
|
e,
|
|
1426
1438
|
i,
|
|
1427
1439
|
s
|
|
@@ -1432,13 +1444,13 @@ function Ts(e) {
|
|
|
1432
1444
|
i === void 0 || s || (o.splice(i, 1), e(r.slice(0, -1), o));
|
|
1433
1445
|
},
|
|
1434
1446
|
items: (() => {
|
|
1435
|
-
const
|
|
1436
|
-
return l.items.forEach(({ title:
|
|
1437
|
-
|
|
1438
|
-
title: t(
|
|
1447
|
+
const u = [];
|
|
1448
|
+
return l.items.forEach(({ title: a, value: d }) => {
|
|
1449
|
+
u.push({
|
|
1450
|
+
title: t(a),
|
|
1439
1451
|
value: d
|
|
1440
1452
|
});
|
|
1441
|
-
}),
|
|
1453
|
+
}), u;
|
|
1442
1454
|
})(),
|
|
1443
1455
|
readonly: l.readonly
|
|
1444
1456
|
}) };
|
|
@@ -1453,29 +1465,29 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1453
1465
|
},
|
|
1454
1466
|
emits: ["x-click"],
|
|
1455
1467
|
setup(e, { emit: t }) {
|
|
1456
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i =
|
|
1468
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = k(!1), s = F(() => ({
|
|
1457
1469
|
background: i.value ? r.value : n.value,
|
|
1458
1470
|
height: "30px",
|
|
1459
1471
|
marginBottom: "1px",
|
|
1460
1472
|
userSelect: "none"
|
|
1461
1473
|
}));
|
|
1462
|
-
return (
|
|
1463
|
-
const d = O("v-icon"),
|
|
1464
|
-
return
|
|
1474
|
+
return (u, a) => {
|
|
1475
|
+
const d = O("v-icon"), c = le("ripple");
|
|
1476
|
+
return Y((S(), H("div", {
|
|
1465
1477
|
class: "d-flex align-center cursor-pointer",
|
|
1466
|
-
style:
|
|
1467
|
-
onClick:
|
|
1468
|
-
onMouseover:
|
|
1469
|
-
onMouseout:
|
|
1478
|
+
style: ae(s.value),
|
|
1479
|
+
onClick: a[0] || (a[0] = (g) => o("x-click", l.id)),
|
|
1480
|
+
onMouseover: a[1] || (a[1] = (g) => i.value = !0),
|
|
1481
|
+
onMouseout: a[2] || (a[2] = (g) => i.value = !1)
|
|
1470
1482
|
}, [
|
|
1471
|
-
|
|
1483
|
+
B(d, {
|
|
1472
1484
|
icon: l.collapse ? E(hn) : E(yn),
|
|
1473
1485
|
size: "small"
|
|
1474
1486
|
}, null, 8, ["icon"]),
|
|
1475
|
-
q("span", Ss,
|
|
1476
|
-
q("span", ws,
|
|
1487
|
+
q("span", Ss, re(l.title), 1),
|
|
1488
|
+
q("span", ws, re(l.count), 1)
|
|
1477
1489
|
], 36)), [
|
|
1478
|
-
[
|
|
1490
|
+
[c]
|
|
1479
1491
|
]);
|
|
1480
1492
|
};
|
|
1481
1493
|
}
|
|
@@ -1487,116 +1499,116 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1487
1499
|
},
|
|
1488
1500
|
emits: ["x-click"],
|
|
1489
1501
|
setup(e, { emit: t }) {
|
|
1490
|
-
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i =
|
|
1502
|
+
const { backgroundColor2: n, highlightColor: r } = Te(), l = e, o = t, i = k(!1), s = F(() => ({
|
|
1491
1503
|
background: i.value ? r.value : n.value,
|
|
1492
1504
|
height: "48px",
|
|
1493
1505
|
marginBottom: "1px",
|
|
1494
1506
|
userSelect: "none"
|
|
1495
1507
|
}));
|
|
1496
|
-
return (
|
|
1497
|
-
const d =
|
|
1498
|
-
return
|
|
1508
|
+
return (u, a) => {
|
|
1509
|
+
const d = le("ripple");
|
|
1510
|
+
return Y((S(), H("div", {
|
|
1499
1511
|
class: "d-flex align-center cursor-pointer",
|
|
1500
|
-
style:
|
|
1501
|
-
onClick:
|
|
1502
|
-
onMouseover:
|
|
1503
|
-
onMouseout:
|
|
1512
|
+
style: ae(s.value),
|
|
1513
|
+
onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
|
|
1514
|
+
onMouseover: a[1] || (a[1] = (c) => i.value = !0),
|
|
1515
|
+
onMouseout: a[2] || (a[2] = (c) => i.value = !1)
|
|
1504
1516
|
}, [
|
|
1505
|
-
q("span", Cs,
|
|
1517
|
+
q("span", Cs, re(l.title), 1)
|
|
1506
1518
|
], 36)), [
|
|
1507
1519
|
[d]
|
|
1508
1520
|
]);
|
|
1509
1521
|
};
|
|
1510
1522
|
}
|
|
1511
|
-
}), Os = { key: 0 },
|
|
1523
|
+
}), Os = { key: 0 }, xs = {
|
|
1512
1524
|
key: 1,
|
|
1513
1525
|
class: "text-body-2 text-grey ml-3"
|
|
1514
|
-
},
|
|
1526
|
+
}, Ms = /* @__PURE__ */ z({
|
|
1515
1527
|
__name: "index",
|
|
1516
1528
|
props: {
|
|
1517
|
-
modelValue: {
|
|
1529
|
+
modelValue: {},
|
|
1518
1530
|
modelModifiers: {},
|
|
1519
1531
|
open: { type: Boolean, required: !0 },
|
|
1520
1532
|
openModifiers: {}
|
|
1521
1533
|
},
|
|
1522
1534
|
emits: ["update:modelValue", "update:open"],
|
|
1523
1535
|
setup(e) {
|
|
1524
|
-
const { t } =
|
|
1525
|
-
const
|
|
1526
|
-
|
|
1536
|
+
const { t } = ie(), n = oe(e, "modelValue"), r = oe(e, "open"), l = gn(), o = (s) => {
|
|
1537
|
+
const u = cn(l, s);
|
|
1538
|
+
u && Hi(l, s, !u.collapse);
|
|
1527
1539
|
}, i = (s) => {
|
|
1528
1540
|
n.value = s, r.value = !1, _e.emit("refreshDepends");
|
|
1529
1541
|
};
|
|
1530
|
-
return (s,
|
|
1531
|
-
(S(!0),
|
|
1532
|
-
key:
|
|
1542
|
+
return (s, u) => E(l).length > 0 ? (S(), H("div", Os, [
|
|
1543
|
+
(S(!0), H(He, null, Ht(E(l), (a) => (S(), H(He, {
|
|
1544
|
+
key: a.id
|
|
1533
1545
|
}, [
|
|
1534
|
-
|
|
1546
|
+
a.type === 0 ? (S(), R(As, {
|
|
1535
1547
|
key: 0,
|
|
1536
|
-
id:
|
|
1537
|
-
title:
|
|
1538
|
-
collapse:
|
|
1539
|
-
count:
|
|
1548
|
+
id: a.id,
|
|
1549
|
+
title: a.name,
|
|
1550
|
+
collapse: a.collapse,
|
|
1551
|
+
count: a.count ?? 0,
|
|
1540
1552
|
onXClick: o
|
|
1541
|
-
}, null, 8, ["id", "title", "collapse", "count"])) :
|
|
1542
|
-
|
|
1553
|
+
}, null, 8, ["id", "title", "collapse", "count"])) : I("", !0),
|
|
1554
|
+
a.type === 1 && a.show ? (S(), R(Ps, {
|
|
1543
1555
|
key: 1,
|
|
1544
|
-
id:
|
|
1545
|
-
title:
|
|
1556
|
+
id: a.id,
|
|
1557
|
+
title: a.name,
|
|
1546
1558
|
onXClick: i
|
|
1547
|
-
}, null, 8, ["id", "title"])) :
|
|
1559
|
+
}, null, 8, ["id", "title"])) : I("", !0)
|
|
1548
1560
|
], 64))), 128))
|
|
1549
|
-
])) : (S(),
|
|
1561
|
+
])) : (S(), H("div", xs, re(E(t)("x-prop-tree.noComp")), 1));
|
|
1550
1562
|
}
|
|
1551
|
-
}),
|
|
1563
|
+
}), Us = { class: "text-subtitle-1 ml-3" }, Vs = /* @__PURE__ */ z({
|
|
1552
1564
|
__name: "index",
|
|
1553
1565
|
props: {
|
|
1554
|
-
modelValue: {
|
|
1566
|
+
modelValue: {},
|
|
1555
1567
|
modelModifiers: {}
|
|
1556
1568
|
},
|
|
1557
1569
|
emits: ["update:modelValue"],
|
|
1558
1570
|
setup(e) {
|
|
1559
|
-
const { t } =
|
|
1560
|
-
let
|
|
1561
|
-
return n.mdAndUp.value && (
|
|
1571
|
+
const { t } = ie(), n = kn(), { sysBarAvail: r } = En(), { backgroundColor1: l } = Te(), o = oe(e, "modelValue"), i = gn(), s = F(() => {
|
|
1572
|
+
let g = "100%";
|
|
1573
|
+
return n.mdAndUp.value && (g = "400px"), {
|
|
1562
1574
|
background: l.value,
|
|
1563
|
-
width:
|
|
1575
|
+
width: g,
|
|
1564
1576
|
height: "100%"
|
|
1565
1577
|
};
|
|
1566
|
-
}),
|
|
1567
|
-
let
|
|
1568
|
-
return r.value && (
|
|
1578
|
+
}), u = F(() => {
|
|
1579
|
+
let g = 48;
|
|
1580
|
+
return r.value && (g += 24), {
|
|
1569
1581
|
position: "relative",
|
|
1570
|
-
height: `calc(100% - ${
|
|
1582
|
+
height: `calc(100% - ${g}px)`
|
|
1571
1583
|
};
|
|
1572
|
-
}),
|
|
1584
|
+
}), a = F(() => ({
|
|
1573
1585
|
height: "60px"
|
|
1574
|
-
})), d =
|
|
1586
|
+
})), d = F(() => {
|
|
1575
1587
|
if (!o.value)
|
|
1576
1588
|
return t("x-prop-tree.notSet");
|
|
1577
|
-
const
|
|
1578
|
-
return
|
|
1579
|
-
}), { open:
|
|
1589
|
+
const g = cn(i, o.value);
|
|
1590
|
+
return g ? g.name : t("x-runtime-lib.compNotAvail");
|
|
1591
|
+
}), { open: c } = at(`propTreeCompSelectDlg${Gt()}`);
|
|
1580
1592
|
return zt(() => {
|
|
1581
|
-
|
|
1582
|
-
}), (
|
|
1583
|
-
const
|
|
1593
|
+
c.value = !1;
|
|
1594
|
+
}), (g, y) => {
|
|
1595
|
+
const h = O("v-btn"), M = O("v-sheet"), b = O("v-icon"), D = O("v-dialog");
|
|
1584
1596
|
return S(), R(D, {
|
|
1585
|
-
modelValue: E(
|
|
1586
|
-
"onUpdate:modelValue":
|
|
1597
|
+
modelValue: E(c),
|
|
1598
|
+
"onUpdate:modelValue": y[5] || (y[5] = (w) => Fe(c) ? c.value = w : null),
|
|
1587
1599
|
transition: "scroll-x-reverse-transition",
|
|
1588
1600
|
persistent: "",
|
|
1589
1601
|
"no-click-animation": "",
|
|
1590
1602
|
fullscreen: "",
|
|
1591
|
-
onKeydown:
|
|
1603
|
+
onKeydown: y[6] || (y[6] = Vn(K((w) => c.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1592
1604
|
}, {
|
|
1593
1605
|
activator: J(({ props: w }) => [
|
|
1594
|
-
|
|
1606
|
+
B(h, Kt(w, {
|
|
1595
1607
|
density: "comfortable",
|
|
1596
1608
|
block: ""
|
|
1597
1609
|
}), {
|
|
1598
1610
|
default: J(() => [
|
|
1599
|
-
st(
|
|
1611
|
+
st(re(d.value), 1)
|
|
1600
1612
|
]),
|
|
1601
1613
|
_: 2
|
|
1602
1614
|
}, 1040)
|
|
@@ -1604,44 +1616,44 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1604
1616
|
default: J(() => [
|
|
1605
1617
|
q("div", {
|
|
1606
1618
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1607
|
-
onClick:
|
|
1608
|
-
onContextmenu:
|
|
1619
|
+
onClick: y[3] || (y[3] = K((w) => c.value = !1, ["self"])),
|
|
1620
|
+
onContextmenu: y[4] || (y[4] = K((w) => c.value = !1, ["self", "prevent"]))
|
|
1609
1621
|
}, [
|
|
1610
1622
|
q("div", {
|
|
1611
1623
|
class: "elevation-2",
|
|
1612
|
-
style:
|
|
1624
|
+
style: ae(s.value)
|
|
1613
1625
|
}, [
|
|
1614
|
-
E(r) ? (S(), R(
|
|
1626
|
+
E(r) ? (S(), R(M, {
|
|
1615
1627
|
key: 0,
|
|
1616
1628
|
color: "transparent",
|
|
1617
1629
|
height: 24
|
|
1618
|
-
})) :
|
|
1619
|
-
|
|
1630
|
+
})) : I("", !0),
|
|
1631
|
+
B(M, {
|
|
1620
1632
|
class: "d-flex align-center px-3",
|
|
1621
1633
|
color: "transparent",
|
|
1622
1634
|
height: 48
|
|
1623
1635
|
}, {
|
|
1624
1636
|
default: J(() => [
|
|
1625
|
-
|
|
1637
|
+
B(b, {
|
|
1626
1638
|
icon: E(is),
|
|
1627
|
-
onClick:
|
|
1639
|
+
onClick: y[0] || (y[0] = (w) => c.value = !1)
|
|
1628
1640
|
}, null, 8, ["icon"]),
|
|
1629
|
-
q("span",
|
|
1641
|
+
q("span", Us, re(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
1630
1642
|
]),
|
|
1631
1643
|
_: 1
|
|
1632
1644
|
}),
|
|
1633
1645
|
q("div", {
|
|
1634
1646
|
class: "overflow-y-auto",
|
|
1635
|
-
style:
|
|
1647
|
+
style: ae(u.value)
|
|
1636
1648
|
}, [
|
|
1637
|
-
|
|
1649
|
+
B(Ms, {
|
|
1638
1650
|
modelValue: o.value,
|
|
1639
|
-
"onUpdate:modelValue":
|
|
1640
|
-
open: E(
|
|
1641
|
-
"onUpdate:open":
|
|
1651
|
+
"onUpdate:modelValue": y[1] || (y[1] = (w) => o.value = w),
|
|
1652
|
+
open: E(c),
|
|
1653
|
+
"onUpdate:open": y[2] || (y[2] = (w) => Fe(c) ? c.value = w : null)
|
|
1642
1654
|
}, null, 8, ["modelValue", "open"]),
|
|
1643
1655
|
q("div", {
|
|
1644
|
-
style:
|
|
1656
|
+
style: ae(a.value)
|
|
1645
1657
|
}, null, 4)
|
|
1646
1658
|
], 4)
|
|
1647
1659
|
], 4)
|
|
@@ -1653,8 +1665,8 @@ const Ss = { class: "text-subtitle-2 ml-1" }, ws = { class: "text-caption text-g
|
|
|
1653
1665
|
}
|
|
1654
1666
|
});
|
|
1655
1667
|
function Ls(e) {
|
|
1656
|
-
return { renderUiCompSelect: (n, r, l, o, i) => r.ui !== "compSelect" ? (console.assert(!1),
|
|
1657
|
-
modelValue:
|
|
1668
|
+
return { renderUiCompSelect: (n, r, l, o, i) => r.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : _(Vs, {
|
|
1669
|
+
modelValue: ce(
|
|
1658
1670
|
n,
|
|
1659
1671
|
r,
|
|
1660
1672
|
l,
|
|
@@ -1677,61 +1689,61 @@ function Ls(e) {
|
|
|
1677
1689
|
}
|
|
1678
1690
|
const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PURE__ */ z({
|
|
1679
1691
|
__name: "colorPicker",
|
|
1680
|
-
props: /* @__PURE__ */
|
|
1692
|
+
props: /* @__PURE__ */ X({
|
|
1681
1693
|
hasDelete: { type: Boolean, default: !1 },
|
|
1682
1694
|
readonly: { type: Boolean, default: !1 }
|
|
1683
1695
|
}, {
|
|
1684
1696
|
modelValue: {},
|
|
1685
1697
|
modelModifiers: {}
|
|
1686
1698
|
}),
|
|
1687
|
-
emits: /* @__PURE__ */
|
|
1699
|
+
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1688
1700
|
setup(e, { emit: t }) {
|
|
1689
|
-
const n = oe(e, "modelValue"),
|
|
1690
|
-
let
|
|
1691
|
-
return e.hasDelete && (
|
|
1692
|
-
width:
|
|
1701
|
+
const { t: n } = ie(), r = oe(e, "modelValue"), l = t, o = F(() => {
|
|
1702
|
+
let u = "100%";
|
|
1703
|
+
return e.hasDelete && (u = "calc(100% - 37px)"), {
|
|
1704
|
+
width: u
|
|
1693
1705
|
};
|
|
1694
|
-
}),
|
|
1706
|
+
}), i = F(() => e.readonly), { open: s } = at(`propTreeColorPickerMenu${Gt()}`);
|
|
1695
1707
|
return zt(() => {
|
|
1696
|
-
|
|
1697
|
-
}), (
|
|
1698
|
-
const
|
|
1708
|
+
s.value = !1;
|
|
1709
|
+
}), (u, a) => {
|
|
1710
|
+
const d = O("v-btn"), c = O("v-icon"), g = O("v-color-picker"), y = O("v-menu");
|
|
1699
1711
|
return S(), R(y, {
|
|
1700
|
-
modelValue: E(
|
|
1701
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
1712
|
+
modelValue: E(s),
|
|
1713
|
+
"onUpdate:modelValue": a[2] || (a[2] = (h) => Fe(s) ? s.value = h : null),
|
|
1702
1714
|
"close-on-content-click": !1,
|
|
1703
1715
|
scrim: "transparent"
|
|
1704
1716
|
}, {
|
|
1705
|
-
activator: J(({ props:
|
|
1717
|
+
activator: J(({ props: h }) => [
|
|
1706
1718
|
q("div", Ds, [
|
|
1707
1719
|
q("div", {
|
|
1708
1720
|
class: "flex-grow-1",
|
|
1709
|
-
style:
|
|
1721
|
+
style: ae(o.value)
|
|
1710
1722
|
}, [
|
|
1711
|
-
|
|
1723
|
+
B(d, Kt(h, {
|
|
1712
1724
|
density: "comfortable",
|
|
1713
|
-
color:
|
|
1725
|
+
color: r.value,
|
|
1714
1726
|
block: "",
|
|
1715
|
-
disabled:
|
|
1727
|
+
disabled: i.value
|
|
1716
1728
|
}), {
|
|
1717
1729
|
default: J(() => [
|
|
1718
|
-
st(
|
|
1730
|
+
st(re(r.value ? r.value : E(n)("x-runtime-lib.notSet")), 1)
|
|
1719
1731
|
]),
|
|
1720
1732
|
_: 2
|
|
1721
1733
|
}, 1040, ["color", "disabled"])
|
|
1722
1734
|
], 4),
|
|
1723
|
-
|
|
1735
|
+
u.hasDelete ? (S(), R(c, {
|
|
1724
1736
|
key: 0,
|
|
1725
1737
|
class: "mx-2",
|
|
1726
|
-
icon: E(
|
|
1727
|
-
onClick: a[0] || (a[0] = K((
|
|
1728
|
-
}, null, 8, ["icon"])) :
|
|
1738
|
+
icon: E(ye),
|
|
1739
|
+
onClick: a[0] || (a[0] = K((M) => l("delete"), ["stop"]))
|
|
1740
|
+
}, null, 8, ["icon"])) : I("", !0)
|
|
1729
1741
|
])
|
|
1730
1742
|
]),
|
|
1731
1743
|
default: J(() => [
|
|
1732
|
-
|
|
1733
|
-
modelValue:
|
|
1734
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
1744
|
+
B(g, {
|
|
1745
|
+
modelValue: r.value,
|
|
1746
|
+
"onUpdate:modelValue": a[1] || (a[1] = (h) => r.value = h),
|
|
1735
1747
|
mode: "hexa",
|
|
1736
1748
|
"show-swatches": "",
|
|
1737
1749
|
"swatches-max-height": "150px"
|
|
@@ -1743,8 +1755,8 @@ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PU
|
|
|
1743
1755
|
}
|
|
1744
1756
|
});
|
|
1745
1757
|
function Es(e) {
|
|
1746
|
-
return { renderUiColorPicker: (n, r, l, o, i) => r.ui !== "colorPicker" ? (console.assert(!1),
|
|
1747
|
-
modelValue:
|
|
1758
|
+
return { renderUiColorPicker: (n, r, l, o, i) => r.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(js, {
|
|
1759
|
+
modelValue: ce(
|
|
1748
1760
|
n,
|
|
1749
1761
|
r,
|
|
1750
1762
|
l,
|
|
@@ -1770,45 +1782,45 @@ function Es(e) {
|
|
|
1770
1782
|
readonly: r.readonly
|
|
1771
1783
|
}) };
|
|
1772
1784
|
}
|
|
1773
|
-
const Ns = { class: "d-flex justify-space-between align-center my-2" },
|
|
1785
|
+
const Ns = { class: "d-flex justify-space-between align-center my-2" }, Bs = { class: "flex-grow-1" }, ks = /* @__PURE__ */ z({
|
|
1774
1786
|
__name: "multiTypes",
|
|
1775
|
-
props: /* @__PURE__ */
|
|
1787
|
+
props: /* @__PURE__ */ X({
|
|
1776
1788
|
hasDelete: { type: Boolean, default: !1 },
|
|
1777
1789
|
types: {}
|
|
1778
1790
|
}, {
|
|
1779
|
-
modelValue: {
|
|
1791
|
+
modelValue: {},
|
|
1780
1792
|
modelModifiers: {}
|
|
1781
1793
|
}),
|
|
1782
|
-
emits: /* @__PURE__ */
|
|
1794
|
+
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1783
1795
|
setup(e, { emit: t }) {
|
|
1784
|
-
const { t: n } =
|
|
1796
|
+
const { t: n } = ie(), r = oe(e, "modelValue"), l = t, o = k(0), i = F(() => {
|
|
1785
1797
|
const d = [];
|
|
1786
|
-
return e.types.forEach(({ name:
|
|
1798
|
+
return e.types.forEach(({ name: c }, g) => {
|
|
1787
1799
|
d.push({
|
|
1788
|
-
title: n(
|
|
1789
|
-
value:
|
|
1800
|
+
title: n(c),
|
|
1801
|
+
value: g
|
|
1790
1802
|
});
|
|
1791
1803
|
}), d;
|
|
1792
1804
|
});
|
|
1793
|
-
|
|
1794
|
-
e.types.some((d,
|
|
1805
|
+
mt(() => {
|
|
1806
|
+
e.types.some((d, c) => d.validator(r.value) ? (o.value = c, !0) : !1);
|
|
1795
1807
|
});
|
|
1796
|
-
const s =
|
|
1808
|
+
const s = F(() => e.types[o.value]), u = () => {
|
|
1797
1809
|
r.value = s.value.default;
|
|
1798
|
-
},
|
|
1799
|
-
return
|
|
1800
|
-
s.value.ui === "pixelInput" ?
|
|
1801
|
-
}),
|
|
1810
|
+
}, a = k(0);
|
|
1811
|
+
return mt(() => {
|
|
1812
|
+
s.value.ui === "pixelInput" ? a.value = Nn(r.value) : s.value.ui === "percentInput" && (a.value = Bn(r.value));
|
|
1813
|
+
}), ke(a, (d) => {
|
|
1802
1814
|
s.value.ui === "pixelInput" ? r.value = d + "px" : s.value.ui === "percentInput" && (r.value = d + "%");
|
|
1803
|
-
}), (d,
|
|
1804
|
-
const
|
|
1805
|
-
return S(),
|
|
1806
|
-
q("div",
|
|
1807
|
-
|
|
1815
|
+
}), (d, c) => {
|
|
1816
|
+
const g = O("v-select"), y = O("v-number-input"), h = O("v-icon"), M = le("ripple");
|
|
1817
|
+
return S(), H("div", Ns, [
|
|
1818
|
+
q("div", Bs, [
|
|
1819
|
+
Y(B(g, {
|
|
1808
1820
|
modelValue: o.value,
|
|
1809
1821
|
"onUpdate:modelValue": [
|
|
1810
|
-
|
|
1811
|
-
|
|
1822
|
+
c[0] || (c[0] = (b) => o.value = b),
|
|
1823
|
+
u
|
|
1812
1824
|
],
|
|
1813
1825
|
density: "compact",
|
|
1814
1826
|
items: i.value,
|
|
@@ -1816,16 +1828,16 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, ks = { c
|
|
|
1816
1828
|
"single-line": ""
|
|
1817
1829
|
}, null, 8, ["modelValue", "items"]), [
|
|
1818
1830
|
[
|
|
1819
|
-
|
|
1831
|
+
M,
|
|
1820
1832
|
void 0,
|
|
1821
1833
|
void 0,
|
|
1822
1834
|
{ stop: !0 }
|
|
1823
1835
|
]
|
|
1824
1836
|
]),
|
|
1825
|
-
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ?
|
|
1837
|
+
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? Y((S(), R(y, {
|
|
1826
1838
|
key: 0,
|
|
1827
|
-
modelValue:
|
|
1828
|
-
"onUpdate:modelValue":
|
|
1839
|
+
modelValue: a.value,
|
|
1840
|
+
"onUpdate:modelValue": c[1] || (c[1] = (b) => a.value = b),
|
|
1829
1841
|
density: "compact",
|
|
1830
1842
|
"control-variant": "stacked",
|
|
1831
1843
|
precision: s.value.precision,
|
|
@@ -1836,26 +1848,26 @@ const Ns = { class: "d-flex justify-space-between align-center my-2" }, ks = { c
|
|
|
1836
1848
|
"single-line": ""
|
|
1837
1849
|
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
1838
1850
|
[
|
|
1839
|
-
|
|
1851
|
+
M,
|
|
1840
1852
|
void 0,
|
|
1841
1853
|
void 0,
|
|
1842
1854
|
{ stop: !0 }
|
|
1843
1855
|
]
|
|
1844
|
-
]) :
|
|
1856
|
+
]) : I("", !0)
|
|
1845
1857
|
]),
|
|
1846
|
-
d.hasDelete ? (S(), R(
|
|
1858
|
+
d.hasDelete ? (S(), R(h, {
|
|
1847
1859
|
key: 0,
|
|
1848
1860
|
class: "mx-2",
|
|
1849
|
-
icon: E(
|
|
1850
|
-
onClick:
|
|
1851
|
-
}, null, 8, ["icon"])) :
|
|
1861
|
+
icon: E(ye),
|
|
1862
|
+
onClick: c[2] || (c[2] = K((b) => l("delete"), ["stop"]))
|
|
1863
|
+
}, null, 8, ["icon"])) : I("", !0)
|
|
1852
1864
|
]);
|
|
1853
1865
|
};
|
|
1854
1866
|
}
|
|
1855
1867
|
});
|
|
1856
1868
|
function Rs(e) {
|
|
1857
|
-
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1),
|
|
1858
|
-
modelValue:
|
|
1869
|
+
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(ks, {
|
|
1870
|
+
modelValue: ce(
|
|
1859
1871
|
n,
|
|
1860
1872
|
r,
|
|
1861
1873
|
l,
|
|
@@ -1890,94 +1902,94 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1890
1902
|
},
|
|
1891
1903
|
emits: ["change"],
|
|
1892
1904
|
setup(e, { emit: t }) {
|
|
1893
|
-
const { t: n } =
|
|
1894
|
-
Ft(d, l.config, l.object), o("change",
|
|
1905
|
+
const { t: n } = ie(), { backgroundColor1: r } = Te(), l = e, o = t, i = k("20px"), s = k("56px"), u = k("200px"), a = Ln({}), d = k({}), c = (v, f) => {
|
|
1906
|
+
Ft(d, l.config, l.object), o("change", v, f);
|
|
1895
1907
|
};
|
|
1896
|
-
|
|
1908
|
+
ke(
|
|
1897
1909
|
[() => l.config, () => l.object],
|
|
1898
1910
|
() => {
|
|
1899
|
-
Ft(d, l.config, l.object, (
|
|
1900
|
-
o("change",
|
|
1911
|
+
Ft(d, l.config, l.object, (v, f) => {
|
|
1912
|
+
o("change", v, f);
|
|
1901
1913
|
});
|
|
1902
1914
|
},
|
|
1903
1915
|
{ immediate: !0 }
|
|
1904
1916
|
);
|
|
1905
|
-
const
|
|
1906
|
-
Ji(
|
|
1917
|
+
const g = k(l.config);
|
|
1918
|
+
Ji(g), ke(
|
|
1907
1919
|
() => l.config,
|
|
1908
1920
|
() => {
|
|
1909
|
-
|
|
1921
|
+
g.value = l.config;
|
|
1910
1922
|
}
|
|
1911
1923
|
);
|
|
1912
|
-
const
|
|
1913
|
-
Yi(
|
|
1924
|
+
const y = k(l.object);
|
|
1925
|
+
Yi(y), ke(
|
|
1914
1926
|
() => l.object,
|
|
1915
1927
|
() => {
|
|
1916
|
-
|
|
1928
|
+
y.value = l.object;
|
|
1917
1929
|
}
|
|
1918
|
-
), es(d), ns(
|
|
1919
|
-
const
|
|
1920
|
-
os(
|
|
1921
|
-
const
|
|
1922
|
-
const { compGroups:
|
|
1923
|
-
|
|
1924
|
-
const
|
|
1925
|
-
|
|
1930
|
+
), es(d), ns(c);
|
|
1931
|
+
const h = k([]);
|
|
1932
|
+
os(h);
|
|
1933
|
+
const M = () => {
|
|
1934
|
+
const { compGroups: v, comps: f } = Rn.app.activeApp, m = [];
|
|
1935
|
+
v.forEach(({ id: p, name: $, position: C }) => {
|
|
1936
|
+
const L = h.value.find((ee) => ee.id === p);
|
|
1937
|
+
m.push({
|
|
1926
1938
|
id: p,
|
|
1927
1939
|
type: 0,
|
|
1928
1940
|
name: $,
|
|
1929
1941
|
position: C,
|
|
1930
|
-
collapse: (
|
|
1942
|
+
collapse: (L == null ? void 0 : L.collapse) ?? !0
|
|
1931
1943
|
});
|
|
1932
|
-
}),
|
|
1933
|
-
|
|
1934
|
-
}), Fi(
|
|
1944
|
+
}), f.forEach(({ id: p, groupid: $, name: C, position: L }) => {
|
|
1945
|
+
m.push({ id: p, type: 1, name: C, position: L, group: $ });
|
|
1946
|
+
}), Fi(m, !0), h.value = m;
|
|
1935
1947
|
};
|
|
1936
|
-
let
|
|
1948
|
+
let b;
|
|
1937
1949
|
const D = () => {
|
|
1938
|
-
clearTimeout(
|
|
1939
|
-
|
|
1950
|
+
clearTimeout(b), b = window.setTimeout(() => {
|
|
1951
|
+
M(), b && D();
|
|
1940
1952
|
}, 1e3);
|
|
1941
1953
|
}, w = () => {
|
|
1942
|
-
clearTimeout(
|
|
1954
|
+
clearTimeout(b), b = void 0;
|
|
1943
1955
|
};
|
|
1944
1956
|
Dn(() => {
|
|
1945
1957
|
D();
|
|
1946
1958
|
}), jn(() => {
|
|
1947
1959
|
w();
|
|
1948
1960
|
});
|
|
1949
|
-
const { renderProp:
|
|
1961
|
+
const { renderProp: U } = us(d, s, u), { renderUiDummy: A } = cs(c), { renderUiStrInput: V } = ps(c), { renderUiNumInput: W } = gs(c), { renderUiSwitch: We } = _s(c), { renderUiSelect: _n } = Ts(c), { renderUiColorPicker: bn } = Es(c), { renderUiMultiTypes: $n } = Rs(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 && $ === void 0 ? An(v, f, m, p, $, C) : Cn(v, f, m, $, C) : f.array ? Sn(v, f, m, p, $, C) : wn(
|
|
1962
|
+
v,
|
|
1963
|
+
f,
|
|
1950
1964
|
m,
|
|
1951
|
-
c,
|
|
1952
|
-
g,
|
|
1953
1965
|
p,
|
|
1954
1966
|
$,
|
|
1955
1967
|
C
|
|
1956
|
-
)), Sn = (
|
|
1957
|
-
if (
|
|
1958
|
-
return console.assert(!1),
|
|
1959
|
-
if (!
|
|
1960
|
-
return console.assert(!1),
|
|
1968
|
+
)), Sn = (v, f, m, p, $, C) => {
|
|
1969
|
+
if (f.ui)
|
|
1970
|
+
return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
|
|
1971
|
+
if (!f.array)
|
|
1972
|
+
return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
|
|
1961
1973
|
if (!p)
|
|
1962
|
-
return console.assert(!1),
|
|
1963
|
-
let
|
|
1964
|
-
$ !== void 0 && !C ? (
|
|
1965
|
-
let
|
|
1966
|
-
p.collapse && be(d.value,
|
|
1967
|
-
const Se =
|
|
1968
|
-
title:
|
|
1974
|
+
return console.assert(!1), _("div", "renderBranchArray branch must be valid");
|
|
1975
|
+
let L;
|
|
1976
|
+
$ !== 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 ee = n(f.name);
|
|
1978
|
+
p.collapse && be(d.value, v) && (ee += " *");
|
|
1979
|
+
const Se = _(Be, {
|
|
1980
|
+
title: ee,
|
|
1969
1981
|
collapse: p.collapse,
|
|
1970
1982
|
hasCreate: !0,
|
|
1971
1983
|
onCollapse: (T) => {
|
|
1972
1984
|
p.collapse = T;
|
|
1973
1985
|
},
|
|
1974
1986
|
onMenu: (T, j) => {
|
|
1975
|
-
_e.emit("propTreeMenu", { x: T, y: j, keys:
|
|
1987
|
+
_e.emit("propTreeMenu", { x: T, y: j, keys: v });
|
|
1976
1988
|
},
|
|
1977
1989
|
onCreate: () => {
|
|
1978
|
-
|
|
1990
|
+
L.push({}), c(v, L);
|
|
1979
1991
|
}
|
|
1980
|
-
}),
|
|
1992
|
+
}), G = _(
|
|
1981
1993
|
"div",
|
|
1982
1994
|
{
|
|
1983
1995
|
style: {
|
|
@@ -1986,7 +1998,7 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1986
1998
|
},
|
|
1987
1999
|
(() => {
|
|
1988
2000
|
const T = [];
|
|
1989
|
-
for (let j = 0; j <
|
|
2001
|
+
for (let j = 0; j < L.length; j++) {
|
|
1990
2002
|
if (!tt(p.children)) {
|
|
1991
2003
|
console.assert(!1);
|
|
1992
2004
|
break;
|
|
@@ -1995,34 +2007,34 @@ const Fs = /* @__PURE__ */ z({
|
|
|
1995
2007
|
collapse: !0,
|
|
1996
2008
|
children: {}
|
|
1997
2009
|
});
|
|
1998
|
-
const De = [...
|
|
1999
|
-
let
|
|
2000
|
-
p.children[j].collapse && be(d.value, De) && (
|
|
2001
|
-
const On =
|
|
2002
|
-
title:
|
|
2010
|
+
const De = [...v, j], je = p.children[j];
|
|
2011
|
+
let vt = n("x-prop-tree.entry", { index: j });
|
|
2012
|
+
p.children[j].collapse && be(d.value, De) && (vt += " *");
|
|
2013
|
+
const On = _(Be, {
|
|
2014
|
+
title: vt,
|
|
2003
2015
|
collapse: p.children[j].collapse,
|
|
2004
2016
|
hasDelete: !0,
|
|
2005
2017
|
index: j,
|
|
2006
|
-
onCollapse: (
|
|
2018
|
+
onCollapse: (te) => {
|
|
2007
2019
|
if (!tt(p.children)) {
|
|
2008
2020
|
console.assert(!1);
|
|
2009
2021
|
return;
|
|
2010
2022
|
}
|
|
2011
|
-
p.children[j].collapse =
|
|
2023
|
+
p.children[j].collapse = te;
|
|
2012
2024
|
},
|
|
2013
|
-
onMenu: (
|
|
2014
|
-
_e.emit("propTreeMenu", { x:
|
|
2025
|
+
onMenu: (te, fe) => {
|
|
2026
|
+
_e.emit("propTreeMenu", { x: te, y: fe, keys: De });
|
|
2015
2027
|
},
|
|
2016
|
-
onDelete: (
|
|
2028
|
+
onDelete: (te) => {
|
|
2017
2029
|
if (!tt(p.children)) {
|
|
2018
2030
|
console.assert(!1);
|
|
2019
2031
|
return;
|
|
2020
2032
|
}
|
|
2021
|
-
p.children.splice(
|
|
2033
|
+
p.children.splice(te, 1), L.splice(te, 1), c(v, L);
|
|
2022
2034
|
}
|
|
2023
2035
|
});
|
|
2024
2036
|
T.push(On);
|
|
2025
|
-
const
|
|
2037
|
+
const xn = _(
|
|
2026
2038
|
"div",
|
|
2027
2039
|
{
|
|
2028
2040
|
style: {
|
|
@@ -2030,34 +2042,34 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2030
2042
|
}
|
|
2031
2043
|
},
|
|
2032
2044
|
(() => {
|
|
2033
|
-
const
|
|
2034
|
-
return
|
|
2045
|
+
const te = [];
|
|
2046
|
+
return f.children.forEach((fe) => {
|
|
2035
2047
|
if (!Rt(je.children)) {
|
|
2036
2048
|
console.assert(!1);
|
|
2037
2049
|
return;
|
|
2038
2050
|
}
|
|
2039
|
-
je.children[
|
|
2051
|
+
je.children[fe.key] || (je.children[fe.key] = {
|
|
2040
2052
|
collapse: !0,
|
|
2041
|
-
children:
|
|
2053
|
+
children: fe.array ? [] : {}
|
|
2042
2054
|
});
|
|
2043
|
-
const
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
je.children[
|
|
2055
|
+
const Mn = Le(
|
|
2056
|
+
v,
|
|
2057
|
+
fe,
|
|
2058
|
+
L[j],
|
|
2059
|
+
je.children[fe.key],
|
|
2048
2060
|
j,
|
|
2049
2061
|
!0
|
|
2050
2062
|
);
|
|
2051
|
-
|
|
2052
|
-
}),
|
|
2063
|
+
te.push(Mn);
|
|
2064
|
+
}), te;
|
|
2053
2065
|
})()
|
|
2054
2066
|
);
|
|
2055
|
-
p.children[j].collapse || T.push(
|
|
2067
|
+
p.children[j].collapse || T.push(xn);
|
|
2056
2068
|
}
|
|
2057
2069
|
return T;
|
|
2058
2070
|
})()
|
|
2059
2071
|
);
|
|
2060
|
-
return
|
|
2072
|
+
return _(
|
|
2061
2073
|
"div",
|
|
2062
2074
|
{
|
|
2063
2075
|
style: {
|
|
@@ -2066,32 +2078,32 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2066
2078
|
},
|
|
2067
2079
|
(() => {
|
|
2068
2080
|
const T = [];
|
|
2069
|
-
return T.push(Se), p.collapse || T.push(
|
|
2081
|
+
return T.push(Se), p.collapse || T.push(G), T;
|
|
2070
2082
|
})()
|
|
2071
2083
|
);
|
|
2072
|
-
}, wn = (
|
|
2073
|
-
if (
|
|
2074
|
-
return console.assert(!1),
|
|
2075
|
-
if (
|
|
2076
|
-
return console.assert(!1),
|
|
2084
|
+
}, wn = (v, f, m, p, $, C) => {
|
|
2085
|
+
if (f.ui)
|
|
2086
|
+
return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
|
|
2087
|
+
if (f.array)
|
|
2088
|
+
return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
|
|
2077
2089
|
if (!p)
|
|
2078
|
-
return console.assert(!1),
|
|
2079
|
-
let
|
|
2080
|
-
p.collapse && be(d.value,
|
|
2081
|
-
const
|
|
2082
|
-
title:
|
|
2090
|
+
return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
|
|
2091
|
+
let L = n(f.name);
|
|
2092
|
+
p.collapse && be(d.value, v) && (L += " *");
|
|
2093
|
+
const ee = _(Be, {
|
|
2094
|
+
title: L,
|
|
2083
2095
|
collapse: p.collapse,
|
|
2084
2096
|
hasDelete: $ !== void 0 && !C,
|
|
2085
|
-
onCollapse: (
|
|
2086
|
-
p.collapse =
|
|
2097
|
+
onCollapse: (G) => {
|
|
2098
|
+
p.collapse = G;
|
|
2087
2099
|
},
|
|
2088
|
-
onMenu: (
|
|
2089
|
-
_e.emit("propTreeMenu", { x:
|
|
2100
|
+
onMenu: (G, T) => {
|
|
2101
|
+
_e.emit("propTreeMenu", { x: G, y: T, keys: v });
|
|
2090
2102
|
},
|
|
2091
2103
|
onDelete: () => {
|
|
2092
|
-
$ === void 0 || C || (
|
|
2104
|
+
$ === void 0 || C || (m.splice($, 1), c(v.slice(0, -1), m));
|
|
2093
2105
|
}
|
|
2094
|
-
}), Se =
|
|
2106
|
+
}), Se = _(
|
|
2095
2107
|
"div",
|
|
2096
2108
|
{
|
|
2097
2109
|
style: {
|
|
@@ -2099,8 +2111,8 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2099
2111
|
}
|
|
2100
2112
|
},
|
|
2101
2113
|
(() => {
|
|
2102
|
-
const
|
|
2103
|
-
return
|
|
2114
|
+
const G = [];
|
|
2115
|
+
return f.children.forEach((T) => {
|
|
2104
2116
|
if (!Rt(p.children)) {
|
|
2105
2117
|
console.assert(!1);
|
|
2106
2118
|
return;
|
|
@@ -2110,16 +2122,16 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2110
2122
|
children: !T.ui && T.array ? [] : {}
|
|
2111
2123
|
});
|
|
2112
2124
|
const j = Le(
|
|
2113
|
-
|
|
2125
|
+
v,
|
|
2114
2126
|
T,
|
|
2115
|
-
(typeof
|
|
2127
|
+
(typeof m[f.key] != "object" && (m[f.key] = {}, c(v, m[f.key])), m[f.key]),
|
|
2116
2128
|
p.children[T.key]
|
|
2117
2129
|
);
|
|
2118
|
-
|
|
2119
|
-
}),
|
|
2130
|
+
G.push(j);
|
|
2131
|
+
}), G;
|
|
2120
2132
|
})()
|
|
2121
2133
|
);
|
|
2122
|
-
return
|
|
2134
|
+
return _(
|
|
2123
2135
|
"div",
|
|
2124
2136
|
{
|
|
2125
2137
|
style: {
|
|
@@ -2127,35 +2139,35 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2127
2139
|
}
|
|
2128
2140
|
},
|
|
2129
2141
|
(() => {
|
|
2130
|
-
const
|
|
2131
|
-
return
|
|
2142
|
+
const G = [];
|
|
2143
|
+
return G.push(ee), p.collapse || G.push(Se), G;
|
|
2132
2144
|
})()
|
|
2133
2145
|
);
|
|
2134
|
-
}, An = (
|
|
2135
|
-
if (!
|
|
2136
|
-
return console.assert(!1),
|
|
2137
|
-
if (!
|
|
2138
|
-
return console.assert(!1),
|
|
2146
|
+
}, An = (v, f, m, p, $, C) => {
|
|
2147
|
+
if (!f.ui)
|
|
2148
|
+
return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
|
|
2149
|
+
if (!f.array)
|
|
2150
|
+
return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
|
|
2139
2151
|
if (!p)
|
|
2140
|
-
return console.assert(!1),
|
|
2141
|
-
let
|
|
2142
|
-
$ !== void 0 && !C ? (
|
|
2143
|
-
let
|
|
2144
|
-
p.collapse && be(d.value,
|
|
2145
|
-
const Se =
|
|
2146
|
-
title:
|
|
2152
|
+
return console.assert(!1), _("div", "renderLeafArray branch must be valid");
|
|
2153
|
+
let L;
|
|
2154
|
+
$ !== 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 ee = n(f.name);
|
|
2156
|
+
p.collapse && be(d.value, v) && (ee += " *");
|
|
2157
|
+
const Se = _(Be, {
|
|
2158
|
+
title: ee,
|
|
2147
2159
|
collapse: p.collapse,
|
|
2148
2160
|
hasCreate: !0,
|
|
2149
2161
|
onCollapse: (T) => {
|
|
2150
2162
|
p.collapse = T;
|
|
2151
2163
|
},
|
|
2152
2164
|
onMenu: (T, j) => {
|
|
2153
|
-
_e.emit("propTreeMenu", { x: T, y: j, keys:
|
|
2165
|
+
_e.emit("propTreeMenu", { x: T, y: j, keys: v });
|
|
2154
2166
|
},
|
|
2155
2167
|
onCreate: () => {
|
|
2156
|
-
|
|
2168
|
+
L.push(N(f, !0)), c(v, L);
|
|
2157
2169
|
}
|
|
2158
|
-
}),
|
|
2170
|
+
}), G = _(
|
|
2159
2171
|
"div",
|
|
2160
2172
|
{
|
|
2161
2173
|
style: {
|
|
@@ -2164,14 +2176,14 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2164
2176
|
},
|
|
2165
2177
|
(() => {
|
|
2166
2178
|
const T = [];
|
|
2167
|
-
for (let j = 0; j <
|
|
2168
|
-
const De = Le(
|
|
2179
|
+
for (let j = 0; j < L.length; j++) {
|
|
2180
|
+
const De = Le(v, f, L, void 0, j, !1);
|
|
2169
2181
|
T.push(De);
|
|
2170
2182
|
}
|
|
2171
2183
|
return T;
|
|
2172
2184
|
})()
|
|
2173
2185
|
);
|
|
2174
|
-
return
|
|
2186
|
+
return _(
|
|
2175
2187
|
"div",
|
|
2176
2188
|
{
|
|
2177
2189
|
style: {
|
|
@@ -2180,15 +2192,15 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2180
2192
|
},
|
|
2181
2193
|
(() => {
|
|
2182
2194
|
const T = [];
|
|
2183
|
-
return T.push(Se), p.collapse || T.push(
|
|
2195
|
+
return T.push(Se), p.collapse || T.push(G), T;
|
|
2184
2196
|
})()
|
|
2185
2197
|
);
|
|
2186
|
-
}, Cn = (
|
|
2187
|
-
if (!
|
|
2188
|
-
return console.assert(!1),
|
|
2198
|
+
}, Cn = (v, f, m, p, $) => {
|
|
2199
|
+
if (!f.ui)
|
|
2200
|
+
return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
|
|
2189
2201
|
let C;
|
|
2190
|
-
return
|
|
2191
|
-
}, Pn = () =>
|
|
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 = We(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
|
+
}, Pn = () => _(
|
|
2192
2204
|
"div",
|
|
2193
2205
|
{
|
|
2194
2206
|
class: "text-body-2",
|
|
@@ -2197,25 +2209,25 @@ const Fs = /* @__PURE__ */ z({
|
|
|
2197
2209
|
}
|
|
2198
2210
|
},
|
|
2199
2211
|
(() => {
|
|
2200
|
-
const
|
|
2212
|
+
const v = [];
|
|
2201
2213
|
if (l.unique && l.config.length > 0 && l.object) {
|
|
2202
|
-
|
|
2203
|
-
const
|
|
2204
|
-
l.config.forEach((
|
|
2205
|
-
|
|
2214
|
+
a[l.unique] || (a[l.unique] = {});
|
|
2215
|
+
const f = a[l.unique];
|
|
2216
|
+
l.config.forEach((m) => {
|
|
2217
|
+
f[m.key] || (f[m.key] = {
|
|
2206
2218
|
collapse: !0,
|
|
2207
|
-
children: !
|
|
2219
|
+
children: !m.ui && m.array ? [] : {}
|
|
2208
2220
|
});
|
|
2209
|
-
const p = Le([],
|
|
2210
|
-
|
|
2221
|
+
const p = Le([], m, l.object, f[m.key]);
|
|
2222
|
+
v.push(p);
|
|
2211
2223
|
});
|
|
2212
2224
|
}
|
|
2213
|
-
return
|
|
2225
|
+
return v;
|
|
2214
2226
|
})()
|
|
2215
2227
|
);
|
|
2216
|
-
return (
|
|
2217
|
-
|
|
2218
|
-
|
|
2228
|
+
return (v, f) => (S(), H(He, null, [
|
|
2229
|
+
B(Pn),
|
|
2230
|
+
B(ls, {
|
|
2219
2231
|
config: l.config,
|
|
2220
2232
|
object: l.object,
|
|
2221
2233
|
"prop-states": d.value
|