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