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