x-prop-tree 0.8.16 → 0.8.18
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,13 +1,13 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./vendor.cs922lli.js";
|
|
2
|
-
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, h, inject as g, isRef as _, mergeModels as v, mergeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, ref as E, renderList as D, renderSlot as ee, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as te, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { globalState as
|
|
7
|
-
import { useDisplay as
|
|
8
|
-
import { XBlockly as
|
|
2
|
+
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, h, inject as g, isRef as _, mergeModels as v, mergeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, ref as E, renderList as D, renderSlot as ee, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as te, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as ne, withModifiers as R } from "vue";
|
|
3
|
+
import { eventBus as z, globalObjects as re, injectDark as ie, injectLocale as ae, openNumberDlg as oe, openPromptDlg as se, useColor as B, useSystem as V, useViewStack as H } from "x-essential-lib";
|
|
4
|
+
import { getElement as ce, getItems as le, getPropertyDefault as U, getPropertyDefaultArray as W, getTag as ue, getTypes as de, isHexColor as fe, isThemeColor as pe, makeSlotId as me, parseNumberUnit as he, pkgs as ge, rules as _e, themeColors as ve } from "x-runtime-lib";
|
|
5
|
+
import { useI18n as G } from "vue-i18n";
|
|
6
|
+
import { globalState as ye } from "x-state-lib";
|
|
7
|
+
import { useDisplay as be } from "vuetify";
|
|
8
|
+
import { XBlockly as xe } from "x-block-lib";
|
|
9
9
|
//#region src/utils/common.ts
|
|
10
|
-
function
|
|
10
|
+
function Se(e, t) {
|
|
11
11
|
let n = {
|
|
12
12
|
key: "",
|
|
13
13
|
name: "",
|
|
@@ -20,7 +20,7 @@ function xe(e, t) {
|
|
|
20
20
|
}
|
|
21
21
|
return n;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function K(e, t) {
|
|
24
24
|
let n = e;
|
|
25
25
|
for (let e of t) {
|
|
26
26
|
if (!n) throw Error("target must be valid");
|
|
@@ -28,42 +28,42 @@ function q(e, t) {
|
|
|
28
28
|
}
|
|
29
29
|
return n;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Ce(t, n, r, i, a, o) {
|
|
32
32
|
if (i !== void 0 && !a) {
|
|
33
33
|
if (!(r[i] instanceof Array)) {
|
|
34
|
-
let a =
|
|
34
|
+
let a = W(n);
|
|
35
35
|
e(a, r[i]) || (r[i] = a, o(t, r[i]));
|
|
36
36
|
}
|
|
37
37
|
return r[i];
|
|
38
38
|
} else {
|
|
39
39
|
if (!(r[n.key] instanceof Array)) {
|
|
40
|
-
let i =
|
|
40
|
+
let i = W(n);
|
|
41
41
|
e(i, r[n.key]) || (r[n.key] = i, o(t, r[n.key]));
|
|
42
42
|
}
|
|
43
43
|
return r[n.key];
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function q(t, n, r, i, a, o) {
|
|
47
47
|
if (i !== void 0 && !a) {
|
|
48
48
|
if (r[i] === void 0) {
|
|
49
|
-
let a =
|
|
49
|
+
let a = U(n);
|
|
50
50
|
e(a, r[i]) || (r[i] = a, o(t, r[i]));
|
|
51
51
|
}
|
|
52
52
|
return r[i];
|
|
53
53
|
} else {
|
|
54
54
|
if (r[n.key] === void 0) {
|
|
55
|
-
let i =
|
|
55
|
+
let i = U(n);
|
|
56
56
|
e(i, r[n.key]) || (r[n.key] = i, o(t, r[n.key]));
|
|
57
57
|
}
|
|
58
58
|
return r[n.key];
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
|
|
61
|
+
function J(t, n, i, a, o, s, c) {
|
|
62
|
+
o !== void 0 && !s ? e(a, i[o]) || (i[o] = r(a), c(t, i[o])) : e(a, i[n.key]) || (i[n.key] = r(a), c(t, i[n.key]));
|
|
63
63
|
}
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region src/utils/collapseState.ts
|
|
66
|
-
function
|
|
66
|
+
function Y(e, t) {
|
|
67
67
|
let n = e.value;
|
|
68
68
|
for (let e of t) {
|
|
69
69
|
if (!n.children[e]) return !0;
|
|
@@ -71,7 +71,7 @@ function X(e, t) {
|
|
|
71
71
|
}
|
|
72
72
|
return n.collapse;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function we(e, t, n) {
|
|
75
75
|
let r = e.value;
|
|
76
76
|
for (let e of t) r.children[e] || (r.children[e] = {
|
|
77
77
|
collapse: !0,
|
|
@@ -81,35 +81,49 @@ function Ce(e, t, n) {
|
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/utils/copyPaste.ts
|
|
84
|
-
var
|
|
84
|
+
var Te = [
|
|
85
85
|
"key",
|
|
86
86
|
"name",
|
|
87
87
|
"children",
|
|
88
88
|
"default",
|
|
89
89
|
"arrayDefault"
|
|
90
|
-
]
|
|
90
|
+
];
|
|
91
|
+
function Ee(n, r) {
|
|
91
92
|
function i(n, r) {
|
|
92
|
-
if (!e(t(n,
|
|
93
|
+
if (!e(t(n, Te), t(r, Te))) return !1;
|
|
93
94
|
if (n.ui || r.ui) return !0;
|
|
94
95
|
if (n.children.length !== r.children.length) return !1;
|
|
95
96
|
for (let e = 0; e < n.children.length; e++) if (!i(n.children[e], r.children[e])) return !1;
|
|
96
97
|
return !0;
|
|
97
98
|
}
|
|
98
99
|
return i(n, r);
|
|
99
|
-
}, Ee = [["basic", "id"], ["basic", "name"]];
|
|
100
|
-
function De(t) {
|
|
101
|
-
return Ee.find((n) => e(t, n));
|
|
102
100
|
}
|
|
103
|
-
function
|
|
101
|
+
function De(e, t, n, r, i, a) {
|
|
102
|
+
function o(e, t, n, r, i) {
|
|
103
|
+
if (t.ui) {
|
|
104
|
+
if (t.readonly || t.static) return;
|
|
105
|
+
J(e, t, n, r, i, !1, a);
|
|
106
|
+
} else if (t.array) J(e, t, n, r, i, !1, a);
|
|
107
|
+
else for (let i of t.children) typeof n == "object" && typeof r == "object" && o([...e, i.key], i, n[t.key], r[i.key], void 0);
|
|
108
|
+
}
|
|
109
|
+
o(e, t, n, r, i);
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/utils/propertyState.ts
|
|
113
|
+
var Oe = [["basic", "id"], ["basic", "name"]];
|
|
114
|
+
function ke(t) {
|
|
115
|
+
return Oe.find((n) => e(t, n));
|
|
116
|
+
}
|
|
117
|
+
function X(e, t, n, i, a, o, s) {
|
|
104
118
|
return e = r(e), a === void 0 ? e.push(t.key) : (e.push(a), o && e.push(t.key)), e?.[0] === "runtime" ? {
|
|
105
119
|
change: !1,
|
|
106
120
|
warning: !1
|
|
107
|
-
} :
|
|
121
|
+
} : ke(e) ? (i.change = !1, i.warning = !1, {
|
|
108
122
|
change: i.change,
|
|
109
123
|
warning: i.warning
|
|
110
|
-
}) : t.ui ? t.array && !s ?
|
|
124
|
+
}) : t.ui ? t.array && !s ? Me(e, t, n, i, a, o) : Ne(t, n, i, a, o) : t.array ? Ae(e, t, n, i, a, o) : je(e, t, n, i, a, o);
|
|
111
125
|
}
|
|
112
|
-
function
|
|
126
|
+
function Ae(t, n, r, i, a, o) {
|
|
113
127
|
if (n.ui) throw Error("execPropertyBranchArray property ui must be invalid");
|
|
114
128
|
if (!n.array) throw Error("execPropertyBranchArray property array must be valid");
|
|
115
129
|
let s;
|
|
@@ -130,16 +144,16 @@ function ke(t, n, r, i, a, o) {
|
|
|
130
144
|
warning: !1,
|
|
131
145
|
children: {}
|
|
132
146
|
};
|
|
133
|
-
let { change: n, warning: o } =
|
|
147
|
+
let { change: n, warning: o } = X(t, a, s[e], r.children[a.key], e, !0);
|
|
134
148
|
!r.change && n && (r.change = n), !r.change && o && (r.warning = o), !i.change && r.change && (i.change = r.change), !i.warning && r.warning && (i.warning = r.warning);
|
|
135
149
|
}
|
|
136
150
|
}
|
|
137
|
-
return i.change ||= !e(s,
|
|
151
|
+
return i.change ||= !e(s, W(n)), {
|
|
138
152
|
change: i.change,
|
|
139
153
|
warning: i.warning
|
|
140
154
|
};
|
|
141
155
|
}
|
|
142
|
-
function
|
|
156
|
+
function je(e, t, n, r, i, a) {
|
|
143
157
|
if (t.ui) throw Error("execPropertyBranchScalar property ui must be invalid");
|
|
144
158
|
if (t.array) throw Error("execPropertyBranchScalar property array must be invalid");
|
|
145
159
|
let o;
|
|
@@ -154,7 +168,7 @@ function Ae(e, t, n, r, i, a) {
|
|
|
154
168
|
warning: !1,
|
|
155
169
|
children: {}
|
|
156
170
|
};
|
|
157
|
-
let { change: a, warning: s } =
|
|
171
|
+
let { change: a, warning: s } = X(e, i, o, r.children[i.key], void 0, !1);
|
|
158
172
|
!r.change && a && (r.change = a), !r.warning && s && (r.warning = s);
|
|
159
173
|
}
|
|
160
174
|
return {
|
|
@@ -162,7 +176,7 @@ function Ae(e, t, n, r, i, a) {
|
|
|
162
176
|
warning: r.change
|
|
163
177
|
};
|
|
164
178
|
}
|
|
165
|
-
function
|
|
179
|
+
function Me(t, n, r, i, a, o) {
|
|
166
180
|
if (!n.ui) throw Error("execPropertyLeafArray property ui must be valid");
|
|
167
181
|
if (!n.array) throw Error("execPropertyLeafArray property aray must be valid");
|
|
168
182
|
let s;
|
|
@@ -176,23 +190,23 @@ function je(t, n, r, i, a, o) {
|
|
|
176
190
|
warning: !1,
|
|
177
191
|
children: {}
|
|
178
192
|
};
|
|
179
|
-
let { change: r, warning: a } =
|
|
193
|
+
let { change: r, warning: a } = X(t, n, s, i.children[e], e, !1, !0);
|
|
180
194
|
!i.change && r && (i.change = r), !i.warning && a && (i.warning = a);
|
|
181
195
|
}
|
|
182
|
-
return i.change ||= !e(s,
|
|
196
|
+
return i.change ||= !e(s, W(n)), {
|
|
183
197
|
change: i.change,
|
|
184
198
|
warning: i.warning
|
|
185
199
|
};
|
|
186
200
|
}
|
|
187
|
-
function
|
|
201
|
+
function Ne(t, n, r, i, a) {
|
|
188
202
|
if (!t.ui) throw Error("execPropertyLeafScalar property ui must be valid");
|
|
189
203
|
let o;
|
|
190
|
-
return o = i !== void 0 && !a ? n[i] : n[t.key], r.change = !e(o,
|
|
204
|
+
return o = i !== void 0 && !a ? n[i] : n[t.key], r.change = !e(o, U(t)), {
|
|
191
205
|
change: r.change,
|
|
192
206
|
warning: r.warning
|
|
193
207
|
};
|
|
194
208
|
}
|
|
195
|
-
function
|
|
209
|
+
function Pe(e, t, n) {
|
|
196
210
|
if (t.length <= 0 || !n) {
|
|
197
211
|
e.value = {
|
|
198
212
|
change: !1,
|
|
@@ -212,7 +226,7 @@ function Ne(e, t, n) {
|
|
|
212
226
|
warning: !1,
|
|
213
227
|
children: {}
|
|
214
228
|
};
|
|
215
|
-
r.children[e.key] = t,
|
|
229
|
+
r.children[e.key] = t, X([], e, n, t, void 0, !1);
|
|
216
230
|
}
|
|
217
231
|
e.value = r;
|
|
218
232
|
}
|
|
@@ -226,192 +240,238 @@ function Z(e, t) {
|
|
|
226
240
|
}
|
|
227
241
|
//#endregion
|
|
228
242
|
//#region src/utils/provideInject.ts
|
|
229
|
-
var
|
|
230
|
-
function
|
|
231
|
-
T(Pe, e);
|
|
232
|
-
}
|
|
233
|
-
function Ke() {
|
|
234
|
-
return g(Pe);
|
|
235
|
-
}
|
|
236
|
-
function qe(e) {
|
|
243
|
+
var Fe = Symbol(), Ie = Symbol(), Le = Symbol(), Re = Symbol(), ze = Symbol(), Be = Symbol(), Ve = Symbol(), He = Symbol(), Ue = Symbol(), We = Symbol(), Ge = Symbol();
|
|
244
|
+
function Ke(e) {
|
|
237
245
|
T(Fe, e);
|
|
238
246
|
}
|
|
239
|
-
function
|
|
247
|
+
function qe() {
|
|
240
248
|
return g(Fe);
|
|
241
249
|
}
|
|
242
|
-
function
|
|
250
|
+
function Je(e) {
|
|
243
251
|
T(Ie, e);
|
|
244
252
|
}
|
|
245
|
-
function
|
|
253
|
+
function Ye() {
|
|
246
254
|
return g(Ie);
|
|
247
255
|
}
|
|
248
|
-
function
|
|
256
|
+
function Xe(e) {
|
|
249
257
|
T(Le, e);
|
|
250
258
|
}
|
|
251
|
-
function
|
|
259
|
+
function Ze() {
|
|
252
260
|
return g(Le);
|
|
253
261
|
}
|
|
254
|
-
function
|
|
262
|
+
function Qe(e) {
|
|
255
263
|
T(Re, e);
|
|
256
264
|
}
|
|
257
|
-
function
|
|
265
|
+
function $e() {
|
|
258
266
|
return g(Re);
|
|
259
267
|
}
|
|
260
|
-
function
|
|
268
|
+
function et(e) {
|
|
261
269
|
T(ze, e);
|
|
262
270
|
}
|
|
263
|
-
function
|
|
271
|
+
function tt() {
|
|
264
272
|
return g(ze);
|
|
265
273
|
}
|
|
266
|
-
function
|
|
274
|
+
function nt(e) {
|
|
267
275
|
T(Be, e);
|
|
268
276
|
}
|
|
269
|
-
function
|
|
277
|
+
function rt() {
|
|
270
278
|
return g(Be);
|
|
271
279
|
}
|
|
272
|
-
function
|
|
280
|
+
function it(e) {
|
|
273
281
|
T(Ve, e);
|
|
274
282
|
}
|
|
275
|
-
function
|
|
283
|
+
function at() {
|
|
276
284
|
return g(Ve);
|
|
277
285
|
}
|
|
278
286
|
function ot(e) {
|
|
279
287
|
T(He, e);
|
|
280
288
|
}
|
|
281
|
-
function
|
|
289
|
+
function Q() {
|
|
282
290
|
return g(He);
|
|
283
291
|
}
|
|
284
|
-
function
|
|
292
|
+
function st(e) {
|
|
285
293
|
T(Ue, e);
|
|
286
294
|
}
|
|
287
|
-
function
|
|
295
|
+
function ct() {
|
|
288
296
|
return g(Ue);
|
|
289
297
|
}
|
|
290
|
-
function
|
|
298
|
+
function lt(e) {
|
|
291
299
|
T(We, e);
|
|
292
300
|
}
|
|
293
|
-
function
|
|
301
|
+
function ut() {
|
|
294
302
|
return g(We);
|
|
295
303
|
}
|
|
304
|
+
function dt(e) {
|
|
305
|
+
T(Ge, e);
|
|
306
|
+
}
|
|
307
|
+
function ft() {
|
|
308
|
+
return g(Ge);
|
|
309
|
+
}
|
|
296
310
|
//#endregion
|
|
297
311
|
//#region src/utils/reset.ts
|
|
298
|
-
function
|
|
299
|
-
if (n.ui)
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
312
|
+
function pt(t, n, r, i) {
|
|
313
|
+
if (n.ui) {
|
|
314
|
+
if (n.readonly || n.static) return;
|
|
315
|
+
if (n.array) {
|
|
316
|
+
let a = t[n.key], o = W(n);
|
|
317
|
+
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
318
|
+
} else {
|
|
319
|
+
let a = t[n.key], o = U(n);
|
|
320
|
+
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
321
|
+
}
|
|
322
|
+
} else if (n.array) {
|
|
323
|
+
let a = t[n.key], o = W(n);
|
|
308
324
|
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
309
|
-
} else for (let e of n.children)
|
|
325
|
+
} else for (let e of n.children) pt(t[n.key], e, [...r, n.key], i);
|
|
310
326
|
}
|
|
311
|
-
function
|
|
327
|
+
function mt(t, n, r, i) {
|
|
312
328
|
let a = r.at(-1);
|
|
313
329
|
if (a === void 0) return;
|
|
314
|
-
let o =
|
|
315
|
-
if (o) if (o.ui)
|
|
316
|
-
|
|
317
|
-
if (
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
330
|
+
let o = Se(n, r);
|
|
331
|
+
if (o) if (o.ui) {
|
|
332
|
+
if (o.readonly || o.static) return;
|
|
333
|
+
if (o.array) if (typeof a == "string") {
|
|
334
|
+
let n = K(t, r.slice(0, -1));
|
|
335
|
+
if (!n) return;
|
|
336
|
+
let s = n[a], c = W(o);
|
|
337
|
+
e(c, s) || (n[a] = c, i(r, c));
|
|
338
|
+
} else {
|
|
339
|
+
let n = K(t, r.slice(0, -1));
|
|
340
|
+
if (!n) return;
|
|
341
|
+
let s = n[a], c = U(o);
|
|
342
|
+
e(c, s) || (n[a] = c, i(r, c));
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
let n = K(t, r.slice(0, -1));
|
|
346
|
+
if (!n) return;
|
|
347
|
+
let s = n[a], c = U(o);
|
|
348
|
+
e(c, s) || (n[a] = c, i(r, c));
|
|
349
|
+
}
|
|
350
|
+
} else if (o.array) if (typeof a == "string") {
|
|
351
|
+
let n = K(t, r.slice(0, -1));
|
|
334
352
|
if (!n) return;
|
|
335
|
-
let s = n[a], c =
|
|
353
|
+
let s = n[a], c = W(o);
|
|
336
354
|
e(c, s) || (n[a] = c, i(r, c));
|
|
337
355
|
} else {
|
|
338
|
-
let e =
|
|
356
|
+
let e = K(t, r);
|
|
339
357
|
if (!e) return;
|
|
340
|
-
for (let t of o.children)
|
|
358
|
+
for (let t of o.children) pt(e, t, r, i);
|
|
341
359
|
}
|
|
342
360
|
else {
|
|
343
|
-
let e =
|
|
361
|
+
let e = K(t, r);
|
|
344
362
|
if (!e) return;
|
|
345
|
-
for (let t of o.children)
|
|
363
|
+
for (let t of o.children) pt(e, t, r, i);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region src/components/menu/func/copy.ts
|
|
368
|
+
function ht(e) {
|
|
369
|
+
let { t } = G(), n = $e(), r = tt();
|
|
370
|
+
function i() {
|
|
371
|
+
return !0;
|
|
372
|
+
}
|
|
373
|
+
function a() {
|
|
374
|
+
let t = Se(n.value, e.value);
|
|
375
|
+
if (!t) return;
|
|
376
|
+
let i = {
|
|
377
|
+
property: t,
|
|
378
|
+
object: K(r.value, e.value)
|
|
379
|
+
};
|
|
380
|
+
localStorage.setItem("propTreeCopy", JSON.stringify(i));
|
|
381
|
+
}
|
|
382
|
+
function o(e) {
|
|
383
|
+
i() && e.push({
|
|
384
|
+
title: t("x-prop-tree.copy"),
|
|
385
|
+
func: a
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
return { tryPushCopy: o };
|
|
389
|
+
}
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region src/components/menu/func/paste.ts
|
|
392
|
+
function gt(e) {
|
|
393
|
+
let { t } = G(), n = $e(), r = tt(), i = Q();
|
|
394
|
+
function a() {
|
|
395
|
+
if (e.value.length <= 0) return !1;
|
|
396
|
+
let t = Se(n.value, e.value);
|
|
397
|
+
if (!t) return !1;
|
|
398
|
+
let r = localStorage.getItem("propTreeCopy");
|
|
399
|
+
if (!r) return !1;
|
|
400
|
+
let i;
|
|
401
|
+
try {
|
|
402
|
+
i = JSON.parse(r);
|
|
403
|
+
} catch (e) {
|
|
404
|
+
return console.error("parse propTreeCopy failed", e), !1;
|
|
405
|
+
}
|
|
406
|
+
return !!Ee(t, i.property);
|
|
407
|
+
}
|
|
408
|
+
function o() {
|
|
409
|
+
if (e.value.length <= 0) return;
|
|
410
|
+
let t = Se(n.value, e.value);
|
|
411
|
+
if (!t) return;
|
|
412
|
+
let a = localStorage.getItem("propTreeCopy");
|
|
413
|
+
if (!a) return;
|
|
414
|
+
let o;
|
|
415
|
+
try {
|
|
416
|
+
o = JSON.parse(a);
|
|
417
|
+
} catch (e) {
|
|
418
|
+
console.error("parse propTreeCopy failed", e);
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
if (!Ee(t, o.property)) return;
|
|
422
|
+
let s = K(r.value, e.value.slice(0, -1));
|
|
423
|
+
if (!s) return;
|
|
424
|
+
let c = e.value.at(-1);
|
|
425
|
+
De(e.value, t, s, o.object, typeof c == "number" ? c : void 0, i);
|
|
426
|
+
}
|
|
427
|
+
function s(e) {
|
|
428
|
+
a() && e.push({
|
|
429
|
+
title: t("x-prop-tree.paste"),
|
|
430
|
+
func: o
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
return { tryPushPaste: s };
|
|
434
|
+
}
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region src/components/menu/func/reset.ts
|
|
437
|
+
function _t(e) {
|
|
438
|
+
let { t } = G(), n = $e(), r = tt(), i = at(), a = Q();
|
|
439
|
+
function o() {
|
|
440
|
+
return !(e.value.length <= 0 || !Z(i.value, e.value));
|
|
346
441
|
}
|
|
442
|
+
function s() {
|
|
443
|
+
mt(r.value, n.value, e.value, a);
|
|
444
|
+
}
|
|
445
|
+
function c(e) {
|
|
446
|
+
o() && e.push({
|
|
447
|
+
title: t("x-prop-tree.reset"),
|
|
448
|
+
func: s
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
return { tryPushReset: c };
|
|
347
452
|
}
|
|
348
453
|
//#endregion
|
|
349
454
|
//#region src/components/menu/index.vue
|
|
350
|
-
var
|
|
455
|
+
var vt = /* @__PURE__ */ m({
|
|
351
456
|
__name: "index",
|
|
352
457
|
setup(e) {
|
|
353
|
-
let
|
|
354
|
-
!(m.value.length <= 0 || !Z(i.value, m.value)) && e.push({
|
|
355
|
-
title: t("x-prop-tree.reset"),
|
|
356
|
-
func: () => {
|
|
357
|
-
pt(r.value, n.value, m.value, a);
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
}, v = (e) => {
|
|
361
|
-
e.push({
|
|
362
|
-
title: t("x-prop-tree.copy"),
|
|
363
|
-
func: () => {
|
|
364
|
-
let e = xe(n.value, m.value), t = q(r.value, m.value);
|
|
365
|
-
localStorage.setItem("propTreeCopy", JSON.stringify({
|
|
366
|
-
property: e,
|
|
367
|
-
object: t
|
|
368
|
-
}));
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
}, y = (e) => {
|
|
372
|
-
let r = () => {
|
|
373
|
-
let e = localStorage.getItem("propTreeCopy");
|
|
374
|
-
if (!e) return !1;
|
|
375
|
-
try {
|
|
376
|
-
let { property: t } = JSON.parse(e);
|
|
377
|
-
if (!t) return !1;
|
|
378
|
-
let r = xe(n.value, m.value);
|
|
379
|
-
return r ? Te(t, r) : !1;
|
|
380
|
-
} catch (e) {
|
|
381
|
-
console.error(e);
|
|
382
|
-
}
|
|
383
|
-
return !1;
|
|
384
|
-
};
|
|
385
|
-
r() && e.push({
|
|
386
|
-
title: t("x-prop-tree.paste"),
|
|
387
|
-
func: () => {
|
|
388
|
-
if (!r()) return;
|
|
389
|
-
let e = localStorage.getItem("propTreeCopy");
|
|
390
|
-
if (e) try {
|
|
391
|
-
let { object: t } = JSON.parse(e), r = xe(n.value, m.value);
|
|
392
|
-
console.log(t, r);
|
|
393
|
-
} catch (e) {
|
|
394
|
-
console.error(e);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
}, b = s(() => {
|
|
458
|
+
let t = E(0), n = E(0), r = E([]), i = s(() => [t.value, n.value]), { tryPushCopy: a } = ht(r), { tryPushPaste: l } = gt(r), { tryPushReset: d } = _t(r), m = s(() => {
|
|
399
459
|
let e = [];
|
|
400
|
-
return
|
|
401
|
-
}), { open:
|
|
402
|
-
|
|
460
|
+
return a(e), l(e), d(e), e;
|
|
461
|
+
}), { open: h } = H("propTreeMenu", (e) => {
|
|
462
|
+
t.value = e.x, n.value = e.y, r.value = e.keys;
|
|
403
463
|
});
|
|
404
464
|
return (e, t) => {
|
|
405
|
-
let n = O("v-list-item-title"), r = O("v-list-item"),
|
|
406
|
-
return w(), c(
|
|
407
|
-
modelValue: j(
|
|
408
|
-
"onUpdate:modelValue": t[0] ||= (e) => _(
|
|
465
|
+
let n = O("v-list-item-title"), r = O("v-list-item"), a = O("v-list"), s = O("v-menu");
|
|
466
|
+
return w(), c(s, {
|
|
467
|
+
modelValue: j(h),
|
|
468
|
+
"onUpdate:modelValue": t[0] ||= (e) => _(h) ? h.value = e : null,
|
|
409
469
|
"location-strategy": "connected",
|
|
410
470
|
scrim: "transparent",
|
|
411
|
-
target:
|
|
471
|
+
target: i.value
|
|
412
472
|
}, {
|
|
413
|
-
default: I(() => [p(
|
|
414
|
-
default: I(() => [(w(!0), u(o, null, D(
|
|
473
|
+
default: I(() => [p(a, null, {
|
|
474
|
+
default: I(() => [(w(!0), u(o, null, D(m.value, (e, t) => (w(), c(r, {
|
|
415
475
|
key: t,
|
|
416
476
|
link: "",
|
|
417
477
|
onClick: e.func
|
|
@@ -428,7 +488,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
428
488
|
}, 8, ["modelValue", "target"]);
|
|
429
489
|
};
|
|
430
490
|
}
|
|
431
|
-
}),
|
|
491
|
+
}), yt = { style: { pointerEvents: "none" } }, bt = /* @__PURE__ */ m({
|
|
432
492
|
__name: "index",
|
|
433
493
|
props: {
|
|
434
494
|
title: {},
|
|
@@ -450,7 +510,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
450
510
|
"delete"
|
|
451
511
|
],
|
|
452
512
|
setup(e, { emit: t }) {
|
|
453
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
513
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
|
|
454
514
|
background: a.value ? r.value : n.value,
|
|
455
515
|
height: "36px",
|
|
456
516
|
marginBottom: "1px",
|
|
@@ -466,7 +526,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
466
526
|
class: "d-flex align-center cursor-pointer",
|
|
467
527
|
style: b(o.value),
|
|
468
528
|
onClick: f,
|
|
469
|
-
onContextmenu:
|
|
529
|
+
onContextmenu: R(m, ["self", "prevent"]),
|
|
470
530
|
onMouseout: n[2] ||= (e) => a.value = !1,
|
|
471
531
|
onMouseover: n[3] ||= (e) => a.value = !0
|
|
472
532
|
}, [
|
|
@@ -474,7 +534,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
474
534
|
class: "mr-1",
|
|
475
535
|
icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
|
|
476
536
|
}, null, 8, ["icon"]),
|
|
477
|
-
d("span",
|
|
537
|
+
d("span", yt, A(e.title), 1),
|
|
478
538
|
p(s),
|
|
479
539
|
e.hasCreate ? (w(), c(h, {
|
|
480
540
|
key: 0,
|
|
@@ -482,7 +542,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
482
542
|
density: "compact",
|
|
483
543
|
icon: "mdi-plus",
|
|
484
544
|
variant: "text",
|
|
485
|
-
onClick: n[0] ||=
|
|
545
|
+
onClick: n[0] ||= R((e) => i("create"), ["stop"])
|
|
486
546
|
})) : l("", !0),
|
|
487
547
|
e.hasDelete ? (w(), c(h, {
|
|
488
548
|
key: 1,
|
|
@@ -490,7 +550,7 @@ var mt = /* @__PURE__ */ m({
|
|
|
490
550
|
density: "compact",
|
|
491
551
|
icon: "mdi-minus",
|
|
492
552
|
variant: "text",
|
|
493
|
-
onClick: n[1] ||=
|
|
553
|
+
onClick: n[1] ||= R((t) => i("delete", e.index), ["stop"])
|
|
494
554
|
})) : l("", !0)
|
|
495
555
|
], 36)), [[g]]);
|
|
496
556
|
};
|
|
@@ -498,14 +558,14 @@ var mt = /* @__PURE__ */ m({
|
|
|
498
558
|
});
|
|
499
559
|
//#endregion
|
|
500
560
|
//#region src/composables/adaptSlotList/index.ts
|
|
501
|
-
function
|
|
502
|
-
let e =
|
|
503
|
-
|
|
561
|
+
function xt() {
|
|
562
|
+
let e = qe(), t = Ye(), n = Ze(), { i18n: r } = re, o = E([]);
|
|
563
|
+
dt(o);
|
|
504
564
|
let s = () => {
|
|
505
565
|
if (!e.value || !t.value || !n.value) return [];
|
|
506
|
-
let s =
|
|
566
|
+
let s = ge[e.value];
|
|
507
567
|
if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
|
|
508
|
-
let c =
|
|
568
|
+
let c = ue(t.value, n.value), l = [];
|
|
509
569
|
for (let e = 0; e < s.groups[c].length; e++) {
|
|
510
570
|
let t = s.groups[c][e], n = i(o, t.key);
|
|
511
571
|
l.push({
|
|
@@ -518,9 +578,9 @@ function _t() {
|
|
|
518
578
|
});
|
|
519
579
|
let a = 0;
|
|
520
580
|
for (let e of t.items) {
|
|
521
|
-
let n =
|
|
581
|
+
let n = ce(e);
|
|
522
582
|
if (n && !n.internal && n.slots) for (let e of n.slots) {
|
|
523
|
-
let i =
|
|
583
|
+
let i = me("elementSlot", n.key, e.key), o = `${r.global.t(n.name)} / ${r.global.t(e.name)}`;
|
|
524
584
|
l.push({
|
|
525
585
|
id: i,
|
|
526
586
|
type: 1,
|
|
@@ -531,7 +591,7 @@ function _t() {
|
|
|
531
591
|
}
|
|
532
592
|
}
|
|
533
593
|
}
|
|
534
|
-
let { activeApp: u, depends: d } =
|
|
594
|
+
let { activeApp: u, depends: d } = ye.app;
|
|
535
595
|
for (let { id: e, name: t, position: n } of u.compGroups) {
|
|
536
596
|
let r = i(o, e);
|
|
537
597
|
l.push({
|
|
@@ -546,7 +606,7 @@ function _t() {
|
|
|
546
606
|
for (let e of u.comps) {
|
|
547
607
|
let t = d[e.id];
|
|
548
608
|
if (t && t.meta.slots) for (let n of t.meta.slots) {
|
|
549
|
-
let t =
|
|
609
|
+
let t = me("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
|
|
550
610
|
l.push({
|
|
551
611
|
id: t,
|
|
552
612
|
type: 1,
|
|
@@ -580,11 +640,11 @@ function _t() {
|
|
|
580
640
|
}
|
|
581
641
|
//#endregion
|
|
582
642
|
//#region src/composables/compList/index.ts
|
|
583
|
-
function
|
|
643
|
+
function St() {
|
|
584
644
|
let e = E([]);
|
|
585
|
-
|
|
645
|
+
st(e);
|
|
586
646
|
let t = () => {
|
|
587
|
-
let { activeApp: t, depends: n } =
|
|
647
|
+
let { activeApp: t, depends: n } = ye.app, r = [];
|
|
588
648
|
for (let { id: n, name: i, position: a } of t.compGroups) {
|
|
589
649
|
let t = e.value.find((e) => e.id === n);
|
|
590
650
|
r.push({
|
|
@@ -618,11 +678,11 @@ function vt() {
|
|
|
618
678
|
}
|
|
619
679
|
//#endregion
|
|
620
680
|
//#region src/composables/slotList/index.ts
|
|
621
|
-
function
|
|
681
|
+
function Ct() {
|
|
622
682
|
let e = E([]);
|
|
623
|
-
|
|
683
|
+
lt(e);
|
|
624
684
|
let t = () => {
|
|
625
|
-
let { activeObject: e, activeComp: t } =
|
|
685
|
+
let { activeObject: e, activeComp: t } = ye.app;
|
|
626
686
|
if (e.type !== "comp" || !t.meta.slots) return [];
|
|
627
687
|
let n = [];
|
|
628
688
|
for (let { id: e, name: r } of t.meta.slots) n.push({
|
|
@@ -647,7 +707,7 @@ function yt() {
|
|
|
647
707
|
}
|
|
648
708
|
//#endregion
|
|
649
709
|
//#region src/components/values/adaptSlot/adaptSlotList/group.vue?vue&type=script&setup=true&lang.ts
|
|
650
|
-
var
|
|
710
|
+
var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text-grey ml-1" }, Et = /* @__PURE__ */ m({
|
|
651
711
|
__name: "group",
|
|
652
712
|
props: {
|
|
653
713
|
id: {},
|
|
@@ -657,7 +717,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
657
717
|
},
|
|
658
718
|
emits: ["x-click"],
|
|
659
719
|
setup(e, { emit: t }) {
|
|
660
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
720
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = e, a = t, o = E(!1), c = s(() => ({
|
|
661
721
|
background: o.value ? r.value : n.value,
|
|
662
722
|
height: "30px",
|
|
663
723
|
marginTop: "1px",
|
|
@@ -676,12 +736,12 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
676
736
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
677
737
|
size: "small"
|
|
678
738
|
}, null, 8, ["icon"]),
|
|
679
|
-
d("span",
|
|
680
|
-
d("span",
|
|
739
|
+
d("span", wt, A(i.title), 1),
|
|
740
|
+
d("span", Tt, A(i.count), 1)
|
|
681
741
|
], 36)), [[r]]);
|
|
682
742
|
};
|
|
683
743
|
}
|
|
684
|
-
}),
|
|
744
|
+
}), Dt = { class: "text-body-large ml-6" }, Ot = /* @__PURE__ */ m({
|
|
685
745
|
__name: "item",
|
|
686
746
|
props: {
|
|
687
747
|
id: {},
|
|
@@ -689,7 +749,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
689
749
|
},
|
|
690
750
|
emits: ["x-click"],
|
|
691
751
|
setup(e, { emit: t }) {
|
|
692
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
752
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
|
|
693
753
|
background: a.value ? r.value : n.value,
|
|
694
754
|
height: "48px",
|
|
695
755
|
marginTop: "1px",
|
|
@@ -703,13 +763,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
703
763
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
704
764
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
705
765
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
706
|
-
}, [d("span",
|
|
766
|
+
}, [d("span", Dt, A(e.title), 1)], 36)), [[r]]);
|
|
707
767
|
};
|
|
708
768
|
}
|
|
709
|
-
}),
|
|
769
|
+
}), kt = { key: 0 }, At = {
|
|
710
770
|
key: 1,
|
|
711
771
|
class: "text-body-medium text-grey ml-3"
|
|
712
|
-
},
|
|
772
|
+
}, jt = /* @__PURE__ */ m({
|
|
713
773
|
__name: "index",
|
|
714
774
|
props: {
|
|
715
775
|
modelValue: {},
|
|
@@ -722,13 +782,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
722
782
|
},
|
|
723
783
|
emits: ["update:modelValue", "update:open"],
|
|
724
784
|
setup(e) {
|
|
725
|
-
let {
|
|
785
|
+
let { t } = G(), r = N(e, "modelValue"), a = N(e, "open"), s = ft(), d = (e) => {
|
|
726
786
|
let t = i(s, e);
|
|
727
787
|
t && n(s, e, !t.collapse);
|
|
728
788
|
}, f = (e) => {
|
|
729
789
|
r.value = e, a.value = !1;
|
|
730
790
|
};
|
|
731
|
-
return (e, n) => j(s).length > 0 ? (w(), u("div",
|
|
791
|
+
return (e, n) => j(s).length > 0 ? (w(), u("div", kt, [(w(!0), u(o, null, D(j(s), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(Et, {
|
|
732
792
|
key: 0,
|
|
733
793
|
id: e.id,
|
|
734
794
|
collapse: e.collapse,
|
|
@@ -740,18 +800,14 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
740
800
|
"collapse",
|
|
741
801
|
"count",
|
|
742
802
|
"title"
|
|
743
|
-
])) : l("", !0), e.type === 1 && e.show ? (w(), c(
|
|
803
|
+
])) : l("", !0), e.type === 1 && e.show ? (w(), c(Ot, {
|
|
744
804
|
key: 1,
|
|
745
805
|
id: e.id,
|
|
746
806
|
title: e.name,
|
|
747
807
|
onXClick: f
|
|
748
|
-
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div",
|
|
749
|
-
"x-prop-tree.no",
|
|
750
|
-
"x-prop-tree.adapt",
|
|
751
|
-
"x-prop-tree.slot"
|
|
752
|
-
])), 1));
|
|
808
|
+
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", At, A(j(t)("x-prop-tree.noAdaptSlot")), 1));
|
|
753
809
|
}
|
|
754
|
-
}),
|
|
810
|
+
}), Mt = { class: "text-body-large" }, Nt = /* @__PURE__ */ m({
|
|
755
811
|
__name: "index",
|
|
756
812
|
props: /* @__PURE__ */ v({
|
|
757
813
|
hasDelete: {
|
|
@@ -768,97 +824,93 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
768
824
|
}),
|
|
769
825
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
770
826
|
setup(e, { emit: t }) {
|
|
771
|
-
let { t: n } =
|
|
827
|
+
let { t: n } = G(), r = be(), { sysBarAvail: a } = V(), { backgroundColor1: o } = B(), u = N(e, "modelValue"), m = t, h = ft(), g = s(() => {
|
|
772
828
|
let e = "100%";
|
|
773
829
|
return r.mdAndUp.value && (e = "400px"), {
|
|
774
|
-
background:
|
|
830
|
+
background: o.value,
|
|
775
831
|
width: e,
|
|
776
832
|
height: "100%"
|
|
777
833
|
};
|
|
778
|
-
}),
|
|
834
|
+
}), v = s(() => {
|
|
779
835
|
let e = 48;
|
|
780
836
|
return a.value && (e += 24), {
|
|
781
837
|
position: "relative",
|
|
782
838
|
height: `calc(100% - ${e}px)`
|
|
783
839
|
};
|
|
784
|
-
}),
|
|
785
|
-
if (!
|
|
786
|
-
let e = i(
|
|
840
|
+
}), x = s(() => ({ height: "60px" })), S = s(() => {
|
|
841
|
+
if (!u.value) return n("x-runtime-lib.notSet");
|
|
842
|
+
let e = i(h, u.value);
|
|
787
843
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
788
|
-
}), { open:
|
|
844
|
+
}), { open: T } = H(`propTreeAdaptSlotSelectDlg${M()}`);
|
|
789
845
|
return C(() => {
|
|
790
|
-
|
|
791
|
-
}), (t,
|
|
792
|
-
let
|
|
846
|
+
T.value = !1;
|
|
847
|
+
}), (t, r) => {
|
|
848
|
+
let i = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
|
|
793
849
|
return w(), c(s, {
|
|
794
|
-
modelValue: j(
|
|
795
|
-
"onUpdate:modelValue":
|
|
850
|
+
modelValue: j(T),
|
|
851
|
+
"onUpdate:modelValue": r[6] ||= (e) => _(T) ? T.value = e : null,
|
|
796
852
|
fullscreen: "",
|
|
797
853
|
"no-click-animation": "",
|
|
798
854
|
persistent: "",
|
|
799
855
|
transition: "scroll-x-reverse-transition",
|
|
800
|
-
onKeydown:
|
|
856
|
+
onKeydown: r[7] ||= ne(R((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
|
|
801
857
|
}, {
|
|
802
|
-
activator: I(({ props: t }) => [p(
|
|
858
|
+
activator: I(({ props: t }) => [p(i, y(t, {
|
|
803
859
|
block: "",
|
|
804
860
|
density: "comfortable",
|
|
805
861
|
readonly: e.readonly
|
|
806
862
|
}), {
|
|
807
|
-
default: I(() => [f(A(
|
|
863
|
+
default: I(() => [f(A(S.value), 1)]),
|
|
808
864
|
_: 1
|
|
809
|
-
}, 16, ["readonly"]), e.hasDelete ? (w(), c(
|
|
865
|
+
}, 16, ["readonly"]), e.hasDelete ? (w(), c(i, {
|
|
810
866
|
key: 0,
|
|
811
867
|
class: "mx-2",
|
|
812
868
|
density: "compact",
|
|
813
869
|
icon: "mdi-minus",
|
|
814
870
|
variant: "text",
|
|
815
|
-
onClick:
|
|
871
|
+
onClick: r[0] ||= R((e) => m("delete"), ["stop"])
|
|
816
872
|
})) : l("", !0)]),
|
|
817
873
|
default: I(() => [d("div", {
|
|
818
874
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
819
|
-
onClick:
|
|
820
|
-
onContextmenu:
|
|
875
|
+
onClick: r[4] ||= R((e) => T.value = !1, ["self"]),
|
|
876
|
+
onContextmenu: r[5] ||= R((e) => T.value = !1, ["self", "prevent"])
|
|
821
877
|
}, [d("div", {
|
|
822
878
|
class: "elevation-2",
|
|
823
|
-
style: b(
|
|
879
|
+
style: b(g.value)
|
|
824
880
|
}, [
|
|
825
|
-
j(a) ? (w(), c(
|
|
881
|
+
j(a) ? (w(), c(o, {
|
|
826
882
|
key: 0,
|
|
827
883
|
color: "transparent",
|
|
828
884
|
height: 24
|
|
829
885
|
})) : l("", !0),
|
|
830
|
-
p(
|
|
886
|
+
p(o, {
|
|
831
887
|
class: "d-flex align-center px-3",
|
|
832
888
|
color: "transparent",
|
|
833
889
|
height: 48
|
|
834
890
|
}, {
|
|
835
|
-
default: I(() => [p(
|
|
891
|
+
default: I(() => [p(i, {
|
|
836
892
|
density: "comfortable",
|
|
837
893
|
icon: "mdi-close",
|
|
838
894
|
variant: "text",
|
|
839
|
-
onClick:
|
|
840
|
-
}), d("span",
|
|
841
|
-
"x-prop-tree.select",
|
|
842
|
-
"x-prop-tree.adapt",
|
|
843
|
-
"x-prop-tree.slot"
|
|
844
|
-
])), 1)]),
|
|
895
|
+
onClick: r[1] ||= (e) => T.value = !1
|
|
896
|
+
}), d("span", Mt, A(j(n)("x-prop-tree.selectAdaptSlot")), 1)]),
|
|
845
897
|
_: 1
|
|
846
898
|
}),
|
|
847
899
|
d("div", {
|
|
848
900
|
class: "overflow-y-auto",
|
|
849
|
-
style: b(
|
|
850
|
-
}, [p(
|
|
851
|
-
modelValue:
|
|
852
|
-
"onUpdate:modelValue":
|
|
853
|
-
open: j(
|
|
854
|
-
"onUpdate:open":
|
|
855
|
-
}, null, 8, ["modelValue", "open"]), d("div", { style: b(
|
|
901
|
+
style: b(v.value)
|
|
902
|
+
}, [p(jt, {
|
|
903
|
+
modelValue: u.value,
|
|
904
|
+
"onUpdate:modelValue": r[2] ||= (e) => u.value = e,
|
|
905
|
+
open: j(T),
|
|
906
|
+
"onUpdate:open": r[3] ||= (e) => _(T) ? T.value = e : null
|
|
907
|
+
}, null, 8, ["modelValue", "open"]), d("div", { style: b(x.value) }, null, 4)], 4)
|
|
856
908
|
], 4)], 32)]),
|
|
857
909
|
_: 1
|
|
858
910
|
}, 8, ["modelValue"]);
|
|
859
911
|
};
|
|
860
912
|
}
|
|
861
|
-
}),
|
|
913
|
+
}), Pt = { class: "text-label-large ml-1" }, Ft = { class: "text-body-small text-grey ml-1" }, It = /* @__PURE__ */ m({
|
|
862
914
|
__name: "group",
|
|
863
915
|
props: {
|
|
864
916
|
id: {},
|
|
@@ -868,7 +920,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
868
920
|
},
|
|
869
921
|
emits: ["x-click"],
|
|
870
922
|
setup(e, { emit: t }) {
|
|
871
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
923
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = e, a = t, o = E(!1), c = s(() => ({
|
|
872
924
|
background: o.value ? r.value : n.value,
|
|
873
925
|
height: "30px",
|
|
874
926
|
marginTop: "1px",
|
|
@@ -887,12 +939,12 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
887
939
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
888
940
|
size: "small"
|
|
889
941
|
}, null, 8, ["icon"]),
|
|
890
|
-
d("span",
|
|
891
|
-
d("span",
|
|
942
|
+
d("span", Pt, A(i.title), 1),
|
|
943
|
+
d("span", Ft, A(i.count), 1)
|
|
892
944
|
], 36)), [[r]]);
|
|
893
945
|
};
|
|
894
946
|
}
|
|
895
|
-
}),
|
|
947
|
+
}), Lt = { class: "text-body-large ml-6" }, Rt = /* @__PURE__ */ m({
|
|
896
948
|
__name: "item",
|
|
897
949
|
props: {
|
|
898
950
|
id: {},
|
|
@@ -900,7 +952,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
900
952
|
},
|
|
901
953
|
emits: ["x-click"],
|
|
902
954
|
setup(e, { emit: t }) {
|
|
903
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
955
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = e, a = t, o = E(!1), c = s(() => ({
|
|
904
956
|
background: o.value ? r.value : n.value,
|
|
905
957
|
height: "48px",
|
|
906
958
|
marginTop: "1px",
|
|
@@ -914,13 +966,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
914
966
|
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
915
967
|
onMouseout: t[1] ||= (e) => o.value = !1,
|
|
916
968
|
onMouseover: t[2] ||= (e) => o.value = !0
|
|
917
|
-
}, [d("span",
|
|
969
|
+
}, [d("span", Lt, A(i.title), 1)], 36)), [[n]]);
|
|
918
970
|
};
|
|
919
971
|
}
|
|
920
|
-
}),
|
|
972
|
+
}), zt = { key: 0 }, Bt = {
|
|
921
973
|
key: 1,
|
|
922
974
|
class: "text-body-medium text-grey ml-3"
|
|
923
|
-
},
|
|
975
|
+
}, Vt = /* @__PURE__ */ m({
|
|
924
976
|
__name: "index",
|
|
925
977
|
props: {
|
|
926
978
|
modelValue: {},
|
|
@@ -933,13 +985,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
933
985
|
},
|
|
934
986
|
emits: ["update:modelValue", "update:open"],
|
|
935
987
|
setup(e) {
|
|
936
|
-
let {
|
|
988
|
+
let { t } = G(), r = N(e, "modelValue"), a = N(e, "open"), s = ct(), d = (e) => {
|
|
937
989
|
let t = i(s, e);
|
|
938
990
|
t && n(s, e, !t.collapse);
|
|
939
991
|
}, f = (e) => {
|
|
940
|
-
r.value = e, a.value = !1,
|
|
992
|
+
r.value = e, a.value = !1, z.emit("refreshDepends");
|
|
941
993
|
};
|
|
942
|
-
return (e, n) => j(s).length > 0 ? (w(), u("div",
|
|
994
|
+
return (e, n) => j(s).length > 0 ? (w(), u("div", zt, [(w(!0), u(o, null, D(j(s), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(It, {
|
|
943
995
|
key: 0,
|
|
944
996
|
id: e.id,
|
|
945
997
|
collapse: e.collapse,
|
|
@@ -951,14 +1003,14 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
951
1003
|
"collapse",
|
|
952
1004
|
"count",
|
|
953
1005
|
"title"
|
|
954
|
-
])) : l("", !0), e.type === 1 && e.show ? (w(), c(
|
|
1006
|
+
])) : l("", !0), e.type === 1 && e.show ? (w(), c(Rt, {
|
|
955
1007
|
key: 1,
|
|
956
1008
|
id: e.id,
|
|
957
1009
|
title: e.name,
|
|
958
1010
|
onXClick: f
|
|
959
|
-
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div",
|
|
1011
|
+
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", Bt, A(j(t)("x-prop-tree.noComp")), 1));
|
|
960
1012
|
}
|
|
961
|
-
}),
|
|
1013
|
+
}), Ht = { class: "text-body-large" }, Ut = /* @__PURE__ */ m({
|
|
962
1014
|
__name: "index",
|
|
963
1015
|
props: /* @__PURE__ */ v({
|
|
964
1016
|
hasDelete: {
|
|
@@ -975,93 +1027,93 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
975
1027
|
}),
|
|
976
1028
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
977
1029
|
setup(e, { emit: t }) {
|
|
978
|
-
let { t: n } =
|
|
1030
|
+
let { t: n } = G(), r = be(), { sysBarAvail: a } = V(), { backgroundColor1: o } = B(), u = N(e, "modelValue"), m = t, h = ct(), g = s(() => {
|
|
979
1031
|
let e = "100%";
|
|
980
1032
|
return r.mdAndUp.value && (e = "400px"), {
|
|
981
|
-
background:
|
|
1033
|
+
background: o.value,
|
|
982
1034
|
width: e,
|
|
983
1035
|
height: "100%"
|
|
984
1036
|
};
|
|
985
|
-
}),
|
|
1037
|
+
}), v = s(() => {
|
|
986
1038
|
let e = 48;
|
|
987
1039
|
return a.value && (e += 24), {
|
|
988
1040
|
position: "relative",
|
|
989
1041
|
height: `calc(100% - ${e}px)`
|
|
990
1042
|
};
|
|
991
|
-
}),
|
|
992
|
-
if (!
|
|
993
|
-
let e = i(
|
|
1043
|
+
}), x = s(() => ({ height: "60px" })), S = s(() => {
|
|
1044
|
+
if (!u.value) return n("x-runtime-lib.notSet");
|
|
1045
|
+
let e = i(h, u.value);
|
|
994
1046
|
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
995
|
-
}), { open:
|
|
1047
|
+
}), { open: T } = H(`propTreeCompSelectDlg${M()}`);
|
|
996
1048
|
return C(() => {
|
|
997
|
-
|
|
998
|
-
}), (t,
|
|
999
|
-
let
|
|
1049
|
+
T.value = !1;
|
|
1050
|
+
}), (t, r) => {
|
|
1051
|
+
let i = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
|
|
1000
1052
|
return w(), c(s, {
|
|
1001
|
-
modelValue: j(
|
|
1002
|
-
"onUpdate:modelValue":
|
|
1053
|
+
modelValue: j(T),
|
|
1054
|
+
"onUpdate:modelValue": r[6] ||= (e) => _(T) ? T.value = e : null,
|
|
1003
1055
|
fullscreen: "",
|
|
1004
1056
|
"no-click-animation": "",
|
|
1005
1057
|
persistent: "",
|
|
1006
1058
|
transition: "scroll-x-reverse-transition",
|
|
1007
|
-
onKeydown:
|
|
1059
|
+
onKeydown: r[7] ||= ne(R((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1008
1060
|
}, {
|
|
1009
|
-
activator: I(({ props: t }) => [p(
|
|
1061
|
+
activator: I(({ props: t }) => [p(i, y(t, {
|
|
1010
1062
|
block: "",
|
|
1011
1063
|
density: "comfortable",
|
|
1012
1064
|
readonly: e.readonly
|
|
1013
1065
|
}), {
|
|
1014
|
-
default: I(() => [f(A(
|
|
1066
|
+
default: I(() => [f(A(S.value), 1)]),
|
|
1015
1067
|
_: 1
|
|
1016
|
-
}, 16, ["readonly"]), e.hasDelete ? (w(), c(
|
|
1068
|
+
}, 16, ["readonly"]), e.hasDelete ? (w(), c(i, {
|
|
1017
1069
|
key: 0,
|
|
1018
1070
|
class: "mx-2",
|
|
1019
1071
|
density: "compact",
|
|
1020
1072
|
icon: "mdi-minus",
|
|
1021
1073
|
variant: "text",
|
|
1022
|
-
onClick:
|
|
1074
|
+
onClick: r[0] ||= R((e) => m("delete"), ["stop"])
|
|
1023
1075
|
})) : l("", !0)]),
|
|
1024
1076
|
default: I(() => [d("div", {
|
|
1025
1077
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1026
|
-
onClick:
|
|
1027
|
-
onContextmenu:
|
|
1078
|
+
onClick: r[4] ||= R((e) => T.value = !1, ["self"]),
|
|
1079
|
+
onContextmenu: r[5] ||= R((e) => T.value = !1, ["self", "prevent"])
|
|
1028
1080
|
}, [d("div", {
|
|
1029
1081
|
class: "elevation-2",
|
|
1030
|
-
style: b(
|
|
1082
|
+
style: b(g.value)
|
|
1031
1083
|
}, [
|
|
1032
|
-
j(a) ? (w(), c(
|
|
1084
|
+
j(a) ? (w(), c(o, {
|
|
1033
1085
|
key: 0,
|
|
1034
1086
|
color: "transparent",
|
|
1035
1087
|
height: 24
|
|
1036
1088
|
})) : l("", !0),
|
|
1037
|
-
p(
|
|
1089
|
+
p(o, {
|
|
1038
1090
|
class: "d-flex align-center px-3",
|
|
1039
1091
|
color: "transparent",
|
|
1040
1092
|
height: 48
|
|
1041
1093
|
}, {
|
|
1042
|
-
default: I(() => [p(
|
|
1094
|
+
default: I(() => [p(i, {
|
|
1043
1095
|
density: "comfortable",
|
|
1044
1096
|
icon: "mdi-close",
|
|
1045
1097
|
variant: "text",
|
|
1046
|
-
onClick:
|
|
1047
|
-
}), d("span",
|
|
1098
|
+
onClick: r[1] ||= (e) => T.value = !1
|
|
1099
|
+
}), d("span", Ht, A(j(n)("x-prop-tree.selectComp")), 1)]),
|
|
1048
1100
|
_: 1
|
|
1049
1101
|
}),
|
|
1050
1102
|
d("div", {
|
|
1051
1103
|
class: "overflow-y-auto",
|
|
1052
|
-
style: b(
|
|
1053
|
-
}, [p(
|
|
1054
|
-
modelValue:
|
|
1055
|
-
"onUpdate:modelValue":
|
|
1056
|
-
open: j(
|
|
1057
|
-
"onUpdate:open":
|
|
1058
|
-
}, null, 8, ["modelValue", "open"]), d("div", { style: b(
|
|
1104
|
+
style: b(v.value)
|
|
1105
|
+
}, [p(Vt, {
|
|
1106
|
+
modelValue: u.value,
|
|
1107
|
+
"onUpdate:modelValue": r[2] ||= (e) => u.value = e,
|
|
1108
|
+
open: j(T),
|
|
1109
|
+
"onUpdate:open": r[3] ||= (e) => _(T) ? T.value = e : null
|
|
1110
|
+
}, null, 8, ["modelValue", "open"]), d("div", { style: b(x.value) }, null, 4)], 4)
|
|
1059
1111
|
], 4)], 32)]),
|
|
1060
1112
|
_: 1
|
|
1061
1113
|
}, 8, ["modelValue"]);
|
|
1062
1114
|
};
|
|
1063
1115
|
}
|
|
1064
|
-
}),
|
|
1116
|
+
}), Wt = { class: "d-flex justify-space-between align-center" }, Gt = /* @__PURE__ */ m({
|
|
1065
1117
|
__name: "index",
|
|
1066
1118
|
props: /* @__PURE__ */ v({
|
|
1067
1119
|
hasDelete: {
|
|
@@ -1078,9 +1130,9 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1078
1130
|
}),
|
|
1079
1131
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1080
1132
|
setup(e, { emit: t }) {
|
|
1081
|
-
let { isMobile: n } =
|
|
1133
|
+
let { isMobile: n } = V(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1082
1134
|
if (!t || e.readonly || !n()) return;
|
|
1083
|
-
let i = await
|
|
1135
|
+
let i = await se({
|
|
1084
1136
|
title: "",
|
|
1085
1137
|
value: r.value
|
|
1086
1138
|
});
|
|
@@ -1088,7 +1140,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1088
1140
|
};
|
|
1089
1141
|
return (t, n) => {
|
|
1090
1142
|
let o = O("v-text-field"), s = O("v-btn"), d = k("ripple");
|
|
1091
|
-
return w(), u("div",
|
|
1143
|
+
return w(), u("div", Wt, [L(p(o, {
|
|
1092
1144
|
modelValue: r.value,
|
|
1093
1145
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1094
1146
|
density: "compact",
|
|
@@ -1107,11 +1159,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1107
1159
|
density: "compact",
|
|
1108
1160
|
icon: "mdi-minus",
|
|
1109
1161
|
variant: "text",
|
|
1110
|
-
onClick: n[1] ||=
|
|
1162
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1111
1163
|
})) : l("", !0)]);
|
|
1112
1164
|
};
|
|
1113
1165
|
}
|
|
1114
|
-
}),
|
|
1166
|
+
}), Kt = /* @__PURE__ */ m({
|
|
1115
1167
|
__name: "editor",
|
|
1116
1168
|
props: {
|
|
1117
1169
|
modelValue: { required: !0 },
|
|
@@ -1130,14 +1182,14 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1130
1182
|
"update:scale"
|
|
1131
1183
|
],
|
|
1132
1184
|
setup(e, { expose: t }) {
|
|
1133
|
-
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a =
|
|
1185
|
+
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a = ie(), o = ae(), s = qe(), l = te("target"), u = () => {
|
|
1134
1186
|
let e = JSON.parse(n.value);
|
|
1135
1187
|
l.value?.load(e);
|
|
1136
1188
|
};
|
|
1137
1189
|
return t({ save: () => {
|
|
1138
1190
|
let e = l.value.save();
|
|
1139
1191
|
n.value = JSON.stringify(e, null, 2);
|
|
1140
|
-
} }), (e, t) => (w(), c(j(
|
|
1192
|
+
} }), (e, t) => (w(), c(j(xe), {
|
|
1141
1193
|
ref_key: "target",
|
|
1142
1194
|
ref: l,
|
|
1143
1195
|
lock: r.value,
|
|
@@ -1157,7 +1209,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1157
1209
|
"version"
|
|
1158
1210
|
]));
|
|
1159
1211
|
}
|
|
1160
|
-
}),
|
|
1212
|
+
}), qt = { class: "text-body-large" }, Jt = /* @__PURE__ */ m({
|
|
1161
1213
|
__name: "index",
|
|
1162
1214
|
props: /* @__PURE__ */ v({
|
|
1163
1215
|
hasDelete: {
|
|
@@ -1174,14 +1226,14 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1174
1226
|
}),
|
|
1175
1227
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1176
1228
|
setup(e, { emit: t }) {
|
|
1177
|
-
let { t: n } =
|
|
1229
|
+
let { t: n } = G(), { sysBarAvail: r } = V(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: o } = B(), u = N(e, "modelValue"), m = t, h = E(!1), g = E(1), v = s(() => {
|
|
1178
1230
|
let e = 48;
|
|
1179
1231
|
return r.value && (e += 24), {
|
|
1180
1232
|
position: "relative",
|
|
1181
1233
|
background: a.value,
|
|
1182
1234
|
height: `calc(100% - ${e}px)`
|
|
1183
1235
|
};
|
|
1184
|
-
}), x = s(() => n("x-prop-tree.jsonEditor")), { open: S } =
|
|
1236
|
+
}), x = s(() => n("x-prop-tree.jsonEditor")), { open: S } = H(`propTreejsonEditorDlg${M()}`);
|
|
1185
1237
|
C(() => {
|
|
1186
1238
|
S.value = !1;
|
|
1187
1239
|
});
|
|
@@ -1198,7 +1250,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1198
1250
|
"no-click-animation": "",
|
|
1199
1251
|
persistent: "",
|
|
1200
1252
|
transition: "dialog-bottom-transition",
|
|
1201
|
-
onKeydown: n[6] ||= R(
|
|
1253
|
+
onKeydown: n[6] ||= ne(R((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1202
1254
|
}, {
|
|
1203
1255
|
activator: I(({ props: t }) => [p(a, y(t, {
|
|
1204
1256
|
block: "",
|
|
@@ -1213,7 +1265,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1213
1265
|
density: "compact",
|
|
1214
1266
|
icon: "mdi-minus",
|
|
1215
1267
|
variant: "text",
|
|
1216
|
-
onClick: n[0] ||=
|
|
1268
|
+
onClick: n[0] ||= R((e) => m("delete"), ["stop"])
|
|
1217
1269
|
})) : l("", !0)]),
|
|
1218
1270
|
default: I(() => [p(s, {
|
|
1219
1271
|
color: j(i),
|
|
@@ -1238,12 +1290,12 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1238
1290
|
variant: "text",
|
|
1239
1291
|
onClick: n[1] ||= (e) => S.value = !1
|
|
1240
1292
|
}),
|
|
1241
|
-
d("span",
|
|
1293
|
+
d("span", qt, A(x.value), 1),
|
|
1242
1294
|
p(C)
|
|
1243
1295
|
]),
|
|
1244
1296
|
_: 1
|
|
1245
1297
|
}, 8, ["color"]),
|
|
1246
|
-
d("div", { style: b(v.value) }, [p(
|
|
1298
|
+
d("div", { style: b(v.value) }, [p(Kt, {
|
|
1247
1299
|
ref_key: "editor",
|
|
1248
1300
|
ref: T,
|
|
1249
1301
|
modelValue: u.value,
|
|
@@ -1264,7 +1316,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1264
1316
|
}, 8, ["modelValue"]);
|
|
1265
1317
|
};
|
|
1266
1318
|
}
|
|
1267
|
-
}),
|
|
1319
|
+
}), Yt = { class: "d-flex justify-space-between align-center" }, Xt = /* @__PURE__ */ m({
|
|
1268
1320
|
__name: "color",
|
|
1269
1321
|
props: /* @__PURE__ */ v({
|
|
1270
1322
|
hasDelete: {
|
|
@@ -1281,10 +1333,10 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1281
1333
|
}),
|
|
1282
1334
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1283
1335
|
setup(e, { emit: t }) {
|
|
1284
|
-
let { t: n } =
|
|
1336
|
+
let { t: n } = G(), r = N(e, "modelValue"), i = t, a = s(() => {
|
|
1285
1337
|
let t = "100%";
|
|
1286
1338
|
return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
|
|
1287
|
-
}), o = s(() => e.readonly), { open: u } =
|
|
1339
|
+
}), o = s(() => e.readonly), { open: u } = H(`propTreeColorPickerMenu${M()}`);
|
|
1288
1340
|
return C(() => {
|
|
1289
1341
|
u.value = !1;
|
|
1290
1342
|
}), (t, s) => {
|
|
@@ -1295,7 +1347,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1295
1347
|
"close-on-content-click": !1,
|
|
1296
1348
|
scrim: "transparent"
|
|
1297
1349
|
}, {
|
|
1298
|
-
activator: I(({ props: t }) => [d("div",
|
|
1350
|
+
activator: I(({ props: t }) => [d("div", Yt, [d("div", {
|
|
1299
1351
|
class: "flex-grow-1",
|
|
1300
1352
|
style: b(a.value)
|
|
1301
1353
|
}, [p(m, y(t, {
|
|
@@ -1312,7 +1364,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1312
1364
|
density: "compact",
|
|
1313
1365
|
icon: "mdi-minus",
|
|
1314
1366
|
variant: "text",
|
|
1315
|
-
onClick: s[0] ||=
|
|
1367
|
+
onClick: s[0] ||= R((e) => i("delete"), ["stop"])
|
|
1316
1368
|
})) : l("", !0)])]),
|
|
1317
1369
|
default: I(() => [p(h, {
|
|
1318
1370
|
modelValue: r.value,
|
|
@@ -1325,7 +1377,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1325
1377
|
}, 8, ["modelValue"]);
|
|
1326
1378
|
};
|
|
1327
1379
|
}
|
|
1328
|
-
}),
|
|
1380
|
+
}), Zt = { class: "d-flex justify-space-between align-center my-2" }, Qt = { class: "flex-grow-1" }, $t = /* @__PURE__ */ m({
|
|
1329
1381
|
__name: "index",
|
|
1330
1382
|
props: /* @__PURE__ */ v({
|
|
1331
1383
|
hasDelete: {
|
|
@@ -1343,7 +1395,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1343
1395
|
}),
|
|
1344
1396
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1345
1397
|
setup(e, { emit: t }) {
|
|
1346
|
-
let { t: n } =
|
|
1398
|
+
let { t: n } = G(), { isMobile: r } = V(), i = N(e, "modelValue"), a = t, o = s(() => de(e.types)), f = E(""), m = s(() => {
|
|
1347
1399
|
let e = [];
|
|
1348
1400
|
for (let { value: t, title: r } of o.value) e.push({
|
|
1349
1401
|
value: t,
|
|
@@ -1367,7 +1419,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1367
1419
|
}
|
|
1368
1420
|
let v = E(0), y = async (e) => {
|
|
1369
1421
|
if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "numberUnit") return;
|
|
1370
|
-
let t = await
|
|
1422
|
+
let t = await oe({
|
|
1371
1423
|
title: "",
|
|
1372
1424
|
value: v.value,
|
|
1373
1425
|
precision: h.value.precision,
|
|
@@ -1378,31 +1430,31 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1378
1430
|
t !== void 0 && (v.value = t);
|
|
1379
1431
|
};
|
|
1380
1432
|
F(() => {
|
|
1381
|
-
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value =
|
|
1433
|
+
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value = he(i.value, h.value.unit));
|
|
1382
1434
|
}), P(v, (e) => {
|
|
1383
1435
|
h.value?.trait === "number" ? i.value = e : h.value?.trait === "numberUnit" && (i.value = e + h.value.unit);
|
|
1384
1436
|
});
|
|
1385
1437
|
let b = E("#ff00ff");
|
|
1386
1438
|
F(() => {
|
|
1387
|
-
h.value?.trait === "hexColor" &&
|
|
1439
|
+
h.value?.trait === "hexColor" && fe(i.value) && (b.value = i.value);
|
|
1388
1440
|
}), P(b, (e) => {
|
|
1389
1441
|
h.value?.trait === "hexColor" && (i.value = e);
|
|
1390
1442
|
});
|
|
1391
1443
|
let x = E("primary"), S = s(() => {
|
|
1392
1444
|
let e = [];
|
|
1393
|
-
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of
|
|
1445
|
+
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of ve) e.push({
|
|
1394
1446
|
value: t,
|
|
1395
1447
|
title: n(r)
|
|
1396
1448
|
});
|
|
1397
1449
|
return e;
|
|
1398
1450
|
});
|
|
1399
1451
|
return F(() => {
|
|
1400
|
-
h.value?.trait === "themeColor" &&
|
|
1452
|
+
h.value?.trait === "themeColor" && pe(i.value) && (x.value = i.value);
|
|
1401
1453
|
}), P(x, (e) => {
|
|
1402
1454
|
h.value?.trait === "themeColor" && (i.value = e);
|
|
1403
1455
|
}), (t, n) => {
|
|
1404
1456
|
let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), s = k("ripple");
|
|
1405
|
-
return w(), u("div",
|
|
1457
|
+
return w(), u("div", Zt, [d("div", Qt, [
|
|
1406
1458
|
L(p(r, {
|
|
1407
1459
|
modelValue: f.value,
|
|
1408
1460
|
"onUpdate:modelValue": [n[0] ||= (e) => f.value = e, g],
|
|
@@ -1448,7 +1500,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1448
1500
|
void 0,
|
|
1449
1501
|
{ stop: !0 }
|
|
1450
1502
|
]]) : l("", !0),
|
|
1451
|
-
h.value?.trait === "hexColor" ? (w(), c(
|
|
1503
|
+
h.value?.trait === "hexColor" ? (w(), c(Xt, {
|
|
1452
1504
|
key: 1,
|
|
1453
1505
|
modelValue: b.value,
|
|
1454
1506
|
"onUpdate:modelValue": n[2] ||= (e) => b.value = e
|
|
@@ -1473,11 +1525,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1473
1525
|
density: "compact",
|
|
1474
1526
|
icon: "mdi-minus",
|
|
1475
1527
|
variant: "text",
|
|
1476
|
-
onClick: n[4] ||=
|
|
1528
|
+
onClick: n[4] ||= R((e) => a("delete"), ["stop"])
|
|
1477
1529
|
})) : l("", !0)]);
|
|
1478
1530
|
};
|
|
1479
1531
|
}
|
|
1480
|
-
}),
|
|
1532
|
+
}), en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PURE__ */ m({
|
|
1481
1533
|
__name: "index",
|
|
1482
1534
|
props: /* @__PURE__ */ v({
|
|
1483
1535
|
hasDelete: {
|
|
@@ -1498,9 +1550,9 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1498
1550
|
}),
|
|
1499
1551
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1500
1552
|
setup(e, { emit: t }) {
|
|
1501
|
-
let { isMobile: n } =
|
|
1553
|
+
let { isMobile: n } = V(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1502
1554
|
if (!t || e.readonly || !n()) return;
|
|
1503
|
-
let i = await
|
|
1555
|
+
let i = await oe({
|
|
1504
1556
|
title: "",
|
|
1505
1557
|
value: r.value,
|
|
1506
1558
|
precision: e.precision,
|
|
@@ -1512,7 +1564,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1512
1564
|
};
|
|
1513
1565
|
return (t, n) => {
|
|
1514
1566
|
let o = O("v-number-input"), s = O("v-btn"), d = k("ripple");
|
|
1515
|
-
return w(), u("div",
|
|
1567
|
+
return w(), u("div", en, [L(p(o, {
|
|
1516
1568
|
modelValue: r.value,
|
|
1517
1569
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1518
1570
|
"control-variant": "stacked",
|
|
@@ -1543,11 +1595,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1543
1595
|
density: "compact",
|
|
1544
1596
|
icon: "mdi-minus",
|
|
1545
1597
|
variant: "text",
|
|
1546
|
-
onClick: n[1] ||=
|
|
1598
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1547
1599
|
})) : l("", !0)]);
|
|
1548
1600
|
};
|
|
1549
1601
|
}
|
|
1550
|
-
}),
|
|
1602
|
+
}), nn = { class: "d-flex justify-space-between align-center my-2" }, rn = { class: "flex-grow-1" }, an = /* @__PURE__ */ m({
|
|
1551
1603
|
__name: "index",
|
|
1552
1604
|
props: /* @__PURE__ */ v({
|
|
1553
1605
|
hasDelete: {
|
|
@@ -1564,7 +1616,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1564
1616
|
}),
|
|
1565
1617
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1566
1618
|
setup(e, { emit: t }) {
|
|
1567
|
-
let { t: n } =
|
|
1619
|
+
let { t: n } = G(), { isMobile: r } = V(), i = N(e, "modelValue"), a = t, o = E(""), f = E(0);
|
|
1568
1620
|
F(() => {
|
|
1569
1621
|
let e = i.value.split(",");
|
|
1570
1622
|
e.length < 1 || (o.value = e[0], (e[0] === "minLength" || e[1] === "maxLength" || e[2] === "length") && (e.length > 1 ? f.value = parseInt(e[1]) : f.value = 0));
|
|
@@ -1577,7 +1629,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1577
1629
|
value: "",
|
|
1578
1630
|
title: n("x-runtime-lib.notSet")
|
|
1579
1631
|
}];
|
|
1580
|
-
for (let t of
|
|
1632
|
+
for (let t of _e) e.push({
|
|
1581
1633
|
value: t,
|
|
1582
1634
|
title: n(`x-runtime-lib.${t}`)
|
|
1583
1635
|
});
|
|
@@ -1592,7 +1644,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1592
1644
|
});
|
|
1593
1645
|
async function _(e) {
|
|
1594
1646
|
if (!e || !r()) return;
|
|
1595
|
-
let t = await
|
|
1647
|
+
let t = await oe({
|
|
1596
1648
|
title: "",
|
|
1597
1649
|
value: f.value,
|
|
1598
1650
|
precision: 0,
|
|
@@ -1607,7 +1659,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1607
1659
|
}
|
|
1608
1660
|
return (t, n) => {
|
|
1609
1661
|
let r = O("v-select"), i = O("v-number-input"), s = O("v-btn"), m = k("ripple");
|
|
1610
|
-
return w(), u("div",
|
|
1662
|
+
return w(), u("div", nn, [d("div", rn, [L(p(r, {
|
|
1611
1663
|
modelValue: o.value,
|
|
1612
1664
|
"onUpdate:modelValue": [n[0] ||= (e) => o.value = e, g],
|
|
1613
1665
|
density: "compact",
|
|
@@ -1649,11 +1701,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1649
1701
|
density: "compact",
|
|
1650
1702
|
icon: "mdi-minus",
|
|
1651
1703
|
variant: "text",
|
|
1652
|
-
onClick: n[2] ||=
|
|
1704
|
+
onClick: n[2] ||= R((e) => a("delete"), ["stop"])
|
|
1653
1705
|
})) : l("", !0)]);
|
|
1654
1706
|
};
|
|
1655
1707
|
}
|
|
1656
|
-
}),
|
|
1708
|
+
}), on = { class: "d-flex justify-space-between align-center" }, sn = /* @__PURE__ */ m({
|
|
1657
1709
|
__name: "index",
|
|
1658
1710
|
props: /* @__PURE__ */ v({
|
|
1659
1711
|
hasDelete: {
|
|
@@ -1671,9 +1723,9 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1671
1723
|
}),
|
|
1672
1724
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1673
1725
|
setup(e, { emit: t }) {
|
|
1674
|
-
let { t: n } =
|
|
1726
|
+
let { t: n } = G(), r = N(e, "modelValue"), i = t, a = s(() => {
|
|
1675
1727
|
let t = [];
|
|
1676
|
-
return
|
|
1728
|
+
return le(e.items)?.forEach(({ value: e, title: r }) => {
|
|
1677
1729
|
let i = e;
|
|
1678
1730
|
r && (i = n(r)), t.push({
|
|
1679
1731
|
value: e,
|
|
@@ -1683,7 +1735,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1683
1735
|
});
|
|
1684
1736
|
return (t, n) => {
|
|
1685
1737
|
let o = O("v-select"), s = O("v-btn"), d = k("ripple");
|
|
1686
|
-
return w(), u("div",
|
|
1738
|
+
return w(), u("div", on, [L(p(o, {
|
|
1687
1739
|
modelValue: r.value,
|
|
1688
1740
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1689
1741
|
density: "compact",
|
|
@@ -1706,11 +1758,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1706
1758
|
density: "compact",
|
|
1707
1759
|
icon: "mdi-minus",
|
|
1708
1760
|
variant: "text",
|
|
1709
|
-
onClick: n[1] ||=
|
|
1761
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1710
1762
|
})) : l("", !0)]);
|
|
1711
1763
|
};
|
|
1712
1764
|
}
|
|
1713
|
-
}),
|
|
1765
|
+
}), cn = { class: "text-body-large ml-6" }, ln = /* @__PURE__ */ m({
|
|
1714
1766
|
__name: "item",
|
|
1715
1767
|
props: {
|
|
1716
1768
|
id: {},
|
|
@@ -1718,7 +1770,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1718
1770
|
},
|
|
1719
1771
|
emits: ["x-click"],
|
|
1720
1772
|
setup(e, { emit: t }) {
|
|
1721
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
1773
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
|
|
1722
1774
|
background: a.value ? r.value : n.value,
|
|
1723
1775
|
height: "48px",
|
|
1724
1776
|
marginTop: "1px",
|
|
@@ -1732,13 +1784,13 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1732
1784
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
1733
1785
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
1734
1786
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
1735
|
-
}, [d("span",
|
|
1787
|
+
}, [d("span", cn, A(e.title), 1)], 36)), [[r]]);
|
|
1736
1788
|
};
|
|
1737
1789
|
}
|
|
1738
|
-
}),
|
|
1790
|
+
}), un = { key: 0 }, dn = {
|
|
1739
1791
|
key: 1,
|
|
1740
1792
|
class: "text-body-medium text-grey ml-3"
|
|
1741
|
-
},
|
|
1793
|
+
}, fn = /* @__PURE__ */ m({
|
|
1742
1794
|
__name: "index",
|
|
1743
1795
|
props: {
|
|
1744
1796
|
modelValue: {},
|
|
@@ -1751,17 +1803,17 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1751
1803
|
},
|
|
1752
1804
|
emits: ["update:modelValue", "update:open"],
|
|
1753
1805
|
setup(e) {
|
|
1754
|
-
let {
|
|
1806
|
+
let { t } = G(), n = N(e, "modelValue"), r = N(e, "open"), i = ut(), a = (e) => {
|
|
1755
1807
|
n.value = e, r.value = !1;
|
|
1756
1808
|
};
|
|
1757
|
-
return (e, n) => j(i).length > 0 ? (w(), u("div",
|
|
1809
|
+
return (e, n) => j(i).length > 0 ? (w(), u("div", un, [(w(!0), u(o, null, D(j(i), (e) => (w(), c(ln, {
|
|
1758
1810
|
key: e.id,
|
|
1759
1811
|
id: e.id,
|
|
1760
1812
|
title: e.name,
|
|
1761
1813
|
onXClick: a
|
|
1762
|
-
}, null, 8, ["id", "title"]))), 128))])) : (w(), u("div",
|
|
1814
|
+
}, null, 8, ["id", "title"]))), 128))])) : (w(), u("div", dn, A(j(t)("x-prop-tree.noSlot")), 1));
|
|
1763
1815
|
}
|
|
1764
|
-
}),
|
|
1816
|
+
}), pn = { class: "text-body-large" }, mn = /* @__PURE__ */ m({
|
|
1765
1817
|
__name: "index",
|
|
1766
1818
|
props: /* @__PURE__ */ v({
|
|
1767
1819
|
hasDelete: {
|
|
@@ -1778,93 +1830,93 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1778
1830
|
}),
|
|
1779
1831
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1780
1832
|
setup(e, { emit: t }) {
|
|
1781
|
-
let { t: n } =
|
|
1833
|
+
let { t: n } = G(), r = be(), { sysBarAvail: i } = V(), { backgroundColor1: a } = B(), o = N(e, "modelValue"), u = t, m = ut(), h = s(() => {
|
|
1782
1834
|
let e = "100%";
|
|
1783
1835
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1784
|
-
background:
|
|
1836
|
+
background: a.value,
|
|
1785
1837
|
width: e,
|
|
1786
1838
|
height: "100%"
|
|
1787
1839
|
};
|
|
1788
|
-
}),
|
|
1840
|
+
}), g = s(() => {
|
|
1789
1841
|
let e = 48;
|
|
1790
1842
|
return i.value && (e += 24), {
|
|
1791
1843
|
position: "relative",
|
|
1792
1844
|
height: `calc(100% - ${e}px)`
|
|
1793
1845
|
};
|
|
1794
|
-
}),
|
|
1795
|
-
if (!
|
|
1796
|
-
let e =
|
|
1846
|
+
}), v = s(() => ({ height: "60px" })), x = s(() => {
|
|
1847
|
+
if (!o.value) return n("x-runtime-lib.notSet");
|
|
1848
|
+
let e = m.value.find((e) => e.id === o.value);
|
|
1797
1849
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
1798
|
-
}), { open:
|
|
1850
|
+
}), { open: S } = H(`propTreeSlotSelectDlg${M()}`);
|
|
1799
1851
|
return C(() => {
|
|
1800
|
-
|
|
1801
|
-
}), (t,
|
|
1802
|
-
let
|
|
1803
|
-
return w(), c(
|
|
1804
|
-
modelValue: j(
|
|
1805
|
-
"onUpdate:modelValue":
|
|
1852
|
+
S.value = !1;
|
|
1853
|
+
}), (t, r) => {
|
|
1854
|
+
let a = O("v-btn"), s = O("v-sheet"), m = O("v-dialog");
|
|
1855
|
+
return w(), c(m, {
|
|
1856
|
+
modelValue: j(S),
|
|
1857
|
+
"onUpdate:modelValue": r[6] ||= (e) => _(S) ? S.value = e : null,
|
|
1806
1858
|
fullscreen: "",
|
|
1807
1859
|
"no-click-animation": "",
|
|
1808
1860
|
persistent: "",
|
|
1809
1861
|
transition: "scroll-x-reverse-transition",
|
|
1810
|
-
onKeydown:
|
|
1862
|
+
onKeydown: r[7] ||= ne(R((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1811
1863
|
}, {
|
|
1812
|
-
activator: I(({ props: t }) => [p(
|
|
1864
|
+
activator: I(({ props: t }) => [p(a, y(t, {
|
|
1813
1865
|
block: "",
|
|
1814
1866
|
density: "comfortable",
|
|
1815
1867
|
readonly: e.readonly
|
|
1816
1868
|
}), {
|
|
1817
|
-
default: I(() => [f(A(
|
|
1869
|
+
default: I(() => [f(A(x.value), 1)]),
|
|
1818
1870
|
_: 1
|
|
1819
|
-
}, 16, ["readonly"]), e.hasDelete ? (w(), c(
|
|
1871
|
+
}, 16, ["readonly"]), e.hasDelete ? (w(), c(a, {
|
|
1820
1872
|
key: 0,
|
|
1821
1873
|
class: "mx-2",
|
|
1822
1874
|
density: "compact",
|
|
1823
1875
|
icon: "mdi-minus",
|
|
1824
1876
|
variant: "text",
|
|
1825
|
-
onClick:
|
|
1877
|
+
onClick: r[0] ||= R((e) => u("delete"), ["stop"])
|
|
1826
1878
|
})) : l("", !0)]),
|
|
1827
1879
|
default: I(() => [d("div", {
|
|
1828
1880
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1829
|
-
onClick:
|
|
1830
|
-
onContextmenu:
|
|
1881
|
+
onClick: r[4] ||= R((e) => S.value = !1, ["self"]),
|
|
1882
|
+
onContextmenu: r[5] ||= R((e) => S.value = !1, ["self", "prevent"])
|
|
1831
1883
|
}, [d("div", {
|
|
1832
1884
|
class: "elevation-2",
|
|
1833
|
-
style: b(
|
|
1885
|
+
style: b(h.value)
|
|
1834
1886
|
}, [
|
|
1835
|
-
j(i) ? (w(), c(
|
|
1887
|
+
j(i) ? (w(), c(s, {
|
|
1836
1888
|
key: 0,
|
|
1837
1889
|
color: "transparent",
|
|
1838
1890
|
height: 24
|
|
1839
1891
|
})) : l("", !0),
|
|
1840
|
-
p(
|
|
1892
|
+
p(s, {
|
|
1841
1893
|
class: "d-flex align-center px-3",
|
|
1842
1894
|
color: "transparent",
|
|
1843
1895
|
height: 48
|
|
1844
1896
|
}, {
|
|
1845
|
-
default: I(() => [p(
|
|
1897
|
+
default: I(() => [p(a, {
|
|
1846
1898
|
density: "comfortable",
|
|
1847
1899
|
icon: "mdi-close",
|
|
1848
1900
|
variant: "text",
|
|
1849
|
-
onClick:
|
|
1850
|
-
}), d("span",
|
|
1901
|
+
onClick: r[1] ||= (e) => S.value = !1
|
|
1902
|
+
}), d("span", pn, A(j(n)("x-prop-tree.selectSlot")), 1)]),
|
|
1851
1903
|
_: 1
|
|
1852
1904
|
}),
|
|
1853
1905
|
d("div", {
|
|
1854
1906
|
class: "overflow-y-auto",
|
|
1855
|
-
style: b(
|
|
1856
|
-
}, [p(
|
|
1857
|
-
modelValue:
|
|
1858
|
-
"onUpdate:modelValue":
|
|
1859
|
-
open: j(
|
|
1860
|
-
"onUpdate:open":
|
|
1861
|
-
}, null, 8, ["modelValue", "open"]), d("div", { style: b(
|
|
1907
|
+
style: b(g.value)
|
|
1908
|
+
}, [p(fn, {
|
|
1909
|
+
modelValue: o.value,
|
|
1910
|
+
"onUpdate:modelValue": r[2] ||= (e) => o.value = e,
|
|
1911
|
+
open: j(S),
|
|
1912
|
+
"onUpdate:open": r[3] ||= (e) => _(S) ? S.value = e : null
|
|
1913
|
+
}, null, 8, ["modelValue", "open"]), d("div", { style: b(v.value) }, null, 4)], 4)
|
|
1862
1914
|
], 4)], 32)]),
|
|
1863
1915
|
_: 1
|
|
1864
1916
|
}, 8, ["modelValue"]);
|
|
1865
1917
|
};
|
|
1866
1918
|
}
|
|
1867
|
-
}),
|
|
1919
|
+
}), hn = { class: "d-flex justify-space-between align-center" }, gn = /* @__PURE__ */ m({
|
|
1868
1920
|
__name: "index",
|
|
1869
1921
|
props: /* @__PURE__ */ v({
|
|
1870
1922
|
hasDelete: {
|
|
@@ -1884,7 +1936,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1884
1936
|
let n = N(e, "modelValue"), r = t;
|
|
1885
1937
|
return (t, i) => {
|
|
1886
1938
|
let a = O("v-switch"), o = O("v-btn");
|
|
1887
|
-
return w(), u("div",
|
|
1939
|
+
return w(), u("div", hn, [p(a, {
|
|
1888
1940
|
modelValue: n.value,
|
|
1889
1941
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
1890
1942
|
class: "ml-1",
|
|
@@ -1898,11 +1950,11 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1898
1950
|
density: "compact",
|
|
1899
1951
|
icon: "mdi-minus",
|
|
1900
1952
|
variant: "text",
|
|
1901
|
-
onClick: i[1] ||=
|
|
1953
|
+
onClick: i[1] ||= R((e) => r("delete"), ["stop"])
|
|
1902
1954
|
})) : l("", !0)]);
|
|
1903
1955
|
};
|
|
1904
1956
|
}
|
|
1905
|
-
}),
|
|
1957
|
+
}), _n = { class: "d-flex justify-space-between align-center" }, vn = /* @__PURE__ */ m({
|
|
1906
1958
|
__name: "index",
|
|
1907
1959
|
props: /* @__PURE__ */ v({
|
|
1908
1960
|
hasDelete: {
|
|
@@ -1919,9 +1971,9 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1919
1971
|
}),
|
|
1920
1972
|
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1921
1973
|
setup(e, { emit: t }) {
|
|
1922
|
-
let { isMobile: n } =
|
|
1974
|
+
let { isMobile: n } = V(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1923
1975
|
if (!t || e.readonly || !n()) return;
|
|
1924
|
-
let i = await
|
|
1976
|
+
let i = await se({
|
|
1925
1977
|
title: "",
|
|
1926
1978
|
value: r.value
|
|
1927
1979
|
});
|
|
@@ -1929,7 +1981,7 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1929
1981
|
};
|
|
1930
1982
|
return (t, n) => {
|
|
1931
1983
|
let o = O("v-text-field"), s = O("v-btn"), d = k("ripple");
|
|
1932
|
-
return w(), u("div",
|
|
1984
|
+
return w(), u("div", _n, [L(p(o, {
|
|
1933
1985
|
modelValue: r.value,
|
|
1934
1986
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1935
1987
|
density: "compact",
|
|
@@ -1948,21 +2000,21 @@ var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text
|
|
|
1948
2000
|
density: "compact",
|
|
1949
2001
|
icon: "mdi-minus",
|
|
1950
2002
|
variant: "text",
|
|
1951
|
-
onClick: n[1] ||=
|
|
2003
|
+
onClick: n[1] ||= R((e) => i("delete"), ["stop"])
|
|
1952
2004
|
})) : l("", !0)]);
|
|
1953
2005
|
};
|
|
1954
2006
|
}
|
|
1955
2007
|
});
|
|
1956
2008
|
//#endregion
|
|
1957
2009
|
//#region src/composables/uis/uiAdaptSlot.ts
|
|
1958
|
-
function
|
|
2010
|
+
function yn() {
|
|
1959
2011
|
let e = Q();
|
|
1960
2012
|
return { renderUiAdaptSlot: (t, n, r, i, a) => {
|
|
1961
2013
|
if (n.ui !== "adaptSlot") throw Error("useUiAdaptSlot property ui must be adaptSlot");
|
|
1962
|
-
return h(
|
|
1963
|
-
modelValue:
|
|
2014
|
+
return h(Nt, {
|
|
2015
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1964
2016
|
"onUpdate:modelValue": (o) => {
|
|
1965
|
-
|
|
2017
|
+
J(t, n, r, o, i, a, e);
|
|
1966
2018
|
},
|
|
1967
2019
|
hasDelete: i !== void 0 && !a,
|
|
1968
2020
|
onDelete: () => {
|
|
@@ -1974,14 +2026,14 @@ function hn() {
|
|
|
1974
2026
|
}
|
|
1975
2027
|
//#endregion
|
|
1976
2028
|
//#region src/composables/uis/uiComp.ts
|
|
1977
|
-
function
|
|
2029
|
+
function bn() {
|
|
1978
2030
|
let e = Q();
|
|
1979
2031
|
return { renderUiComp: (t, n, r, i, a) => {
|
|
1980
2032
|
if (n.ui !== "comp") throw Error("renderUiComp property ui must be comp");
|
|
1981
|
-
return h(
|
|
1982
|
-
modelValue:
|
|
2033
|
+
return h(Ut, {
|
|
2034
|
+
modelValue: q(t, n, r, i, a, e),
|
|
1983
2035
|
"onUpdate:modelValue": (o) => {
|
|
1984
|
-
|
|
2036
|
+
J(t, n, r, o, i, a, e);
|
|
1985
2037
|
},
|
|
1986
2038
|
hasDelete: i !== void 0 && !a,
|
|
1987
2039
|
onDelete: () => {
|
|
@@ -1993,23 +2045,23 @@ function gn() {
|
|
|
1993
2045
|
}
|
|
1994
2046
|
//#endregion
|
|
1995
2047
|
//#region src/composables/uis/uiDummy.ts
|
|
1996
|
-
function
|
|
2048
|
+
function xn() {
|
|
1997
2049
|
let e = Q();
|
|
1998
2050
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
1999
2051
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
2000
|
-
|
|
2052
|
+
q(t, n, r, i, a, e);
|
|
2001
2053
|
} };
|
|
2002
2054
|
}
|
|
2003
2055
|
//#endregion
|
|
2004
2056
|
//#region src/composables/uis/uiIcon.ts
|
|
2005
|
-
function
|
|
2057
|
+
function Sn() {
|
|
2006
2058
|
let e = Q();
|
|
2007
2059
|
return { renderUiIcon: (t, n, r, i, a) => {
|
|
2008
2060
|
if (n.ui !== "icon") throw Error("renderUiIcon property ui must be icon");
|
|
2009
|
-
return h(
|
|
2010
|
-
modelValue: n.static ? n.value :
|
|
2061
|
+
return h(Gt, {
|
|
2062
|
+
modelValue: n.static ? n.value : q(t, n, r, i, a, e),
|
|
2011
2063
|
"onUpdate:modelValue": (o) => {
|
|
2012
|
-
n.static ||
|
|
2064
|
+
n.static || J(t, n, r, o, i, a, e);
|
|
2013
2065
|
},
|
|
2014
2066
|
hasDelete: i !== void 0 && !a,
|
|
2015
2067
|
onDelete: () => {
|
|
@@ -2021,14 +2073,14 @@ function vn() {
|
|
|
2021
2073
|
}
|
|
2022
2074
|
//#endregion
|
|
2023
2075
|
//#region src/composables/uis/uiJson.ts
|
|
2024
|
-
function
|
|
2076
|
+
function Cn() {
|
|
2025
2077
|
let e = Q();
|
|
2026
2078
|
return { renderUiJson: (t, n, r, i, a) => {
|
|
2027
2079
|
if (n.ui !== "json") throw Error("renderUiJson property ui must be json");
|
|
2028
|
-
return h(
|
|
2029
|
-
modelValue:
|
|
2080
|
+
return h(Jt, {
|
|
2081
|
+
modelValue: q(t, n, r, i, a, e) ?? "{}",
|
|
2030
2082
|
"onUpdate:modelValue": (o) => {
|
|
2031
|
-
|
|
2083
|
+
J(t, n, r, o, i, a, e);
|
|
2032
2084
|
},
|
|
2033
2085
|
hasDelete: i !== void 0 && !a,
|
|
2034
2086
|
onDelete: () => {
|
|
@@ -2040,14 +2092,14 @@ function yn() {
|
|
|
2040
2092
|
}
|
|
2041
2093
|
//#endregion
|
|
2042
2094
|
//#region src/composables/uis/uiMultiTypes.ts
|
|
2043
|
-
function
|
|
2095
|
+
function wn() {
|
|
2044
2096
|
let e = Q();
|
|
2045
2097
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
2046
2098
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
2047
|
-
return h(
|
|
2048
|
-
modelValue:
|
|
2099
|
+
return h($t, {
|
|
2100
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2049
2101
|
"onUpdate:modelValue": (o) => {
|
|
2050
|
-
|
|
2102
|
+
J(t, n, r, o, i, a, e);
|
|
2051
2103
|
},
|
|
2052
2104
|
hasDelete: i !== void 0 && !a,
|
|
2053
2105
|
onDelete: () => {
|
|
@@ -2059,14 +2111,14 @@ function bn() {
|
|
|
2059
2111
|
}
|
|
2060
2112
|
//#endregion
|
|
2061
2113
|
//#region src/composables/uis/uiNumber.ts
|
|
2062
|
-
function
|
|
2114
|
+
function Tn() {
|
|
2063
2115
|
let e = Q();
|
|
2064
2116
|
return { renderUiNumber: (t, n, r, i, a) => {
|
|
2065
2117
|
if (n.ui !== "number") throw Error("renderUiNumber property ui must be number");
|
|
2066
|
-
return h(
|
|
2067
|
-
modelValue:
|
|
2118
|
+
return h(tn, {
|
|
2119
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2068
2120
|
"onUpdate:modelValue": (o) => {
|
|
2069
|
-
|
|
2121
|
+
J(t, n, r, o, i, a, e);
|
|
2070
2122
|
},
|
|
2071
2123
|
hasDelete: i !== void 0 && !a,
|
|
2072
2124
|
onDelete: () => {
|
|
@@ -2082,12 +2134,12 @@ function xn() {
|
|
|
2082
2134
|
}
|
|
2083
2135
|
//#endregion
|
|
2084
2136
|
//#region src/components/entry/index.vue
|
|
2085
|
-
var
|
|
2137
|
+
var En = /* @__PURE__ */ m({
|
|
2086
2138
|
__name: "index",
|
|
2087
2139
|
props: { minHeight: {} },
|
|
2088
2140
|
emits: ["menu"],
|
|
2089
2141
|
setup(e, { emit: t }) {
|
|
2090
|
-
let { backgroundColor2: n, highlightColor: r } =
|
|
2142
|
+
let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
|
|
2091
2143
|
background: a.value ? r.value : n.value,
|
|
2092
2144
|
minHeight: e.minHeight,
|
|
2093
2145
|
paddingRight: "4px",
|
|
@@ -2101,7 +2153,7 @@ var Sn = /* @__PURE__ */ m({
|
|
|
2101
2153
|
return L((w(), u("div", {
|
|
2102
2154
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
2103
2155
|
style: b(o.value),
|
|
2104
|
-
onContextmenu:
|
|
2156
|
+
onContextmenu: R(c, ["self", "prevent"]),
|
|
2105
2157
|
onMouseout: t[0] ||= (e) => a.value = !1,
|
|
2106
2158
|
onMouseover: t[1] ||= (e) => a.value = !0
|
|
2107
2159
|
}, [ee(e.$slots, "default")], 36)), [[n]]);
|
|
@@ -2110,14 +2162,14 @@ var Sn = /* @__PURE__ */ m({
|
|
|
2110
2162
|
});
|
|
2111
2163
|
//#endregion
|
|
2112
2164
|
//#region src/composables/uis/uiProperty.ts
|
|
2113
|
-
function
|
|
2114
|
-
let { t: e } =
|
|
2165
|
+
function Dn() {
|
|
2166
|
+
let { t: e } = G(), t = at();
|
|
2115
2167
|
return { renderProperty: (n, r, i) => {
|
|
2116
2168
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
2117
|
-
return Z(t.value, n) && (o += " *"), h(
|
|
2169
|
+
return Z(t.value, n) && (o += " *"), h(En, {
|
|
2118
2170
|
minHeight: "56px",
|
|
2119
2171
|
onMenu: (e, t) => {
|
|
2120
|
-
|
|
2172
|
+
z.emit("propTreeMenu", {
|
|
2121
2173
|
x: e,
|
|
2122
2174
|
y: t,
|
|
2123
2175
|
keys: n
|
|
@@ -2134,14 +2186,14 @@ function Cn() {
|
|
|
2134
2186
|
}
|
|
2135
2187
|
//#endregion
|
|
2136
2188
|
//#region src/composables/uis/uiRule.ts
|
|
2137
|
-
function
|
|
2189
|
+
function On() {
|
|
2138
2190
|
let e = Q();
|
|
2139
2191
|
function t(t, n, r, i, a) {
|
|
2140
2192
|
if (n.ui !== "rule") throw Error("renderUiRule property ui must be rule");
|
|
2141
|
-
return h(
|
|
2142
|
-
modelValue:
|
|
2193
|
+
return h(an, {
|
|
2194
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2143
2195
|
"onUpdate:modelValue": (o) => {
|
|
2144
|
-
|
|
2196
|
+
J(t, n, r, o, i, a, e);
|
|
2145
2197
|
},
|
|
2146
2198
|
hasDelete: i !== void 0 && !a,
|
|
2147
2199
|
onDelete: () => {
|
|
@@ -2153,14 +2205,14 @@ function wn() {
|
|
|
2153
2205
|
}
|
|
2154
2206
|
//#endregion
|
|
2155
2207
|
//#region src/composables/uis/uiSelect.ts
|
|
2156
|
-
function
|
|
2208
|
+
function kn() {
|
|
2157
2209
|
let e = Q();
|
|
2158
2210
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
2159
2211
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
2160
|
-
return h(
|
|
2161
|
-
modelValue:
|
|
2212
|
+
return h(sn, {
|
|
2213
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2162
2214
|
"onUpdate:modelValue": (o) => {
|
|
2163
|
-
|
|
2215
|
+
J(t, n, r, o, i, a, e);
|
|
2164
2216
|
},
|
|
2165
2217
|
hasDelete: i !== void 0 && !a,
|
|
2166
2218
|
onDelete: () => {
|
|
@@ -2173,14 +2225,14 @@ function Tn() {
|
|
|
2173
2225
|
}
|
|
2174
2226
|
//#endregion
|
|
2175
2227
|
//#region src/composables/uis/uiSlot.ts
|
|
2176
|
-
function
|
|
2228
|
+
function An() {
|
|
2177
2229
|
let e = Q();
|
|
2178
2230
|
return { renderUiSlot: (t, n, r, i, a) => {
|
|
2179
2231
|
if (n.ui !== "slot") throw Error("renderUiSlot property ui must be slot");
|
|
2180
|
-
return h(
|
|
2181
|
-
modelValue:
|
|
2232
|
+
return h(mn, {
|
|
2233
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2182
2234
|
"onUpdate:modelValue": (o) => {
|
|
2183
|
-
|
|
2235
|
+
J(t, n, r, o, i, a, e);
|
|
2184
2236
|
},
|
|
2185
2237
|
hasDelete: i !== void 0 && !a,
|
|
2186
2238
|
onDelete: () => {
|
|
@@ -2192,14 +2244,14 @@ function En() {
|
|
|
2192
2244
|
}
|
|
2193
2245
|
//#endregion
|
|
2194
2246
|
//#region src/composables/uis/uiSwitch.ts
|
|
2195
|
-
function
|
|
2247
|
+
function jn() {
|
|
2196
2248
|
let e = Q();
|
|
2197
2249
|
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2198
2250
|
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2199
|
-
return h(
|
|
2200
|
-
modelValue:
|
|
2251
|
+
return h(gn, {
|
|
2252
|
+
modelValue: q(t, n, r, i, a, e),
|
|
2201
2253
|
"onUpdate:modelValue": (o) => {
|
|
2202
|
-
|
|
2254
|
+
J(t, n, r, o, i, a, e);
|
|
2203
2255
|
},
|
|
2204
2256
|
hasDelete: i !== void 0 && !a,
|
|
2205
2257
|
onDelete: () => {
|
|
@@ -2211,14 +2263,14 @@ function Dn() {
|
|
|
2211
2263
|
}
|
|
2212
2264
|
//#endregion
|
|
2213
2265
|
//#region src/composables/uis/uiText.ts
|
|
2214
|
-
function
|
|
2266
|
+
function Mn() {
|
|
2215
2267
|
let e = Q();
|
|
2216
2268
|
return { renderUiText: (t, n, r, i, a) => {
|
|
2217
2269
|
if (n.ui !== "text") throw Error("renderUiText property ui must be text");
|
|
2218
|
-
return h(
|
|
2219
|
-
modelValue: n.static ? n.value :
|
|
2270
|
+
return h(vn, {
|
|
2271
|
+
modelValue: n.static ? n.value : q(t, n, r, i, a, e),
|
|
2220
2272
|
"onUpdate:modelValue": (o) => {
|
|
2221
|
-
n.static ||
|
|
2273
|
+
n.static || J(t, n, r, o, i, a, e);
|
|
2222
2274
|
},
|
|
2223
2275
|
hasDelete: i !== void 0 && !a,
|
|
2224
2276
|
onDelete: () => {
|
|
@@ -2230,27 +2282,27 @@ function On() {
|
|
|
2230
2282
|
}
|
|
2231
2283
|
//#endregion
|
|
2232
2284
|
//#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
|
|
2233
|
-
var $ = "20px",
|
|
2285
|
+
var $ = "20px", Nn = /* @__PURE__ */ m({
|
|
2234
2286
|
__name: "main",
|
|
2235
2287
|
setup(e) {
|
|
2236
|
-
let { t } =
|
|
2237
|
-
|
|
2238
|
-
let { renderProperty: d } =
|
|
2288
|
+
let { t } = G(), { backgroundColor1: n } = B(), i = $e(), a = tt(), s = rt(), c = at(), l = Q();
|
|
2289
|
+
St(), Ct(), xt();
|
|
2290
|
+
let { renderProperty: d } = Dn(), { renderUiDummy: f } = xn(), { renderUiText: m } = Mn(), { renderUiNumber: g } = Tn(), { renderUiSwitch: _ } = jn(), { renderUiSelect: v } = kn(), { renderUiJson: y } = Cn(), { renderUiIcon: b } = Sn(), { renderUiComp: x } = bn(), { renderUiSlot: S } = An(), { renderUiAdaptSlot: C } = yn(), { renderUiRule: T } = On(), { renderUiMultiTypes: E } = wn(), D = (e, t, n, i, a, o) => {
|
|
2239
2291
|
if (e = r(e), i === void 0 ? e.push(t.key) : (e.push(i), a && e.push(t.key)), e?.[0] !== "runtime") return t.ui ? t.array && !o ? k(e, t, n, i, a) : A(e, t, n, i, a) : t.array ? ee(e, t, n, i, a) : O(e, t, n, i, a);
|
|
2240
2292
|
}, ee = (e, n, r, i, a) => {
|
|
2241
2293
|
if (n.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2242
2294
|
if (!n.array) throw Error("renderBranchArray property array must be valid");
|
|
2243
|
-
let o =
|
|
2244
|
-
|
|
2245
|
-
let d = h(
|
|
2295
|
+
let o = Ce(e, n, r, i, a, l), u = t(n.name);
|
|
2296
|
+
Y(s, e) && Z(c.value, e) && (u += " *");
|
|
2297
|
+
let d = h(bt, {
|
|
2246
2298
|
title: u,
|
|
2247
|
-
collapse:
|
|
2299
|
+
collapse: Y(s, e),
|
|
2248
2300
|
hasCreate: !0,
|
|
2249
2301
|
onCollapse: (t) => {
|
|
2250
|
-
|
|
2302
|
+
we(s, e, t);
|
|
2251
2303
|
},
|
|
2252
2304
|
onMenu: (t, n) => {
|
|
2253
|
-
|
|
2305
|
+
z.emit("propTreeMenu", {
|
|
2254
2306
|
x: t,
|
|
2255
2307
|
y: n,
|
|
2256
2308
|
keys: e
|
|
@@ -2263,17 +2315,17 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2263
2315
|
let t = [];
|
|
2264
2316
|
for (let r = 0; r < o.length; r++) {
|
|
2265
2317
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
2266
|
-
|
|
2267
|
-
let u = h(
|
|
2318
|
+
Y(s, [...e, r]) && Z(c.value, i) && (a += " *");
|
|
2319
|
+
let u = h(bt, {
|
|
2268
2320
|
title: a,
|
|
2269
|
-
collapse:
|
|
2321
|
+
collapse: Y(s, [...e, r]),
|
|
2270
2322
|
hasDelete: !0,
|
|
2271
2323
|
index: r,
|
|
2272
2324
|
onCollapse: (t) => {
|
|
2273
|
-
|
|
2325
|
+
we(s, [...e, r], t);
|
|
2274
2326
|
},
|
|
2275
2327
|
onMenu: (e, t) => {
|
|
2276
|
-
|
|
2328
|
+
z.emit("propTreeMenu", {
|
|
2277
2329
|
x: e,
|
|
2278
2330
|
y: t,
|
|
2279
2331
|
keys: i
|
|
@@ -2289,28 +2341,28 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2289
2341
|
for (let i of n.children) t.push(D(e, i, o[r], r, !0));
|
|
2290
2342
|
return t;
|
|
2291
2343
|
})());
|
|
2292
|
-
|
|
2344
|
+
Y(s, [...e, r]) || t.push(d);
|
|
2293
2345
|
}
|
|
2294
2346
|
return t;
|
|
2295
2347
|
})());
|
|
2296
2348
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2297
2349
|
let t = [];
|
|
2298
|
-
return t.push(d),
|
|
2350
|
+
return t.push(d), Y(s, e) || t.push(f), t;
|
|
2299
2351
|
})());
|
|
2300
2352
|
}, O = (e, n, r, i, a) => {
|
|
2301
2353
|
if (n.ui) throw Error("renderBranchScalar property ui must be invalid");
|
|
2302
2354
|
if (n.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2303
2355
|
let o = t(n.name);
|
|
2304
|
-
|
|
2305
|
-
let u = h(
|
|
2356
|
+
Y(s, e) && Z(c.value, e) && (o += " *");
|
|
2357
|
+
let u = h(bt, {
|
|
2306
2358
|
title: o,
|
|
2307
|
-
collapse:
|
|
2359
|
+
collapse: Y(s, e),
|
|
2308
2360
|
hasDelete: i !== void 0 && !a,
|
|
2309
2361
|
onCollapse: (t) => {
|
|
2310
|
-
|
|
2362
|
+
we(s, e, t);
|
|
2311
2363
|
},
|
|
2312
2364
|
onMenu: (t, n) => {
|
|
2313
|
-
|
|
2365
|
+
z.emit("propTreeMenu", {
|
|
2314
2366
|
x: t,
|
|
2315
2367
|
y: n,
|
|
2316
2368
|
keys: e
|
|
@@ -2326,29 +2378,29 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2326
2378
|
})());
|
|
2327
2379
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2328
2380
|
let t = [];
|
|
2329
|
-
return t.push(u),
|
|
2381
|
+
return t.push(u), Y(s, e) || t.push(d), t;
|
|
2330
2382
|
})());
|
|
2331
2383
|
}, k = (e, n, r, i, a) => {
|
|
2332
2384
|
if (!n.ui) throw Error("renderLeafArray property ui must be valid");
|
|
2333
2385
|
if (!n.array) throw Error("renderLeafArray property array must be valid");
|
|
2334
|
-
let o =
|
|
2335
|
-
|
|
2336
|
-
let d = h(
|
|
2386
|
+
let o = Ce(e, n, r, i, a, l), u = t(n.name);
|
|
2387
|
+
Y(s, e) && Z(c.value, e) && (u += " *");
|
|
2388
|
+
let d = h(bt, {
|
|
2337
2389
|
title: u,
|
|
2338
|
-
collapse:
|
|
2390
|
+
collapse: Y(s, e),
|
|
2339
2391
|
hasCreate: !0,
|
|
2340
2392
|
onCollapse: (t) => {
|
|
2341
|
-
|
|
2393
|
+
we(s, e, t);
|
|
2342
2394
|
},
|
|
2343
2395
|
onMenu: (t, n) => {
|
|
2344
|
-
|
|
2396
|
+
z.emit("propTreeMenu", {
|
|
2345
2397
|
x: t,
|
|
2346
2398
|
y: n,
|
|
2347
2399
|
keys: e
|
|
2348
2400
|
});
|
|
2349
2401
|
},
|
|
2350
2402
|
onCreate: () => {
|
|
2351
|
-
o.push(
|
|
2403
|
+
o.push(U(n)), l(e, o);
|
|
2352
2404
|
}
|
|
2353
2405
|
}), f = h("div", { style: { paddingLeft: $ } }, (() => {
|
|
2354
2406
|
let t = [];
|
|
@@ -2357,7 +2409,7 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2357
2409
|
})());
|
|
2358
2410
|
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2359
2411
|
let t = [];
|
|
2360
|
-
return t.push(d),
|
|
2412
|
+
return t.push(d), Y(s, e) || t.push(f), t;
|
|
2361
2413
|
})());
|
|
2362
2414
|
}, A = (e, t, n, r, i) => {
|
|
2363
2415
|
if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
|
|
@@ -2371,9 +2423,9 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2371
2423
|
if (i.value.length > 0 && a.value) for (let t of i.value) e.push(D([], t, a.value, void 0, !1));
|
|
2372
2424
|
return e;
|
|
2373
2425
|
})());
|
|
2374
|
-
return (e, t) => (w(), u(o, null, [p(j), p(
|
|
2426
|
+
return (e, t) => (w(), u(o, null, [p(j), p(vt)], 64));
|
|
2375
2427
|
}
|
|
2376
|
-
}),
|
|
2428
|
+
}), Pn = /* @__PURE__ */ m({
|
|
2377
2429
|
__name: "index",
|
|
2378
2430
|
props: {
|
|
2379
2431
|
config: {},
|
|
@@ -2385,25 +2437,25 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2385
2437
|
emits: ["change"],
|
|
2386
2438
|
setup(e, { emit: t }) {
|
|
2387
2439
|
let n = t, r = E([]);
|
|
2388
|
-
|
|
2440
|
+
Qe(r), F(() => {
|
|
2389
2441
|
r.value = e.config;
|
|
2390
2442
|
});
|
|
2391
2443
|
let i = E();
|
|
2392
|
-
|
|
2444
|
+
et(i), F(() => {
|
|
2393
2445
|
i.value = e.object;
|
|
2394
2446
|
});
|
|
2395
2447
|
let a = E("");
|
|
2396
|
-
|
|
2448
|
+
Ke(a), F(() => {
|
|
2397
2449
|
a.value = e.version;
|
|
2398
2450
|
});
|
|
2399
2451
|
let o = E(e.type);
|
|
2400
|
-
|
|
2452
|
+
Je(o), F(() => {
|
|
2401
2453
|
o.value = e.type;
|
|
2402
2454
|
});
|
|
2403
2455
|
let s = E("");
|
|
2404
|
-
|
|
2456
|
+
Xe(s), F(() => {
|
|
2405
2457
|
s.value = e.subtype;
|
|
2406
|
-
}),
|
|
2458
|
+
}), nt(E({
|
|
2407
2459
|
collapse: !0,
|
|
2408
2460
|
children: {}
|
|
2409
2461
|
}));
|
|
@@ -2412,25 +2464,25 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2412
2464
|
warning: !1,
|
|
2413
2465
|
children: {}
|
|
2414
2466
|
});
|
|
2415
|
-
|
|
2467
|
+
it(l);
|
|
2416
2468
|
function u(t, r) {
|
|
2417
|
-
|
|
2469
|
+
Pe(l, e.config, e.object), n("change", t, r);
|
|
2418
2470
|
}
|
|
2419
|
-
|
|
2471
|
+
ot(u);
|
|
2420
2472
|
function d() {
|
|
2421
|
-
|
|
2473
|
+
Pe(l, e.config, e.object);
|
|
2422
2474
|
}
|
|
2423
2475
|
return S(() => {
|
|
2424
|
-
|
|
2476
|
+
z.on("refreshPropertyState", d);
|
|
2425
2477
|
}), x(() => {
|
|
2426
|
-
|
|
2478
|
+
z.off("refreshPropertyState", d);
|
|
2427
2479
|
}), P([() => e.config, () => e.object], () => {
|
|
2428
|
-
|
|
2429
|
-
}, { immediate: !0 }), (e, t) => (w(), c(
|
|
2480
|
+
Pe(l, e.config, e.object);
|
|
2481
|
+
}, { immediate: !0 }), (e, t) => (w(), c(Nn));
|
|
2430
2482
|
}
|
|
2431
|
-
}),
|
|
2432
|
-
e.component("XPropTree",
|
|
2433
|
-
},
|
|
2483
|
+
}), Fn = (e) => {
|
|
2484
|
+
e.component("XPropTree", Pn);
|
|
2485
|
+
}, In = (e, t, n) => {
|
|
2434
2486
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
2435
2487
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
2436
2488
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
|
|
@@ -2438,14 +2490,14 @@ var $ = "20px", kn = /* @__PURE__ */ m({
|
|
|
2438
2490
|
};
|
|
2439
2491
|
//#endregion
|
|
2440
2492
|
//#region src/i18n/index.ts
|
|
2441
|
-
async function
|
|
2442
|
-
return (await
|
|
2443
|
-
"./locales/en/index.ts": () => import("./i18n-en.
|
|
2444
|
-
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.
|
|
2493
|
+
async function Ln(e) {
|
|
2494
|
+
return (await In(/* @__PURE__ */ Object.assign({
|
|
2495
|
+
"./locales/en/index.ts": () => import("./i18n-en.h32u3o3z.js").then((e) => e.t),
|
|
2496
|
+
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.kyejc661.js").then((e) => e.t)
|
|
2445
2497
|
}), `./locales/${e}/index.ts`, 4)).default;
|
|
2446
2498
|
}
|
|
2447
2499
|
//#endregion
|
|
2448
2500
|
//#region src/index.ts
|
|
2449
|
-
var
|
|
2501
|
+
var Rn = { install: Fn };
|
|
2450
2502
|
//#endregion
|
|
2451
|
-
export {
|
|
2503
|
+
export { Rn as default, Ln as loadLocaleMessagePropTree };
|