x-prop-tree 0.5.8 → 0.5.10
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/composables/common.d.ts +4 -0
- package/dist/components/propTree/composables/uiColorPicker.d.ts +7 -0
- package/dist/components/propTree/composables/uiCompSelect.d.ts +7 -0
- package/dist/components/propTree/composables/uiDummy.d.ts +5 -0
- package/dist/components/propTree/composables/uiMultiTypes.d.ts +7 -0
- package/dist/components/propTree/composables/uiNumInput.d.ts +7 -0
- package/dist/components/propTree/composables/uiProp.d.ts +8 -0
- package/dist/components/propTree/composables/uiSelect.d.ts +7 -0
- package/dist/components/propTree/composables/uiStrInput.d.ts +7 -0
- package/dist/components/propTree/composables/uiSwitch.d.ts +7 -0
- package/dist/components/propTree/utils/propState.d.ts +3 -1
- package/dist/{i18n-en-g17k76yy.js → i18n-en-eyioipy9.js} +1 -1
- package/dist/{i18n-zhHans-f1nv26or.js → i18n-zhHans-mtvnapj8.js} +1 -1
- package/dist/index.js +992 -944
- package/package.json +2 -2
- package/dist/components/propTree/utils/index.d.ts +0 -2
- /package/dist/components/propTree/{entry.vue.d.ts → components/common/entry.vue.d.ts} +0 -0
- /package/dist/components/propTree/{menu.vue.d.ts → components/common/menu.vue.d.ts} +0 -0
- /package/dist/components/propTree/{title.vue.d.ts → components/common/title.vue.d.ts} +0 -0
- /package/dist/components/propTree/{values → components/values}/colorPicker.vue.d.ts +0 -0
- /package/dist/components/propTree/{values → components/values}/compSelect.vue.d.ts +0 -0
- /package/dist/components/propTree/{values → components/values}/multiTypes.vue.d.ts +0 -0
- /package/dist/components/propTree/{values → components/values}/numInput.vue.d.ts +0 -0
- /package/dist/components/propTree/{values → components/values}/select.vue.d.ts +0 -0
- /package/dist/components/propTree/{values → components/values}/strInput.vue.d.ts +0 -0
- /package/dist/components/propTree/{values → components/values}/switch.vue.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import {
|
|
4
|
-
import { getPropDefault as
|
|
5
|
-
var Ht = typeof global == "object" && global && global.Object === Object && global, Pn = typeof self == "object" && self && self.Object === Object && self,
|
|
6
|
-
function
|
|
7
|
-
var t = On.call(e,
|
|
1
|
+
import { defineComponent as j, ref as L, computed as Y, resolveComponent as P, openBlock as O, createBlock as x, unref as F, isRef as xt, withCtx as I, createVNode as M, createElementBlock as W, Fragment as Nt, renderList as Tn, createTextVNode as Ze, toDisplayString as Me, resolveDirective as fe, withDirectives as ne, normalizeStyle as We, withModifiers as G, createElementVNode as Ue, createCommentVNode as Z, renderSlot as $n, h as y, mergeModels as B, useModel as de, mergeProps as Ft, watch as ze, watchEffect as bn, reactive as An } from "vue";
|
|
2
|
+
import { useI18n as Ae } from "vue-i18n";
|
|
3
|
+
import { useViewStack as Bt, useColor as Je, eventBus as Rt } from "x-essential-lib";
|
|
4
|
+
import { getPropDefault as E, parsePixelStr as wn, parsePercentStr as Sn } from "x-runtime-lib";
|
|
5
|
+
var Ht = typeof global == "object" && global && global.Object === Object && global, Pn = typeof self == "object" && self && self.Object === Object && self, z = Ht || Pn || Function("return this")(), k = z.Symbol, jt = Object.prototype, On = jt.hasOwnProperty, Cn = jt.toString, ye = k ? k.toStringTag : void 0;
|
|
6
|
+
function Un(e) {
|
|
7
|
+
var t = On.call(e, ye), n = e[ye];
|
|
8
8
|
try {
|
|
9
|
-
e[
|
|
9
|
+
e[ye] = void 0;
|
|
10
10
|
var r = !0;
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
|
-
var
|
|
14
|
-
return r && (t ? e[
|
|
13
|
+
var l = Cn.call(e);
|
|
14
|
+
return r && (t ? e[ye] = n : delete e[ye]), l;
|
|
15
15
|
}
|
|
16
|
-
var
|
|
17
|
-
function
|
|
16
|
+
var Vn = Object.prototype, Dn = Vn.toString;
|
|
17
|
+
function En(e) {
|
|
18
18
|
return Dn.call(e);
|
|
19
19
|
}
|
|
20
|
-
var Mn = "[object Null]",
|
|
21
|
-
function
|
|
22
|
-
return e == null ? e === void 0 ?
|
|
20
|
+
var Mn = "[object Null]", Ln = "[object Undefined]", ot = k ? k.toStringTag : void 0;
|
|
21
|
+
function we(e) {
|
|
22
|
+
return e == null ? e === void 0 ? Ln : Mn : ot && ot in Object(e) ? Un(e) : En(e);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function re(e) {
|
|
25
25
|
return e != null && typeof e == "object";
|
|
26
26
|
}
|
|
27
|
-
var
|
|
28
|
-
function
|
|
27
|
+
var Te = Array.isArray;
|
|
28
|
+
function Se(e) {
|
|
29
29
|
var t = typeof e;
|
|
30
30
|
return e != null && (t == "object" || t == "function");
|
|
31
31
|
}
|
|
32
32
|
var xn = "[object AsyncFunction]", Nn = "[object Function]", Fn = "[object GeneratorFunction]", Bn = "[object Proxy]";
|
|
33
33
|
function Gt(e) {
|
|
34
|
-
if (
|
|
34
|
+
if (!Se(e))
|
|
35
35
|
return !1;
|
|
36
|
-
var t =
|
|
36
|
+
var t = we(e);
|
|
37
37
|
return t == Nn || t == Fn || t == xn || t == Bn;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
40
|
-
var e = /[^.]+$/.exec(
|
|
39
|
+
var Re = z["__core-js_shared__"], ut = function() {
|
|
40
|
+
var e = /[^.]+$/.exec(Re && Re.keys && Re.keys.IE_PROTO || "");
|
|
41
41
|
return e ? "Symbol(src)_1." + e : "";
|
|
42
42
|
}();
|
|
43
43
|
function Rn(e) {
|
|
44
44
|
return !!ut && ut in e;
|
|
45
45
|
}
|
|
46
46
|
var Hn = Function.prototype, jn = Hn.toString;
|
|
47
|
-
function
|
|
47
|
+
function le(e) {
|
|
48
48
|
if (e != null) {
|
|
49
49
|
try {
|
|
50
50
|
return jn.call(e);
|
|
@@ -57,27 +57,27 @@ function ne(e) {
|
|
|
57
57
|
}
|
|
58
58
|
return "";
|
|
59
59
|
}
|
|
60
|
-
var Gn = /[\\^$.*+?()[\]{}|]/g, zn = /^\[object .+?Constructor\]$/, qn = Function.prototype, Kn = Object.prototype,
|
|
61
|
-
"^" +
|
|
60
|
+
var Gn = /[\\^$.*+?()[\]{}|]/g, zn = /^\[object .+?Constructor\]$/, qn = Function.prototype, Kn = Object.prototype, In = qn.toString, Xn = Kn.hasOwnProperty, Yn = RegExp(
|
|
61
|
+
"^" + In.call(Xn).replace(Gn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
62
62
|
);
|
|
63
|
-
function
|
|
64
|
-
if (
|
|
63
|
+
function Zn(e) {
|
|
64
|
+
if (!Se(e) || Rn(e))
|
|
65
65
|
return !1;
|
|
66
|
-
var t = Gt(e) ?
|
|
67
|
-
return t.test(
|
|
66
|
+
var t = Gt(e) ? Yn : zn;
|
|
67
|
+
return t.test(le(e));
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Wn(e, t) {
|
|
70
70
|
return e == null ? void 0 : e[t];
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var n =
|
|
74
|
-
return
|
|
72
|
+
function ae(e, t) {
|
|
73
|
+
var n = Wn(e, t);
|
|
74
|
+
return Zn(n) ? n : void 0;
|
|
75
75
|
}
|
|
76
|
-
var
|
|
76
|
+
var qe = ae(z, "WeakMap"), ct = Object.create, Jn = /* @__PURE__ */ function() {
|
|
77
77
|
function e() {
|
|
78
78
|
}
|
|
79
79
|
return function(t) {
|
|
80
|
-
if (
|
|
80
|
+
if (!Se(t))
|
|
81
81
|
return {};
|
|
82
82
|
if (ct)
|
|
83
83
|
return ct(t);
|
|
@@ -94,7 +94,7 @@ function Qn(e, t) {
|
|
|
94
94
|
}
|
|
95
95
|
var ft = function() {
|
|
96
96
|
try {
|
|
97
|
-
var e =
|
|
97
|
+
var e = ae(Object, "defineProperty");
|
|
98
98
|
return e({}, "", {}), e;
|
|
99
99
|
} catch {
|
|
100
100
|
}
|
|
@@ -117,20 +117,20 @@ function zt(e, t, n) {
|
|
|
117
117
|
writable: !0
|
|
118
118
|
}) : e[t] = n;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Qe(e, t) {
|
|
121
121
|
return e === t || e !== e && t !== t;
|
|
122
122
|
}
|
|
123
123
|
var rr = Object.prototype, ir = rr.hasOwnProperty;
|
|
124
124
|
function qt(e, t, n) {
|
|
125
125
|
var r = e[t];
|
|
126
|
-
(!(ir.call(e, t) &&
|
|
126
|
+
(!(ir.call(e, t) && Qe(r, n)) || n === void 0 && !(t in e)) && zt(e, t, n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
var
|
|
128
|
+
function Le(e, t, n, r) {
|
|
129
|
+
var l = !n;
|
|
130
130
|
n || (n = {});
|
|
131
|
-
for (var
|
|
132
|
-
var
|
|
133
|
-
|
|
131
|
+
for (var i = -1, a = t.length; ++i < a; ) {
|
|
132
|
+
var s = t[i], o = void 0;
|
|
133
|
+
o === void 0 && (o = e[s]), l ? zt(n, s, o) : qt(n, s, o);
|
|
134
134
|
}
|
|
135
135
|
return n;
|
|
136
136
|
}
|
|
@@ -138,58 +138,58 @@ var lr = 9007199254740991;
|
|
|
138
138
|
function Kt(e) {
|
|
139
139
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= lr;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function It(e) {
|
|
142
142
|
return e != null && Kt(e.length) && !Gt(e);
|
|
143
143
|
}
|
|
144
144
|
var ar = Object.prototype;
|
|
145
|
-
function
|
|
145
|
+
function ke(e) {
|
|
146
146
|
var t = e && e.constructor, n = typeof t == "function" && t.prototype || ar;
|
|
147
147
|
return e === n;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function sr(e, t) {
|
|
150
150
|
for (var n = -1, r = Array(e); ++n < e; )
|
|
151
151
|
r[n] = t(n);
|
|
152
152
|
return r;
|
|
153
153
|
}
|
|
154
|
-
var
|
|
154
|
+
var or = "[object Arguments]";
|
|
155
155
|
function dt(e) {
|
|
156
|
-
return
|
|
156
|
+
return re(e) && we(e) == or;
|
|
157
157
|
}
|
|
158
|
-
var
|
|
158
|
+
var Xt = Object.prototype, ur = Xt.hasOwnProperty, cr = Xt.propertyIsEnumerable, fr = dt(/* @__PURE__ */ function() {
|
|
159
159
|
return arguments;
|
|
160
160
|
}()) ? dt : function(e) {
|
|
161
|
-
return
|
|
161
|
+
return re(e) && ur.call(e, "callee") && !cr.call(e, "callee");
|
|
162
162
|
};
|
|
163
163
|
function dr() {
|
|
164
164
|
return !1;
|
|
165
165
|
}
|
|
166
|
-
var
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, pt = Yt && typeof module == "object" && module && !module.nodeType && module, pr = pt && pt.exports === Yt, vt = pr ? z.Buffer : void 0, vr = vt ? vt.isBuffer : void 0, Ve = vr || dr, mr = "[object Arguments]", gr = "[object Array]", yr = "[object Boolean]", _r = "[object Date]", hr = "[object Error]", Tr = "[object Function]", $r = "[object Map]", br = "[object Number]", Ar = "[object Object]", wr = "[object RegExp]", Sr = "[object Set]", Pr = "[object String]", Or = "[object WeakMap]", Cr = "[object ArrayBuffer]", Ur = "[object DataView]", Vr = "[object Float32Array]", Dr = "[object Float64Array]", Er = "[object Int8Array]", Mr = "[object Int16Array]", Lr = "[object Int32Array]", xr = "[object Uint8Array]", Nr = "[object Uint8ClampedArray]", Fr = "[object Uint16Array]", Br = "[object Uint32Array]", A = {};
|
|
167
|
+
A[Vr] = A[Dr] = A[Er] = A[Mr] = A[Lr] = A[xr] = A[Nr] = A[Fr] = A[Br] = !0;
|
|
168
|
+
A[mr] = A[gr] = A[Cr] = A[yr] = A[Ur] = A[_r] = A[hr] = A[Tr] = A[$r] = A[br] = A[Ar] = A[wr] = A[Sr] = A[Pr] = A[Or] = !1;
|
|
169
169
|
function Rr(e) {
|
|
170
|
-
return
|
|
170
|
+
return re(e) && Kt(e.length) && !!A[we(e)];
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function et(e) {
|
|
173
173
|
return function(t) {
|
|
174
174
|
return e(t);
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
var
|
|
177
|
+
var Zt = typeof exports == "object" && exports && !exports.nodeType && exports, he = Zt && typeof module == "object" && module && !module.nodeType && module, Hr = he && he.exports === Zt, He = Hr && Ht.process, ce = function() {
|
|
178
178
|
try {
|
|
179
|
-
var e =
|
|
180
|
-
return e ||
|
|
179
|
+
var e = he && he.require && he.require("util").types;
|
|
180
|
+
return e || He && He.binding && He.binding("util");
|
|
181
181
|
} catch {
|
|
182
182
|
}
|
|
183
|
-
}(), mt = ce && ce.isTypedArray,
|
|
183
|
+
}(), mt = ce && ce.isTypedArray, Wt = mt ? et(mt) : Rr, jr = Object.prototype, Gr = jr.hasOwnProperty;
|
|
184
184
|
function Jt(e, t) {
|
|
185
|
-
var n =
|
|
186
|
-
for (var
|
|
187
|
-
(t || Gr.call(e,
|
|
188
|
-
(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
nr(
|
|
192
|
-
return
|
|
185
|
+
var n = Te(e), r = !n && fr(e), l = !n && !r && Ve(e), i = !n && !r && !l && Wt(e), a = n || r || l || i, s = a ? sr(e.length, String) : [], o = s.length;
|
|
186
|
+
for (var u in e)
|
|
187
|
+
(t || Gr.call(e, u)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
188
|
+
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
189
|
+
l && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
190
|
+
i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
191
|
+
nr(u, o))) && s.push(u);
|
|
192
|
+
return s;
|
|
193
193
|
}
|
|
194
194
|
function Qt(e, t) {
|
|
195
195
|
return function(n) {
|
|
@@ -197,39 +197,39 @@ function Qt(e, t) {
|
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
var zr = Qt(Object.keys, Object), qr = Object.prototype, Kr = qr.hasOwnProperty;
|
|
200
|
-
function
|
|
201
|
-
if (!
|
|
200
|
+
function Ir(e) {
|
|
201
|
+
if (!ke(e))
|
|
202
202
|
return zr(e);
|
|
203
203
|
var t = [];
|
|
204
204
|
for (var n in Object(e))
|
|
205
205
|
Kr.call(e, n) && n != "constructor" && t.push(n);
|
|
206
206
|
return t;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
208
|
+
function tt(e) {
|
|
209
|
+
return It(e) ? Jt(e) : Ir(e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Xr(e) {
|
|
212
212
|
var t = [];
|
|
213
213
|
if (e != null)
|
|
214
214
|
for (var n in Object(e))
|
|
215
215
|
t.push(n);
|
|
216
216
|
return t;
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
function
|
|
220
|
-
if (
|
|
221
|
-
return
|
|
222
|
-
var t =
|
|
218
|
+
var Yr = Object.prototype, Zr = Yr.hasOwnProperty;
|
|
219
|
+
function Wr(e) {
|
|
220
|
+
if (!Se(e))
|
|
221
|
+
return Xr(e);
|
|
222
|
+
var t = ke(e), n = [];
|
|
223
223
|
for (var r in e)
|
|
224
|
-
r == "constructor" && (t || !
|
|
224
|
+
r == "constructor" && (t || !Zr.call(e, r)) || n.push(r);
|
|
225
225
|
return n;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return
|
|
227
|
+
function nt(e) {
|
|
228
|
+
return It(e) ? Jt(e, !0) : Wr(e);
|
|
229
229
|
}
|
|
230
|
-
var
|
|
230
|
+
var $e = ae(Object, "create");
|
|
231
231
|
function Jr() {
|
|
232
|
-
this.__data__ =
|
|
232
|
+
this.__data__ = $e ? $e(null) : {}, this.size = 0;
|
|
233
233
|
}
|
|
234
234
|
function Qr(e) {
|
|
235
235
|
var t = this.has(e) && delete this.__data__[e];
|
|
@@ -238,7 +238,7 @@ function Qr(e) {
|
|
|
238
238
|
var kr = "__lodash_hash_undefined__", ei = Object.prototype, ti = ei.hasOwnProperty;
|
|
239
239
|
function ni(e) {
|
|
240
240
|
var t = this.__data__;
|
|
241
|
-
if (
|
|
241
|
+
if ($e) {
|
|
242
242
|
var n = t[e];
|
|
243
243
|
return n === kr ? void 0 : n;
|
|
244
244
|
}
|
|
@@ -247,115 +247,115 @@ function ni(e) {
|
|
|
247
247
|
var ri = Object.prototype, ii = ri.hasOwnProperty;
|
|
248
248
|
function li(e) {
|
|
249
249
|
var t = this.__data__;
|
|
250
|
-
return
|
|
250
|
+
return $e ? t[e] !== void 0 : ii.call(t, e);
|
|
251
251
|
}
|
|
252
252
|
var ai = "__lodash_hash_undefined__";
|
|
253
|
-
function
|
|
253
|
+
function si(e, t) {
|
|
254
254
|
var n = this.__data__;
|
|
255
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
255
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = $e && t === void 0 ? ai : t, this;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function ie(e) {
|
|
258
258
|
var t = -1, n = e == null ? 0 : e.length;
|
|
259
259
|
for (this.clear(); ++t < n; ) {
|
|
260
260
|
var r = e[t];
|
|
261
261
|
this.set(r[0], r[1]);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
function
|
|
264
|
+
ie.prototype.clear = Jr;
|
|
265
|
+
ie.prototype.delete = Qr;
|
|
266
|
+
ie.prototype.get = ni;
|
|
267
|
+
ie.prototype.has = li;
|
|
268
|
+
ie.prototype.set = si;
|
|
269
|
+
function oi() {
|
|
270
270
|
this.__data__ = [], this.size = 0;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function xe(e, t) {
|
|
273
273
|
for (var n = e.length; n--; )
|
|
274
|
-
if (
|
|
274
|
+
if (Qe(e[n][0], t))
|
|
275
275
|
return n;
|
|
276
276
|
return -1;
|
|
277
277
|
}
|
|
278
278
|
var ui = Array.prototype, ci = ui.splice;
|
|
279
279
|
function fi(e) {
|
|
280
|
-
var t = this.__data__, n =
|
|
280
|
+
var t = this.__data__, n = xe(t, e);
|
|
281
281
|
if (n < 0)
|
|
282
282
|
return !1;
|
|
283
283
|
var r = t.length - 1;
|
|
284
284
|
return n == r ? t.pop() : ci.call(t, n, 1), --this.size, !0;
|
|
285
285
|
}
|
|
286
286
|
function di(e) {
|
|
287
|
-
var t = this.__data__, n =
|
|
287
|
+
var t = this.__data__, n = xe(t, e);
|
|
288
288
|
return n < 0 ? void 0 : t[n][1];
|
|
289
289
|
}
|
|
290
290
|
function pi(e) {
|
|
291
|
-
return
|
|
291
|
+
return xe(this.__data__, e) > -1;
|
|
292
292
|
}
|
|
293
293
|
function vi(e, t) {
|
|
294
|
-
var n = this.__data__, r =
|
|
294
|
+
var n = this.__data__, r = xe(n, e);
|
|
295
295
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function J(e) {
|
|
298
298
|
var t = -1, n = e == null ? 0 : e.length;
|
|
299
299
|
for (this.clear(); ++t < n; ) {
|
|
300
300
|
var r = e[t];
|
|
301
301
|
this.set(r[0], r[1]);
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
var
|
|
304
|
+
J.prototype.clear = oi;
|
|
305
|
+
J.prototype.delete = fi;
|
|
306
|
+
J.prototype.get = di;
|
|
307
|
+
J.prototype.has = pi;
|
|
308
|
+
J.prototype.set = vi;
|
|
309
|
+
var be = ae(z, "Map");
|
|
310
310
|
function mi() {
|
|
311
311
|
this.size = 0, this.__data__ = {
|
|
312
|
-
hash: new
|
|
313
|
-
map: new (
|
|
314
|
-
string: new
|
|
312
|
+
hash: new ie(),
|
|
313
|
+
map: new (be || J)(),
|
|
314
|
+
string: new ie()
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
function gi(e) {
|
|
318
318
|
var t = typeof e;
|
|
319
319
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Ne(e, t) {
|
|
322
322
|
var n = e.__data__;
|
|
323
323
|
return gi(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
324
324
|
}
|
|
325
325
|
function yi(e) {
|
|
326
|
-
var t =
|
|
326
|
+
var t = Ne(this, e).delete(e);
|
|
327
327
|
return this.size -= t ? 1 : 0, t;
|
|
328
328
|
}
|
|
329
329
|
function _i(e) {
|
|
330
|
-
return
|
|
330
|
+
return Ne(this, e).get(e);
|
|
331
331
|
}
|
|
332
332
|
function hi(e) {
|
|
333
|
-
return
|
|
333
|
+
return Ne(this, e).has(e);
|
|
334
334
|
}
|
|
335
335
|
function Ti(e, t) {
|
|
336
|
-
var n =
|
|
336
|
+
var n = Ne(this, e), r = n.size;
|
|
337
337
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function se(e) {
|
|
340
340
|
var t = -1, n = e == null ? 0 : e.length;
|
|
341
341
|
for (this.clear(); ++t < n; ) {
|
|
342
342
|
var r = e[t];
|
|
343
343
|
this.set(r[0], r[1]);
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
346
|
+
se.prototype.clear = mi;
|
|
347
|
+
se.prototype.delete = yi;
|
|
348
|
+
se.prototype.get = _i;
|
|
349
|
+
se.prototype.has = hi;
|
|
350
|
+
se.prototype.set = Ti;
|
|
351
351
|
function kt(e, t) {
|
|
352
|
-
for (var n = -1, r = t.length,
|
|
353
|
-
e[
|
|
352
|
+
for (var n = -1, r = t.length, l = e.length; ++n < r; )
|
|
353
|
+
e[l + n] = t[n];
|
|
354
354
|
return e;
|
|
355
355
|
}
|
|
356
356
|
var en = Qt(Object.getPrototypeOf, Object);
|
|
357
357
|
function $i() {
|
|
358
|
-
this.__data__ = new
|
|
358
|
+
this.__data__ = new J(), this.size = 0;
|
|
359
359
|
}
|
|
360
360
|
function bi(e) {
|
|
361
361
|
var t = this.__data__, n = t.delete(e);
|
|
@@ -370,16 +370,16 @@ function wi(e) {
|
|
|
370
370
|
var Si = 200;
|
|
371
371
|
function Pi(e, t) {
|
|
372
372
|
var n = this.__data__;
|
|
373
|
-
if (n instanceof
|
|
373
|
+
if (n instanceof J) {
|
|
374
374
|
var r = n.__data__;
|
|
375
|
-
if (!
|
|
375
|
+
if (!be || r.length < Si - 1)
|
|
376
376
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
377
|
-
n = this.__data__ = new
|
|
377
|
+
n = this.__data__ = new se(r);
|
|
378
378
|
}
|
|
379
379
|
return n.set(e, t), this.size = n.size, this;
|
|
380
380
|
}
|
|
381
381
|
function X(e) {
|
|
382
|
-
var t = this.__data__ = new
|
|
382
|
+
var t = this.__data__ = new J(e);
|
|
383
383
|
this.size = t.size;
|
|
384
384
|
}
|
|
385
385
|
X.prototype.clear = $i;
|
|
@@ -388,57 +388,57 @@ X.prototype.get = Ai;
|
|
|
388
388
|
X.prototype.has = wi;
|
|
389
389
|
X.prototype.set = Pi;
|
|
390
390
|
function Oi(e, t) {
|
|
391
|
-
return e &&
|
|
391
|
+
return e && Le(t, tt(t), e);
|
|
392
392
|
}
|
|
393
393
|
function Ci(e, t) {
|
|
394
|
-
return e &&
|
|
394
|
+
return e && Le(t, nt(t), e);
|
|
395
395
|
}
|
|
396
|
-
var tn = typeof exports == "object" && exports && !exports.nodeType && exports, gt = tn && typeof module == "object" && module && !module.nodeType && module,
|
|
397
|
-
function
|
|
396
|
+
var tn = typeof exports == "object" && exports && !exports.nodeType && exports, gt = tn && typeof module == "object" && module && !module.nodeType && module, Ui = gt && gt.exports === tn, yt = Ui ? z.Buffer : void 0, _t = yt ? yt.allocUnsafe : void 0;
|
|
397
|
+
function Vi(e, t) {
|
|
398
398
|
if (t)
|
|
399
399
|
return e.slice();
|
|
400
400
|
var n = e.length, r = _t ? _t(n) : new e.constructor(n);
|
|
401
401
|
return e.copy(r), r;
|
|
402
402
|
}
|
|
403
403
|
function Di(e, t) {
|
|
404
|
-
for (var n = -1, r = e == null ? 0 : e.length,
|
|
405
|
-
var
|
|
406
|
-
t(
|
|
404
|
+
for (var n = -1, r = e == null ? 0 : e.length, l = 0, i = []; ++n < r; ) {
|
|
405
|
+
var a = e[n];
|
|
406
|
+
t(a, n, e) && (i[l++] = a);
|
|
407
407
|
}
|
|
408
|
-
return
|
|
408
|
+
return i;
|
|
409
409
|
}
|
|
410
410
|
function nn() {
|
|
411
411
|
return [];
|
|
412
412
|
}
|
|
413
|
-
var
|
|
413
|
+
var Ei = Object.prototype, Mi = Ei.propertyIsEnumerable, ht = Object.getOwnPropertySymbols, rt = ht ? function(e) {
|
|
414
414
|
return e == null ? [] : (e = Object(e), Di(ht(e), function(t) {
|
|
415
415
|
return Mi.call(e, t);
|
|
416
416
|
}));
|
|
417
417
|
} : nn;
|
|
418
|
-
function
|
|
419
|
-
return
|
|
418
|
+
function Li(e, t) {
|
|
419
|
+
return Le(e, rt(e), t);
|
|
420
420
|
}
|
|
421
421
|
var xi = Object.getOwnPropertySymbols, rn = xi ? function(e) {
|
|
422
422
|
for (var t = []; e; )
|
|
423
|
-
kt(t,
|
|
423
|
+
kt(t, rt(e)), e = en(e);
|
|
424
424
|
return t;
|
|
425
425
|
} : nn;
|
|
426
426
|
function Ni(e, t) {
|
|
427
|
-
return
|
|
427
|
+
return Le(e, rn(e), t);
|
|
428
428
|
}
|
|
429
429
|
function ln(e, t, n) {
|
|
430
430
|
var r = t(e);
|
|
431
|
-
return
|
|
431
|
+
return Te(e) ? r : kt(r, n(e));
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
return ln(e,
|
|
433
|
+
function Ke(e) {
|
|
434
|
+
return ln(e, tt, rt);
|
|
435
435
|
}
|
|
436
436
|
function Fi(e) {
|
|
437
|
-
return ln(e,
|
|
437
|
+
return ln(e, nt, rn);
|
|
438
438
|
}
|
|
439
|
-
var
|
|
440
|
-
(
|
|
441
|
-
var t =
|
|
439
|
+
var Ie = ae(z, "DataView"), Xe = ae(z, "Promise"), Ye = ae(z, "Set"), Tt = "[object Map]", Bi = "[object Object]", $t = "[object Promise]", bt = "[object Set]", At = "[object WeakMap]", wt = "[object DataView]", Ri = le(Ie), Hi = le(be), ji = le(Xe), Gi = le(Ye), zi = le(qe), H = we;
|
|
440
|
+
(Ie && H(new Ie(new ArrayBuffer(1))) != wt || be && H(new be()) != Tt || Xe && H(Xe.resolve()) != $t || Ye && H(new Ye()) != bt || qe && H(new qe()) != At) && (H = function(e) {
|
|
441
|
+
var t = we(e), n = t == Bi ? e.constructor : void 0, r = n ? le(n) : "";
|
|
442
442
|
if (r)
|
|
443
443
|
switch (r) {
|
|
444
444
|
case Ri:
|
|
@@ -455,44 +455,44 @@ var Ye = re(G, "DataView"), Ze = re(G, "Promise"), We = re(G, "Set"), Tt = "[obj
|
|
|
455
455
|
return t;
|
|
456
456
|
});
|
|
457
457
|
var qi = Object.prototype, Ki = qi.hasOwnProperty;
|
|
458
|
-
function
|
|
458
|
+
function Ii(e) {
|
|
459
459
|
var t = e.length, n = new e.constructor(t);
|
|
460
460
|
return t && typeof e[0] == "string" && Ki.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
461
461
|
}
|
|
462
|
-
var
|
|
463
|
-
function
|
|
462
|
+
var De = z.Uint8Array;
|
|
463
|
+
function it(e) {
|
|
464
464
|
var t = new e.constructor(e.byteLength);
|
|
465
|
-
return new
|
|
465
|
+
return new De(t).set(new De(e)), t;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
var n = t ?
|
|
467
|
+
function Xi(e, t) {
|
|
468
|
+
var n = t ? it(e.buffer) : e.buffer;
|
|
469
469
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
function
|
|
473
|
-
var t = new e.constructor(e.source,
|
|
471
|
+
var Yi = /\w*$/;
|
|
472
|
+
function Zi(e) {
|
|
473
|
+
var t = new e.constructor(e.source, Yi.exec(e));
|
|
474
474
|
return t.lastIndex = e.lastIndex, t;
|
|
475
475
|
}
|
|
476
|
-
var St =
|
|
477
|
-
function
|
|
476
|
+
var St = k ? k.prototype : void 0, Pt = St ? St.valueOf : void 0;
|
|
477
|
+
function Wi(e) {
|
|
478
478
|
return Pt ? Object(Pt.call(e)) : {};
|
|
479
479
|
}
|
|
480
480
|
function Ji(e, t) {
|
|
481
|
-
var n = t ?
|
|
481
|
+
var n = t ? it(e.buffer) : e.buffer;
|
|
482
482
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
483
483
|
}
|
|
484
|
-
var Qi = "[object Boolean]", ki = "[object Date]", el = "[object Map]", tl = "[object Number]", nl = "[object RegExp]", rl = "[object Set]", il = "[object String]", ll = "[object Symbol]", al = "[object ArrayBuffer]",
|
|
484
|
+
var Qi = "[object Boolean]", ki = "[object Date]", el = "[object Map]", tl = "[object Number]", nl = "[object RegExp]", rl = "[object Set]", il = "[object String]", ll = "[object Symbol]", al = "[object ArrayBuffer]", sl = "[object DataView]", ol = "[object Float32Array]", ul = "[object Float64Array]", cl = "[object Int8Array]", fl = "[object Int16Array]", dl = "[object Int32Array]", pl = "[object Uint8Array]", vl = "[object Uint8ClampedArray]", ml = "[object Uint16Array]", gl = "[object Uint32Array]";
|
|
485
485
|
function yl(e, t, n) {
|
|
486
486
|
var r = e.constructor;
|
|
487
487
|
switch (t) {
|
|
488
488
|
case al:
|
|
489
|
-
return
|
|
489
|
+
return it(e);
|
|
490
490
|
case Qi:
|
|
491
491
|
case ki:
|
|
492
492
|
return new r(+e);
|
|
493
|
-
case ol:
|
|
494
|
-
return Yi(e, n);
|
|
495
493
|
case sl:
|
|
494
|
+
return Xi(e, n);
|
|
495
|
+
case ol:
|
|
496
496
|
case ul:
|
|
497
497
|
case cl:
|
|
498
498
|
case fl:
|
|
@@ -508,67 +508,67 @@ function yl(e, t, n) {
|
|
|
508
508
|
case il:
|
|
509
509
|
return new r(e);
|
|
510
510
|
case nl:
|
|
511
|
-
return
|
|
511
|
+
return Zi(e);
|
|
512
512
|
case rl:
|
|
513
513
|
return new r();
|
|
514
514
|
case ll:
|
|
515
|
-
return
|
|
515
|
+
return Wi(e);
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
function _l(e) {
|
|
519
|
-
return typeof e.constructor == "function" && !
|
|
519
|
+
return typeof e.constructor == "function" && !ke(e) ? Jn(en(e)) : {};
|
|
520
520
|
}
|
|
521
521
|
var hl = "[object Map]";
|
|
522
522
|
function Tl(e) {
|
|
523
|
-
return
|
|
523
|
+
return re(e) && H(e) == hl;
|
|
524
524
|
}
|
|
525
|
-
var Ot = ce && ce.isMap, $l = Ot ?
|
|
525
|
+
var Ot = ce && ce.isMap, $l = Ot ? et(Ot) : Tl, bl = "[object Set]";
|
|
526
526
|
function Al(e) {
|
|
527
|
-
return
|
|
528
|
-
}
|
|
529
|
-
var Ct = ce && ce.isSet, wl = Ct ?
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
function
|
|
533
|
-
var
|
|
534
|
-
if (
|
|
535
|
-
return
|
|
536
|
-
if (
|
|
527
|
+
return re(e) && H(e) == bl;
|
|
528
|
+
}
|
|
529
|
+
var Ct = ce && ce.isSet, wl = Ct ? et(Ct) : Al, Sl = 1, Pl = 2, Ol = 4, an = "[object Arguments]", Cl = "[object Array]", Ul = "[object Boolean]", Vl = "[object Date]", Dl = "[object Error]", sn = "[object Function]", El = "[object GeneratorFunction]", Ml = "[object Map]", Ll = "[object Number]", on = "[object Object]", xl = "[object RegExp]", Nl = "[object Set]", Fl = "[object String]", Bl = "[object Symbol]", Rl = "[object WeakMap]", Hl = "[object ArrayBuffer]", jl = "[object DataView]", Gl = "[object Float32Array]", zl = "[object Float64Array]", ql = "[object Int8Array]", Kl = "[object Int16Array]", Il = "[object Int32Array]", Xl = "[object Uint8Array]", Yl = "[object Uint8ClampedArray]", Zl = "[object Uint16Array]", Wl = "[object Uint32Array]", $ = {};
|
|
530
|
+
$[an] = $[Cl] = $[Hl] = $[jl] = $[Ul] = $[Vl] = $[Gl] = $[zl] = $[ql] = $[Kl] = $[Il] = $[Ml] = $[Ll] = $[on] = $[xl] = $[Nl] = $[Fl] = $[Bl] = $[Xl] = $[Yl] = $[Zl] = $[Wl] = !0;
|
|
531
|
+
$[Dl] = $[sn] = $[Rl] = !1;
|
|
532
|
+
function Ce(e, t, n, r, l, i) {
|
|
533
|
+
var a, s = t & Sl, o = t & Pl, u = t & Ol;
|
|
534
|
+
if (a !== void 0)
|
|
535
|
+
return a;
|
|
536
|
+
if (!Se(e))
|
|
537
537
|
return e;
|
|
538
|
-
var
|
|
539
|
-
if (
|
|
540
|
-
if (
|
|
541
|
-
return Qn(e,
|
|
538
|
+
var f = Te(e);
|
|
539
|
+
if (f) {
|
|
540
|
+
if (a = Ii(e), !s)
|
|
541
|
+
return Qn(e, a);
|
|
542
542
|
} else {
|
|
543
|
-
var
|
|
544
|
-
if (
|
|
545
|
-
return
|
|
546
|
-
if (
|
|
547
|
-
if (
|
|
548
|
-
return
|
|
543
|
+
var d = H(e), h = d == sn || d == El;
|
|
544
|
+
if (Ve(e))
|
|
545
|
+
return Vi(e, s);
|
|
546
|
+
if (d == on || d == an || h && !l) {
|
|
547
|
+
if (a = o || h ? {} : _l(e), !s)
|
|
548
|
+
return o ? Ni(e, Ci(a, e)) : Li(e, Oi(a, e));
|
|
549
549
|
} else {
|
|
550
|
-
if (
|
|
551
|
-
return
|
|
552
|
-
|
|
550
|
+
if (!$[d])
|
|
551
|
+
return l ? e : {};
|
|
552
|
+
a = yl(e, d, s);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
|
|
556
|
-
var
|
|
557
|
-
if (
|
|
558
|
-
return
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
}) : $l(e) && e.forEach(function(
|
|
562
|
-
|
|
555
|
+
i || (i = new X());
|
|
556
|
+
var g = i.get(e);
|
|
557
|
+
if (g)
|
|
558
|
+
return g;
|
|
559
|
+
i.set(e, a), wl(e) ? e.forEach(function(C) {
|
|
560
|
+
a.add(Ce(C, t, n, C, e, i));
|
|
561
|
+
}) : $l(e) && e.forEach(function(C, U) {
|
|
562
|
+
a.set(U, Ce(C, t, n, U, e, i));
|
|
563
563
|
});
|
|
564
|
-
var
|
|
565
|
-
return kn(
|
|
566
|
-
|
|
567
|
-
}),
|
|
564
|
+
var _ = u ? o ? Fi : Ke : o ? nt : tt, w = f ? void 0 : _(e);
|
|
565
|
+
return kn(w || e, function(C, U) {
|
|
566
|
+
w && (U = C, C = e[U]), qt(a, U, Ce(C, t, n, U, e, i));
|
|
567
|
+
}), a;
|
|
568
568
|
}
|
|
569
569
|
var Jl = 1, Ql = 4;
|
|
570
570
|
function un(e) {
|
|
571
|
-
return
|
|
571
|
+
return Ce(e, Jl | Ql);
|
|
572
572
|
}
|
|
573
573
|
var kl = "__lodash_hash_undefined__";
|
|
574
574
|
function ea(e) {
|
|
@@ -577,13 +577,13 @@ function ea(e) {
|
|
|
577
577
|
function ta(e) {
|
|
578
578
|
return this.__data__.has(e);
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Ee(e) {
|
|
581
581
|
var t = -1, n = e == null ? 0 : e.length;
|
|
582
|
-
for (this.__data__ = new
|
|
582
|
+
for (this.__data__ = new se(); ++t < n; )
|
|
583
583
|
this.add(e[t]);
|
|
584
584
|
}
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
Ee.prototype.add = Ee.prototype.push = ea;
|
|
586
|
+
Ee.prototype.has = ta;
|
|
587
587
|
function na(e, t) {
|
|
588
588
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
589
589
|
if (t(e[n], n, e))
|
|
@@ -594,217 +594,200 @@ function ra(e, t) {
|
|
|
594
594
|
return e.has(t);
|
|
595
595
|
}
|
|
596
596
|
var ia = 1, la = 2;
|
|
597
|
-
function cn(e, t, n, r,
|
|
598
|
-
var
|
|
599
|
-
if (
|
|
597
|
+
function cn(e, t, n, r, l, i) {
|
|
598
|
+
var a = n & ia, s = e.length, o = t.length;
|
|
599
|
+
if (s != o && !(a && o > s))
|
|
600
600
|
return !1;
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
var
|
|
605
|
-
for (
|
|
606
|
-
var
|
|
601
|
+
var u = i.get(e), f = i.get(t);
|
|
602
|
+
if (u && f)
|
|
603
|
+
return u == t && f == e;
|
|
604
|
+
var d = -1, h = !0, g = n & la ? new Ee() : void 0;
|
|
605
|
+
for (i.set(e, t), i.set(t, e); ++d < s; ) {
|
|
606
|
+
var _ = e[d], w = t[d];
|
|
607
607
|
if (r)
|
|
608
|
-
var
|
|
609
|
-
if (
|
|
610
|
-
if (
|
|
608
|
+
var C = a ? r(w, _, d, t, e, i) : r(_, w, d, e, t, i);
|
|
609
|
+
if (C !== void 0) {
|
|
610
|
+
if (C)
|
|
611
611
|
continue;
|
|
612
|
-
|
|
612
|
+
h = !1;
|
|
613
613
|
break;
|
|
614
614
|
}
|
|
615
|
-
if (
|
|
616
|
-
if (!na(t, function(
|
|
617
|
-
if (!ra(
|
|
618
|
-
return
|
|
615
|
+
if (g) {
|
|
616
|
+
if (!na(t, function(U, R) {
|
|
617
|
+
if (!ra(g, R) && (_ === U || l(_, U, n, r, i)))
|
|
618
|
+
return g.push(R);
|
|
619
619
|
})) {
|
|
620
|
-
|
|
620
|
+
h = !1;
|
|
621
621
|
break;
|
|
622
622
|
}
|
|
623
|
-
} else if (!(
|
|
624
|
-
|
|
623
|
+
} else if (!(_ === w || l(_, w, n, r, i))) {
|
|
624
|
+
h = !1;
|
|
625
625
|
break;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
return
|
|
628
|
+
return i.delete(e), i.delete(t), h;
|
|
629
629
|
}
|
|
630
630
|
function aa(e) {
|
|
631
631
|
var t = -1, n = Array(e.size);
|
|
632
|
-
return e.forEach(function(r,
|
|
633
|
-
n[++t] = [
|
|
632
|
+
return e.forEach(function(r, l) {
|
|
633
|
+
n[++t] = [l, r];
|
|
634
634
|
}), n;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function sa(e) {
|
|
637
637
|
var t = -1, n = Array(e.size);
|
|
638
638
|
return e.forEach(function(r) {
|
|
639
639
|
n[++t] = r;
|
|
640
640
|
}), n;
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
function $a(e, t, n, r,
|
|
642
|
+
var oa = 1, ua = 2, ca = "[object Boolean]", fa = "[object Date]", da = "[object Error]", pa = "[object Map]", va = "[object Number]", ma = "[object RegExp]", ga = "[object Set]", ya = "[object String]", _a = "[object Symbol]", ha = "[object ArrayBuffer]", Ta = "[object DataView]", Ut = k ? k.prototype : void 0, je = Ut ? Ut.valueOf : void 0;
|
|
643
|
+
function $a(e, t, n, r, l, i, a) {
|
|
644
644
|
switch (n) {
|
|
645
645
|
case Ta:
|
|
646
646
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
647
647
|
return !1;
|
|
648
648
|
e = e.buffer, t = t.buffer;
|
|
649
649
|
case ha:
|
|
650
|
-
return !(e.byteLength != t.byteLength || !
|
|
650
|
+
return !(e.byteLength != t.byteLength || !i(new De(e), new De(t)));
|
|
651
651
|
case ca:
|
|
652
652
|
case fa:
|
|
653
653
|
case va:
|
|
654
|
-
return
|
|
654
|
+
return Qe(+e, +t);
|
|
655
655
|
case da:
|
|
656
656
|
return e.name == t.name && e.message == t.message;
|
|
657
657
|
case ma:
|
|
658
658
|
case ya:
|
|
659
659
|
return e == t + "";
|
|
660
660
|
case pa:
|
|
661
|
-
var
|
|
661
|
+
var s = aa;
|
|
662
662
|
case ga:
|
|
663
|
-
var
|
|
664
|
-
if (
|
|
663
|
+
var o = r & oa;
|
|
664
|
+
if (s || (s = sa), e.size != t.size && !o)
|
|
665
665
|
return !1;
|
|
666
|
-
var
|
|
667
|
-
if (
|
|
668
|
-
return
|
|
669
|
-
r |= ua,
|
|
670
|
-
var
|
|
671
|
-
return
|
|
666
|
+
var u = a.get(e);
|
|
667
|
+
if (u)
|
|
668
|
+
return u == t;
|
|
669
|
+
r |= ua, a.set(e, t);
|
|
670
|
+
var f = cn(s(e), s(t), r, l, i, a);
|
|
671
|
+
return a.delete(e), f;
|
|
672
672
|
case _a:
|
|
673
|
-
if (
|
|
674
|
-
return
|
|
673
|
+
if (je)
|
|
674
|
+
return je.call(e) == je.call(t);
|
|
675
675
|
}
|
|
676
676
|
return !1;
|
|
677
677
|
}
|
|
678
678
|
var ba = 1, Aa = Object.prototype, wa = Aa.hasOwnProperty;
|
|
679
|
-
function Sa(e, t, n, r,
|
|
680
|
-
var
|
|
681
|
-
if (
|
|
679
|
+
function Sa(e, t, n, r, l, i) {
|
|
680
|
+
var a = n & ba, s = Ke(e), o = s.length, u = Ke(t), f = u.length;
|
|
681
|
+
if (o != f && !a)
|
|
682
682
|
return !1;
|
|
683
|
-
for (var
|
|
684
|
-
var
|
|
685
|
-
if (!(
|
|
683
|
+
for (var d = o; d--; ) {
|
|
684
|
+
var h = s[d];
|
|
685
|
+
if (!(a ? h in t : wa.call(t, h)))
|
|
686
686
|
return !1;
|
|
687
687
|
}
|
|
688
|
-
var
|
|
689
|
-
if (
|
|
690
|
-
return
|
|
691
|
-
var
|
|
692
|
-
|
|
693
|
-
for (var
|
|
694
|
-
|
|
695
|
-
var
|
|
688
|
+
var g = i.get(e), _ = i.get(t);
|
|
689
|
+
if (g && _)
|
|
690
|
+
return g == t && _ == e;
|
|
691
|
+
var w = !0;
|
|
692
|
+
i.set(e, t), i.set(t, e);
|
|
693
|
+
for (var C = a; ++d < o; ) {
|
|
694
|
+
h = s[d];
|
|
695
|
+
var U = e[h], R = t[h];
|
|
696
696
|
if (r)
|
|
697
|
-
var
|
|
698
|
-
if (!(
|
|
699
|
-
|
|
697
|
+
var q = a ? r(R, U, h, t, e, i) : r(U, R, h, e, t, i);
|
|
698
|
+
if (!(q === void 0 ? U === R || l(U, R, n, r, i) : q)) {
|
|
699
|
+
w = !1;
|
|
700
700
|
break;
|
|
701
701
|
}
|
|
702
|
-
|
|
702
|
+
C || (C = h == "constructor");
|
|
703
703
|
}
|
|
704
|
-
if (
|
|
705
|
-
var
|
|
706
|
-
|
|
704
|
+
if (w && !C) {
|
|
705
|
+
var Q = e.constructor, K = t.constructor;
|
|
706
|
+
Q != K && "constructor" in e && "constructor" in t && !(typeof Q == "function" && Q instanceof Q && typeof K == "function" && K instanceof K) && (w = !1);
|
|
707
707
|
}
|
|
708
|
-
return
|
|
709
|
-
}
|
|
710
|
-
var Pa = 1,
|
|
711
|
-
function Ca(e, t, n, r,
|
|
712
|
-
var
|
|
713
|
-
|
|
714
|
-
var
|
|
715
|
-
if (
|
|
716
|
-
if (!
|
|
708
|
+
return i.delete(e), i.delete(t), w;
|
|
709
|
+
}
|
|
710
|
+
var Pa = 1, Vt = "[object Arguments]", Dt = "[object Array]", Pe = "[object Object]", Oa = Object.prototype, Et = Oa.hasOwnProperty;
|
|
711
|
+
function Ca(e, t, n, r, l, i) {
|
|
712
|
+
var a = Te(e), s = Te(t), o = a ? Dt : H(e), u = s ? Dt : H(t);
|
|
713
|
+
o = o == Vt ? Pe : o, u = u == Vt ? Pe : u;
|
|
714
|
+
var f = o == Pe, d = u == Pe, h = o == u;
|
|
715
|
+
if (h && Ve(e)) {
|
|
716
|
+
if (!Ve(t))
|
|
717
717
|
return !1;
|
|
718
|
-
|
|
718
|
+
a = !0, f = !1;
|
|
719
719
|
}
|
|
720
|
-
if (
|
|
721
|
-
return
|
|
720
|
+
if (h && !f)
|
|
721
|
+
return i || (i = new X()), a || Wt(e) ? cn(e, t, n, r, l, i) : $a(e, t, o, n, r, l, i);
|
|
722
722
|
if (!(n & Pa)) {
|
|
723
|
-
var
|
|
724
|
-
if (
|
|
725
|
-
var
|
|
726
|
-
return
|
|
723
|
+
var g = f && Et.call(e, "__wrapped__"), _ = d && Et.call(t, "__wrapped__");
|
|
724
|
+
if (g || _) {
|
|
725
|
+
var w = g ? e.value() : e, C = _ ? t.value() : t;
|
|
726
|
+
return i || (i = new X()), l(w, C, n, r, i);
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
return
|
|
729
|
+
return h ? (i || (i = new X()), Sa(e, t, n, r, l, i)) : !1;
|
|
730
730
|
}
|
|
731
|
-
function fn(e, t, n, r,
|
|
732
|
-
return e === t ? !0 : e == null || t == null || !
|
|
731
|
+
function fn(e, t, n, r, l) {
|
|
732
|
+
return e === t ? !0 : e == null || t == null || !re(e) && !re(t) ? e !== e && t !== t : Ca(e, t, n, r, fn, l);
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function Fe(e, t) {
|
|
735
735
|
return fn(e, t);
|
|
736
736
|
}
|
|
737
|
-
const
|
|
738
|
-
__name: "entry",
|
|
739
|
-
props: {
|
|
740
|
-
minHeight: {}
|
|
741
|
-
},
|
|
742
|
-
setup(e) {
|
|
743
|
-
const { backgroundColor2: t, highlightColor: n } = ke(), r = R(!1), s = Y(() => ({
|
|
744
|
-
background: r.value ? n.value : t.value,
|
|
745
|
-
minHeight: e.minHeight,
|
|
746
|
-
paddingRight: "4px",
|
|
747
|
-
marginBottom: "1px",
|
|
748
|
-
userSelect: "none"
|
|
749
|
-
})), l = (d) => {
|
|
750
|
-
Bt.emit("propTreeMenu", {
|
|
751
|
-
x: d.clientX,
|
|
752
|
-
y: d.clientY
|
|
753
|
-
});
|
|
754
|
-
};
|
|
755
|
-
return (d, f) => {
|
|
756
|
-
const p = fe("ripple");
|
|
757
|
-
return k((C(), W("div", {
|
|
758
|
-
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
759
|
-
style: Ie(s.value),
|
|
760
|
-
onContextmenu: j(l, ["prevent"]),
|
|
761
|
-
onMouseover: f[0] || (f[0] = (c) => r.value = !0),
|
|
762
|
-
onMouseout: f[1] || (f[1] = (c) => r.value = !1)
|
|
763
|
-
}, [
|
|
764
|
-
Tn(d.$slots, "default")
|
|
765
|
-
], 36)), [
|
|
766
|
-
[p]
|
|
767
|
-
]);
|
|
768
|
-
};
|
|
769
|
-
}
|
|
770
|
-
}), Ea = /* @__PURE__ */ H({
|
|
737
|
+
const Ua = /* @__PURE__ */ j({
|
|
771
738
|
__name: "menu",
|
|
772
739
|
setup(e) {
|
|
773
|
-
const { t } =
|
|
774
|
-
const
|
|
740
|
+
const { t } = Ae(), n = L(0), r = L(0), l = L(""), i = L(!1), a = Y(() => [n.value, r.value]), s = (g) => {
|
|
741
|
+
const _ = () => {
|
|
775
742
|
console.log("reset");
|
|
776
743
|
};
|
|
777
|
-
|
|
744
|
+
g.push({
|
|
778
745
|
title: t("x-prop-tree.reset"),
|
|
779
|
-
func:
|
|
746
|
+
func: _
|
|
747
|
+
});
|
|
748
|
+
}, o = (g) => {
|
|
749
|
+
const _ = () => {
|
|
750
|
+
console.log("copy");
|
|
751
|
+
};
|
|
752
|
+
g.push({
|
|
753
|
+
title: t("x-prop-tree.copy"),
|
|
754
|
+
func: _
|
|
755
|
+
});
|
|
756
|
+
}, u = (g) => {
|
|
757
|
+
const _ = () => {
|
|
758
|
+
console.log("paste");
|
|
759
|
+
};
|
|
760
|
+
g.push({
|
|
761
|
+
title: t("x-prop-tree.paste"),
|
|
762
|
+
func: _
|
|
780
763
|
});
|
|
781
|
-
},
|
|
782
|
-
const
|
|
783
|
-
return
|
|
784
|
-
}),
|
|
785
|
-
n.value =
|
|
786
|
-
}, { open:
|
|
787
|
-
return (
|
|
788
|
-
const
|
|
789
|
-
return
|
|
790
|
-
modelValue:
|
|
791
|
-
"onUpdate:modelValue":
|
|
764
|
+
}, f = Y(() => {
|
|
765
|
+
const g = [];
|
|
766
|
+
return s(g), o(g), u(g), g;
|
|
767
|
+
}), d = (g) => {
|
|
768
|
+
n.value = g.x, r.value = g.y, l.value = g.key, i.value = g.change;
|
|
769
|
+
}, { open: h } = Bt("propTreeMenu", d);
|
|
770
|
+
return (g, _) => {
|
|
771
|
+
const w = P("v-list-item-title"), C = P("v-list-item"), U = P("v-list"), R = P("v-menu");
|
|
772
|
+
return O(), x(R, {
|
|
773
|
+
modelValue: F(h),
|
|
774
|
+
"onUpdate:modelValue": _[0] || (_[0] = (q) => xt(h) ? h.value = q : null),
|
|
792
775
|
"location-strategy": "connected",
|
|
793
|
-
target:
|
|
776
|
+
target: a.value,
|
|
794
777
|
scrim: "transparent"
|
|
795
778
|
}, {
|
|
796
|
-
default:
|
|
797
|
-
M(
|
|
798
|
-
default:
|
|
799
|
-
(
|
|
800
|
-
key:
|
|
779
|
+
default: I(() => [
|
|
780
|
+
M(U, null, {
|
|
781
|
+
default: I(() => [
|
|
782
|
+
(O(!0), W(Nt, null, Tn(f.value, (q, Q) => (O(), x(C, {
|
|
783
|
+
key: Q,
|
|
801
784
|
link: "",
|
|
802
|
-
onClick:
|
|
785
|
+
onClick: q.func
|
|
803
786
|
}, {
|
|
804
|
-
default:
|
|
805
|
-
M(
|
|
806
|
-
default:
|
|
807
|
-
|
|
787
|
+
default: I(() => [
|
|
788
|
+
M(w, null, {
|
|
789
|
+
default: I(() => [
|
|
790
|
+
Ze(Me(q.title), 1)
|
|
808
791
|
]),
|
|
809
792
|
_: 2
|
|
810
793
|
}, 1024)
|
|
@@ -820,8 +803,8 @@ const Va = /* @__PURE__ */ H({
|
|
|
820
803
|
};
|
|
821
804
|
}
|
|
822
805
|
});
|
|
823
|
-
var
|
|
824
|
-
const Oe = /* @__PURE__ */
|
|
806
|
+
var Va = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Da = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", oe = "M19,13H5V11H19V13Z", Ea = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
807
|
+
const Oe = /* @__PURE__ */ j({
|
|
825
808
|
__name: "title",
|
|
826
809
|
props: {
|
|
827
810
|
title: {},
|
|
@@ -832,330 +815,302 @@ const Oe = /* @__PURE__ */ H({
|
|
|
832
815
|
},
|
|
833
816
|
emits: ["collapse", "create", "delete"],
|
|
834
817
|
setup(e, { emit: t }) {
|
|
835
|
-
const { backgroundColor2: n, highlightColor: r } =
|
|
836
|
-
background:
|
|
818
|
+
const { backgroundColor2: n, highlightColor: r } = Je(), l = t, i = L(!1), a = Y(() => ({
|
|
819
|
+
background: i.value ? r.value : n.value,
|
|
837
820
|
height: "36px",
|
|
838
821
|
marginBottom: "1px",
|
|
839
822
|
userSelect: "none"
|
|
840
|
-
})),
|
|
841
|
-
|
|
842
|
-
},
|
|
843
|
-
|
|
844
|
-
x:
|
|
845
|
-
y:
|
|
823
|
+
})), s = () => {
|
|
824
|
+
l("collapse", !e.collapse);
|
|
825
|
+
}, o = (u) => {
|
|
826
|
+
Rt.emit("propTreeMenu", {
|
|
827
|
+
x: u.clientX,
|
|
828
|
+
y: u.clientY
|
|
846
829
|
});
|
|
847
830
|
};
|
|
848
|
-
return (
|
|
849
|
-
const
|
|
850
|
-
return
|
|
831
|
+
return (u, f) => {
|
|
832
|
+
const d = P("v-icon"), h = P("v-spacer"), g = fe("ripple");
|
|
833
|
+
return ne((O(), W("div", {
|
|
851
834
|
class: "d-flex align-center cursor-pointer",
|
|
852
|
-
style:
|
|
853
|
-
onClick:
|
|
854
|
-
onContextmenu:
|
|
855
|
-
onMouseover:
|
|
856
|
-
onMouseout:
|
|
835
|
+
style: We(a.value),
|
|
836
|
+
onClick: s,
|
|
837
|
+
onContextmenu: G(o, ["prevent"]),
|
|
838
|
+
onMouseover: f[2] || (f[2] = (_) => i.value = !0),
|
|
839
|
+
onMouseout: f[3] || (f[3] = (_) => i.value = !1)
|
|
857
840
|
}, [
|
|
858
|
-
M(
|
|
841
|
+
M(d, {
|
|
859
842
|
class: "mr-1",
|
|
860
|
-
icon:
|
|
843
|
+
icon: u.collapse ? F(Da) : F(Va)
|
|
861
844
|
}, null, 8, ["icon"]),
|
|
862
|
-
|
|
863
|
-
M(
|
|
864
|
-
|
|
845
|
+
Ue("span", null, Me(u.title), 1),
|
|
846
|
+
M(h),
|
|
847
|
+
u.hasCreate ? (O(), x(d, {
|
|
865
848
|
key: 0,
|
|
866
849
|
class: "mx-3",
|
|
867
|
-
icon:
|
|
868
|
-
onClick:
|
|
850
|
+
icon: F(Ea),
|
|
851
|
+
onClick: f[0] || (f[0] = G((_) => l("create"), ["stop"]))
|
|
869
852
|
}, null, 8, ["icon"])) : Z("", !0),
|
|
870
|
-
|
|
853
|
+
u.hasDelete ? (O(), x(d, {
|
|
871
854
|
key: 1,
|
|
872
855
|
class: "mx-3",
|
|
873
|
-
icon:
|
|
874
|
-
onClick:
|
|
856
|
+
icon: F(oe),
|
|
857
|
+
onClick: f[1] || (f[1] = G((_) => l("delete", u.index), ["stop"]))
|
|
875
858
|
}, null, 8, ["icon"])) : Z("", !0)
|
|
876
859
|
], 36)), [
|
|
877
|
-
[
|
|
860
|
+
[g]
|
|
878
861
|
]);
|
|
879
862
|
};
|
|
880
863
|
}
|
|
881
|
-
}),
|
|
864
|
+
}), Ma = /* @__PURE__ */ j({
|
|
865
|
+
__name: "entry",
|
|
866
|
+
props: {
|
|
867
|
+
minHeight: {}
|
|
868
|
+
},
|
|
869
|
+
setup(e) {
|
|
870
|
+
const { backgroundColor2: t, highlightColor: n } = Je(), r = L(!1), l = Y(() => ({
|
|
871
|
+
background: r.value ? n.value : t.value,
|
|
872
|
+
minHeight: e.minHeight,
|
|
873
|
+
paddingRight: "4px",
|
|
874
|
+
marginBottom: "1px",
|
|
875
|
+
userSelect: "none"
|
|
876
|
+
})), i = (a) => {
|
|
877
|
+
Rt.emit("propTreeMenu", {
|
|
878
|
+
x: a.clientX,
|
|
879
|
+
y: a.clientY
|
|
880
|
+
});
|
|
881
|
+
};
|
|
882
|
+
return (a, s) => {
|
|
883
|
+
const o = fe("ripple");
|
|
884
|
+
return ne((O(), W("div", {
|
|
885
|
+
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
886
|
+
style: We(l.value),
|
|
887
|
+
onContextmenu: G(i, ["prevent"]),
|
|
888
|
+
onMouseover: s[0] || (s[0] = (u) => r.value = !0),
|
|
889
|
+
onMouseout: s[1] || (s[1] = (u) => r.value = !1)
|
|
890
|
+
}, [
|
|
891
|
+
$n(a.$slots, "default")
|
|
892
|
+
], 36)), [
|
|
893
|
+
[o]
|
|
894
|
+
]);
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
}), lt = (e) => !(e instanceof Array), at = (e) => e instanceof Array, La = [
|
|
882
898
|
["basic", "id"],
|
|
883
899
|
["basic", "name"]
|
|
884
|
-
], xa = (e) =>
|
|
900
|
+
], xa = (e) => La.find((t) => Fe(e, t)), Be = (e, t, n, r, l, i, a) => (e = un(e), i !== void 0 ? (e.push(i), a && e.push(t.key)) : e.push(t.key), xa(e) ? (r.change = !1, r.change) : t.ui ? t.array && i === void 0 ? Ba(
|
|
885
901
|
e,
|
|
886
902
|
t,
|
|
887
903
|
n,
|
|
888
904
|
r,
|
|
889
|
-
s,
|
|
890
905
|
l,
|
|
891
|
-
|
|
892
|
-
|
|
906
|
+
i,
|
|
907
|
+
a
|
|
908
|
+
) : Ra(t, n, r, i, a) : t.array ? Na(
|
|
893
909
|
e,
|
|
894
910
|
t,
|
|
895
911
|
n,
|
|
896
912
|
r,
|
|
897
|
-
s,
|
|
898
913
|
l,
|
|
899
|
-
|
|
914
|
+
i,
|
|
915
|
+
a
|
|
900
916
|
) : Fa(
|
|
901
917
|
e,
|
|
902
918
|
t,
|
|
903
919
|
n,
|
|
904
920
|
r,
|
|
905
|
-
s,
|
|
906
921
|
l,
|
|
907
|
-
|
|
908
|
-
|
|
922
|
+
i,
|
|
923
|
+
a
|
|
924
|
+
)), Na = (e, t, n, r, l, i, a) => {
|
|
909
925
|
if (t.ui)
|
|
910
926
|
return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
|
|
911
927
|
if (!t.array)
|
|
912
928
|
return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
|
|
913
|
-
if (!
|
|
929
|
+
if (!at(r.children))
|
|
914
930
|
return console.assert(!1, "execPropBranchArray state children must be array"), !1;
|
|
915
|
-
let
|
|
916
|
-
|
|
917
|
-
for (let
|
|
931
|
+
let s;
|
|
932
|
+
i !== void 0 && !a ? (n[i] instanceof Array || (n[i] = E(t), l == null || l(e, n[i])), s = n[i]) : (n[t.key] instanceof Array || (n[t.key] = E(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
|
|
933
|
+
for (let o = 0; o < s.length; o++) {
|
|
918
934
|
r.children.push({
|
|
919
935
|
change: !1,
|
|
920
936
|
children: {}
|
|
921
|
-
})
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
}
|
|
926
|
-
const g = r.children[p];
|
|
927
|
-
if (!ot(g.children)) {
|
|
937
|
+
});
|
|
938
|
+
const u = r.children[o];
|
|
939
|
+
t.children.forEach((f) => {
|
|
940
|
+
if (!lt(u.children)) {
|
|
928
941
|
console.assert(!1);
|
|
929
942
|
return;
|
|
930
943
|
}
|
|
931
|
-
|
|
944
|
+
u.children[f.key] = {
|
|
932
945
|
change: !1,
|
|
933
|
-
children:
|
|
934
|
-
},
|
|
946
|
+
children: f.array ? [] : {}
|
|
947
|
+
}, Be(
|
|
935
948
|
e,
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
949
|
+
f,
|
|
950
|
+
s[o],
|
|
951
|
+
u.children[f.key],
|
|
952
|
+
l,
|
|
953
|
+
o,
|
|
941
954
|
!0
|
|
942
|
-
) && (
|
|
955
|
+
) && (u.change = !0), u.change && (r.change = !0);
|
|
943
956
|
});
|
|
944
|
-
|
|
945
|
-
|
|
957
|
+
}
|
|
958
|
+
return r.change || (r.change = !Fe(s, E(t))), r.change;
|
|
959
|
+
}, Fa = (e, t, n, r, l, i, a) => {
|
|
946
960
|
if (t.ui)
|
|
947
961
|
return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
|
|
948
962
|
if (t.array)
|
|
949
963
|
return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
|
|
950
|
-
if (!
|
|
964
|
+
if (!lt(r.children))
|
|
951
965
|
return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
|
|
952
|
-
let
|
|
953
|
-
|
|
954
|
-
for (let
|
|
955
|
-
const
|
|
956
|
-
r.children[
|
|
966
|
+
let s;
|
|
967
|
+
i !== void 0 && !a ? (n[i] || (n[i] = {}), s = n[i]) : (n[t.key] || (n[t.key] = {}), s = n[t.key]), r.change = !1;
|
|
968
|
+
for (let o = 0; o < t.children.length; o++) {
|
|
969
|
+
const u = t.children[o];
|
|
970
|
+
r.children[u.key] = {
|
|
957
971
|
change: !1,
|
|
958
|
-
children:
|
|
959
|
-
},
|
|
972
|
+
children: u.array ? [] : {}
|
|
973
|
+
}, Be(e, u, s, r.children[u.key], l) && (r.change = !0);
|
|
960
974
|
}
|
|
961
975
|
return r.change;
|
|
962
|
-
}, Ba = (e, t, n, r,
|
|
976
|
+
}, Ba = (e, t, n, r, l, i, a) => {
|
|
963
977
|
if (!t.ui)
|
|
964
978
|
return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
|
|
965
979
|
if (!t.array)
|
|
966
980
|
return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
|
|
967
|
-
if (!
|
|
981
|
+
if (!at(r.children))
|
|
968
982
|
return console.assert(!1, "execPropLeafArray state children must be array"), !1;
|
|
969
|
-
let
|
|
970
|
-
|
|
971
|
-
for (let
|
|
972
|
-
r.children[
|
|
983
|
+
let s;
|
|
984
|
+
i !== void 0 && !a ? (n[i] instanceof Array || (n[i] = E(t), l == null || l(e, n[i])), s = n[i]) : (n[t.key] instanceof Array || (n[t.key] = E(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
|
|
985
|
+
for (let o = 0; o < s.length; o++)
|
|
986
|
+
r.children[o] = {
|
|
973
987
|
change: !1,
|
|
974
988
|
children: {}
|
|
975
|
-
},
|
|
976
|
-
return r.change || (r.change = !
|
|
977
|
-
}, Ra = (e, t, n, r,
|
|
989
|
+
}, Be(e, t, s, r.children[o], l, o, !1) && (r.change = !0);
|
|
990
|
+
return r.change || (r.change = !Fe(s, E(t))), r.change;
|
|
991
|
+
}, Ra = (e, t, n, r, l) => {
|
|
978
992
|
if (!e.ui)
|
|
979
993
|
return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
|
|
980
|
-
let
|
|
981
|
-
return r !== void 0 && !
|
|
982
|
-
},
|
|
983
|
-
if (
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
994
|
+
let i;
|
|
995
|
+
return r !== void 0 && !l ? i = t[r] : i = t[e.key], n.change = !Fe(i, E(e, !0)), n.change;
|
|
996
|
+
}, Mt = (e, t, n, r) => {
|
|
997
|
+
if (t.length <= 0 || !n) {
|
|
998
|
+
e.value = {};
|
|
999
|
+
return;
|
|
1000
|
+
}
|
|
1001
|
+
const l = {};
|
|
1002
|
+
t.forEach((i) => {
|
|
1003
|
+
l[i.key] = {
|
|
988
1004
|
change: !1,
|
|
989
|
-
children:
|
|
990
|
-
},
|
|
991
|
-
}),
|
|
992
|
-
},
|
|
993
|
-
|
|
994
|
-
|
|
1005
|
+
children: i.array ? [] : {}
|
|
1006
|
+
}, Be([], i, n, l[i.key], r);
|
|
1007
|
+
}), e.value = l;
|
|
1008
|
+
}, _e = (e, t) => {
|
|
1009
|
+
let n, r = e.value;
|
|
1010
|
+
return t.forEach((l) => {
|
|
1011
|
+
let i;
|
|
1012
|
+
if (typeof l == "string" ? lt(r) && (i = r[l]) : at(r) && (i = r[l]), !i)
|
|
1013
|
+
return console.assert(!1, `isPropChanged unpkg failed keys=${t}`), !1;
|
|
1014
|
+
n = i, r = i.children;
|
|
1015
|
+
}), (n == null ? void 0 : n.change) ?? !1;
|
|
1016
|
+
};
|
|
1017
|
+
function Ha(e, t, n) {
|
|
1018
|
+
const { t: r } = Ae();
|
|
1019
|
+
return { renderProp: (i, a, s) => {
|
|
1020
|
+
let o = r(a.name);
|
|
1021
|
+
return _e(e, i) && (o += " *"), y(
|
|
1022
|
+
Ma,
|
|
1023
|
+
{
|
|
1024
|
+
minHeight: t.value
|
|
1025
|
+
},
|
|
1026
|
+
() => [
|
|
1027
|
+
y("span", { class: "ml-1", innerHTML: o }),
|
|
1028
|
+
y("div", { style: { width: n.value } }, s)
|
|
1029
|
+
]
|
|
1030
|
+
);
|
|
1031
|
+
} };
|
|
1032
|
+
}
|
|
1033
|
+
function ja(e) {
|
|
1034
|
+
return { renderUiDummy: (n, r, l, i, a) => {
|
|
1035
|
+
if (r.ui !== "dummy") {
|
|
1036
|
+
console.assert(!1, "renderUiDummy prop ui must be dummy");
|
|
1037
|
+
return;
|
|
1038
|
+
}
|
|
1039
|
+
if (i !== void 0 && !a) {
|
|
1040
|
+
const s = E(r, !0);
|
|
1041
|
+
typeof l[i] != typeof s && (l[i] = s, e(n, l[i]));
|
|
1042
|
+
} else {
|
|
1043
|
+
const s = E(r);
|
|
1044
|
+
typeof l[r.key] != typeof s && (l[r.key] = s, e(n, l[r.key]));
|
|
1045
|
+
}
|
|
1046
|
+
} };
|
|
1047
|
+
}
|
|
1048
|
+
const Ga = { class: "d-flex justify-space-between align-center" }, za = /* @__PURE__ */ j({
|
|
1049
|
+
__name: "strInput",
|
|
1050
|
+
props: /* @__PURE__ */ B({
|
|
995
1051
|
hasDelete: { type: Boolean, default: !1 },
|
|
996
1052
|
readonly: { type: Boolean, default: !1 }
|
|
997
1053
|
}, {
|
|
998
1054
|
modelValue: {},
|
|
999
1055
|
modelModifiers: {}
|
|
1000
1056
|
}),
|
|
1001
|
-
emits: /* @__PURE__ */
|
|
1002
|
-
setup(e, { emit: t }) {
|
|
1003
|
-
const n = de(e, "modelValue"), r = t, s = Y(() => {
|
|
1004
|
-
let f = "100%";
|
|
1005
|
-
return e.hasDelete && (f = "calc(100% - 37px)"), {
|
|
1006
|
-
width: f
|
|
1007
|
-
};
|
|
1008
|
-
}), l = Y(() => e.readonly), d = R("hexa");
|
|
1009
|
-
return (f, p) => {
|
|
1010
|
-
const c = P("v-btn"), g = P("v-icon"), h = P("v-color-picker"), y = P("v-menu");
|
|
1011
|
-
return C(), U(y, { "close-on-content-click": !1 }, {
|
|
1012
|
-
activator: K(({ props: T }) => [
|
|
1013
|
-
Ee("div", Ha, [
|
|
1014
|
-
Ee("div", {
|
|
1015
|
-
style: Ie(s.value)
|
|
1016
|
-
}, [
|
|
1017
|
-
M(c, Ft(T, {
|
|
1018
|
-
density: "comfortable",
|
|
1019
|
-
color: n.value,
|
|
1020
|
-
block: "",
|
|
1021
|
-
disabled: l.value
|
|
1022
|
-
}), {
|
|
1023
|
-
default: K(() => [
|
|
1024
|
-
Je(xe(n.value), 1)
|
|
1025
|
-
]),
|
|
1026
|
-
_: 2
|
|
1027
|
-
}, 1040, ["color", "disabled"])
|
|
1028
|
-
], 4),
|
|
1029
|
-
f.hasDelete ? (C(), U(g, {
|
|
1030
|
-
key: 0,
|
|
1031
|
-
class: "mx-2",
|
|
1032
|
-
icon: N(le),
|
|
1033
|
-
onClick: p[0] || (p[0] = j(($) => r("delete"), ["stop"]))
|
|
1034
|
-
}, null, 8, ["icon"])) : Z("", !0)
|
|
1035
|
-
])
|
|
1036
|
-
]),
|
|
1037
|
-
default: K(() => [
|
|
1038
|
-
M(h, {
|
|
1039
|
-
modelValue: n.value,
|
|
1040
|
-
"onUpdate:modelValue": p[1] || (p[1] = (T) => n.value = T),
|
|
1041
|
-
mode: d.value,
|
|
1042
|
-
"onUpdate:mode": p[2] || (p[2] = (T) => d.value = T),
|
|
1043
|
-
"show-swatches": "",
|
|
1044
|
-
"swatches-max-height": "150px"
|
|
1045
|
-
}, null, 8, ["modelValue", "mode"])
|
|
1046
|
-
]),
|
|
1047
|
-
_: 1
|
|
1048
|
-
});
|
|
1049
|
-
};
|
|
1050
|
-
}
|
|
1051
|
-
}), Ga = /* @__PURE__ */ H({
|
|
1052
|
-
__name: "compSelect",
|
|
1053
|
-
setup(e) {
|
|
1054
|
-
const t = Y(() => "<n/a>"), n = () => {
|
|
1055
|
-
}, { open: r } = Rt("compSelectDlg", n);
|
|
1056
|
-
return (s, l) => {
|
|
1057
|
-
const d = P("v-btn"), f = P("v-dialog");
|
|
1058
|
-
return C(), U(f, {
|
|
1059
|
-
modelValue: N(r),
|
|
1060
|
-
"onUpdate:modelValue": l[0] || (l[0] = (p) => xt(r) ? r.value = p : null)
|
|
1061
|
-
}, {
|
|
1062
|
-
activator: K(({ props: p }) => [
|
|
1063
|
-
M(d, Ft(p, {
|
|
1064
|
-
density: "comfortable",
|
|
1065
|
-
block: ""
|
|
1066
|
-
}), {
|
|
1067
|
-
default: K(() => [
|
|
1068
|
-
Je(xe(t.value), 1)
|
|
1069
|
-
]),
|
|
1070
|
-
_: 2
|
|
1071
|
-
}, 1040)
|
|
1072
|
-
]),
|
|
1073
|
-
_: 1
|
|
1074
|
-
}, 8, ["modelValue"]);
|
|
1075
|
-
};
|
|
1076
|
-
}
|
|
1077
|
-
}), za = { class: "d-flex justify-space-between align-center my-2" }, qa = /* @__PURE__ */ H({
|
|
1078
|
-
__name: "multiTypes",
|
|
1079
|
-
props: /* @__PURE__ */ F({
|
|
1080
|
-
hasDelete: { type: Boolean, default: !1 },
|
|
1081
|
-
types: {}
|
|
1082
|
-
}, {
|
|
1083
|
-
modelValue: { default: "" },
|
|
1084
|
-
modelModifiers: {}
|
|
1085
|
-
}),
|
|
1086
|
-
emits: /* @__PURE__ */ F(["delete"], ["update:modelValue"]),
|
|
1057
|
+
emits: /* @__PURE__ */ B(["delete"], ["update:modelValue"]),
|
|
1087
1058
|
setup(e, { emit: t }) {
|
|
1088
|
-
const
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
f.value.ui === "pixelInput" ? r.value = c + "px" : f.value.ui === "percentInput" && (r.value = c + "%");
|
|
1107
|
-
}), (c, g) => {
|
|
1108
|
-
const h = P("v-select"), y = P("v-number-input"), T = P("v-icon"), $ = fe("ripple");
|
|
1109
|
-
return C(), W("div", za, [
|
|
1110
|
-
Ee("div", null, [
|
|
1111
|
-
k(M(h, {
|
|
1112
|
-
modelValue: l.value,
|
|
1113
|
-
"onUpdate:modelValue": g[0] || (g[0] = (b) => l.value = b),
|
|
1114
|
-
density: "compact",
|
|
1115
|
-
items: d.value,
|
|
1116
|
-
"hide-details": "",
|
|
1117
|
-
"single-line": ""
|
|
1118
|
-
}, null, 8, ["modelValue", "items"]), [
|
|
1119
|
-
[
|
|
1120
|
-
$,
|
|
1121
|
-
void 0,
|
|
1122
|
-
void 0,
|
|
1123
|
-
{ stop: !0 }
|
|
1124
|
-
]
|
|
1125
|
-
]),
|
|
1126
|
-
f.value.ui === "pixelInput" || f.value.ui === "percentInput" ? k((C(), U(y, {
|
|
1127
|
-
key: 0,
|
|
1128
|
-
modelValue: p.value,
|
|
1129
|
-
"onUpdate:modelValue": g[1] || (g[1] = (b) => p.value = b),
|
|
1130
|
-
density: "compact",
|
|
1131
|
-
"control-variant": "stacked",
|
|
1132
|
-
precision: f.value.precision,
|
|
1133
|
-
min: f.value.min,
|
|
1134
|
-
max: f.value.max,
|
|
1135
|
-
step: f.value.step,
|
|
1136
|
-
"hide-details": "",
|
|
1137
|
-
"single-line": ""
|
|
1138
|
-
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
1139
|
-
[
|
|
1140
|
-
$,
|
|
1141
|
-
void 0,
|
|
1142
|
-
void 0,
|
|
1143
|
-
{ stop: !0 }
|
|
1144
|
-
]
|
|
1145
|
-
]) : Z("", !0)
|
|
1059
|
+
const n = de(e, "modelValue"), r = t;
|
|
1060
|
+
return (l, i) => {
|
|
1061
|
+
const a = P("v-text-field"), s = P("v-icon"), o = fe("ripple");
|
|
1062
|
+
return O(), W("div", Ga, [
|
|
1063
|
+
ne(M(a, {
|
|
1064
|
+
modelValue: n.value,
|
|
1065
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => n.value = u),
|
|
1066
|
+
density: "compact",
|
|
1067
|
+
"hide-details": "",
|
|
1068
|
+
"single-line": "",
|
|
1069
|
+
readonly: l.readonly
|
|
1070
|
+
}, null, 8, ["modelValue", "readonly"]), [
|
|
1071
|
+
[
|
|
1072
|
+
o,
|
|
1073
|
+
void 0,
|
|
1074
|
+
void 0,
|
|
1075
|
+
{ stop: !0 }
|
|
1076
|
+
]
|
|
1146
1077
|
]),
|
|
1147
|
-
|
|
1078
|
+
l.hasDelete ? (O(), x(s, {
|
|
1148
1079
|
key: 0,
|
|
1149
1080
|
class: "mx-2",
|
|
1150
|
-
icon:
|
|
1151
|
-
onClick:
|
|
1081
|
+
icon: F(oe),
|
|
1082
|
+
onClick: i[1] || (i[1] = G((u) => r("delete"), ["stop"]))
|
|
1152
1083
|
}, null, 8, ["icon"])) : Z("", !0)
|
|
1153
1084
|
]);
|
|
1154
1085
|
};
|
|
1155
1086
|
}
|
|
1156
|
-
}),
|
|
1087
|
+
}), pe = (e, t, n, r, l, i) => {
|
|
1088
|
+
const a = E(t, !0);
|
|
1089
|
+
return l !== void 0 && !i ? (typeof n[l] != typeof a && (n[l] = a, r(e, n[l])), n[l]) : (typeof n[t.key] != typeof a && (n[t.key] = a, r(e, n[t.key])), n[t.key]);
|
|
1090
|
+
}, ve = (e, t, n, r, l, i, a) => {
|
|
1091
|
+
const s = E(t, !0);
|
|
1092
|
+
if (typeof r != typeof s) {
|
|
1093
|
+
console.assert(!1);
|
|
1094
|
+
return;
|
|
1095
|
+
}
|
|
1096
|
+
i !== void 0 && !a ? r !== n[i] && (n[i] = r, l(e, n[i])) : r !== n[t.key] && (n[t.key] = r, l(e, n[t.key]));
|
|
1097
|
+
};
|
|
1098
|
+
function qa(e) {
|
|
1099
|
+
return { renderUiStrInput: (n, r, l, i, a) => r.ui !== "strInput" ? (console.assert(!1), y("div", "renderUiStrInput prop ui must be strInput")) : y(za, {
|
|
1100
|
+
modelValue: r.static ? r.value : pe(n, r, l, e, i, a),
|
|
1101
|
+
"onUpdate:modelValue": (s) => {
|
|
1102
|
+
r.static || ve(n, r, l, s, e, i, a);
|
|
1103
|
+
},
|
|
1104
|
+
hasDelete: i !== void 0 && !a,
|
|
1105
|
+
onDelete: () => {
|
|
1106
|
+
i === void 0 || a || (l.splice(i, 1), e(n.slice(0, -1), l));
|
|
1107
|
+
},
|
|
1108
|
+
readonly: r.static || r.readonly
|
|
1109
|
+
}) };
|
|
1110
|
+
}
|
|
1111
|
+
const Ka = { class: "d-flex justify-space-between align-center" }, Ia = /* @__PURE__ */ j({
|
|
1157
1112
|
__name: "numInput",
|
|
1158
|
-
props: /* @__PURE__ */
|
|
1113
|
+
props: /* @__PURE__ */ B({
|
|
1159
1114
|
hasDelete: { type: Boolean, default: !1 },
|
|
1160
1115
|
precision: { default: 4 },
|
|
1161
1116
|
min: { default: () => -1 / 0 },
|
|
@@ -1166,155 +1121,365 @@ const Oe = /* @__PURE__ */ H({
|
|
|
1166
1121
|
modelValue: {},
|
|
1167
1122
|
modelModifiers: {}
|
|
1168
1123
|
}),
|
|
1169
|
-
emits: /* @__PURE__ */
|
|
1124
|
+
emits: /* @__PURE__ */ B(["delete"], ["update:modelValue"]),
|
|
1170
1125
|
setup(e, { emit: t }) {
|
|
1171
1126
|
const n = de(e, "modelValue"), r = t;
|
|
1172
|
-
return (
|
|
1173
|
-
const
|
|
1174
|
-
return
|
|
1175
|
-
|
|
1127
|
+
return (l, i) => {
|
|
1128
|
+
const a = P("v-number-input"), s = P("v-icon"), o = fe("ripple");
|
|
1129
|
+
return O(), W("div", Ka, [
|
|
1130
|
+
ne(M(a, {
|
|
1176
1131
|
modelValue: n.value,
|
|
1177
|
-
"onUpdate:modelValue":
|
|
1132
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => n.value = u),
|
|
1178
1133
|
density: "compact",
|
|
1179
1134
|
"control-variant": "stacked",
|
|
1180
|
-
precision:
|
|
1181
|
-
min:
|
|
1182
|
-
max:
|
|
1183
|
-
step:
|
|
1135
|
+
precision: l.precision,
|
|
1136
|
+
min: l.min,
|
|
1137
|
+
max: l.max,
|
|
1138
|
+
step: l.step,
|
|
1184
1139
|
"hide-details": "",
|
|
1185
1140
|
"single-line": "",
|
|
1186
|
-
readonly:
|
|
1141
|
+
readonly: l.readonly
|
|
1187
1142
|
}, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
|
|
1188
1143
|
[
|
|
1189
|
-
|
|
1144
|
+
o,
|
|
1190
1145
|
void 0,
|
|
1191
1146
|
void 0,
|
|
1192
1147
|
{ stop: !0 }
|
|
1193
1148
|
]
|
|
1194
1149
|
]),
|
|
1195
|
-
|
|
1150
|
+
l.hasDelete ? (O(), x(s, {
|
|
1196
1151
|
key: 0,
|
|
1197
1152
|
class: "mx-2",
|
|
1198
|
-
icon:
|
|
1199
|
-
onClick:
|
|
1153
|
+
icon: F(oe),
|
|
1154
|
+
onClick: i[1] || (i[1] = G((u) => r("delete"), ["stop"]))
|
|
1200
1155
|
}, null, 8, ["icon"])) : Z("", !0)
|
|
1201
1156
|
]);
|
|
1202
1157
|
};
|
|
1203
1158
|
}
|
|
1204
|
-
})
|
|
1205
|
-
|
|
1206
|
-
|
|
1159
|
+
});
|
|
1160
|
+
function Xa(e) {
|
|
1161
|
+
return { renderUiNumInput: (n, r, l, i, a) => r.ui !== "numInput" ? (console.assert(!1), y("div", "renderUiNumInput prop ui must be numInput")) : y(Ia, {
|
|
1162
|
+
modelValue: pe(n, r, l, e, i, a),
|
|
1163
|
+
"onUpdate:modelValue": (s) => {
|
|
1164
|
+
ve(n, r, l, s, e, i, a);
|
|
1165
|
+
},
|
|
1166
|
+
hasDelete: i !== void 0 && !a,
|
|
1167
|
+
onDelete: () => {
|
|
1168
|
+
i === void 0 || a || (l.splice(i, 1), e(n.slice(0, -1), l));
|
|
1169
|
+
},
|
|
1170
|
+
readonly: r.readonly
|
|
1171
|
+
}) };
|
|
1172
|
+
}
|
|
1173
|
+
const Ya = { class: "d-flex justify-space-between align-center" }, Za = /* @__PURE__ */ j({
|
|
1174
|
+
__name: "switch",
|
|
1175
|
+
props: /* @__PURE__ */ B({
|
|
1207
1176
|
hasDelete: { type: Boolean, default: !1 },
|
|
1208
|
-
readonly: { type: Boolean, default: !1 }
|
|
1209
|
-
items: {}
|
|
1177
|
+
readonly: { type: Boolean, default: !1 }
|
|
1210
1178
|
}, {
|
|
1211
|
-
modelValue: {},
|
|
1179
|
+
modelValue: { type: Boolean },
|
|
1212
1180
|
modelModifiers: {}
|
|
1213
1181
|
}),
|
|
1214
|
-
emits: /* @__PURE__ */
|
|
1182
|
+
emits: /* @__PURE__ */ B(["delete"], ["update:modelValue"]),
|
|
1215
1183
|
setup(e, { emit: t }) {
|
|
1216
1184
|
const n = de(e, "modelValue"), r = t;
|
|
1217
|
-
return (
|
|
1218
|
-
const
|
|
1219
|
-
return
|
|
1220
|
-
|
|
1185
|
+
return (l, i) => {
|
|
1186
|
+
const a = P("v-switch"), s = P("v-icon");
|
|
1187
|
+
return O(), W("div", Ya, [
|
|
1188
|
+
M(a, {
|
|
1221
1189
|
modelValue: n.value,
|
|
1222
|
-
"onUpdate:modelValue":
|
|
1190
|
+
"onUpdate:modelValue": i[0] || (i[0] = (o) => n.value = o),
|
|
1191
|
+
class: "ml-1",
|
|
1223
1192
|
density: "compact",
|
|
1224
|
-
|
|
1193
|
+
color: "primary",
|
|
1225
1194
|
"hide-details": "",
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
[
|
|
1230
|
-
p,
|
|
1231
|
-
void 0,
|
|
1232
|
-
void 0,
|
|
1233
|
-
{ stop: !0 }
|
|
1234
|
-
]
|
|
1235
|
-
]),
|
|
1236
|
-
s.hasDelete ? (C(), U(f, {
|
|
1195
|
+
readonly: l.readonly
|
|
1196
|
+
}, null, 8, ["modelValue", "readonly"]),
|
|
1197
|
+
l.hasDelete ? (O(), x(s, {
|
|
1237
1198
|
key: 0,
|
|
1238
1199
|
class: "mx-2",
|
|
1239
|
-
icon:
|
|
1240
|
-
onClick:
|
|
1200
|
+
icon: F(oe),
|
|
1201
|
+
onClick: i[1] || (i[1] = G((o) => r("delete"), ["stop"]))
|
|
1241
1202
|
}, null, 8, ["icon"])) : Z("", !0)
|
|
1242
1203
|
]);
|
|
1243
1204
|
};
|
|
1244
1205
|
}
|
|
1245
|
-
})
|
|
1246
|
-
|
|
1247
|
-
|
|
1206
|
+
});
|
|
1207
|
+
function Wa(e) {
|
|
1208
|
+
return { renderUiSwitch: (n, r, l, i, a) => r.ui !== "switch" ? (console.assert(!1), y("div", "renderUiSwitch prop ui must be switch")) : y(Za, {
|
|
1209
|
+
modelValue: pe(n, r, l, e, i, a),
|
|
1210
|
+
"onUpdate:modelValue": (s) => {
|
|
1211
|
+
ve(n, r, l, s, e, i, a);
|
|
1212
|
+
},
|
|
1213
|
+
hasDelete: i !== void 0 && !a,
|
|
1214
|
+
onDelete: () => {
|
|
1215
|
+
i === void 0 || a || (l.splice(i, 1), e(n.slice(0, 1), l));
|
|
1216
|
+
},
|
|
1217
|
+
readonly: r.readonly
|
|
1218
|
+
}) };
|
|
1219
|
+
}
|
|
1220
|
+
const Ja = { class: "d-flex justify-space-between align-center" }, Qa = /* @__PURE__ */ j({
|
|
1221
|
+
__name: "select",
|
|
1222
|
+
props: /* @__PURE__ */ B({
|
|
1248
1223
|
hasDelete: { type: Boolean, default: !1 },
|
|
1249
|
-
readonly: { type: Boolean, default: !1 }
|
|
1224
|
+
readonly: { type: Boolean, default: !1 },
|
|
1225
|
+
items: {}
|
|
1250
1226
|
}, {
|
|
1251
1227
|
modelValue: {},
|
|
1252
1228
|
modelModifiers: {}
|
|
1253
1229
|
}),
|
|
1254
|
-
emits: /* @__PURE__ */
|
|
1230
|
+
emits: /* @__PURE__ */ B(["delete"], ["update:modelValue"]),
|
|
1255
1231
|
setup(e, { emit: t }) {
|
|
1256
1232
|
const n = de(e, "modelValue"), r = t;
|
|
1257
|
-
return (
|
|
1258
|
-
const
|
|
1259
|
-
return
|
|
1260
|
-
|
|
1233
|
+
return (l, i) => {
|
|
1234
|
+
const a = P("v-select"), s = P("v-icon"), o = fe("ripple");
|
|
1235
|
+
return O(), W("div", Ja, [
|
|
1236
|
+
ne(M(a, {
|
|
1261
1237
|
modelValue: n.value,
|
|
1262
|
-
"onUpdate:modelValue":
|
|
1238
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => n.value = u),
|
|
1263
1239
|
density: "compact",
|
|
1240
|
+
items: l.items,
|
|
1264
1241
|
"hide-details": "",
|
|
1265
1242
|
"single-line": "",
|
|
1266
|
-
readonly:
|
|
1267
|
-
}, null, 8, ["modelValue", "readonly"]), [
|
|
1243
|
+
readonly: l.readonly
|
|
1244
|
+
}, null, 8, ["modelValue", "items", "readonly"]), [
|
|
1268
1245
|
[
|
|
1269
|
-
|
|
1246
|
+
o,
|
|
1270
1247
|
void 0,
|
|
1271
1248
|
void 0,
|
|
1272
1249
|
{ stop: !0 }
|
|
1273
1250
|
]
|
|
1274
1251
|
]),
|
|
1275
|
-
|
|
1252
|
+
l.hasDelete ? (O(), x(s, {
|
|
1276
1253
|
key: 0,
|
|
1277
1254
|
class: "mx-2",
|
|
1278
|
-
icon:
|
|
1279
|
-
onClick:
|
|
1255
|
+
icon: F(oe),
|
|
1256
|
+
onClick: i[1] || (i[1] = G((u) => r("delete"), ["stop"]))
|
|
1280
1257
|
}, null, 8, ["icon"])) : Z("", !0)
|
|
1281
1258
|
]);
|
|
1282
1259
|
};
|
|
1283
1260
|
}
|
|
1284
|
-
})
|
|
1285
|
-
|
|
1286
|
-
|
|
1261
|
+
});
|
|
1262
|
+
function ka(e) {
|
|
1263
|
+
const { t } = Ae();
|
|
1264
|
+
return { renderUiSelect: (r, l, i, a, s) => l.ui !== "select" ? (console.assert(!1), y("div", "renderUiSelect prop ui must be select")) : y(Qa, {
|
|
1265
|
+
modelValue: pe(r, l, i, e, a, s),
|
|
1266
|
+
"onUpdate:modelValue": (o) => {
|
|
1267
|
+
ve(r, l, i, o, e, a, s);
|
|
1268
|
+
},
|
|
1269
|
+
hasDelete: a !== void 0 && !s,
|
|
1270
|
+
onDelete: () => {
|
|
1271
|
+
a === void 0 || s || (i.splice(a, 1), e(r.slice(0, -1), i));
|
|
1272
|
+
},
|
|
1273
|
+
items: (() => {
|
|
1274
|
+
const o = [];
|
|
1275
|
+
return l.items.forEach(({ title: u, value: f }) => {
|
|
1276
|
+
o.push({
|
|
1277
|
+
title: t(u),
|
|
1278
|
+
value: f
|
|
1279
|
+
});
|
|
1280
|
+
}), o;
|
|
1281
|
+
})(),
|
|
1282
|
+
readonly: l.readonly
|
|
1283
|
+
}) };
|
|
1284
|
+
}
|
|
1285
|
+
const es = /* @__PURE__ */ j({
|
|
1286
|
+
__name: "compSelect",
|
|
1287
|
+
setup(e) {
|
|
1288
|
+
const t = Y(() => "<n/a>"), n = () => {
|
|
1289
|
+
}, { open: r } = Bt("compSelectDlg", n);
|
|
1290
|
+
return (l, i) => {
|
|
1291
|
+
const a = P("v-btn"), s = P("v-dialog");
|
|
1292
|
+
return O(), x(s, {
|
|
1293
|
+
modelValue: F(r),
|
|
1294
|
+
"onUpdate:modelValue": i[0] || (i[0] = (o) => xt(r) ? r.value = o : null)
|
|
1295
|
+
}, {
|
|
1296
|
+
activator: I(({ props: o }) => [
|
|
1297
|
+
M(a, Ft(o, {
|
|
1298
|
+
density: "comfortable",
|
|
1299
|
+
block: ""
|
|
1300
|
+
}), {
|
|
1301
|
+
default: I(() => [
|
|
1302
|
+
Ze(Me(t.value), 1)
|
|
1303
|
+
]),
|
|
1304
|
+
_: 2
|
|
1305
|
+
}, 1040)
|
|
1306
|
+
]),
|
|
1307
|
+
_: 1
|
|
1308
|
+
}, 8, ["modelValue"]);
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
});
|
|
1312
|
+
function ts(e) {
|
|
1313
|
+
return { renderUiCompSelect: (n, r, l, i, a) => r.ui !== "compSelect" ? (console.assert(!1), y("div", "renderUiCompSelect prop ui must be compSelect")) : (console.log(n, r, l, i, a, e), y(es, {})) };
|
|
1314
|
+
}
|
|
1315
|
+
const ns = { class: "d-flex justify-space-between align-center" }, rs = /* @__PURE__ */ j({
|
|
1316
|
+
__name: "colorPicker",
|
|
1317
|
+
props: /* @__PURE__ */ B({
|
|
1287
1318
|
hasDelete: { type: Boolean, default: !1 },
|
|
1288
1319
|
readonly: { type: Boolean, default: !1 }
|
|
1289
1320
|
}, {
|
|
1290
|
-
modelValue: {
|
|
1321
|
+
modelValue: {},
|
|
1291
1322
|
modelModifiers: {}
|
|
1292
1323
|
}),
|
|
1293
|
-
emits: /* @__PURE__ */
|
|
1324
|
+
emits: /* @__PURE__ */ B(["delete"], ["update:modelValue"]),
|
|
1294
1325
|
setup(e, { emit: t }) {
|
|
1295
|
-
const n = de(e, "modelValue"), r = t
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
"
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1326
|
+
const n = de(e, "modelValue"), r = t, l = Y(() => {
|
|
1327
|
+
let s = "100%";
|
|
1328
|
+
return e.hasDelete && (s = "calc(100% - 37px)"), {
|
|
1329
|
+
width: s
|
|
1330
|
+
};
|
|
1331
|
+
}), i = Y(() => e.readonly), a = L("hexa");
|
|
1332
|
+
return (s, o) => {
|
|
1333
|
+
const u = P("v-btn"), f = P("v-icon"), d = P("v-color-picker"), h = P("v-menu");
|
|
1334
|
+
return O(), x(h, { "close-on-content-click": !1 }, {
|
|
1335
|
+
activator: I(({ props: g }) => [
|
|
1336
|
+
Ue("div", ns, [
|
|
1337
|
+
Ue("div", {
|
|
1338
|
+
class: "flex-grow-1",
|
|
1339
|
+
style: We(l.value)
|
|
1340
|
+
}, [
|
|
1341
|
+
M(u, Ft(g, {
|
|
1342
|
+
density: "comfortable",
|
|
1343
|
+
color: n.value,
|
|
1344
|
+
block: "",
|
|
1345
|
+
disabled: i.value
|
|
1346
|
+
}), {
|
|
1347
|
+
default: I(() => [
|
|
1348
|
+
Ze(Me(n.value), 1)
|
|
1349
|
+
]),
|
|
1350
|
+
_: 2
|
|
1351
|
+
}, 1040, ["color", "disabled"])
|
|
1352
|
+
], 4),
|
|
1353
|
+
s.hasDelete ? (O(), x(f, {
|
|
1354
|
+
key: 0,
|
|
1355
|
+
class: "mx-2",
|
|
1356
|
+
icon: F(oe),
|
|
1357
|
+
onClick: o[0] || (o[0] = G((_) => r("delete"), ["stop"]))
|
|
1358
|
+
}, null, 8, ["icon"])) : Z("", !0)
|
|
1359
|
+
])
|
|
1360
|
+
]),
|
|
1361
|
+
default: I(() => [
|
|
1362
|
+
M(d, {
|
|
1363
|
+
modelValue: n.value,
|
|
1364
|
+
"onUpdate:modelValue": o[1] || (o[1] = (g) => n.value = g),
|
|
1365
|
+
mode: a.value,
|
|
1366
|
+
"onUpdate:mode": o[2] || (o[2] = (g) => a.value = g),
|
|
1367
|
+
"show-swatches": "",
|
|
1368
|
+
"swatches-max-height": "150px"
|
|
1369
|
+
}, null, 8, ["modelValue", "mode"])
|
|
1370
|
+
]),
|
|
1371
|
+
_: 1
|
|
1372
|
+
});
|
|
1373
|
+
};
|
|
1374
|
+
}
|
|
1375
|
+
});
|
|
1376
|
+
function is(e) {
|
|
1377
|
+
return { renderUiColorPicker: (n, r, l, i, a) => r.ui !== "colorPicker" ? (console.assert(!1), y("div", "renderUiColorPicker prop ui must be colorPicker")) : y(rs, {
|
|
1378
|
+
modelValue: pe(n, r, l, e, i, a),
|
|
1379
|
+
"onUpdate:modelValue": (s) => {
|
|
1380
|
+
ve(n, r, l, s, e, i, a);
|
|
1381
|
+
},
|
|
1382
|
+
hasDelete: i !== void 0 && !a,
|
|
1383
|
+
onDelete: () => {
|
|
1384
|
+
i === void 0 || a || (l.splice(i, 1), e(n.slice(0, -1), l));
|
|
1385
|
+
},
|
|
1386
|
+
readonly: r.readonly
|
|
1387
|
+
}) };
|
|
1388
|
+
}
|
|
1389
|
+
const ls = { class: "d-flex justify-space-between align-center my-2" }, as = { class: "flex-grow-1" }, ss = /* @__PURE__ */ j({
|
|
1390
|
+
__name: "multiTypes",
|
|
1391
|
+
props: /* @__PURE__ */ B({
|
|
1392
|
+
hasDelete: { type: Boolean, default: !1 },
|
|
1393
|
+
types: {}
|
|
1394
|
+
}, {
|
|
1395
|
+
modelValue: { default: "" },
|
|
1396
|
+
modelModifiers: {}
|
|
1397
|
+
}),
|
|
1398
|
+
emits: /* @__PURE__ */ B(["delete"], ["update:modelValue"]),
|
|
1399
|
+
setup(e, { emit: t }) {
|
|
1400
|
+
const { t: n } = Ae(), r = de(e, "modelValue"), l = t, i = L(0), a = Y(() => {
|
|
1401
|
+
const u = [];
|
|
1402
|
+
return e.types.forEach((f, d) => {
|
|
1403
|
+
u.push({
|
|
1404
|
+
title: n(f.name),
|
|
1405
|
+
value: d
|
|
1406
|
+
});
|
|
1407
|
+
}), u;
|
|
1408
|
+
});
|
|
1409
|
+
e.types.some((u, f) => u.validator(r.value) ? (i.value = f, !0) : !1);
|
|
1410
|
+
const s = Y(() => e.types[i.value]);
|
|
1411
|
+
ze(s, (u) => {
|
|
1412
|
+
r.value = u.default;
|
|
1413
|
+
});
|
|
1414
|
+
const o = L(0);
|
|
1415
|
+
return bn(() => {
|
|
1416
|
+
s.value.ui === "pixelInput" ? o.value = wn(r.value) : s.value.ui === "percentInput" && (o.value = Sn(r.value));
|
|
1417
|
+
}), ze(o, (u) => {
|
|
1418
|
+
s.value.ui === "pixelInput" ? r.value = u + "px" : s.value.ui === "percentInput" && (r.value = u + "%");
|
|
1419
|
+
}), (u, f) => {
|
|
1420
|
+
const d = P("v-select"), h = P("v-number-input"), g = P("v-icon"), _ = fe("ripple");
|
|
1421
|
+
return O(), W("div", ls, [
|
|
1422
|
+
Ue("div", as, [
|
|
1423
|
+
ne(M(d, {
|
|
1424
|
+
modelValue: i.value,
|
|
1425
|
+
"onUpdate:modelValue": f[0] || (f[0] = (w) => i.value = w),
|
|
1426
|
+
density: "compact",
|
|
1427
|
+
items: a.value,
|
|
1428
|
+
"hide-details": "",
|
|
1429
|
+
"single-line": ""
|
|
1430
|
+
}, null, 8, ["modelValue", "items"]), [
|
|
1431
|
+
[
|
|
1432
|
+
_,
|
|
1433
|
+
void 0,
|
|
1434
|
+
void 0,
|
|
1435
|
+
{ stop: !0 }
|
|
1436
|
+
]
|
|
1437
|
+
]),
|
|
1438
|
+
s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? ne((O(), x(h, {
|
|
1439
|
+
key: 0,
|
|
1440
|
+
modelValue: o.value,
|
|
1441
|
+
"onUpdate:modelValue": f[1] || (f[1] = (w) => o.value = w),
|
|
1442
|
+
density: "compact",
|
|
1443
|
+
"control-variant": "stacked",
|
|
1444
|
+
precision: s.value.precision,
|
|
1445
|
+
min: s.value.min,
|
|
1446
|
+
max: s.value.max,
|
|
1447
|
+
step: s.value.step,
|
|
1448
|
+
"hide-details": "",
|
|
1449
|
+
"single-line": ""
|
|
1450
|
+
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
1451
|
+
[
|
|
1452
|
+
_,
|
|
1453
|
+
void 0,
|
|
1454
|
+
void 0,
|
|
1455
|
+
{ stop: !0 }
|
|
1456
|
+
]
|
|
1457
|
+
]) : Z("", !0)
|
|
1458
|
+
]),
|
|
1459
|
+
u.hasDelete ? (O(), x(g, {
|
|
1309
1460
|
key: 0,
|
|
1310
1461
|
class: "mx-2",
|
|
1311
|
-
icon:
|
|
1312
|
-
onClick:
|
|
1462
|
+
icon: F(oe),
|
|
1463
|
+
onClick: f[2] || (f[2] = G((w) => l("delete"), ["stop"]))
|
|
1313
1464
|
}, null, 8, ["icon"])) : Z("", !0)
|
|
1314
1465
|
]);
|
|
1315
1466
|
};
|
|
1316
1467
|
}
|
|
1317
|
-
})
|
|
1468
|
+
});
|
|
1469
|
+
function os(e) {
|
|
1470
|
+
return { renderUiMultiTypes: (n, r, l, i, a) => r.ui !== "multiTypes" ? (console.assert(!1), y("div", "renderUiMultiTypes prop ui must be multiTypes")) : y(ss, {
|
|
1471
|
+
modelValue: pe(n, r, l, e, i, a),
|
|
1472
|
+
"onUpdate:modelValue": (s) => {
|
|
1473
|
+
ve(n, r, l, s, e, i, a);
|
|
1474
|
+
},
|
|
1475
|
+
hasDelete: i !== void 0 && !a,
|
|
1476
|
+
onDelete: () => {
|
|
1477
|
+
i === void 0 || a || (l.splice(i, 1), e(n.slice(0, -1), l));
|
|
1478
|
+
},
|
|
1479
|
+
types: r.types
|
|
1480
|
+
}) };
|
|
1481
|
+
}
|
|
1482
|
+
const Lt = (e) => !(e instanceof Array), Ge = (e) => e instanceof Array, us = /* @__PURE__ */ j({
|
|
1318
1483
|
__name: "index",
|
|
1319
1484
|
props: {
|
|
1320
1485
|
unique: {},
|
|
@@ -1323,241 +1488,124 @@ const Oe = /* @__PURE__ */ H({
|
|
|
1323
1488
|
},
|
|
1324
1489
|
emits: ["change"],
|
|
1325
1490
|
setup(e, { emit: t }) {
|
|
1326
|
-
const { t: n } =
|
|
1327
|
-
|
|
1328
|
-
|
|
1491
|
+
const { t: n } = Ae(), { backgroundColor1: r } = Je(), l = e, i = t, a = L("20px"), s = L("56px"), o = L("200px"), u = An({}), f = L({}), d = (v, c) => {
|
|
1492
|
+
Mt(f, l.config, l.object), i("change", v, c);
|
|
1493
|
+
};
|
|
1494
|
+
ze(
|
|
1495
|
+
[() => l.config, () => l.object],
|
|
1329
1496
|
() => {
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
(u, i) => {
|
|
1334
|
-
l("change", u, i);
|
|
1335
|
-
}
|
|
1336
|
-
);
|
|
1497
|
+
Mt(f, l.config, l.object, (v, c) => {
|
|
1498
|
+
i("change", v, c);
|
|
1499
|
+
});
|
|
1337
1500
|
},
|
|
1338
1501
|
{ immediate: !0 }
|
|
1339
1502
|
);
|
|
1340
|
-
const h = (
|
|
1341
|
-
let i, o = g.value;
|
|
1342
|
-
return u.forEach((a) => {
|
|
1343
|
-
let v;
|
|
1344
|
-
if (typeof a == "string" ? ot(o) && (v = o[a]) : Ue(o) && (v = o[a]), !v)
|
|
1345
|
-
return console.assert(!1, `isPropChanged unpkg failed keys=${u}`), !1;
|
|
1346
|
-
i = v, o = v.children;
|
|
1347
|
-
}), (i == null ? void 0 : i.change) ?? !1;
|
|
1348
|
-
}, y = (u, i) => {
|
|
1349
|
-
g.value = Ut(s.config, s.object), l("change", u, i);
|
|
1350
|
-
}, T = (u, i, o) => {
|
|
1351
|
-
let a = n(i.name);
|
|
1352
|
-
return h(u) && (a += " *"), _(
|
|
1353
|
-
Va,
|
|
1354
|
-
{
|
|
1355
|
-
minHeight: f.value
|
|
1356
|
-
},
|
|
1357
|
-
() => [
|
|
1358
|
-
_("span", { class: "ml-1", innerHTML: a }),
|
|
1359
|
-
_("div", { style: { width: p.value } }, o)
|
|
1360
|
-
]
|
|
1361
|
-
);
|
|
1362
|
-
}, $ = (u, i, o, a, v) => {
|
|
1363
|
-
if (i.ui !== "dummy")
|
|
1364
|
-
return console.assert(!1), _("div", "renderUiDummy prop ui must be dummy");
|
|
1365
|
-
if (a !== void 0 && !v) {
|
|
1366
|
-
const m = L(i, !0);
|
|
1367
|
-
typeof o[a] != typeof m && (o[a] = m, y(u, o[a]));
|
|
1368
|
-
} else {
|
|
1369
|
-
const m = L(i);
|
|
1370
|
-
typeof o[i.key] != typeof m && (o[i.key] = m, y(u, o[i.key]));
|
|
1371
|
-
}
|
|
1372
|
-
}, b = (u, i, o, a, v) => i.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(Ia, {
|
|
1373
|
-
modelValue: i.static ? i.value : se(u, i, o, a, v),
|
|
1374
|
-
"onUpdate:modelValue": (m) => {
|
|
1375
|
-
i.static || ue(u, i, o, m, a, v);
|
|
1376
|
-
},
|
|
1377
|
-
hasDelete: a !== void 0 && !v,
|
|
1378
|
-
onDelete: () => {
|
|
1379
|
-
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, -1), o));
|
|
1380
|
-
},
|
|
1381
|
-
readonly: i.static || i.readonly
|
|
1382
|
-
}), V = (u, i, o, a, v) => i.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(Xa, {
|
|
1383
|
-
modelValue: se(u, i, o, a, v),
|
|
1384
|
-
"onUpdate:modelValue": (m) => {
|
|
1385
|
-
ue(u, i, o, m, a, v);
|
|
1386
|
-
},
|
|
1387
|
-
hasDelete: a !== void 0 && !v,
|
|
1388
|
-
onDelete: () => {
|
|
1389
|
-
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, -1), o));
|
|
1390
|
-
},
|
|
1391
|
-
readonly: i.readonly
|
|
1392
|
-
}), D = (u, i, o, a, v) => i.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(Qa, {
|
|
1393
|
-
modelValue: se(u, i, o, a, v),
|
|
1394
|
-
"onUpdate:modelValue": (m) => {
|
|
1395
|
-
ue(u, i, o, m, a, v);
|
|
1396
|
-
},
|
|
1397
|
-
hasDelete: a !== void 0 && !v,
|
|
1398
|
-
onDelete: () => {
|
|
1399
|
-
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, 1), o));
|
|
1400
|
-
},
|
|
1401
|
-
readonly: i.readonly
|
|
1402
|
-
}), z = (u, i, o, a, v) => i.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _(Za, {
|
|
1403
|
-
modelValue: se(u, i, o, a, v),
|
|
1404
|
-
"onUpdate:modelValue": (m) => {
|
|
1405
|
-
ue(u, i, o, m, a, v);
|
|
1406
|
-
},
|
|
1407
|
-
hasDelete: a !== void 0 && !v,
|
|
1408
|
-
onDelete: () => {
|
|
1409
|
-
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, -1), o));
|
|
1410
|
-
},
|
|
1411
|
-
items: (() => {
|
|
1412
|
-
const m = [];
|
|
1413
|
-
return i.items.forEach(({ title: O, value: q }) => {
|
|
1414
|
-
m.push({
|
|
1415
|
-
title: n(O),
|
|
1416
|
-
value: q
|
|
1417
|
-
});
|
|
1418
|
-
}), m;
|
|
1419
|
-
})(),
|
|
1420
|
-
readonly: i.readonly
|
|
1421
|
-
}), be = (u, i, o, a, v) => i.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(ja, {
|
|
1422
|
-
modelValue: se(u, i, o, a, v),
|
|
1423
|
-
"onUpdate:modelValue": (m) => {
|
|
1424
|
-
ue(u, i, o, m, a, v);
|
|
1425
|
-
},
|
|
1426
|
-
hasDelete: a !== void 0 && !v,
|
|
1427
|
-
onDelete: () => {
|
|
1428
|
-
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, -1), o));
|
|
1429
|
-
},
|
|
1430
|
-
readonly: i.readonly
|
|
1431
|
-
}), ae = (u, i, o, a, v) => i.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(qa, {
|
|
1432
|
-
modelValue: se(u, i, o, a, v),
|
|
1433
|
-
"onUpdate:modelValue": (m) => {
|
|
1434
|
-
ue(u, i, o, m, a, v);
|
|
1435
|
-
},
|
|
1436
|
-
hasDelete: a !== void 0 && !v,
|
|
1437
|
-
onDelete: () => {
|
|
1438
|
-
a === void 0 || v || (o.splice(a, 1), y(u.slice(0, -1), o));
|
|
1439
|
-
},
|
|
1440
|
-
types: i.types
|
|
1441
|
-
}), oe = (u, i, o, a, v) => i.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : (console.log(u, i, o, a, v), _(Ga, {})), se = (u, i, o, a, v) => {
|
|
1442
|
-
const m = L(i, !0);
|
|
1443
|
-
return a !== void 0 && !v ? (typeof o[a] != typeof m && (o[a] = m, y(u, o[a])), o[a]) : (typeof o[i.key] != typeof m && (o[i.key] = m, y(u, o[i.key])), o[i.key]);
|
|
1444
|
-
}, ue = (u, i, o, a, v, m) => {
|
|
1445
|
-
const O = L(i, !0);
|
|
1446
|
-
if (typeof a != typeof O) {
|
|
1447
|
-
console.assert(!1);
|
|
1448
|
-
return;
|
|
1449
|
-
}
|
|
1450
|
-
v !== void 0 && !m ? a !== o[v] && (o[v] = a, y(u, o[v])) : a !== o[i.key] && (o[i.key] = a, y(u, o[i.key]));
|
|
1451
|
-
}, Ae = (u, i, o, a, v, m) => (u = un(u), v !== void 0 ? (u.push(v), m && u.push(i.key)) : u.push(i.key), i.ui ? i.array && v === void 0 ? vn(u, i, o, a, v, m) : mn(u, i, o, v, m) : i.array ? dn(u, i, o, a, v, m) : pn(
|
|
1452
|
-
u,
|
|
1453
|
-
i,
|
|
1454
|
-
o,
|
|
1455
|
-
a,
|
|
1503
|
+
const { renderProp: h } = Ha(f, s, o), { renderUiDummy: g } = ja(d), { renderUiStrInput: _ } = qa(d), { renderUiNumInput: w } = Xa(d), { renderUiSwitch: C } = Wa(d), { renderUiSelect: U } = ka(d), { renderUiColorPicker: R } = is(d), { renderUiMultiTypes: q } = os(d), { renderUiCompSelect: Q } = ts(d), K = (v, c, m, p, T, S) => (v = un(v), T !== void 0 ? (v.push(T), S && v.push(c.key)) : v.push(c.key), c.ui ? c.array && T === void 0 ? vn(v, c, m, p, T, S) : mn(v, c, m, T, S) : c.array ? dn(v, c, m, p, T, S) : pn(
|
|
1456
1504
|
v,
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
if (
|
|
1464
|
-
return console.assert(!1),
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1505
|
+
c,
|
|
1506
|
+
m,
|
|
1507
|
+
p,
|
|
1508
|
+
T,
|
|
1509
|
+
S
|
|
1510
|
+
)), dn = (v, c, m, p, T, S) => {
|
|
1511
|
+
if (c.ui)
|
|
1512
|
+
return console.assert(!1), y("div", "renderBranchArray prop ui must be invalid");
|
|
1513
|
+
if (!c.array)
|
|
1514
|
+
return console.assert(!1), y("div", "renderBranchArray prop array must be valid");
|
|
1515
|
+
if (!p)
|
|
1516
|
+
return console.assert(!1), y("div", "renderBranchArray branch must be valid");
|
|
1517
|
+
let D;
|
|
1518
|
+
T !== void 0 && !S ? (m[T] instanceof Array || (m[T] = E(c), d(v, m[c.key])), D = m[T]) : (m[c.key] instanceof Array || (m[c.key] = E(c), d(v, m[c.key])), D = m[c.key]);
|
|
1519
|
+
let ee = n(c.name);
|
|
1520
|
+
p.collapse && _e(f, v) && (ee += " *");
|
|
1521
|
+
const me = y(Oe, {
|
|
1522
|
+
title: ee,
|
|
1523
|
+
collapse: p.collapse,
|
|
1472
1524
|
hasCreate: !0,
|
|
1473
|
-
onCollapse: (
|
|
1474
|
-
|
|
1525
|
+
onCollapse: (b) => {
|
|
1526
|
+
p.collapse = b;
|
|
1475
1527
|
},
|
|
1476
1528
|
onCreate: () => {
|
|
1477
|
-
|
|
1529
|
+
D.push({}), d(v, D);
|
|
1478
1530
|
}
|
|
1479
|
-
}),
|
|
1531
|
+
}), N = y(
|
|
1480
1532
|
"div",
|
|
1481
1533
|
{
|
|
1482
1534
|
style: {
|
|
1483
|
-
paddingLeft:
|
|
1535
|
+
paddingLeft: a.value
|
|
1484
1536
|
}
|
|
1485
1537
|
},
|
|
1486
1538
|
(() => {
|
|
1487
|
-
const
|
|
1488
|
-
for (let
|
|
1489
|
-
if (!
|
|
1539
|
+
const b = [];
|
|
1540
|
+
for (let V = 0; V < D.length; V++) {
|
|
1541
|
+
if (!Ge(p.children)) {
|
|
1490
1542
|
console.assert(!1);
|
|
1491
1543
|
break;
|
|
1492
1544
|
}
|
|
1493
|
-
|
|
1545
|
+
p.children[V] || p.children.push({
|
|
1494
1546
|
collapse: !0,
|
|
1495
1547
|
children: {}
|
|
1496
1548
|
});
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1549
|
+
const ue = p.children[V];
|
|
1550
|
+
let st = n("x-prop-tree.entry", { index: V });
|
|
1551
|
+
p.children[V].collapse && _e(f, [...v, V]) && (st += " *");
|
|
1552
|
+
const yn = y(Oe, {
|
|
1553
|
+
title: st,
|
|
1554
|
+
collapse: p.children[V].collapse,
|
|
1502
1555
|
hasDelete: !0,
|
|
1503
|
-
index:
|
|
1504
|
-
onCollapse: (
|
|
1505
|
-
if (!
|
|
1556
|
+
index: V,
|
|
1557
|
+
onCollapse: (te) => {
|
|
1558
|
+
if (!Ge(p.children)) {
|
|
1506
1559
|
console.assert(!1);
|
|
1507
1560
|
return;
|
|
1508
1561
|
}
|
|
1509
|
-
|
|
1562
|
+
p.children[V].collapse = te;
|
|
1510
1563
|
},
|
|
1511
|
-
onDelete: (
|
|
1512
|
-
if (!
|
|
1564
|
+
onDelete: (te) => {
|
|
1565
|
+
if (!Ge(p.children)) {
|
|
1513
1566
|
console.assert(!1);
|
|
1514
1567
|
return;
|
|
1515
1568
|
}
|
|
1516
|
-
|
|
1569
|
+
p.children.splice(te, 1), D.splice(te, 1), d(v, D);
|
|
1517
1570
|
}
|
|
1518
1571
|
});
|
|
1519
|
-
|
|
1520
|
-
const _n =
|
|
1572
|
+
b.push(yn);
|
|
1573
|
+
const _n = y(
|
|
1521
1574
|
"div",
|
|
1522
1575
|
{
|
|
1523
1576
|
style: {
|
|
1524
|
-
paddingLeft:
|
|
1577
|
+
paddingLeft: a.value
|
|
1525
1578
|
}
|
|
1526
1579
|
},
|
|
1527
1580
|
(() => {
|
|
1528
|
-
const
|
|
1529
|
-
return
|
|
1530
|
-
if (!
|
|
1531
|
-
console.assert(!1);
|
|
1532
|
-
return;
|
|
1533
|
-
}
|
|
1534
|
-
const Se = a.children[E];
|
|
1535
|
-
if (!Mt(Se.children)) {
|
|
1581
|
+
const te = [];
|
|
1582
|
+
return c.children.forEach((ge) => {
|
|
1583
|
+
if (!Lt(ue.children)) {
|
|
1536
1584
|
console.assert(!1);
|
|
1537
1585
|
return;
|
|
1538
1586
|
}
|
|
1539
|
-
|
|
1587
|
+
ue.children[ge.key] || (ue.children[ge.key] = {
|
|
1540
1588
|
collapse: !0,
|
|
1541
|
-
children:
|
|
1589
|
+
children: ge.array ? [] : {}
|
|
1542
1590
|
});
|
|
1543
|
-
const hn =
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1591
|
+
const hn = K(
|
|
1592
|
+
v,
|
|
1593
|
+
ge,
|
|
1594
|
+
D[V],
|
|
1595
|
+
ue.children[ge.key],
|
|
1596
|
+
V,
|
|
1549
1597
|
!0
|
|
1550
1598
|
);
|
|
1551
|
-
|
|
1552
|
-
}),
|
|
1599
|
+
te.push(hn);
|
|
1600
|
+
}), te;
|
|
1553
1601
|
})()
|
|
1554
1602
|
);
|
|
1555
|
-
|
|
1603
|
+
p.children[V].collapse || b.push(_n);
|
|
1556
1604
|
}
|
|
1557
|
-
return
|
|
1605
|
+
return b;
|
|
1558
1606
|
})()
|
|
1559
1607
|
);
|
|
1560
|
-
return
|
|
1608
|
+
return y(
|
|
1561
1609
|
"div",
|
|
1562
1610
|
{
|
|
1563
1611
|
style: {
|
|
@@ -1565,58 +1613,58 @@ const Oe = /* @__PURE__ */ H({
|
|
|
1565
1613
|
}
|
|
1566
1614
|
},
|
|
1567
1615
|
(() => {
|
|
1568
|
-
const
|
|
1569
|
-
return
|
|
1616
|
+
const b = [];
|
|
1617
|
+
return b.push(me), p.collapse || b.push(N), b;
|
|
1570
1618
|
})()
|
|
1571
1619
|
);
|
|
1572
|
-
}, pn = (
|
|
1573
|
-
if (
|
|
1574
|
-
return console.assert(!1),
|
|
1575
|
-
if (
|
|
1576
|
-
return console.assert(!1),
|
|
1577
|
-
if (!
|
|
1578
|
-
return console.assert(!1),
|
|
1579
|
-
let
|
|
1580
|
-
|
|
1581
|
-
const
|
|
1582
|
-
title:
|
|
1583
|
-
collapse:
|
|
1584
|
-
onCollapse: (
|
|
1585
|
-
|
|
1620
|
+
}, pn = (v, c, m, p, T, S) => {
|
|
1621
|
+
if (c.ui)
|
|
1622
|
+
return console.assert(!1), y("div", "renderBranchScalar prop ui must be invalid");
|
|
1623
|
+
if (c.array)
|
|
1624
|
+
return console.assert(!1), y("div", "renderBranchScalar prop array must be invalid");
|
|
1625
|
+
if (!p)
|
|
1626
|
+
return console.assert(!1), y("div", "renderBranchScalar branch must be valid");
|
|
1627
|
+
let D = n(c.name);
|
|
1628
|
+
p.collapse && _e(f, v) && (D += " *");
|
|
1629
|
+
const ee = y(Oe, {
|
|
1630
|
+
title: D,
|
|
1631
|
+
collapse: p.collapse,
|
|
1632
|
+
onCollapse: (N) => {
|
|
1633
|
+
p.collapse = N;
|
|
1586
1634
|
},
|
|
1587
|
-
hasDelete:
|
|
1635
|
+
hasDelete: T !== void 0 && !S,
|
|
1588
1636
|
onDelete: () => {
|
|
1589
|
-
|
|
1637
|
+
T === void 0 || S || (m.splice(T, 1), d(v.slice(0, -1), m));
|
|
1590
1638
|
}
|
|
1591
|
-
}),
|
|
1639
|
+
}), me = y(
|
|
1592
1640
|
"div",
|
|
1593
1641
|
{
|
|
1594
1642
|
style: {
|
|
1595
|
-
paddingLeft:
|
|
1643
|
+
paddingLeft: a.value
|
|
1596
1644
|
}
|
|
1597
1645
|
},
|
|
1598
1646
|
(() => {
|
|
1599
|
-
const
|
|
1600
|
-
return
|
|
1601
|
-
if (!
|
|
1647
|
+
const N = [];
|
|
1648
|
+
return c.children.forEach((b) => {
|
|
1649
|
+
if (!Lt(p.children)) {
|
|
1602
1650
|
console.assert(!1);
|
|
1603
1651
|
return;
|
|
1604
1652
|
}
|
|
1605
|
-
|
|
1653
|
+
p.children[b.key] || (p.children[b.key] = {
|
|
1606
1654
|
collapse: !0,
|
|
1607
|
-
children: !
|
|
1655
|
+
children: !b.ui && b.array ? [] : {}
|
|
1608
1656
|
});
|
|
1609
|
-
const
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
(typeof
|
|
1613
|
-
|
|
1657
|
+
const V = K(
|
|
1658
|
+
v,
|
|
1659
|
+
b,
|
|
1660
|
+
(typeof m[c.key] != "object" && (m[c.key] = {}, d(v, m[c.key])), m[c.key]),
|
|
1661
|
+
p.children[b.key]
|
|
1614
1662
|
);
|
|
1615
|
-
|
|
1616
|
-
}),
|
|
1663
|
+
N.push(V);
|
|
1664
|
+
}), N;
|
|
1617
1665
|
})()
|
|
1618
1666
|
);
|
|
1619
|
-
return
|
|
1667
|
+
return y(
|
|
1620
1668
|
"div",
|
|
1621
1669
|
{
|
|
1622
1670
|
style: {
|
|
@@ -1624,48 +1672,48 @@ const Oe = /* @__PURE__ */ H({
|
|
|
1624
1672
|
}
|
|
1625
1673
|
},
|
|
1626
1674
|
(() => {
|
|
1627
|
-
const
|
|
1628
|
-
return
|
|
1675
|
+
const N = [];
|
|
1676
|
+
return N.push(ee), p.collapse || N.push(me), N;
|
|
1629
1677
|
})()
|
|
1630
1678
|
);
|
|
1631
|
-
}, vn = (
|
|
1632
|
-
if (!
|
|
1633
|
-
return console.assert(!1),
|
|
1634
|
-
if (!
|
|
1635
|
-
return console.assert(!1),
|
|
1636
|
-
if (!
|
|
1637
|
-
return console.assert(!1),
|
|
1638
|
-
let
|
|
1639
|
-
|
|
1640
|
-
let
|
|
1641
|
-
|
|
1642
|
-
const
|
|
1643
|
-
title:
|
|
1644
|
-
collapse:
|
|
1679
|
+
}, vn = (v, c, m, p, T, S) => {
|
|
1680
|
+
if (!c.ui)
|
|
1681
|
+
return console.assert(!1), y("div", "renderLeafArray prop ui must be valid");
|
|
1682
|
+
if (!c.array)
|
|
1683
|
+
return console.assert(!1), y("div", "renderLeafArray prop array must be valid");
|
|
1684
|
+
if (!p)
|
|
1685
|
+
return console.assert(!1), y("div", "renderLeafArray branch must be valid");
|
|
1686
|
+
let D;
|
|
1687
|
+
T !== void 0 && !S ? (m[T] instanceof Array || (m[T] = E(c), d(v, m[T])), D = m[T]) : (m[c.key] instanceof Array || (m[c.key] = E(c), d(v, m[c.key])), D = m[c.key]);
|
|
1688
|
+
let ee = n(c.name);
|
|
1689
|
+
p.collapse && _e(f, v) && (ee += " *");
|
|
1690
|
+
const me = y(Oe, {
|
|
1691
|
+
title: ee,
|
|
1692
|
+
collapse: p.collapse,
|
|
1645
1693
|
hasCreate: !0,
|
|
1646
|
-
onCollapse: (
|
|
1647
|
-
|
|
1694
|
+
onCollapse: (b) => {
|
|
1695
|
+
p.collapse = b;
|
|
1648
1696
|
},
|
|
1649
1697
|
onCreate: () => {
|
|
1650
|
-
|
|
1698
|
+
D.push(E(c, !0)), d(v, D);
|
|
1651
1699
|
}
|
|
1652
|
-
}),
|
|
1700
|
+
}), N = y(
|
|
1653
1701
|
"div",
|
|
1654
1702
|
{
|
|
1655
1703
|
style: {
|
|
1656
|
-
paddingLeft:
|
|
1704
|
+
paddingLeft: a.value
|
|
1657
1705
|
}
|
|
1658
1706
|
},
|
|
1659
1707
|
(() => {
|
|
1660
|
-
const
|
|
1661
|
-
for (let
|
|
1662
|
-
const
|
|
1663
|
-
|
|
1708
|
+
const b = [];
|
|
1709
|
+
for (let V = 0; V < D.length; V++) {
|
|
1710
|
+
const ue = K(v, c, D, void 0, V, !1);
|
|
1711
|
+
b.push(ue);
|
|
1664
1712
|
}
|
|
1665
|
-
return
|
|
1713
|
+
return b;
|
|
1666
1714
|
})()
|
|
1667
1715
|
);
|
|
1668
|
-
return
|
|
1716
|
+
return y(
|
|
1669
1717
|
"div",
|
|
1670
1718
|
{
|
|
1671
1719
|
style: {
|
|
@@ -1673,16 +1721,16 @@ const Oe = /* @__PURE__ */ H({
|
|
|
1673
1721
|
}
|
|
1674
1722
|
},
|
|
1675
1723
|
(() => {
|
|
1676
|
-
const
|
|
1677
|
-
return
|
|
1724
|
+
const b = [];
|
|
1725
|
+
return b.push(me), p.collapse || b.push(N), b;
|
|
1678
1726
|
})()
|
|
1679
1727
|
);
|
|
1680
|
-
}, mn = (
|
|
1681
|
-
if (!
|
|
1682
|
-
return console.assert(!1),
|
|
1683
|
-
let
|
|
1684
|
-
return
|
|
1685
|
-
}, gn = () =>
|
|
1728
|
+
}, mn = (v, c, m, p, T) => {
|
|
1729
|
+
if (!c.ui)
|
|
1730
|
+
return console.assert(!1), y("div", "renderLeafScalar prop ui must be valid");
|
|
1731
|
+
let S;
|
|
1732
|
+
return c.ui === "dummy" ? S = g(v, c, m, p, T) : c.ui === "strInput" ? S = _(v, c, m, p, T) : c.ui === "numInput" ? S = w(v, c, m, p, T) : c.ui === "switch" ? S = C(v, c, m, p, T) : c.ui === "select" ? S = U(v, c, m, p, T) : c.ui === "colorPicker" ? S = R(v, c, m, p, T) : c.ui === "multiTypes" ? S = q(v, c, m, p, T) : c.ui === "compSelect" ? S = Q(v, c, m, p, T) : console.assert(!1, "renderLeafScalar not implemented"), S ? h(v, c, S) : y("div");
|
|
1733
|
+
}, gn = () => y(
|
|
1686
1734
|
"div",
|
|
1687
1735
|
{
|
|
1688
1736
|
class: "text-body-2",
|
|
@@ -1691,34 +1739,34 @@ const Oe = /* @__PURE__ */ H({
|
|
|
1691
1739
|
}
|
|
1692
1740
|
},
|
|
1693
1741
|
(() => {
|
|
1694
|
-
const
|
|
1695
|
-
if (
|
|
1696
|
-
|
|
1697
|
-
const
|
|
1698
|
-
|
|
1699
|
-
|
|
1742
|
+
const v = [];
|
|
1743
|
+
if (l.unique && l.config.length > 0 && l.object) {
|
|
1744
|
+
u[l.unique] || (u[l.unique] = {});
|
|
1745
|
+
const c = u[l.unique];
|
|
1746
|
+
l.config.forEach((m) => {
|
|
1747
|
+
c[m.key] || (c[m.key] = {
|
|
1700
1748
|
collapse: !0,
|
|
1701
|
-
children: !
|
|
1749
|
+
children: !m.ui && m.array ? [] : {}
|
|
1702
1750
|
});
|
|
1703
|
-
const
|
|
1704
|
-
|
|
1751
|
+
const p = K([], m, l.object, c[m.key]);
|
|
1752
|
+
v.push(p);
|
|
1705
1753
|
});
|
|
1706
1754
|
}
|
|
1707
|
-
return
|
|
1755
|
+
return v;
|
|
1708
1756
|
})()
|
|
1709
1757
|
);
|
|
1710
|
-
return (
|
|
1758
|
+
return (v, c) => (O(), W(Nt, null, [
|
|
1711
1759
|
M(gn),
|
|
1712
|
-
M(
|
|
1760
|
+
M(Ua)
|
|
1713
1761
|
], 64));
|
|
1714
1762
|
}
|
|
1715
|
-
}),
|
|
1716
|
-
e.component("XPropTree",
|
|
1717
|
-
},
|
|
1763
|
+
}), cs = (e) => {
|
|
1764
|
+
e.component("XPropTree", us);
|
|
1765
|
+
}, fs = (e, t, n) => {
|
|
1718
1766
|
const r = e[t];
|
|
1719
|
-
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((
|
|
1767
|
+
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((l, i) => {
|
|
1720
1768
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
1721
|
-
|
|
1769
|
+
i.bind(
|
|
1722
1770
|
null,
|
|
1723
1771
|
new Error(
|
|
1724
1772
|
"Unknown variable dynamic import: " + t + (t.split("/").length !== n ? ". Note that variables only represent file names one level deep." : "")
|
|
@@ -1727,11 +1775,11 @@ const Oe = /* @__PURE__ */ H({
|
|
|
1727
1775
|
);
|
|
1728
1776
|
});
|
|
1729
1777
|
};
|
|
1730
|
-
async function
|
|
1731
|
-
return (await
|
|
1778
|
+
async function gs(e) {
|
|
1779
|
+
return (await fs(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-eyioipy9.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-mtvnapj8.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
1732
1780
|
}
|
|
1733
|
-
const
|
|
1781
|
+
const ys = { install: cs };
|
|
1734
1782
|
export {
|
|
1735
|
-
|
|
1736
|
-
|
|
1783
|
+
ys as default,
|
|
1784
|
+
gs as loadLocaleMessagePropTree
|
|
1737
1785
|
};
|