x-prop-tree 0.7.16 → 0.7.17

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 (32) hide show
  1. package/dist/components/values/index.d.ts +7 -7
  2. package/dist/composables/compList/index.d.ts +1 -0
  3. package/dist/composables/slotList/index.d.ts +1 -0
  4. package/dist/{i18n-en.n11iysmh.js → i18n-en.fwi8tazn.js} +7 -3
  5. package/dist/{i18n-zhHans.hr18mfah.js → i18n-zhHans.ju37v3iz.js} +7 -3
  6. package/dist/index.js +842 -796
  7. package/dist/utils/index.d.ts +1 -1
  8. package/dist/utils/propertyState.d.ts +1 -1
  9. package/dist/utils/provideInject.d.ts +1 -1
  10. package/package.json +4 -4
  11. /package/dist/components/{common/entry.vue.d.ts → entry/index.vue.d.ts} +0 -0
  12. /package/dist/components/{common/menu.vue.d.ts → menu/index.vue.d.ts} +0 -0
  13. /package/dist/components/{common/title.vue.d.ts → title/index.vue.d.ts} +0 -0
  14. /package/dist/components/values/{colorPicker.vue.d.ts → colorPicker/index.vue.d.ts} +0 -0
  15. /package/dist/components/values/{multiTypes.vue.d.ts → multiTypes/index.vue.d.ts} +0 -0
  16. /package/dist/components/values/{numInput.vue.d.ts → numInput/index.vue.d.ts} +0 -0
  17. /package/dist/components/values/{select.vue.d.ts → select/index.vue.d.ts} +0 -0
  18. /package/dist/components/values/{strInput.vue.d.ts → strInput/index.vue.d.ts} +0 -0
  19. /package/dist/components/values/{switch.vue.d.ts → switch/index.vue.d.ts} +0 -0
  20. /package/dist/composables/{ui → uis}/index.d.ts +0 -0
  21. /package/dist/composables/{ui → uis}/uiColorPicker.d.ts +0 -0
  22. /package/dist/composables/{ui → uis}/uiCompSelect.d.ts +0 -0
  23. /package/dist/composables/{ui → uis}/uiDummy.d.ts +0 -0
  24. /package/dist/composables/{ui → uis}/uiJsonEditor.d.ts +0 -0
  25. /package/dist/composables/{ui → uis}/uiMultiTypes.d.ts +0 -0
  26. /package/dist/composables/{ui → uis}/uiNumInput.d.ts +0 -0
  27. /package/dist/composables/{ui → uis}/uiProperty.d.ts +0 -0
  28. /package/dist/composables/{ui → uis}/uiSelect.d.ts +0 -0
  29. /package/dist/composables/{ui → uis}/uiSlotSelect.d.ts +0 -0
  30. /package/dist/composables/{ui → uis}/uiStrInput.d.ts +0 -0
  31. /package/dist/composables/{ui → uis}/uiSwitch.d.ts +0 -0
  32. /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 re, inject as ae, defineComponent as K, ref as N, computed as A, resolveComponent as S, createBlock as L, openBlock as _, unref as b, isRef as ue, withCtx as q, createVNode as M, createElementBlock as O, 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, mergeModels as Q, useModel as z, useId as Ce, onUnmounted as Ue, mergeProps as $e, withKeys as Ne, useTemplateRef as Je, watch as ce, watchEffect as Ke, h, renderSlot as gt, onMounted as He, onBeforeUnmount as Xe, reactive as yt } 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 ht, injectLocale as _t, openNumberDlg as Fe, openPromptDlg as kt } from "x-essential-lib";
4
+ import { getPropertyDefault as J, pkgs as Be, parsePixelStr as xt, parsePercentStr as Vt, elements as St } from "x-runtime-lib";
5
+ import { c as ze, i as we, r as Me, v as Ge, d as Ye } from "./vendor.f0ug048x.js";
6
+ import { useDisplay as We } from "vuetify";
7
+ import { XBlockly as Ct } from "x-block-lib";
8
+ import { globalState as Qe } from "x-state-lib";
9
+ const Ee = (t) => !(t instanceof Array), Te = (t) => t instanceof Array, Ut = (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
+ }, Ve = (t, s) => {
10
24
  let n = {
11
25
  key: "",
12
26
  name: "",
@@ -41,49 +55,35 @@ 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];
61
75
  }
62
- }, se = (t, s, n, e, l, o, i) => {
76
+ }, oe = (t, s, n, e, l, o, i) => {
63
77
  if (o !== void 0)
64
78
  i ? e !== n[s.key] && (n[s.key] = e, l(t, n[s.key])) : e !== n[o] && (n[o] = e, l(t, n[o]));
65
79
  else {
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
+ }, Oe = (t) => !(t instanceof Array), Pe = (t) => t instanceof Array, $t = [
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
+ ], wt = (t) => $t.find((s) => we(t, s)), be = (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), wt(t) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && Pe(e.children) ? bt(
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
+ ) : Dt(
95
95
  s,
96
96
  n,
97
97
  e,
98
98
  o,
99
99
  i
100
- ) : s.array ? Lt(
100
+ ) : s.array ? Mt(
101
101
  t,
102
102
  s,
103
103
  n,
@@ -105,7 +105,7 @@ const Ve = (t, s) => {
105
105
  l,
106
106
  o,
107
107
  i
108
- ) : Tt(
108
+ ) : Pt(
109
109
  t,
110
110
  s,
111
111
  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
+ )), Mt = (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)
@@ -121,40 +121,40 @@ const Ve = (t, s) => {
121
121
  !1,
122
122
  "execPropertyBranchArray property array must be valid"
123
123
  ), !1;
124
- if (!e.children || !be(e.children))
124
+ if (!e.children || !Pe(e.children))
125
125
  return console.assert(
126
126
  !1,
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 || !Oe(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 ? [] : {}
145
- }, Pe(
144
+ children: d.array ? [] : {}
145
+ }, be(
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;
157
- }, Tt = (t, s, n, e, l, o, i) => {
156
+ return e.change || (e.change = !we(u, J(s))), e.change;
157
+ }, Pt = (t, s, n, e, l, o, i) => {
158
158
  if (s.ui)
159
159
  return console.assert(
160
160
  !1,
@@ -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 || !Oe(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;
@@ -174,23 +174,23 @@ const Ve = (t, s) => {
174
174
  e.children[a.key] = {
175
175
  change: !1,
176
176
  children: a.array ? [] : {}
177
- }, Pe(t, a, u, e.children[a.key], l) && (e.change = !0);
177
+ }, be(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
+ }, bt = (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)
184
184
  return console.assert(!1, "execPropertyLeafArray property aray must be valid"), !1;
185
- if (!e.children || !be(e.children))
185
+ if (!e.children || !Pe(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,
192
192
  children: {}
193
- }, Pe(
193
+ }, be(
194
194
  t,
195
195
  s,
196
196
  u,
@@ -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 = !we(u, J(s))), e.change;
203
+ }, Dt = (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 = !we(o, J(t, !0)), n.change;
208
+ }, Re = (t, s, n, e) => {
209
209
  if (s.length <= 0 || !n) {
210
210
  t.value = {};
211
211
  return;
@@ -215,7 +215,7 @@ const Ve = (t, s) => {
215
215
  l[o.key] = {
216
216
  change: !1,
217
217
  children: o.array ? [] : {}
218
- }, Pe([], o, n, l[o.key], e);
218
+ }, be([], o, n, l[o.key], e);
219
219
  }), t.value = l;
220
220
  }, me = (t, s) => {
221
221
  let n = {
@@ -227,158 +227,158 @@ 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" ? Oe(n.children) && (n = n.children[e]) : Pe(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();
233
- function Bt(t) {
234
- re(Ge, t);
232
+ }, Ze = Symbol(), je = Symbol(), Ie = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), lt = Symbol();
233
+ function At(t) {
234
+ re(Ze, t);
235
235
  }
236
- function Oe() {
237
- return ae(Ge);
236
+ function De() {
237
+ return ae(Ze);
238
238
  }
239
- function qt(t) {
240
- re(Ye, t);
239
+ function Tt(t) {
240
+ re(je, t);
241
241
  }
242
- function Kt() {
243
- return ae(Ye);
242
+ function Lt() {
243
+ return ae(je);
244
244
  }
245
- function Jt(t) {
246
- re(We, t);
245
+ function Nt(t) {
246
+ re(Ie, t);
247
247
  }
248
- function Rt() {
249
- return ae(We);
248
+ function Bt() {
249
+ return ae(Ie);
250
250
  }
251
- function Et(t) {
252
- re(Qe, t);
251
+ function Ot(t) {
252
+ re(et, t);
253
253
  }
254
- function Ht() {
255
- return ae(Qe);
254
+ function qt() {
255
+ return ae(et);
256
256
  }
257
- function Xt(t) {
258
- re(Ze, t);
257
+ function Kt(t) {
258
+ re(tt, t);
259
259
  }
260
- function Ft() {
261
- return ae(Ze);
260
+ function Et() {
261
+ return ae(tt);
262
262
  }
263
- function zt(t) {
264
- re(je, t);
263
+ function Rt(t) {
264
+ re(nt, t);
265
265
  }
266
- function et() {
267
- return ae(je);
266
+ function ot() {
267
+ return ae(nt);
268
268
  }
269
- function Gt(t) {
270
- re(Ie, t);
269
+ function Jt(t) {
270
+ re(lt, t);
271
271
  }
272
- function tt() {
273
- return ae(Ie);
272
+ function st() {
273
+ return ae(lt);
274
274
  }
275
- const Yt = /* @__PURE__ */ J({
276
- __name: "menu",
275
+ const Ht = /* @__PURE__ */ K({
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 = Lt(), e = Bt(), l = qt(), o = Et(), i = N(0), u = N(0), r = N([]), a = A(() => [i.value, u.value]), d = (w) => {
279
+ const E = () => !(r.value.length <= 0 || !me(l.value, r.value)), x = () => {
280
+ const V = Ve(n.value, r.value);
281
+ if (V)
282
+ if (V.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(V), o(r.value, P[r.value[r.value.length - 1]]);
287
+ } else if (V.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");
291
291
  return;
292
292
  }
293
293
  if (typeof P == "string") {
294
- const E = ge(e.value, r.value.slice(0, -1));
295
- if (!E)
294
+ const R = ge(e.value, r.value.slice(0, -1));
295
+ if (!R)
296
296
  return;
297
- E[r.value[r.value.length - 1]] = H(x), o(r.value, E[r.value[r.value.length - 1]]);
297
+ R[r.value[r.value.length - 1]] = J(V), o(r.value, R[r.value[r.value.length - 1]]);
298
298
  } else {
299
- const E = ge(e.value, r.value);
300
- if (!E)
299
+ const R = ge(e.value, r.value);
300
+ if (!R)
301
301
  return;
302
- x.children.forEach((I) => {
303
- E[I.key] = H(x), o([...r.value, I.key], E[I.key]);
302
+ V.children.forEach((I) => {
303
+ R[I.key] = J(V), o([...r.value, I.key], R[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
+ V.children.forEach((R) => {
311
+ P[R.key] = J(V), o([...r.value, R.key], P[R.key]);
312
312
  });
313
313
  }
314
314
  };
315
- R() && M.push({
315
+ E() && w.push({
316
316
  title: s("x-prop-tree.reset"),
317
- func: k
317
+ func: x
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 = (w) => {
320
+ const E = () => {
321
+ const x = Ve(n.value, r.value), V = ge(e.value, r.value);
322
+ localStorage.setItem("propTreeCopy", JSON.stringify({ property: x, object: V }));
323
323
  };
324
- M.push({
324
+ w.push({
325
325
  title: s("x-prop-tree.copy"),
326
- func: R
326
+ func: E
327
327
  });
328
- }, v = (M) => {
329
- const R = () => {
330
- const x = localStorage.getItem("propTreeCopy");
331
- if (!x)
328
+ }, v = (w) => {
329
+ const E = () => {
330
+ const V = localStorage.getItem("propTreeCopy");
331
+ if (!V)
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(V), R = Ve(n.value, r.value);
335
+ return Ut(P, R);
336
336
  } catch (P) {
337
337
  console.error(P);
338
338
  }
339
339
  return !1;
340
- }, k = () => {
341
- if (!R())
340
+ }, x = () => {
341
+ if (!E())
342
342
  return;
343
- const x = localStorage.getItem("propTreeCopy");
344
- if (x)
343
+ const V = localStorage.getItem("propTreeCopy");
344
+ if (V)
345
345
  try {
346
- const { object: P } = JSON.parse(x), E = Ve(n.value, r.value);
347
- console.log(P, E);
346
+ const { object: P } = JSON.parse(V), R = Ve(n.value, r.value);
347
+ console.log(P, R);
348
348
  } catch (P) {
349
349
  console.error(P);
350
350
  }
351
351
  };
352
- R() && M.push({
352
+ E() && w.push({
353
353
  title: s("x-prop-tree.paste"),
354
- func: k
354
+ func: x
355
355
  });
356
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),
357
+ const w = [];
358
+ return d(w), c(w), v(w), w;
359
+ }), k = (w) => {
360
+ i.value = w.x, u.value = w.y, r.value = w.keys;
361
+ }, { open: C } = he("propTreeMenu", k);
362
+ return (w, E) => {
363
+ const x = S("v-list-item-title"), V = S("v-list-item"), P = S("v-list"), R = S("v-menu");
364
+ return _(), L(R, {
365
+ modelValue: b(C),
366
+ "onUpdate:modelValue": E[0] || (E[0] = (I) => ue(C) ? C.value = I : null),
367
367
  "location-strategy": "connected",
368
368
  scrim: "transparent",
369
369
  target: a.value
370
370
  }, {
371
- default: K(() => [
372
- b(P, null, {
373
- default: K(() => [
374
- (_(!0), q(fe, null, Le(f.value, (I, De) => (_(), T(x, {
375
- key: De,
371
+ default: q(() => [
372
+ M(P, null, {
373
+ default: q(() => [
374
+ (_(!0), O(fe, null, Le(f.value, (I, Ae) => (_(), L(V, {
375
+ key: Ae,
376
376
  link: "",
377
377
  onClick: I.func
378
378
  }, {
379
- default: K(() => [
380
- b(k, null, {
381
- default: K(() => [
379
+ default: q(() => [
380
+ M(x, null, {
381
+ default: q(() => [
382
382
  ye(F(I.title), 1)
383
383
  ]),
384
384
  _: 2
@@ -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
+ }), Xt = { style: { pointerEvents: "none" } }, Se = /* @__PURE__ */ K({
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 = N(!1), i = A(() => ({
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 = S("v-icon"), v = S("v-spacer"), f = S("v-btn"), k = ee("ripple");
420
+ return Z((_(), O("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] = (C) => o.value = !1),
426
+ onMouseover: d[3] || (d[3] = (C) => 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
+ B("span", Xt, F(t.title), 1),
433
+ M(v),
434
+ t.hasCreate ? (_(), L(f, {
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((C) => l("create"), ["stop"]))
441
441
  })) : G("", !0),
442
- t.hasDelete ? (_(), T(f, {
442
+ t.hasDelete ? (_(), L(f, {
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((C) => l("delete", t.index), ["stop"]))
449
449
  })) : G("", !0)
450
450
  ], 36)), [
451
- [V]
451
+ [k]
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
+ }), Ft = { class: "d-flex justify-space-between align-center" }, zt = /* @__PURE__ */ K({
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 = A(() => {
467
+ let r = "100%";
468
+ return t.hasDelete && (r = "calc(100% - 37px)"), {
469
+ width: r
470
+ };
471
+ }), i = A(() => t.readonly), { open: u } = he(`propTreeColorPickerMenu${Ce()}`);
472
+ return Ue(() => {
473
+ u.value = !1;
474
+ }), (r, a) => {
475
+ const d = S("v-btn"), c = S("v-color-picker"), v = S("v-menu");
476
+ return _(), L(v, {
477
+ modelValue: b(u),
478
+ "onUpdate:modelValue": a[2] || (a[2] = (f) => ue(u) ? u.value = f : null),
479
+ "close-on-content-click": !1,
480
+ scrim: "transparent"
481
+ }, {
482
+ activator: q(({ props: f }) => [
483
+ B("div", Ft, [
484
+ B("div", {
485
+ class: "flex-grow-1",
486
+ style: W(o.value)
487
+ }, [
488
+ M(d, $e(f, {
489
+ block: "",
490
+ color: e.value,
491
+ density: "comfortable",
492
+ disabled: i.value
493
+ }), {
494
+ default: q(() => [
495
+ ye(F(e.value ? e.value : b(n)("x-runtime-lib.notSet")), 1)
496
+ ]),
497
+ _: 1
498
+ }, 16, ["color", "disabled"])
499
+ ], 4),
500
+ t.hasDelete ? (_(), L(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((k) => l("delete"), ["stop"]))
507
+ })) : G("", !0)
508
+ ])
509
+ ]),
510
+ default: q(() => [
511
+ M(c, {
512
+ modelValue: e.value,
513
+ "onUpdate:modelValue": a[1] || (a[1] = (f) => e.value = f),
514
+ mode: "hexa",
515
+ "show-swatches": "",
516
+ "swatches-max-height": "150px"
517
+ }, null, 8, ["modelValue"])
518
+ ]),
519
+ _: 1
520
+ }, 8, ["modelValue"]);
521
+ };
522
+ }
523
+ }), Gt = { class: "text-subtitle-2 ml-1" }, Yt = { class: "text-caption text-grey ml-1" }, Wt = /* @__PURE__ */ K({
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 = N(!1), u = A(() => ({
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 = S("v-icon"), c = ee("ripple");
541
+ return Z((_(), O("div", {
474
542
  class: "d-flex align-center cursor-pointer",
475
543
  style: W(u.value),
476
544
  onClick: a[0] || (a[0] = (v) => o("x-click", l.id)),
477
545
  onMouseout: a[1] || (a[1] = (v) => i.value = !1),
478
546
  onMouseover: a[2] || (a[2] = (v) => 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
+ B("span", Gt, F(l.title), 1),
553
+ B("span", Yt, 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
+ }), Qt = { class: "text-subtitle-1 ml-6" }, Zt = /* @__PURE__ */ K({
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 = N(!1), u = A(() => ({
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((_(), O("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
+ B("span", Qt, F(l.title), 1)
515
583
  ], 36)), [
516
- [m]
584
+ [d]
517
585
  ]);
518
586
  };
519
587
  }
520
- }), tn = { key: 0 }, nn = {
588
+ }), jt = { key: 0 }, It = {
521
589
  key: 1,
522
590
  class: "text-body-2 text-grey ml-3"
523
- }, ln = /* @__PURE__ */ J({
591
+ }, en = /* @__PURE__ */ K({
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 = Me(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) => b(l).length > 0 ? (_(), O("div", jt, [
608
+ (_(!0), O(fe, null, Le(b(l), (a) => (_(), O(fe, {
541
609
  key: a.id
542
610
  }, [
543
- a.type === 0 ? (_(), T(jt, {
611
+ a.type === 0 ? (_(), L(Wt, {
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 ? (_(), L(Zt, {
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
+ ])) : (_(), O("div", It, F(b(s)("x-prop-tree.noComp")), 1));
559
627
  }
560
- }), on = { class: "text-subtitle-1 ml-3" }, sn = /* @__PURE__ */ J({
628
+ }), tn = { class: "text-subtitle-1 ml-3" }, nn = /* @__PURE__ */ K({
561
629
  __name: "index",
562
630
  props: {
563
631
  modelValue: {},
@@ -565,7 +633,7 @@ 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(() => {
636
+ const { t: s } = j(), n = We(), { sysBarAvail: e } = ve(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = ot(), u = A(() => {
569
637
  let v = "100%";
570
638
  return n.mdAndUp.value && (v = "400px"), {
571
639
  background: l.value,
@@ -580,62 +648,62 @@ const Yt = /* @__PURE__ */ J({
580
648
  };
581
649
  }), a = A(() => ({
582
650
  height: "60px"
583
- })), m = A(() => {
651
+ })), d = A(() => {
584
652
  if (!o.value)
585
653
  return s("x-runtime-lib.notSet");
586
- const v = we(i, o.value);
654
+ const v = Me(i, o.value);
587
655
  return v ? v.name : s("x-runtime-lib.compNotAvail");
588
656
  }), { open: c } = he(`propTreeCompSelectDlg${Ce()}`);
589
657
  return Ue(() => {
590
658
  c.value = !1;
591
659
  }), (v, f) => {
592
- const V = C("v-btn"), U = C("v-sheet"), M = C("v-icon"), R = C("v-dialog");
593
- return _(), T(R, {
594
- modelValue: D(c),
595
- "onUpdate:modelValue": f[5] || (f[5] = (k) => ue(c) ? c.value = k : null),
660
+ const k = S("v-btn"), C = S("v-sheet"), w = S("v-icon"), E = S("v-dialog");
661
+ return _(), L(E, {
662
+ modelValue: b(c),
663
+ "onUpdate:modelValue": f[5] || (f[5] = (x) => ue(c) ? c.value = x : 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: f[6] || (f[6] = Ne(X((x) => c.value = !1, ["stop", "prevent"]), ["esc"]))
601
669
  }, {
602
- activator: K(({ props: k }) => [
603
- b(V, $e(k, {
670
+ activator: q(({ props: x }) => [
671
+ M(k, $e(x, {
604
672
  block: "",
605
673
  density: "comfortable"
606
674
  }), {
607
- default: K(() => [
608
- ye(F(m.value), 1)
675
+ default: q(() => [
676
+ ye(F(d.value), 1)
609
677
  ]),
610
678
  _: 1
611
679
  }, 16)
612
680
  ]),
613
- default: K(() => [
681
+ default: q(() => [
614
682
  B("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: f[3] || (f[3] = X((x) => c.value = !1, ["self"])),
685
+ onContextmenu: f[4] || (f[4] = X((x) => c.value = !1, ["self", "prevent"]))
618
686
  }, [
619
687
  B("div", {
620
688
  class: "elevation-2",
621
689
  style: W(u.value)
622
690
  }, [
623
- D(e) ? (_(), T(U, {
691
+ b(e) ? (_(), L(C, {
624
692
  key: 0,
625
693
  color: "transparent",
626
694
  height: 24
627
695
  })) : G("", !0),
628
- b(U, {
696
+ M(C, {
629
697
  class: "d-flex align-center px-3",
630
698
  color: "transparent",
631
699
  height: 48
632
700
  }, {
633
- default: K(() => [
634
- b(M, {
701
+ default: q(() => [
702
+ M(w, {
635
703
  icon: "mdi-close",
636
- onClick: f[0] || (f[0] = (k) => c.value = !1)
704
+ onClick: f[0] || (f[0] = (x) => c.value = !1)
637
705
  }),
638
- B("span", on, F(D(s)("x-prop-tree.dlg.compSelect.title")), 1)
706
+ B("span", tn, F(b(s)("x-prop-tree.dlg.compSelect.title")), 1)
639
707
  ]),
640
708
  _: 1
641
709
  }),
@@ -643,11 +711,11 @@ const Yt = /* @__PURE__ */ J({
643
711
  class: "overflow-y-auto",
644
712
  style: W(r.value)
645
713
  }, [
646
- b(ln, {
714
+ M(en, {
647
715
  modelValue: o.value,
648
- "onUpdate:modelValue": f[1] || (f[1] = (k) => o.value = k),
649
- open: D(c),
650
- "onUpdate:open": f[2] || (f[2] = (k) => ue(c) ? c.value = k : null)
716
+ "onUpdate:modelValue": f[1] || (f[1] = (x) => o.value = x),
717
+ open: b(c),
718
+ "onUpdate:open": f[2] || (f[2] = (x) => ue(c) ? c.value = x : null)
651
719
  }, null, 8, ["modelValue", "open"]),
652
720
  B("div", {
653
721
  style: W(a.value)
@@ -660,7 +728,7 @@ const Yt = /* @__PURE__ */ J({
660
728
  }, 8, ["modelValue"]);
661
729
  };
662
730
  }
663
- }), un = /* @__PURE__ */ J({
731
+ }), ln = /* @__PURE__ */ K({
664
732
  __name: "editor",
665
733
  props: {
666
734
  modelValue: { required: !0 },
@@ -672,28 +740,28 @@ 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 = ht(), i = _t(), u = De(), 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, v) => (_(), L(b(Ct), {
683
751
  ref_key: "target",
684
752
  ref: r,
685
753
  lock: e.value,
686
754
  "onUpdate:lock": v[0] || (v[0] = (f) => e.value = f),
687
755
  scale: l.value,
688
756
  "onUpdate:scale": v[1] || (v[1] = (f) => l.value = f),
689
- dark: D(o),
690
- locale: D(i),
757
+ dark: b(o),
758
+ locale: b(i),
691
759
  type: "json",
692
- version: D(u),
760
+ version: b(u),
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
+ }), on = { class: "text-subtitle-1" }, sn = /* @__PURE__ */ K({
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(() => {
772
+ const { t: s } = j(), { sysBarAvail: n } = ve(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = te(), i = z(t, "modelValue"), u = N(!1), r = N(1), a = A(() => {
705
773
  let f = 48;
706
774
  return n.value && (f += 24), {
707
775
  position: "relative",
708
776
  background: l.value,
709
777
  height: `calc(100% - ${f}px)`
710
778
  };
711
- }), m = A(() => s("x-prop-tree.dlg.jsonObject.title")), { open: c } = he(`propTreeJsonObjectDlg${Ce()}`);
779
+ }), d = A(() => s("x-prop-tree.dlg.jsonEditor.title")), { open: c } = he(`propTreejsonEditorDlg${Ce()}`);
712
780
  Ue(() => {
713
781
  c.value = !1;
714
782
  });
715
- const v = Re("editor");
783
+ const v = Je("editor");
716
784
  return ce(c, (f) => {
717
785
  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, {
721
- modelValue: D(c),
722
- "onUpdate:modelValue": V[4] || (V[4] = (x) => ue(c) ? c.value = x : null),
786
+ }), (f, k) => {
787
+ const C = S("v-btn"), w = S("v-sheet"), E = S("v-spacer"), x = S("v-dialog");
788
+ return _(), L(x, {
789
+ modelValue: b(c),
790
+ "onUpdate:modelValue": k[4] || (k[4] = (V) => ue(c) ? c.value = V : 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: k[5] || (k[5] = Ne(X((V) => c.value = !1, ["stop", "prevent"]), ["esc"]))
729
797
  }, {
730
- activator: K(({ props: x }) => [
731
- b(U, $e(x, {
798
+ activator: q(({ props: V }) => [
799
+ M(C, $e(V, {
732
800
  block: "",
733
801
  density: "comfortable"
734
802
  }), {
735
- default: K(() => [
736
- ye(F(m.value), 1)
803
+ default: q(() => [
804
+ ye(F(d.value), 1)
737
805
  ]),
738
806
  _: 1
739
807
  }, 16)
740
808
  ]),
741
- default: K(() => [
742
- b(M, {
743
- color: D(e),
809
+ default: q(() => [
810
+ M(w, {
811
+ color: b(e),
744
812
  height: "100%",
745
813
  width: "100%"
746
814
  }, {
747
- default: K(() => [
748
- D(n) ? (_(), T(M, {
815
+ default: q(() => [
816
+ b(n) ? (_(), L(w, {
749
817
  key: 0,
750
- color: D(o),
818
+ color: b(o),
751
819
  height: 24
752
820
  }, null, 8, ["color"])) : G("", !0),
753
- b(M, {
821
+ M(w, {
754
822
  class: "d-flex align-center px-2",
755
- color: D(o),
823
+ color: b(o),
756
824
  height: 48
757
825
  }, {
758
- default: K(() => [
759
- b(U, {
826
+ default: q(() => [
827
+ M(C, {
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: k[0] || (k[0] = (V) => c.value = !1)
764
832
  }),
765
- B("span", rn, F(D(s)("x-prop-tree.dlg.jsonObject.title")), 1),
766
- b(R)
833
+ B("span", on, F(b(s)("x-prop-tree.dlg.jsonEditor.title")), 1),
834
+ M(E)
767
835
  ]),
768
836
  _: 1
769
837
  }, 8, ["color"]),
770
838
  B("div", {
771
839
  style: W(a.value)
772
840
  }, [
773
- b(un, {
841
+ M(ln, {
774
842
  ref_key: "editor",
775
843
  ref: v,
776
844
  modelValue: i.value,
777
- "onUpdate:modelValue": V[1] || (V[1] = (x) => i.value = x),
845
+ "onUpdate:modelValue": k[1] || (k[1] = (V) => i.value = V),
778
846
  lock: u.value,
779
- "onUpdate:lock": V[2] || (V[2] = (x) => u.value = x),
847
+ "onUpdate:lock": k[2] || (k[2] = (V) => u.value = V),
780
848
  scale: r.value,
781
- "onUpdate:scale": V[3] || (V[3] = (x) => r.value = x)
849
+ "onUpdate:scale": k[3] || (k[3] = (V) => r.value = V)
782
850
  }, null, 8, ["modelValue", "lock", "scale"])
783
851
  ], 4)
784
852
  ]),
@@ -789,7 +857,216 @@ 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({
860
+ }), un = { class: "d-flex justify-space-between align-center my-2" }, rn = { class: "flex-grow-1" }, an = /* @__PURE__ */ K({
861
+ __name: "index",
862
+ props: /* @__PURE__ */ Q({
863
+ hasDelete: { type: Boolean, default: !1 },
864
+ types: {}
865
+ }, {
866
+ modelValue: {},
867
+ modelModifiers: {}
868
+ }),
869
+ emits: /* @__PURE__ */ Q(["delete"], ["update:modelValue"]),
870
+ setup(t, { emit: s }) {
871
+ const { t: n } = j(), { isMobile: e } = ve(), l = z(t, "modelValue"), o = s, i = De(), u = A(() => Be[i.value]?.types[t.types]), r = N(0), a = A(() => {
872
+ const k = [];
873
+ return u.value?.forEach(({ title: C }, w) => {
874
+ k.push({
875
+ title: n(C),
876
+ value: w
877
+ });
878
+ }), k;
879
+ });
880
+ Ke(() => {
881
+ u.value?.some((k, C) => k.validator(l.value) ? (r.value = C, !0) : !1);
882
+ });
883
+ const d = A(() => u.value?.[r.value]), c = () => {
884
+ l.value = d.value?.default;
885
+ }, v = N(0), f = async (k) => {
886
+ if (!k || !e() || d.value.ui !== "pixelInput" && d.value.ui !== "percentInput")
887
+ return;
888
+ const C = await Fe({
889
+ title: "",
890
+ value: v.value,
891
+ precision: d.value.precision,
892
+ min: d.value.min,
893
+ max: d.value.max,
894
+ step: d.value.step
895
+ });
896
+ C !== void 0 && (v.value = C);
897
+ };
898
+ return Ke(() => {
899
+ d.value?.ui === "pixelInput" ? v.value = xt(l.value) : d.value?.ui === "percentInput" && (v.value = Vt(l.value));
900
+ }), ce(v, (k) => {
901
+ d.value?.ui === "pixelInput" ? l.value = k + "px" : d.value?.ui === "percentInput" && (l.value = k + "%");
902
+ }), (k, C) => {
903
+ const w = S("v-select"), E = S("v-number-input"), x = S("v-btn"), V = ee("ripple");
904
+ return _(), O("div", un, [
905
+ B("div", rn, [
906
+ Z(M(w, {
907
+ modelValue: r.value,
908
+ "onUpdate:modelValue": [
909
+ C[0] || (C[0] = (P) => r.value = P),
910
+ c
911
+ ],
912
+ density: "compact",
913
+ "hide-details": "",
914
+ items: a.value,
915
+ "single-line": ""
916
+ }, null, 8, ["modelValue", "items"]), [
917
+ [
918
+ V,
919
+ void 0,
920
+ void 0,
921
+ { stop: !0 }
922
+ ]
923
+ ]),
924
+ d.value?.ui === "pixelInput" || d.value?.ui === "percentInput" ? Z((_(), L(E, {
925
+ key: 0,
926
+ modelValue: v.value,
927
+ "onUpdate:modelValue": C[1] || (C[1] = (P) => v.value = P),
928
+ "control-variant": "stacked",
929
+ density: "compact",
930
+ "hide-details": "",
931
+ max: d.value.max,
932
+ min: d.value.min,
933
+ precision: d.value.precision,
934
+ "single-line": "",
935
+ step: d.value.step,
936
+ "onUpdate:focused": f
937
+ }, null, 8, ["modelValue", "max", "min", "precision", "step"])), [
938
+ [
939
+ V,
940
+ void 0,
941
+ void 0,
942
+ { stop: !0 }
943
+ ]
944
+ ]) : G("", !0)
945
+ ]),
946
+ t.hasDelete ? (_(), L(x, {
947
+ key: 0,
948
+ class: "mx-2",
949
+ density: "compact",
950
+ icon: "mdi-minus",
951
+ variant: "text",
952
+ onClick: C[2] || (C[2] = X((P) => o("delete"), ["stop"]))
953
+ })) : G("", !0)
954
+ ]);
955
+ };
956
+ }
957
+ }), cn = { class: "d-flex justify-space-between align-center" }, dn = /* @__PURE__ */ K({
958
+ __name: "index",
959
+ props: /* @__PURE__ */ Q({
960
+ hasDelete: { type: Boolean, default: !1 },
961
+ precision: { default: () => {
962
+ } },
963
+ min: { default: () => -1 / 0 },
964
+ max: { default: () => 1 / 0 },
965
+ step: { default: 1 },
966
+ readonly: { type: Boolean, default: !1 }
967
+ }, {
968
+ modelValue: { required: !0 },
969
+ modelModifiers: {}
970
+ }),
971
+ emits: /* @__PURE__ */ Q(["delete"], ["update:modelValue"]),
972
+ setup(t, { emit: s }) {
973
+ const { isMobile: n } = ve(), e = z(t, "modelValue"), l = s, o = async (i) => {
974
+ if (!i || t.readonly || !n())
975
+ return;
976
+ const u = await Fe({
977
+ title: "",
978
+ value: e.value,
979
+ precision: t.precision,
980
+ min: t.min,
981
+ max: t.max,
982
+ step: t.step
983
+ });
984
+ u !== void 0 && (e.value = u);
985
+ };
986
+ return (i, u) => {
987
+ const r = S("v-number-input"), a = S("v-btn"), d = ee("ripple");
988
+ return _(), O("div", cn, [
989
+ Z(M(r, {
990
+ modelValue: e.value,
991
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
992
+ "control-variant": "stacked",
993
+ density: "compact",
994
+ "hide-details": "",
995
+ max: t.max,
996
+ min: t.min,
997
+ precision: t.precision,
998
+ readonly: t.readonly,
999
+ "single-line": "",
1000
+ step: t.step,
1001
+ "onUpdate:focused": o
1002
+ }, null, 8, ["modelValue", "max", "min", "precision", "readonly", "step"]), [
1003
+ [
1004
+ d,
1005
+ void 0,
1006
+ void 0,
1007
+ { stop: !0 }
1008
+ ]
1009
+ ]),
1010
+ t.hasDelete ? (_(), L(a, {
1011
+ key: 0,
1012
+ class: "mx-2",
1013
+ density: "compact",
1014
+ icon: "mdi-minus",
1015
+ variant: "text",
1016
+ onClick: u[1] || (u[1] = X((c) => l("delete"), ["stop"]))
1017
+ })) : G("", !0)
1018
+ ]);
1019
+ };
1020
+ }
1021
+ }), mn = { class: "d-flex justify-space-between align-center" }, fn = /* @__PURE__ */ K({
1022
+ __name: "index",
1023
+ props: /* @__PURE__ */ Q({
1024
+ hasDelete: { type: Boolean, default: !1 },
1025
+ readonly: { type: Boolean, default: !1 },
1026
+ items: {}
1027
+ }, {
1028
+ modelValue: {},
1029
+ modelModifiers: {}
1030
+ }),
1031
+ emits: /* @__PURE__ */ Q(["delete"], ["update:modelValue"]),
1032
+ setup(t, { emit: s }) {
1033
+ const { t: n } = j(), e = z(t, "modelValue"), l = s, o = De(), i = A(() => {
1034
+ const u = [];
1035
+ return Be[o.value]?.items[t.items].forEach(({ title: r, value: a }) => {
1036
+ u.push({ title: n(r), value: a });
1037
+ }), u;
1038
+ });
1039
+ return (u, r) => {
1040
+ const a = S("v-select"), d = S("v-btn"), c = ee("ripple");
1041
+ return _(), O("div", mn, [
1042
+ Z(M(a, {
1043
+ modelValue: e.value,
1044
+ "onUpdate:modelValue": r[0] || (r[0] = (v) => e.value = v),
1045
+ density: "compact",
1046
+ "hide-details": "",
1047
+ items: i.value,
1048
+ readonly: t.readonly,
1049
+ "single-line": ""
1050
+ }, null, 8, ["modelValue", "items", "readonly"]), [
1051
+ [
1052
+ c,
1053
+ void 0,
1054
+ void 0,
1055
+ { stop: !0 }
1056
+ ]
1057
+ ]),
1058
+ t.hasDelete ? (_(), L(d, {
1059
+ key: 0,
1060
+ class: "mx-2",
1061
+ density: "compact",
1062
+ icon: "mdi-minus",
1063
+ variant: "text",
1064
+ onClick: r[1] || (r[1] = X((v) => l("delete"), ["stop"]))
1065
+ })) : G("", !0)
1066
+ ]);
1067
+ };
1068
+ }
1069
+ }), vn = { class: "text-subtitle-2 ml-1" }, pn = { class: "text-caption text-grey ml-1" }, gn = /* @__PURE__ */ K({
793
1070
  __name: "group",
794
1071
  props: {
795
1072
  id: {},
@@ -799,33 +1076,33 @@ const Yt = /* @__PURE__ */ J({
799
1076
  },
800
1077
  emits: ["x-click"],
801
1078
  setup(t, { emit: s }) {
802
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = O(!1), u = A(() => ({
1079
+ const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = N(!1), u = A(() => ({
803
1080
  background: i.value ? e.value : n.value,
804
1081
  height: "30px",
805
1082
  marginBottom: "1px",
806
1083
  userSelect: "none"
807
1084
  }));
808
1085
  return (r, a) => {
809
- const m = C("v-icon"), c = ee("ripple");
810
- return Z((_(), q("div", {
1086
+ const d = S("v-icon"), c = ee("ripple");
1087
+ return Z((_(), O("div", {
811
1088
  class: "d-flex align-center cursor-pointer",
812
1089
  style: W(u.value),
813
1090
  onClick: a[0] || (a[0] = (v) => o("x-click", l.id)),
814
1091
  onMouseout: a[1] || (a[1] = (v) => i.value = !1),
815
1092
  onMouseover: a[2] || (a[2] = (v) => i.value = !0)
816
1093
  }, [
817
- b(m, {
1094
+ M(d, {
818
1095
  icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
819
1096
  size: "small"
820
1097
  }, null, 8, ["icon"]),
821
- B("span", cn, F(l.title), 1),
822
- B("span", dn, F(l.count), 1)
1098
+ B("span", vn, F(l.title), 1),
1099
+ B("span", pn, F(l.count), 1)
823
1100
  ], 36)), [
824
1101
  [c]
825
1102
  ]);
826
1103
  };
827
1104
  }
828
- }), fn = { class: "text-subtitle-1 ml-6" }, vn = /* @__PURE__ */ J({
1105
+ }), yn = { class: "text-subtitle-1 ml-6" }, hn = /* @__PURE__ */ K({
829
1106
  __name: "item",
830
1107
  props: {
831
1108
  id: {},
@@ -833,31 +1110,31 @@ const Yt = /* @__PURE__ */ J({
833
1110
  },
834
1111
  emits: ["x-click"],
835
1112
  setup(t, { emit: s }) {
836
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = O(!1), u = A(() => ({
1113
+ const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = N(!1), u = A(() => ({
837
1114
  background: i.value ? e.value : n.value,
838
1115
  height: "48px",
839
1116
  marginBottom: "1px",
840
1117
  userSelect: "none"
841
1118
  }));
842
1119
  return (r, a) => {
843
- const m = ee("ripple");
844
- return Z((_(), q("div", {
1120
+ const d = ee("ripple");
1121
+ return Z((_(), O("div", {
845
1122
  class: "d-flex align-center cursor-pointer",
846
1123
  style: W(u.value),
847
1124
  onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
848
1125
  onMouseout: a[1] || (a[1] = (c) => i.value = !1),
849
1126
  onMouseover: a[2] || (a[2] = (c) => i.value = !0)
850
1127
  }, [
851
- B("span", fn, F(l.title), 1)
1128
+ B("span", yn, F(l.title), 1)
852
1129
  ], 36)), [
853
- [m]
1130
+ [d]
854
1131
  ]);
855
1132
  };
856
1133
  }
857
- }), pn = { key: 0 }, gn = {
1134
+ }), _n = { key: 0 }, kn = {
858
1135
  key: 1,
859
1136
  class: "text-body-2 text-grey ml-3"
860
- }, yn = /* @__PURE__ */ J({
1137
+ }, xn = /* @__PURE__ */ K({
861
1138
  __name: "index",
862
1139
  props: {
863
1140
  modelValue: {},
@@ -867,17 +1144,17 @@ const Yt = /* @__PURE__ */ J({
867
1144
  },
868
1145
  emits: ["update:modelValue", "update:open"],
869
1146
  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);
1147
+ const { t: s } = j(), n = z(t, "modelValue"), e = z(t, "open"), l = st(), o = (u) => {
1148
+ const r = Me(l, u);
1149
+ r && Ge(l, u, !r.collapse);
873
1150
  }, i = (u) => {
874
1151
  n.value = u, e.value = !1;
875
1152
  };
876
- return (u, r) => D(l).length > 0 ? (_(), q("div", pn, [
877
- (_(!0), q(fe, null, Le(D(l), (a) => (_(), q(fe, {
1153
+ return (u, r) => b(l).length > 0 ? (_(), O("div", _n, [
1154
+ (_(!0), O(fe, null, Le(b(l), (a) => (_(), O(fe, {
878
1155
  key: a.id
879
1156
  }, [
880
- a.type === 0 ? (_(), T(mn, {
1157
+ a.type === 0 ? (_(), L(gn, {
881
1158
  key: 0,
882
1159
  id: a.id,
883
1160
  collapse: a.collapse,
@@ -885,16 +1162,16 @@ const Yt = /* @__PURE__ */ J({
885
1162
  title: a.name,
886
1163
  onXClick: o
887
1164
  }, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
888
- a.type === 1 && a.show ? (_(), T(vn, {
1165
+ a.type === 1 && a.show ? (_(), L(hn, {
889
1166
  key: 1,
890
1167
  id: a.id,
891
1168
  title: a.name,
892
1169
  onXClick: i
893
1170
  }, null, 8, ["id", "title"])) : G("", !0)
894
1171
  ], 64))), 128))
895
- ])) : (_(), q("div", gn, F(D(s)("x-prop-tree.noSlot")), 1));
1172
+ ])) : (_(), O("div", kn, F(b(s)("x-prop-tree.noSlot")), 1));
896
1173
  }
897
- }), hn = { class: "text-subtitle-1 ml-3" }, _n = /* @__PURE__ */ J({
1174
+ }), Vn = { class: "text-subtitle-1 ml-3" }, Sn = /* @__PURE__ */ K({
898
1175
  __name: "index",
899
1176
  props: {
900
1177
  modelValue: {},
@@ -902,7 +1179,7 @@ const Yt = /* @__PURE__ */ J({
902
1179
  },
903
1180
  emits: ["update:modelValue"],
904
1181
  setup(t) {
905
- const { t: s } = j(), n = ze(), { sysBarAvail: e } = ve(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = tt(), u = A(() => {
1182
+ const { t: s } = j(), n = We(), { sysBarAvail: e } = ve(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = st(), u = A(() => {
906
1183
  let v = "100%";
907
1184
  return n.mdAndUp.value && (v = "400px"), {
908
1185
  background: l.value,
@@ -917,62 +1194,62 @@ const Yt = /* @__PURE__ */ J({
917
1194
  };
918
1195
  }), a = A(() => ({
919
1196
  height: "60px"
920
- })), m = A(() => {
1197
+ })), d = A(() => {
921
1198
  if (!o.value)
922
1199
  return s("x-runtime-lib.notSet");
923
- const v = we(i, o.value);
1200
+ const v = Me(i, o.value);
924
1201
  return v ? v.name : s("x-runtime-lib.slotNotAvail");
925
1202
  }), { open: c } = he(`propTreeSlotSelectDlg${Ce()}`);
926
1203
  return Ue(() => {
927
1204
  c.value = !1;
928
1205
  }), (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),
1206
+ const k = S("v-btn"), C = S("v-sheet"), w = S("v-icon"), E = S("v-dialog");
1207
+ return _(), L(E, {
1208
+ modelValue: b(c),
1209
+ "onUpdate:modelValue": f[5] || (f[5] = (x) => ue(c) ? c.value = x : null),
933
1210
  fullscreen: "",
934
1211
  "no-click-animation": "",
935
1212
  persistent: "",
936
1213
  transition: "scroll-x-reverse-transition",
937
- onKeydown: f[6] || (f[6] = Te(X((k) => c.value = !1, ["stop", "prevent"]), ["esc"]))
1214
+ onKeydown: f[6] || (f[6] = Ne(X((x) => c.value = !1, ["stop", "prevent"]), ["esc"]))
938
1215
  }, {
939
- activator: K(({ props: k }) => [
940
- b(V, $e(k, {
1216
+ activator: q(({ props: x }) => [
1217
+ M(k, $e(x, {
941
1218
  block: "",
942
1219
  density: "comfortable"
943
1220
  }), {
944
- default: K(() => [
945
- ye(F(m.value), 1)
1221
+ default: q(() => [
1222
+ ye(F(d.value), 1)
946
1223
  ]),
947
1224
  _: 1
948
1225
  }, 16)
949
1226
  ]),
950
- default: K(() => [
1227
+ default: q(() => [
951
1228
  B("div", {
952
1229
  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"]))
1230
+ onClick: f[3] || (f[3] = X((x) => c.value = !1, ["self"])),
1231
+ onContextmenu: f[4] || (f[4] = X((x) => c.value = !1, ["self", "prevent"]))
955
1232
  }, [
956
1233
  B("div", {
957
1234
  class: "elevation-2",
958
1235
  style: W(u.value)
959
1236
  }, [
960
- D(e) ? (_(), T(U, {
1237
+ b(e) ? (_(), L(C, {
961
1238
  key: 0,
962
1239
  color: "transparent",
963
1240
  height: 24
964
1241
  })) : G("", !0),
965
- b(U, {
1242
+ M(C, {
966
1243
  class: "d-flex align-center px-3",
967
1244
  color: "transparent",
968
1245
  height: 48
969
1246
  }, {
970
- default: K(() => [
971
- b(M, {
1247
+ default: q(() => [
1248
+ M(w, {
972
1249
  icon: "mdi-close",
973
- onClick: f[0] || (f[0] = (k) => c.value = !1)
1250
+ onClick: f[0] || (f[0] = (x) => c.value = !1)
974
1251
  }),
975
- B("span", hn, F(D(s)("x-prop-tree.dlg.compSelect.title")), 1)
1252
+ B("span", Vn, F(b(s)("x-prop-tree.dlg.slotSelect.title")), 1)
976
1253
  ]),
977
1254
  _: 1
978
1255
  }),
@@ -980,11 +1257,11 @@ const Yt = /* @__PURE__ */ J({
980
1257
  class: "overflow-y-auto",
981
1258
  style: W(r.value)
982
1259
  }, [
983
- b(yn, {
1260
+ M(xn, {
984
1261
  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)
1262
+ "onUpdate:modelValue": f[1] || (f[1] = (x) => o.value = x),
1263
+ open: b(c),
1264
+ "onUpdate:open": f[2] || (f[2] = (x) => ue(c) ? c.value = x : null)
988
1265
  }, null, 8, ["modelValue", "open"]),
989
1266
  B("div", {
990
1267
  style: W(a.value)
@@ -997,285 +1274,8 @@ const Yt = /* @__PURE__ */ J({
997
1274
  }, 8, ["modelValue"]);
998
1275
  };
999
1276
  }
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
- props: /* @__PURE__ */ Q({
1071
- hasDelete: { type: Boolean, default: !1 },
1072
- types: {}
1073
- }, {
1074
- modelValue: {},
1075
- modelModifiers: {}
1076
- }),
1077
- emits: /* @__PURE__ */ Q(["delete"], ["update:modelValue"]),
1078
- 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
1085
- });
1086
- }), V;
1087
- });
1088
- qe(() => {
1089
- u.value?.some((V, U) => V.validator(l.value) ? (r.value = U, !0) : !1);
1090
- });
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")
1095
- return;
1096
- const U = await Ee({
1097
- 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
1103
- });
1104
- U !== void 0 && (v.value = U);
1105
- };
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, {
1115
- modelValue: r.value,
1116
- "onUpdate:modelValue": [
1117
- U[0] || (U[0] = (P) => r.value = P),
1118
- c
1119
- ],
1120
- density: "compact",
1121
- "hide-details": "",
1122
- items: a.value,
1123
- "single-line": ""
1124
- }, null, 8, ["modelValue", "items"]), [
1125
- [
1126
- x,
1127
- void 0,
1128
- void 0,
1129
- { stop: !0 }
1130
- ]
1131
- ]),
1132
- m.value?.ui === "pixelInput" || m.value?.ui === "percentInput" ? Z((_(), T(R, {
1133
- key: 0,
1134
- modelValue: v.value,
1135
- "onUpdate:modelValue": U[1] || (U[1] = (P) => v.value = P),
1136
- "control-variant": "stacked",
1137
- density: "compact",
1138
- "hide-details": "",
1139
- max: m.value.max,
1140
- min: m.value.min,
1141
- precision: m.value.precision,
1142
- "single-line": "",
1143
- step: m.value.step,
1144
- "onUpdate:focused": f
1145
- }, null, 8, ["modelValue", "max", "min", "precision", "step"])), [
1146
- [
1147
- x,
1148
- void 0,
1149
- void 0,
1150
- { stop: !0 }
1151
- ]
1152
- ]) : G("", !0)
1153
- ]),
1154
- t.hasDelete ? (_(), T(k, {
1155
- key: 0,
1156
- class: "mx-2",
1157
- density: "compact",
1158
- icon: "mdi-minus",
1159
- variant: "text",
1160
- onClick: U[2] || (U[2] = X((P) => o("delete"), ["stop"]))
1161
- })) : G("", !0)
1162
- ]);
1163
- };
1164
- }
1165
- }), Un = { class: "d-flex justify-space-between align-center" }, $n = /* @__PURE__ */ J({
1166
- __name: "numInput",
1167
- props: /* @__PURE__ */ Q({
1168
- hasDelete: { type: Boolean, default: !1 },
1169
- precision: { default: () => {
1170
- } },
1171
- min: { default: () => -1 / 0 },
1172
- max: { default: () => 1 / 0 },
1173
- step: { default: 1 },
1174
- readonly: { type: Boolean, default: !1 }
1175
- }, {
1176
- modelValue: { required: !0 },
1177
- modelModifiers: {}
1178
- }),
1179
- emits: /* @__PURE__ */ Q(["delete"], ["update:modelValue"]),
1180
- setup(t, { emit: s }) {
1181
- const { isMobile: n } = ve(), e = z(t, "modelValue"), l = s, o = async (i) => {
1182
- if (!i || t.readonly || !n())
1183
- return;
1184
- const u = await Ee({
1185
- title: "",
1186
- value: e.value,
1187
- precision: t.precision,
1188
- min: t.min,
1189
- max: t.max,
1190
- step: t.step
1191
- });
1192
- u !== void 0 && (e.value = u);
1193
- };
1194
- 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, {
1198
- modelValue: e.value,
1199
- "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
1200
- "control-variant": "stacked",
1201
- density: "compact",
1202
- "hide-details": "",
1203
- max: t.max,
1204
- min: t.min,
1205
- precision: t.precision,
1206
- readonly: t.readonly,
1207
- "single-line": "",
1208
- step: t.step,
1209
- "onUpdate:focused": o
1210
- }, null, 8, ["modelValue", "max", "min", "precision", "readonly", "step"]), [
1211
- [
1212
- m,
1213
- void 0,
1214
- void 0,
1215
- { stop: !0 }
1216
- ]
1217
- ]),
1218
- t.hasDelete ? (_(), T(a, {
1219
- key: 0,
1220
- class: "mx-2",
1221
- density: "compact",
1222
- icon: "mdi-minus",
1223
- variant: "text",
1224
- onClick: u[1] || (u[1] = X((c) => l("delete"), ["stop"]))
1225
- })) : G("", !0)
1226
- ]);
1227
- };
1228
- }
1229
- }), Mn = { class: "d-flex justify-space-between align-center" }, wn = /* @__PURE__ */ J({
1230
- __name: "select",
1231
- props: /* @__PURE__ */ Q({
1232
- hasDelete: { type: Boolean, default: !1 },
1233
- readonly: { type: Boolean, default: !1 },
1234
- items: {}
1235
- }, {
1236
- modelValue: {},
1237
- modelModifiers: {}
1238
- }),
1239
- emits: /* @__PURE__ */ Q(["delete"], ["update:modelValue"]),
1240
- setup(t, { emit: s }) {
1241
- const { t: n } = j(), e = z(t, "modelValue"), l = s, o = Oe(), i = A(() => {
1242
- const u = [];
1243
- return Fe[o.value]?.items[t.items].forEach(({ title: r, value: a }) => {
1244
- u.push({ title: n(r), value: a });
1245
- }), u;
1246
- });
1247
- 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, {
1251
- modelValue: e.value,
1252
- "onUpdate:modelValue": r[0] || (r[0] = (v) => e.value = v),
1253
- density: "compact",
1254
- "hide-details": "",
1255
- items: i.value,
1256
- readonly: t.readonly,
1257
- "single-line": ""
1258
- }, null, 8, ["modelValue", "items", "readonly"]), [
1259
- [
1260
- c,
1261
- void 0,
1262
- void 0,
1263
- { stop: !0 }
1264
- ]
1265
- ]),
1266
- t.hasDelete ? (_(), T(m, {
1267
- key: 0,
1268
- class: "mx-2",
1269
- density: "compact",
1270
- icon: "mdi-minus",
1271
- variant: "text",
1272
- onClick: r[1] || (r[1] = X((v) => l("delete"), ["stop"]))
1273
- })) : G("", !0)
1274
- ]);
1275
- };
1276
- }
1277
- }), bn = { class: "d-flex justify-space-between align-center" }, Pn = /* @__PURE__ */ J({
1278
- __name: "strInput",
1277
+ }), Cn = { class: "d-flex justify-space-between align-center" }, Un = /* @__PURE__ */ K({
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 kt({
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 = S("v-text-field"), a = S("v-btn"), d = ee("ripple");
1299
+ return _(), O("div", Cn, [
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 ? (_(), L(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
+ }), $n = { class: "d-flex justify-space-between align-center" }, wn = /* @__PURE__ */ K({
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 = S("v-switch"), u = S("v-btn");
1341
+ return _(), O("div", $n, [
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 ? (_(), L(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 Mn(t) {
1364
+ return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), h("div", "renderUiColorPicker property ui must be colorPicker")) : h(zt, {
1365
1365
  modelValue: ne(
1366
1366
  n,
1367
1367
  e,
@@ -1371,7 +1371,7 @@ function Ln(t) {
1371
1371
  i
1372
1372
  ),
1373
1373
  "onUpdate:modelValue": (u) => {
1374
- se(
1374
+ oe(
1375
1375
  n,
1376
1376
  e,
1377
1377
  l,
@@ -1388,8 +1388,8 @@ function Ln(t) {
1388
1388
  readonly: e.readonly
1389
1389
  }) };
1390
1390
  }
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, {
1391
+ function Pn(t) {
1392
+ return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), h("div", "renderUiCompSelect property ui must be compSelect")) : h(nn, {
1393
1393
  modelValue: ne(
1394
1394
  n,
1395
1395
  e,
@@ -1399,7 +1399,7 @@ function Tn(t) {
1399
1399
  i
1400
1400
  ),
1401
1401
  "onUpdate:modelValue": (u) => {
1402
- se(
1402
+ oe(
1403
1403
  n,
1404
1404
  e,
1405
1405
  l,
@@ -1411,7 +1411,7 @@ function Tn(t) {
1411
1411
  }
1412
1412
  }) };
1413
1413
  }
1414
- function Nn(t) {
1414
+ function bn(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 Dn(t) {
1424
+ return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? h("div", "renderUijsonEditor property ui must be jsonEditor") : h(sn, {
1425
1425
  modelValue: ne(
1426
1426
  n,
1427
1427
  e,
@@ -1431,7 +1431,7 @@ function On(t) {
1431
1431
  i
1432
1432
  ) ?? "{}",
1433
1433
  "onUpdate:modelValue": (u) => {
1434
- se(
1434
+ oe(
1435
1435
  n,
1436
1436
  e,
1437
1437
  l,
@@ -1443,8 +1443,8 @@ function On(t) {
1443
1443
  }
1444
1444
  }) };
1445
1445
  }
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, {
1446
+ function An(t) {
1447
+ return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), h("div", "renderUiMultiTypes property ui must be multiTypes")) : h(an, {
1448
1448
  modelValue: ne(
1449
1449
  n,
1450
1450
  e,
@@ -1454,7 +1454,7 @@ function Bn(t) {
1454
1454
  i
1455
1455
  ) ?? "",
1456
1456
  "onUpdate:modelValue": (u) => {
1457
- se(
1457
+ oe(
1458
1458
  n,
1459
1459
  e,
1460
1460
  l,
@@ -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 Tn(t) {
1475
+ return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput property ui must be numInput")) : h(dn, {
1476
1476
  modelValue: ne(
1477
1477
  n,
1478
1478
  e,
@@ -1482,7 +1482,7 @@ function qn(t) {
1482
1482
  i
1483
1483
  ),
1484
1484
  "onUpdate:modelValue": (u) => {
1485
- se(
1485
+ oe(
1486
1486
  n,
1487
1487
  e,
1488
1488
  l,
@@ -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 Ln = /* @__PURE__ */ K({
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 = N(!1), i = A(() => ({
1514
1514
  background: o.value ? e.value : n.value,
1515
1515
  minHeight: t.minHeight,
1516
1516
  paddingRight: "4px",
@@ -1520,28 +1520,28 @@ 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((_(), O("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"]),
1528
1528
  onMouseout: a[0] || (a[0] = (c) => o.value = !1),
1529
1529
  onMouseover: a[1] || (a[1] = (c) => o.value = !0)
1530
1530
  }, [
1531
- ht(r.$slots, "default")
1531
+ gt(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 Nn(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 += " *"), h(
1544
+ Ln,
1545
1545
  {
1546
1546
  minHeight: s.value,
1547
1547
  onMenu: (c, v) => {
@@ -1551,15 +1551,15 @@ function Jn(t, s, n) {
1551
1551
  () => [
1552
1552
  h("span", {
1553
1553
  style: { marginLeft: "4px", pointerEvents: "none" },
1554
- innerHTML: m
1554
+ innerHTML: d
1555
1555
  }),
1556
1556
  h("div", { style: { width: n.value } }, u)
1557
1557
  ]
1558
1558
  );
1559
1559
  } };
1560
1560
  }
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, {
1561
+ function Bn(t) {
1562
+ return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), h("div", "renderUiSelect property ui must be select")) : h(fn, {
1563
1563
  modelValue: ne(
1564
1564
  n,
1565
1565
  e,
@@ -1569,7 +1569,7 @@ function Rn(t) {
1569
1569
  i
1570
1570
  ) ?? "",
1571
1571
  "onUpdate:modelValue": (u) => {
1572
- se(
1572
+ oe(
1573
1573
  n,
1574
1574
  e,
1575
1575
  l,
@@ -1587,8 +1587,8 @@ function Rn(t) {
1587
1587
  readonly: e.readonly
1588
1588
  }) };
1589
1589
  }
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, {
1590
+ function On(t) {
1591
+ return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), h("div", "renderUiSlotSelect property ui must be slotSelect")) : h(Sn, {
1592
1592
  modelValue: ne(
1593
1593
  n,
1594
1594
  e,
@@ -1598,7 +1598,7 @@ function En(t) {
1598
1598
  i
1599
1599
  ),
1600
1600
  "onUpdate:modelValue": (u) => {
1601
- se(
1601
+ oe(
1602
1602
  n,
1603
1603
  e,
1604
1604
  l,
@@ -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 qn(t) {
1614
+ return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput property ui must be strInput")) : h(Un, {
1615
1615
  modelValue: e.static ? e.value : ne(
1616
1616
  n,
1617
1617
  e,
@@ -1621,7 +1621,7 @@ function Hn(t) {
1621
1621
  i
1622
1622
  ),
1623
1623
  "onUpdate:modelValue": (u) => {
1624
- e.static || se(
1624
+ e.static || oe(
1625
1625
  n,
1626
1626
  e,
1627
1627
  l,
@@ -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 Kn(t) {
1642
+ return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), h("div", "renderUiSwitch property ui must be switch")) : h(wn, {
1643
1643
  modelValue: ne(
1644
1644
  n,
1645
1645
  e,
@@ -1649,7 +1649,7 @@ function Xn(t) {
1649
1649
  i
1650
1650
  ) ?? !1,
1651
1651
  "onUpdate:modelValue": (u) => {
1652
- se(
1652
+ oe(
1653
1653
  n,
1654
1654
  e,
1655
1655
  l,
@@ -1666,7 +1666,84 @@ function Xn(t) {
1666
1666
  readonly: e.readonly
1667
1667
  }) };
1668
1668
  }
1669
- const Fn = /* @__PURE__ */ J({
1669
+ function En() {
1670
+ const t = N([]);
1671
+ Rt(t);
1672
+ const s = () => {
1673
+ const { activeApp: o } = Qe.app, i = [];
1674
+ for (const { id: u, name: r, position: a } of o.compGroups) {
1675
+ const d = t.value.find((c) => c.id === u);
1676
+ i.push({
1677
+ id: u,
1678
+ type: 0,
1679
+ name: r,
1680
+ position: a,
1681
+ collapse: d?.collapse ?? !0
1682
+ });
1683
+ }
1684
+ for (const { id: u, groupId: r, name: a, position: d } of o.comps)
1685
+ i.push({ id: u, type: 1, name: a, position: d, group: r });
1686
+ Ye(i, !0), t.value = i;
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 Rn() {
1703
+ const t = De(), s = N([]);
1704
+ Jt(s);
1705
+ const n = () => {
1706
+ const i = [], u = Be[t.value];
1707
+ if (!u) {
1708
+ console.assert(!1, `invalid version ${t.value}`);
1709
+ return;
1710
+ }
1711
+ for (const d of u.elements) {
1712
+ const c = St[d];
1713
+ !c.slots || c.slots.length <= 0;
1714
+ }
1715
+ const { activeApp: r, depends: a } = Qe.app;
1716
+ for (const { id: d, name: c, position: v } of r.compGroups) {
1717
+ if (!a[d])
1718
+ continue;
1719
+ const k = s.value.find((C) => C.id);
1720
+ i.push({
1721
+ id: d,
1722
+ type: 0,
1723
+ name: c,
1724
+ position: v,
1725
+ collapse: k?.collapse ?? !0
1726
+ });
1727
+ }
1728
+ for (const { id: d, groupId: c, name: v, position: f } of r.comps)
1729
+ i.push({ id: d, type: 1, name: v, position: f, group: c });
1730
+ Ye(i, !0), s.value = i;
1731
+ };
1732
+ let e;
1733
+ const l = () => {
1734
+ clearTimeout(e), e = window.setTimeout(() => {
1735
+ n(), e && l();
1736
+ }, 1e3);
1737
+ }, o = () => {
1738
+ clearTimeout(e), e = void 0;
1739
+ };
1740
+ He(() => {
1741
+ l();
1742
+ }), Xe(() => {
1743
+ o();
1744
+ });
1745
+ }
1746
+ const Jn = /* @__PURE__ */ K({
1670
1747
  __name: "index",
1671
1748
  props: {
1672
1749
  unique: {},
@@ -1676,123 +1753,92 @@ const Fn = /* @__PURE__ */ J({
1676
1753
  },
1677
1754
  emits: ["change"],
1678
1755
  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);
1756
+ const { t: n } = j(), { backgroundColor1: e } = te(), l = t, o = s, i = N("20px"), u = N("56px"), r = N("200px"), a = yt({}), d = N({}), c = (p, m) => {
1757
+ Re(d, l.config, l.object), o("change", p, m);
1681
1758
  };
1682
1759
  ce(
1683
1760
  [() => l.config, () => l.object],
1684
1761
  () => {
1685
- Je(
1686
- m,
1762
+ Re(
1763
+ d,
1687
1764
  l.config,
1688
1765
  l.object,
1689
- (g, d) => {
1690
- o("change", g, d);
1766
+ (p, m) => {
1767
+ o("change", p, m);
1691
1768
  }
1692
1769
  );
1693
1770
  },
1694
1771
  { immediate: !0 }
1695
1772
  );
1696
- const v = O(l.version);
1697
- Bt(v), ce(
1773
+ const v = N(l.version);
1774
+ At(v), ce(
1698
1775
  () => l.version,
1699
1776
  () => {
1700
1777
  v.value = l.version;
1701
1778
  }
1702
1779
  );
1703
- const f = O(l.config);
1704
- qt(f), ce(
1780
+ const f = N(l.config);
1781
+ Tt(f), ce(
1705
1782
  () => l.config,
1706
1783
  () => {
1707
1784
  f.value = l.config;
1708
1785
  }
1709
1786
  );
1710
- const V = O(l.object);
1711
- Jt(V), ce(
1787
+ const k = N(l.object);
1788
+ Nt(k), ce(
1712
1789
  () => l.object,
1713
1790
  () => {
1714
- V.value = l.object;
1791
+ k.value = l.object;
1715
1792
  }
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,
1793
+ ), Ot(d), Kt(c), En(), Rn();
1794
+ const { renderProperty: C } = Nn(
1795
+ d,
1750
1796
  u,
1751
1797
  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,
1798
+ ), { renderUiDummy: w } = bn(c), { renderUiStrInput: E } = qn(c), { renderUiNumInput: x } = Tn(c), { renderUiSwitch: V } = Kn(c), { renderUiSelect: P } = Bn(c), { renderUiColorPicker: R } = Mn(c), { renderUiJsonEditor: I } = Dn(c), { renderUiMultiTypes: Ae } = An(c), { renderUiCompSelect: it } = Pn(c), { renderUiSlotSelect: ut } = On(c), _e = (p, m, y, g, U, D) => (p = ze(p), U !== void 0 ? (p.push(U), D && p.push(m.key)) : p.push(m.key), m.ui ? m.array && g ? ct(
1756
1799
  p,
1757
- S,
1758
- w
1759
- ) : ft(g, d, y, S, w) : d.array ? ct(
1760
- g,
1761
- d,
1800
+ m,
1762
1801
  y,
1763
- p,
1764
- S,
1765
- w
1766
- ) : dt(
1767
1802
  g,
1768
- d,
1803
+ U,
1804
+ D
1805
+ ) : dt(p, m, y, U, D) : m.array ? rt(
1806
+ p,
1807
+ m,
1769
1808
  y,
1809
+ g,
1810
+ U,
1811
+ D
1812
+ ) : at(
1770
1813
  p,
1771
- S,
1772
- w
1773
- )), ct = (g, d, y, p, S, w) => {
1774
- if (d.ui)
1814
+ m,
1815
+ y,
1816
+ g,
1817
+ U,
1818
+ D
1819
+ )), rt = (p, m, y, g, U, D) => {
1820
+ if (m.ui)
1775
1821
  return console.assert(!1), h("div", "renderBranchArray property ui must be invalid");
1776
- if (!d.array)
1822
+ if (!m.array)
1777
1823
  return console.assert(!1), h("div", "renderBranchArray property array must be valid");
1778
- if (!p)
1824
+ if (!g)
1779
1825
  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 += " *");
1826
+ let H;
1827
+ U !== void 0 && !D ? (y[U] instanceof Array || (y[U] = J(m), c(p, y[m.key])), H = y[U]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
1828
+ let se = n(m.name);
1829
+ g.collapse && me(d.value, p) && (se += " *");
1784
1830
  const pe = h(Se, {
1785
- title: le,
1786
- collapse: p.collapse,
1831
+ title: se,
1832
+ collapse: g.collapse,
1787
1833
  hasCreate: !0,
1788
1834
  onCollapse: ($) => {
1789
- p.collapse = $;
1835
+ g.collapse = $;
1790
1836
  },
1791
- onMenu: ($, L) => {
1792
- de.emit("propTreeMenu", { x: $, y: L, keys: g });
1837
+ onMenu: ($, T) => {
1838
+ de.emit("propTreeMenu", { x: $, y: T, keys: p });
1793
1839
  },
1794
1840
  onCreate: () => {
1795
- N.push({}), c(g, N);
1841
+ H.push({}), c(p, H);
1796
1842
  }
1797
1843
  }), Y = h(
1798
1844
  "div",
@@ -1803,43 +1849,43 @@ const Fn = /* @__PURE__ */ J({
1803
1849
  },
1804
1850
  (() => {
1805
1851
  const $ = [];
1806
- for (let L = 0; L < N.length; L++) {
1807
- if (!Ae(p.children)) {
1852
+ for (let T = 0; T < H.length; T++) {
1853
+ if (!Te(g.children)) {
1808
1854
  console.assert(!1);
1809
1855
  break;
1810
1856
  }
1811
- p.children[L] || p.children.push({
1857
+ g.children[T] || g.children.push({
1812
1858
  collapse: !0,
1813
1859
  children: {}
1814
1860
  });
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,
1861
+ const ke = [...p, T], xe = g.children[T];
1862
+ let qe = `[${T + 1}]`;
1863
+ g.children[T].collapse && me(d.value, ke) && (qe += " *");
1864
+ const ft = h(Se, {
1865
+ title: qe,
1866
+ collapse: g.children[T].collapse,
1821
1867
  hasDelete: !0,
1822
- index: L,
1823
- onCollapse: (oe) => {
1824
- if (!Ae(p.children)) {
1868
+ index: T,
1869
+ onCollapse: (le) => {
1870
+ if (!Te(g.children)) {
1825
1871
  console.assert(!1);
1826
1872
  return;
1827
1873
  }
1828
- p.children[L].collapse = oe;
1874
+ g.children[T].collapse = le;
1829
1875
  },
1830
- onMenu: (oe, ie) => {
1831
- de.emit("propTreeMenu", { x: oe, y: ie, keys: ke });
1876
+ onMenu: (le, ie) => {
1877
+ de.emit("propTreeMenu", { x: le, y: ie, keys: ke });
1832
1878
  },
1833
- onDelete: (oe) => {
1834
- if (!Ae(p.children)) {
1879
+ onDelete: (le) => {
1880
+ if (!Te(g.children)) {
1835
1881
  console.assert(!1);
1836
1882
  return;
1837
1883
  }
1838
- p.children.splice(oe, 1), N.splice(oe, 1), c(g, N);
1884
+ g.children.splice(le, 1), H.splice(le, 1), c(p, H);
1839
1885
  }
1840
1886
  });
1841
- $.push(pt);
1842
- const gt = h(
1887
+ $.push(ft);
1888
+ const vt = h(
1843
1889
  "div",
1844
1890
  {
1845
1891
  style: {
@@ -1847,9 +1893,9 @@ const Fn = /* @__PURE__ */ J({
1847
1893
  }
1848
1894
  },
1849
1895
  (() => {
1850
- const oe = [];
1851
- return d.children.forEach((ie) => {
1852
- if (!Ke(xe.children)) {
1896
+ const le = [];
1897
+ return m.children.forEach((ie) => {
1898
+ if (!Ee(xe.children)) {
1853
1899
  console.assert(!1);
1854
1900
  return;
1855
1901
  }
@@ -1857,19 +1903,19 @@ const Fn = /* @__PURE__ */ J({
1857
1903
  collapse: !0,
1858
1904
  children: ie.array ? [] : {}
1859
1905
  });
1860
- const yt = _e(
1861
- g,
1906
+ const pt = _e(
1907
+ p,
1862
1908
  ie,
1863
- N[L],
1909
+ H[T],
1864
1910
  xe.children[ie.key],
1865
- L,
1911
+ T,
1866
1912
  !0
1867
1913
  );
1868
- oe.push(yt);
1869
- }), oe;
1914
+ le.push(pt);
1915
+ }), le;
1870
1916
  })()
1871
1917
  );
1872
- p.children[L].collapse || $.push(gt);
1918
+ g.children[T].collapse || $.push(vt);
1873
1919
  }
1874
1920
  return $;
1875
1921
  })()
@@ -1883,30 +1929,30 @@ const Fn = /* @__PURE__ */ J({
1883
1929
  },
1884
1930
  (() => {
1885
1931
  const $ = [];
1886
- return $.push(pe), p.collapse || $.push(Y), $;
1932
+ return $.push(pe), g.collapse || $.push(Y), $;
1887
1933
  })()
1888
1934
  );
1889
- }, dt = (g, d, y, p, S, w) => {
1890
- if (d.ui)
1935
+ }, at = (p, m, y, g, U, D) => {
1936
+ if (m.ui)
1891
1937
  return console.assert(!1), h("div", "renderBranchScalar property ui must be invalid");
1892
- if (d.array)
1938
+ if (m.array)
1893
1939
  return console.assert(!1), h("div", "renderBranchScalar property array must be invalid");
1894
- if (!p)
1940
+ if (!g)
1895
1941
  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,
1942
+ let H = n(m.name);
1943
+ g.collapse && me(d.value, p) && (H += " *");
1944
+ const se = h(Se, {
1945
+ title: H,
1946
+ collapse: g.collapse,
1947
+ hasDelete: U !== void 0 && !D,
1902
1948
  onCollapse: (Y) => {
1903
- p.collapse = Y;
1949
+ g.collapse = Y;
1904
1950
  },
1905
1951
  onMenu: (Y, $) => {
1906
- de.emit("propTreeMenu", { x: Y, y: $, keys: g });
1952
+ de.emit("propTreeMenu", { x: Y, y: $, keys: p });
1907
1953
  },
1908
1954
  onDelete: () => {
1909
- S === void 0 || w || (y.splice(S, 1), c(g.slice(0, -1), y));
1955
+ U === void 0 || D || (y.splice(U, 1), c(p.slice(0, -1), y));
1910
1956
  }
1911
1957
  }), pe = h(
1912
1958
  "div",
@@ -1917,22 +1963,22 @@ const Fn = /* @__PURE__ */ J({
1917
1963
  },
1918
1964
  (() => {
1919
1965
  const Y = [];
1920
- return d.children.forEach(($) => {
1921
- if (!Ke(p.children)) {
1966
+ return m.children.forEach(($) => {
1967
+ if (!Ee(g.children)) {
1922
1968
  console.assert(!1);
1923
1969
  return;
1924
1970
  }
1925
- p.children[$.key] || (p.children[$.key] = {
1971
+ g.children[$.key] || (g.children[$.key] = {
1926
1972
  collapse: !0,
1927
1973
  children: !$.ui && $.array ? [] : {}
1928
1974
  });
1929
- const L = _e(
1930
- g,
1975
+ const T = _e(
1976
+ p,
1931
1977
  $,
1932
- (typeof y[d.key] != "object" && (y[d.key] = {}, c(g, y[d.key])), y[d.key]),
1933
- p.children[$.key]
1978
+ (typeof y[m.key] != "object" && (y[m.key] = {}, c(p, y[m.key])), y[m.key]),
1979
+ g.children[$.key]
1934
1980
  );
1935
- Y.push(L);
1981
+ Y.push(T);
1936
1982
  }), Y;
1937
1983
  })()
1938
1984
  );
@@ -1945,32 +1991,32 @@ const Fn = /* @__PURE__ */ J({
1945
1991
  },
1946
1992
  (() => {
1947
1993
  const Y = [];
1948
- return Y.push(le), p.collapse || Y.push(pe), Y;
1994
+ return Y.push(se), g.collapse || Y.push(pe), Y;
1949
1995
  })()
1950
1996
  );
1951
- }, mt = (g, d, y, p, S, w) => {
1952
- if (!d.ui)
1997
+ }, ct = (p, m, y, g, U, D) => {
1998
+ if (!m.ui)
1953
1999
  return console.assert(!1), h("div", "renderLeafArray property ui must be valid");
1954
- if (!d.array)
2000
+ if (!m.array)
1955
2001
  return console.assert(!1), h("div", "renderLeafArray property array must be valid");
1956
- if (!p)
2002
+ if (!g)
1957
2003
  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 += " *");
2004
+ let H;
2005
+ U !== void 0 && !D ? (y[U] instanceof Array || (y[U] = J(m), c(p, y[U])), H = y[U]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
2006
+ let se = n(m.name);
2007
+ g.collapse && me(d.value, p) && (se += " *");
1962
2008
  const pe = h(Se, {
1963
- title: le,
1964
- collapse: p.collapse,
2009
+ title: se,
2010
+ collapse: g.collapse,
1965
2011
  hasCreate: !0,
1966
2012
  onCollapse: ($) => {
1967
- p.collapse = $;
2013
+ g.collapse = $;
1968
2014
  },
1969
- onMenu: ($, L) => {
1970
- de.emit("propTreeMenu", { x: $, y: L, keys: g });
2015
+ onMenu: ($, T) => {
2016
+ de.emit("propTreeMenu", { x: $, y: T, keys: p });
1971
2017
  },
1972
2018
  onCreate: () => {
1973
- N.push(H(d, !0)), c(g, N);
2019
+ H.push(J(m, !0)), c(p, H);
1974
2020
  }
1975
2021
  }), Y = h(
1976
2022
  "div",
@@ -1981,8 +2027,8 @@ const Fn = /* @__PURE__ */ J({
1981
2027
  },
1982
2028
  (() => {
1983
2029
  const $ = [];
1984
- for (let L = 0; L < N.length; L++) {
1985
- const ke = _e(g, d, N, void 0, L, !1);
2030
+ for (let T = 0; T < H.length; T++) {
2031
+ const ke = _e(p, m, H, void 0, T, !1);
1986
2032
  $.push(ke);
1987
2033
  }
1988
2034
  return $;
@@ -1997,15 +2043,15 @@ const Fn = /* @__PURE__ */ J({
1997
2043
  },
1998
2044
  (() => {
1999
2045
  const $ = [];
2000
- return $.push(pe), p.collapse || $.push(Y), $;
2046
+ return $.push(pe), g.collapse || $.push(Y), $;
2001
2047
  })()
2002
2048
  );
2003
- }, ft = (g, d, y, p, S) => {
2004
- if (!d.ui)
2049
+ }, dt = (p, m, y, g, U) => {
2050
+ if (!m.ui)
2005
2051
  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(
2052
+ let D;
2053
+ return m.ui === "dummy" ? D = w(p, m, y, g, U) : m.ui === "strInput" ? D = E(p, m, y, g, U) : m.ui === "numInput" ? D = x(p, m, y, g, U) : m.ui === "switch" ? D = V(p, m, y, g, U) : m.ui === "select" ? D = P(p, m, y, g, U) : m.ui === "colorPicker" ? D = R(p, m, y, g, U) : m.ui === "jsonEditor" ? D = I(p, m, y, g, U) : m.ui === "multiTypes" ? D = Ae(p, m, y, g, U) : m.ui === "compSelect" ? D = it(p, m, y, g, U) : m.ui === "slotSelect" ? D = ut(p, m, y, g, U) : console.assert(!1, "renderLeafScalar not implemented"), D ? C(p, m, D) : h("div");
2054
+ }, mt = () => h(
2009
2055
  "div",
2010
2056
  {
2011
2057
  class: "text-body-2",
@@ -2014,49 +2060,49 @@ const Fn = /* @__PURE__ */ J({
2014
2060
  }
2015
2061
  },
2016
2062
  (() => {
2017
- const g = [];
2063
+ const p = [];
2018
2064
  if (l.unique && l.config.length > 0 && l.object) {
2019
2065
  a[l.unique] || (a[l.unique] = {});
2020
- const d = a[l.unique];
2066
+ const m = a[l.unique];
2021
2067
  l.config.forEach((y) => {
2022
- d[y.key] || (d[y.key] = {
2068
+ m[y.key] || (m[y.key] = {
2023
2069
  collapse: !0,
2024
2070
  children: !y.ui && y.array ? [] : {}
2025
2071
  });
2026
- const p = _e(
2072
+ const g = _e(
2027
2073
  [],
2028
2074
  y,
2029
2075
  l.object,
2030
- d[y.key]
2076
+ m[y.key]
2031
2077
  );
2032
- g.push(p);
2078
+ p.push(g);
2033
2079
  });
2034
2080
  }
2035
- return g;
2081
+ return p;
2036
2082
  })()
2037
2083
  );
2038
- return (g, d) => (_(), q(fe, null, [
2039
- b(vt),
2040
- b(Yt, {
2084
+ return (p, m) => (_(), O(fe, null, [
2085
+ M(mt),
2086
+ M(Ht, {
2041
2087
  config: l.config,
2042
2088
  object: l.object,
2043
- "property-states": m.value
2089
+ "property-states": d.value
2044
2090
  }, null, 8, ["config", "object", "property-states"])
2045
2091
  ], 64));
2046
2092
  }
2047
- }), zn = (t) => {
2048
- t.component("XPropTree", Fn);
2049
- }, Gn = (t, s, n) => {
2093
+ }), Hn = (t) => {
2094
+ t.component("XPropTree", Jn);
2095
+ }, Xn = (t, s, n) => {
2050
2096
  const e = t[s];
2051
2097
  return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((l, o) => {
2052
2098
  (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
2099
  });
2054
2100
  };
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;
2101
+ async function In(t) {
2102
+ return (await Xn(/* @__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
2103
  }
2058
- const ll = { install: zn };
2104
+ const el = { install: Hn };
2059
2105
  export {
2060
- ll as default,
2061
- nl as loadLocaleMessagePropTree
2106
+ el as default,
2107
+ In as loadLocaleMessagePropTree
2062
2108
  };