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