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