x-prop-tree 0.7.1 → 0.7.3

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