x-prop-tree 0.5.12 → 0.5.13
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 +963 -877
- 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 It, useColor as
|
|
4
|
-
import { getPropDefault as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { provide as Me, inject as Ve, defineComponent as K, ref as R, computed as G, resolveComponent as M, openBlock as A, createBlock as F, unref as j, isRef as nt, withCtx as Y, createVNode as B, createElementBlock as k, Fragment as He, renderList as qt, createTextVNode as at, toDisplayString as re, resolveDirective as ue, withDirectives as oe, normalizeStyle as se, withModifiers as z, createElementVNode as q, createCommentVNode as I, renderSlot as Bn, h as y, mergeModels as X, useModel as le, useId as Rn, withKeys as Fn, mergeProps as kn, watch as Ce, watchEffect as Hn, reactive as Gn, onMounted as Kn, onBeforeUnmount as zn } from "vue";
|
|
2
|
+
import { useI18n as pe } from "vue-i18n";
|
|
3
|
+
import { useViewStack as It, useColor as Te, eventBus as te, useSystem as qn } from "x-essential-lib";
|
|
4
|
+
import { getPropDefault as N, parsePixelStr as In, parsePercentStr as Xn } from "x-runtime-lib";
|
|
5
|
+
import { useDisplay as Zn } from "vuetify";
|
|
6
|
+
import { state as Yn } from "x-state-lib";
|
|
7
|
+
var Xt = typeof global == "object" && global && global.Object === Object && global, Jn = typeof self == "object" && self && self.Object === Object && self, W = Xt || Jn || Function("return this")(), ae = W.Symbol, Zt = Object.prototype, Wn = Zt.hasOwnProperty, Qn = Zt.toString, Ae = ae ? ae.toStringTag : void 0;
|
|
8
|
+
function er(e) {
|
|
9
|
+
var t = Wn.call(e, Ae), n = e[Ae];
|
|
9
10
|
try {
|
|
10
|
-
e[
|
|
11
|
+
e[Ae] = void 0;
|
|
11
12
|
var r = !0;
|
|
12
13
|
} catch {
|
|
13
14
|
}
|
|
14
|
-
var l =
|
|
15
|
-
return r && (t ? e[
|
|
15
|
+
var l = Qn.call(e);
|
|
16
|
+
return r && (t ? e[Ae] = n : delete e[Ae]), l;
|
|
16
17
|
}
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
var tr = Object.prototype, nr = tr.toString;
|
|
19
|
+
function rr(e) {
|
|
20
|
+
return nr.call(e);
|
|
20
21
|
}
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
return e == null ? e === void 0 ?
|
|
22
|
+
var or = "[object Null]", lr = "[object Undefined]", _t = ae ? ae.toStringTag : void 0;
|
|
23
|
+
function Ue(e) {
|
|
24
|
+
return e == null ? e === void 0 ? lr : or : _t && _t in Object(e) ? er(e) : rr(e);
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function fe(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 ir = "[object AsyncFunction]", sr = "[object Function]", ar = "[object GeneratorFunction]", ur = "[object Proxy]";
|
|
35
|
+
function Yt(e) {
|
|
36
|
+
if (!De(e))
|
|
36
37
|
return !1;
|
|
37
|
-
var t =
|
|
38
|
-
return t ==
|
|
38
|
+
var t = Ue(e);
|
|
39
|
+
return t == sr || t == ar || t == ir || t == ur;
|
|
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 cr(e) {
|
|
46
|
+
return !!bt && bt in e;
|
|
46
47
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
48
|
+
var fr = Function.prototype, dr = fr.toString;
|
|
49
|
+
function ve(e) {
|
|
49
50
|
if (e != null) {
|
|
50
51
|
try {
|
|
51
|
-
return
|
|
52
|
+
return dr.call(e);
|
|
52
53
|
} catch {
|
|
53
54
|
}
|
|
54
55
|
try {
|
|
@@ -58,73 +59,73 @@ function fe(e) {
|
|
|
58
59
|
}
|
|
59
60
|
return "";
|
|
60
61
|
}
|
|
61
|
-
var
|
|
62
|
-
"^" +
|
|
62
|
+
var pr = /[\\^$.*+?()[\]{}|]/g, vr = /^\[object .+?Constructor\]$/, mr = Function.prototype, gr = Object.prototype, yr = mr.toString, hr = gr.hasOwnProperty, _r = RegExp(
|
|
63
|
+
"^" + yr.call(hr).replace(pr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
63
64
|
);
|
|
64
|
-
function
|
|
65
|
-
if (!
|
|
65
|
+
function br(e) {
|
|
66
|
+
if (!De(e) || cr(e))
|
|
66
67
|
return !1;
|
|
67
|
-
var t =
|
|
68
|
-
return t.test(
|
|
68
|
+
var t = Yt(e) ? _r : vr;
|
|
69
|
+
return t.test(ve(e));
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function $r(e, t) {
|
|
71
72
|
return e == null ? void 0 : e[t];
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
-
var n =
|
|
75
|
-
return
|
|
74
|
+
function me(e, t) {
|
|
75
|
+
var n = $r(e, t);
|
|
76
|
+
return br(n) ? n : void 0;
|
|
76
77
|
}
|
|
77
|
-
var
|
|
78
|
+
var rt = me(W, "WeakMap"), $t = Object.create, Tr = /* @__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 Sr(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 = me(Object, "defineProperty");
|
|
99
100
|
return e({}, "", {}), e;
|
|
100
101
|
} catch {
|
|
101
102
|
}
|
|
102
103
|
}();
|
|
103
|
-
function
|
|
104
|
+
function Ar(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 wr = 9007199254740991, Cr = /^(?:0|[1-9]\d*)$/;
|
|
110
|
+
function Pr(e, t) {
|
|
110
111
|
var n = typeof e;
|
|
111
|
-
return t = t ??
|
|
112
|
+
return t = t ?? wr, !!t && (n == "number" || n != "symbol" && Cr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
112
113
|
}
|
|
113
114
|
function Jt(e, t, n) {
|
|
114
|
-
t == "__proto__" &&
|
|
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
|
+
var Or = Object.prototype, Lr = Or.hasOwnProperty;
|
|
125
126
|
function Wt(e, t, n) {
|
|
126
127
|
var r = e[t];
|
|
127
|
-
(!(
|
|
128
|
+
(!(Lr.call(e, t) && ut(r, n)) || n === void 0 && !(t in e)) && Jt(e, t, n);
|
|
128
129
|
}
|
|
129
130
|
function qe(e, t, n, r) {
|
|
130
131
|
var l = !n;
|
|
@@ -135,61 +136,61 @@ function qe(e, t, n, r) {
|
|
|
135
136
|
}
|
|
136
137
|
return n;
|
|
137
138
|
}
|
|
138
|
-
var
|
|
139
|
+
var xr = 9007199254740991;
|
|
139
140
|
function Qt(e) {
|
|
140
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
141
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= xr;
|
|
141
142
|
}
|
|
142
143
|
function en(e) {
|
|
143
|
-
return e != null && Qt(e.length) && !
|
|
144
|
+
return e != null && Qt(e.length) && !Yt(e);
|
|
144
145
|
}
|
|
145
|
-
var
|
|
146
|
-
function
|
|
147
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
146
|
+
var Mr = Object.prototype;
|
|
147
|
+
function ct(e) {
|
|
148
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Mr;
|
|
148
149
|
return e === n;
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
+
function Vr(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 Ur = "[object Arguments]";
|
|
157
|
+
function St(e) {
|
|
158
|
+
return fe(e) && Ue(e) == Ur;
|
|
158
159
|
}
|
|
159
|
-
var tn = Object.prototype,
|
|
160
|
+
var tn = Object.prototype, Dr = tn.hasOwnProperty, jr = tn.propertyIsEnumerable, Er = St(/* @__PURE__ */ function() {
|
|
160
161
|
return arguments;
|
|
161
|
-
}()) ?
|
|
162
|
-
return
|
|
162
|
+
}()) ? St : function(e) {
|
|
163
|
+
return fe(e) && Dr.call(e, "callee") && !jr.call(e, "callee");
|
|
163
164
|
};
|
|
164
|
-
function
|
|
165
|
+
function Nr() {
|
|
165
166
|
return !1;
|
|
166
167
|
}
|
|
167
|
-
var nn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
function
|
|
171
|
-
return
|
|
168
|
+
var nn = typeof exports == "object" && exports && !exports.nodeType && exports, At = nn && typeof module == "object" && module && !module.nodeType && module, Br = At && At.exports === nn, wt = Br ? W.Buffer : void 0, Rr = wt ? wt.isBuffer : void 0, Ge = Rr || Nr, Fr = "[object Arguments]", kr = "[object Array]", Hr = "[object Boolean]", Gr = "[object Date]", Kr = "[object Error]", zr = "[object Function]", qr = "[object Map]", Ir = "[object Number]", Xr = "[object Object]", Zr = "[object RegExp]", Yr = "[object Set]", Jr = "[object String]", Wr = "[object WeakMap]", Qr = "[object ArrayBuffer]", eo = "[object DataView]", to = "[object Float32Array]", no = "[object Float64Array]", ro = "[object Int8Array]", oo = "[object Int16Array]", lo = "[object Int32Array]", io = "[object Uint8Array]", so = "[object Uint8ClampedArray]", ao = "[object Uint16Array]", uo = "[object Uint32Array]", V = {};
|
|
169
|
+
V[to] = V[no] = V[ro] = V[oo] = V[lo] = V[io] = V[so] = V[ao] = V[uo] = !0;
|
|
170
|
+
V[Fr] = V[kr] = V[Qr] = V[Hr] = V[eo] = V[Gr] = V[Kr] = V[zr] = V[qr] = V[Ir] = V[Xr] = V[Zr] = V[Yr] = V[Jr] = V[Wr] = !1;
|
|
171
|
+
function co(e) {
|
|
172
|
+
return fe(e) && Qt(e.length) && !!V[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 rn = typeof exports == "object" && exports && !exports.nodeType && exports, Pe = rn && typeof module == "object" && module && !module.nodeType && module,
|
|
179
|
+
var rn = typeof exports == "object" && exports && !exports.nodeType && exports, Pe = rn && typeof module == "object" && module && !module.nodeType && module, fo = Pe && Pe.exports === rn, Qe = fo && Xt.process, $e = 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
|
+
}(), Ct = $e && $e.isTypedArray, on = Ct ? ft(Ct) : co, po = Object.prototype, vo = po.hasOwnProperty;
|
|
185
186
|
function ln(e, t) {
|
|
186
|
-
var n =
|
|
187
|
+
var n = Oe(e), r = !n && Er(e), l = !n && !r && Ge(e), o = !n && !r && !l && on(e), i = n || r || l || o, s = i ? Vr(e.length, String) : [], a = s.length;
|
|
187
188
|
for (var u in e)
|
|
188
|
-
(t ||
|
|
189
|
+
(t || vo.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
|
+
Pr(u, a))) && s.push(u);
|
|
193
194
|
return s;
|
|
194
195
|
}
|
|
195
196
|
function sn(e, t) {
|
|
@@ -197,211 +198,211 @@ function sn(e, t) {
|
|
|
197
198
|
return e(t(n));
|
|
198
199
|
};
|
|
199
200
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
202
|
-
if (!
|
|
203
|
-
return
|
|
201
|
+
var mo = sn(Object.keys, Object), go = Object.prototype, yo = go.hasOwnProperty;
|
|
202
|
+
function ho(e) {
|
|
203
|
+
if (!ct(e))
|
|
204
|
+
return mo(e);
|
|
204
205
|
var t = [];
|
|
205
206
|
for (var n in Object(e))
|
|
206
|
-
|
|
207
|
+
yo.call(e, n) && n != "constructor" && t.push(n);
|
|
207
208
|
return t;
|
|
208
209
|
}
|
|
209
|
-
function
|
|
210
|
-
return en(e) ? ln(e) :
|
|
210
|
+
function dt(e) {
|
|
211
|
+
return en(e) ? ln(e) : ho(e);
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
+
function _o(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 bo = Object.prototype, $o = bo.hasOwnProperty;
|
|
221
|
+
function To(e) {
|
|
222
|
+
if (!De(e))
|
|
223
|
+
return _o(e);
|
|
224
|
+
var t = ct(e), n = [];
|
|
224
225
|
for (var r in e)
|
|
225
|
-
r == "constructor" && (t ||
|
|
226
|
+
r == "constructor" && (t || !$o.call(e, r)) || n.push(r);
|
|
226
227
|
return n;
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
-
return en(e) ? ln(e, !0) :
|
|
229
|
+
function pt(e) {
|
|
230
|
+
return en(e) ? ln(e, !0) : To(e);
|
|
230
231
|
}
|
|
231
|
-
var
|
|
232
|
-
function
|
|
233
|
-
this.__data__ =
|
|
232
|
+
var Le = me(Object, "create");
|
|
233
|
+
function So() {
|
|
234
|
+
this.__data__ = Le ? Le(null) : {}, this.size = 0;
|
|
234
235
|
}
|
|
235
|
-
function
|
|
236
|
+
function Ao(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 wo = "__lodash_hash_undefined__", Co = Object.prototype, Po = Co.hasOwnProperty;
|
|
241
|
+
function Oo(e) {
|
|
241
242
|
var t = this.__data__;
|
|
242
|
-
if (
|
|
243
|
+
if (Le) {
|
|
243
244
|
var n = t[e];
|
|
244
|
-
return n ===
|
|
245
|
+
return n === wo ? void 0 : n;
|
|
245
246
|
}
|
|
246
|
-
return
|
|
247
|
+
return Po.call(t, e) ? t[e] : void 0;
|
|
247
248
|
}
|
|
248
|
-
var
|
|
249
|
-
function
|
|
249
|
+
var Lo = Object.prototype, xo = Lo.hasOwnProperty;
|
|
250
|
+
function Mo(e) {
|
|
250
251
|
var t = this.__data__;
|
|
251
|
-
return
|
|
252
|
+
return Le ? t[e] !== void 0 : xo.call(t, e);
|
|
252
253
|
}
|
|
253
|
-
var
|
|
254
|
-
function
|
|
254
|
+
var Vo = "__lodash_hash_undefined__";
|
|
255
|
+
function Uo(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] = Le && t === void 0 ? Vo : t, this;
|
|
257
258
|
}
|
|
258
|
-
function
|
|
259
|
+
function de(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
|
+
de.prototype.clear = So;
|
|
267
|
+
de.prototype.delete = Ao;
|
|
268
|
+
de.prototype.get = Oo;
|
|
269
|
+
de.prototype.has = Mo;
|
|
270
|
+
de.prototype.set = Uo;
|
|
271
|
+
function Do() {
|
|
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 jo = Array.prototype, Eo = jo.splice;
|
|
281
|
+
function No(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() : Eo.call(t, n, 1), --this.size, !0;
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
+
function Bo(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 Ro(e) {
|
|
292
293
|
return Ie(this.__data__, e) > -1;
|
|
293
294
|
}
|
|
294
|
-
function
|
|
295
|
+
function Fo(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 ie(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
|
+
ie.prototype.clear = Do;
|
|
307
|
+
ie.prototype.delete = No;
|
|
308
|
+
ie.prototype.get = Bo;
|
|
309
|
+
ie.prototype.has = Ro;
|
|
310
|
+
ie.prototype.set = Fo;
|
|
311
|
+
var xe = me(W, "Map");
|
|
312
|
+
function ko() {
|
|
312
313
|
this.size = 0, this.__data__ = {
|
|
313
|
-
hash: new
|
|
314
|
-
map: new (
|
|
315
|
-
string: new
|
|
314
|
+
hash: new de(),
|
|
315
|
+
map: new (xe || ie)(),
|
|
316
|
+
string: new de()
|
|
316
317
|
};
|
|
317
318
|
}
|
|
318
|
-
function
|
|
319
|
+
function Ho(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 Ho(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function Go(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 Ko(e) {
|
|
331
332
|
return Xe(this, e).get(e);
|
|
332
333
|
}
|
|
333
|
-
function
|
|
334
|
+
function zo(e) {
|
|
334
335
|
return Xe(this, e).has(e);
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
+
function qo(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 ge(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
|
-
|
|
348
|
+
ge.prototype.clear = ko;
|
|
349
|
+
ge.prototype.delete = Go;
|
|
350
|
+
ge.prototype.get = Ko;
|
|
351
|
+
ge.prototype.has = zo;
|
|
352
|
+
ge.prototype.set = qo;
|
|
352
353
|
function an(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
358
|
var un = sn(Object.getPrototypeOf, Object);
|
|
358
|
-
function
|
|
359
|
-
this.__data__ = new
|
|
359
|
+
function Io() {
|
|
360
|
+
this.__data__ = new ie(), this.size = 0;
|
|
360
361
|
}
|
|
361
|
-
function
|
|
362
|
+
function Xo(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 Zo(e) {
|
|
366
367
|
return this.__data__.get(e);
|
|
367
368
|
}
|
|
368
|
-
function
|
|
369
|
+
function Yo(e) {
|
|
369
370
|
return this.__data__.has(e);
|
|
370
371
|
}
|
|
371
|
-
var
|
|
372
|
-
function
|
|
372
|
+
var Jo = 200;
|
|
373
|
+
function Wo(e, t) {
|
|
373
374
|
var n = this.__data__;
|
|
374
|
-
if (n instanceof
|
|
375
|
+
if (n instanceof ie) {
|
|
375
376
|
var r = n.__data__;
|
|
376
|
-
if (!
|
|
377
|
+
if (!xe || r.length < Jo - 1)
|
|
377
378
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
378
|
-
n = this.__data__ = new
|
|
379
|
+
n = this.__data__ = new ge(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 ne(e) {
|
|
384
|
+
var t = this.__data__ = new ie(e);
|
|
384
385
|
this.size = t.size;
|
|
385
386
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
function
|
|
392
|
-
return e && qe(t,
|
|
387
|
+
ne.prototype.clear = Io;
|
|
388
|
+
ne.prototype.delete = Xo;
|
|
389
|
+
ne.prototype.get = Zo;
|
|
390
|
+
ne.prototype.has = Yo;
|
|
391
|
+
ne.prototype.set = Wo;
|
|
392
|
+
function Qo(e, t) {
|
|
393
|
+
return e && qe(t, dt(t), e);
|
|
393
394
|
}
|
|
394
|
-
function
|
|
395
|
-
return e && qe(t,
|
|
395
|
+
function el(e, t) {
|
|
396
|
+
return e && qe(t, pt(t), e);
|
|
396
397
|
}
|
|
397
|
-
var cn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
398
|
-
function
|
|
398
|
+
var cn = typeof exports == "object" && exports && !exports.nodeType && exports, Pt = cn && typeof module == "object" && module && !module.nodeType && module, tl = Pt && Pt.exports === cn, Ot = tl ? W.Buffer : void 0, Lt = Ot ? Ot.allocUnsafe : void 0;
|
|
399
|
+
function nl(e, t) {
|
|
399
400
|
if (t)
|
|
400
401
|
return e.slice();
|
|
401
|
-
var n = e.length, r =
|
|
402
|
+
var n = e.length, r = Lt ? Lt(n) : new e.constructor(n);
|
|
402
403
|
return e.copy(r), r;
|
|
403
404
|
}
|
|
404
|
-
function
|
|
405
|
+
function rl(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);
|
|
@@ -411,331 +412,366 @@ function Io(e, t) {
|
|
|
411
412
|
function fn() {
|
|
412
413
|
return [];
|
|
413
414
|
}
|
|
414
|
-
var
|
|
415
|
-
return e == null ? [] : (e = Object(e),
|
|
416
|
-
return
|
|
415
|
+
var ol = Object.prototype, ll = ol.propertyIsEnumerable, xt = Object.getOwnPropertySymbols, vt = xt ? function(e) {
|
|
416
|
+
return e == null ? [] : (e = Object(e), rl(xt(e), function(t) {
|
|
417
|
+
return ll.call(e, t);
|
|
417
418
|
}));
|
|
418
419
|
} : fn;
|
|
419
|
-
function
|
|
420
|
-
return qe(e,
|
|
420
|
+
function il(e, t) {
|
|
421
|
+
return qe(e, vt(e), t);
|
|
421
422
|
}
|
|
422
|
-
var
|
|
423
|
+
var sl = Object.getOwnPropertySymbols, dn = sl ? function(e) {
|
|
423
424
|
for (var t = []; e; )
|
|
424
|
-
an(t,
|
|
425
|
+
an(t, vt(e)), e = un(e);
|
|
425
426
|
return t;
|
|
426
427
|
} : fn;
|
|
427
|
-
function
|
|
428
|
+
function al(e, t) {
|
|
428
429
|
return qe(e, dn(e), t);
|
|
429
430
|
}
|
|
430
431
|
function pn(e, t, n) {
|
|
431
432
|
var r = t(e);
|
|
432
|
-
return
|
|
433
|
+
return Oe(e) ? r : an(r, n(e));
|
|
433
434
|
}
|
|
434
|
-
function
|
|
435
|
-
return pn(e,
|
|
435
|
+
function ot(e) {
|
|
436
|
+
return pn(e, dt, vt);
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
-
return pn(e,
|
|
438
|
+
function ul(e) {
|
|
439
|
+
return pn(e, pt, dn);
|
|
439
440
|
}
|
|
440
|
-
var
|
|
441
|
-
(
|
|
442
|
-
var t =
|
|
441
|
+
var lt = me(W, "DataView"), it = me(W, "Promise"), st = me(W, "Set"), Mt = "[object Map]", cl = "[object Object]", Vt = "[object Promise]", Ut = "[object Set]", Dt = "[object WeakMap]", jt = "[object DataView]", fl = ve(lt), dl = ve(xe), pl = ve(it), vl = ve(st), ml = ve(rt), Z = Ue;
|
|
442
|
+
(lt && Z(new lt(new ArrayBuffer(1))) != jt || xe && Z(new xe()) != 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 == cl ? e.constructor : void 0, r = n ? ve(n) : "";
|
|
443
444
|
if (r)
|
|
444
445
|
switch (r) {
|
|
445
|
-
case
|
|
446
|
-
return
|
|
447
|
-
case
|
|
448
|
-
return Vt;
|
|
449
|
-
case rl:
|
|
446
|
+
case fl:
|
|
447
|
+
return jt;
|
|
448
|
+
case dl:
|
|
450
449
|
return Mt;
|
|
451
|
-
case
|
|
450
|
+
case pl:
|
|
451
|
+
return Vt;
|
|
452
|
+
case vl:
|
|
452
453
|
return Ut;
|
|
453
|
-
case
|
|
454
|
-
return
|
|
454
|
+
case ml:
|
|
455
|
+
return Dt;
|
|
455
456
|
}
|
|
456
457
|
return t;
|
|
457
458
|
});
|
|
458
|
-
var
|
|
459
|
-
function
|
|
459
|
+
var gl = Object.prototype, yl = gl.hasOwnProperty;
|
|
460
|
+
function hl(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" && yl.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 _l(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 bl = /\w*$/;
|
|
474
|
+
function $l(e) {
|
|
475
|
+
var t = new e.constructor(e.source, bl.exec(e));
|
|
475
476
|
return t.lastIndex = e.lastIndex, t;
|
|
476
477
|
}
|
|
477
|
-
var
|
|
478
|
-
function
|
|
479
|
-
return
|
|
478
|
+
var Et = ae ? ae.prototype : void 0, Nt = Et ? Et.valueOf : void 0;
|
|
479
|
+
function Tl(e) {
|
|
480
|
+
return Nt ? Object(Nt.call(e)) : {};
|
|
480
481
|
}
|
|
481
|
-
function
|
|
482
|
-
var n = t ?
|
|
482
|
+
function Sl(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 Al = "[object Boolean]", wl = "[object Date]", Cl = "[object Map]", Pl = "[object Number]", Ol = "[object RegExp]", Ll = "[object Set]", xl = "[object String]", Ml = "[object Symbol]", Vl = "[object ArrayBuffer]", Ul = "[object DataView]", Dl = "[object Float32Array]", jl = "[object Float64Array]", El = "[object Int8Array]", Nl = "[object Int16Array]", Bl = "[object Int32Array]", Rl = "[object Uint8Array]", Fl = "[object Uint8ClampedArray]", kl = "[object Uint16Array]", Hl = "[object Uint32Array]";
|
|
487
|
+
function Gl(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);
|
|
490
|
+
case Vl:
|
|
491
|
+
return mt(e);
|
|
496
492
|
case Al:
|
|
497
493
|
case wl:
|
|
498
|
-
|
|
499
|
-
case Cl:
|
|
500
|
-
case Ol:
|
|
501
|
-
case Vl:
|
|
502
|
-
case Ml:
|
|
494
|
+
return new r(+e);
|
|
503
495
|
case Ul:
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
case
|
|
496
|
+
return _l(e, n);
|
|
497
|
+
case Dl:
|
|
498
|
+
case jl:
|
|
499
|
+
case El:
|
|
500
|
+
case Nl:
|
|
501
|
+
case Bl:
|
|
502
|
+
case Rl:
|
|
503
|
+
case Fl:
|
|
504
|
+
case kl:
|
|
505
|
+
case Hl:
|
|
506
|
+
return Sl(e, n);
|
|
507
|
+
case Cl:
|
|
507
508
|
return new r();
|
|
508
|
-
case
|
|
509
|
-
case
|
|
509
|
+
case Pl:
|
|
510
|
+
case xl:
|
|
510
511
|
return new r(e);
|
|
511
|
-
case
|
|
512
|
-
return
|
|
513
|
-
case
|
|
512
|
+
case Ol:
|
|
513
|
+
return $l(e);
|
|
514
|
+
case Ll:
|
|
514
515
|
return new r();
|
|
515
|
-
case
|
|
516
|
-
return
|
|
516
|
+
case Ml:
|
|
517
|
+
return Tl(e);
|
|
517
518
|
}
|
|
518
519
|
}
|
|
519
|
-
function
|
|
520
|
-
return typeof e.constructor == "function" && !
|
|
520
|
+
function Kl(e) {
|
|
521
|
+
return typeof e.constructor == "function" && !ct(e) ? Tr(un(e)) : {};
|
|
521
522
|
}
|
|
522
|
-
var
|
|
523
|
-
function
|
|
524
|
-
return
|
|
523
|
+
var zl = "[object Map]";
|
|
524
|
+
function ql(e) {
|
|
525
|
+
return fe(e) && Z(e) == zl;
|
|
525
526
|
}
|
|
526
|
-
var
|
|
527
|
-
function
|
|
528
|
-
return
|
|
527
|
+
var Bt = $e && $e.isMap, Il = Bt ? ft(Bt) : ql, Xl = "[object Set]";
|
|
528
|
+
function Zl(e) {
|
|
529
|
+
return fe(e) && Z(e) == Xl;
|
|
529
530
|
}
|
|
530
|
-
var
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
function
|
|
534
|
-
var i, s = t &
|
|
531
|
+
var Rt = $e && $e.isSet, Yl = Rt ? ft(Rt) : Zl, Jl = 1, Wl = 2, Ql = 4, vn = "[object Arguments]", ei = "[object Array]", ti = "[object Boolean]", ni = "[object Date]", ri = "[object Error]", mn = "[object Function]", oi = "[object GeneratorFunction]", li = "[object Map]", ii = "[object Number]", gn = "[object Object]", si = "[object RegExp]", ai = "[object Set]", ui = "[object String]", ci = "[object Symbol]", fi = "[object WeakMap]", di = "[object ArrayBuffer]", pi = "[object DataView]", vi = "[object Float32Array]", mi = "[object Float64Array]", gi = "[object Int8Array]", yi = "[object Int16Array]", hi = "[object Int32Array]", _i = "[object Uint8Array]", bi = "[object Uint8ClampedArray]", $i = "[object Uint16Array]", Ti = "[object Uint32Array]", x = {};
|
|
532
|
+
x[vn] = x[ei] = x[di] = x[pi] = x[ti] = x[ni] = x[vi] = x[mi] = x[gi] = x[yi] = x[hi] = x[li] = x[ii] = x[gn] = x[si] = x[ai] = x[ui] = x[ci] = x[_i] = x[bi] = x[$i] = x[Ti] = !0;
|
|
533
|
+
x[ri] = x[mn] = x[fi] = !1;
|
|
534
|
+
function ke(e, t, n, r, l, o) {
|
|
535
|
+
var i, s = t & Jl, a = t & Wl, u = t & Ql;
|
|
535
536
|
if (i !== void 0)
|
|
536
537
|
return i;
|
|
537
|
-
if (!
|
|
538
|
+
if (!De(e))
|
|
538
539
|
return e;
|
|
539
|
-
var f =
|
|
540
|
+
var f = Oe(e);
|
|
540
541
|
if (f) {
|
|
541
|
-
if (i =
|
|
542
|
-
return
|
|
542
|
+
if (i = hl(e), !s)
|
|
543
|
+
return Sr(e, i);
|
|
543
544
|
} else {
|
|
544
|
-
var d =
|
|
545
|
-
if (
|
|
546
|
-
return
|
|
547
|
-
if (d == gn || d ==
|
|
548
|
-
if (i = a ||
|
|
549
|
-
return a ?
|
|
545
|
+
var d = Z(e), h = d == mn || d == oi;
|
|
546
|
+
if (Ge(e))
|
|
547
|
+
return nl(e, s);
|
|
548
|
+
if (d == gn || d == vn || h && !l) {
|
|
549
|
+
if (i = a || h ? {} : Kl(e), !s)
|
|
550
|
+
return a ? al(e, el(i, e)) : il(e, Qo(i, e));
|
|
550
551
|
} else {
|
|
551
|
-
if (!
|
|
552
|
+
if (!x[d])
|
|
552
553
|
return l ? e : {};
|
|
553
|
-
i =
|
|
554
|
+
i = Gl(e, d, s);
|
|
554
555
|
}
|
|
555
556
|
}
|
|
556
|
-
o || (o = new
|
|
557
|
+
o || (o = new ne());
|
|
557
558
|
var T = o.get(e);
|
|
558
559
|
if (T)
|
|
559
560
|
return T;
|
|
560
|
-
o.set(e, i),
|
|
561
|
-
i.add(
|
|
562
|
-
}) :
|
|
563
|
-
i.set(
|
|
561
|
+
o.set(e, i), Yl(e) ? e.forEach(function(p) {
|
|
562
|
+
i.add(ke(p, t, n, p, e, o));
|
|
563
|
+
}) : Il(e) && e.forEach(function(p, w) {
|
|
564
|
+
i.set(w, ke(p, t, n, w, e, o));
|
|
564
565
|
});
|
|
565
|
-
var
|
|
566
|
-
return
|
|
567
|
-
|
|
566
|
+
var C = u ? a ? ul : ot : a ? pt : dt, _ = f ? void 0 : C(e);
|
|
567
|
+
return Ar(_ || e, function(p, w) {
|
|
568
|
+
_ && (w = p, p = e[w]), Wt(i, w, ke(p, t, n, w, e, o));
|
|
568
569
|
}), i;
|
|
569
570
|
}
|
|
570
|
-
var
|
|
571
|
+
var Si = 1, Ai = 4;
|
|
571
572
|
function yn(e) {
|
|
572
|
-
return
|
|
573
|
+
return ke(e, Si | Ai);
|
|
573
574
|
}
|
|
574
|
-
var
|
|
575
|
-
function
|
|
576
|
-
return this.__data__.set(e,
|
|
575
|
+
var wi = "__lodash_hash_undefined__";
|
|
576
|
+
function Ci(e) {
|
|
577
|
+
return this.__data__.set(e, wi), this;
|
|
577
578
|
}
|
|
578
|
-
function
|
|
579
|
+
function Pi(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 ge(); ++t < n; )
|
|
584
585
|
this.add(e[t]);
|
|
585
586
|
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
function
|
|
587
|
+
ze.prototype.add = ze.prototype.push = Ci;
|
|
588
|
+
ze.prototype.has = Pi;
|
|
589
|
+
function Oi(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 Li(e, t) {
|
|
595
596
|
return e.has(t);
|
|
596
597
|
}
|
|
597
|
-
var
|
|
598
|
+
var xi = 1, Mi = 2;
|
|
598
599
|
function hn(e, t, n, r, l, o) {
|
|
599
|
-
var i = n &
|
|
600
|
+
var i = n & xi, s = e.length, a = t.length;
|
|
600
601
|
if (s != a && !(i && a > s))
|
|
601
602
|
return !1;
|
|
602
603
|
var u = o.get(e), f = o.get(t);
|
|
603
604
|
if (u && f)
|
|
604
605
|
return u == t && f == e;
|
|
605
|
-
var d = -1,
|
|
606
|
+
var d = -1, h = !0, T = n & Mi ? new ze() : void 0;
|
|
606
607
|
for (o.set(e, t), o.set(t, e); ++d < s; ) {
|
|
607
|
-
var
|
|
608
|
+
var C = e[d], _ = t[d];
|
|
608
609
|
if (r)
|
|
609
|
-
var
|
|
610
|
-
if (
|
|
611
|
-
if (
|
|
610
|
+
var p = i ? r(_, C, d, t, e, o) : r(C, _, d, e, t, o);
|
|
611
|
+
if (p !== void 0) {
|
|
612
|
+
if (p)
|
|
612
613
|
continue;
|
|
613
|
-
|
|
614
|
+
h = !1;
|
|
614
615
|
break;
|
|
615
616
|
}
|
|
616
617
|
if (T) {
|
|
617
|
-
if (!
|
|
618
|
-
if (!
|
|
618
|
+
if (!Oi(t, function(w, E) {
|
|
619
|
+
if (!Li(T, E) && (C === w || l(C, w, n, r, o)))
|
|
619
620
|
return T.push(E);
|
|
620
621
|
})) {
|
|
621
|
-
|
|
622
|
+
h = !1;
|
|
622
623
|
break;
|
|
623
624
|
}
|
|
624
|
-
} else if (!(
|
|
625
|
-
|
|
625
|
+
} else if (!(C === _ || l(C, _, n, r, o))) {
|
|
626
|
+
h = !1;
|
|
626
627
|
break;
|
|
627
628
|
}
|
|
628
629
|
}
|
|
629
|
-
return o.delete(e), o.delete(t),
|
|
630
|
+
return o.delete(e), o.delete(t), h;
|
|
630
631
|
}
|
|
631
|
-
function
|
|
632
|
+
function Vi(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 Ui(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 Di = 1, ji = 2, Ei = "[object Boolean]", Ni = "[object Date]", Bi = "[object Error]", Ri = "[object Map]", Fi = "[object Number]", ki = "[object RegExp]", Hi = "[object Set]", Gi = "[object String]", Ki = "[object Symbol]", zi = "[object ArrayBuffer]", qi = "[object DataView]", Ft = ae ? ae.prototype : void 0, et = Ft ? Ft.valueOf : void 0;
|
|
645
|
+
function Ii(e, t, n, r, l, o, i) {
|
|
645
646
|
switch (n) {
|
|
646
|
-
case
|
|
647
|
+
case qi:
|
|
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 zi:
|
|
652
|
+
return !(e.byteLength != t.byteLength || !o(new Ke(e), new Ke(t)));
|
|
653
|
+
case Ei:
|
|
654
|
+
case Ni:
|
|
655
|
+
case Fi:
|
|
656
|
+
return ut(+e, +t);
|
|
657
|
+
case Bi:
|
|
657
658
|
return e.name == t.name && e.message == t.message;
|
|
658
|
-
case
|
|
659
|
-
case
|
|
659
|
+
case ki:
|
|
660
|
+
case Gi:
|
|
660
661
|
return e == t + "";
|
|
661
|
-
case
|
|
662
|
-
var s =
|
|
663
|
-
case
|
|
664
|
-
var a = r &
|
|
665
|
-
if (s || (s =
|
|
662
|
+
case Ri:
|
|
663
|
+
var s = Vi;
|
|
664
|
+
case Hi:
|
|
665
|
+
var a = r & Di;
|
|
666
|
+
if (s || (s = Ui), 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
|
+
r |= ji, i.set(e, t);
|
|
671
672
|
var f = hn(s(e), s(t), r, l, o, i);
|
|
672
673
|
return i.delete(e), f;
|
|
673
|
-
case
|
|
674
|
-
if (
|
|
675
|
-
return
|
|
674
|
+
case Ki:
|
|
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 &
|
|
680
|
+
var Xi = 1, Zi = Object.prototype, Yi = Zi.hasOwnProperty;
|
|
681
|
+
function Ji(e, t, n, r, l, o) {
|
|
682
|
+
var i = n & Xi, s = ot(e), a = s.length, u = ot(t), f = u.length;
|
|
682
683
|
if (a != f && !i)
|
|
683
684
|
return !1;
|
|
684
685
|
for (var d = a; d--; ) {
|
|
685
|
-
var
|
|
686
|
-
if (!(i ?
|
|
686
|
+
var h = s[d];
|
|
687
|
+
if (!(i ? h in t : Yi.call(t, h)))
|
|
687
688
|
return !1;
|
|
688
689
|
}
|
|
689
|
-
var T = o.get(e),
|
|
690
|
-
if (T &&
|
|
691
|
-
return T == t &&
|
|
692
|
-
var
|
|
690
|
+
var T = o.get(e), C = o.get(t);
|
|
691
|
+
if (T && C)
|
|
692
|
+
return T == t && C == e;
|
|
693
|
+
var _ = !0;
|
|
693
694
|
o.set(e, t), o.set(t, e);
|
|
694
|
-
for (var
|
|
695
|
-
|
|
696
|
-
var
|
|
695
|
+
for (var p = i; ++d < a; ) {
|
|
696
|
+
h = s[d];
|
|
697
|
+
var w = e[h], E = t[h];
|
|
697
698
|
if (r)
|
|
698
|
-
var
|
|
699
|
-
if (!(
|
|
700
|
-
|
|
699
|
+
var L = i ? r(E, w, h, t, e, o) : r(w, E, h, e, t, o);
|
|
700
|
+
if (!(L === void 0 ? w === E || l(w, E, n, r, o) : L)) {
|
|
701
|
+
_ = !1;
|
|
701
702
|
break;
|
|
702
703
|
}
|
|
703
|
-
|
|
704
|
+
p || (p = h == "constructor");
|
|
704
705
|
}
|
|
705
|
-
if (
|
|
706
|
-
var
|
|
707
|
-
|
|
706
|
+
if (_ && !p) {
|
|
707
|
+
var P = e.constructor, $ = t.constructor;
|
|
708
|
+
P != $ && "constructor" in e && "constructor" in t && !(typeof P == "function" && P instanceof P && typeof $ == "function" && $ instanceof $) && (_ = !1);
|
|
708
709
|
}
|
|
709
|
-
return o.delete(e), o.delete(t),
|
|
710
|
-
}
|
|
711
|
-
var
|
|
712
|
-
function
|
|
713
|
-
var i =
|
|
714
|
-
a = a ==
|
|
715
|
-
var f = a ==
|
|
716
|
-
if (
|
|
717
|
-
if (!
|
|
710
|
+
return o.delete(e), o.delete(t), _;
|
|
711
|
+
}
|
|
712
|
+
var Wi = 1, kt = "[object Arguments]", Ht = "[object Array]", Be = "[object Object]", Qi = Object.prototype, Gt = Qi.hasOwnProperty;
|
|
713
|
+
function es(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 f = a == Be, d = u == Be, h = a == u;
|
|
717
|
+
if (h && Ge(e)) {
|
|
718
|
+
if (!Ge(t))
|
|
718
719
|
return !1;
|
|
719
720
|
i = !0, f = !1;
|
|
720
721
|
}
|
|
721
|
-
if (
|
|
722
|
-
return o || (o = new
|
|
723
|
-
if (!(n &
|
|
724
|
-
var T = f &&
|
|
725
|
-
if (T ||
|
|
726
|
-
var
|
|
727
|
-
return o || (o = new
|
|
722
|
+
if (h && !f)
|
|
723
|
+
return o || (o = new ne()), i || on(e) ? hn(e, t, n, r, l, o) : Ii(e, t, a, n, r, l, o);
|
|
724
|
+
if (!(n & Wi)) {
|
|
725
|
+
var T = f && Gt.call(e, "__wrapped__"), C = d && Gt.call(t, "__wrapped__");
|
|
726
|
+
if (T || C) {
|
|
727
|
+
var _ = T ? e.value() : e, p = C ? t.value() : t;
|
|
728
|
+
return o || (o = new ne()), l(_, p, n, r, o);
|
|
728
729
|
}
|
|
729
730
|
}
|
|
730
|
-
return
|
|
731
|
+
return h ? (o || (o = new ne()), Ji(e, t, n, r, l, o)) : !1;
|
|
731
732
|
}
|
|
732
733
|
function _n(e, t, n, r, l) {
|
|
733
|
-
return e === t ? !0 : e == null || t == null || !
|
|
734
|
+
return e === t ? !0 : e == null || t == null || !fe(e) && !fe(t) ? e !== e && t !== t : es(e, t, n, r, _n, l);
|
|
734
735
|
}
|
|
735
|
-
function
|
|
736
|
+
function Ze(e, t) {
|
|
736
737
|
return _n(e, t);
|
|
737
738
|
}
|
|
738
|
-
|
|
739
|
+
function ts(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;
|
|
756
|
+
}
|
|
757
|
+
function bn(e, t) {
|
|
758
|
+
return e.value.find((n) => n.id === t);
|
|
759
|
+
}
|
|
760
|
+
function ns(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
|
+
}
|
|
773
|
+
}
|
|
774
|
+
const Re = (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, rs = (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, os = [
|
|
777
813
|
["basic", "id"],
|
|
778
814
|
["basic", "name"]
|
|
779
|
-
],
|
|
815
|
+
], ls = (e) => os.find((t) => Ze(e, t)), Ye = (e, t, n, r, l, o, i) => (e = yn(e), o !== void 0 ? (e.push(o), i && e.push(t.key)) : e.push(t.key), ls(e) ? (r.change = !1, r.change) : t.ui ? t.array && o === void 0 ? as(
|
|
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
|
+
) : us(t, n, r, o, i) : t.array ? is(
|
|
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
|
+
) : ss(
|
|
796
832
|
e,
|
|
797
833
|
t,
|
|
798
834
|
n,
|
|
@@ -800,15 +836,15 @@ const Ne = (e, t) => {
|
|
|
800
836
|
l,
|
|
801
837
|
o,
|
|
802
838
|
i
|
|
803
|
-
)),
|
|
839
|
+
)), is = (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,
|
|
@@ -816,14 +852,14 @@ const Ne = (e, t) => {
|
|
|
816
852
|
});
|
|
817
853
|
const u = r.children[a];
|
|
818
854
|
t.children.forEach((f) => {
|
|
819
|
-
if (!
|
|
855
|
+
if (!gt(u.children)) {
|
|
820
856
|
console.assert(!1);
|
|
821
857
|
return;
|
|
822
858
|
}
|
|
823
859
|
u.children[f.key] = {
|
|
824
860
|
change: !1,
|
|
825
861
|
children: f.array ? [] : {}
|
|
826
|
-
},
|
|
862
|
+
}, Ye(
|
|
827
863
|
e,
|
|
828
864
|
f,
|
|
829
865
|
s[a],
|
|
@@ -834,13 +870,13 @@ const Ne = (e, t) => {
|
|
|
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
|
+
}, ss = (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
|
+
}, as = (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
|
+
}, us = (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
|
+
}, be = (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
|
+
}, $n = Symbol(), Tn = Symbol(), Sn = Symbol(), An = Symbol(), wn = Symbol();
|
|
931
|
+
function cs(e) {
|
|
932
|
+
Me($n, e);
|
|
897
933
|
}
|
|
898
|
-
function
|
|
899
|
-
return
|
|
934
|
+
function fs() {
|
|
935
|
+
return Ve($n);
|
|
900
936
|
}
|
|
901
|
-
function
|
|
902
|
-
|
|
937
|
+
function ds(e) {
|
|
938
|
+
Me(Tn, e);
|
|
903
939
|
}
|
|
904
|
-
function
|
|
905
|
-
return
|
|
940
|
+
function ps() {
|
|
941
|
+
return Ve(Tn);
|
|
906
942
|
}
|
|
907
|
-
function
|
|
908
|
-
|
|
943
|
+
function vs(e) {
|
|
944
|
+
Me(Sn, e);
|
|
909
945
|
}
|
|
910
|
-
function
|
|
911
|
-
return
|
|
946
|
+
function ms() {
|
|
947
|
+
return Ve(Sn);
|
|
912
948
|
}
|
|
913
|
-
function
|
|
914
|
-
|
|
949
|
+
function gs(e) {
|
|
950
|
+
Me(An, e);
|
|
951
|
+
}
|
|
952
|
+
function ys() {
|
|
953
|
+
return Ve(An);
|
|
915
954
|
}
|
|
916
|
-
function
|
|
917
|
-
|
|
955
|
+
function hs(e) {
|
|
956
|
+
Me(wn, e);
|
|
918
957
|
}
|
|
919
|
-
|
|
958
|
+
function Cn() {
|
|
959
|
+
return Ve(wn);
|
|
960
|
+
}
|
|
961
|
+
const _s = /* @__PURE__ */ K({
|
|
920
962
|
__name: "menu",
|
|
921
963
|
setup(e) {
|
|
922
|
-
const { t } =
|
|
923
|
-
const
|
|
924
|
-
if (!
|
|
964
|
+
const { t } = pe(), n = fs(), r = ps(), l = ms(), o = ys(), i = R(0), s = R(0), a = R([]), u = G(() => [i.value, s.value]), f = (p) => {
|
|
965
|
+
const w = () => !(a.value.length <= 0 || !be(l.value, a.value)), E = () => {
|
|
966
|
+
if (!w())
|
|
925
967
|
return;
|
|
926
|
-
const
|
|
927
|
-
if (
|
|
928
|
-
if (
|
|
929
|
-
const
|
|
930
|
-
if (!
|
|
968
|
+
const L = Re(n.value, a.value);
|
|
969
|
+
if (L)
|
|
970
|
+
if (L.ui) {
|
|
971
|
+
const P = we(r.value, a.value.slice(0, -1));
|
|
972
|
+
if (!P)
|
|
931
973
|
return;
|
|
932
|
-
|
|
933
|
-
} else if (
|
|
934
|
-
const
|
|
935
|
-
if (
|
|
974
|
+
P[a.value.at(-1)] = N(L), o(a.value, P[a.value.at(-1)]);
|
|
975
|
+
} else if (L.array) {
|
|
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 $ = we(r.value, a.value.slice(0, -1));
|
|
983
|
+
if (!$)
|
|
942
984
|
return;
|
|
943
|
-
|
|
985
|
+
$[a.value.at(-1)] = N(L), o(a.value, $[a.value.at(-1)]);
|
|
944
986
|
} else {
|
|
945
|
-
const
|
|
946
|
-
if (
|
|
987
|
+
const $ = we(r.value, a.value);
|
|
988
|
+
if (!$)
|
|
947
989
|
return;
|
|
948
|
-
|
|
949
|
-
|
|
990
|
+
L.children.forEach((J) => {
|
|
991
|
+
$[J.key] = N(L), o([...a.value, J.key], $[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
|
-
|
|
957
|
-
|
|
998
|
+
L.children.forEach(($) => {
|
|
999
|
+
P[$.key] = N(L), o([...a.value, $.key], P[$.key]);
|
|
958
1000
|
});
|
|
959
1001
|
}
|
|
960
1002
|
};
|
|
961
|
-
|
|
1003
|
+
w() && p.push({
|
|
962
1004
|
title: t("x-prop-tree.reset"),
|
|
963
1005
|
func: E
|
|
964
1006
|
});
|
|
965
|
-
}, d = (
|
|
966
|
-
const
|
|
967
|
-
const E =
|
|
968
|
-
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: E, object:
|
|
1007
|
+
}, d = (p) => {
|
|
1008
|
+
const w = () => {
|
|
1009
|
+
const E = Re(n.value, a.value), L = we(r.value, a.value);
|
|
1010
|
+
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: E, object: L }));
|
|
969
1011
|
};
|
|
970
|
-
|
|
1012
|
+
p.push({
|
|
971
1013
|
title: t("x-prop-tree.copy"),
|
|
972
|
-
func:
|
|
1014
|
+
func: w
|
|
973
1015
|
});
|
|
974
|
-
},
|
|
975
|
-
const
|
|
976
|
-
const
|
|
977
|
-
if (!
|
|
1016
|
+
}, h = (p) => {
|
|
1017
|
+
const w = () => {
|
|
1018
|
+
const L = localStorage.getItem("propTreeCopy");
|
|
1019
|
+
if (!L)
|
|
978
1020
|
return !1;
|
|
979
1021
|
try {
|
|
980
|
-
const { prop:
|
|
981
|
-
return
|
|
982
|
-
} catch (
|
|
983
|
-
console.error(
|
|
1022
|
+
const { prop: P } = JSON.parse(L), $ = Re(n.value, a.value);
|
|
1023
|
+
return rs(P, $);
|
|
1024
|
+
} catch (P) {
|
|
1025
|
+
console.error(P);
|
|
984
1026
|
}
|
|
985
1027
|
return !1;
|
|
986
1028
|
}, E = () => {
|
|
987
|
-
if (!
|
|
1029
|
+
if (!w())
|
|
988
1030
|
return;
|
|
989
|
-
const
|
|
990
|
-
if (
|
|
1031
|
+
const L = localStorage.getItem("propTreeCopy");
|
|
1032
|
+
if (L)
|
|
991
1033
|
try {
|
|
992
|
-
const { object:
|
|
993
|
-
console.log(
|
|
994
|
-
} catch (
|
|
995
|
-
console.error(
|
|
1034
|
+
const { object: P } = JSON.parse(L), $ = Re(n.value, a.value);
|
|
1035
|
+
console.log(P, $);
|
|
1036
|
+
} catch (P) {
|
|
1037
|
+
console.error(P);
|
|
996
1038
|
}
|
|
997
1039
|
};
|
|
998
|
-
|
|
1040
|
+
w() && p.push({
|
|
999
1041
|
title: t("x-prop-tree.paste"),
|
|
1000
1042
|
func: E
|
|
1001
1043
|
});
|
|
1002
|
-
}, T =
|
|
1003
|
-
const
|
|
1004
|
-
return f(
|
|
1005
|
-
}),
|
|
1006
|
-
i.value =
|
|
1007
|
-
}, { open:
|
|
1008
|
-
return (
|
|
1009
|
-
const E =
|
|
1010
|
-
return
|
|
1011
|
-
modelValue:
|
|
1012
|
-
"onUpdate:modelValue":
|
|
1044
|
+
}, T = G(() => {
|
|
1045
|
+
const p = [];
|
|
1046
|
+
return f(p), d(p), h(p), p;
|
|
1047
|
+
}), C = (p) => {
|
|
1048
|
+
i.value = p.x, s.value = p.y, a.value = p.keys;
|
|
1049
|
+
}, { open: _ } = It("propTreeMenu", C);
|
|
1050
|
+
return (p, w) => {
|
|
1051
|
+
const E = M("v-list-item-title"), L = M("v-list-item"), P = M("v-list"), $ = M("v-menu");
|
|
1052
|
+
return A(), F($, {
|
|
1053
|
+
modelValue: j(_),
|
|
1054
|
+
"onUpdate:modelValue": w[0] || (w[0] = (J) => nt(_) ? _.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
|
+
(A(!0), k(He, null, qt(T.value, (J, Je) => (A(), F(L, {
|
|
1063
|
+
key: Je,
|
|
1022
1064
|
link: "",
|
|
1023
|
-
onClick:
|
|
1065
|
+
onClick: J.func
|
|
1024
1066
|
}, {
|
|
1025
1067
|
default: Y(() => [
|
|
1026
|
-
|
|
1068
|
+
B(E, null, {
|
|
1027
1069
|
default: Y(() => [
|
|
1028
|
-
|
|
1070
|
+
at(re(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 Fe = /* @__PURE__ */
|
|
1086
|
+
var Pn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", On = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", bs = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", ye = "M19,13H5V11H19V13Z", $s = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
1087
|
+
const Fe = /* @__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 } = Te(), l = t, o = R(!1), i = G(() => ({
|
|
1057
1099
|
background: o.value ? r.value : n.value,
|
|
1058
1100
|
height: "36px",
|
|
1059
1101
|
marginBottom: "1px",
|
|
@@ -1064,46 +1106,46 @@ const Fe = /* @__PURE__ */ k({
|
|
|
1064
1106
|
l("menu", u.clientX, u.clientY);
|
|
1065
1107
|
};
|
|
1066
1108
|
return (u, f) => {
|
|
1067
|
-
const d =
|
|
1068
|
-
return
|
|
1109
|
+
const d = M("v-icon"), h = M("v-spacer"), T = ue("ripple");
|
|
1110
|
+
return oe((A(), k("div", {
|
|
1069
1111
|
class: "d-flex align-center cursor-pointer",
|
|
1070
|
-
style:
|
|
1112
|
+
style: se(i.value),
|
|
1071
1113
|
onClick: s,
|
|
1072
|
-
onContextmenu:
|
|
1073
|
-
onMouseover: f[2] || (f[2] = (
|
|
1074
|
-
onMouseout: f[3] || (f[3] = (
|
|
1114
|
+
onContextmenu: z(a, ["prevent"]),
|
|
1115
|
+
onMouseover: f[2] || (f[2] = (C) => o.value = !0),
|
|
1116
|
+
onMouseout: f[3] || (f[3] = (C) => o.value = !1)
|
|
1075
1117
|
}, [
|
|
1076
|
-
|
|
1118
|
+
B(d, {
|
|
1077
1119
|
class: "mr-1",
|
|
1078
|
-
icon: u.collapse ?
|
|
1120
|
+
icon: u.collapse ? j(On) : j(Pn)
|
|
1079
1121
|
}, null, 8, ["icon"]),
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
u.hasCreate ? (
|
|
1122
|
+
q("span", null, re(u.title), 1),
|
|
1123
|
+
B(h),
|
|
1124
|
+
u.hasCreate ? (A(), F(d, {
|
|
1083
1125
|
key: 0,
|
|
1084
1126
|
class: "mx-3",
|
|
1085
|
-
icon:
|
|
1086
|
-
onClick: f[0] || (f[0] =
|
|
1127
|
+
icon: j($s),
|
|
1128
|
+
onClick: f[0] || (f[0] = z((C) => l("create"), ["stop"]))
|
|
1087
1129
|
}, null, 8, ["icon"])) : I("", !0),
|
|
1088
|
-
u.hasDelete ? (
|
|
1130
|
+
u.hasDelete ? (A(), F(d, {
|
|
1089
1131
|
key: 1,
|
|
1090
1132
|
class: "mx-3",
|
|
1091
|
-
icon:
|
|
1092
|
-
onClick: f[1] || (f[1] =
|
|
1133
|
+
icon: j(ye),
|
|
1134
|
+
onClick: f[1] || (f[1] = z((C) => l("delete", u.index), ["stop"]))
|
|
1093
1135
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1094
1136
|
], 36)), [
|
|
1095
1137
|
[T]
|
|
1096
1138
|
]);
|
|
1097
1139
|
};
|
|
1098
1140
|
}
|
|
1099
|
-
}),
|
|
1141
|
+
}), Ts = /* @__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 } = Te(), l = t, o = R(!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 f =
|
|
1117
|
-
return
|
|
1158
|
+
const f = ue("ripple");
|
|
1159
|
+
return oe((A(), k("div", {
|
|
1118
1160
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1119
|
-
style:
|
|
1120
|
-
onContextmenu:
|
|
1161
|
+
style: se(i.value),
|
|
1162
|
+
onContextmenu: z(s, ["prevent"]),
|
|
1121
1163
|
onMouseover: u[0] || (u[0] = (d) => o.value = !0),
|
|
1122
1164
|
onMouseout: u[1] || (u[1] = (d) => o.value = !1)
|
|
1123
1165
|
}, [
|
|
1124
|
-
|
|
1166
|
+
Bn(a.$slots, "default")
|
|
1125
1167
|
], 36)), [
|
|
1126
1168
|
[f]
|
|
1127
1169
|
]);
|
|
1128
1170
|
};
|
|
1129
1171
|
}
|
|
1130
1172
|
});
|
|
1131
|
-
function
|
|
1132
|
-
const { t: r } =
|
|
1173
|
+
function Ss(e, t, n) {
|
|
1174
|
+
const { t: r } = pe();
|
|
1133
1175
|
return { renderProp: (o, i, s) => {
|
|
1134
1176
|
let a = r(i.name);
|
|
1135
|
-
return
|
|
1136
|
-
|
|
1177
|
+
return be(e.value, o) && (a += " *"), y(
|
|
1178
|
+
Ts,
|
|
1137
1179
|
{
|
|
1138
1180
|
minHeight: t.value,
|
|
1139
1181
|
onMenu: (u, f) => {
|
|
1140
|
-
|
|
1182
|
+
te.emit("propTreeMenu", { x: u, y: f, keys: o });
|
|
1141
1183
|
}
|
|
1142
1184
|
},
|
|
1143
1185
|
() => [
|
|
1144
|
-
|
|
1145
|
-
|
|
1186
|
+
y("span", { class: "ml-1", innerHTML: a }),
|
|
1187
|
+
y("div", { style: { width: n.value } }, s)
|
|
1146
1188
|
]
|
|
1147
1189
|
);
|
|
1148
1190
|
} };
|
|
1149
1191
|
}
|
|
1150
|
-
function
|
|
1192
|
+
function As(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 ws = { class: "d-flex justify-space-between align-center" }, Cs = /* @__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
1218
|
const n = le(e, "modelValue"), r = t;
|
|
1177
1219
|
return (l, o) => {
|
|
1178
|
-
const i =
|
|
1179
|
-
return
|
|
1180
|
-
|
|
1220
|
+
const i = M("v-text-field"), s = M("v-icon"), a = ue("ripple");
|
|
1221
|
+
return A(), k("div", ws, [
|
|
1222
|
+
oe(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 ? (A(), F(s, {
|
|
1196
1238
|
key: 0,
|
|
1197
1239
|
class: "mx-2",
|
|
1198
|
-
icon:
|
|
1199
|
-
onClick: o[1] || (o[1] =
|
|
1240
|
+
icon: j(ye),
|
|
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
|
+
}), he = (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
|
+
}, _e = (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 Ps(e) {
|
|
1258
|
+
return { renderUiStrInput: (n, r, l, o, i) => r.ui !== "strInput" ? (console.assert(!1), y("div", "renderUiStrInput prop ui must be strInput")) : y(Cs, {
|
|
1259
|
+
modelValue: r.static ? r.value : he(
|
|
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 || _e(
|
|
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 Os = { class: "d-flex justify-space-between align-center" }, Ls = /* @__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
1300
|
const n = le(e, "modelValue"), r = t;
|
|
1259
1301
|
return (l, o) => {
|
|
1260
|
-
const i =
|
|
1261
|
-
return
|
|
1262
|
-
|
|
1302
|
+
const i = M("v-number-input"), s = M("v-icon"), a = ue("ripple");
|
|
1303
|
+
return A(), k("div", Os, [
|
|
1304
|
+
oe(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 ? (A(), F(s, {
|
|
1283
1325
|
key: 0,
|
|
1284
1326
|
class: "mx-2",
|
|
1285
|
-
icon:
|
|
1286
|
-
onClick: o[1] || (o[1] =
|
|
1327
|
+
icon: j(ye),
|
|
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 xs(e) {
|
|
1335
|
+
return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), y("div", "renderUiNumInput prop ui must be numInput")) : y(Ls, {
|
|
1336
|
+
modelValue: he(
|
|
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
|
+
_e(
|
|
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 Ms = { class: "d-flex justify-space-between align-center" }, Vs = /* @__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
1373
|
const n = le(e, "modelValue"), r = t;
|
|
1332
1374
|
return (l, o) => {
|
|
1333
|
-
const i =
|
|
1334
|
-
return
|
|
1335
|
-
|
|
1375
|
+
const i = M("v-switch"), s = M("v-icon");
|
|
1376
|
+
return A(), k("div", Ms, [
|
|
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 ? (A(), F(s, {
|
|
1345
1387
|
key: 0,
|
|
1346
1388
|
class: "mx-2",
|
|
1347
|
-
icon:
|
|
1348
|
-
onClick: o[1] || (o[1] =
|
|
1389
|
+
icon: j(ye),
|
|
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 Us(e) {
|
|
1397
|
+
return { renderUiSwitch: (n, r, l, o, i) => r.ui !== "switch" ? (console.assert(!1), y("div", "renderUiSwitch prop ui must be switch")) : y(Vs, {
|
|
1398
|
+
modelValue: he(
|
|
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
|
+
_e(
|
|
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 Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__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
1436
|
const n = le(e, "modelValue"), r = t;
|
|
1395
1437
|
return (l, o) => {
|
|
1396
|
-
const i =
|
|
1397
|
-
return
|
|
1398
|
-
|
|
1438
|
+
const i = M("v-select"), s = M("v-icon"), a = ue("ripple");
|
|
1439
|
+
return A(), k("div", Ds, [
|
|
1440
|
+
oe(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 ? (A(), F(s, {
|
|
1415
1457
|
key: 0,
|
|
1416
1458
|
class: "mx-2",
|
|
1417
|
-
icon:
|
|
1418
|
-
onClick: o[1] || (o[1] =
|
|
1459
|
+
icon: j(ye),
|
|
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 Es(e) {
|
|
1467
|
+
const { t } = pe();
|
|
1468
|
+
return { renderUiSelect: (r, l, o, i, s) => l.ui !== "select" ? (console.assert(!1), y("div", "renderUiSelect prop ui must be select")) : y(js, {
|
|
1469
|
+
modelValue: he(
|
|
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
|
+
_e(
|
|
1437
1479
|
r,
|
|
1438
1480
|
l,
|
|
1439
1481
|
o,
|
|
@@ -1459,42 +1501,7 @@ function Ts(e) {
|
|
|
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 Ns = { class: "text-subtitle-2 ml-1" }, Bs = { class: "text-caption text-grey ml-1" }, Rs = /* @__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 } = Te(), l = e, o = t, i = R(!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 f =
|
|
1515
|
-
return
|
|
1521
|
+
const f = M("v-icon"), d = ue("ripple");
|
|
1522
|
+
return oe((A(), 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: se(s.value),
|
|
1525
|
+
onClick: u[0] || (u[0] = (h) => o("x-click", l.id)),
|
|
1526
|
+
onMouseover: u[1] || (u[1] = (h) => i.value = !0),
|
|
1527
|
+
onMouseout: u[2] || (u[2] = (h) => i.value = !1)
|
|
1521
1528
|
}, [
|
|
1522
|
-
|
|
1523
|
-
icon: l.collapse ?
|
|
1529
|
+
B(f, {
|
|
1530
|
+
icon: l.collapse ? j(On) : j(Pn),
|
|
1524
1531
|
size: "small"
|
|
1525
1532
|
}, null, 8, ["icon"]),
|
|
1526
|
-
|
|
1527
|
-
|
|
1533
|
+
q("span", Ns, re(l.title), 1),
|
|
1534
|
+
q("span", Bs, re(l.count), 1)
|
|
1528
1535
|
], 36)), [
|
|
1529
1536
|
[d]
|
|
1530
1537
|
]);
|
|
1531
1538
|
};
|
|
1532
1539
|
}
|
|
1533
|
-
}),
|
|
1540
|
+
}), Fs = { 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 } = Te(), l = e, o = t, i = R(!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 f =
|
|
1549
|
-
return
|
|
1555
|
+
const f = ue("ripple");
|
|
1556
|
+
return oe((A(), k("div", {
|
|
1550
1557
|
class: "d-flex align-center cursor-pointer",
|
|
1551
|
-
style:
|
|
1558
|
+
style: se(s.value),
|
|
1552
1559
|
onClick: u[0] || (u[0] = (d) => o("x-click", l.id)),
|
|
1553
1560
|
onMouseover: u[1] || (u[1] = (d) => i.value = !0),
|
|
1554
1561
|
onMouseout: u[2] || (u[2] = (d) => i.value = !1)
|
|
1555
1562
|
}, [
|
|
1556
|
-
|
|
1563
|
+
q("span", Fs, re(l.title), 1)
|
|
1557
1564
|
], 36)), [
|
|
1558
1565
|
[f]
|
|
1559
1566
|
]);
|
|
1560
1567
|
};
|
|
1561
1568
|
}
|
|
1562
|
-
}),
|
|
1569
|
+
}), Hs = { key: 0 }, Gs = {
|
|
1563
1570
|
key: 1,
|
|
1564
1571
|
class: "text-body-2 text-grey ml-3"
|
|
1565
|
-
},
|
|
1572
|
+
}, Ks = /* @__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 } = pe(), n = le(e, "modelValue"), r = le(e, "open"), l = Cn(), o = (s) => {
|
|
1583
|
+
const a = bn(l, s);
|
|
1584
|
+
a && ns(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) => j(l).length > 0 ? (A(), k("div", Hs, [
|
|
1589
|
+
(A(!0), k(He, null, qt(j(l), (u) => (A(), k(He, {
|
|
1583
1590
|
key: u.id
|
|
1584
1591
|
}, [
|
|
1585
|
-
u.type === 0 ? (
|
|
1592
|
+
u.type === 0 ? (A(), F(Rs, {
|
|
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 ? (A(), F(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
|
+
])) : (A(), k("div", Gs, re(j(t)("x-prop-tree.noComp")), 1));
|
|
1601
1608
|
}
|
|
1602
|
-
}),
|
|
1609
|
+
}), zs = { class: "text-subtitle-1 ml-3" }, qs = /* @__PURE__ */ K({
|
|
1603
1610
|
__name: "index",
|
|
1604
1611
|
props: {
|
|
1605
1612
|
modelValue: { required: !0 },
|
|
@@ -1607,51 +1614,109 @@ 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 = le(e, "modelValue"),
|
|
1611
|
-
|
|
1612
|
-
return
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1617
|
+
const { t } = pe(), n = Zn(), { sysBarAvail: r } = qn(), { backgroundColor1: l } = Te(), o = le(e, "modelValue"), i = Cn(), s = G(() => {
|
|
1618
|
+
let _ = "100%";
|
|
1619
|
+
return n.mdAndUp.value && (_ = "400px"), {
|
|
1620
|
+
background: l.value,
|
|
1621
|
+
width: _,
|
|
1622
|
+
height: "100%"
|
|
1623
|
+
};
|
|
1624
|
+
}), a = G(() => {
|
|
1625
|
+
let _ = 48;
|
|
1626
|
+
return r.value && (_ += 24), {
|
|
1627
|
+
position: "relative",
|
|
1628
|
+
width: "100%",
|
|
1629
|
+
height: `calc(100% - ${_}px)`
|
|
1630
|
+
};
|
|
1631
|
+
}), u = G(() => ({
|
|
1632
|
+
height: "60px"
|
|
1633
|
+
})), f = G(() => {
|
|
1634
|
+
if (!o.value)
|
|
1635
|
+
return t("x-prop-tree.notSet");
|
|
1636
|
+
const _ = bn(i, o.value);
|
|
1637
|
+
return _ ? _.name : t("x-runtime-lib.compNotAvail");
|
|
1638
|
+
}), d = `compSelectDlg@${Rn()}`, h = () => {
|
|
1639
|
+
te.emit("refreshCompList");
|
|
1640
|
+
}, { open: T } = It(d, h), C = () => {
|
|
1641
|
+
te.emit(d);
|
|
1622
1642
|
};
|
|
1623
|
-
return (
|
|
1624
|
-
const
|
|
1625
|
-
return
|
|
1626
|
-
modelValue:
|
|
1627
|
-
"onUpdate:modelValue":
|
|
1643
|
+
return (_, p) => {
|
|
1644
|
+
const w = M("v-btn"), E = M("v-sheet"), L = M("v-icon"), P = M("v-dialog");
|
|
1645
|
+
return A(), F(P, {
|
|
1646
|
+
modelValue: j(T),
|
|
1647
|
+
"onUpdate:modelValue": p[5] || (p[5] = ($) => nt(T) ? T.value = $ : null),
|
|
1648
|
+
transition: "scroll-x-reverse-transition",
|
|
1649
|
+
persistent: "",
|
|
1650
|
+
"no-click-animation": "",
|
|
1651
|
+
fullscreen: "",
|
|
1652
|
+
onKeydown: p[6] || (p[6] = Fn(z(($) => T.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1628
1653
|
}, {
|
|
1629
|
-
activator: Y((
|
|
1630
|
-
|
|
1654
|
+
activator: Y(() => [
|
|
1655
|
+
B(w, {
|
|
1631
1656
|
density: "comfortable",
|
|
1632
|
-
block: ""
|
|
1633
|
-
|
|
1657
|
+
block: "",
|
|
1658
|
+
onClick: C
|
|
1659
|
+
}, {
|
|
1634
1660
|
default: Y(() => [
|
|
1635
|
-
|
|
1661
|
+
at(re(f.value), 1)
|
|
1636
1662
|
]),
|
|
1637
|
-
_:
|
|
1638
|
-
}
|
|
1663
|
+
_: 1
|
|
1664
|
+
})
|
|
1639
1665
|
]),
|
|
1640
1666
|
default: Y(() => [
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
},
|
|
1667
|
+
q("div", {
|
|
1668
|
+
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1669
|
+
onClick: p[3] || (p[3] = z(($) => T.value = !1, ["self"])),
|
|
1670
|
+
onContextmenu: p[4] || (p[4] = z(($) => T.value = !1, ["self", "prevent"]))
|
|
1671
|
+
}, [
|
|
1672
|
+
q("div", {
|
|
1673
|
+
class: "elevation-2",
|
|
1674
|
+
style: se(s.value)
|
|
1675
|
+
}, [
|
|
1676
|
+
j(r) ? (A(), F(E, {
|
|
1677
|
+
key: 0,
|
|
1678
|
+
color: "transparent",
|
|
1679
|
+
height: 24
|
|
1680
|
+
})) : I("", !0),
|
|
1681
|
+
B(E, {
|
|
1682
|
+
class: "d-flex align-center px-3",
|
|
1683
|
+
color: "transparent",
|
|
1684
|
+
height: 48
|
|
1685
|
+
}, {
|
|
1686
|
+
default: Y(() => [
|
|
1687
|
+
B(L, {
|
|
1688
|
+
icon: j(bs),
|
|
1689
|
+
onClick: p[0] || (p[0] = ($) => T.value = !1)
|
|
1690
|
+
}, null, 8, ["icon"]),
|
|
1691
|
+
q("span", zs, re(j(t)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
1692
|
+
]),
|
|
1693
|
+
_: 1
|
|
1694
|
+
}),
|
|
1695
|
+
q("div", {
|
|
1696
|
+
class: "overflow-y-auto",
|
|
1697
|
+
style: se(a.value)
|
|
1698
|
+
}, [
|
|
1699
|
+
B(Ks, {
|
|
1700
|
+
modelValue: o.value,
|
|
1701
|
+
"onUpdate:modelValue": p[1] || (p[1] = ($) => o.value = $),
|
|
1702
|
+
open: j(T),
|
|
1703
|
+
"onUpdate:open": p[2] || (p[2] = ($) => nt(T) ? T.value = $ : null)
|
|
1704
|
+
}, null, 8, ["modelValue", "open"]),
|
|
1705
|
+
q("div", {
|
|
1706
|
+
style: se(u.value)
|
|
1707
|
+
}, null, 4)
|
|
1708
|
+
], 4)
|
|
1709
|
+
], 4)
|
|
1710
|
+
], 32)
|
|
1646
1711
|
]),
|
|
1647
1712
|
_: 1
|
|
1648
1713
|
}, 8, ["modelValue"]);
|
|
1649
1714
|
};
|
|
1650
1715
|
}
|
|
1651
1716
|
});
|
|
1652
|
-
function
|
|
1653
|
-
return { renderUiCompSelect: (n, r, l, o, i) => r.ui !== "compSelect" ? (console.assert(!1),
|
|
1654
|
-
modelValue:
|
|
1717
|
+
function Is(e) {
|
|
1718
|
+
return { renderUiCompSelect: (n, r, l, o, i) => r.ui !== "compSelect" ? (console.assert(!1), y("div", "renderUiCompSelect prop ui must be compSelect")) : y(qs, {
|
|
1719
|
+
modelValue: he(
|
|
1655
1720
|
n,
|
|
1656
1721
|
r,
|
|
1657
1722
|
l,
|
|
@@ -1660,7 +1725,7 @@ function Ds(e) {
|
|
|
1660
1725
|
i
|
|
1661
1726
|
),
|
|
1662
1727
|
"onUpdate:modelValue": (s) => {
|
|
1663
|
-
|
|
1728
|
+
_e(
|
|
1664
1729
|
n,
|
|
1665
1730
|
r,
|
|
1666
1731
|
l,
|
|
@@ -1670,72 +1735,71 @@ function Ds(e) {
|
|
|
1670
1735
|
i
|
|
1671
1736
|
);
|
|
1672
1737
|
}
|
|
1673
|
-
})
|
|
1738
|
+
}) };
|
|
1674
1739
|
}
|
|
1675
|
-
const
|
|
1740
|
+
const Xs = { class: "d-flex justify-space-between align-center" }, Zs = /* @__PURE__ */ K({
|
|
1676
1741
|
__name: "colorPicker",
|
|
1677
|
-
props: /* @__PURE__ */
|
|
1742
|
+
props: /* @__PURE__ */ X({
|
|
1678
1743
|
hasDelete: { type: Boolean, default: !1 },
|
|
1679
1744
|
readonly: { type: Boolean, default: !1 }
|
|
1680
1745
|
}, {
|
|
1681
1746
|
modelValue: {},
|
|
1682
1747
|
modelModifiers: {}
|
|
1683
1748
|
}),
|
|
1684
|
-
emits: /* @__PURE__ */
|
|
1749
|
+
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1685
1750
|
setup(e, { emit: t }) {
|
|
1686
|
-
const n = le(e, "modelValue"), r = t, l =
|
|
1687
|
-
let
|
|
1688
|
-
return e.hasDelete && (
|
|
1689
|
-
width:
|
|
1751
|
+
const n = le(e, "modelValue"), r = t, l = G(() => {
|
|
1752
|
+
let i = "100%";
|
|
1753
|
+
return e.hasDelete && (i = "calc(100% - 37px)"), {
|
|
1754
|
+
width: i
|
|
1690
1755
|
};
|
|
1691
|
-
}), o =
|
|
1692
|
-
return (
|
|
1693
|
-
const
|
|
1694
|
-
return
|
|
1695
|
-
activator: Y(({ props:
|
|
1696
|
-
|
|
1697
|
-
|
|
1756
|
+
}), o = G(() => e.readonly);
|
|
1757
|
+
return (i, s) => {
|
|
1758
|
+
const a = M("v-btn"), u = M("v-icon"), f = M("v-color-picker"), d = M("v-menu");
|
|
1759
|
+
return A(), F(d, { "close-on-content-click": !1 }, {
|
|
1760
|
+
activator: Y(({ props: h }) => [
|
|
1761
|
+
q("div", Xs, [
|
|
1762
|
+
q("div", {
|
|
1698
1763
|
class: "flex-grow-1",
|
|
1699
|
-
style:
|
|
1764
|
+
style: se(l.value)
|
|
1700
1765
|
}, [
|
|
1701
|
-
|
|
1766
|
+
B(a, kn(h, {
|
|
1702
1767
|
density: "comfortable",
|
|
1703
1768
|
color: n.value,
|
|
1704
1769
|
block: "",
|
|
1705
1770
|
disabled: o.value
|
|
1706
1771
|
}), {
|
|
1707
1772
|
default: Y(() => [
|
|
1708
|
-
|
|
1773
|
+
at(re(n.value), 1)
|
|
1709
1774
|
]),
|
|
1710
1775
|
_: 2
|
|
1711
1776
|
}, 1040, ["color", "disabled"])
|
|
1712
1777
|
], 4),
|
|
1713
|
-
|
|
1778
|
+
i.hasDelete ? (A(), F(u, {
|
|
1714
1779
|
key: 0,
|
|
1715
1780
|
class: "mx-2",
|
|
1716
|
-
icon:
|
|
1717
|
-
onClick:
|
|
1781
|
+
icon: j(ye),
|
|
1782
|
+
onClick: s[0] || (s[0] = z((T) => r("delete"), ["stop"]))
|
|
1718
1783
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1719
1784
|
])
|
|
1720
1785
|
]),
|
|
1721
1786
|
default: Y(() => [
|
|
1722
|
-
|
|
1787
|
+
B(f, {
|
|
1723
1788
|
modelValue: n.value,
|
|
1724
|
-
"onUpdate:modelValue":
|
|
1725
|
-
mode:
|
|
1726
|
-
"onUpdate:mode": a[2] || (a[2] = (T) => i.value = T),
|
|
1789
|
+
"onUpdate:modelValue": s[1] || (s[1] = (h) => n.value = h),
|
|
1790
|
+
mode: "hexa",
|
|
1727
1791
|
"show-swatches": "",
|
|
1728
1792
|
"swatches-max-height": "150px"
|
|
1729
|
-
}, null, 8, ["modelValue"
|
|
1793
|
+
}, null, 8, ["modelValue"])
|
|
1730
1794
|
]),
|
|
1731
1795
|
_: 1
|
|
1732
1796
|
});
|
|
1733
1797
|
};
|
|
1734
1798
|
}
|
|
1735
1799
|
});
|
|
1736
|
-
function
|
|
1737
|
-
return { renderUiColorPicker: (n, r, l, o, i) => r.ui !== "colorPicker" ? (console.assert(!1),
|
|
1738
|
-
modelValue:
|
|
1800
|
+
function Ys(e) {
|
|
1801
|
+
return { renderUiColorPicker: (n, r, l, o, i) => r.ui !== "colorPicker" ? (console.assert(!1), y("div", "renderUiColorPicker prop ui must be colorPicker")) : y(Zs, {
|
|
1802
|
+
modelValue: he(
|
|
1739
1803
|
n,
|
|
1740
1804
|
r,
|
|
1741
1805
|
l,
|
|
@@ -1744,7 +1808,7 @@ function Ns(e) {
|
|
|
1744
1808
|
i
|
|
1745
1809
|
),
|
|
1746
1810
|
"onUpdate:modelValue": (s) => {
|
|
1747
|
-
|
|
1811
|
+
_e(
|
|
1748
1812
|
n,
|
|
1749
1813
|
r,
|
|
1750
1814
|
l,
|
|
@@ -1761,18 +1825,18 @@ function Ns(e) {
|
|
|
1761
1825
|
readonly: r.readonly
|
|
1762
1826
|
}) };
|
|
1763
1827
|
}
|
|
1764
|
-
const
|
|
1828
|
+
const Js = { class: "d-flex justify-space-between align-center my-2" }, Ws = { class: "flex-grow-1" }, Qs = /* @__PURE__ */ K({
|
|
1765
1829
|
__name: "multiTypes",
|
|
1766
|
-
props: /* @__PURE__ */
|
|
1830
|
+
props: /* @__PURE__ */ X({
|
|
1767
1831
|
hasDelete: { type: Boolean, default: !1 },
|
|
1768
1832
|
types: {}
|
|
1769
1833
|
}, {
|
|
1770
1834
|
modelValue: { default: "" },
|
|
1771
1835
|
modelModifiers: {}
|
|
1772
1836
|
}),
|
|
1773
|
-
emits: /* @__PURE__ */
|
|
1837
|
+
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
1774
1838
|
setup(e, { emit: t }) {
|
|
1775
|
-
const { t: n } =
|
|
1839
|
+
const { t: n } = pe(), r = le(e, "modelValue"), l = t, o = R(0), i = G(() => {
|
|
1776
1840
|
const u = [];
|
|
1777
1841
|
return e.types.forEach((f, d) => {
|
|
1778
1842
|
u.push({
|
|
@@ -1782,38 +1846,38 @@ const Fs = { class: "d-flex justify-space-between align-center my-2" }, Rs = { c
|
|
|
1782
1846
|
}), u;
|
|
1783
1847
|
});
|
|
1784
1848
|
e.types.some((u, f) => u.validator(r.value) ? (o.value = f, !0) : !1);
|
|
1785
|
-
const s =
|
|
1786
|
-
|
|
1849
|
+
const s = G(() => e.types[o.value]);
|
|
1850
|
+
Ce(s, (u) => {
|
|
1787
1851
|
r.value = u.default;
|
|
1788
1852
|
});
|
|
1789
|
-
const a =
|
|
1790
|
-
return
|
|
1791
|
-
s.value.ui === "pixelInput" ? a.value =
|
|
1792
|
-
}),
|
|
1853
|
+
const a = R(0);
|
|
1854
|
+
return Hn(() => {
|
|
1855
|
+
s.value.ui === "pixelInput" ? a.value = In(r.value) : s.value.ui === "percentInput" && (a.value = Xn(r.value));
|
|
1856
|
+
}), Ce(a, (u) => {
|
|
1793
1857
|
s.value.ui === "pixelInput" ? r.value = u + "px" : s.value.ui === "percentInput" && (r.value = u + "%");
|
|
1794
1858
|
}), (u, f) => {
|
|
1795
|
-
const d =
|
|
1796
|
-
return
|
|
1797
|
-
|
|
1798
|
-
|
|
1859
|
+
const d = M("v-select"), h = M("v-number-input"), T = M("v-icon"), C = ue("ripple");
|
|
1860
|
+
return A(), k("div", Js, [
|
|
1861
|
+
q("div", Ws, [
|
|
1862
|
+
oe(B(d, {
|
|
1799
1863
|
modelValue: o.value,
|
|
1800
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
1864
|
+
"onUpdate:modelValue": f[0] || (f[0] = (_) => o.value = _),
|
|
1801
1865
|
density: "compact",
|
|
1802
1866
|
items: i.value,
|
|
1803
1867
|
"hide-details": "",
|
|
1804
1868
|
"single-line": ""
|
|
1805
1869
|
}, null, 8, ["modelValue", "items"]), [
|
|
1806
1870
|
[
|
|
1807
|
-
|
|
1871
|
+
C,
|
|
1808
1872
|
void 0,
|
|
1809
1873
|
void 0,
|
|
1810
1874
|
{ stop: !0 }
|
|
1811
1875
|
]
|
|
1812
1876
|
]),
|
|
1813
|
-
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ?
|
|
1877
|
+
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? oe((A(), F(h, {
|
|
1814
1878
|
key: 0,
|
|
1815
1879
|
modelValue: a.value,
|
|
1816
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
1880
|
+
"onUpdate:modelValue": f[1] || (f[1] = (_) => a.value = _),
|
|
1817
1881
|
density: "compact",
|
|
1818
1882
|
"control-variant": "stacked",
|
|
1819
1883
|
precision: s.value.precision,
|
|
@@ -1824,26 +1888,26 @@ const Fs = { class: "d-flex justify-space-between align-center my-2" }, Rs = { c
|
|
|
1824
1888
|
"single-line": ""
|
|
1825
1889
|
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
1826
1890
|
[
|
|
1827
|
-
|
|
1891
|
+
C,
|
|
1828
1892
|
void 0,
|
|
1829
1893
|
void 0,
|
|
1830
1894
|
{ stop: !0 }
|
|
1831
1895
|
]
|
|
1832
1896
|
]) : I("", !0)
|
|
1833
1897
|
]),
|
|
1834
|
-
u.hasDelete ? (
|
|
1898
|
+
u.hasDelete ? (A(), F(T, {
|
|
1835
1899
|
key: 0,
|
|
1836
1900
|
class: "mx-2",
|
|
1837
|
-
icon:
|
|
1838
|
-
onClick: f[2] || (f[2] =
|
|
1901
|
+
icon: j(ye),
|
|
1902
|
+
onClick: f[2] || (f[2] = z((_) => l("delete"), ["stop"]))
|
|
1839
1903
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1840
1904
|
]);
|
|
1841
1905
|
};
|
|
1842
1906
|
}
|
|
1843
1907
|
});
|
|
1844
|
-
function
|
|
1845
|
-
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1),
|
|
1846
|
-
modelValue:
|
|
1908
|
+
function ea(e) {
|
|
1909
|
+
return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), y("div", "renderUiMultiTypes prop ui must be multiTypes")) : y(Qs, {
|
|
1910
|
+
modelValue: he(
|
|
1847
1911
|
n,
|
|
1848
1912
|
r,
|
|
1849
1913
|
l,
|
|
@@ -1852,7 +1916,7 @@ function Hs(e) {
|
|
|
1852
1916
|
i
|
|
1853
1917
|
),
|
|
1854
1918
|
"onUpdate:modelValue": (s) => {
|
|
1855
|
-
|
|
1919
|
+
_e(
|
|
1856
1920
|
n,
|
|
1857
1921
|
r,
|
|
1858
1922
|
l,
|
|
@@ -1869,7 +1933,7 @@ function Hs(e) {
|
|
|
1869
1933
|
types: r.types
|
|
1870
1934
|
}) };
|
|
1871
1935
|
}
|
|
1872
|
-
const
|
|
1936
|
+
const ta = /* @__PURE__ */ K({
|
|
1873
1937
|
__name: "index",
|
|
1874
1938
|
props: {
|
|
1875
1939
|
unique: {},
|
|
@@ -1878,64 +1942,86 @@ const Gs = /* @__PURE__ */ k({
|
|
|
1878
1942
|
},
|
|
1879
1943
|
emits: ["change"],
|
|
1880
1944
|
setup(e, { emit: t }) {
|
|
1881
|
-
const { t: n } =
|
|
1882
|
-
|
|
1945
|
+
const { t: n } = pe(), { backgroundColor1: r } = Te(), l = e, o = t, i = R("20px"), s = R("56px"), a = R("200px"), u = Gn({}), f = R({}), d = (m, c) => {
|
|
1946
|
+
zt(f, l.config, l.object), o("change", m, c);
|
|
1883
1947
|
};
|
|
1884
|
-
|
|
1948
|
+
Ce(
|
|
1885
1949
|
[() => l.config, () => l.object],
|
|
1886
1950
|
() => {
|
|
1887
|
-
|
|
1888
|
-
o("change",
|
|
1951
|
+
zt(f, l.config, l.object, (m, c) => {
|
|
1952
|
+
o("change", m, c);
|
|
1889
1953
|
});
|
|
1890
1954
|
},
|
|
1891
1955
|
{ immediate: !0 }
|
|
1892
1956
|
);
|
|
1893
|
-
const
|
|
1894
|
-
|
|
1957
|
+
const h = R(l.config);
|
|
1958
|
+
cs(h), Ce(
|
|
1895
1959
|
() => l.config,
|
|
1896
1960
|
() => {
|
|
1897
|
-
|
|
1961
|
+
h.value = l.config;
|
|
1898
1962
|
}
|
|
1899
1963
|
);
|
|
1900
|
-
const T =
|
|
1901
|
-
|
|
1964
|
+
const T = R(l.object);
|
|
1965
|
+
ds(T), Ce(
|
|
1902
1966
|
() => l.object,
|
|
1903
1967
|
() => {
|
|
1904
1968
|
T.value = l.object;
|
|
1905
1969
|
}
|
|
1906
|
-
),
|
|
1907
|
-
const
|
|
1908
|
-
|
|
1970
|
+
), vs(f), gs(d);
|
|
1971
|
+
const C = R([]);
|
|
1972
|
+
hs(C);
|
|
1973
|
+
const _ = () => {
|
|
1974
|
+
const { compGroups: m, comps: c } = Yn.app.activeApp, g = [];
|
|
1975
|
+
m.forEach(({ id: v, name: b, position: O }) => {
|
|
1976
|
+
const U = C.value.find((Q) => Q.id === v);
|
|
1977
|
+
g.push({
|
|
1978
|
+
id: v,
|
|
1979
|
+
type: 0,
|
|
1980
|
+
name: b,
|
|
1981
|
+
position: O,
|
|
1982
|
+
collapse: (U == null ? void 0 : U.collapse) ?? !0
|
|
1983
|
+
});
|
|
1984
|
+
}), c.forEach(({ id: v, groupid: b, name: O, position: U }) => {
|
|
1985
|
+
g.push({ id: v, type: 1, name: O, position: U, group: b });
|
|
1986
|
+
}), ts(g, !0), C.value = g;
|
|
1987
|
+
};
|
|
1988
|
+
Kn(() => {
|
|
1989
|
+
te.on("refreshCompList", _);
|
|
1990
|
+
}), zn(() => {
|
|
1991
|
+
te.off("refreshCompList", _);
|
|
1992
|
+
});
|
|
1993
|
+
const { renderProp: p } = Ss(f, s, a), { renderUiDummy: w } = As(d), { renderUiStrInput: E } = Ps(d), { renderUiNumInput: L } = xs(d), { renderUiSwitch: P } = Us(d), { renderUiSelect: $ } = Es(d), { renderUiColorPicker: J } = Ys(d), { renderUiMultiTypes: Je } = ea(d), { renderUiCompSelect: Ln } = Is(d), je = (m, c, g, v, b, O) => (m = yn(m), b !== void 0 ? (m.push(b), O && m.push(c.key)) : m.push(c.key), c.ui ? c.array && b === void 0 ? Vn(m, c, g, v, b, O) : Un(m, c, g, b, O) : c.array ? xn(m, c, g, v, b, O) : Mn(
|
|
1994
|
+
m,
|
|
1909
1995
|
c,
|
|
1996
|
+
g,
|
|
1910
1997
|
v,
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
)), Cn = (p, c, v, m, _, x) => {
|
|
1998
|
+
b,
|
|
1999
|
+
O
|
|
2000
|
+
)), xn = (m, c, g, v, b, O) => {
|
|
1915
2001
|
if (c.ui)
|
|
1916
|
-
return console.assert(!1),
|
|
2002
|
+
return console.assert(!1), y("div", "renderBranchArray prop ui must be invalid");
|
|
1917
2003
|
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:
|
|
2004
|
+
return console.assert(!1), y("div", "renderBranchArray prop array must be valid");
|
|
2005
|
+
if (!v)
|
|
2006
|
+
return console.assert(!1), y("div", "renderBranchArray branch must be valid");
|
|
2007
|
+
let U;
|
|
2008
|
+
b !== void 0 && !O ? (g[b] instanceof Array || (g[b] = N(c), d(m, g[c.key])), U = g[b]) : (g[c.key] instanceof Array || (g[c.key] = N(c), d(m, g[c.key])), U = g[c.key]);
|
|
2009
|
+
let Q = n(c.name);
|
|
2010
|
+
v.collapse && be(f.value, m) && (Q += " *");
|
|
2011
|
+
const Se = y(Fe, {
|
|
2012
|
+
title: Q,
|
|
2013
|
+
collapse: v.collapse,
|
|
1928
2014
|
hasCreate: !0,
|
|
1929
|
-
onCollapse: (
|
|
1930
|
-
|
|
2015
|
+
onCollapse: (S) => {
|
|
2016
|
+
v.collapse = S;
|
|
1931
2017
|
},
|
|
1932
|
-
onMenu: (
|
|
1933
|
-
|
|
2018
|
+
onMenu: (S, D) => {
|
|
2019
|
+
te.emit("propTreeMenu", { x: S, y: D, keys: m });
|
|
1934
2020
|
},
|
|
1935
2021
|
onCreate: () => {
|
|
1936
|
-
|
|
2022
|
+
U.push({}), d(m, U);
|
|
1937
2023
|
}
|
|
1938
|
-
}),
|
|
2024
|
+
}), H = y(
|
|
1939
2025
|
"div",
|
|
1940
2026
|
{
|
|
1941
2027
|
style: {
|
|
@@ -1943,44 +2029,44 @@ const Gs = /* @__PURE__ */ k({
|
|
|
1943
2029
|
}
|
|
1944
2030
|
},
|
|
1945
2031
|
(() => {
|
|
1946
|
-
const
|
|
1947
|
-
for (let
|
|
1948
|
-
if (!
|
|
2032
|
+
const S = [];
|
|
2033
|
+
for (let D = 0; D < U.length; D++) {
|
|
2034
|
+
if (!tt(v.children)) {
|
|
1949
2035
|
console.assert(!1);
|
|
1950
2036
|
break;
|
|
1951
2037
|
}
|
|
1952
|
-
|
|
2038
|
+
v.children[D] || v.children.push({
|
|
1953
2039
|
collapse: !0,
|
|
1954
2040
|
children: {}
|
|
1955
2041
|
});
|
|
1956
|
-
const
|
|
1957
|
-
let
|
|
1958
|
-
|
|
1959
|
-
const
|
|
1960
|
-
title:
|
|
1961
|
-
collapse:
|
|
2042
|
+
const Ee = [...m, D], Ne = v.children[D];
|
|
2043
|
+
let ht = n("x-prop-tree.entry", { index: D });
|
|
2044
|
+
v.children[D].collapse && be(f.value, Ee) && (ht += " *");
|
|
2045
|
+
const jn = y(Fe, {
|
|
2046
|
+
title: ht,
|
|
2047
|
+
collapse: v.children[D].collapse,
|
|
1962
2048
|
hasDelete: !0,
|
|
1963
|
-
index:
|
|
1964
|
-
onCollapse: (
|
|
1965
|
-
if (!
|
|
2049
|
+
index: D,
|
|
2050
|
+
onCollapse: (ee) => {
|
|
2051
|
+
if (!tt(v.children)) {
|
|
1966
2052
|
console.assert(!1);
|
|
1967
2053
|
return;
|
|
1968
2054
|
}
|
|
1969
|
-
|
|
2055
|
+
v.children[D].collapse = ee;
|
|
1970
2056
|
},
|
|
1971
|
-
onMenu: (
|
|
1972
|
-
|
|
2057
|
+
onMenu: (ee, ce) => {
|
|
2058
|
+
te.emit("propTreeMenu", { x: ee, y: ce, keys: Ee });
|
|
1973
2059
|
},
|
|
1974
|
-
onDelete: (
|
|
1975
|
-
if (!
|
|
2060
|
+
onDelete: (ee) => {
|
|
2061
|
+
if (!tt(v.children)) {
|
|
1976
2062
|
console.assert(!1);
|
|
1977
2063
|
return;
|
|
1978
2064
|
}
|
|
1979
|
-
|
|
2065
|
+
v.children.splice(ee, 1), U.splice(ee, 1), d(m, U);
|
|
1980
2066
|
}
|
|
1981
2067
|
});
|
|
1982
|
-
|
|
1983
|
-
const
|
|
2068
|
+
S.push(jn);
|
|
2069
|
+
const En = y(
|
|
1984
2070
|
"div",
|
|
1985
2071
|
{
|
|
1986
2072
|
style: {
|
|
@@ -1988,34 +2074,34 @@ const Gs = /* @__PURE__ */ k({
|
|
|
1988
2074
|
}
|
|
1989
2075
|
},
|
|
1990
2076
|
(() => {
|
|
1991
|
-
const
|
|
1992
|
-
return c.children.forEach((
|
|
1993
|
-
if (!
|
|
2077
|
+
const ee = [];
|
|
2078
|
+
return c.children.forEach((ce) => {
|
|
2079
|
+
if (!Kt(Ne.children)) {
|
|
1994
2080
|
console.assert(!1);
|
|
1995
2081
|
return;
|
|
1996
2082
|
}
|
|
1997
|
-
|
|
2083
|
+
Ne.children[ce.key] || (Ne.children[ce.key] = {
|
|
1998
2084
|
collapse: !0,
|
|
1999
|
-
children:
|
|
2085
|
+
children: ce.array ? [] : {}
|
|
2000
2086
|
});
|
|
2001
|
-
const
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2087
|
+
const Nn = je(
|
|
2088
|
+
m,
|
|
2089
|
+
ce,
|
|
2090
|
+
U[D],
|
|
2091
|
+
Ne.children[ce.key],
|
|
2092
|
+
D,
|
|
2007
2093
|
!0
|
|
2008
2094
|
);
|
|
2009
|
-
|
|
2010
|
-
}),
|
|
2095
|
+
ee.push(Nn);
|
|
2096
|
+
}), ee;
|
|
2011
2097
|
})()
|
|
2012
2098
|
);
|
|
2013
|
-
|
|
2099
|
+
v.children[D].collapse || S.push(En);
|
|
2014
2100
|
}
|
|
2015
|
-
return
|
|
2101
|
+
return S;
|
|
2016
2102
|
})()
|
|
2017
2103
|
);
|
|
2018
|
-
return
|
|
2104
|
+
return y(
|
|
2019
2105
|
"div",
|
|
2020
2106
|
{
|
|
2021
2107
|
style: {
|
|
@@ -2023,33 +2109,33 @@ const Gs = /* @__PURE__ */ k({
|
|
|
2023
2109
|
}
|
|
2024
2110
|
},
|
|
2025
2111
|
(() => {
|
|
2026
|
-
const
|
|
2027
|
-
return
|
|
2112
|
+
const S = [];
|
|
2113
|
+
return S.push(Se), v.collapse || S.push(H), S;
|
|
2028
2114
|
})()
|
|
2029
2115
|
);
|
|
2030
|
-
},
|
|
2116
|
+
}, Mn = (m, c, g, v, b, O) => {
|
|
2031
2117
|
if (c.ui)
|
|
2032
|
-
return console.assert(!1),
|
|
2118
|
+
return console.assert(!1), y("div", "renderBranchScalar prop ui must be invalid");
|
|
2033
2119
|
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
|
-
|
|
2120
|
+
return console.assert(!1), y("div", "renderBranchScalar prop array must be invalid");
|
|
2121
|
+
if (!v)
|
|
2122
|
+
return console.assert(!1), y("div", "renderBranchScalar branch must be valid");
|
|
2123
|
+
let U = n(c.name);
|
|
2124
|
+
v.collapse && be(f.value, m) && (U += " *");
|
|
2125
|
+
const Q = y(Fe, {
|
|
2126
|
+
title: U,
|
|
2127
|
+
collapse: v.collapse,
|
|
2128
|
+
hasDelete: b !== void 0 && !O,
|
|
2129
|
+
onCollapse: (H) => {
|
|
2130
|
+
v.collapse = H;
|
|
2045
2131
|
},
|
|
2046
|
-
onMenu: (
|
|
2047
|
-
|
|
2132
|
+
onMenu: (H, S) => {
|
|
2133
|
+
te.emit("propTreeMenu", { x: H, y: S, keys: m });
|
|
2048
2134
|
},
|
|
2049
2135
|
onDelete: () => {
|
|
2050
|
-
|
|
2136
|
+
b === void 0 || O || (g.splice(b, 1), d(m.slice(0, -1), g));
|
|
2051
2137
|
}
|
|
2052
|
-
}),
|
|
2138
|
+
}), Se = y(
|
|
2053
2139
|
"div",
|
|
2054
2140
|
{
|
|
2055
2141
|
style: {
|
|
@@ -2057,27 +2143,27 @@ const Gs = /* @__PURE__ */ k({
|
|
|
2057
2143
|
}
|
|
2058
2144
|
},
|
|
2059
2145
|
(() => {
|
|
2060
|
-
const
|
|
2061
|
-
return c.children.forEach((
|
|
2062
|
-
if (!
|
|
2146
|
+
const H = [];
|
|
2147
|
+
return c.children.forEach((S) => {
|
|
2148
|
+
if (!Kt(v.children)) {
|
|
2063
2149
|
console.assert(!1);
|
|
2064
2150
|
return;
|
|
2065
2151
|
}
|
|
2066
|
-
|
|
2152
|
+
v.children[S.key] || (v.children[S.key] = {
|
|
2067
2153
|
collapse: !0,
|
|
2068
|
-
children: !
|
|
2154
|
+
children: !S.ui && S.array ? [] : {}
|
|
2069
2155
|
});
|
|
2070
|
-
const
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
(typeof
|
|
2074
|
-
|
|
2156
|
+
const D = je(
|
|
2157
|
+
m,
|
|
2158
|
+
S,
|
|
2159
|
+
(typeof g[c.key] != "object" && (g[c.key] = {}, d(m, g[c.key])), g[c.key]),
|
|
2160
|
+
v.children[S.key]
|
|
2075
2161
|
);
|
|
2076
|
-
|
|
2077
|
-
}),
|
|
2162
|
+
H.push(D);
|
|
2163
|
+
}), H;
|
|
2078
2164
|
})()
|
|
2079
2165
|
);
|
|
2080
|
-
return
|
|
2166
|
+
return y(
|
|
2081
2167
|
"div",
|
|
2082
2168
|
{
|
|
2083
2169
|
style: {
|
|
@@ -2085,35 +2171,35 @@ const Gs = /* @__PURE__ */ k({
|
|
|
2085
2171
|
}
|
|
2086
2172
|
},
|
|
2087
2173
|
(() => {
|
|
2088
|
-
const
|
|
2089
|
-
return
|
|
2174
|
+
const H = [];
|
|
2175
|
+
return H.push(Q), v.collapse || H.push(Se), H;
|
|
2090
2176
|
})()
|
|
2091
2177
|
);
|
|
2092
|
-
}, Vn = (
|
|
2178
|
+
}, Vn = (m, c, g, v, b, O) => {
|
|
2093
2179
|
if (!c.ui)
|
|
2094
|
-
return console.assert(!1),
|
|
2180
|
+
return console.assert(!1), y("div", "renderLeafArray prop ui must be valid");
|
|
2095
2181
|
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:
|
|
2182
|
+
return console.assert(!1), y("div", "renderLeafArray prop array must be valid");
|
|
2183
|
+
if (!v)
|
|
2184
|
+
return console.assert(!1), y("div", "renderLeafArray branch must be valid");
|
|
2185
|
+
let U;
|
|
2186
|
+
b !== void 0 && !O ? (g[b] instanceof Array || (g[b] = N(c), d(m, g[b])), U = g[b]) : (g[c.key] instanceof Array || (g[c.key] = N(c), d(m, g[c.key])), U = g[c.key]);
|
|
2187
|
+
let Q = n(c.name);
|
|
2188
|
+
v.collapse && be(f.value, m) && (Q += " *");
|
|
2189
|
+
const Se = y(Fe, {
|
|
2190
|
+
title: Q,
|
|
2191
|
+
collapse: v.collapse,
|
|
2106
2192
|
hasCreate: !0,
|
|
2107
|
-
onCollapse: (
|
|
2108
|
-
|
|
2193
|
+
onCollapse: (S) => {
|
|
2194
|
+
v.collapse = S;
|
|
2109
2195
|
},
|
|
2110
|
-
onMenu: (
|
|
2111
|
-
|
|
2196
|
+
onMenu: (S, D) => {
|
|
2197
|
+
te.emit("propTreeMenu", { x: S, y: D, keys: m });
|
|
2112
2198
|
},
|
|
2113
2199
|
onCreate: () => {
|
|
2114
|
-
|
|
2200
|
+
U.push(N(c, !0)), d(m, U);
|
|
2115
2201
|
}
|
|
2116
|
-
}),
|
|
2202
|
+
}), H = y(
|
|
2117
2203
|
"div",
|
|
2118
2204
|
{
|
|
2119
2205
|
style: {
|
|
@@ -2121,15 +2207,15 @@ const Gs = /* @__PURE__ */ k({
|
|
|
2121
2207
|
}
|
|
2122
2208
|
},
|
|
2123
2209
|
(() => {
|
|
2124
|
-
const
|
|
2125
|
-
for (let
|
|
2126
|
-
const
|
|
2127
|
-
|
|
2210
|
+
const S = [];
|
|
2211
|
+
for (let D = 0; D < U.length; D++) {
|
|
2212
|
+
const Ee = je(m, c, U, void 0, D, !1);
|
|
2213
|
+
S.push(Ee);
|
|
2128
2214
|
}
|
|
2129
|
-
return
|
|
2215
|
+
return S;
|
|
2130
2216
|
})()
|
|
2131
2217
|
);
|
|
2132
|
-
return
|
|
2218
|
+
return y(
|
|
2133
2219
|
"div",
|
|
2134
2220
|
{
|
|
2135
2221
|
style: {
|
|
@@ -2137,16 +2223,16 @@ const Gs = /* @__PURE__ */ k({
|
|
|
2137
2223
|
}
|
|
2138
2224
|
},
|
|
2139
2225
|
(() => {
|
|
2140
|
-
const
|
|
2141
|
-
return
|
|
2226
|
+
const S = [];
|
|
2227
|
+
return S.push(Se), v.collapse || S.push(H), S;
|
|
2142
2228
|
})()
|
|
2143
2229
|
);
|
|
2144
|
-
},
|
|
2230
|
+
}, Un = (m, c, g, v, b) => {
|
|
2145
2231
|
if (!c.ui)
|
|
2146
|
-
return console.assert(!1),
|
|
2147
|
-
let
|
|
2148
|
-
return c.ui === "dummy" ?
|
|
2149
|
-
},
|
|
2232
|
+
return console.assert(!1), y("div", "renderLeafScalar prop ui must be valid");
|
|
2233
|
+
let O;
|
|
2234
|
+
return c.ui === "dummy" ? O = w(m, c, g, v, b) : c.ui === "strInput" ? O = E(m, c, g, v, b) : c.ui === "numInput" ? O = L(m, c, g, v, b) : c.ui === "switch" ? O = P(m, c, g, v, b) : c.ui === "select" ? O = $(m, c, g, v, b) : c.ui === "colorPicker" ? O = J(m, c, g, v, b) : c.ui === "multiTypes" ? O = Je(m, c, g, v, b) : c.ui === "compSelect" ? O = Ln(m, c, g, v, b) : console.assert(!1, "renderLeafScalar not implemented"), O ? p(m, c, O) : y("div");
|
|
2235
|
+
}, Dn = () => y(
|
|
2150
2236
|
"div",
|
|
2151
2237
|
{
|
|
2152
2238
|
class: "text-body-2",
|
|
@@ -2155,34 +2241,34 @@ const Gs = /* @__PURE__ */ k({
|
|
|
2155
2241
|
}
|
|
2156
2242
|
},
|
|
2157
2243
|
(() => {
|
|
2158
|
-
const
|
|
2244
|
+
const m = [];
|
|
2159
2245
|
if (l.unique && l.config.length > 0 && l.object) {
|
|
2160
2246
|
u[l.unique] || (u[l.unique] = {});
|
|
2161
2247
|
const c = u[l.unique];
|
|
2162
|
-
l.config.forEach((
|
|
2163
|
-
c[
|
|
2248
|
+
l.config.forEach((g) => {
|
|
2249
|
+
c[g.key] || (c[g.key] = {
|
|
2164
2250
|
collapse: !0,
|
|
2165
|
-
children: !
|
|
2251
|
+
children: !g.ui && g.array ? [] : {}
|
|
2166
2252
|
});
|
|
2167
|
-
const
|
|
2168
|
-
|
|
2253
|
+
const v = je([], g, l.object, c[g.key]);
|
|
2254
|
+
m.push(v);
|
|
2169
2255
|
});
|
|
2170
2256
|
}
|
|
2171
|
-
return
|
|
2257
|
+
return m;
|
|
2172
2258
|
})()
|
|
2173
2259
|
);
|
|
2174
|
-
return (
|
|
2175
|
-
|
|
2176
|
-
|
|
2260
|
+
return (m, c) => (A(), k(He, null, [
|
|
2261
|
+
B(Dn),
|
|
2262
|
+
B(_s, {
|
|
2177
2263
|
config: l.config,
|
|
2178
2264
|
object: l.object,
|
|
2179
2265
|
"prop-states": f.value
|
|
2180
2266
|
}, null, 8, ["config", "object", "prop-states"])
|
|
2181
2267
|
], 64));
|
|
2182
2268
|
}
|
|
2183
|
-
}),
|
|
2184
|
-
e.component("XPropTree",
|
|
2185
|
-
},
|
|
2269
|
+
}), na = (e) => {
|
|
2270
|
+
e.component("XPropTree", ta);
|
|
2271
|
+
}, ra = (e, t, n) => {
|
|
2186
2272
|
const r = e[t];
|
|
2187
2273
|
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((l, o) => {
|
|
2188
2274
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -2195,11 +2281,11 @@ const Gs = /* @__PURE__ */ k({
|
|
|
2195
2281
|
);
|
|
2196
2282
|
});
|
|
2197
2283
|
};
|
|
2198
|
-
async function
|
|
2199
|
-
return (await
|
|
2284
|
+
async function ca(e) {
|
|
2285
|
+
return (await ra(/* @__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
2286
|
}
|
|
2201
|
-
const
|
|
2287
|
+
const fa = { install: na };
|
|
2202
2288
|
export {
|
|
2203
|
-
|
|
2204
|
-
|
|
2289
|
+
fa as default,
|
|
2290
|
+
ca as loadLocaleMessagePropTree
|
|
2205
2291
|
};
|