x-prop-tree 0.7.16 → 0.7.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.
Files changed (33) hide show
  1. package/dist/components/propTree/index.vue.d.ts +2 -0
  2. package/dist/components/values/index.d.ts +7 -7
  3. package/dist/composables/compList/index.d.ts +1 -0
  4. package/dist/composables/slotList/index.d.ts +2 -0
  5. package/dist/{i18n-en.n11iysmh.js → i18n-en.fwi8tazn.js} +7 -3
  6. package/dist/{i18n-zhHans.hr18mfah.js → i18n-zhHans.ju37v3iz.js} +7 -3
  7. package/dist/index.js +905 -821
  8. package/dist/utils/index.d.ts +1 -1
  9. package/dist/utils/propertyState.d.ts +1 -1
  10. package/dist/utils/provideInject.d.ts +5 -1
  11. package/package.json +4 -4
  12. /package/dist/components/{common/entry.vue.d.ts → entry/index.vue.d.ts} +0 -0
  13. /package/dist/components/{common/menu.vue.d.ts → menu/index.vue.d.ts} +0 -0
  14. /package/dist/components/{common/title.vue.d.ts → title/index.vue.d.ts} +0 -0
  15. /package/dist/components/values/{colorPicker.vue.d.ts → colorPicker/index.vue.d.ts} +0 -0
  16. /package/dist/components/values/{multiTypes.vue.d.ts → multiTypes/index.vue.d.ts} +0 -0
  17. /package/dist/components/values/{numInput.vue.d.ts → numInput/index.vue.d.ts} +0 -0
  18. /package/dist/components/values/{select.vue.d.ts → select/index.vue.d.ts} +0 -0
  19. /package/dist/components/values/{strInput.vue.d.ts → strInput/index.vue.d.ts} +0 -0
  20. /package/dist/components/values/{switch.vue.d.ts → switch/index.vue.d.ts} +0 -0
  21. /package/dist/composables/{ui → uis}/index.d.ts +0 -0
  22. /package/dist/composables/{ui → uis}/uiColorPicker.d.ts +0 -0
  23. /package/dist/composables/{ui → uis}/uiCompSelect.d.ts +0 -0
  24. /package/dist/composables/{ui → uis}/uiDummy.d.ts +0 -0
  25. /package/dist/composables/{ui → uis}/uiJsonEditor.d.ts +0 -0
  26. /package/dist/composables/{ui → uis}/uiMultiTypes.d.ts +0 -0
  27. /package/dist/composables/{ui → uis}/uiNumInput.d.ts +0 -0
  28. /package/dist/composables/{ui → uis}/uiProperty.d.ts +0 -0
  29. /package/dist/composables/{ui → uis}/uiSelect.d.ts +0 -0
  30. /package/dist/composables/{ui → uis}/uiSlotSelect.d.ts +0 -0
  31. /package/dist/composables/{ui → uis}/uiStrInput.d.ts +0 -0
  32. /package/dist/composables/{ui → uis}/uiSwitch.d.ts +0 -0
  33. /package/dist/utils/{base.d.ts → misc.d.ts} +0 -0
package/dist/index.js CHANGED
@@ -1,12 +1,26 @@
1
- import { provide as re, inject as ae, defineComponent as J, ref as O, computed as A, resolveComponent as C, createBlock as T, openBlock as _, unref as D, isRef as ue, withCtx as K, createVNode as b, createElementBlock as q, Fragment as fe, renderList as Le, createTextVNode as ye, toDisplayString as F, resolveDirective as ee, withDirectives as Z, withModifiers as X, normalizeStyle as W, createElementVNode as B, createCommentVNode as G, useModel as z, useId as Ce, onUnmounted as Ue, withKeys as Te, mergeProps as $e, useTemplateRef as Re, watch as ce, mergeModels as Q, watchEffect as qe, h, renderSlot as ht, reactive as _t, onMounted as kt, onBeforeUnmount as xt } from "vue";
1
+ import { provide as ae, inject as ce, defineComponent as R, ref as T, computed as L, resolveComponent as U, createBlock as B, openBlock as V, unref as D, isRef as re, withCtx as K, createVNode as M, createElementBlock as q, Fragment as fe, renderList as Te, createTextVNode as ye, toDisplayString as F, resolveDirective as ee, withDirectives as Z, withModifiers as X, normalizeStyle as W, createElementVNode as O, createCommentVNode as G, mergeModels as Q, useModel as z, useId as Ue, onUnmounted as $e, mergeProps as we, withKeys as Le, useTemplateRef as Je, watch as oe, watchEffect as Ke, h as x, renderSlot as ht, onMounted as He, onBeforeUnmount as Xe, reactive as kt } from "vue";
2
2
  import { useI18n as j } from "vue-i18n";
3
- import { useViewStack as he, useColor as te, eventBus as de, useSystem as ve, injectDark as Vt, injectLocale as St, openNumberDlg as Ee, openPromptDlg as Ct } from "x-essential-lib";
4
- import { c as He, i as Me, r as we, v as Xe, d as Ut } from "./vendor.f0ug048x.js";
5
- import { getPropertyDefault as H, pkgs as Fe, parsePixelStr as $t, parsePercentStr as Mt } from "x-runtime-lib";
6
- import { globalState as wt } from "x-state-lib";
7
- import { useDisplay as ze } from "vuetify";
8
- import { XBlockly as bt } from "x-block-lib";
9
- const Ve = (t, s) => {
3
+ import { useViewStack as he, useColor as te, eventBus as de, useSystem as ve, injectDark as _t, injectLocale as xt, openNumberDlg as Fe, openPromptDlg as Vt, globalObjects as St } from "x-essential-lib";
4
+ import { getPropertyDefault as J, pkgs as Ne, parsePixelStr as Ct, parsePercentStr as Ut, getPropertyTag as $t, elements as wt } from "x-runtime-lib";
5
+ import { c as ze, i as Me, r as ke, v as Ge, d as Ye } from "./vendor.f0ug048x.js";
6
+ import { useDisplay as We } from "vuetify";
7
+ import { XBlockly as Mt } from "x-block-lib";
8
+ import { globalState as Qe } from "x-state-lib";
9
+ const Re = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, bt = (t, s) => {
10
+ const n = (e, l) => {
11
+ if (e.ui !== l.ui || e.array !== l.array)
12
+ return !1;
13
+ if (e.ui || l.ui)
14
+ return !0;
15
+ if (e.children.length !== l.children.length)
16
+ return !1;
17
+ for (let o = 0; o < e.children.length; o++)
18
+ if (!n(e.children[o], l.children[o]))
19
+ return !1;
20
+ return !0;
21
+ };
22
+ return n(t, s);
23
+ }, Se = (t, s) => {
10
24
  let n = {
11
25
  key: "",
12
26
  name: "",
@@ -41,20 +55,20 @@ const Ve = (t, s) => {
41
55
  if (l !== void 0)
42
56
  if (o) {
43
57
  if (n[s.key] === void 0) {
44
- const i = H(s);
58
+ const i = J(s);
45
59
  i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
46
60
  }
47
61
  return n[s.key];
48
62
  } else {
49
63
  if (n[l] === void 0) {
50
- const i = H(s, !0);
64
+ const i = J(s, !0);
51
65
  i !== void 0 && (n[l] = i, e(t, n[l]));
52
66
  }
53
67
  return n[l];
54
68
  }
55
69
  else {
56
70
  if (n[s.key] === void 0) {
57
- const i = H(s);
71
+ const i = J(s);
58
72
  i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
59
73
  }
60
74
  return n[s.key];
@@ -66,24 +80,10 @@ const Ve = (t, s) => {
66
80
  let u = e;
67
81
  (s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (u = void 0)), u !== n[s.key] && (n[s.key] = u, l(t, n[s.key]));
68
82
  }
69
- }, Ke = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t, s) => {
70
- const n = (e, l) => {
71
- if (e.ui !== l.ui || e.array !== l.array)
72
- return !1;
73
- if (e.ui || l.ui)
74
- return !0;
75
- if (e.children.length !== l.children.length)
76
- return !1;
77
- for (let o = 0; o < e.children.length; o++)
78
- if (!n(e.children[o], l.children[o]))
79
- return !1;
80
- return !0;
81
- };
82
- return n(t, s);
83
- }, Ne = (t) => !(t instanceof Array), be = (t) => t instanceof Array, Dt = [
83
+ }, Be = (t) => !(t instanceof Array), be = (t) => t instanceof Array, Pt = [
84
84
  ["basic", "id"],
85
85
  ["basic", "name"]
86
- ], At = (t) => Dt.find((s) => Me(t, s)), Pe = (t, s, n, e, l, o, i) => (t = He(t), o !== void 0 ? (t.push(o), i && t.push(s.key)) : t.push(s.key), At(t) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && be(e.children) ? Nt(
86
+ ], Dt = (t) => Pt.find((s) => Me(t, s)), Pe = (t, s, n, e, l, o, i) => (t = ze(t), o !== void 0 ? (t.push(o), i && t.push(s.key)) : t.push(s.key), Dt(t) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && be(e.children) ? Lt(
87
87
  t,
88
88
  s,
89
89
  n,
@@ -91,13 +91,13 @@ const Ve = (t, s) => {
91
91
  l,
92
92
  o,
93
93
  i
94
- ) : Ot(
94
+ ) : Nt(
95
95
  s,
96
96
  n,
97
97
  e,
98
98
  o,
99
99
  i
100
- ) : s.array ? Lt(
100
+ ) : s.array ? At(
101
101
  t,
102
102
  s,
103
103
  n,
@@ -113,7 +113,7 @@ const Ve = (t, s) => {
113
113
  l,
114
114
  o,
115
115
  i
116
- )), Lt = (t, s, n, e, l, o, i) => {
116
+ )), At = (t, s, n, e, l, o, i) => {
117
117
  if (s.ui)
118
118
  return console.assert(!1, "execPropertyBranchArray property ui must be invalid"), !1;
119
119
  if (!s.array)
@@ -127,33 +127,33 @@ const Ve = (t, s) => {
127
127
  "execPropertyBranchArray state children must be array"
128
128
  ), !1;
129
129
  let u;
130
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = H(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = H(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
130
+ o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = J(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = J(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
131
131
  for (let r = 0; r < u.length; r++) {
132
132
  e.children.push({
133
133
  change: !1,
134
134
  children: {}
135
135
  });
136
136
  const a = e.children[r];
137
- s.children.forEach((m) => {
138
- if (!a.children || !Ne(a.children)) {
137
+ s.children.forEach((d) => {
138
+ if (!a.children || !Be(a.children)) {
139
139
  console.assert(!1);
140
140
  return;
141
141
  }
142
- a.children[m.key] = {
142
+ a.children[d.key] = {
143
143
  change: !1,
144
- children: m.array ? [] : {}
144
+ children: d.array ? [] : {}
145
145
  }, Pe(
146
146
  t,
147
- m,
147
+ d,
148
148
  u[r],
149
- a.children[m.key],
149
+ a.children[d.key],
150
150
  l,
151
151
  r,
152
152
  !0
153
153
  ) && (a.change = !0), a.change && (e.change = !0);
154
154
  });
155
155
  }
156
- return e.change || (e.change = !Me(u, H(s))), e.change;
156
+ return e.change || (e.change = !Me(u, J(s))), e.change;
157
157
  }, Tt = (t, s, n, e, l, o, i) => {
158
158
  if (s.ui)
159
159
  return console.assert(
@@ -165,7 +165,7 @@ const Ve = (t, s) => {
165
165
  !1,
166
166
  "execPropertyBranchScalar property array must be invalid"
167
167
  ), !1;
168
- if (!e.children || !Ne(e.children))
168
+ if (!e.children || !Be(e.children))
169
169
  return console.assert(!1, "execPropertyBranchScalar state children must be map"), !1;
170
170
  let u;
171
171
  o !== void 0 && !i ? (n[o] || (n[o] = {}), u = n[o]) : (n[s.key] || (n[s.key] = {}), u = n[s.key]), e.change = !1;
@@ -177,7 +177,7 @@ const Ve = (t, s) => {
177
177
  }, Pe(t, a, u, e.children[a.key], l) && (e.change = !0);
178
178
  }
179
179
  return e.change;
180
- }, Nt = (t, s, n, e, l, o, i) => {
180
+ }, Lt = (t, s, n, e, l, o, i) => {
181
181
  if (!s.ui)
182
182
  return console.assert(!1, "execPropertyLeafArray property ui must be valid"), !1;
183
183
  if (!s.array)
@@ -185,7 +185,7 @@ const Ve = (t, s) => {
185
185
  if (!e.children || !be(e.children))
186
186
  return console.assert(!1, "execPropertyLeafArray state children must be array"), !1;
187
187
  let u;
188
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = H(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = H(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
188
+ o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = J(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = J(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
189
189
  for (let r = 0; r < u.length; r++)
190
190
  e.children[r] = {
191
191
  change: !1,
@@ -199,13 +199,13 @@ const Ve = (t, s) => {
199
199
  r,
200
200
  !1
201
201
  ) && (e.change = !0);
202
- return e.change || (e.change = !Me(u, H(s))), e.change;
203
- }, Ot = (t, s, n, e, l) => {
202
+ return e.change || (e.change = !Me(u, J(s))), e.change;
203
+ }, Nt = (t, s, n, e, l) => {
204
204
  if (!t.ui)
205
205
  return console.assert(!1, "execPropertyLeafScalar property ui must be valid"), !1;
206
206
  let o;
207
- return e !== void 0 && !l ? o = s[e] : o = s[t.key], n.change = !Me(o, H(t, !0)), n.change;
208
- }, Je = (t, s, n, e) => {
207
+ return e !== void 0 && !l ? o = s[e] : o = s[t.key], n.change = !Me(o, J(t, !0)), n.change;
208
+ }, Ee = (t, s, n, e) => {
209
209
  if (s.length <= 0 || !n) {
210
210
  t.value = {};
211
211
  return;
@@ -227,64 +227,64 @@ const Ve = (t, s) => {
227
227
  return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
228
228
  if (!n.children)
229
229
  return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
230
- typeof e == "string" ? Ne(n.children) && (n = n.children[e]) : be(n.children) && (n = n.children[e]);
230
+ typeof e == "string" ? Be(n.children) && (n = n.children[e]) : be(n.children) && (n = n.children[e]);
231
231
  }), n?.change ?? !1;
232
- }, Ge = Symbol(), Ye = Symbol(), We = Symbol(), Qe = Symbol(), Ze = Symbol(), je = Symbol(), Ie = Symbol();
232
+ }, Ze = Symbol(), je = Symbol(), Ie = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), lt = Symbol();
233
233
  function Bt(t) {
234
- re(Ge, t);
234
+ ae(Ze, t);
235
235
  }
236
236
  function Oe() {
237
- return ae(Ge);
237
+ return ce(Ze);
238
238
  }
239
- function qt(t) {
240
- re(Ye, t);
239
+ function Ot(t) {
240
+ ae(je, t);
241
241
  }
242
- function Kt() {
243
- return ae(Ye);
242
+ function qt() {
243
+ return ce(je);
244
244
  }
245
- function Jt(t) {
246
- re(We, t);
245
+ function Kt(t) {
246
+ ae(Ie, t);
247
247
  }
248
248
  function Rt() {
249
- return ae(We);
249
+ return ce(Ie);
250
250
  }
251
251
  function Et(t) {
252
- re(Qe, t);
252
+ ae(et, t);
253
253
  }
254
- function Ht() {
255
- return ae(Qe);
254
+ function Jt() {
255
+ return ce(et);
256
256
  }
257
- function Xt(t) {
258
- re(Ze, t);
257
+ function Ht(t) {
258
+ ae(tt, t);
259
259
  }
260
- function Ft() {
261
- return ae(Ze);
260
+ function Xt() {
261
+ return ce(tt);
262
262
  }
263
- function zt(t) {
264
- re(je, t);
263
+ function Ft(t) {
264
+ ae(nt, t);
265
265
  }
266
- function et() {
267
- return ae(je);
266
+ function ot() {
267
+ return ce(nt);
268
268
  }
269
- function Gt(t) {
270
- re(Ie, t);
269
+ function zt(t) {
270
+ ae(lt, t);
271
271
  }
272
- function tt() {
273
- return ae(Ie);
272
+ function st() {
273
+ return ce(lt);
274
274
  }
275
- const Yt = /* @__PURE__ */ J({
276
- __name: "menu",
275
+ const Gt = /* @__PURE__ */ R({
276
+ __name: "index",
277
277
  setup(t) {
278
- const { t: s } = j(), n = Kt(), e = Rt(), l = Ht(), o = Ft(), i = O(0), u = O(0), r = O([]), a = A(() => [i.value, u.value]), m = (M) => {
279
- const R = () => !(r.value.length <= 0 || !me(l.value, r.value)), k = () => {
280
- const x = Ve(n.value, r.value);
281
- if (x)
282
- if (x.ui) {
278
+ const { t: s } = j(), n = qt(), e = Rt(), l = Jt(), o = Xt(), i = T(0), u = T(0), r = T([]), a = L(() => [i.value, u.value]), d = (C) => {
279
+ const b = () => !(r.value.length <= 0 || !me(l.value, r.value)), k = () => {
280
+ const S = Se(n.value, r.value);
281
+ if (S)
282
+ if (S.ui) {
283
283
  const P = ge(e.value, r.value.slice(0, -1));
284
284
  if (!P)
285
285
  return;
286
- P[r.value[r.value.length - 1]] = H(x), o(r.value, P[r.value[r.value.length - 1]]);
287
- } else if (x.array) {
286
+ P[r.value[r.value.length - 1]] = J(S), o(r.value, P[r.value[r.value.length - 1]]);
287
+ } else if (S.array) {
288
288
  const P = r.value[r.value.length - 1];
289
289
  if (P === void 0) {
290
290
  console.assert(!1, "invalid last key");
@@ -294,90 +294,90 @@ const Yt = /* @__PURE__ */ J({
294
294
  const E = ge(e.value, r.value.slice(0, -1));
295
295
  if (!E)
296
296
  return;
297
- E[r.value[r.value.length - 1]] = H(x), o(r.value, E[r.value[r.value.length - 1]]);
297
+ E[r.value[r.value.length - 1]] = J(S), o(r.value, E[r.value[r.value.length - 1]]);
298
298
  } else {
299
299
  const E = ge(e.value, r.value);
300
300
  if (!E)
301
301
  return;
302
- x.children.forEach((I) => {
303
- E[I.key] = H(x), o([...r.value, I.key], E[I.key]);
302
+ S.children.forEach((I) => {
303
+ E[I.key] = J(S), o([...r.value, I.key], E[I.key]);
304
304
  });
305
305
  }
306
306
  } else {
307
307
  const P = ge(e.value, r.value);
308
308
  if (!P)
309
309
  return;
310
- x.children.forEach((E) => {
311
- P[E.key] = H(x), o([...r.value, E.key], P[E.key]);
310
+ S.children.forEach((E) => {
311
+ P[E.key] = J(S), o([...r.value, E.key], P[E.key]);
312
312
  });
313
313
  }
314
314
  };
315
- R() && M.push({
315
+ b() && C.push({
316
316
  title: s("x-prop-tree.reset"),
317
317
  func: k
318
318
  });
319
- }, c = (M) => {
320
- const R = () => {
321
- const k = Ve(n.value, r.value), x = ge(e.value, r.value);
322
- localStorage.setItem("propTreeCopy", JSON.stringify({ property: k, object: x }));
319
+ }, c = (C) => {
320
+ const b = () => {
321
+ const k = Se(n.value, r.value), S = ge(e.value, r.value);
322
+ localStorage.setItem("propTreeCopy", JSON.stringify({ property: k, object: S }));
323
323
  };
324
- M.push({
324
+ C.push({
325
325
  title: s("x-prop-tree.copy"),
326
- func: R
326
+ func: b
327
327
  });
328
- }, v = (M) => {
329
- const R = () => {
330
- const x = localStorage.getItem("propTreeCopy");
331
- if (!x)
328
+ }, f = (C) => {
329
+ const b = () => {
330
+ const S = localStorage.getItem("propTreeCopy");
331
+ if (!S)
332
332
  return !1;
333
333
  try {
334
- const { property: P } = JSON.parse(x), E = Ve(n.value, r.value);
335
- return Pt(P, E);
334
+ const { property: P } = JSON.parse(S), E = Se(n.value, r.value);
335
+ return bt(P, E);
336
336
  } catch (P) {
337
337
  console.error(P);
338
338
  }
339
339
  return !1;
340
340
  }, k = () => {
341
- if (!R())
341
+ if (!b())
342
342
  return;
343
- const x = localStorage.getItem("propTreeCopy");
344
- if (x)
343
+ const S = localStorage.getItem("propTreeCopy");
344
+ if (S)
345
345
  try {
346
- const { object: P } = JSON.parse(x), E = Ve(n.value, r.value);
346
+ const { object: P } = JSON.parse(S), E = Se(n.value, r.value);
347
347
  console.log(P, E);
348
348
  } catch (P) {
349
349
  console.error(P);
350
350
  }
351
351
  };
352
- R() && M.push({
352
+ b() && C.push({
353
353
  title: s("x-prop-tree.paste"),
354
354
  func: k
355
355
  });
356
- }, f = A(() => {
357
- const M = [];
358
- return m(M), c(M), v(M), M;
359
- }), V = (M) => {
360
- i.value = M.x, u.value = M.y, r.value = M.keys;
361
- }, { open: U } = he("propTreeMenu", V);
362
- return (M, R) => {
363
- const k = C("v-list-item-title"), x = C("v-list-item"), P = C("v-list"), E = C("v-menu");
364
- return _(), T(E, {
365
- modelValue: D(U),
366
- "onUpdate:modelValue": R[0] || (R[0] = (I) => ue(U) ? U.value = I : null),
356
+ }, v = L(() => {
357
+ const C = [];
358
+ return d(C), c(C), f(C), C;
359
+ }), h = (C) => {
360
+ i.value = C.x, u.value = C.y, r.value = C.keys;
361
+ }, { open: _ } = he("propTreeMenu", h);
362
+ return (C, b) => {
363
+ const k = U("v-list-item-title"), S = U("v-list-item"), P = U("v-list"), E = U("v-menu");
364
+ return V(), B(E, {
365
+ modelValue: D(_),
366
+ "onUpdate:modelValue": b[0] || (b[0] = (I) => re(_) ? _.value = I : null),
367
367
  "location-strategy": "connected",
368
368
  scrim: "transparent",
369
369
  target: a.value
370
370
  }, {
371
371
  default: K(() => [
372
- b(P, null, {
372
+ M(P, null, {
373
373
  default: K(() => [
374
- (_(!0), q(fe, null, Le(f.value, (I, De) => (_(), T(x, {
374
+ (V(!0), q(fe, null, Te(v.value, (I, De) => (V(), B(S, {
375
375
  key: De,
376
376
  link: "",
377
377
  onClick: I.func
378
378
  }, {
379
379
  default: K(() => [
380
- b(k, null, {
380
+ M(k, null, {
381
381
  default: K(() => [
382
382
  ye(F(I.title), 1)
383
383
  ]),
@@ -394,8 +394,8 @@ const Yt = /* @__PURE__ */ J({
394
394
  }, 8, ["modelValue", "target"]);
395
395
  };
396
396
  }
397
- }), Wt = { style: { pointerEvents: "none" } }, Se = /* @__PURE__ */ J({
398
- __name: "title",
397
+ }), Yt = { style: { pointerEvents: "none" } }, Ce = /* @__PURE__ */ R({
398
+ __name: "index",
399
399
  props: {
400
400
  title: {},
401
401
  collapse: { type: Boolean },
@@ -405,7 +405,7 @@ const Yt = /* @__PURE__ */ J({
405
405
  },
406
406
  emits: ["collapse", "menu", "create", "delete"],
407
407
  setup(t, { emit: s }) {
408
- const { backgroundColor2: n, highlightColor: e } = te(), l = s, o = O(!1), i = A(() => ({
408
+ const { backgroundColor2: n, highlightColor: e } = te(), l = s, o = T(!1), i = L(() => ({
409
409
  background: o.value ? e.value : n.value,
410
410
  height: "36px",
411
411
  marginBottom: "1px",
@@ -415,44 +415,112 @@ const Yt = /* @__PURE__ */ J({
415
415
  }, r = (a) => {
416
416
  l("menu", a.clientX, a.clientY);
417
417
  };
418
- return (a, m) => {
419
- const c = C("v-icon"), v = C("v-spacer"), f = C("v-btn"), V = ee("ripple");
420
- return Z((_(), q("div", {
418
+ return (a, d) => {
419
+ const c = U("v-icon"), f = U("v-spacer"), v = U("v-btn"), h = ee("ripple");
420
+ return Z((V(), q("div", {
421
421
  class: "d-flex align-center cursor-pointer",
422
422
  style: W(i.value),
423
423
  onClick: u,
424
424
  onContextmenu: X(r, ["self", "prevent"]),
425
- onMouseout: m[2] || (m[2] = (U) => o.value = !1),
426
- onMouseover: m[3] || (m[3] = (U) => o.value = !0)
425
+ onMouseout: d[2] || (d[2] = (_) => o.value = !1),
426
+ onMouseover: d[3] || (d[3] = (_) => o.value = !0)
427
427
  }, [
428
- b(c, {
428
+ M(c, {
429
429
  class: "mr-1",
430
430
  icon: t.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
431
431
  }, null, 8, ["icon"]),
432
- B("span", Wt, F(t.title), 1),
433
- b(v),
434
- t.hasCreate ? (_(), T(f, {
432
+ O("span", Yt, F(t.title), 1),
433
+ M(f),
434
+ t.hasCreate ? (V(), B(v, {
435
435
  key: 0,
436
436
  class: "mx-3",
437
437
  density: "compact",
438
438
  icon: "mdi-plus",
439
439
  variant: "text",
440
- onClick: m[0] || (m[0] = X((U) => l("create"), ["stop"]))
440
+ onClick: d[0] || (d[0] = X((_) => l("create"), ["stop"]))
441
441
  })) : G("", !0),
442
- t.hasDelete ? (_(), T(f, {
442
+ t.hasDelete ? (V(), B(v, {
443
443
  key: 1,
444
444
  class: "mx-3",
445
445
  density: "compact",
446
446
  icon: "mdi-minus",
447
447
  variant: "text",
448
- onClick: m[1] || (m[1] = X((U) => l("delete", t.index), ["stop"]))
448
+ onClick: d[1] || (d[1] = X((_) => l("delete", t.index), ["stop"]))
449
449
  })) : G("", !0)
450
450
  ], 36)), [
451
- [V]
451
+ [h]
452
452
  ]);
453
453
  };
454
454
  }
455
- }), Qt = { class: "text-subtitle-2 ml-1" }, Zt = { class: "text-caption text-grey ml-1" }, jt = /* @__PURE__ */ J({
455
+ }), Wt = { class: "d-flex justify-space-between align-center" }, Qt = /* @__PURE__ */ R({
456
+ __name: "index",
457
+ props: /* @__PURE__ */ Q({
458
+ hasDelete: { type: Boolean, default: !1 },
459
+ readonly: { type: Boolean, default: !1 }
460
+ }, {
461
+ modelValue: {},
462
+ modelModifiers: {}
463
+ }),
464
+ emits: /* @__PURE__ */ Q(["delete"], ["update:modelValue"]),
465
+ setup(t, { emit: s }) {
466
+ const { t: n } = j(), e = z(t, "modelValue"), l = s, o = L(() => {
467
+ let r = "100%";
468
+ return t.hasDelete && (r = "calc(100% - 37px)"), {
469
+ width: r
470
+ };
471
+ }), i = L(() => t.readonly), { open: u } = he(`propTreeColorPickerMenu${Ue()}`);
472
+ return $e(() => {
473
+ u.value = !1;
474
+ }), (r, a) => {
475
+ const d = U("v-btn"), c = U("v-color-picker"), f = U("v-menu");
476
+ return V(), B(f, {
477
+ modelValue: D(u),
478
+ "onUpdate:modelValue": a[2] || (a[2] = (v) => re(u) ? u.value = v : null),
479
+ "close-on-content-click": !1,
480
+ scrim: "transparent"
481
+ }, {
482
+ activator: K(({ props: v }) => [
483
+ O("div", Wt, [
484
+ O("div", {
485
+ class: "flex-grow-1",
486
+ style: W(o.value)
487
+ }, [
488
+ M(d, we(v, {
489
+ block: "",
490
+ color: e.value,
491
+ density: "comfortable",
492
+ disabled: i.value
493
+ }), {
494
+ default: K(() => [
495
+ ye(F(e.value ? e.value : D(n)("x-runtime-lib.notSet")), 1)
496
+ ]),
497
+ _: 1
498
+ }, 16, ["color", "disabled"])
499
+ ], 4),
500
+ t.hasDelete ? (V(), B(d, {
501
+ key: 0,
502
+ class: "mx-2",
503
+ density: "compact",
504
+ icon: "mdi-minus",
505
+ variant: "text",
506
+ onClick: a[0] || (a[0] = X((h) => l("delete"), ["stop"]))
507
+ })) : G("", !0)
508
+ ])
509
+ ]),
510
+ default: K(() => [
511
+ M(c, {
512
+ modelValue: e.value,
513
+ "onUpdate:modelValue": a[1] || (a[1] = (v) => e.value = v),
514
+ mode: "hexa",
515
+ "show-swatches": "",
516
+ "swatches-max-height": "150px"
517
+ }, null, 8, ["modelValue"])
518
+ ]),
519
+ _: 1
520
+ }, 8, ["modelValue"]);
521
+ };
522
+ }
523
+ }), Zt = { class: "text-subtitle-2 ml-1" }, jt = { class: "text-caption text-grey ml-1" }, It = /* @__PURE__ */ R({
456
524
  __name: "group",
457
525
  props: {
458
526
  id: {},
@@ -462,33 +530,33 @@ const Yt = /* @__PURE__ */ J({
462
530
  },
463
531
  emits: ["x-click"],
464
532
  setup(t, { emit: s }) {
465
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = O(!1), u = A(() => ({
533
+ const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
466
534
  background: i.value ? e.value : n.value,
467
535
  height: "30px",
468
536
  marginBottom: "1px",
469
537
  userSelect: "none"
470
538
  }));
471
539
  return (r, a) => {
472
- const m = C("v-icon"), c = ee("ripple");
473
- return Z((_(), q("div", {
540
+ const d = U("v-icon"), c = ee("ripple");
541
+ return Z((V(), q("div", {
474
542
  class: "d-flex align-center cursor-pointer",
475
543
  style: W(u.value),
476
- onClick: a[0] || (a[0] = (v) => o("x-click", l.id)),
477
- onMouseout: a[1] || (a[1] = (v) => i.value = !1),
478
- onMouseover: a[2] || (a[2] = (v) => i.value = !0)
544
+ onClick: a[0] || (a[0] = (f) => o("x-click", l.id)),
545
+ onMouseout: a[1] || (a[1] = (f) => i.value = !1),
546
+ onMouseover: a[2] || (a[2] = (f) => i.value = !0)
479
547
  }, [
480
- b(m, {
548
+ M(d, {
481
549
  icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
482
550
  size: "small"
483
551
  }, null, 8, ["icon"]),
484
- B("span", Qt, F(l.title), 1),
485
- B("span", Zt, F(l.count), 1)
552
+ O("span", Zt, F(l.title), 1),
553
+ O("span", jt, F(l.count), 1)
486
554
  ], 36)), [
487
555
  [c]
488
556
  ]);
489
557
  };
490
558
  }
491
- }), It = { class: "text-subtitle-1 ml-6" }, en = /* @__PURE__ */ J({
559
+ }), en = { class: "text-subtitle-1 ml-6" }, tn = /* @__PURE__ */ R({
492
560
  __name: "item",
493
561
  props: {
494
562
  id: {},
@@ -496,31 +564,31 @@ const Yt = /* @__PURE__ */ J({
496
564
  },
497
565
  emits: ["x-click"],
498
566
  setup(t, { emit: s }) {
499
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = O(!1), u = A(() => ({
567
+ const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
500
568
  background: i.value ? e.value : n.value,
501
569
  height: "48px",
502
570
  marginBottom: "1px",
503
571
  userSelect: "none"
504
572
  }));
505
573
  return (r, a) => {
506
- const m = ee("ripple");
507
- return Z((_(), q("div", {
574
+ const d = ee("ripple");
575
+ return Z((V(), q("div", {
508
576
  class: "d-flex align-center cursor-pointer",
509
577
  style: W(u.value),
510
578
  onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
511
579
  onMouseout: a[1] || (a[1] = (c) => i.value = !1),
512
580
  onMouseover: a[2] || (a[2] = (c) => i.value = !0)
513
581
  }, [
514
- B("span", It, F(l.title), 1)
582
+ O("span", en, F(l.title), 1)
515
583
  ], 36)), [
516
- [m]
584
+ [d]
517
585
  ]);
518
586
  };
519
587
  }
520
- }), tn = { key: 0 }, nn = {
588
+ }), nn = { key: 0 }, ln = {
521
589
  key: 1,
522
590
  class: "text-body-2 text-grey ml-3"
523
- }, ln = /* @__PURE__ */ J({
591
+ }, on = /* @__PURE__ */ R({
524
592
  __name: "index",
525
593
  props: {
526
594
  modelValue: {},
@@ -530,17 +598,17 @@ const Yt = /* @__PURE__ */ J({
530
598
  },
531
599
  emits: ["update:modelValue", "update:open"],
532
600
  setup(t) {
533
- const { t: s } = j(), n = z(t, "modelValue"), e = z(t, "open"), l = et(), o = (u) => {
534
- const r = we(l, u);
535
- r && Xe(l, u, !r.collapse);
601
+ const { t: s } = j(), n = z(t, "modelValue"), e = z(t, "open"), l = ot(), o = (u) => {
602
+ const r = ke(l, u);
603
+ r && Ge(l, u, !r.collapse);
536
604
  }, i = (u) => {
537
605
  n.value = u, e.value = !1, de.emit("refreshDepends");
538
606
  };
539
- return (u, r) => D(l).length > 0 ? (_(), q("div", tn, [
540
- (_(!0), q(fe, null, Le(D(l), (a) => (_(), q(fe, {
607
+ return (u, r) => D(l).length > 0 ? (V(), q("div", nn, [
608
+ (V(!0), q(fe, null, Te(D(l), (a) => (V(), q(fe, {
541
609
  key: a.id
542
610
  }, [
543
- a.type === 0 ? (_(), T(jt, {
611
+ a.type === 0 ? (V(), B(It, {
544
612
  key: 0,
545
613
  id: a.id,
546
614
  collapse: a.collapse,
@@ -548,16 +616,16 @@ const Yt = /* @__PURE__ */ J({
548
616
  title: a.name,
549
617
  onXClick: o
550
618
  }, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
551
- a.type === 1 && a.show ? (_(), T(en, {
619
+ a.type === 1 && a.show ? (V(), B(tn, {
552
620
  key: 1,
553
621
  id: a.id,
554
622
  title: a.name,
555
623
  onXClick: i
556
624
  }, null, 8, ["id", "title"])) : G("", !0)
557
625
  ], 64))), 128))
558
- ])) : (_(), q("div", nn, F(D(s)("x-prop-tree.noComp")), 1));
626
+ ])) : (V(), q("div", ln, F(D(s)("x-prop-tree.noComp")), 1));
559
627
  }
560
- }), on = { class: "text-subtitle-1 ml-3" }, sn = /* @__PURE__ */ J({
628
+ }), sn = { class: "text-subtitle-1 ml-3" }, un = /* @__PURE__ */ R({
561
629
  __name: "index",
562
630
  props: {
563
631
  modelValue: {},
@@ -565,91 +633,91 @@ const Yt = /* @__PURE__ */ J({
565
633
  },
566
634
  emits: ["update:modelValue"],
567
635
  setup(t) {
568
- const { t: s } = j(), n = ze(), { sysBarAvail: e } = ve(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = et(), u = A(() => {
569
- let v = "100%";
570
- return n.mdAndUp.value && (v = "400px"), {
636
+ const { t: s } = j(), n = We(), { sysBarAvail: e } = ve(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = ot(), u = L(() => {
637
+ let f = "100%";
638
+ return n.mdAndUp.value && (f = "400px"), {
571
639
  background: l.value,
572
- width: v,
640
+ width: f,
573
641
  height: "100%"
574
642
  };
575
- }), r = A(() => {
576
- let v = 48;
577
- return e.value && (v += 24), {
643
+ }), r = L(() => {
644
+ let f = 48;
645
+ return e.value && (f += 24), {
578
646
  position: "relative",
579
- height: `calc(100% - ${v}px)`
647
+ height: `calc(100% - ${f}px)`
580
648
  };
581
- }), a = A(() => ({
649
+ }), a = L(() => ({
582
650
  height: "60px"
583
- })), m = A(() => {
651
+ })), d = L(() => {
584
652
  if (!o.value)
585
653
  return s("x-runtime-lib.notSet");
586
- const v = we(i, o.value);
587
- return v ? v.name : s("x-runtime-lib.compNotAvail");
588
- }), { open: c } = he(`propTreeCompSelectDlg${Ce()}`);
589
- return Ue(() => {
654
+ const f = ke(i, o.value);
655
+ return f ? f.name : s("x-runtime-lib.compNotAvail");
656
+ }), { open: c } = he(`propTreeCompSelectDlg${Ue()}`);
657
+ return $e(() => {
590
658
  c.value = !1;
591
- }), (v, f) => {
592
- const V = C("v-btn"), U = C("v-sheet"), M = C("v-icon"), R = C("v-dialog");
593
- return _(), T(R, {
659
+ }), (f, v) => {
660
+ const h = U("v-btn"), _ = U("v-sheet"), C = U("v-icon"), b = U("v-dialog");
661
+ return V(), B(b, {
594
662
  modelValue: D(c),
595
- "onUpdate:modelValue": f[5] || (f[5] = (k) => ue(c) ? c.value = k : null),
663
+ "onUpdate:modelValue": v[5] || (v[5] = (k) => re(c) ? c.value = k : null),
596
664
  fullscreen: "",
597
665
  "no-click-animation": "",
598
666
  persistent: "",
599
667
  transition: "scroll-x-reverse-transition",
600
- onKeydown: f[6] || (f[6] = Te(X((k) => c.value = !1, ["stop", "prevent"]), ["esc"]))
668
+ onKeydown: v[6] || (v[6] = Le(X((k) => c.value = !1, ["stop", "prevent"]), ["esc"]))
601
669
  }, {
602
670
  activator: K(({ props: k }) => [
603
- b(V, $e(k, {
671
+ M(h, we(k, {
604
672
  block: "",
605
673
  density: "comfortable"
606
674
  }), {
607
675
  default: K(() => [
608
- ye(F(m.value), 1)
676
+ ye(F(d.value), 1)
609
677
  ]),
610
678
  _: 1
611
679
  }, 16)
612
680
  ]),
613
681
  default: K(() => [
614
- B("div", {
682
+ O("div", {
615
683
  class: "w-100 h-100 d-flex flex-row-reverse",
616
- onClick: f[3] || (f[3] = X((k) => c.value = !1, ["self"])),
617
- onContextmenu: f[4] || (f[4] = X((k) => c.value = !1, ["self", "prevent"]))
684
+ onClick: v[3] || (v[3] = X((k) => c.value = !1, ["self"])),
685
+ onContextmenu: v[4] || (v[4] = X((k) => c.value = !1, ["self", "prevent"]))
618
686
  }, [
619
- B("div", {
687
+ O("div", {
620
688
  class: "elevation-2",
621
689
  style: W(u.value)
622
690
  }, [
623
- D(e) ? (_(), T(U, {
691
+ D(e) ? (V(), B(_, {
624
692
  key: 0,
625
693
  color: "transparent",
626
694
  height: 24
627
695
  })) : G("", !0),
628
- b(U, {
696
+ M(_, {
629
697
  class: "d-flex align-center px-3",
630
698
  color: "transparent",
631
699
  height: 48
632
700
  }, {
633
701
  default: K(() => [
634
- b(M, {
702
+ M(C, {
635
703
  icon: "mdi-close",
636
- onClick: f[0] || (f[0] = (k) => c.value = !1)
704
+ onClick: v[0] || (v[0] = (k) => c.value = !1)
637
705
  }),
638
- B("span", on, F(D(s)("x-prop-tree.dlg.compSelect.title")), 1)
706
+ O("span", sn, F(D(s)("x-prop-tree.dlg.compSelect.title")), 1)
639
707
  ]),
640
708
  _: 1
641
709
  }),
642
- B("div", {
710
+ O("div", {
643
711
  class: "overflow-y-auto",
644
712
  style: W(r.value)
645
713
  }, [
646
- b(ln, {
714
+ M(on, {
647
715
  modelValue: o.value,
648
- "onUpdate:modelValue": f[1] || (f[1] = (k) => o.value = k),
716
+ "onUpdate:modelValue": v[1] || (v[1] = (k) => o.value = k),
649
717
  open: D(c),
650
- "onUpdate:open": f[2] || (f[2] = (k) => ue(c) ? c.value = k : null)
718
+ "onUpdate:open": v[2] || (v[2] = (k) => re(c) ? c.value = k : null)
651
719
  }, null, 8, ["modelValue", "open"]),
652
- B("div", {
720
+ O("div", {
653
721
  style: W(a.value)
654
722
  }, null, 4)
655
723
  ], 4)
@@ -660,7 +728,7 @@ const Yt = /* @__PURE__ */ J({
660
728
  }, 8, ["modelValue"]);
661
729
  };
662
730
  }
663
- }), un = /* @__PURE__ */ J({
731
+ }), rn = /* @__PURE__ */ R({
664
732
  __name: "editor",
665
733
  props: {
666
734
  modelValue: { required: !0 },
@@ -672,20 +740,20 @@ const Yt = /* @__PURE__ */ J({
672
740
  },
673
741
  emits: ["update:modelValue", "update:lock", "update:scale"],
674
742
  setup(t, { expose: s }) {
675
- const n = z(t, "modelValue"), e = z(t, "lock"), l = z(t, "scale"), o = Vt(), i = St(), u = Oe(), r = Re("target"), a = () => {
743
+ const n = z(t, "modelValue"), e = z(t, "lock"), l = z(t, "scale"), o = _t(), i = xt(), u = Oe(), r = Je("target"), a = () => {
676
744
  const c = JSON.parse(n.value);
677
745
  r.value?.load(c);
678
746
  };
679
747
  return s({ save: () => {
680
748
  const c = r.value.save();
681
749
  n.value = JSON.stringify(c, null, 2);
682
- } }), (c, v) => (_(), T(D(bt), {
750
+ } }), (c, f) => (V(), B(D(Mt), {
683
751
  ref_key: "target",
684
752
  ref: r,
685
753
  lock: e.value,
686
- "onUpdate:lock": v[0] || (v[0] = (f) => e.value = f),
754
+ "onUpdate:lock": f[0] || (f[0] = (v) => e.value = v),
687
755
  scale: l.value,
688
- "onUpdate:scale": v[1] || (v[1] = (f) => l.value = f),
756
+ "onUpdate:scale": f[1] || (f[1] = (v) => l.value = v),
689
757
  dark: D(o),
690
758
  locale: D(i),
691
759
  type: "json",
@@ -693,7 +761,7 @@ const Yt = /* @__PURE__ */ J({
693
761
  onReady: a
694
762
  }, null, 8, ["lock", "scale", "dark", "locale", "version"]));
695
763
  }
696
- }), rn = { class: "text-subtitle-1" }, an = /* @__PURE__ */ J({
764
+ }), an = { class: "text-subtitle-1" }, cn = /* @__PURE__ */ R({
697
765
  __name: "index",
698
766
  props: {
699
767
  modelValue: { required: !0 },
@@ -701,84 +769,84 @@ const Yt = /* @__PURE__ */ J({
701
769
  },
702
770
  emits: ["update:modelValue"],
703
771
  setup(t) {
704
- const { t: s } = j(), { sysBarAvail: n } = ve(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = te(), i = z(t, "modelValue"), u = O(!1), r = O(1), a = A(() => {
705
- let f = 48;
706
- return n.value && (f += 24), {
772
+ const { t: s } = j(), { sysBarAvail: n } = ve(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = te(), i = z(t, "modelValue"), u = T(!1), r = T(1), a = L(() => {
773
+ let v = 48;
774
+ return n.value && (v += 24), {
707
775
  position: "relative",
708
776
  background: l.value,
709
- height: `calc(100% - ${f}px)`
777
+ height: `calc(100% - ${v}px)`
710
778
  };
711
- }), m = A(() => s("x-prop-tree.dlg.jsonObject.title")), { open: c } = he(`propTreeJsonObjectDlg${Ce()}`);
712
- Ue(() => {
779
+ }), d = L(() => s("x-prop-tree.dlg.jsonEditor.title")), { open: c } = he(`propTreejsonEditorDlg${Ue()}`);
780
+ $e(() => {
713
781
  c.value = !1;
714
782
  });
715
- const v = Re("editor");
716
- return ce(c, (f) => {
717
- f || v.value?.save();
718
- }), (f, V) => {
719
- const U = C("v-btn"), M = C("v-sheet"), R = C("v-spacer"), k = C("v-dialog");
720
- return _(), T(k, {
783
+ const f = Je("editor");
784
+ return oe(c, (v) => {
785
+ v || f.value?.save();
786
+ }), (v, h) => {
787
+ const _ = U("v-btn"), C = U("v-sheet"), b = U("v-spacer"), k = U("v-dialog");
788
+ return V(), B(k, {
721
789
  modelValue: D(c),
722
- "onUpdate:modelValue": V[4] || (V[4] = (x) => ue(c) ? c.value = x : null),
790
+ "onUpdate:modelValue": h[4] || (h[4] = (S) => re(c) ? c.value = S : null),
723
791
  attach: "",
724
792
  fullscreen: "",
725
793
  "no-click-animation": "",
726
794
  persistent: "",
727
795
  transition: "dialog-bottom-transition",
728
- onKeydown: V[5] || (V[5] = Te(X((x) => c.value = !1, ["stop", "prevent"]), ["esc"]))
796
+ onKeydown: h[5] || (h[5] = Le(X((S) => c.value = !1, ["stop", "prevent"]), ["esc"]))
729
797
  }, {
730
- activator: K(({ props: x }) => [
731
- b(U, $e(x, {
798
+ activator: K(({ props: S }) => [
799
+ M(_, we(S, {
732
800
  block: "",
733
801
  density: "comfortable"
734
802
  }), {
735
803
  default: K(() => [
736
- ye(F(m.value), 1)
804
+ ye(F(d.value), 1)
737
805
  ]),
738
806
  _: 1
739
807
  }, 16)
740
808
  ]),
741
809
  default: K(() => [
742
- b(M, {
810
+ M(C, {
743
811
  color: D(e),
744
812
  height: "100%",
745
813
  width: "100%"
746
814
  }, {
747
815
  default: K(() => [
748
- D(n) ? (_(), T(M, {
816
+ D(n) ? (V(), B(C, {
749
817
  key: 0,
750
818
  color: D(o),
751
819
  height: 24
752
820
  }, null, 8, ["color"])) : G("", !0),
753
- b(M, {
821
+ M(C, {
754
822
  class: "d-flex align-center px-2",
755
823
  color: D(o),
756
824
  height: 48
757
825
  }, {
758
826
  default: K(() => [
759
- b(U, {
827
+ M(_, {
760
828
  density: "comfortable",
761
829
  icon: "mdi-close",
762
830
  variant: "text",
763
- onClick: V[0] || (V[0] = (x) => c.value = !1)
831
+ onClick: h[0] || (h[0] = (S) => c.value = !1)
764
832
  }),
765
- B("span", rn, F(D(s)("x-prop-tree.dlg.jsonObject.title")), 1),
766
- b(R)
833
+ O("span", an, F(D(s)("x-prop-tree.dlg.jsonEditor.title")), 1),
834
+ M(b)
767
835
  ]),
768
836
  _: 1
769
837
  }, 8, ["color"]),
770
- B("div", {
838
+ O("div", {
771
839
  style: W(a.value)
772
840
  }, [
773
- b(un, {
841
+ M(rn, {
774
842
  ref_key: "editor",
775
- ref: v,
843
+ ref: f,
776
844
  modelValue: i.value,
777
- "onUpdate:modelValue": V[1] || (V[1] = (x) => i.value = x),
845
+ "onUpdate:modelValue": h[1] || (h[1] = (S) => i.value = S),
778
846
  lock: u.value,
779
- "onUpdate:lock": V[2] || (V[2] = (x) => u.value = x),
847
+ "onUpdate:lock": h[2] || (h[2] = (S) => u.value = S),
780
848
  scale: r.value,
781
- "onUpdate:scale": V[3] || (V[3] = (x) => r.value = x)
849
+ "onUpdate:scale": h[3] || (h[3] = (S) => r.value = S)
782
850
  }, null, 8, ["modelValue", "lock", "scale"])
783
851
  ], 4)
784
852
  ]),
@@ -789,284 +857,8 @@ const Yt = /* @__PURE__ */ J({
789
857
  }, 8, ["modelValue"]);
790
858
  };
791
859
  }
792
- }), cn = { class: "text-subtitle-2 ml-1" }, dn = { class: "text-caption text-grey ml-1" }, mn = /* @__PURE__ */ J({
793
- __name: "group",
794
- props: {
795
- id: {},
796
- title: {},
797
- collapse: { type: Boolean },
798
- count: {}
799
- },
800
- emits: ["x-click"],
801
- setup(t, { emit: s }) {
802
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = O(!1), u = A(() => ({
803
- background: i.value ? e.value : n.value,
804
- height: "30px",
805
- marginBottom: "1px",
806
- userSelect: "none"
807
- }));
808
- return (r, a) => {
809
- const m = C("v-icon"), c = ee("ripple");
810
- return Z((_(), q("div", {
811
- class: "d-flex align-center cursor-pointer",
812
- style: W(u.value),
813
- onClick: a[0] || (a[0] = (v) => o("x-click", l.id)),
814
- onMouseout: a[1] || (a[1] = (v) => i.value = !1),
815
- onMouseover: a[2] || (a[2] = (v) => i.value = !0)
816
- }, [
817
- b(m, {
818
- icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
819
- size: "small"
820
- }, null, 8, ["icon"]),
821
- B("span", cn, F(l.title), 1),
822
- B("span", dn, F(l.count), 1)
823
- ], 36)), [
824
- [c]
825
- ]);
826
- };
827
- }
828
- }), fn = { class: "text-subtitle-1 ml-6" }, vn = /* @__PURE__ */ J({
829
- __name: "item",
830
- props: {
831
- id: {},
832
- title: {}
833
- },
834
- emits: ["x-click"],
835
- setup(t, { emit: s }) {
836
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = O(!1), u = A(() => ({
837
- background: i.value ? e.value : n.value,
838
- height: "48px",
839
- marginBottom: "1px",
840
- userSelect: "none"
841
- }));
842
- return (r, a) => {
843
- const m = ee("ripple");
844
- return Z((_(), q("div", {
845
- class: "d-flex align-center cursor-pointer",
846
- style: W(u.value),
847
- onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
848
- onMouseout: a[1] || (a[1] = (c) => i.value = !1),
849
- onMouseover: a[2] || (a[2] = (c) => i.value = !0)
850
- }, [
851
- B("span", fn, F(l.title), 1)
852
- ], 36)), [
853
- [m]
854
- ]);
855
- };
856
- }
857
- }), pn = { key: 0 }, gn = {
858
- key: 1,
859
- class: "text-body-2 text-grey ml-3"
860
- }, yn = /* @__PURE__ */ J({
861
- __name: "index",
862
- props: {
863
- modelValue: {},
864
- modelModifiers: {},
865
- open: { type: Boolean, required: !0 },
866
- openModifiers: {}
867
- },
868
- emits: ["update:modelValue", "update:open"],
869
- setup(t) {
870
- const { t: s } = j(), n = z(t, "modelValue"), e = z(t, "open"), l = tt(), o = (u) => {
871
- const r = we(l, u);
872
- r && Xe(l, u, !r.collapse);
873
- }, i = (u) => {
874
- n.value = u, e.value = !1;
875
- };
876
- return (u, r) => D(l).length > 0 ? (_(), q("div", pn, [
877
- (_(!0), q(fe, null, Le(D(l), (a) => (_(), q(fe, {
878
- key: a.id
879
- }, [
880
- a.type === 0 ? (_(), T(mn, {
881
- key: 0,
882
- id: a.id,
883
- collapse: a.collapse,
884
- count: a.count ?? 0,
885
- title: a.name,
886
- onXClick: o
887
- }, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
888
- a.type === 1 && a.show ? (_(), T(vn, {
889
- key: 1,
890
- id: a.id,
891
- title: a.name,
892
- onXClick: i
893
- }, null, 8, ["id", "title"])) : G("", !0)
894
- ], 64))), 128))
895
- ])) : (_(), q("div", gn, F(D(s)("x-prop-tree.noSlot")), 1));
896
- }
897
- }), hn = { class: "text-subtitle-1 ml-3" }, _n = /* @__PURE__ */ J({
860
+ }), dn = { class: "d-flex justify-space-between align-center my-2" }, mn = { class: "flex-grow-1" }, fn = /* @__PURE__ */ R({
898
861
  __name: "index",
899
- props: {
900
- modelValue: {},
901
- modelModifiers: {}
902
- },
903
- emits: ["update:modelValue"],
904
- setup(t) {
905
- const { t: s } = j(), n = ze(), { sysBarAvail: e } = ve(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = tt(), u = A(() => {
906
- let v = "100%";
907
- return n.mdAndUp.value && (v = "400px"), {
908
- background: l.value,
909
- width: v,
910
- height: "100%"
911
- };
912
- }), r = A(() => {
913
- let v = 48;
914
- return e.value && (v += 24), {
915
- position: "relative",
916
- height: `calc(100% - ${v}px)`
917
- };
918
- }), a = A(() => ({
919
- height: "60px"
920
- })), m = A(() => {
921
- if (!o.value)
922
- return s("x-runtime-lib.notSet");
923
- const v = we(i, o.value);
924
- return v ? v.name : s("x-runtime-lib.slotNotAvail");
925
- }), { open: c } = he(`propTreeSlotSelectDlg${Ce()}`);
926
- return Ue(() => {
927
- c.value = !1;
928
- }), (v, f) => {
929
- const V = C("v-btn"), U = C("v-sheet"), M = C("v-icon"), R = C("v-dialog");
930
- return _(), T(R, {
931
- modelValue: D(c),
932
- "onUpdate:modelValue": f[5] || (f[5] = (k) => ue(c) ? c.value = k : null),
933
- fullscreen: "",
934
- "no-click-animation": "",
935
- persistent: "",
936
- transition: "scroll-x-reverse-transition",
937
- onKeydown: f[6] || (f[6] = Te(X((k) => c.value = !1, ["stop", "prevent"]), ["esc"]))
938
- }, {
939
- activator: K(({ props: k }) => [
940
- b(V, $e(k, {
941
- block: "",
942
- density: "comfortable"
943
- }), {
944
- default: K(() => [
945
- ye(F(m.value), 1)
946
- ]),
947
- _: 1
948
- }, 16)
949
- ]),
950
- default: K(() => [
951
- B("div", {
952
- class: "w-100 h-100 d-flex flex-row-reverse",
953
- onClick: f[3] || (f[3] = X((k) => c.value = !1, ["self"])),
954
- onContextmenu: f[4] || (f[4] = X((k) => c.value = !1, ["self", "prevent"]))
955
- }, [
956
- B("div", {
957
- class: "elevation-2",
958
- style: W(u.value)
959
- }, [
960
- D(e) ? (_(), T(U, {
961
- key: 0,
962
- color: "transparent",
963
- height: 24
964
- })) : G("", !0),
965
- b(U, {
966
- class: "d-flex align-center px-3",
967
- color: "transparent",
968
- height: 48
969
- }, {
970
- default: K(() => [
971
- b(M, {
972
- icon: "mdi-close",
973
- onClick: f[0] || (f[0] = (k) => c.value = !1)
974
- }),
975
- B("span", hn, F(D(s)("x-prop-tree.dlg.compSelect.title")), 1)
976
- ]),
977
- _: 1
978
- }),
979
- B("div", {
980
- class: "overflow-y-auto",
981
- style: W(r.value)
982
- }, [
983
- b(yn, {
984
- modelValue: o.value,
985
- "onUpdate:modelValue": f[1] || (f[1] = (k) => o.value = k),
986
- open: D(c),
987
- "onUpdate:open": f[2] || (f[2] = (k) => ue(c) ? c.value = k : null)
988
- }, null, 8, ["modelValue", "open"]),
989
- B("div", {
990
- style: W(a.value)
991
- }, null, 4)
992
- ], 4)
993
- ], 4)
994
- ], 32)
995
- ]),
996
- _: 1
997
- }, 8, ["modelValue"]);
998
- };
999
- }
1000
- }), kn = { class: "d-flex justify-space-between align-center" }, xn = /* @__PURE__ */ J({
1001
- __name: "colorPicker",
1002
- props: /* @__PURE__ */ Q({
1003
- hasDelete: { type: Boolean, default: !1 },
1004
- readonly: { type: Boolean, default: !1 }
1005
- }, {
1006
- modelValue: {},
1007
- modelModifiers: {}
1008
- }),
1009
- emits: /* @__PURE__ */ Q(["delete"], ["update:modelValue"]),
1010
- setup(t, { emit: s }) {
1011
- const { t: n } = j(), e = z(t, "modelValue"), l = s, o = A(() => {
1012
- let r = "100%";
1013
- return t.hasDelete && (r = "calc(100% - 37px)"), {
1014
- width: r
1015
- };
1016
- }), i = A(() => t.readonly), { open: u } = he(`propTreeColorPickerMenu${Ce()}`);
1017
- return Ue(() => {
1018
- u.value = !1;
1019
- }), (r, a) => {
1020
- const m = C("v-btn"), c = C("v-color-picker"), v = C("v-menu");
1021
- return _(), T(v, {
1022
- modelValue: D(u),
1023
- "onUpdate:modelValue": a[2] || (a[2] = (f) => ue(u) ? u.value = f : null),
1024
- "close-on-content-click": !1,
1025
- scrim: "transparent"
1026
- }, {
1027
- activator: K(({ props: f }) => [
1028
- B("div", kn, [
1029
- B("div", {
1030
- class: "flex-grow-1",
1031
- style: W(o.value)
1032
- }, [
1033
- b(m, $e(f, {
1034
- block: "",
1035
- color: e.value,
1036
- density: "comfortable",
1037
- disabled: i.value
1038
- }), {
1039
- default: K(() => [
1040
- ye(F(e.value ? e.value : D(n)("x-runtime-lib.notSet")), 1)
1041
- ]),
1042
- _: 1
1043
- }, 16, ["color", "disabled"])
1044
- ], 4),
1045
- t.hasDelete ? (_(), T(m, {
1046
- key: 0,
1047
- class: "mx-2",
1048
- density: "compact",
1049
- icon: "mdi-minus",
1050
- variant: "text",
1051
- onClick: a[0] || (a[0] = X((V) => l("delete"), ["stop"]))
1052
- })) : G("", !0)
1053
- ])
1054
- ]),
1055
- default: K(() => [
1056
- b(c, {
1057
- modelValue: e.value,
1058
- "onUpdate:modelValue": a[1] || (a[1] = (f) => e.value = f),
1059
- mode: "hexa",
1060
- "show-swatches": "",
1061
- "swatches-max-height": "150px"
1062
- }, null, 8, ["modelValue"])
1063
- ]),
1064
- _: 1
1065
- }, 8, ["modelValue"]);
1066
- };
1067
- }
1068
- }), Vn = { class: "d-flex justify-space-between align-center my-2" }, Sn = { class: "flex-grow-1" }, Cn = /* @__PURE__ */ J({
1069
- __name: "multiTypes",
1070
862
  props: /* @__PURE__ */ Q({
1071
863
  hasDelete: { type: Boolean, default: !1 },
1072
864
  types: {}
@@ -1076,45 +868,45 @@ const Yt = /* @__PURE__ */ J({
1076
868
  }),
1077
869
  emits: /* @__PURE__ */ Q(["delete"], ["update:modelValue"]),
1078
870
  setup(t, { emit: s }) {
1079
- const { t: n } = j(), { isMobile: e } = ve(), l = z(t, "modelValue"), o = s, i = Oe(), u = A(() => Fe[i.value]?.types[t.types]), r = O(0), a = A(() => {
1080
- const V = [];
1081
- return u.value?.forEach(({ title: U }, M) => {
1082
- V.push({
1083
- title: n(U),
1084
- value: M
871
+ const { t: n } = j(), { isMobile: e } = ve(), l = z(t, "modelValue"), o = s, i = Oe(), u = L(() => Ne[i.value]?.types[t.types]), r = T(0), a = L(() => {
872
+ const h = [];
873
+ return u.value?.forEach(({ title: _ }, C) => {
874
+ h.push({
875
+ title: n(_),
876
+ value: C
1085
877
  });
1086
- }), V;
878
+ }), h;
1087
879
  });
1088
- qe(() => {
1089
- u.value?.some((V, U) => V.validator(l.value) ? (r.value = U, !0) : !1);
880
+ Ke(() => {
881
+ u.value?.some((h, _) => h.validator(l.value) ? (r.value = _, !0) : !1);
1090
882
  });
1091
- const m = A(() => u.value?.[r.value]), c = () => {
1092
- l.value = m.value?.default;
1093
- }, v = O(0), f = async (V) => {
1094
- if (!V || !e() || m.value.ui !== "pixelInput" && m.value.ui !== "percentInput")
883
+ const d = L(() => u.value?.[r.value]), c = () => {
884
+ l.value = d.value?.default;
885
+ }, f = T(0), v = async (h) => {
886
+ if (!h || !e() || d.value.ui !== "pixelInput" && d.value.ui !== "percentInput")
1095
887
  return;
1096
- const U = await Ee({
888
+ const _ = await Fe({
1097
889
  title: "",
1098
- value: v.value,
1099
- precision: m.value.precision,
1100
- min: m.value.min,
1101
- max: m.value.max,
1102
- step: m.value.step
890
+ value: f.value,
891
+ precision: d.value.precision,
892
+ min: d.value.min,
893
+ max: d.value.max,
894
+ step: d.value.step
1103
895
  });
1104
- U !== void 0 && (v.value = U);
896
+ _ !== void 0 && (f.value = _);
1105
897
  };
1106
- return qe(() => {
1107
- m.value?.ui === "pixelInput" ? v.value = $t(l.value) : m.value?.ui === "percentInput" && (v.value = Mt(l.value));
1108
- }), ce(v, (V) => {
1109
- m.value?.ui === "pixelInput" ? l.value = V + "px" : m.value?.ui === "percentInput" && (l.value = V + "%");
1110
- }), (V, U) => {
1111
- const M = C("v-select"), R = C("v-number-input"), k = C("v-btn"), x = ee("ripple");
1112
- return _(), q("div", Vn, [
1113
- B("div", Sn, [
1114
- Z(b(M, {
898
+ return Ke(() => {
899
+ d.value?.ui === "pixelInput" ? f.value = Ct(l.value) : d.value?.ui === "percentInput" && (f.value = Ut(l.value));
900
+ }), oe(f, (h) => {
901
+ d.value?.ui === "pixelInput" ? l.value = h + "px" : d.value?.ui === "percentInput" && (l.value = h + "%");
902
+ }), (h, _) => {
903
+ const C = U("v-select"), b = U("v-number-input"), k = U("v-btn"), S = ee("ripple");
904
+ return V(), q("div", dn, [
905
+ O("div", mn, [
906
+ Z(M(C, {
1115
907
  modelValue: r.value,
1116
908
  "onUpdate:modelValue": [
1117
- U[0] || (U[0] = (P) => r.value = P),
909
+ _[0] || (_[0] = (P) => r.value = P),
1118
910
  c
1119
911
  ],
1120
912
  density: "compact",
@@ -1123,47 +915,47 @@ const Yt = /* @__PURE__ */ J({
1123
915
  "single-line": ""
1124
916
  }, null, 8, ["modelValue", "items"]), [
1125
917
  [
1126
- x,
918
+ S,
1127
919
  void 0,
1128
920
  void 0,
1129
921
  { stop: !0 }
1130
922
  ]
1131
923
  ]),
1132
- m.value?.ui === "pixelInput" || m.value?.ui === "percentInput" ? Z((_(), T(R, {
924
+ d.value?.ui === "pixelInput" || d.value?.ui === "percentInput" ? Z((V(), B(b, {
1133
925
  key: 0,
1134
- modelValue: v.value,
1135
- "onUpdate:modelValue": U[1] || (U[1] = (P) => v.value = P),
926
+ modelValue: f.value,
927
+ "onUpdate:modelValue": _[1] || (_[1] = (P) => f.value = P),
1136
928
  "control-variant": "stacked",
1137
929
  density: "compact",
1138
930
  "hide-details": "",
1139
- max: m.value.max,
1140
- min: m.value.min,
1141
- precision: m.value.precision,
931
+ max: d.value.max,
932
+ min: d.value.min,
933
+ precision: d.value.precision,
1142
934
  "single-line": "",
1143
- step: m.value.step,
1144
- "onUpdate:focused": f
935
+ step: d.value.step,
936
+ "onUpdate:focused": v
1145
937
  }, null, 8, ["modelValue", "max", "min", "precision", "step"])), [
1146
938
  [
1147
- x,
939
+ S,
1148
940
  void 0,
1149
941
  void 0,
1150
942
  { stop: !0 }
1151
943
  ]
1152
944
  ]) : G("", !0)
1153
945
  ]),
1154
- t.hasDelete ? (_(), T(k, {
946
+ t.hasDelete ? (V(), B(k, {
1155
947
  key: 0,
1156
948
  class: "mx-2",
1157
949
  density: "compact",
1158
950
  icon: "mdi-minus",
1159
951
  variant: "text",
1160
- onClick: U[2] || (U[2] = X((P) => o("delete"), ["stop"]))
952
+ onClick: _[2] || (_[2] = X((P) => o("delete"), ["stop"]))
1161
953
  })) : G("", !0)
1162
954
  ]);
1163
955
  };
1164
956
  }
1165
- }), Un = { class: "d-flex justify-space-between align-center" }, $n = /* @__PURE__ */ J({
1166
- __name: "numInput",
957
+ }), vn = { class: "d-flex justify-space-between align-center" }, pn = /* @__PURE__ */ R({
958
+ __name: "index",
1167
959
  props: /* @__PURE__ */ Q({
1168
960
  hasDelete: { type: Boolean, default: !1 },
1169
961
  precision: { default: () => {
@@ -1181,7 +973,7 @@ const Yt = /* @__PURE__ */ J({
1181
973
  const { isMobile: n } = ve(), e = z(t, "modelValue"), l = s, o = async (i) => {
1182
974
  if (!i || t.readonly || !n())
1183
975
  return;
1184
- const u = await Ee({
976
+ const u = await Fe({
1185
977
  title: "",
1186
978
  value: e.value,
1187
979
  precision: t.precision,
@@ -1192,9 +984,9 @@ const Yt = /* @__PURE__ */ J({
1192
984
  u !== void 0 && (e.value = u);
1193
985
  };
1194
986
  return (i, u) => {
1195
- const r = C("v-number-input"), a = C("v-btn"), m = ee("ripple");
1196
- return _(), q("div", Un, [
1197
- Z(b(r, {
987
+ const r = U("v-number-input"), a = U("v-btn"), d = ee("ripple");
988
+ return V(), q("div", vn, [
989
+ Z(M(r, {
1198
990
  modelValue: e.value,
1199
991
  "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
1200
992
  "control-variant": "stacked",
@@ -1209,13 +1001,13 @@ const Yt = /* @__PURE__ */ J({
1209
1001
  "onUpdate:focused": o
1210
1002
  }, null, 8, ["modelValue", "max", "min", "precision", "readonly", "step"]), [
1211
1003
  [
1212
- m,
1004
+ d,
1213
1005
  void 0,
1214
1006
  void 0,
1215
1007
  { stop: !0 }
1216
1008
  ]
1217
1009
  ]),
1218
- t.hasDelete ? (_(), T(a, {
1010
+ t.hasDelete ? (V(), B(a, {
1219
1011
  key: 0,
1220
1012
  class: "mx-2",
1221
1013
  density: "compact",
@@ -1226,8 +1018,8 @@ const Yt = /* @__PURE__ */ J({
1226
1018
  ]);
1227
1019
  };
1228
1020
  }
1229
- }), Mn = { class: "d-flex justify-space-between align-center" }, wn = /* @__PURE__ */ J({
1230
- __name: "select",
1021
+ }), gn = { class: "d-flex justify-space-between align-center" }, yn = /* @__PURE__ */ R({
1022
+ __name: "index",
1231
1023
  props: /* @__PURE__ */ Q({
1232
1024
  hasDelete: { type: Boolean, default: !1 },
1233
1025
  readonly: { type: Boolean, default: !1 },
@@ -1238,18 +1030,18 @@ const Yt = /* @__PURE__ */ J({
1238
1030
  }),
1239
1031
  emits: /* @__PURE__ */ Q(["delete"], ["update:modelValue"]),
1240
1032
  setup(t, { emit: s }) {
1241
- const { t: n } = j(), e = z(t, "modelValue"), l = s, o = Oe(), i = A(() => {
1033
+ const { t: n } = j(), e = z(t, "modelValue"), l = s, o = Oe(), i = L(() => {
1242
1034
  const u = [];
1243
- return Fe[o.value]?.items[t.items].forEach(({ title: r, value: a }) => {
1035
+ return Ne[o.value]?.items[t.items].forEach(({ title: r, value: a }) => {
1244
1036
  u.push({ title: n(r), value: a });
1245
1037
  }), u;
1246
1038
  });
1247
1039
  return (u, r) => {
1248
- const a = C("v-select"), m = C("v-btn"), c = ee("ripple");
1249
- return _(), q("div", Mn, [
1250
- Z(b(a, {
1040
+ const a = U("v-select"), d = U("v-btn"), c = ee("ripple");
1041
+ return V(), q("div", gn, [
1042
+ Z(M(a, {
1251
1043
  modelValue: e.value,
1252
- "onUpdate:modelValue": r[0] || (r[0] = (v) => e.value = v),
1044
+ "onUpdate:modelValue": r[0] || (r[0] = (f) => e.value = f),
1253
1045
  density: "compact",
1254
1046
  "hide-details": "",
1255
1047
  items: i.value,
@@ -1263,19 +1055,227 @@ const Yt = /* @__PURE__ */ J({
1263
1055
  { stop: !0 }
1264
1056
  ]
1265
1057
  ]),
1266
- t.hasDelete ? (_(), T(m, {
1058
+ t.hasDelete ? (V(), B(d, {
1267
1059
  key: 0,
1268
1060
  class: "mx-2",
1269
1061
  density: "compact",
1270
1062
  icon: "mdi-minus",
1271
1063
  variant: "text",
1272
- onClick: r[1] || (r[1] = X((v) => l("delete"), ["stop"]))
1064
+ onClick: r[1] || (r[1] = X((f) => l("delete"), ["stop"]))
1273
1065
  })) : G("", !0)
1274
1066
  ]);
1275
1067
  };
1276
1068
  }
1277
- }), bn = { class: "d-flex justify-space-between align-center" }, Pn = /* @__PURE__ */ J({
1278
- __name: "strInput",
1069
+ }), hn = { class: "text-subtitle-2 ml-1" }, kn = { class: "text-caption text-grey ml-1" }, _n = /* @__PURE__ */ R({
1070
+ __name: "group",
1071
+ props: {
1072
+ id: {},
1073
+ title: {},
1074
+ collapse: { type: Boolean },
1075
+ count: {}
1076
+ },
1077
+ emits: ["x-click"],
1078
+ setup(t, { emit: s }) {
1079
+ const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
1080
+ background: i.value ? e.value : n.value,
1081
+ height: "30px",
1082
+ marginBottom: "1px",
1083
+ userSelect: "none"
1084
+ }));
1085
+ return (r, a) => {
1086
+ const d = U("v-icon"), c = ee("ripple");
1087
+ return Z((V(), q("div", {
1088
+ class: "d-flex align-center cursor-pointer",
1089
+ style: W(u.value),
1090
+ onClick: a[0] || (a[0] = (f) => o("x-click", l.id)),
1091
+ onMouseout: a[1] || (a[1] = (f) => i.value = !1),
1092
+ onMouseover: a[2] || (a[2] = (f) => i.value = !0)
1093
+ }, [
1094
+ M(d, {
1095
+ icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
1096
+ size: "small"
1097
+ }, null, 8, ["icon"]),
1098
+ O("span", hn, F(l.title), 1),
1099
+ O("span", kn, F(l.count), 1)
1100
+ ], 36)), [
1101
+ [c]
1102
+ ]);
1103
+ };
1104
+ }
1105
+ }), xn = { class: "text-subtitle-1 ml-6" }, Vn = /* @__PURE__ */ R({
1106
+ __name: "item",
1107
+ props: {
1108
+ id: {},
1109
+ title: {}
1110
+ },
1111
+ emits: ["x-click"],
1112
+ setup(t, { emit: s }) {
1113
+ const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
1114
+ background: i.value ? e.value : n.value,
1115
+ height: "48px",
1116
+ marginBottom: "1px",
1117
+ userSelect: "none"
1118
+ }));
1119
+ return (r, a) => {
1120
+ const d = ee("ripple");
1121
+ return Z((V(), q("div", {
1122
+ class: "d-flex align-center cursor-pointer",
1123
+ style: W(u.value),
1124
+ onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
1125
+ onMouseout: a[1] || (a[1] = (c) => i.value = !1),
1126
+ onMouseover: a[2] || (a[2] = (c) => i.value = !0)
1127
+ }, [
1128
+ O("span", xn, F(l.title), 1)
1129
+ ], 36)), [
1130
+ [d]
1131
+ ]);
1132
+ };
1133
+ }
1134
+ }), Sn = { key: 0 }, Cn = {
1135
+ key: 1,
1136
+ class: "text-body-2 text-grey ml-3"
1137
+ }, Un = /* @__PURE__ */ R({
1138
+ __name: "index",
1139
+ props: {
1140
+ modelValue: {},
1141
+ modelModifiers: {},
1142
+ open: { type: Boolean, required: !0 },
1143
+ openModifiers: {}
1144
+ },
1145
+ emits: ["update:modelValue", "update:open"],
1146
+ setup(t) {
1147
+ const { t: s } = j(), n = z(t, "modelValue"), e = z(t, "open"), l = st(), o = (u) => {
1148
+ const r = ke(l, u);
1149
+ r && Ge(l, u, !r.collapse);
1150
+ }, i = (u) => {
1151
+ n.value = u, e.value = !1;
1152
+ };
1153
+ return (u, r) => D(l).length > 0 ? (V(), q("div", Sn, [
1154
+ (V(!0), q(fe, null, Te(D(l), (a) => (V(), q(fe, {
1155
+ key: a.id
1156
+ }, [
1157
+ a.type === 0 ? (V(), B(_n, {
1158
+ key: 0,
1159
+ id: a.id,
1160
+ collapse: a.collapse,
1161
+ count: a.count ?? 0,
1162
+ title: a.name,
1163
+ onXClick: o
1164
+ }, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
1165
+ a.type === 1 && a.show ? (V(), B(Vn, {
1166
+ key: 1,
1167
+ id: a.id,
1168
+ title: a.name,
1169
+ onXClick: i
1170
+ }, null, 8, ["id", "title"])) : G("", !0)
1171
+ ], 64))), 128))
1172
+ ])) : (V(), q("div", Cn, F(D(s)("x-prop-tree.noSlot")), 1));
1173
+ }
1174
+ }), $n = { class: "text-subtitle-1 ml-3" }, wn = /* @__PURE__ */ R({
1175
+ __name: "index",
1176
+ props: {
1177
+ modelValue: {},
1178
+ modelModifiers: {}
1179
+ },
1180
+ emits: ["update:modelValue"],
1181
+ setup(t) {
1182
+ const { t: s } = j(), n = We(), { sysBarAvail: e } = ve(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = st(), u = L(() => {
1183
+ let f = "100%";
1184
+ return n.mdAndUp.value && (f = "400px"), {
1185
+ background: l.value,
1186
+ width: f,
1187
+ height: "100%"
1188
+ };
1189
+ }), r = L(() => {
1190
+ let f = 48;
1191
+ return e.value && (f += 24), {
1192
+ position: "relative",
1193
+ height: `calc(100% - ${f}px)`
1194
+ };
1195
+ }), a = L(() => ({
1196
+ height: "60px"
1197
+ })), d = L(() => {
1198
+ if (!o.value)
1199
+ return s("x-runtime-lib.notSet");
1200
+ const f = ke(i, o.value);
1201
+ return f ? f.name : s("x-runtime-lib.slotNotAvail");
1202
+ }), { open: c } = he(`propTreeSlotSelectDlg${Ue()}`);
1203
+ return $e(() => {
1204
+ c.value = !1;
1205
+ }), (f, v) => {
1206
+ const h = U("v-btn"), _ = U("v-sheet"), C = U("v-icon"), b = U("v-dialog");
1207
+ return V(), B(b, {
1208
+ modelValue: D(c),
1209
+ "onUpdate:modelValue": v[5] || (v[5] = (k) => re(c) ? c.value = k : null),
1210
+ fullscreen: "",
1211
+ "no-click-animation": "",
1212
+ persistent: "",
1213
+ transition: "scroll-x-reverse-transition",
1214
+ onKeydown: v[6] || (v[6] = Le(X((k) => c.value = !1, ["stop", "prevent"]), ["esc"]))
1215
+ }, {
1216
+ activator: K(({ props: k }) => [
1217
+ M(h, we(k, {
1218
+ block: "",
1219
+ density: "comfortable"
1220
+ }), {
1221
+ default: K(() => [
1222
+ ye(F(d.value), 1)
1223
+ ]),
1224
+ _: 1
1225
+ }, 16)
1226
+ ]),
1227
+ default: K(() => [
1228
+ O("div", {
1229
+ class: "w-100 h-100 d-flex flex-row-reverse",
1230
+ onClick: v[3] || (v[3] = X((k) => c.value = !1, ["self"])),
1231
+ onContextmenu: v[4] || (v[4] = X((k) => c.value = !1, ["self", "prevent"]))
1232
+ }, [
1233
+ O("div", {
1234
+ class: "elevation-2",
1235
+ style: W(u.value)
1236
+ }, [
1237
+ D(e) ? (V(), B(_, {
1238
+ key: 0,
1239
+ color: "transparent",
1240
+ height: 24
1241
+ })) : G("", !0),
1242
+ M(_, {
1243
+ class: "d-flex align-center px-3",
1244
+ color: "transparent",
1245
+ height: 48
1246
+ }, {
1247
+ default: K(() => [
1248
+ M(C, {
1249
+ icon: "mdi-close",
1250
+ onClick: v[0] || (v[0] = (k) => c.value = !1)
1251
+ }),
1252
+ O("span", $n, F(D(s)("x-prop-tree.dlg.slotSelect.title")), 1)
1253
+ ]),
1254
+ _: 1
1255
+ }),
1256
+ O("div", {
1257
+ class: "overflow-y-auto",
1258
+ style: W(r.value)
1259
+ }, [
1260
+ M(Un, {
1261
+ modelValue: o.value,
1262
+ "onUpdate:modelValue": v[1] || (v[1] = (k) => o.value = k),
1263
+ open: D(c),
1264
+ "onUpdate:open": v[2] || (v[2] = (k) => re(c) ? c.value = k : null)
1265
+ }, null, 8, ["modelValue", "open"]),
1266
+ O("div", {
1267
+ style: W(a.value)
1268
+ }, null, 4)
1269
+ ], 4)
1270
+ ], 4)
1271
+ ], 32)
1272
+ ]),
1273
+ _: 1
1274
+ }, 8, ["modelValue"]);
1275
+ };
1276
+ }
1277
+ }), Mn = { class: "d-flex justify-space-between align-center" }, bn = /* @__PURE__ */ R({
1278
+ __name: "index",
1279
1279
  props: /* @__PURE__ */ Q({
1280
1280
  hasDelete: { type: Boolean, default: !1 },
1281
1281
  readonly: { type: Boolean, default: !1 }
@@ -1288,16 +1288,16 @@ const Yt = /* @__PURE__ */ J({
1288
1288
  const { isMobile: n } = ve(), e = z(t, "modelValue"), l = s, o = async (i) => {
1289
1289
  if (!i || t.readonly || !n())
1290
1290
  return;
1291
- const u = await Ct({
1291
+ const u = await Vt({
1292
1292
  title: "",
1293
1293
  value: e.value
1294
1294
  });
1295
1295
  u !== void 0 && (e.value = u);
1296
1296
  };
1297
1297
  return (i, u) => {
1298
- const r = C("v-text-field"), a = C("v-btn"), m = ee("ripple");
1299
- return _(), q("div", bn, [
1300
- Z(b(r, {
1298
+ const r = U("v-text-field"), a = U("v-btn"), d = ee("ripple");
1299
+ return V(), q("div", Mn, [
1300
+ Z(M(r, {
1301
1301
  modelValue: e.value,
1302
1302
  "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
1303
1303
  density: "compact",
@@ -1307,13 +1307,13 @@ const Yt = /* @__PURE__ */ J({
1307
1307
  "onUpdate:focused": o
1308
1308
  }, null, 8, ["modelValue", "readonly"]), [
1309
1309
  [
1310
- m,
1310
+ d,
1311
1311
  void 0,
1312
1312
  void 0,
1313
1313
  { stop: !0 }
1314
1314
  ]
1315
1315
  ]),
1316
- t.hasDelete ? (_(), T(a, {
1316
+ t.hasDelete ? (V(), B(a, {
1317
1317
  key: 0,
1318
1318
  class: "mx-2",
1319
1319
  density: "compact",
@@ -1324,8 +1324,8 @@ const Yt = /* @__PURE__ */ J({
1324
1324
  ]);
1325
1325
  };
1326
1326
  }
1327
- }), Dn = { class: "d-flex justify-space-between align-center" }, An = /* @__PURE__ */ J({
1328
- __name: "switch",
1327
+ }), Pn = { class: "d-flex justify-space-between align-center" }, Dn = /* @__PURE__ */ R({
1328
+ __name: "index",
1329
1329
  props: /* @__PURE__ */ Q({
1330
1330
  hasDelete: { type: Boolean, default: !1 },
1331
1331
  readonly: { type: Boolean, default: !1 }
@@ -1337,9 +1337,9 @@ const Yt = /* @__PURE__ */ J({
1337
1337
  setup(t, { emit: s }) {
1338
1338
  const n = z(t, "modelValue"), e = s;
1339
1339
  return (l, o) => {
1340
- const i = C("v-switch"), u = C("v-btn");
1341
- return _(), q("div", Dn, [
1342
- b(i, {
1340
+ const i = U("v-switch"), u = U("v-btn");
1341
+ return V(), q("div", Pn, [
1342
+ M(i, {
1343
1343
  modelValue: n.value,
1344
1344
  "onUpdate:modelValue": o[0] || (o[0] = (r) => n.value = r),
1345
1345
  class: "ml-1",
@@ -1348,7 +1348,7 @@ const Yt = /* @__PURE__ */ J({
1348
1348
  "hide-details": "",
1349
1349
  readonly: t.readonly
1350
1350
  }, null, 8, ["modelValue", "readonly"]),
1351
- t.hasDelete ? (_(), T(u, {
1351
+ t.hasDelete ? (V(), B(u, {
1352
1352
  key: 0,
1353
1353
  class: "mx-2",
1354
1354
  density: "compact",
@@ -1360,8 +1360,8 @@ const Yt = /* @__PURE__ */ J({
1360
1360
  };
1361
1361
  }
1362
1362
  });
1363
- function Ln(t) {
1364
- return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), h("div", "renderUiColorPicker property ui must be colorPicker")) : h(xn, {
1363
+ function An(t) {
1364
+ return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), x("div", "renderUiColorPicker property ui must be colorPicker")) : x(Qt, {
1365
1365
  modelValue: ne(
1366
1366
  n,
1367
1367
  e,
@@ -1389,7 +1389,7 @@ function Ln(t) {
1389
1389
  }) };
1390
1390
  }
1391
1391
  function Tn(t) {
1392
- return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), h("div", "renderUiCompSelect property ui must be compSelect")) : h(sn, {
1392
+ return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), x("div", "renderUiCompSelect property ui must be compSelect")) : x(un, {
1393
1393
  modelValue: ne(
1394
1394
  n,
1395
1395
  e,
@@ -1411,7 +1411,7 @@ function Tn(t) {
1411
1411
  }
1412
1412
  }) };
1413
1413
  }
1414
- function Nn(t) {
1414
+ function Ln(t) {
1415
1415
  return { renderUiDummy: (n, e, l, o, i) => {
1416
1416
  if (e.ui !== "dummy") {
1417
1417
  console.assert(!1, "renderUiDummy property ui must be dummy");
@@ -1420,8 +1420,8 @@ function Nn(t) {
1420
1420
  ne(n, e, l, t, o, i);
1421
1421
  } };
1422
1422
  }
1423
- function On(t) {
1424
- return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? h("div", "renderUiJsonObject property ui must be jsonEditor") : h(an, {
1423
+ function Nn(t) {
1424
+ return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? x("div", "renderUijsonEditor property ui must be jsonEditor") : x(cn, {
1425
1425
  modelValue: ne(
1426
1426
  n,
1427
1427
  e,
@@ -1444,7 +1444,7 @@ function On(t) {
1444
1444
  }) };
1445
1445
  }
1446
1446
  function Bn(t) {
1447
- return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), h("div", "renderUiMultiTypes property ui must be multiTypes")) : h(Cn, {
1447
+ return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), x("div", "renderUiMultiTypes property ui must be multiTypes")) : x(fn, {
1448
1448
  modelValue: ne(
1449
1449
  n,
1450
1450
  e,
@@ -1471,8 +1471,8 @@ function Bn(t) {
1471
1471
  types: e.types
1472
1472
  }) };
1473
1473
  }
1474
- function qn(t) {
1475
- return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput property ui must be numInput")) : h($n, {
1474
+ function On(t) {
1475
+ return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), x("div", "renderUiNumInput property ui must be numInput")) : x(pn, {
1476
1476
  modelValue: ne(
1477
1477
  n,
1478
1478
  e,
@@ -1503,14 +1503,14 @@ function qn(t) {
1503
1503
  readonly: e.readonly
1504
1504
  }) };
1505
1505
  }
1506
- const Kn = /* @__PURE__ */ J({
1507
- __name: "entry",
1506
+ const qn = /* @__PURE__ */ R({
1507
+ __name: "index",
1508
1508
  props: {
1509
1509
  minHeight: {}
1510
1510
  },
1511
1511
  emits: ["menu"],
1512
1512
  setup(t, { emit: s }) {
1513
- const { backgroundColor2: n, highlightColor: e } = te(), l = s, o = O(!1), i = A(() => ({
1513
+ const { backgroundColor2: n, highlightColor: e } = te(), l = s, o = T(!1), i = L(() => ({
1514
1514
  background: o.value ? e.value : n.value,
1515
1515
  minHeight: t.minHeight,
1516
1516
  paddingRight: "4px",
@@ -1520,8 +1520,8 @@ const Kn = /* @__PURE__ */ J({
1520
1520
  l("menu", r.clientX, r.clientY);
1521
1521
  };
1522
1522
  return (r, a) => {
1523
- const m = ee("ripple");
1524
- return Z((_(), q("div", {
1523
+ const d = ee("ripple");
1524
+ return Z((V(), q("div", {
1525
1525
  class: "d-flex justify-space-between align-center cursor-pointer",
1526
1526
  style: W(i.value),
1527
1527
  onContextmenu: X(u, ["self", "prevent"]),
@@ -1530,36 +1530,36 @@ const Kn = /* @__PURE__ */ J({
1530
1530
  }, [
1531
1531
  ht(r.$slots, "default")
1532
1532
  ], 36)), [
1533
- [m]
1533
+ [d]
1534
1534
  ]);
1535
1535
  };
1536
1536
  }
1537
1537
  });
1538
- function Jn(t, s, n) {
1538
+ function Kn(t, s, n) {
1539
1539
  const { t: e } = j();
1540
1540
  return { renderProperty: (o, i, u) => {
1541
1541
  const r = o[o.length - 1];
1542
- let m = typeof r == "number" ? `[${r + 1}]` : e(i.name);
1543
- return me(t.value, o) && (m += " *"), h(
1544
- Kn,
1542
+ let d = typeof r == "number" ? `[${r + 1}]` : e(i.name);
1543
+ return me(t.value, o) && (d += " *"), x(
1544
+ qn,
1545
1545
  {
1546
1546
  minHeight: s.value,
1547
- onMenu: (c, v) => {
1548
- de.emit("propTreeMenu", { x: c, y: v, keys: o });
1547
+ onMenu: (c, f) => {
1548
+ de.emit("propTreeMenu", { x: c, y: f, keys: o });
1549
1549
  }
1550
1550
  },
1551
1551
  () => [
1552
- h("span", {
1552
+ x("span", {
1553
1553
  style: { marginLeft: "4px", pointerEvents: "none" },
1554
- innerHTML: m
1554
+ innerHTML: d
1555
1555
  }),
1556
- h("div", { style: { width: n.value } }, u)
1556
+ x("div", { style: { width: n.value } }, u)
1557
1557
  ]
1558
1558
  );
1559
1559
  } };
1560
1560
  }
1561
1561
  function Rn(t) {
1562
- return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), h("div", "renderUiSelect property ui must be select")) : h(wn, {
1562
+ return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), x("div", "renderUiSelect property ui must be select")) : x(yn, {
1563
1563
  modelValue: ne(
1564
1564
  n,
1565
1565
  e,
@@ -1588,7 +1588,7 @@ function Rn(t) {
1588
1588
  }) };
1589
1589
  }
1590
1590
  function En(t) {
1591
- return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), h("div", "renderUiSlotSelect property ui must be slotSelect")) : h(_n, {
1591
+ return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), x("div", "renderUiSlotSelect property ui must be slotSelect")) : x(wn, {
1592
1592
  modelValue: ne(
1593
1593
  n,
1594
1594
  e,
@@ -1610,8 +1610,8 @@ function En(t) {
1610
1610
  }
1611
1611
  }) };
1612
1612
  }
1613
- function Hn(t) {
1614
- return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput property ui must be strInput")) : h(Pn, {
1613
+ function Jn(t) {
1614
+ return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), x("div", "renderUiStrInput property ui must be strInput")) : x(bn, {
1615
1615
  modelValue: e.static ? e.value : ne(
1616
1616
  n,
1617
1617
  e,
@@ -1638,8 +1638,8 @@ function Hn(t) {
1638
1638
  readonly: e.static || e.readonly
1639
1639
  }) };
1640
1640
  }
1641
- function Xn(t) {
1642
- return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), h("div", "renderUiSwitch property ui must be switch")) : h(An, {
1641
+ function Hn(t) {
1642
+ return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), x("div", "renderUiSwitch property ui must be switch")) : x(Dn, {
1643
1643
  modelValue: ne(
1644
1644
  n,
1645
1645
  e,
@@ -1666,135 +1666,219 @@ function Xn(t) {
1666
1666
  readonly: e.readonly
1667
1667
  }) };
1668
1668
  }
1669
- const Fn = /* @__PURE__ */ J({
1669
+ function Xn() {
1670
+ const t = T([]);
1671
+ Ft(t);
1672
+ const s = () => {
1673
+ const { activeApp: o, depends: i } = Qe.app, u = [];
1674
+ for (const { id: r, name: a, position: d } of o.compGroups) {
1675
+ const c = t.value.find((f) => f.id === r);
1676
+ u.push({
1677
+ id: r,
1678
+ type: 0,
1679
+ name: a,
1680
+ position: d,
1681
+ collapse: c?.collapse ?? !0
1682
+ });
1683
+ }
1684
+ for (const { id: r, groupId: a, name: d, position: c } of o.comps)
1685
+ i[r] && u.push({ id: r, type: 1, name: d, position: c, group: a });
1686
+ Ye(u, !0), t.value = u;
1687
+ };
1688
+ let n;
1689
+ const e = () => {
1690
+ clearTimeout(n), n = window.setTimeout(() => {
1691
+ s(), n && e();
1692
+ }, 1e3);
1693
+ }, l = () => {
1694
+ clearTimeout(n), n = void 0;
1695
+ };
1696
+ He(() => {
1697
+ e();
1698
+ }), Xe(() => {
1699
+ l();
1700
+ });
1701
+ }
1702
+ function Fn(t, s, n) {
1703
+ const { i18n: e } = St, l = T([]);
1704
+ zt(l);
1705
+ const o = () => {
1706
+ if (!t.value || !s.value || !n.value)
1707
+ return;
1708
+ const a = Ne[t.value];
1709
+ if (!a) {
1710
+ console.assert(!1, `invalid version=${t.value}`);
1711
+ return;
1712
+ }
1713
+ const d = $t(s.value, n.value), c = [];
1714
+ for (let h = 0; h < a.groups[d].length; h++) {
1715
+ const _ = a.groups[d][h], C = ke(l, _.key);
1716
+ c.push({
1717
+ id: _.key,
1718
+ type: 0,
1719
+ name: e.global.t(_.name),
1720
+ position: h,
1721
+ collapse: C?.collapse ?? !0,
1722
+ count: 0
1723
+ });
1724
+ for (let b = 0; b < _.items.length; b++) {
1725
+ const k = _.items[b], S = wt[k];
1726
+ S && (S.internal || !S.slots || S.slots.length <= 0 || c.push({
1727
+ id: S.key,
1728
+ type: 1,
1729
+ name: e.global.t(S.name),
1730
+ position: b,
1731
+ group: _.key
1732
+ }));
1733
+ }
1734
+ }
1735
+ const { activeApp: f, depends: v } = Qe.app;
1736
+ for (const { id: h, name: _, position: C } of f.compGroups) {
1737
+ const b = l.value.find((k) => k.id);
1738
+ c.push({
1739
+ id: h,
1740
+ type: 0,
1741
+ name: _,
1742
+ position: C,
1743
+ collapse: b?.collapse ?? !0
1744
+ });
1745
+ }
1746
+ for (const { id: h, groupId: _, name: C, position: b } of f.comps) {
1747
+ const k = v[h];
1748
+ k && (!k.meta.slots || k.meta.slots.length <= 0 || c.push({ id: h, type: 1, name: C, position: b, group: _ }));
1749
+ }
1750
+ Ye(c, !0), l.value = c;
1751
+ };
1752
+ let i;
1753
+ const u = () => {
1754
+ clearTimeout(i), i = window.setTimeout(() => {
1755
+ o(), i && u();
1756
+ }, 1e3);
1757
+ }, r = () => {
1758
+ clearTimeout(i), i = void 0;
1759
+ };
1760
+ He(() => {
1761
+ u();
1762
+ }), Xe(() => {
1763
+ r();
1764
+ }), oe([t, s, n], () => {
1765
+ o(), u();
1766
+ });
1767
+ }
1768
+ const zn = /* @__PURE__ */ R({
1670
1769
  __name: "index",
1671
1770
  props: {
1672
1771
  unique: {},
1673
1772
  config: {},
1674
1773
  object: {},
1675
- version: {}
1774
+ version: {},
1775
+ type: {},
1776
+ subtype: {}
1676
1777
  },
1677
1778
  emits: ["change"],
1678
1779
  setup(t, { emit: s }) {
1679
- const { t: n } = j(), { backgroundColor1: e } = te(), l = t, o = s, i = O("20px"), u = O("56px"), r = O("200px"), a = _t({}), m = O({}), c = (g, d) => {
1680
- Je(m, l.config, l.object), o("change", g, d);
1780
+ const { t: n } = j(), { backgroundColor1: e } = te(), l = t, o = s, i = T("20px"), u = T("56px"), r = T("200px"), a = kt({}), d = T({}), c = (p, m) => {
1781
+ Ee(d, l.config, l.object), o("change", p, m);
1681
1782
  };
1682
- ce(
1783
+ oe(
1683
1784
  [() => l.config, () => l.object],
1684
1785
  () => {
1685
- Je(
1686
- m,
1786
+ Ee(
1787
+ d,
1687
1788
  l.config,
1688
1789
  l.object,
1689
- (g, d) => {
1690
- o("change", g, d);
1790
+ (p, m) => {
1791
+ o("change", p, m);
1691
1792
  }
1692
1793
  );
1693
1794
  },
1694
1795
  { immediate: !0 }
1695
1796
  );
1696
- const v = O(l.version);
1697
- Bt(v), ce(
1797
+ const f = T(l.version);
1798
+ Bt(f), oe(
1698
1799
  () => l.version,
1699
1800
  () => {
1700
- v.value = l.version;
1801
+ f.value = l.version;
1802
+ }
1803
+ );
1804
+ const v = T(l.type);
1805
+ oe(
1806
+ () => l.type,
1807
+ () => {
1808
+ v.value = l.type;
1809
+ }
1810
+ );
1811
+ const h = T(l.subtype);
1812
+ oe(
1813
+ () => l.subtype,
1814
+ () => {
1815
+ h.value = l.subtype;
1701
1816
  }
1702
1817
  );
1703
- const f = O(l.config);
1704
- qt(f), ce(
1818
+ const _ = T(l.config);
1819
+ Ot(_), oe(
1705
1820
  () => l.config,
1706
1821
  () => {
1707
- f.value = l.config;
1822
+ _.value = l.config;
1708
1823
  }
1709
1824
  );
1710
- const V = O(l.object);
1711
- Jt(V), ce(
1825
+ const C = T(l.object);
1826
+ Kt(C), oe(
1712
1827
  () => l.object,
1713
1828
  () => {
1714
- V.value = l.object;
1829
+ C.value = l.object;
1715
1830
  }
1716
- ), Et(m), Xt(c);
1717
- const U = O([]);
1718
- zt(U);
1719
- const M = () => {
1720
- const { compGroups: g, comps: d } = wt.app.activeApp, y = [];
1721
- g.forEach(({ id: p, name: S, position: w }) => {
1722
- const N = U.value.find((le) => le.id === p);
1723
- y.push({
1724
- id: p,
1725
- type: 0,
1726
- name: S,
1727
- position: w,
1728
- collapse: N?.collapse ?? !0
1729
- });
1730
- }), d.forEach(({ id: p, groupId: S, name: w, position: N }) => {
1731
- y.push({ id: p, type: 1, name: w, position: N, group: S });
1732
- }), Ut(y, !0), U.value = y;
1733
- }, R = O([]);
1734
- Gt(R);
1735
- let k;
1736
- const x = () => {
1737
- clearTimeout(k), k = window.setTimeout(() => {
1738
- M(), k && x();
1739
- }, 1e3);
1740
- }, P = () => {
1741
- clearTimeout(k), k = void 0;
1742
- };
1743
- kt(() => {
1744
- x();
1745
- }), xt(() => {
1746
- P();
1747
- });
1748
- const { renderProperty: E } = Jn(
1749
- m,
1831
+ ), Et(d), Ht(c), Xn(), Fn(f, v, h);
1832
+ const { renderProperty: b } = Kn(
1833
+ d,
1750
1834
  u,
1751
1835
  r
1752
- ), { renderUiDummy: I } = Nn(c), { renderUiStrInput: De } = Hn(c), { renderUiNumInput: nt } = qn(c), { renderUiSwitch: lt } = Xn(c), { renderUiSelect: ot } = Rn(c), { renderUiColorPicker: st } = Ln(c), { renderUiJsonEditor: it } = On(c), { renderUiMultiTypes: ut } = Bn(c), { renderUiCompSelect: rt } = Tn(c), { renderUiSlotSelect: at } = En(c), _e = (g, d, y, p, S, w) => (g = He(g), S !== void 0 ? (g.push(S), w && g.push(d.key)) : g.push(d.key), d.ui ? d.array && p ? mt(
1753
- g,
1754
- d,
1755
- y,
1836
+ ), { renderUiDummy: k } = Ln(c), { renderUiStrInput: S } = Jn(c), { renderUiNumInput: P } = On(c), { renderUiSwitch: E } = Hn(c), { renderUiSelect: I } = Rn(c), { renderUiColorPicker: De } = An(c), { renderUiJsonEditor: it } = Nn(c), { renderUiMultiTypes: ut } = Bn(c), { renderUiCompSelect: rt } = Tn(c), { renderUiSlotSelect: at } = En(c), _e = (p, m, y, g, $, A) => (p = ze(p), $ !== void 0 ? (p.push($), A && p.push(m.key)) : p.push(m.key), m.ui ? m.array && g ? mt(
1756
1837
  p,
1757
- S,
1758
- w
1759
- ) : ft(g, d, y, S, w) : d.array ? ct(
1760
- g,
1761
- d,
1838
+ m,
1762
1839
  y,
1763
- p,
1764
- S,
1765
- w
1766
- ) : dt(
1767
1840
  g,
1768
- d,
1841
+ $,
1842
+ A
1843
+ ) : ft(p, m, y, $, A) : m.array ? ct(
1844
+ p,
1845
+ m,
1769
1846
  y,
1847
+ g,
1848
+ $,
1849
+ A
1850
+ ) : dt(
1770
1851
  p,
1771
- S,
1772
- w
1773
- )), ct = (g, d, y, p, S, w) => {
1774
- if (d.ui)
1775
- return console.assert(!1), h("div", "renderBranchArray property ui must be invalid");
1776
- if (!d.array)
1777
- return console.assert(!1), h("div", "renderBranchArray property array must be valid");
1778
- if (!p)
1779
- return console.assert(!1), h("div", "renderBranchArray branch must be valid");
1780
- let N;
1781
- S !== void 0 && !w ? (y[S] instanceof Array || (y[S] = H(d), c(g, y[d.key])), N = y[S]) : (y[d.key] instanceof Array || (y[d.key] = H(d), c(g, y[d.key])), N = y[d.key]);
1782
- let le = n(d.name);
1783
- p.collapse && me(m.value, g) && (le += " *");
1784
- const pe = h(Se, {
1785
- title: le,
1786
- collapse: p.collapse,
1852
+ m,
1853
+ y,
1854
+ g,
1855
+ $,
1856
+ A
1857
+ )), ct = (p, m, y, g, $, A) => {
1858
+ if (m.ui)
1859
+ return console.assert(!1), x("div", "renderBranchArray property ui must be invalid");
1860
+ if (!m.array)
1861
+ return console.assert(!1), x("div", "renderBranchArray property array must be valid");
1862
+ if (!g)
1863
+ return console.assert(!1), x("div", "renderBranchArray branch must be valid");
1864
+ let H;
1865
+ $ !== void 0 && !A ? (y[$] instanceof Array || (y[$] = J(m), c(p, y[m.key])), H = y[$]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
1866
+ let ie = n(m.name);
1867
+ g.collapse && me(d.value, p) && (ie += " *");
1868
+ const pe = x(Ce, {
1869
+ title: ie,
1870
+ collapse: g.collapse,
1787
1871
  hasCreate: !0,
1788
- onCollapse: ($) => {
1789
- p.collapse = $;
1872
+ onCollapse: (w) => {
1873
+ g.collapse = w;
1790
1874
  },
1791
- onMenu: ($, L) => {
1792
- de.emit("propTreeMenu", { x: $, y: L, keys: g });
1875
+ onMenu: (w, N) => {
1876
+ de.emit("propTreeMenu", { x: w, y: N, keys: p });
1793
1877
  },
1794
1878
  onCreate: () => {
1795
- N.push({}), c(g, N);
1879
+ H.push({}), c(p, H);
1796
1880
  }
1797
- }), Y = h(
1881
+ }), Y = x(
1798
1882
  "div",
1799
1883
  {
1800
1884
  style: {
@@ -1802,44 +1886,44 @@ const Fn = /* @__PURE__ */ J({
1802
1886
  }
1803
1887
  },
1804
1888
  (() => {
1805
- const $ = [];
1806
- for (let L = 0; L < N.length; L++) {
1807
- if (!Ae(p.children)) {
1889
+ const w = [];
1890
+ for (let N = 0; N < H.length; N++) {
1891
+ if (!Ae(g.children)) {
1808
1892
  console.assert(!1);
1809
1893
  break;
1810
1894
  }
1811
- p.children[L] || p.children.push({
1895
+ g.children[N] || g.children.push({
1812
1896
  collapse: !0,
1813
1897
  children: {}
1814
1898
  });
1815
- const ke = [...g, L], xe = p.children[L];
1816
- let Be = `[${L + 1}]`;
1817
- p.children[L].collapse && me(m.value, ke) && (Be += " *");
1818
- const pt = h(Se, {
1819
- title: Be,
1820
- collapse: p.children[L].collapse,
1899
+ const xe = [...p, N], Ve = g.children[N];
1900
+ let qe = `[${N + 1}]`;
1901
+ g.children[N].collapse && me(d.value, xe) && (qe += " *");
1902
+ const pt = x(Ce, {
1903
+ title: qe,
1904
+ collapse: g.children[N].collapse,
1821
1905
  hasDelete: !0,
1822
- index: L,
1823
- onCollapse: (oe) => {
1824
- if (!Ae(p.children)) {
1906
+ index: N,
1907
+ onCollapse: (le) => {
1908
+ if (!Ae(g.children)) {
1825
1909
  console.assert(!1);
1826
1910
  return;
1827
1911
  }
1828
- p.children[L].collapse = oe;
1912
+ g.children[N].collapse = le;
1829
1913
  },
1830
- onMenu: (oe, ie) => {
1831
- de.emit("propTreeMenu", { x: oe, y: ie, keys: ke });
1914
+ onMenu: (le, ue) => {
1915
+ de.emit("propTreeMenu", { x: le, y: ue, keys: xe });
1832
1916
  },
1833
- onDelete: (oe) => {
1834
- if (!Ae(p.children)) {
1917
+ onDelete: (le) => {
1918
+ if (!Ae(g.children)) {
1835
1919
  console.assert(!1);
1836
1920
  return;
1837
1921
  }
1838
- p.children.splice(oe, 1), N.splice(oe, 1), c(g, N);
1922
+ g.children.splice(le, 1), H.splice(le, 1), c(p, H);
1839
1923
  }
1840
1924
  });
1841
- $.push(pt);
1842
- const gt = h(
1925
+ w.push(pt);
1926
+ const gt = x(
1843
1927
  "div",
1844
1928
  {
1845
1929
  style: {
@@ -1847,34 +1931,34 @@ const Fn = /* @__PURE__ */ J({
1847
1931
  }
1848
1932
  },
1849
1933
  (() => {
1850
- const oe = [];
1851
- return d.children.forEach((ie) => {
1852
- if (!Ke(xe.children)) {
1934
+ const le = [];
1935
+ return m.children.forEach((ue) => {
1936
+ if (!Re(Ve.children)) {
1853
1937
  console.assert(!1);
1854
1938
  return;
1855
1939
  }
1856
- xe.children[ie.key] || (xe.children[ie.key] = {
1940
+ Ve.children[ue.key] || (Ve.children[ue.key] = {
1857
1941
  collapse: !0,
1858
- children: ie.array ? [] : {}
1942
+ children: ue.array ? [] : {}
1859
1943
  });
1860
1944
  const yt = _e(
1861
- g,
1862
- ie,
1863
- N[L],
1864
- xe.children[ie.key],
1865
- L,
1945
+ p,
1946
+ ue,
1947
+ H[N],
1948
+ Ve.children[ue.key],
1949
+ N,
1866
1950
  !0
1867
1951
  );
1868
- oe.push(yt);
1869
- }), oe;
1952
+ le.push(yt);
1953
+ }), le;
1870
1954
  })()
1871
1955
  );
1872
- p.children[L].collapse || $.push(gt);
1956
+ g.children[N].collapse || w.push(gt);
1873
1957
  }
1874
- return $;
1958
+ return w;
1875
1959
  })()
1876
1960
  );
1877
- return h(
1961
+ return x(
1878
1962
  "div",
1879
1963
  {
1880
1964
  style: {
@@ -1882,33 +1966,33 @@ const Fn = /* @__PURE__ */ J({
1882
1966
  }
1883
1967
  },
1884
1968
  (() => {
1885
- const $ = [];
1886
- return $.push(pe), p.collapse || $.push(Y), $;
1969
+ const w = [];
1970
+ return w.push(pe), g.collapse || w.push(Y), w;
1887
1971
  })()
1888
1972
  );
1889
- }, dt = (g, d, y, p, S, w) => {
1890
- if (d.ui)
1891
- return console.assert(!1), h("div", "renderBranchScalar property ui must be invalid");
1892
- if (d.array)
1893
- return console.assert(!1), h("div", "renderBranchScalar property array must be invalid");
1894
- if (!p)
1895
- return console.assert(!1), h("div", "renderBranchScalar branch must be valid");
1896
- let N = n(d.name);
1897
- p.collapse && me(m.value, g) && (N += " *");
1898
- const le = h(Se, {
1899
- title: N,
1900
- collapse: p.collapse,
1901
- hasDelete: S !== void 0 && !w,
1973
+ }, dt = (p, m, y, g, $, A) => {
1974
+ if (m.ui)
1975
+ return console.assert(!1), x("div", "renderBranchScalar property ui must be invalid");
1976
+ if (m.array)
1977
+ return console.assert(!1), x("div", "renderBranchScalar property array must be invalid");
1978
+ if (!g)
1979
+ return console.assert(!1), x("div", "renderBranchScalar branch must be valid");
1980
+ let H = n(m.name);
1981
+ g.collapse && me(d.value, p) && (H += " *");
1982
+ const ie = x(Ce, {
1983
+ title: H,
1984
+ collapse: g.collapse,
1985
+ hasDelete: $ !== void 0 && !A,
1902
1986
  onCollapse: (Y) => {
1903
- p.collapse = Y;
1987
+ g.collapse = Y;
1904
1988
  },
1905
- onMenu: (Y, $) => {
1906
- de.emit("propTreeMenu", { x: Y, y: $, keys: g });
1989
+ onMenu: (Y, w) => {
1990
+ de.emit("propTreeMenu", { x: Y, y: w, keys: p });
1907
1991
  },
1908
1992
  onDelete: () => {
1909
- S === void 0 || w || (y.splice(S, 1), c(g.slice(0, -1), y));
1993
+ $ === void 0 || A || (y.splice($, 1), c(p.slice(0, -1), y));
1910
1994
  }
1911
- }), pe = h(
1995
+ }), pe = x(
1912
1996
  "div",
1913
1997
  {
1914
1998
  style: {
@@ -1917,26 +2001,26 @@ const Fn = /* @__PURE__ */ J({
1917
2001
  },
1918
2002
  (() => {
1919
2003
  const Y = [];
1920
- return d.children.forEach(($) => {
1921
- if (!Ke(p.children)) {
2004
+ return m.children.forEach((w) => {
2005
+ if (!Re(g.children)) {
1922
2006
  console.assert(!1);
1923
2007
  return;
1924
2008
  }
1925
- p.children[$.key] || (p.children[$.key] = {
2009
+ g.children[w.key] || (g.children[w.key] = {
1926
2010
  collapse: !0,
1927
- children: !$.ui && $.array ? [] : {}
2011
+ children: !w.ui && w.array ? [] : {}
1928
2012
  });
1929
- const L = _e(
1930
- g,
1931
- $,
1932
- (typeof y[d.key] != "object" && (y[d.key] = {}, c(g, y[d.key])), y[d.key]),
1933
- p.children[$.key]
2013
+ const N = _e(
2014
+ p,
2015
+ w,
2016
+ (typeof y[m.key] != "object" && (y[m.key] = {}, c(p, y[m.key])), y[m.key]),
2017
+ g.children[w.key]
1934
2018
  );
1935
- Y.push(L);
2019
+ Y.push(N);
1936
2020
  }), Y;
1937
2021
  })()
1938
2022
  );
1939
- return h(
2023
+ return x(
1940
2024
  "div",
1941
2025
  {
1942
2026
  style: {
@@ -1945,34 +2029,34 @@ const Fn = /* @__PURE__ */ J({
1945
2029
  },
1946
2030
  (() => {
1947
2031
  const Y = [];
1948
- return Y.push(le), p.collapse || Y.push(pe), Y;
2032
+ return Y.push(ie), g.collapse || Y.push(pe), Y;
1949
2033
  })()
1950
2034
  );
1951
- }, mt = (g, d, y, p, S, w) => {
1952
- if (!d.ui)
1953
- return console.assert(!1), h("div", "renderLeafArray property ui must be valid");
1954
- if (!d.array)
1955
- return console.assert(!1), h("div", "renderLeafArray property array must be valid");
1956
- if (!p)
1957
- return console.assert(!1), h("div", "renderLeafArray branch must be valid");
1958
- let N;
1959
- S !== void 0 && !w ? (y[S] instanceof Array || (y[S] = H(d), c(g, y[S])), N = y[S]) : (y[d.key] instanceof Array || (y[d.key] = H(d), c(g, y[d.key])), N = y[d.key]);
1960
- let le = n(d.name);
1961
- p.collapse && me(m.value, g) && (le += " *");
1962
- const pe = h(Se, {
1963
- title: le,
1964
- collapse: p.collapse,
2035
+ }, mt = (p, m, y, g, $, A) => {
2036
+ if (!m.ui)
2037
+ return console.assert(!1), x("div", "renderLeafArray property ui must be valid");
2038
+ if (!m.array)
2039
+ return console.assert(!1), x("div", "renderLeafArray property array must be valid");
2040
+ if (!g)
2041
+ return console.assert(!1), x("div", "renderLeafArray branch must be valid");
2042
+ let H;
2043
+ $ !== void 0 && !A ? (y[$] instanceof Array || (y[$] = J(m), c(p, y[$])), H = y[$]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
2044
+ let ie = n(m.name);
2045
+ g.collapse && me(d.value, p) && (ie += " *");
2046
+ const pe = x(Ce, {
2047
+ title: ie,
2048
+ collapse: g.collapse,
1965
2049
  hasCreate: !0,
1966
- onCollapse: ($) => {
1967
- p.collapse = $;
2050
+ onCollapse: (w) => {
2051
+ g.collapse = w;
1968
2052
  },
1969
- onMenu: ($, L) => {
1970
- de.emit("propTreeMenu", { x: $, y: L, keys: g });
2053
+ onMenu: (w, N) => {
2054
+ de.emit("propTreeMenu", { x: w, y: N, keys: p });
1971
2055
  },
1972
2056
  onCreate: () => {
1973
- N.push(H(d, !0)), c(g, N);
2057
+ H.push(J(m, !0)), c(p, H);
1974
2058
  }
1975
- }), Y = h(
2059
+ }), Y = x(
1976
2060
  "div",
1977
2061
  {
1978
2062
  style: {
@@ -1980,15 +2064,15 @@ const Fn = /* @__PURE__ */ J({
1980
2064
  }
1981
2065
  },
1982
2066
  (() => {
1983
- const $ = [];
1984
- for (let L = 0; L < N.length; L++) {
1985
- const ke = _e(g, d, N, void 0, L, !1);
1986
- $.push(ke);
2067
+ const w = [];
2068
+ for (let N = 0; N < H.length; N++) {
2069
+ const xe = _e(p, m, H, void 0, N, !1);
2070
+ w.push(xe);
1987
2071
  }
1988
- return $;
2072
+ return w;
1989
2073
  })()
1990
2074
  );
1991
- return h(
2075
+ return x(
1992
2076
  "div",
1993
2077
  {
1994
2078
  style: {
@@ -1996,16 +2080,16 @@ const Fn = /* @__PURE__ */ J({
1996
2080
  }
1997
2081
  },
1998
2082
  (() => {
1999
- const $ = [];
2000
- return $.push(pe), p.collapse || $.push(Y), $;
2083
+ const w = [];
2084
+ return w.push(pe), g.collapse || w.push(Y), w;
2001
2085
  })()
2002
2086
  );
2003
- }, ft = (g, d, y, p, S) => {
2004
- if (!d.ui)
2005
- return console.assert(!1), h("div", "renderLeafScalar property ui must be valid");
2006
- let w;
2007
- return d.ui === "dummy" ? w = I(g, d, y, p, S) : d.ui === "strInput" ? w = De(g, d, y, p, S) : d.ui === "numInput" ? w = nt(g, d, y, p, S) : d.ui === "switch" ? w = lt(g, d, y, p, S) : d.ui === "select" ? w = ot(g, d, y, p, S) : d.ui === "colorPicker" ? w = st(g, d, y, p, S) : d.ui === "jsonEditor" ? w = it(g, d, y, p, S) : d.ui === "multiTypes" ? w = ut(g, d, y, p, S) : d.ui === "compSelect" ? w = rt(g, d, y, p, S) : d.ui === "slotSelect" ? w = at(g, d, y, p, S) : console.assert(!1, "renderLeafScalar not implemented"), w ? E(g, d, w) : h("div");
2008
- }, vt = () => h(
2087
+ }, ft = (p, m, y, g, $) => {
2088
+ if (!m.ui)
2089
+ return console.assert(!1), x("div", "renderLeafScalar property ui must be valid");
2090
+ let A;
2091
+ return m.ui === "dummy" ? A = k(p, m, y, g, $) : m.ui === "strInput" ? A = S(p, m, y, g, $) : m.ui === "numInput" ? A = P(p, m, y, g, $) : m.ui === "switch" ? A = E(p, m, y, g, $) : m.ui === "select" ? A = I(p, m, y, g, $) : m.ui === "colorPicker" ? A = De(p, m, y, g, $) : m.ui === "jsonEditor" ? A = it(p, m, y, g, $) : m.ui === "multiTypes" ? A = ut(p, m, y, g, $) : m.ui === "compSelect" ? A = rt(p, m, y, g, $) : m.ui === "slotSelect" ? A = at(p, m, y, g, $) : console.assert(!1, "renderLeafScalar not implemented"), A ? b(p, m, A) : x("div");
2092
+ }, vt = () => x(
2009
2093
  "div",
2010
2094
  {
2011
2095
  class: "text-body-2",
@@ -2014,49 +2098,49 @@ const Fn = /* @__PURE__ */ J({
2014
2098
  }
2015
2099
  },
2016
2100
  (() => {
2017
- const g = [];
2101
+ const p = [];
2018
2102
  if (l.unique && l.config.length > 0 && l.object) {
2019
2103
  a[l.unique] || (a[l.unique] = {});
2020
- const d = a[l.unique];
2104
+ const m = a[l.unique];
2021
2105
  l.config.forEach((y) => {
2022
- d[y.key] || (d[y.key] = {
2106
+ m[y.key] || (m[y.key] = {
2023
2107
  collapse: !0,
2024
2108
  children: !y.ui && y.array ? [] : {}
2025
2109
  });
2026
- const p = _e(
2110
+ const g = _e(
2027
2111
  [],
2028
2112
  y,
2029
2113
  l.object,
2030
- d[y.key]
2114
+ m[y.key]
2031
2115
  );
2032
- g.push(p);
2116
+ p.push(g);
2033
2117
  });
2034
2118
  }
2035
- return g;
2119
+ return p;
2036
2120
  })()
2037
2121
  );
2038
- return (g, d) => (_(), q(fe, null, [
2039
- b(vt),
2040
- b(Yt, {
2122
+ return (p, m) => (V(), q(fe, null, [
2123
+ M(vt),
2124
+ M(Gt, {
2041
2125
  config: l.config,
2042
2126
  object: l.object,
2043
- "property-states": m.value
2127
+ "property-states": d.value
2044
2128
  }, null, 8, ["config", "object", "property-states"])
2045
2129
  ], 64));
2046
2130
  }
2047
- }), zn = (t) => {
2048
- t.component("XPropTree", Fn);
2049
- }, Gn = (t, s, n) => {
2131
+ }), Gn = (t) => {
2132
+ t.component("XPropTree", zn);
2133
+ }, Yn = (t, s, n) => {
2050
2134
  const e = t[s];
2051
2135
  return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((l, o) => {
2052
2136
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
2053
2137
  });
2054
2138
  };
2055
- async function nl(t) {
2056
- return (await Gn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.n11iysmh.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.hr18mfah.js") }), `./locales/${t}/index.ts`, 4)).default;
2139
+ async function ll(t) {
2140
+ return (await Yn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.fwi8tazn.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.ju37v3iz.js") }), `./locales/${t}/index.ts`, 4)).default;
2057
2141
  }
2058
- const ll = { install: zn };
2142
+ const ol = { install: Gn };
2059
2143
  export {
2060
- ll as default,
2061
- nl as loadLocaleMessagePropTree
2144
+ ol as default,
2145
+ ll as loadLocaleMessagePropTree
2062
2146
  };