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