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