x-prop-tree 0.7.2 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/propTree/components/values/iconSelect/icons.d.ts +11 -0
- package/dist/components/propTree/components/values/iconSelect/index.vue.d.ts +2 -0
- package/dist/components/propTree/components/values/iconSelect/item.vue.d.ts +2 -0
- package/dist/components/propTree/components/values/iconSelect/materialDesignIcons.d.ts +11 -0
- package/dist/index.js +634 -653
- package/dist/{vendor.h3srogcv.js → vendor.n68iqk3a.js} +206 -212
- package/package.json +22 -23
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { provide as
|
|
1
|
+
import { provide as ce, inject as de, defineComponent as R, ref as O, computed as K, resolveComponent as S, createBlock as B, openBlock as k, unref as T, isRef as ve, withCtx as J, createVNode as M, createElementBlock as E, Fragment as ke, renderList as qe, createTextVNode as Ve, toDisplayString as W, resolveDirective as le, withDirectives as ee, withModifiers as F, normalizeStyle as I, createElementVNode as X, createCommentVNode as G, renderSlot as dt, h, mergeModels as Y, useModel as z, useId as Me, onUnmounted as we, withKeys as Be, mergeProps as De, watchEffect as Le, watch as re, useTemplateRef as Ke, reactive as ft, onMounted as mt, onBeforeUnmount as vt } from "vue";
|
|
2
2
|
import { useI18n as te } from "vue-i18n";
|
|
3
|
-
import { useViewStack as
|
|
4
|
-
import { c as
|
|
5
|
-
import { getPropDefault as q, pkgs as
|
|
6
|
-
import { globalState as
|
|
7
|
-
import { useDisplay as
|
|
8
|
-
import { XBlockly as
|
|
9
|
-
const
|
|
3
|
+
import { useViewStack as Ce, useColor as ie, eventBus as ue, useSystem as Je, injectDark as pt, injectLocale as yt } from "x-essential-lib";
|
|
4
|
+
import { c as Re, i as Se, r as Ee, v as gt, d as ht } from "./vendor.n68iqk3a.js";
|
|
5
|
+
import { getPropDefault as q, pkgs as He, parsePixelStr as _t, parsePercentStr as kt } from "x-runtime-lib";
|
|
6
|
+
import { globalState as Vt } from "x-state-lib";
|
|
7
|
+
import { useDisplay as Ct } from "vuetify";
|
|
8
|
+
import { XBlockly as St } from "x-block-lib";
|
|
9
|
+
const he = (o, s) => {
|
|
10
10
|
let t = { key: "", name: "", children: o };
|
|
11
11
|
return s.forEach((e) => {
|
|
12
12
|
if (typeof e != "number") {
|
|
@@ -21,7 +21,7 @@ const _e = (o, s) => {
|
|
|
21
21
|
t = t.children.find((n) => n.key === e);
|
|
22
22
|
}
|
|
23
23
|
}), t;
|
|
24
|
-
},
|
|
24
|
+
}, me = (o, s) => {
|
|
25
25
|
let t = o;
|
|
26
26
|
return s.forEach((e) => {
|
|
27
27
|
if (!t) {
|
|
@@ -30,7 +30,7 @@ const _e = (o, s) => {
|
|
|
30
30
|
}
|
|
31
31
|
t = t[e];
|
|
32
32
|
}), t;
|
|
33
|
-
},
|
|
33
|
+
}, Ne = (o) => !(o instanceof Array), Pe = (o) => o instanceof Array, Ut = (o, s) => {
|
|
34
34
|
const t = (e, n) => {
|
|
35
35
|
if (e.ui !== n.ui || e.array !== n.array)
|
|
36
36
|
return !1;
|
|
@@ -44,10 +44,10 @@ const _e = (o, s) => {
|
|
|
44
44
|
return !0;
|
|
45
45
|
};
|
|
46
46
|
return t(o, s);
|
|
47
|
-
}, Ae = (o) => !(o instanceof Array),
|
|
47
|
+
}, Ae = (o) => !(o instanceof Array), Ue = (o) => o instanceof Array, $t = [
|
|
48
48
|
["basic", "id"],
|
|
49
49
|
["basic", "name"]
|
|
50
|
-
],
|
|
50
|
+
], xt = (o) => $t.find((s) => Se(o, s)), $e = (o, s, t, e, n, l, i) => (o = Re(o), l !== void 0 ? (o.push(l), i && o.push(s.key)) : o.push(s.key), xt(o) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && Ue(e.children) ? wt(
|
|
51
51
|
o,
|
|
52
52
|
s,
|
|
53
53
|
t,
|
|
@@ -55,7 +55,7 @@ const _e = (o, s) => {
|
|
|
55
55
|
n,
|
|
56
56
|
l,
|
|
57
57
|
i
|
|
58
|
-
) :
|
|
58
|
+
) : Dt(s, t, e, l, i) : s.array ? Pt(
|
|
59
59
|
o,
|
|
60
60
|
s,
|
|
61
61
|
t,
|
|
@@ -63,7 +63,7 @@ const _e = (o, s) => {
|
|
|
63
63
|
n,
|
|
64
64
|
l,
|
|
65
65
|
i
|
|
66
|
-
) :
|
|
66
|
+
) : Mt(
|
|
67
67
|
o,
|
|
68
68
|
s,
|
|
69
69
|
t,
|
|
@@ -71,42 +71,42 @@ const _e = (o, s) => {
|
|
|
71
71
|
n,
|
|
72
72
|
l,
|
|
73
73
|
i
|
|
74
|
-
)),
|
|
74
|
+
)), Pt = (o, s, t, e, n, l, i) => {
|
|
75
75
|
if (s.ui)
|
|
76
76
|
return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
|
|
77
77
|
if (!s.array)
|
|
78
78
|
return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
|
|
79
|
-
if (!e.children ||
|
|
79
|
+
if (!e.children || !Ue(e.children))
|
|
80
80
|
return console.assert(!1, "execPropBranchArray state children must be array"), !1;
|
|
81
81
|
let a;
|
|
82
|
-
l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n
|
|
83
|
-
for (let
|
|
82
|
+
l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n?.(o, t[l])), a = t[l]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n?.(o, t[s.key])), a = t[s.key]), e.change = !1;
|
|
83
|
+
for (let u = 0; u < a.length; u++) {
|
|
84
84
|
e.children.push({
|
|
85
85
|
change: !1,
|
|
86
86
|
children: {}
|
|
87
87
|
});
|
|
88
|
-
const
|
|
89
|
-
s.children.forEach((
|
|
90
|
-
if (!
|
|
88
|
+
const r = e.children[u];
|
|
89
|
+
s.children.forEach((y) => {
|
|
90
|
+
if (!r.children || !Ae(r.children)) {
|
|
91
91
|
console.assert(!1);
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
r.children[y.key] = {
|
|
95
95
|
change: !1,
|
|
96
|
-
children:
|
|
97
|
-
},
|
|
96
|
+
children: y.array ? [] : {}
|
|
97
|
+
}, $e(
|
|
98
98
|
o,
|
|
99
|
-
|
|
100
|
-
a[
|
|
101
|
-
|
|
99
|
+
y,
|
|
100
|
+
a[u],
|
|
101
|
+
r.children[y.key],
|
|
102
102
|
n,
|
|
103
|
-
|
|
103
|
+
u,
|
|
104
104
|
!0
|
|
105
|
-
) && (
|
|
105
|
+
) && (r.change = !0), r.change && (e.change = !0);
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
return e.change || (e.change = !
|
|
109
|
-
},
|
|
108
|
+
return e.change || (e.change = !Se(a, q(s))), e.change;
|
|
109
|
+
}, Mt = (o, s, t, e, n, l, i) => {
|
|
110
110
|
if (s.ui)
|
|
111
111
|
return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
|
|
112
112
|
if (s.array)
|
|
@@ -115,35 +115,35 @@ const _e = (o, s) => {
|
|
|
115
115
|
return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
|
|
116
116
|
let a;
|
|
117
117
|
l !== void 0 && !i ? (t[l] || (t[l] = {}), a = t[l]) : (t[s.key] || (t[s.key] = {}), a = t[s.key]), e.change = !1;
|
|
118
|
-
for (let
|
|
119
|
-
const
|
|
120
|
-
e.children[
|
|
118
|
+
for (let u = 0; u < s.children.length; u++) {
|
|
119
|
+
const r = s.children[u];
|
|
120
|
+
e.children[r.key] = {
|
|
121
121
|
change: !1,
|
|
122
|
-
children:
|
|
123
|
-
},
|
|
122
|
+
children: r.array ? [] : {}
|
|
123
|
+
}, $e(o, r, a, e.children[r.key], n) && (e.change = !0);
|
|
124
124
|
}
|
|
125
125
|
return e.change;
|
|
126
|
-
},
|
|
126
|
+
}, wt = (o, s, t, e, n, l, i) => {
|
|
127
127
|
if (!s.ui)
|
|
128
128
|
return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
|
|
129
129
|
if (!s.array)
|
|
130
130
|
return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
|
|
131
|
-
if (!e.children ||
|
|
131
|
+
if (!e.children || !Ue(e.children))
|
|
132
132
|
return console.assert(!1, "execPropLeafArray state children must be array"), !1;
|
|
133
133
|
let a;
|
|
134
|
-
l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n
|
|
135
|
-
for (let
|
|
136
|
-
e.children[
|
|
134
|
+
l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n?.(o, t[l])), a = t[l]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n?.(o, t[s.key])), a = t[s.key]), e.change = !1;
|
|
135
|
+
for (let u = 0; u < a.length; u++)
|
|
136
|
+
e.children[u] = {
|
|
137
137
|
change: !1,
|
|
138
138
|
children: {}
|
|
139
|
-
},
|
|
140
|
-
return e.change || (e.change = !
|
|
141
|
-
},
|
|
139
|
+
}, $e(o, s, a, e.children[u], n, u, !1) && (e.change = !0);
|
|
140
|
+
return e.change || (e.change = !Se(a, q(s))), e.change;
|
|
141
|
+
}, Dt = (o, s, t, e, n) => {
|
|
142
142
|
if (!o.ui)
|
|
143
143
|
return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
|
|
144
144
|
let l;
|
|
145
|
-
return e !== void 0 && !n ? l = s[e] : l = s[o.key], t.change = !
|
|
146
|
-
},
|
|
145
|
+
return e !== void 0 && !n ? l = s[e] : l = s[o.key], t.change = !Se(l, q(o, !0)), t.change;
|
|
146
|
+
}, Oe = (o, s, t, e) => {
|
|
147
147
|
if (s.length <= 0 || !t) {
|
|
148
148
|
o.value = {};
|
|
149
149
|
return;
|
|
@@ -153,162 +153,162 @@ const _e = (o, s) => {
|
|
|
153
153
|
n[l.key] = {
|
|
154
154
|
change: !1,
|
|
155
155
|
children: l.array ? [] : {}
|
|
156
|
-
},
|
|
156
|
+
}, $e([], l, t, n[l.key], e);
|
|
157
157
|
}), o.value = n;
|
|
158
|
-
},
|
|
158
|
+
}, ae = (o, s) => {
|
|
159
159
|
let t = { change: !1, children: o };
|
|
160
160
|
return s.forEach((e) => {
|
|
161
161
|
if (!t)
|
|
162
162
|
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
163
163
|
if (!t.children)
|
|
164
164
|
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
165
|
-
typeof e == "string" ? Ae(t.children) && (t = t.children[e]) :
|
|
166
|
-
}),
|
|
167
|
-
},
|
|
168
|
-
function
|
|
169
|
-
|
|
165
|
+
typeof e == "string" ? Ae(t.children) && (t = t.children[e]) : Ue(t.children) && (t = t.children[e]);
|
|
166
|
+
}), t?.change ?? !1;
|
|
167
|
+
}, Xe = Symbol(), Fe = Symbol(), ze = Symbol(), Ge = Symbol(), Ye = Symbol(), We = Symbol();
|
|
168
|
+
function At(o) {
|
|
169
|
+
ce(Xe, o);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
return
|
|
171
|
+
function be() {
|
|
172
|
+
return de(Xe);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
|
|
174
|
+
function bt(o) {
|
|
175
|
+
ce(Fe, o);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
return
|
|
177
|
+
function Tt() {
|
|
178
|
+
return de(Fe);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
|
|
180
|
+
function Lt(o) {
|
|
181
|
+
ce(ze, o);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
return
|
|
183
|
+
function Nt() {
|
|
184
|
+
return de(ze);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
|
|
186
|
+
function Ot(o) {
|
|
187
|
+
ce(Ge, o);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
return
|
|
189
|
+
function qt() {
|
|
190
|
+
return de(Ge);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
|
|
192
|
+
function Bt(o) {
|
|
193
|
+
ce(Ye, o);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
return
|
|
195
|
+
function Kt() {
|
|
196
|
+
return de(Ye);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
|
|
198
|
+
function Jt(o) {
|
|
199
|
+
ce(We, o);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
return
|
|
201
|
+
function Qe() {
|
|
202
|
+
return de(We);
|
|
203
203
|
}
|
|
204
|
-
const
|
|
204
|
+
const Rt = /* @__PURE__ */ R({
|
|
205
205
|
__name: "menu",
|
|
206
206
|
setup(o) {
|
|
207
|
-
const { t: s } = te(), t =
|
|
208
|
-
const
|
|
209
|
-
const
|
|
210
|
-
if (
|
|
211
|
-
if (
|
|
212
|
-
const
|
|
213
|
-
if (!
|
|
207
|
+
const { t: s } = te(), t = Tt(), e = Nt(), n = qt(), l = Kt(), i = O(0), a = O(0), u = O([]), r = K(() => [i.value, a.value]), y = (P) => {
|
|
208
|
+
const D = () => !(u.value.length <= 0 || !ae(n.value, u.value)), U = () => {
|
|
209
|
+
const V = he(t.value, u.value);
|
|
210
|
+
if (V)
|
|
211
|
+
if (V.ui) {
|
|
212
|
+
const A = me(e.value, u.value.slice(0, -1));
|
|
213
|
+
if (!A)
|
|
214
214
|
return;
|
|
215
|
-
|
|
216
|
-
} else if (
|
|
217
|
-
const
|
|
218
|
-
if (
|
|
215
|
+
A[u.value[u.value.length - 1]] = q(V), l(u.value, A[u.value[u.value.length - 1]]);
|
|
216
|
+
} else if (V.array) {
|
|
217
|
+
const A = u.value[u.value.length - 1];
|
|
218
|
+
if (A === void 0) {
|
|
219
219
|
console.assert(!1, "invalid last key");
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
if (typeof
|
|
223
|
-
const N =
|
|
222
|
+
if (typeof A == "string") {
|
|
223
|
+
const N = me(e.value, u.value.slice(0, -1));
|
|
224
224
|
if (!N)
|
|
225
225
|
return;
|
|
226
|
-
N[
|
|
226
|
+
N[u.value[u.value.length - 1]] = q(V), l(u.value, N[u.value[u.value.length - 1]]);
|
|
227
227
|
} else {
|
|
228
|
-
const N =
|
|
228
|
+
const N = me(e.value, u.value);
|
|
229
229
|
if (!N)
|
|
230
230
|
return;
|
|
231
|
-
|
|
232
|
-
N[
|
|
231
|
+
V.children.forEach((Q) => {
|
|
232
|
+
N[Q.key] = q(V), l([...u.value, Q.key], N[Q.key]);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
} else {
|
|
236
|
-
const
|
|
237
|
-
if (!
|
|
236
|
+
const A = me(e.value, u.value);
|
|
237
|
+
if (!A)
|
|
238
238
|
return;
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
V.children.forEach((N) => {
|
|
240
|
+
A[N.key] = q(V), l([...u.value, N.key], A[N.key]);
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
D() && P.push({
|
|
245
245
|
title: s("x-prop-tree.reset"),
|
|
246
|
-
func:
|
|
246
|
+
func: U
|
|
247
247
|
});
|
|
248
|
-
}, d = (
|
|
249
|
-
const
|
|
250
|
-
const
|
|
251
|
-
localStorage.setItem("propTreeCopy", JSON.stringify({ prop:
|
|
248
|
+
}, d = (P) => {
|
|
249
|
+
const D = () => {
|
|
250
|
+
const U = he(t.value, u.value), V = me(e.value, u.value);
|
|
251
|
+
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: U, object: V }));
|
|
252
252
|
};
|
|
253
|
-
|
|
253
|
+
P.push({
|
|
254
254
|
title: s("x-prop-tree.copy"),
|
|
255
|
-
func:
|
|
255
|
+
func: D
|
|
256
256
|
});
|
|
257
|
-
},
|
|
258
|
-
const
|
|
259
|
-
const
|
|
260
|
-
if (!
|
|
257
|
+
}, g = (P) => {
|
|
258
|
+
const D = () => {
|
|
259
|
+
const V = localStorage.getItem("propTreeCopy");
|
|
260
|
+
if (!V)
|
|
261
261
|
return !1;
|
|
262
262
|
try {
|
|
263
|
-
const { prop:
|
|
264
|
-
return
|
|
265
|
-
} catch (
|
|
266
|
-
console.error(
|
|
263
|
+
const { prop: A } = JSON.parse(V), N = he(t.value, u.value);
|
|
264
|
+
return Ut(A, N);
|
|
265
|
+
} catch (A) {
|
|
266
|
+
console.error(A);
|
|
267
267
|
}
|
|
268
268
|
return !1;
|
|
269
|
-
},
|
|
270
|
-
if (!
|
|
269
|
+
}, U = () => {
|
|
270
|
+
if (!D())
|
|
271
271
|
return;
|
|
272
|
-
const
|
|
273
|
-
if (
|
|
272
|
+
const V = localStorage.getItem("propTreeCopy");
|
|
273
|
+
if (V)
|
|
274
274
|
try {
|
|
275
|
-
const { object:
|
|
276
|
-
console.log(
|
|
277
|
-
} catch (
|
|
278
|
-
console.error(
|
|
275
|
+
const { object: A } = JSON.parse(V), N = he(t.value, u.value);
|
|
276
|
+
console.log(A, N);
|
|
277
|
+
} catch (A) {
|
|
278
|
+
console.error(A);
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
|
|
281
|
+
D() && P.push({
|
|
282
282
|
title: s("x-prop-tree.paste"),
|
|
283
|
-
func:
|
|
283
|
+
func: U
|
|
284
284
|
});
|
|
285
|
-
},
|
|
286
|
-
const
|
|
287
|
-
return
|
|
288
|
-
}),
|
|
289
|
-
i.value =
|
|
290
|
-
}, { open: L } =
|
|
291
|
-
return (
|
|
292
|
-
const
|
|
293
|
-
return
|
|
294
|
-
modelValue:
|
|
295
|
-
"onUpdate:modelValue":
|
|
285
|
+
}, v = K(() => {
|
|
286
|
+
const P = [];
|
|
287
|
+
return y(P), d(P), g(P), P;
|
|
288
|
+
}), x = (P) => {
|
|
289
|
+
i.value = P.x, a.value = P.y, u.value = P.keys;
|
|
290
|
+
}, { open: L } = Ce("propTreeMenu", x);
|
|
291
|
+
return (P, D) => {
|
|
292
|
+
const U = S("v-list-item-title"), V = S("v-list-item"), A = S("v-list"), N = S("v-menu");
|
|
293
|
+
return k(), B(N, {
|
|
294
|
+
modelValue: T(L),
|
|
295
|
+
"onUpdate:modelValue": D[0] || (D[0] = (Q) => ve(L) ? L.value = Q : null),
|
|
296
296
|
"location-strategy": "connected",
|
|
297
|
-
target:
|
|
297
|
+
target: r.value,
|
|
298
298
|
scrim: "transparent"
|
|
299
299
|
}, {
|
|
300
|
-
default:
|
|
301
|
-
|
|
302
|
-
default:
|
|
303
|
-
(
|
|
304
|
-
key:
|
|
300
|
+
default: J(() => [
|
|
301
|
+
M(A, null, {
|
|
302
|
+
default: J(() => [
|
|
303
|
+
(k(!0), E(ke, null, qe(v.value, (Q, xe) => (k(), B(V, {
|
|
304
|
+
key: xe,
|
|
305
305
|
link: "",
|
|
306
|
-
onClick:
|
|
306
|
+
onClick: Q.func
|
|
307
307
|
}, {
|
|
308
|
-
default:
|
|
309
|
-
|
|
310
|
-
default:
|
|
311
|
-
|
|
308
|
+
default: J(() => [
|
|
309
|
+
M(U, null, {
|
|
310
|
+
default: J(() => [
|
|
311
|
+
Ve(W(Q.title), 1)
|
|
312
312
|
]),
|
|
313
313
|
_: 2
|
|
314
314
|
}, 1024)
|
|
@@ -323,7 +323,7 @@ const Gt = /* @__PURE__ */ J({
|
|
|
323
323
|
}, 8, ["modelValue", "target"]);
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
}),
|
|
326
|
+
}), Et = { style: { pointerEvents: "none" } }, _e = /* @__PURE__ */ R({
|
|
327
327
|
__name: "title",
|
|
328
328
|
props: {
|
|
329
329
|
title: {},
|
|
@@ -341,47 +341,47 @@ const Gt = /* @__PURE__ */ J({
|
|
|
341
341
|
userSelect: "none"
|
|
342
342
|
})), a = () => {
|
|
343
343
|
n("collapse", !o.collapse);
|
|
344
|
-
},
|
|
345
|
-
n("menu",
|
|
344
|
+
}, u = (r) => {
|
|
345
|
+
n("menu", r.clientX, r.clientY);
|
|
346
346
|
};
|
|
347
|
-
return (
|
|
348
|
-
const d =
|
|
349
|
-
return ee((
|
|
347
|
+
return (r, y) => {
|
|
348
|
+
const d = S("v-icon"), g = S("v-spacer"), v = S("v-btn"), x = le("ripple");
|
|
349
|
+
return ee((k(), E("div", {
|
|
350
350
|
class: "d-flex align-center cursor-pointer",
|
|
351
351
|
style: I(i.value),
|
|
352
352
|
onClick: a,
|
|
353
|
-
onContextmenu:
|
|
354
|
-
onMouseover:
|
|
355
|
-
onMouseout:
|
|
353
|
+
onContextmenu: F(u, ["self", "prevent"]),
|
|
354
|
+
onMouseover: y[2] || (y[2] = (L) => l.value = !0),
|
|
355
|
+
onMouseout: y[3] || (y[3] = (L) => l.value = !1)
|
|
356
356
|
}, [
|
|
357
|
-
|
|
357
|
+
M(d, {
|
|
358
358
|
class: "mr-1",
|
|
359
|
-
icon:
|
|
359
|
+
icon: r.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
|
|
360
360
|
}, null, 8, ["icon"]),
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
361
|
+
X("span", Et, W(r.title), 1),
|
|
362
|
+
M(g),
|
|
363
|
+
r.hasCreate ? (k(), B(v, {
|
|
364
364
|
key: 0,
|
|
365
365
|
class: "mx-3",
|
|
366
366
|
variant: "text",
|
|
367
367
|
density: "compact",
|
|
368
|
-
icon:
|
|
369
|
-
onClick:
|
|
370
|
-
}
|
|
371
|
-
|
|
368
|
+
icon: "mdi-plus",
|
|
369
|
+
onClick: y[0] || (y[0] = F((L) => n("create"), ["stop"]))
|
|
370
|
+
})) : G("", !0),
|
|
371
|
+
r.hasDelete ? (k(), B(v, {
|
|
372
372
|
key: 1,
|
|
373
373
|
class: "mx-3",
|
|
374
374
|
variant: "text",
|
|
375
375
|
density: "compact",
|
|
376
|
-
icon:
|
|
377
|
-
onClick:
|
|
378
|
-
}
|
|
376
|
+
icon: "mdi-minus",
|
|
377
|
+
onClick: y[1] || (y[1] = F((L) => n("delete", r.index), ["stop"]))
|
|
378
|
+
})) : G("", !0)
|
|
379
379
|
], 36)), [
|
|
380
|
-
[
|
|
380
|
+
[x]
|
|
381
381
|
]);
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
}),
|
|
384
|
+
}), Ht = /* @__PURE__ */ R({
|
|
385
385
|
__name: "entry",
|
|
386
386
|
props: {
|
|
387
387
|
minHeight: {}
|
|
@@ -394,40 +394,43 @@ const Gt = /* @__PURE__ */ J({
|
|
|
394
394
|
paddingRight: "4px",
|
|
395
395
|
marginBottom: "1px",
|
|
396
396
|
userSelect: "none"
|
|
397
|
-
})), a = (
|
|
398
|
-
n("menu",
|
|
397
|
+
})), a = (u) => {
|
|
398
|
+
n("menu", u.clientX, u.clientY);
|
|
399
399
|
};
|
|
400
|
-
return (
|
|
401
|
-
const
|
|
402
|
-
return ee((
|
|
400
|
+
return (u, r) => {
|
|
401
|
+
const y = le("ripple");
|
|
402
|
+
return ee((k(), E("div", {
|
|
403
403
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
404
404
|
style: I(i.value),
|
|
405
|
-
onContextmenu:
|
|
406
|
-
onMouseover:
|
|
407
|
-
onMouseout:
|
|
405
|
+
onContextmenu: F(a, ["self", "prevent"]),
|
|
406
|
+
onMouseover: r[0] || (r[0] = (d) => l.value = !0),
|
|
407
|
+
onMouseout: r[1] || (r[1] = (d) => l.value = !1)
|
|
408
408
|
}, [
|
|
409
|
-
|
|
409
|
+
dt(u.$slots, "default")
|
|
410
410
|
], 36)), [
|
|
411
|
-
[
|
|
411
|
+
[y]
|
|
412
412
|
]);
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
|
-
function
|
|
416
|
+
function Xt(o, s, t) {
|
|
417
417
|
const { t: e } = te();
|
|
418
418
|
return { renderProp: (l, i, a) => {
|
|
419
|
-
const
|
|
420
|
-
let
|
|
421
|
-
return
|
|
422
|
-
|
|
419
|
+
const u = l[l.length - 1];
|
|
420
|
+
let y = typeof u == "number" ? `[${u + 1}]` : e(i.name);
|
|
421
|
+
return ae(o.value, l) && (y += " *"), h(
|
|
422
|
+
Ht,
|
|
423
423
|
{
|
|
424
424
|
minHeight: s.value,
|
|
425
|
-
onMenu: (d,
|
|
426
|
-
|
|
425
|
+
onMenu: (d, g) => {
|
|
426
|
+
ue.emit("propTreeMenu", { x: d, y: g, keys: l });
|
|
427
427
|
}
|
|
428
428
|
},
|
|
429
429
|
() => [
|
|
430
|
-
h("span", {
|
|
430
|
+
h("span", {
|
|
431
|
+
style: { marginLeft: "4px", pointerEvents: "none" },
|
|
432
|
+
innerHTML: y
|
|
433
|
+
}),
|
|
431
434
|
h("div", { style: { width: t.value } }, a)
|
|
432
435
|
]
|
|
433
436
|
);
|
|
@@ -463,7 +466,7 @@ const ne = (o, s, t, e, n, l) => {
|
|
|
463
466
|
(s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (a = void 0)), a !== t[s.key] && (t[s.key] = a, n(o, t[s.key]));
|
|
464
467
|
}
|
|
465
468
|
};
|
|
466
|
-
function
|
|
469
|
+
function Ft(o) {
|
|
467
470
|
return { renderUiDummy: (t, e, n, l, i) => {
|
|
468
471
|
if (e.ui !== "dummy") {
|
|
469
472
|
console.assert(!1, "renderUiDummy prop ui must be dummy");
|
|
@@ -472,50 +475,50 @@ function Zt(o) {
|
|
|
472
475
|
ne(t, e, n, o, l, i);
|
|
473
476
|
} };
|
|
474
477
|
}
|
|
475
|
-
const
|
|
478
|
+
const zt = { class: "d-flex justify-space-between align-center" }, Gt = /* @__PURE__ */ R({
|
|
476
479
|
__name: "strInput",
|
|
477
|
-
props: /* @__PURE__ */
|
|
480
|
+
props: /* @__PURE__ */ Y({
|
|
478
481
|
hasDelete: { type: Boolean, default: !1 },
|
|
479
482
|
readonly: { type: Boolean, default: !1 }
|
|
480
483
|
}, {
|
|
481
484
|
modelValue: { required: !0 },
|
|
482
485
|
modelModifiers: {}
|
|
483
486
|
}),
|
|
484
|
-
emits: /* @__PURE__ */
|
|
487
|
+
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
485
488
|
setup(o, { emit: s }) {
|
|
486
|
-
const t =
|
|
489
|
+
const t = z(o, "modelValue"), e = s;
|
|
487
490
|
return (n, l) => {
|
|
488
|
-
const i =
|
|
489
|
-
return
|
|
490
|
-
ee(
|
|
491
|
+
const i = S("v-text-field"), a = S("v-btn"), u = le("ripple");
|
|
492
|
+
return k(), E("div", zt, [
|
|
493
|
+
ee(M(i, {
|
|
491
494
|
modelValue: t.value,
|
|
492
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
495
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
|
|
493
496
|
density: "compact",
|
|
494
497
|
"hide-details": "",
|
|
495
498
|
"single-line": "",
|
|
496
499
|
readonly: n.readonly
|
|
497
500
|
}, null, 8, ["modelValue", "readonly"]), [
|
|
498
501
|
[
|
|
499
|
-
|
|
502
|
+
u,
|
|
500
503
|
void 0,
|
|
501
504
|
void 0,
|
|
502
505
|
{ stop: !0 }
|
|
503
506
|
]
|
|
504
507
|
]),
|
|
505
|
-
n.hasDelete ? (
|
|
508
|
+
n.hasDelete ? (k(), B(a, {
|
|
506
509
|
key: 0,
|
|
507
510
|
class: "mx-2",
|
|
508
511
|
variant: "text",
|
|
509
512
|
density: "compact",
|
|
510
|
-
icon:
|
|
511
|
-
onClick: l[1] || (l[1] =
|
|
512
|
-
}
|
|
513
|
+
icon: "mdi-minus",
|
|
514
|
+
onClick: l[1] || (l[1] = F((r) => e("delete"), ["stop"]))
|
|
515
|
+
})) : G("", !0)
|
|
513
516
|
]);
|
|
514
517
|
};
|
|
515
518
|
}
|
|
516
519
|
});
|
|
517
|
-
function
|
|
518
|
-
return { renderUiStrInput: (t, e, n, l, i) => e.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput prop ui must be strInput")) : h(
|
|
520
|
+
function Yt(o) {
|
|
521
|
+
return { renderUiStrInput: (t, e, n, l, i) => e.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput prop ui must be strInput")) : h(Gt, {
|
|
519
522
|
modelValue: e.static ? e.value : ne(
|
|
520
523
|
t,
|
|
521
524
|
e,
|
|
@@ -542,9 +545,9 @@ function It(o) {
|
|
|
542
545
|
readonly: e.static || e.readonly
|
|
543
546
|
}) };
|
|
544
547
|
}
|
|
545
|
-
const
|
|
548
|
+
const Wt = { class: "d-flex justify-space-between align-center" }, Qt = /* @__PURE__ */ R({
|
|
546
549
|
__name: "numInput",
|
|
547
|
-
props: /* @__PURE__ */
|
|
550
|
+
props: /* @__PURE__ */ Y({
|
|
548
551
|
hasDelete: { type: Boolean, default: !1 },
|
|
549
552
|
precision: { default: () => {
|
|
550
553
|
} },
|
|
@@ -556,15 +559,15 @@ const en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PU
|
|
|
556
559
|
modelValue: { required: !0 },
|
|
557
560
|
modelModifiers: {}
|
|
558
561
|
}),
|
|
559
|
-
emits: /* @__PURE__ */
|
|
562
|
+
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
560
563
|
setup(o, { emit: s }) {
|
|
561
|
-
const t =
|
|
564
|
+
const t = z(o, "modelValue"), e = s;
|
|
562
565
|
return (n, l) => {
|
|
563
|
-
const i =
|
|
564
|
-
return
|
|
565
|
-
ee(
|
|
566
|
+
const i = S("v-number-input"), a = S("v-btn"), u = le("ripple");
|
|
567
|
+
return k(), E("div", Wt, [
|
|
568
|
+
ee(M(i, {
|
|
566
569
|
modelValue: t.value,
|
|
567
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
570
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
|
|
568
571
|
density: "compact",
|
|
569
572
|
"control-variant": "stacked",
|
|
570
573
|
precision: n.precision,
|
|
@@ -576,26 +579,26 @@ const en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PU
|
|
|
576
579
|
readonly: n.readonly
|
|
577
580
|
}, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
|
|
578
581
|
[
|
|
579
|
-
|
|
582
|
+
u,
|
|
580
583
|
void 0,
|
|
581
584
|
void 0,
|
|
582
585
|
{ stop: !0 }
|
|
583
586
|
]
|
|
584
587
|
]),
|
|
585
|
-
n.hasDelete ? (
|
|
588
|
+
n.hasDelete ? (k(), B(a, {
|
|
586
589
|
key: 0,
|
|
587
590
|
class: "mx-2",
|
|
588
591
|
variant: "text",
|
|
589
592
|
density: "compact",
|
|
590
|
-
icon:
|
|
591
|
-
onClick: l[1] || (l[1] =
|
|
592
|
-
}
|
|
593
|
+
icon: "mdi-minus",
|
|
594
|
+
onClick: l[1] || (l[1] = F((r) => e("delete"), ["stop"]))
|
|
595
|
+
})) : G("", !0)
|
|
593
596
|
]);
|
|
594
597
|
};
|
|
595
598
|
}
|
|
596
599
|
});
|
|
597
|
-
function
|
|
598
|
-
return { renderUiNumInput: (t, e, n, l, i) => e.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput prop ui must be numInput")) : h(
|
|
600
|
+
function Zt(o) {
|
|
601
|
+
return { renderUiNumInput: (t, e, n, l, i) => e.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput prop ui must be numInput")) : h(Qt, {
|
|
599
602
|
modelValue: ne(
|
|
600
603
|
t,
|
|
601
604
|
e,
|
|
@@ -626,44 +629,44 @@ function nn(o) {
|
|
|
626
629
|
readonly: e.readonly
|
|
627
630
|
}) };
|
|
628
631
|
}
|
|
629
|
-
const
|
|
632
|
+
const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PURE__ */ R({
|
|
630
633
|
__name: "switch",
|
|
631
|
-
props: /* @__PURE__ */
|
|
634
|
+
props: /* @__PURE__ */ Y({
|
|
632
635
|
hasDelete: { type: Boolean, default: !1 },
|
|
633
636
|
readonly: { type: Boolean, default: !1 }
|
|
634
637
|
}, {
|
|
635
638
|
modelValue: { type: Boolean },
|
|
636
639
|
modelModifiers: {}
|
|
637
640
|
}),
|
|
638
|
-
emits: /* @__PURE__ */
|
|
641
|
+
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
639
642
|
setup(o, { emit: s }) {
|
|
640
|
-
const t =
|
|
643
|
+
const t = z(o, "modelValue"), e = s;
|
|
641
644
|
return (n, l) => {
|
|
642
|
-
const i =
|
|
643
|
-
return
|
|
644
|
-
|
|
645
|
+
const i = S("v-switch"), a = S("v-btn");
|
|
646
|
+
return k(), E("div", jt, [
|
|
647
|
+
M(i, {
|
|
645
648
|
modelValue: t.value,
|
|
646
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
649
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u),
|
|
647
650
|
class: "ml-1",
|
|
648
651
|
density: "compact",
|
|
649
652
|
color: "primary",
|
|
650
653
|
"hide-details": "",
|
|
651
654
|
readonly: n.readonly
|
|
652
655
|
}, null, 8, ["modelValue", "readonly"]),
|
|
653
|
-
n.hasDelete ? (
|
|
656
|
+
n.hasDelete ? (k(), B(a, {
|
|
654
657
|
key: 0,
|
|
655
658
|
class: "mx-2",
|
|
656
659
|
variant: "text",
|
|
657
660
|
density: "compact",
|
|
658
|
-
icon:
|
|
659
|
-
onClick: l[1] || (l[1] =
|
|
660
|
-
}
|
|
661
|
+
icon: "mdi-minus",
|
|
662
|
+
onClick: l[1] || (l[1] = F((u) => e("delete"), ["stop"]))
|
|
663
|
+
})) : G("", !0)
|
|
661
664
|
]);
|
|
662
665
|
};
|
|
663
666
|
}
|
|
664
667
|
});
|
|
665
|
-
function
|
|
666
|
-
return { renderUiSwitch: (t, e, n, l, i) => e.ui !== "switch" ? (console.assert(!1), h("div", "renderUiSwitch prop ui must be switch")) : h(
|
|
668
|
+
function en(o) {
|
|
669
|
+
return { renderUiSwitch: (t, e, n, l, i) => e.ui !== "switch" ? (console.assert(!1), h("div", "renderUiSwitch prop ui must be switch")) : h(It, {
|
|
667
670
|
modelValue: ne(
|
|
668
671
|
t,
|
|
669
672
|
e,
|
|
@@ -690,9 +693,9 @@ function sn(o) {
|
|
|
690
693
|
readonly: e.readonly
|
|
691
694
|
}) };
|
|
692
695
|
}
|
|
693
|
-
const
|
|
696
|
+
const tn = { class: "d-flex justify-space-between align-center" }, nn = /* @__PURE__ */ R({
|
|
694
697
|
__name: "select",
|
|
695
|
-
props: /* @__PURE__ */
|
|
698
|
+
props: /* @__PURE__ */ Y({
|
|
696
699
|
hasDelete: { type: Boolean, default: !1 },
|
|
697
700
|
readonly: { type: Boolean, default: !1 },
|
|
698
701
|
items: {}
|
|
@@ -700,21 +703,20 @@ const rn = { class: "d-flex justify-space-between align-center" }, un = /* @__PU
|
|
|
700
703
|
modelValue: {},
|
|
701
704
|
modelModifiers: {}
|
|
702
705
|
}),
|
|
703
|
-
emits: /* @__PURE__ */
|
|
706
|
+
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
704
707
|
setup(o, { emit: s }) {
|
|
705
|
-
const { t } = te(), e =
|
|
706
|
-
var r;
|
|
708
|
+
const { t } = te(), e = z(o, "modelValue"), n = s, l = be(), i = K(() => {
|
|
707
709
|
const a = [];
|
|
708
|
-
return
|
|
709
|
-
a.push({ title: t(u), value:
|
|
710
|
+
return He[l.value]?.items[o.items].forEach(({ title: u, value: r }) => {
|
|
711
|
+
a.push({ title: t(u), value: r });
|
|
710
712
|
}), a;
|
|
711
713
|
});
|
|
712
|
-
return (a,
|
|
713
|
-
const
|
|
714
|
-
return
|
|
715
|
-
ee(
|
|
714
|
+
return (a, u) => {
|
|
715
|
+
const r = S("v-select"), y = S("v-btn"), d = le("ripple");
|
|
716
|
+
return k(), E("div", tn, [
|
|
717
|
+
ee(M(r, {
|
|
716
718
|
modelValue: e.value,
|
|
717
|
-
"onUpdate:modelValue":
|
|
719
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => e.value = g),
|
|
718
720
|
density: "compact",
|
|
719
721
|
items: i.value,
|
|
720
722
|
"hide-details": "",
|
|
@@ -728,20 +730,20 @@ const rn = { class: "d-flex justify-space-between align-center" }, un = /* @__PU
|
|
|
728
730
|
{ stop: !0 }
|
|
729
731
|
]
|
|
730
732
|
]),
|
|
731
|
-
a.hasDelete ? (
|
|
733
|
+
a.hasDelete ? (k(), B(y, {
|
|
732
734
|
key: 0,
|
|
733
735
|
class: "mx-2",
|
|
734
736
|
variant: "text",
|
|
735
737
|
density: "compact",
|
|
736
|
-
icon:
|
|
737
|
-
onClick:
|
|
738
|
-
}
|
|
738
|
+
icon: "mdi-minus",
|
|
739
|
+
onClick: u[1] || (u[1] = F((g) => n("delete"), ["stop"]))
|
|
740
|
+
})) : G("", !0)
|
|
739
741
|
]);
|
|
740
742
|
};
|
|
741
743
|
}
|
|
742
744
|
});
|
|
743
|
-
function
|
|
744
|
-
return { renderUiSelect: (t, e, n, l, i) => e.ui !== "select" ? (console.assert(!1), h("div", "renderUiSelect prop ui must be select")) : h(
|
|
745
|
+
function ln(o) {
|
|
746
|
+
return { renderUiSelect: (t, e, n, l, i) => e.ui !== "select" ? (console.assert(!1), h("div", "renderUiSelect prop ui must be select")) : h(nn, {
|
|
745
747
|
modelValue: ne(
|
|
746
748
|
t,
|
|
747
749
|
e,
|
|
@@ -769,7 +771,7 @@ function an(o) {
|
|
|
769
771
|
readonly: e.readonly
|
|
770
772
|
}) };
|
|
771
773
|
}
|
|
772
|
-
const
|
|
774
|
+
const on = { class: "text-subtitle-2 ml-1" }, sn = { class: "text-caption text-grey ml-1" }, rn = /* @__PURE__ */ R({
|
|
773
775
|
__name: "group",
|
|
774
776
|
props: {
|
|
775
777
|
id: {},
|
|
@@ -785,27 +787,27 @@ const cn = { class: "text-subtitle-2 ml-1" }, dn = { class: "text-caption text-g
|
|
|
785
787
|
marginBottom: "1px",
|
|
786
788
|
userSelect: "none"
|
|
787
789
|
}));
|
|
788
|
-
return (
|
|
789
|
-
const
|
|
790
|
-
return ee((
|
|
790
|
+
return (u, r) => {
|
|
791
|
+
const y = S("v-icon"), d = le("ripple");
|
|
792
|
+
return ee((k(), E("div", {
|
|
791
793
|
class: "d-flex align-center cursor-pointer",
|
|
792
794
|
style: I(a.value),
|
|
793
|
-
onClick:
|
|
794
|
-
onMouseover:
|
|
795
|
-
onMouseout:
|
|
795
|
+
onClick: r[0] || (r[0] = (g) => l("x-click", n.id)),
|
|
796
|
+
onMouseover: r[1] || (r[1] = (g) => i.value = !0),
|
|
797
|
+
onMouseout: r[2] || (r[2] = (g) => i.value = !1)
|
|
796
798
|
}, [
|
|
797
|
-
|
|
798
|
-
icon: n.collapse ?
|
|
799
|
+
M(y, {
|
|
800
|
+
icon: n.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
799
801
|
size: "small"
|
|
800
802
|
}, null, 8, ["icon"]),
|
|
801
|
-
|
|
802
|
-
|
|
803
|
+
X("span", on, W(n.title), 1),
|
|
804
|
+
X("span", sn, W(n.count), 1)
|
|
803
805
|
], 36)), [
|
|
804
806
|
[d]
|
|
805
807
|
]);
|
|
806
808
|
};
|
|
807
809
|
}
|
|
808
|
-
}),
|
|
810
|
+
}), un = { class: "text-subtitle-1 ml-6" }, an = /* @__PURE__ */ R({
|
|
809
811
|
__name: "item",
|
|
810
812
|
props: {
|
|
811
813
|
id: {},
|
|
@@ -819,25 +821,25 @@ const cn = { class: "text-subtitle-2 ml-1" }, dn = { class: "text-caption text-g
|
|
|
819
821
|
marginBottom: "1px",
|
|
820
822
|
userSelect: "none"
|
|
821
823
|
}));
|
|
822
|
-
return (
|
|
823
|
-
const
|
|
824
|
-
return ee((
|
|
824
|
+
return (u, r) => {
|
|
825
|
+
const y = le("ripple");
|
|
826
|
+
return ee((k(), E("div", {
|
|
825
827
|
class: "d-flex align-center cursor-pointer",
|
|
826
828
|
style: I(a.value),
|
|
827
|
-
onClick:
|
|
828
|
-
onMouseover:
|
|
829
|
-
onMouseout:
|
|
829
|
+
onClick: r[0] || (r[0] = (d) => l("x-click", n.id)),
|
|
830
|
+
onMouseover: r[1] || (r[1] = (d) => i.value = !0),
|
|
831
|
+
onMouseout: r[2] || (r[2] = (d) => i.value = !1)
|
|
830
832
|
}, [
|
|
831
|
-
|
|
833
|
+
X("span", un, W(n.title), 1)
|
|
832
834
|
], 36)), [
|
|
833
|
-
[
|
|
835
|
+
[y]
|
|
834
836
|
]);
|
|
835
837
|
};
|
|
836
838
|
}
|
|
837
|
-
}),
|
|
839
|
+
}), cn = { key: 0 }, dn = {
|
|
838
840
|
key: 1,
|
|
839
841
|
class: "text-body-2 text-grey ml-3"
|
|
840
|
-
},
|
|
842
|
+
}, fn = /* @__PURE__ */ R({
|
|
841
843
|
__name: "index",
|
|
842
844
|
props: {
|
|
843
845
|
modelValue: {},
|
|
@@ -847,34 +849,34 @@ const cn = { class: "text-subtitle-2 ml-1" }, dn = { class: "text-caption text-g
|
|
|
847
849
|
},
|
|
848
850
|
emits: ["update:modelValue", "update:open"],
|
|
849
851
|
setup(o) {
|
|
850
|
-
const { t: s } = te(), t =
|
|
851
|
-
const
|
|
852
|
-
|
|
852
|
+
const { t: s } = te(), t = z(o, "modelValue"), e = z(o, "open"), n = Qe(), l = (a) => {
|
|
853
|
+
const u = Ee(n, a);
|
|
854
|
+
u && gt(n, a, !u.collapse);
|
|
853
855
|
}, i = (a) => {
|
|
854
|
-
t.value = a, e.value = !1,
|
|
856
|
+
t.value = a, e.value = !1, ue.emit("refreshDepends");
|
|
855
857
|
};
|
|
856
|
-
return (a,
|
|
857
|
-
(
|
|
858
|
-
key:
|
|
858
|
+
return (a, u) => T(n).length > 0 ? (k(), E("div", cn, [
|
|
859
|
+
(k(!0), E(ke, null, qe(T(n), (r) => (k(), E(ke, {
|
|
860
|
+
key: r.id
|
|
859
861
|
}, [
|
|
860
|
-
|
|
862
|
+
r.type === 0 ? (k(), B(rn, {
|
|
861
863
|
key: 0,
|
|
862
|
-
id:
|
|
863
|
-
title:
|
|
864
|
-
collapse:
|
|
865
|
-
count:
|
|
864
|
+
id: r.id,
|
|
865
|
+
title: r.name,
|
|
866
|
+
collapse: r.collapse,
|
|
867
|
+
count: r.count ?? 0,
|
|
866
868
|
onXClick: l
|
|
867
|
-
}, null, 8, ["id", "title", "collapse", "count"])) :
|
|
868
|
-
|
|
869
|
+
}, null, 8, ["id", "title", "collapse", "count"])) : G("", !0),
|
|
870
|
+
r.type === 1 && r.show ? (k(), B(an, {
|
|
869
871
|
key: 1,
|
|
870
|
-
id:
|
|
871
|
-
title:
|
|
872
|
+
id: r.id,
|
|
873
|
+
title: r.name,
|
|
872
874
|
onXClick: i
|
|
873
|
-
}, null, 8, ["id", "title"])) :
|
|
875
|
+
}, null, 8, ["id", "title"])) : G("", !0)
|
|
874
876
|
], 64))), 128))
|
|
875
|
-
])) : (
|
|
877
|
+
])) : (k(), E("div", dn, W(T(s)("x-prop-tree.noComp")), 1));
|
|
876
878
|
}
|
|
877
|
-
}),
|
|
879
|
+
}), mn = { class: "text-subtitle-1 ml-3" }, vn = /* @__PURE__ */ R({
|
|
878
880
|
__name: "index",
|
|
879
881
|
props: {
|
|
880
882
|
modelValue: {},
|
|
@@ -882,92 +884,92 @@ const cn = { class: "text-subtitle-2 ml-1" }, dn = { class: "text-caption text-g
|
|
|
882
884
|
},
|
|
883
885
|
emits: ["update:modelValue"],
|
|
884
886
|
setup(o) {
|
|
885
|
-
const { t: s } = te(), t =
|
|
886
|
-
let
|
|
887
|
-
return t.mdAndUp.value && (
|
|
887
|
+
const { t: s } = te(), t = Ct(), { sysBarAvail: e } = Je(), { backgroundColor1: n } = ie(), l = z(o, "modelValue"), i = Qe(), a = K(() => {
|
|
888
|
+
let g = "100%";
|
|
889
|
+
return t.mdAndUp.value && (g = "400px"), {
|
|
888
890
|
background: n.value,
|
|
889
|
-
width:
|
|
891
|
+
width: g,
|
|
890
892
|
height: "100%"
|
|
891
893
|
};
|
|
892
|
-
}),
|
|
893
|
-
let
|
|
894
|
-
return e.value && (
|
|
894
|
+
}), u = K(() => {
|
|
895
|
+
let g = 48;
|
|
896
|
+
return e.value && (g += 24), {
|
|
895
897
|
position: "relative",
|
|
896
|
-
height: `calc(100% - ${
|
|
898
|
+
height: `calc(100% - ${g}px)`
|
|
897
899
|
};
|
|
898
|
-
}),
|
|
900
|
+
}), r = K(() => ({
|
|
899
901
|
height: "60px"
|
|
900
|
-
})),
|
|
902
|
+
})), y = K(() => {
|
|
901
903
|
if (!l.value)
|
|
902
904
|
return s("x-runtime-lib.notSet");
|
|
903
|
-
const
|
|
904
|
-
return
|
|
905
|
-
}), { open: d } =
|
|
906
|
-
return
|
|
905
|
+
const g = Ee(i, l.value);
|
|
906
|
+
return g ? g.name : s("x-runtime-lib.compNotAvail");
|
|
907
|
+
}), { open: d } = Ce(`propTreeCompSelectDlg${Me()}`);
|
|
908
|
+
return we(() => {
|
|
907
909
|
d.value = !1;
|
|
908
|
-
}), (
|
|
909
|
-
const
|
|
910
|
-
return
|
|
911
|
-
modelValue:
|
|
912
|
-
"onUpdate:modelValue":
|
|
910
|
+
}), (g, v) => {
|
|
911
|
+
const x = S("v-btn"), L = S("v-sheet"), P = S("v-icon"), D = S("v-dialog");
|
|
912
|
+
return k(), B(D, {
|
|
913
|
+
modelValue: T(d),
|
|
914
|
+
"onUpdate:modelValue": v[5] || (v[5] = (U) => ve(d) ? d.value = U : null),
|
|
913
915
|
transition: "scroll-x-reverse-transition",
|
|
914
916
|
persistent: "",
|
|
915
917
|
"no-click-animation": "",
|
|
916
918
|
fullscreen: "",
|
|
917
|
-
onKeydown:
|
|
919
|
+
onKeydown: v[6] || (v[6] = Be(F((U) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
918
920
|
}, {
|
|
919
|
-
activator:
|
|
920
|
-
|
|
921
|
+
activator: J(({ props: U }) => [
|
|
922
|
+
M(x, De(U, {
|
|
921
923
|
density: "comfortable",
|
|
922
924
|
block: ""
|
|
923
925
|
}), {
|
|
924
|
-
default:
|
|
925
|
-
|
|
926
|
+
default: J(() => [
|
|
927
|
+
Ve(W(y.value), 1)
|
|
926
928
|
]),
|
|
927
929
|
_: 2
|
|
928
930
|
}, 1040)
|
|
929
931
|
]),
|
|
930
|
-
default:
|
|
931
|
-
|
|
932
|
+
default: J(() => [
|
|
933
|
+
X("div", {
|
|
932
934
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
933
|
-
onClick:
|
|
934
|
-
onContextmenu:
|
|
935
|
+
onClick: v[3] || (v[3] = F((U) => d.value = !1, ["self"])),
|
|
936
|
+
onContextmenu: v[4] || (v[4] = F((U) => d.value = !1, ["self", "prevent"]))
|
|
935
937
|
}, [
|
|
936
|
-
|
|
938
|
+
X("div", {
|
|
937
939
|
class: "elevation-2",
|
|
938
940
|
style: I(a.value)
|
|
939
941
|
}, [
|
|
940
|
-
|
|
942
|
+
T(e) ? (k(), B(L, {
|
|
941
943
|
key: 0,
|
|
942
944
|
color: "transparent",
|
|
943
945
|
height: 24
|
|
944
|
-
})) :
|
|
945
|
-
|
|
946
|
+
})) : G("", !0),
|
|
947
|
+
M(L, {
|
|
946
948
|
class: "d-flex align-center px-3",
|
|
947
949
|
color: "transparent",
|
|
948
950
|
height: 48
|
|
949
951
|
}, {
|
|
950
|
-
default:
|
|
951
|
-
|
|
952
|
-
icon:
|
|
953
|
-
onClick:
|
|
954
|
-
}
|
|
955
|
-
|
|
952
|
+
default: J(() => [
|
|
953
|
+
M(P, {
|
|
954
|
+
icon: "mdi-close",
|
|
955
|
+
onClick: v[0] || (v[0] = (U) => d.value = !1)
|
|
956
|
+
}),
|
|
957
|
+
X("span", mn, W(T(s)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
956
958
|
]),
|
|
957
959
|
_: 1
|
|
958
960
|
}),
|
|
959
|
-
|
|
961
|
+
X("div", {
|
|
960
962
|
class: "overflow-y-auto",
|
|
961
|
-
style: I(
|
|
963
|
+
style: I(u.value)
|
|
962
964
|
}, [
|
|
963
|
-
|
|
965
|
+
M(fn, {
|
|
964
966
|
modelValue: l.value,
|
|
965
|
-
"onUpdate:modelValue":
|
|
966
|
-
open:
|
|
967
|
-
"onUpdate:open":
|
|
967
|
+
"onUpdate:modelValue": v[1] || (v[1] = (U) => l.value = U),
|
|
968
|
+
open: T(d),
|
|
969
|
+
"onUpdate:open": v[2] || (v[2] = (U) => ve(d) ? d.value = U : null)
|
|
968
970
|
}, null, 8, ["modelValue", "open"]),
|
|
969
|
-
|
|
970
|
-
style: I(
|
|
971
|
+
X("div", {
|
|
972
|
+
style: I(r.value)
|
|
971
973
|
}, null, 4)
|
|
972
974
|
], 4)
|
|
973
975
|
], 4)
|
|
@@ -978,8 +980,8 @@ const cn = { class: "text-subtitle-2 ml-1" }, dn = { class: "text-caption text-g
|
|
|
978
980
|
};
|
|
979
981
|
}
|
|
980
982
|
});
|
|
981
|
-
function
|
|
982
|
-
return { renderUiCompSelect: (t, e, n, l, i) => e.ui !== "compSelect" ? (console.assert(!1), h("div", "renderUiCompSelect prop ui must be compSelect")) : h(
|
|
983
|
+
function pn(o) {
|
|
984
|
+
return { renderUiCompSelect: (t, e, n, l, i) => e.ui !== "compSelect" ? (console.assert(!1), h("div", "renderUiCompSelect prop ui must be compSelect")) : h(vn, {
|
|
983
985
|
modelValue: ne(
|
|
984
986
|
t,
|
|
985
987
|
e,
|
|
@@ -1001,65 +1003,65 @@ function kn(o) {
|
|
|
1001
1003
|
}
|
|
1002
1004
|
}) };
|
|
1003
1005
|
}
|
|
1004
|
-
const
|
|
1006
|
+
const yn = { class: "d-flex justify-space-between align-center" }, gn = /* @__PURE__ */ R({
|
|
1005
1007
|
__name: "colorPicker",
|
|
1006
|
-
props: /* @__PURE__ */
|
|
1008
|
+
props: /* @__PURE__ */ Y({
|
|
1007
1009
|
hasDelete: { type: Boolean, default: !1 },
|
|
1008
1010
|
readonly: { type: Boolean, default: !1 }
|
|
1009
1011
|
}, {
|
|
1010
1012
|
modelValue: {},
|
|
1011
1013
|
modelModifiers: {}
|
|
1012
1014
|
}),
|
|
1013
|
-
emits: /* @__PURE__ */
|
|
1015
|
+
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
1014
1016
|
setup(o, { emit: s }) {
|
|
1015
|
-
const { t } = te(), e =
|
|
1016
|
-
let
|
|
1017
|
-
return o.hasDelete && (
|
|
1018
|
-
width:
|
|
1017
|
+
const { t } = te(), e = z(o, "modelValue"), n = s, l = K(() => {
|
|
1018
|
+
let u = "100%";
|
|
1019
|
+
return o.hasDelete && (u = "calc(100% - 37px)"), {
|
|
1020
|
+
width: u
|
|
1019
1021
|
};
|
|
1020
|
-
}), i = K(() => o.readonly), { open: a } =
|
|
1021
|
-
return
|
|
1022
|
+
}), i = K(() => o.readonly), { open: a } = Ce(`propTreeColorPickerMenu${Me()}`);
|
|
1023
|
+
return we(() => {
|
|
1022
1024
|
a.value = !1;
|
|
1023
|
-
}), (
|
|
1024
|
-
const
|
|
1025
|
-
return
|
|
1026
|
-
modelValue:
|
|
1027
|
-
"onUpdate:modelValue":
|
|
1025
|
+
}), (u, r) => {
|
|
1026
|
+
const y = S("v-btn"), d = S("v-color-picker"), g = S("v-menu");
|
|
1027
|
+
return k(), B(g, {
|
|
1028
|
+
modelValue: T(a),
|
|
1029
|
+
"onUpdate:modelValue": r[2] || (r[2] = (v) => ve(a) ? a.value = v : null),
|
|
1028
1030
|
"close-on-content-click": !1,
|
|
1029
1031
|
scrim: "transparent"
|
|
1030
1032
|
}, {
|
|
1031
|
-
activator:
|
|
1032
|
-
|
|
1033
|
-
|
|
1033
|
+
activator: J(({ props: v }) => [
|
|
1034
|
+
X("div", yn, [
|
|
1035
|
+
X("div", {
|
|
1034
1036
|
class: "flex-grow-1",
|
|
1035
1037
|
style: I(l.value)
|
|
1036
1038
|
}, [
|
|
1037
|
-
|
|
1039
|
+
M(y, De(v, {
|
|
1038
1040
|
density: "comfortable",
|
|
1039
1041
|
color: e.value,
|
|
1040
1042
|
block: "",
|
|
1041
1043
|
disabled: i.value
|
|
1042
1044
|
}), {
|
|
1043
|
-
default:
|
|
1044
|
-
|
|
1045
|
+
default: J(() => [
|
|
1046
|
+
Ve(W(e.value ? e.value : T(t)("x-runtime-lib.notSet")), 1)
|
|
1045
1047
|
]),
|
|
1046
1048
|
_: 2
|
|
1047
1049
|
}, 1040, ["color", "disabled"])
|
|
1048
1050
|
], 4),
|
|
1049
|
-
|
|
1051
|
+
u.hasDelete ? (k(), B(y, {
|
|
1050
1052
|
key: 0,
|
|
1051
1053
|
class: "mx-2",
|
|
1052
1054
|
variant: "text",
|
|
1053
1055
|
density: "compact",
|
|
1054
|
-
icon:
|
|
1055
|
-
onClick:
|
|
1056
|
-
}
|
|
1056
|
+
icon: "mdi-minus",
|
|
1057
|
+
onClick: r[0] || (r[0] = F((x) => n("delete"), ["stop"]))
|
|
1058
|
+
})) : G("", !0)
|
|
1057
1059
|
])
|
|
1058
1060
|
]),
|
|
1059
|
-
default:
|
|
1060
|
-
|
|
1061
|
+
default: J(() => [
|
|
1062
|
+
M(d, {
|
|
1061
1063
|
modelValue: e.value,
|
|
1062
|
-
"onUpdate:modelValue":
|
|
1064
|
+
"onUpdate:modelValue": r[1] || (r[1] = (v) => e.value = v),
|
|
1063
1065
|
mode: "hexa",
|
|
1064
1066
|
"show-swatches": "",
|
|
1065
1067
|
"swatches-max-height": "150px"
|
|
@@ -1070,8 +1072,8 @@ const Vn = { class: "d-flex justify-space-between align-center" }, Cn = /* @__PU
|
|
|
1070
1072
|
};
|
|
1071
1073
|
}
|
|
1072
1074
|
});
|
|
1073
|
-
function
|
|
1074
|
-
return { renderUiColorPicker: (t, e, n, l, i) => e.ui !== "colorPicker" ? (console.assert(!1), h("div", "renderUiColorPicker prop ui must be colorPicker")) : h(
|
|
1075
|
+
function hn(o) {
|
|
1076
|
+
return { renderUiColorPicker: (t, e, n, l, i) => e.ui !== "colorPicker" ? (console.assert(!1), h("div", "renderUiColorPicker prop ui must be colorPicker")) : h(gn, {
|
|
1075
1077
|
modelValue: ne(
|
|
1076
1078
|
t,
|
|
1077
1079
|
e,
|
|
@@ -1098,105 +1100,93 @@ function Sn(o) {
|
|
|
1098
1100
|
readonly: e.readonly
|
|
1099
1101
|
}) };
|
|
1100
1102
|
}
|
|
1101
|
-
const
|
|
1103
|
+
const _n = { class: "d-flex justify-space-between align-center my-2" }, kn = { class: "flex-grow-1" }, Vn = /* @__PURE__ */ R({
|
|
1102
1104
|
__name: "multiTypes",
|
|
1103
|
-
props: /* @__PURE__ */
|
|
1105
|
+
props: /* @__PURE__ */ Y({
|
|
1104
1106
|
hasDelete: { type: Boolean, default: !1 },
|
|
1105
1107
|
types: {}
|
|
1106
1108
|
}, {
|
|
1107
1109
|
modelValue: {},
|
|
1108
1110
|
modelModifiers: {}
|
|
1109
1111
|
}),
|
|
1110
|
-
emits: /* @__PURE__ */
|
|
1112
|
+
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
1111
1113
|
setup(o, { emit: s }) {
|
|
1112
|
-
const { t } = te(), e =
|
|
1113
|
-
|
|
1114
|
-
return
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
return (m = i.value) == null || m.forEach(({ title: k }, L) => {
|
|
1119
|
-
f.push({
|
|
1120
|
-
title: t(k),
|
|
1121
|
-
value: L
|
|
1114
|
+
const { t } = te(), e = z(o, "modelValue"), n = s, l = be(), i = K(() => He[l.value]?.types[o.types]), a = O(0), u = K(() => {
|
|
1115
|
+
const g = [];
|
|
1116
|
+
return i.value?.forEach(({ title: v }, x) => {
|
|
1117
|
+
g.push({
|
|
1118
|
+
title: t(v),
|
|
1119
|
+
value: x
|
|
1122
1120
|
});
|
|
1123
|
-
}),
|
|
1121
|
+
}), g;
|
|
1124
1122
|
});
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
(f = i.value) == null || f.some((m, k) => m.validator(e.value) ? (a.value = k, !0) : !1);
|
|
1123
|
+
Le(() => {
|
|
1124
|
+
i.value?.some((g, v) => g.validator(e.value) ? (a.value = v, !0) : !1);
|
|
1128
1125
|
});
|
|
1129
|
-
const
|
|
1130
|
-
|
|
1131
|
-
return (f = i.value) == null ? void 0 : f[a.value];
|
|
1132
|
-
}), g = () => {
|
|
1133
|
-
var f;
|
|
1134
|
-
e.value = (f = u.value) == null ? void 0 : f.default;
|
|
1126
|
+
const r = K(() => i.value?.[a.value]), y = () => {
|
|
1127
|
+
e.value = r.value?.default;
|
|
1135
1128
|
}, d = O(0);
|
|
1136
|
-
return
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
return S(), H("div", Un, [
|
|
1146
|
-
F("div", $n, [
|
|
1147
|
-
ee(b(k, {
|
|
1129
|
+
return Le(() => {
|
|
1130
|
+
r.value?.ui === "pixelInput" ? d.value = _t(e.value) : r.value?.ui === "percentInput" && (d.value = kt(e.value));
|
|
1131
|
+
}), re(d, (g) => {
|
|
1132
|
+
r.value?.ui === "pixelInput" ? e.value = g + "px" : r.value?.ui === "percentInput" && (e.value = g + "%");
|
|
1133
|
+
}), (g, v) => {
|
|
1134
|
+
const x = S("v-select"), L = S("v-number-input"), P = S("v-btn"), D = le("ripple");
|
|
1135
|
+
return k(), E("div", _n, [
|
|
1136
|
+
X("div", kn, [
|
|
1137
|
+
ee(M(x, {
|
|
1148
1138
|
modelValue: a.value,
|
|
1149
1139
|
"onUpdate:modelValue": [
|
|
1150
|
-
|
|
1151
|
-
|
|
1140
|
+
v[0] || (v[0] = (U) => a.value = U),
|
|
1141
|
+
y
|
|
1152
1142
|
],
|
|
1153
1143
|
density: "compact",
|
|
1154
|
-
items:
|
|
1144
|
+
items: u.value,
|
|
1155
1145
|
"hide-details": "",
|
|
1156
1146
|
"single-line": ""
|
|
1157
1147
|
}, null, 8, ["modelValue", "items"]), [
|
|
1158
1148
|
[
|
|
1159
|
-
|
|
1149
|
+
D,
|
|
1160
1150
|
void 0,
|
|
1161
1151
|
void 0,
|
|
1162
1152
|
{ stop: !0 }
|
|
1163
1153
|
]
|
|
1164
1154
|
]),
|
|
1165
|
-
|
|
1155
|
+
r.value?.ui === "pixelInput" || r.value?.ui === "percentInput" ? ee((k(), B(L, {
|
|
1166
1156
|
key: 0,
|
|
1167
1157
|
modelValue: d.value,
|
|
1168
|
-
"onUpdate:modelValue":
|
|
1158
|
+
"onUpdate:modelValue": v[1] || (v[1] = (U) => d.value = U),
|
|
1169
1159
|
density: "compact",
|
|
1170
1160
|
"control-variant": "stacked",
|
|
1171
|
-
precision:
|
|
1172
|
-
min:
|
|
1173
|
-
max:
|
|
1174
|
-
step:
|
|
1161
|
+
precision: r.value.precision,
|
|
1162
|
+
min: r.value.min,
|
|
1163
|
+
max: r.value.max,
|
|
1164
|
+
step: r.value.step,
|
|
1175
1165
|
"hide-details": "",
|
|
1176
1166
|
"single-line": ""
|
|
1177
1167
|
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
1178
1168
|
[
|
|
1179
|
-
|
|
1169
|
+
D,
|
|
1180
1170
|
void 0,
|
|
1181
1171
|
void 0,
|
|
1182
1172
|
{ stop: !0 }
|
|
1183
1173
|
]
|
|
1184
|
-
]) :
|
|
1174
|
+
]) : G("", !0)
|
|
1185
1175
|
]),
|
|
1186
|
-
|
|
1176
|
+
g.hasDelete ? (k(), B(P, {
|
|
1187
1177
|
key: 0,
|
|
1188
1178
|
class: "mx-2",
|
|
1189
1179
|
variant: "text",
|
|
1190
1180
|
density: "compact",
|
|
1191
|
-
icon:
|
|
1192
|
-
onClick:
|
|
1193
|
-
}
|
|
1181
|
+
icon: "mdi-minus",
|
|
1182
|
+
onClick: v[2] || (v[2] = F((U) => n("delete"), ["stop"]))
|
|
1183
|
+
})) : G("", !0)
|
|
1194
1184
|
]);
|
|
1195
1185
|
};
|
|
1196
1186
|
}
|
|
1197
1187
|
});
|
|
1198
|
-
function
|
|
1199
|
-
return { renderUiMultiTypes: (t, e, n, l, i) => e.ui !== "multiTypes" ? (console.assert(!1), h("div", "renderUiMultiTypes prop ui must be multiTypes")) : h(
|
|
1188
|
+
function Cn(o) {
|
|
1189
|
+
return { renderUiMultiTypes: (t, e, n, l, i) => e.ui !== "multiTypes" ? (console.assert(!1), h("div", "renderUiMultiTypes prop ui must be multiTypes")) : h(Vn, {
|
|
1200
1190
|
modelValue: ne(
|
|
1201
1191
|
t,
|
|
1202
1192
|
e,
|
|
@@ -1223,7 +1213,7 @@ function Pn(o) {
|
|
|
1223
1213
|
types: e.types
|
|
1224
1214
|
}) };
|
|
1225
1215
|
}
|
|
1226
|
-
const
|
|
1216
|
+
const Sn = /* @__PURE__ */ R({
|
|
1227
1217
|
__name: "editor",
|
|
1228
1218
|
props: {
|
|
1229
1219
|
modelValue: { required: !0 },
|
|
@@ -1235,29 +1225,28 @@ const Mn = /* @__PURE__ */ J({
|
|
|
1235
1225
|
},
|
|
1236
1226
|
emits: ["update:modelValue", "update:lock", "update:scale"],
|
|
1237
1227
|
setup(o, { expose: s }) {
|
|
1238
|
-
const t =
|
|
1239
|
-
var f;
|
|
1228
|
+
const t = z(o, "modelValue"), e = z(o, "lock"), n = z(o, "scale"), l = pt(), i = yt(), a = be(), u = Ke("target"), r = () => {
|
|
1240
1229
|
const d = JSON.parse(t.value);
|
|
1241
|
-
|
|
1230
|
+
u.value?.load(d);
|
|
1242
1231
|
};
|
|
1243
1232
|
return s({ save: () => {
|
|
1244
|
-
const d =
|
|
1233
|
+
const d = u.value.save();
|
|
1245
1234
|
t.value = JSON.stringify(d, null, 2);
|
|
1246
|
-
} }), (d,
|
|
1235
|
+
} }), (d, g) => (k(), B(T(St), {
|
|
1247
1236
|
ref_key: "target",
|
|
1248
|
-
ref:
|
|
1237
|
+
ref: u,
|
|
1249
1238
|
lock: e.value,
|
|
1250
|
-
"onUpdate:lock":
|
|
1239
|
+
"onUpdate:lock": g[0] || (g[0] = (v) => e.value = v),
|
|
1251
1240
|
scale: n.value,
|
|
1252
|
-
"onUpdate:scale":
|
|
1241
|
+
"onUpdate:scale": g[1] || (g[1] = (v) => n.value = v),
|
|
1253
1242
|
type: "json",
|
|
1254
|
-
version:
|
|
1255
|
-
locale:
|
|
1256
|
-
dark:
|
|
1257
|
-
onReady:
|
|
1243
|
+
version: T(a),
|
|
1244
|
+
locale: T(i),
|
|
1245
|
+
dark: T(l),
|
|
1246
|
+
onReady: r
|
|
1258
1247
|
}, null, 8, ["lock", "scale", "version", "locale", "dark"]));
|
|
1259
1248
|
}
|
|
1260
|
-
}),
|
|
1249
|
+
}), Un = { class: "text-subtitle-1" }, $n = /* @__PURE__ */ R({
|
|
1261
1250
|
__name: "index",
|
|
1262
1251
|
props: {
|
|
1263
1252
|
modelValue: { required: !0 },
|
|
@@ -1265,85 +1254,84 @@ const Mn = /* @__PURE__ */ J({
|
|
|
1265
1254
|
},
|
|
1266
1255
|
emits: ["update:modelValue"],
|
|
1267
1256
|
setup(o) {
|
|
1268
|
-
const { t: s } = te(), { sysBarAvail: t } = Je(), { backgroundColor0: e, backgroundColor1: n, backgroundColor2: l } = ie(), i =
|
|
1269
|
-
let
|
|
1270
|
-
return t.value && (
|
|
1257
|
+
const { t: s } = te(), { sysBarAvail: t } = Je(), { backgroundColor0: e, backgroundColor1: n, backgroundColor2: l } = ie(), i = z(o, "modelValue"), a = O(!1), u = O(1), r = K(() => {
|
|
1258
|
+
let v = 48;
|
|
1259
|
+
return t.value && (v += 24), {
|
|
1271
1260
|
position: "relative",
|
|
1272
1261
|
background: n.value,
|
|
1273
|
-
height: `calc(100% - ${
|
|
1262
|
+
height: `calc(100% - ${v}px)`
|
|
1274
1263
|
};
|
|
1275
|
-
}),
|
|
1276
|
-
|
|
1264
|
+
}), y = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } = Ce(`propTreeJsonObjectDlg${Me()}`);
|
|
1265
|
+
we(() => {
|
|
1277
1266
|
d.value = !1;
|
|
1278
1267
|
});
|
|
1279
|
-
const
|
|
1280
|
-
return
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
modelValue:
|
|
1287
|
-
"onUpdate:modelValue": k[4] || (k[4] = (_) => pe(d) ? d.value = _ : null),
|
|
1268
|
+
const g = Ke("editor");
|
|
1269
|
+
return re(d, (v) => {
|
|
1270
|
+
v || g.value?.save();
|
|
1271
|
+
}), (v, x) => {
|
|
1272
|
+
const L = S("v-btn"), P = S("v-sheet"), D = S("v-spacer"), U = S("v-dialog");
|
|
1273
|
+
return k(), B(U, {
|
|
1274
|
+
modelValue: T(d),
|
|
1275
|
+
"onUpdate:modelValue": x[4] || (x[4] = (V) => ve(d) ? d.value = V : null),
|
|
1288
1276
|
transition: "dialog-bottom-transition",
|
|
1289
1277
|
persistent: "",
|
|
1290
1278
|
"no-click-animation": "",
|
|
1291
1279
|
fullscreen: "",
|
|
1292
1280
|
attach: "",
|
|
1293
|
-
onKeydown:
|
|
1281
|
+
onKeydown: x[5] || (x[5] = Be(F((V) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1294
1282
|
}, {
|
|
1295
|
-
activator:
|
|
1296
|
-
|
|
1283
|
+
activator: J(({ props: V }) => [
|
|
1284
|
+
M(L, De(V, {
|
|
1297
1285
|
density: "comfortable",
|
|
1298
1286
|
block: ""
|
|
1299
1287
|
}), {
|
|
1300
|
-
default:
|
|
1301
|
-
|
|
1288
|
+
default: J(() => [
|
|
1289
|
+
Ve(W(y.value), 1)
|
|
1302
1290
|
]),
|
|
1303
1291
|
_: 2
|
|
1304
1292
|
}, 1040)
|
|
1305
1293
|
]),
|
|
1306
|
-
default:
|
|
1307
|
-
|
|
1308
|
-
color:
|
|
1294
|
+
default: J(() => [
|
|
1295
|
+
M(P, {
|
|
1296
|
+
color: T(e),
|
|
1309
1297
|
width: "100%",
|
|
1310
1298
|
height: "100%"
|
|
1311
1299
|
}, {
|
|
1312
|
-
default:
|
|
1313
|
-
|
|
1300
|
+
default: J(() => [
|
|
1301
|
+
T(t) ? (k(), B(P, {
|
|
1314
1302
|
key: 0,
|
|
1315
|
-
color:
|
|
1303
|
+
color: T(l),
|
|
1316
1304
|
height: 24
|
|
1317
|
-
}, null, 8, ["color"])) :
|
|
1318
|
-
|
|
1305
|
+
}, null, 8, ["color"])) : G("", !0),
|
|
1306
|
+
M(P, {
|
|
1319
1307
|
class: "d-flex align-center px-2",
|
|
1320
|
-
color:
|
|
1308
|
+
color: T(l),
|
|
1321
1309
|
height: 48
|
|
1322
1310
|
}, {
|
|
1323
|
-
default:
|
|
1324
|
-
|
|
1311
|
+
default: J(() => [
|
|
1312
|
+
M(L, {
|
|
1325
1313
|
variant: "text",
|
|
1326
1314
|
density: "comfortable",
|
|
1327
|
-
icon:
|
|
1328
|
-
onClick:
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
|
|
1315
|
+
icon: "mdi-close",
|
|
1316
|
+
onClick: x[0] || (x[0] = (V) => d.value = !1)
|
|
1317
|
+
}),
|
|
1318
|
+
X("span", Un, W(T(s)("x-prop-tree.dlg.jsonObject.title")), 1),
|
|
1319
|
+
M(D)
|
|
1332
1320
|
]),
|
|
1333
1321
|
_: 1
|
|
1334
1322
|
}, 8, ["color"]),
|
|
1335
|
-
|
|
1336
|
-
style: I(
|
|
1323
|
+
X("div", {
|
|
1324
|
+
style: I(r.value)
|
|
1337
1325
|
}, [
|
|
1338
|
-
|
|
1326
|
+
M(Sn, {
|
|
1339
1327
|
ref_key: "editor",
|
|
1340
|
-
ref:
|
|
1328
|
+
ref: g,
|
|
1341
1329
|
modelValue: i.value,
|
|
1342
|
-
"onUpdate:modelValue":
|
|
1330
|
+
"onUpdate:modelValue": x[1] || (x[1] = (V) => i.value = V),
|
|
1343
1331
|
lock: a.value,
|
|
1344
|
-
"onUpdate:lock":
|
|
1345
|
-
scale:
|
|
1346
|
-
"onUpdate:scale":
|
|
1332
|
+
"onUpdate:lock": x[2] || (x[2] = (V) => a.value = V),
|
|
1333
|
+
scale: u.value,
|
|
1334
|
+
"onUpdate:scale": x[3] || (x[3] = (V) => u.value = V)
|
|
1347
1335
|
}, null, 8, ["modelValue", "lock", "scale"])
|
|
1348
1336
|
], 4)
|
|
1349
1337
|
]),
|
|
@@ -1355,8 +1343,8 @@ const Mn = /* @__PURE__ */ J({
|
|
|
1355
1343
|
};
|
|
1356
1344
|
}
|
|
1357
1345
|
});
|
|
1358
|
-
function
|
|
1359
|
-
return { renderUiJsonEditor: (t, e, n, l, i) => e.ui !== "jsonEditor" ? h("div", "renderUiJsonObject prop ui must be jsonEditor") : h(
|
|
1346
|
+
function xn(o) {
|
|
1347
|
+
return { renderUiJsonEditor: (t, e, n, l, i) => e.ui !== "jsonEditor" ? h("div", "renderUiJsonObject prop ui must be jsonEditor") : h($n, {
|
|
1360
1348
|
modelValue: ne(
|
|
1361
1349
|
t,
|
|
1362
1350
|
e,
|
|
@@ -1378,7 +1366,7 @@ function bn(o) {
|
|
|
1378
1366
|
}
|
|
1379
1367
|
}) };
|
|
1380
1368
|
}
|
|
1381
|
-
const
|
|
1369
|
+
const Pn = /* @__PURE__ */ R({
|
|
1382
1370
|
__name: "index",
|
|
1383
1371
|
props: {
|
|
1384
1372
|
unique: {},
|
|
@@ -1388,101 +1376,101 @@ const An = /* @__PURE__ */ J({
|
|
|
1388
1376
|
},
|
|
1389
1377
|
emits: ["change"],
|
|
1390
1378
|
setup(o, { emit: s }) {
|
|
1391
|
-
const { t } = te(), { backgroundColor1: e } = ie(), n = o, l = s, i = O("20px"), a = O("56px"),
|
|
1392
|
-
|
|
1379
|
+
const { t } = te(), { backgroundColor1: e } = ie(), n = o, l = s, i = O("20px"), a = O("56px"), u = O("200px"), r = ft({}), y = O({}), d = (m, c) => {
|
|
1380
|
+
Oe(y, n.config, n.object), l("change", m, c);
|
|
1393
1381
|
};
|
|
1394
|
-
|
|
1382
|
+
re(
|
|
1395
1383
|
[() => n.config, () => n.object],
|
|
1396
1384
|
() => {
|
|
1397
|
-
|
|
1398
|
-
l("change",
|
|
1385
|
+
Oe(y, n.config, n.object, (m, c) => {
|
|
1386
|
+
l("change", m, c);
|
|
1399
1387
|
});
|
|
1400
1388
|
},
|
|
1401
1389
|
{ immediate: !0 }
|
|
1402
1390
|
);
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1391
|
+
const g = O(n.version);
|
|
1392
|
+
At(g), re(
|
|
1405
1393
|
() => n.version,
|
|
1406
1394
|
() => {
|
|
1407
|
-
|
|
1395
|
+
g.value = n.version;
|
|
1408
1396
|
}
|
|
1409
1397
|
);
|
|
1410
|
-
const
|
|
1411
|
-
|
|
1398
|
+
const v = O(n.config);
|
|
1399
|
+
bt(v), re(
|
|
1412
1400
|
() => n.config,
|
|
1413
1401
|
() => {
|
|
1414
|
-
|
|
1402
|
+
v.value = n.config;
|
|
1415
1403
|
}
|
|
1416
1404
|
);
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1405
|
+
const x = O(n.object);
|
|
1406
|
+
Lt(x), re(
|
|
1419
1407
|
() => n.object,
|
|
1420
1408
|
() => {
|
|
1421
|
-
|
|
1409
|
+
x.value = n.object;
|
|
1422
1410
|
}
|
|
1423
|
-
),
|
|
1411
|
+
), Ot(y), Bt(d);
|
|
1424
1412
|
const L = O([]);
|
|
1425
|
-
|
|
1426
|
-
const
|
|
1427
|
-
const { compGroups:
|
|
1428
|
-
|
|
1429
|
-
const
|
|
1430
|
-
|
|
1431
|
-
id:
|
|
1413
|
+
Jt(L);
|
|
1414
|
+
const P = () => {
|
|
1415
|
+
const { compGroups: m, comps: c } = Vt.app.activeApp, p = [];
|
|
1416
|
+
m.forEach(({ id: f, name: _, position: $ }) => {
|
|
1417
|
+
const b = L.value.find((Z) => Z.id === f);
|
|
1418
|
+
p.push({
|
|
1419
|
+
id: f,
|
|
1432
1420
|
type: 0,
|
|
1433
|
-
name:
|
|
1434
|
-
position:
|
|
1435
|
-
collapse:
|
|
1421
|
+
name: _,
|
|
1422
|
+
position: $,
|
|
1423
|
+
collapse: b?.collapse ?? !0
|
|
1436
1424
|
});
|
|
1437
|
-
}), c.forEach(({ id:
|
|
1438
|
-
|
|
1439
|
-
}),
|
|
1425
|
+
}), c.forEach(({ id: f, groupid: _, name: $, position: b }) => {
|
|
1426
|
+
p.push({ id: f, type: 1, name: $, position: b, group: _ });
|
|
1427
|
+
}), ht(p, !0), L.value = p;
|
|
1440
1428
|
};
|
|
1441
|
-
let
|
|
1442
|
-
const
|
|
1443
|
-
clearTimeout(
|
|
1444
|
-
|
|
1429
|
+
let D;
|
|
1430
|
+
const U = () => {
|
|
1431
|
+
clearTimeout(D), D = window.setTimeout(() => {
|
|
1432
|
+
P(), D && U();
|
|
1445
1433
|
}, 1e3);
|
|
1446
|
-
},
|
|
1447
|
-
clearTimeout(
|
|
1434
|
+
}, V = () => {
|
|
1435
|
+
clearTimeout(D), D = void 0;
|
|
1448
1436
|
};
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
}),
|
|
1452
|
-
|
|
1437
|
+
mt(() => {
|
|
1438
|
+
U();
|
|
1439
|
+
}), vt(() => {
|
|
1440
|
+
V();
|
|
1453
1441
|
});
|
|
1454
|
-
const { renderProp:
|
|
1455
|
-
|
|
1442
|
+
const { renderProp: A } = Xt(y, a, u), { renderUiDummy: N } = Ft(d), { renderUiStrInput: Q } = Yt(d), { renderUiNumInput: xe } = Zt(d), { renderUiSwitch: Ze } = en(d), { renderUiSelect: je } = ln(d), { renderUiColorPicker: Ie } = hn(d), { renderUiJsonEditor: et } = xn(d), { renderUiMultiTypes: tt } = Cn(d), { renderUiCompSelect: nt } = pn(d), pe = (m, c, p, f, _, $) => (m = Re(m), _ !== void 0 ? (m.push(_), $ && m.push(c.key)) : m.push(c.key), c.ui ? c.array && f ? st(m, c, p, f, _, $) : it(m, c, p, _, $) : c.array ? lt(m, c, p, f, _, $) : ot(
|
|
1443
|
+
m,
|
|
1456
1444
|
c,
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
)),
|
|
1445
|
+
p,
|
|
1446
|
+
f,
|
|
1447
|
+
_,
|
|
1448
|
+
$
|
|
1449
|
+
)), lt = (m, c, p, f, _, $) => {
|
|
1462
1450
|
if (c.ui)
|
|
1463
1451
|
return console.assert(!1), h("div", "renderBranchArray prop ui must be invalid");
|
|
1464
1452
|
if (!c.array)
|
|
1465
1453
|
return console.assert(!1), h("div", "renderBranchArray prop array must be valid");
|
|
1466
|
-
if (!
|
|
1454
|
+
if (!f)
|
|
1467
1455
|
return console.assert(!1), h("div", "renderBranchArray branch must be valid");
|
|
1468
|
-
let
|
|
1469
|
-
|
|
1470
|
-
let
|
|
1471
|
-
|
|
1472
|
-
const
|
|
1473
|
-
title:
|
|
1474
|
-
collapse:
|
|
1456
|
+
let b;
|
|
1457
|
+
_ !== void 0 && !$ ? (p[_] instanceof Array || (p[_] = q(c), d(m, p[c.key])), b = p[_]) : (p[c.key] instanceof Array || (p[c.key] = q(c), d(m, p[c.key])), b = p[c.key]);
|
|
1458
|
+
let Z = t(c.name);
|
|
1459
|
+
f.collapse && ae(y.value, m) && (Z += " *");
|
|
1460
|
+
const fe = h(_e, {
|
|
1461
|
+
title: Z,
|
|
1462
|
+
collapse: f.collapse,
|
|
1475
1463
|
hasCreate: !0,
|
|
1476
|
-
onCollapse: (
|
|
1477
|
-
|
|
1464
|
+
onCollapse: (C) => {
|
|
1465
|
+
f.collapse = C;
|
|
1478
1466
|
},
|
|
1479
|
-
onMenu: (
|
|
1480
|
-
|
|
1467
|
+
onMenu: (C, w) => {
|
|
1468
|
+
ue.emit("propTreeMenu", { x: C, y: w, keys: m });
|
|
1481
1469
|
},
|
|
1482
1470
|
onCreate: () => {
|
|
1483
|
-
|
|
1471
|
+
b.push({}), d(m, b);
|
|
1484
1472
|
}
|
|
1485
|
-
}),
|
|
1473
|
+
}), H = h(
|
|
1486
1474
|
"div",
|
|
1487
1475
|
{
|
|
1488
1476
|
style: {
|
|
@@ -1490,44 +1478,44 @@ const An = /* @__PURE__ */ J({
|
|
|
1490
1478
|
}
|
|
1491
1479
|
},
|
|
1492
1480
|
(() => {
|
|
1493
|
-
const
|
|
1494
|
-
for (let
|
|
1495
|
-
if (!
|
|
1481
|
+
const C = [];
|
|
1482
|
+
for (let w = 0; w < b.length; w++) {
|
|
1483
|
+
if (!Pe(f.children)) {
|
|
1496
1484
|
console.assert(!1);
|
|
1497
1485
|
break;
|
|
1498
1486
|
}
|
|
1499
|
-
|
|
1487
|
+
f.children[w] || f.children.push({
|
|
1500
1488
|
collapse: !0,
|
|
1501
1489
|
children: {}
|
|
1502
1490
|
});
|
|
1503
|
-
const
|
|
1504
|
-
let
|
|
1505
|
-
|
|
1506
|
-
const
|
|
1507
|
-
title:
|
|
1508
|
-
collapse:
|
|
1491
|
+
const ye = [...m, w], ge = f.children[w];
|
|
1492
|
+
let Te = `[${w + 1}]`;
|
|
1493
|
+
f.children[w].collapse && ae(y.value, ye) && (Te += " *");
|
|
1494
|
+
const ut = h(_e, {
|
|
1495
|
+
title: Te,
|
|
1496
|
+
collapse: f.children[w].collapse,
|
|
1509
1497
|
hasDelete: !0,
|
|
1510
|
-
index:
|
|
1498
|
+
index: w,
|
|
1511
1499
|
onCollapse: (j) => {
|
|
1512
|
-
if (!
|
|
1500
|
+
if (!Pe(f.children)) {
|
|
1513
1501
|
console.assert(!1);
|
|
1514
1502
|
return;
|
|
1515
1503
|
}
|
|
1516
|
-
|
|
1504
|
+
f.children[w].collapse = j;
|
|
1517
1505
|
},
|
|
1518
1506
|
onMenu: (j, se) => {
|
|
1519
|
-
|
|
1507
|
+
ue.emit("propTreeMenu", { x: j, y: se, keys: ye });
|
|
1520
1508
|
},
|
|
1521
1509
|
onDelete: (j) => {
|
|
1522
|
-
if (!
|
|
1510
|
+
if (!Pe(f.children)) {
|
|
1523
1511
|
console.assert(!1);
|
|
1524
1512
|
return;
|
|
1525
1513
|
}
|
|
1526
|
-
|
|
1514
|
+
f.children.splice(j, 1), b.splice(j, 1), d(m, b);
|
|
1527
1515
|
}
|
|
1528
1516
|
});
|
|
1529
|
-
|
|
1530
|
-
const
|
|
1517
|
+
C.push(ut);
|
|
1518
|
+
const at = h(
|
|
1531
1519
|
"div",
|
|
1532
1520
|
{
|
|
1533
1521
|
style: {
|
|
@@ -1537,29 +1525,29 @@ const An = /* @__PURE__ */ J({
|
|
|
1537
1525
|
(() => {
|
|
1538
1526
|
const j = [];
|
|
1539
1527
|
return c.children.forEach((se) => {
|
|
1540
|
-
if (!
|
|
1528
|
+
if (!Ne(ge.children)) {
|
|
1541
1529
|
console.assert(!1);
|
|
1542
1530
|
return;
|
|
1543
1531
|
}
|
|
1544
|
-
|
|
1532
|
+
ge.children[se.key] || (ge.children[se.key] = {
|
|
1545
1533
|
collapse: !0,
|
|
1546
1534
|
children: se.array ? [] : {}
|
|
1547
1535
|
});
|
|
1548
|
-
const
|
|
1549
|
-
|
|
1536
|
+
const ct = pe(
|
|
1537
|
+
m,
|
|
1550
1538
|
se,
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1539
|
+
b[w],
|
|
1540
|
+
ge.children[se.key],
|
|
1541
|
+
w,
|
|
1554
1542
|
!0
|
|
1555
1543
|
);
|
|
1556
|
-
j.push(
|
|
1544
|
+
j.push(ct);
|
|
1557
1545
|
}), j;
|
|
1558
1546
|
})()
|
|
1559
1547
|
);
|
|
1560
|
-
|
|
1548
|
+
f.children[w].collapse || C.push(at);
|
|
1561
1549
|
}
|
|
1562
|
-
return
|
|
1550
|
+
return C;
|
|
1563
1551
|
})()
|
|
1564
1552
|
);
|
|
1565
1553
|
return h(
|
|
@@ -1570,33 +1558,33 @@ const An = /* @__PURE__ */ J({
|
|
|
1570
1558
|
}
|
|
1571
1559
|
},
|
|
1572
1560
|
(() => {
|
|
1573
|
-
const
|
|
1574
|
-
return
|
|
1561
|
+
const C = [];
|
|
1562
|
+
return C.push(fe), f.collapse || C.push(H), C;
|
|
1575
1563
|
})()
|
|
1576
1564
|
);
|
|
1577
|
-
},
|
|
1565
|
+
}, ot = (m, c, p, f, _, $) => {
|
|
1578
1566
|
if (c.ui)
|
|
1579
1567
|
return console.assert(!1), h("div", "renderBranchScalar prop ui must be invalid");
|
|
1580
1568
|
if (c.array)
|
|
1581
1569
|
return console.assert(!1), h("div", "renderBranchScalar prop array must be invalid");
|
|
1582
|
-
if (!
|
|
1570
|
+
if (!f)
|
|
1583
1571
|
return console.assert(!1), h("div", "renderBranchScalar branch must be valid");
|
|
1584
|
-
let
|
|
1585
|
-
|
|
1586
|
-
const
|
|
1587
|
-
title:
|
|
1588
|
-
collapse:
|
|
1589
|
-
hasDelete:
|
|
1590
|
-
onCollapse: (
|
|
1591
|
-
|
|
1572
|
+
let b = t(c.name);
|
|
1573
|
+
f.collapse && ae(y.value, m) && (b += " *");
|
|
1574
|
+
const Z = h(_e, {
|
|
1575
|
+
title: b,
|
|
1576
|
+
collapse: f.collapse,
|
|
1577
|
+
hasDelete: _ !== void 0 && !$,
|
|
1578
|
+
onCollapse: (H) => {
|
|
1579
|
+
f.collapse = H;
|
|
1592
1580
|
},
|
|
1593
|
-
onMenu: (
|
|
1594
|
-
|
|
1581
|
+
onMenu: (H, C) => {
|
|
1582
|
+
ue.emit("propTreeMenu", { x: H, y: C, keys: m });
|
|
1595
1583
|
},
|
|
1596
1584
|
onDelete: () => {
|
|
1597
|
-
|
|
1585
|
+
_ === void 0 || $ || (p.splice(_, 1), d(m.slice(0, -1), p));
|
|
1598
1586
|
}
|
|
1599
|
-
}),
|
|
1587
|
+
}), fe = h(
|
|
1600
1588
|
"div",
|
|
1601
1589
|
{
|
|
1602
1590
|
style: {
|
|
@@ -1604,24 +1592,24 @@ const An = /* @__PURE__ */ J({
|
|
|
1604
1592
|
}
|
|
1605
1593
|
},
|
|
1606
1594
|
(() => {
|
|
1607
|
-
const
|
|
1608
|
-
return c.children.forEach((
|
|
1609
|
-
if (!
|
|
1595
|
+
const H = [];
|
|
1596
|
+
return c.children.forEach((C) => {
|
|
1597
|
+
if (!Ne(f.children)) {
|
|
1610
1598
|
console.assert(!1);
|
|
1611
1599
|
return;
|
|
1612
1600
|
}
|
|
1613
|
-
|
|
1601
|
+
f.children[C.key] || (f.children[C.key] = {
|
|
1614
1602
|
collapse: !0,
|
|
1615
|
-
children: !
|
|
1603
|
+
children: !C.ui && C.array ? [] : {}
|
|
1616
1604
|
});
|
|
1617
|
-
const
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
(typeof
|
|
1621
|
-
|
|
1605
|
+
const w = pe(
|
|
1606
|
+
m,
|
|
1607
|
+
C,
|
|
1608
|
+
(typeof p[c.key] != "object" && (p[c.key] = {}, d(m, p[c.key])), p[c.key]),
|
|
1609
|
+
f.children[C.key]
|
|
1622
1610
|
);
|
|
1623
|
-
|
|
1624
|
-
}),
|
|
1611
|
+
H.push(w);
|
|
1612
|
+
}), H;
|
|
1625
1613
|
})()
|
|
1626
1614
|
);
|
|
1627
1615
|
return h(
|
|
@@ -1632,35 +1620,35 @@ const An = /* @__PURE__ */ J({
|
|
|
1632
1620
|
}
|
|
1633
1621
|
},
|
|
1634
1622
|
(() => {
|
|
1635
|
-
const
|
|
1636
|
-
return
|
|
1623
|
+
const H = [];
|
|
1624
|
+
return H.push(Z), f.collapse || H.push(fe), H;
|
|
1637
1625
|
})()
|
|
1638
1626
|
);
|
|
1639
|
-
},
|
|
1627
|
+
}, st = (m, c, p, f, _, $) => {
|
|
1640
1628
|
if (!c.ui)
|
|
1641
1629
|
return console.assert(!1), h("div", "renderLeafArray prop ui must be valid");
|
|
1642
1630
|
if (!c.array)
|
|
1643
1631
|
return console.assert(!1), h("div", "renderLeafArray prop array must be valid");
|
|
1644
|
-
if (!
|
|
1632
|
+
if (!f)
|
|
1645
1633
|
return console.assert(!1), h("div", "renderLeafArray branch must be valid");
|
|
1646
|
-
let
|
|
1647
|
-
|
|
1648
|
-
let
|
|
1649
|
-
|
|
1650
|
-
const
|
|
1651
|
-
title:
|
|
1652
|
-
collapse:
|
|
1634
|
+
let b;
|
|
1635
|
+
_ !== void 0 && !$ ? (p[_] instanceof Array || (p[_] = q(c), d(m, p[_])), b = p[_]) : (p[c.key] instanceof Array || (p[c.key] = q(c), d(m, p[c.key])), b = p[c.key]);
|
|
1636
|
+
let Z = t(c.name);
|
|
1637
|
+
f.collapse && ae(y.value, m) && (Z += " *");
|
|
1638
|
+
const fe = h(_e, {
|
|
1639
|
+
title: Z,
|
|
1640
|
+
collapse: f.collapse,
|
|
1653
1641
|
hasCreate: !0,
|
|
1654
|
-
onCollapse: (
|
|
1655
|
-
|
|
1642
|
+
onCollapse: (C) => {
|
|
1643
|
+
f.collapse = C;
|
|
1656
1644
|
},
|
|
1657
|
-
onMenu: (
|
|
1658
|
-
|
|
1645
|
+
onMenu: (C, w) => {
|
|
1646
|
+
ue.emit("propTreeMenu", { x: C, y: w, keys: m });
|
|
1659
1647
|
},
|
|
1660
1648
|
onCreate: () => {
|
|
1661
|
-
|
|
1649
|
+
b.push(q(c, !0)), d(m, b);
|
|
1662
1650
|
}
|
|
1663
|
-
}),
|
|
1651
|
+
}), H = h(
|
|
1664
1652
|
"div",
|
|
1665
1653
|
{
|
|
1666
1654
|
style: {
|
|
@@ -1668,12 +1656,12 @@ const An = /* @__PURE__ */ J({
|
|
|
1668
1656
|
}
|
|
1669
1657
|
},
|
|
1670
1658
|
(() => {
|
|
1671
|
-
const
|
|
1672
|
-
for (let
|
|
1673
|
-
const
|
|
1674
|
-
|
|
1659
|
+
const C = [];
|
|
1660
|
+
for (let w = 0; w < b.length; w++) {
|
|
1661
|
+
const ye = pe(m, c, b, void 0, w, !1);
|
|
1662
|
+
C.push(ye);
|
|
1675
1663
|
}
|
|
1676
|
-
return
|
|
1664
|
+
return C;
|
|
1677
1665
|
})()
|
|
1678
1666
|
);
|
|
1679
1667
|
return h(
|
|
@@ -1684,16 +1672,16 @@ const An = /* @__PURE__ */ J({
|
|
|
1684
1672
|
}
|
|
1685
1673
|
},
|
|
1686
1674
|
(() => {
|
|
1687
|
-
const
|
|
1688
|
-
return
|
|
1675
|
+
const C = [];
|
|
1676
|
+
return C.push(fe), f.collapse || C.push(H), C;
|
|
1689
1677
|
})()
|
|
1690
1678
|
);
|
|
1691
|
-
},
|
|
1679
|
+
}, it = (m, c, p, f, _) => {
|
|
1692
1680
|
if (!c.ui)
|
|
1693
1681
|
return console.assert(!1), h("div", "renderLeafScalar prop ui must be valid");
|
|
1694
|
-
let
|
|
1695
|
-
return c.ui === "dummy" ?
|
|
1696
|
-
},
|
|
1682
|
+
let $;
|
|
1683
|
+
return c.ui === "dummy" ? $ = N(m, c, p, f, _) : c.ui === "strInput" ? $ = Q(m, c, p, f, _) : c.ui === "numInput" ? $ = xe(m, c, p, f, _) : c.ui === "switch" ? $ = Ze(m, c, p, f, _) : c.ui === "select" ? $ = je(m, c, p, f, _) : c.ui === "colorPicker" ? $ = Ie(m, c, p, f, _) : c.ui === "jsonEditor" ? $ = et(m, c, p, f, _) : c.ui === "multiTypes" ? $ = tt(m, c, p, f, _) : c.ui === "compSelect" ? $ = nt(m, c, p, f, _) : console.assert(!1, "renderLeafScalar not implemented"), $ ? A(m, c, $) : h("div");
|
|
1684
|
+
}, rt = () => h(
|
|
1697
1685
|
"div",
|
|
1698
1686
|
{
|
|
1699
1687
|
class: "text-body-2",
|
|
@@ -1702,51 +1690,44 @@ const An = /* @__PURE__ */ J({
|
|
|
1702
1690
|
}
|
|
1703
1691
|
},
|
|
1704
1692
|
(() => {
|
|
1705
|
-
const
|
|
1693
|
+
const m = [];
|
|
1706
1694
|
if (n.unique && n.config.length > 0 && n.object) {
|
|
1707
|
-
|
|
1708
|
-
const c =
|
|
1709
|
-
n.config.forEach((
|
|
1710
|
-
c[
|
|
1695
|
+
r[n.unique] || (r[n.unique] = {});
|
|
1696
|
+
const c = r[n.unique];
|
|
1697
|
+
n.config.forEach((p) => {
|
|
1698
|
+
c[p.key] || (c[p.key] = {
|
|
1711
1699
|
collapse: !0,
|
|
1712
|
-
children: !
|
|
1700
|
+
children: !p.ui && p.array ? [] : {}
|
|
1713
1701
|
});
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1702
|
+
const f = pe([], p, n.object, c[p.key]);
|
|
1703
|
+
m.push(f);
|
|
1716
1704
|
});
|
|
1717
1705
|
}
|
|
1718
|
-
return
|
|
1706
|
+
return m;
|
|
1719
1707
|
})()
|
|
1720
1708
|
);
|
|
1721
|
-
return (
|
|
1722
|
-
|
|
1723
|
-
|
|
1709
|
+
return (m, c) => (k(), E(ke, null, [
|
|
1710
|
+
M(rt),
|
|
1711
|
+
M(Rt, {
|
|
1724
1712
|
config: n.config,
|
|
1725
1713
|
object: n.object,
|
|
1726
|
-
"prop-states":
|
|
1714
|
+
"prop-states": y.value
|
|
1727
1715
|
}, null, 8, ["config", "object", "prop-states"])
|
|
1728
1716
|
], 64));
|
|
1729
1717
|
}
|
|
1730
|
-
}),
|
|
1731
|
-
o.component("XPropTree",
|
|
1732
|
-
},
|
|
1718
|
+
}), Mn = (o) => {
|
|
1719
|
+
o.component("XPropTree", Pn);
|
|
1720
|
+
}, wn = (o, s, t) => {
|
|
1733
1721
|
const e = o[s];
|
|
1734
1722
|
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((n, l) => {
|
|
1735
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
1736
|
-
l.bind(
|
|
1737
|
-
null,
|
|
1738
|
-
new Error(
|
|
1739
|
-
"Unknown variable dynamic import: " + s + (s.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
|
|
1740
|
-
)
|
|
1741
|
-
)
|
|
1742
|
-
);
|
|
1723
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(l.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== t ? ". Note that variables only represent file names one level deep." : ""))));
|
|
1743
1724
|
});
|
|
1744
1725
|
};
|
|
1745
|
-
async function
|
|
1746
|
-
return (await
|
|
1726
|
+
async function Bn(o) {
|
|
1727
|
+
return (await wn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.n11iysmh.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.hr18mfah.js") }), `./locales/${o}/index.ts`, 4)).default;
|
|
1747
1728
|
}
|
|
1748
|
-
const
|
|
1729
|
+
const Kn = { install: Mn };
|
|
1749
1730
|
export {
|
|
1750
|
-
|
|
1751
|
-
|
|
1731
|
+
Kn as default,
|
|
1732
|
+
Bn as loadLocaleMessagePropTree
|
|
1752
1733
|
};
|