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