x-prop-tree 0.8.18 → 0.8.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { a as e, i as t, n, o as r, r as i, t as a } from "./vendor.cs922lli.js";
2
- import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, h, inject as g, isRef as _, mergeModels as v, mergeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, ref as E, renderList as D, renderSlot as ee, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as te, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as ne, withModifiers as R } from "vue";
3
- import { eventBus as z, globalObjects as re, injectDark as ie, injectLocale as ae, openNumberDlg as oe, openPromptDlg as se, useColor as B, useSystem as V, useViewStack as H } from "x-essential-lib";
4
- import { getElement as ce, getItems as le, getPropertyDefault as U, getPropertyDefaultArray as W, getTag as ue, getTypes as de, isHexColor as fe, isThemeColor as pe, makeSlotId as me, parseNumberUnit as he, pkgs as ge, rules as _e, themeColors as ve } from "x-runtime-lib";
5
- import { useI18n as G } from "vue-i18n";
2
+ import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, h, inject as g, isRef as _, mergeModels as v, mergeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, ref as E, renderList as D, renderSlot as ee, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as te, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as R, withModifiers as z } from "vue";
3
+ import { eventBus as B, globalObjects as ne, injectDark as re, injectLocale as ie, openNumberDlg as ae, openPromptDlg as oe, useColor as V, useSystem as H, useViewStack as U } from "x-essential-lib";
4
+ import { getElement as se, getItems as ce, getPropertyDefault as W, getPropertyDefaultArray as G, getTag as le, getTypes as ue, isHexColor as de, isThemeColor as fe, makeSlotId as pe, parseNumberUnit as me, pkgs as he, rules as ge, themeColors as _e, unwrapSlotId as ve } from "x-runtime-lib";
5
+ import { useI18n as K } from "vue-i18n";
6
6
  import { globalState as ye } from "x-state-lib";
7
7
  import { useDisplay as be } from "vuetify";
8
8
  import { XBlockly as xe } from "x-block-lib";
9
9
  //#region src/utils/common.ts
10
- function Se(e, t) {
10
+ function q(e, t) {
11
11
  let n = {
12
12
  key: "",
13
13
  name: "",
@@ -20,7 +20,7 @@ function Se(e, t) {
20
20
  }
21
21
  return n;
22
22
  }
23
- function K(e, t) {
23
+ function J(e, t) {
24
24
  let n = e;
25
25
  for (let e of t) {
26
26
  if (!n) throw Error("target must be valid");
@@ -28,42 +28,42 @@ function K(e, t) {
28
28
  }
29
29
  return n;
30
30
  }
31
- function Ce(t, n, r, i, a, o) {
31
+ function Se(t, n, r, i, a, o) {
32
32
  if (i !== void 0 && !a) {
33
33
  if (!(r[i] instanceof Array)) {
34
- let a = W(n);
34
+ let a = G(n);
35
35
  e(a, r[i]) || (r[i] = a, o(t, r[i]));
36
36
  }
37
37
  return r[i];
38
38
  } else {
39
39
  if (!(r[n.key] instanceof Array)) {
40
- let i = W(n);
40
+ let i = G(n);
41
41
  e(i, r[n.key]) || (r[n.key] = i, o(t, r[n.key]));
42
42
  }
43
43
  return r[n.key];
44
44
  }
45
45
  }
46
- function q(t, n, r, i, a, o) {
46
+ function Y(t, n, r, i, a, o) {
47
47
  if (i !== void 0 && !a) {
48
48
  if (r[i] === void 0) {
49
- let a = U(n);
49
+ let a = W(n);
50
50
  e(a, r[i]) || (r[i] = a, o(t, r[i]));
51
51
  }
52
52
  return r[i];
53
53
  } else {
54
54
  if (r[n.key] === void 0) {
55
- let i = U(n);
55
+ let i = W(n);
56
56
  e(i, r[n.key]) || (r[n.key] = i, o(t, r[n.key]));
57
57
  }
58
58
  return r[n.key];
59
59
  }
60
60
  }
61
- function J(t, n, i, a, o, s, c) {
61
+ function X(t, n, i, a, o, s, c) {
62
62
  o !== void 0 && !s ? e(a, i[o]) || (i[o] = r(a), c(t, i[o])) : e(a, i[n.key]) || (i[n.key] = r(a), c(t, i[n.key]));
63
63
  }
64
64
  //#endregion
65
65
  //#region src/utils/collapseState.ts
66
- function Y(e, t) {
66
+ function Z(e, t) {
67
67
  let n = e.value;
68
68
  for (let e of t) {
69
69
  if (!n.children[e]) return !0;
@@ -71,7 +71,7 @@ function Y(e, t) {
71
71
  }
72
72
  return n.collapse;
73
73
  }
74
- function we(e, t, n) {
74
+ function Ce(e, t, n) {
75
75
  let r = e.value;
76
76
  for (let e of t) r.children[e] || (r.children[e] = {
77
77
  collapse: !0,
@@ -81,16 +81,16 @@ function we(e, t, n) {
81
81
  }
82
82
  //#endregion
83
83
  //#region src/utils/copyPaste.ts
84
- var Te = [
84
+ var we = [
85
85
  "key",
86
86
  "name",
87
87
  "children",
88
88
  "default",
89
89
  "arrayDefault"
90
90
  ];
91
- function Ee(n, r) {
91
+ function Te(n, r) {
92
92
  function i(n, r) {
93
- if (!e(t(n, Te), t(r, Te))) return !1;
93
+ if (!e(t(n, we), t(r, we))) return !1;
94
94
  if (n.ui || r.ui) return !0;
95
95
  if (n.children.length !== r.children.length) return !1;
96
96
  for (let e = 0; e < n.children.length; e++) if (!i(n.children[e], r.children[e])) return !1;
@@ -98,27 +98,27 @@ function Ee(n, r) {
98
98
  }
99
99
  return i(n, r);
100
100
  }
101
- function De(e, t, n, r, i, a) {
101
+ function Ee(e, t, n, r, i, a) {
102
102
  function o(e, t, n, r, i) {
103
103
  if (t.ui) {
104
104
  if (t.readonly || t.static) return;
105
- J(e, t, n, r, i, !1, a);
106
- } else if (t.array) J(e, t, n, r, i, !1, a);
105
+ X(e, t, n, r, i, !1, a);
106
+ } else if (t.array) X(e, t, n, r, i, !1, a);
107
107
  else for (let i of t.children) typeof n == "object" && typeof r == "object" && o([...e, i.key], i, n[t.key], r[i.key], void 0);
108
108
  }
109
109
  o(e, t, n, r, i);
110
110
  }
111
111
  //#endregion
112
112
  //#region src/utils/propertyState.ts
113
- var Oe = [["basic", "id"], ["basic", "name"]];
114
- function ke(t) {
115
- return Oe.find((n) => e(t, n));
113
+ var De = [["basic", "id"], ["basic", "name"]];
114
+ function Oe(t) {
115
+ return De.find((n) => e(t, n));
116
116
  }
117
- function X(e, t, n, i, a, o, s) {
117
+ function ke(e, t, n, i, a, o, s) {
118
118
  return e = r(e), a === void 0 ? e.push(t.key) : (e.push(a), o && e.push(t.key)), e?.[0] === "runtime" ? {
119
119
  change: !1,
120
120
  warning: !1
121
- } : ke(e) ? (i.change = !1, i.warning = !1, {
121
+ } : Oe(e) ? (i.change = !1, i.warning = !1, {
122
122
  change: i.change,
123
123
  warning: i.warning
124
124
  }) : t.ui ? t.array && !s ? Me(e, t, n, i, a, o) : Ne(t, n, i, a, o) : t.array ? Ae(e, t, n, i, a, o) : je(e, t, n, i, a, o);
@@ -144,11 +144,11 @@ function Ae(t, n, r, i, a, o) {
144
144
  warning: !1,
145
145
  children: {}
146
146
  };
147
- let { change: n, warning: o } = X(t, a, s[e], r.children[a.key], e, !0);
147
+ let { change: n, warning: o } = ke(t, a, s[e], r.children[a.key], e, !0);
148
148
  !r.change && n && (r.change = n), !r.change && o && (r.warning = o), !i.change && r.change && (i.change = r.change), !i.warning && r.warning && (i.warning = r.warning);
149
149
  }
150
150
  }
151
- return i.change ||= !e(s, W(n)), {
151
+ return i.change ||= !e(s, G(n)), {
152
152
  change: i.change,
153
153
  warning: i.warning
154
154
  };
@@ -168,7 +168,7 @@ function je(e, t, n, r, i, a) {
168
168
  warning: !1,
169
169
  children: {}
170
170
  };
171
- let { change: a, warning: s } = X(e, i, o, r.children[i.key], void 0, !1);
171
+ let { change: a, warning: s } = ke(e, i, o, r.children[i.key], void 0, !1);
172
172
  !r.change && a && (r.change = a), !r.warning && s && (r.warning = s);
173
173
  }
174
174
  return {
@@ -190,10 +190,10 @@ function Me(t, n, r, i, a, o) {
190
190
  warning: !1,
191
191
  children: {}
192
192
  };
193
- let { change: r, warning: a } = X(t, n, s, i.children[e], e, !1, !0);
193
+ let { change: r, warning: a } = ke(t, n, s, i.children[e], e, !1, !0);
194
194
  !i.change && r && (i.change = r), !i.warning && a && (i.warning = a);
195
195
  }
196
- return i.change ||= !e(s, W(n)), {
196
+ return i.change ||= !e(s, G(n)), {
197
197
  change: i.change,
198
198
  warning: i.warning
199
199
  };
@@ -201,7 +201,7 @@ function Me(t, n, r, i, a, o) {
201
201
  function Ne(t, n, r, i, a) {
202
202
  if (!t.ui) throw Error("execPropertyLeafScalar property ui must be valid");
203
203
  let o;
204
- return o = i !== void 0 && !a ? n[i] : n[t.key], r.change = !e(o, U(t)), {
204
+ return o = i !== void 0 && !a ? n[i] : n[t.key], r.change = !e(o, W(t)), {
205
205
  change: r.change,
206
206
  warning: r.warning
207
207
  };
@@ -226,11 +226,11 @@ function Pe(e, t, n) {
226
226
  warning: !1,
227
227
  children: {}
228
228
  };
229
- r.children[e.key] = t, X([], e, n, t, void 0, !1);
229
+ r.children[e.key] = t, ke([], e, n, t, void 0, !1);
230
230
  }
231
231
  e.value = r;
232
232
  }
233
- function Z(e, t) {
233
+ function Q(e, t) {
234
234
  let n = e;
235
235
  for (let e of t) {
236
236
  if (!n.children[e]) return !1;
@@ -286,7 +286,7 @@ function at() {
286
286
  function ot(e) {
287
287
  T(He, e);
288
288
  }
289
- function Q() {
289
+ function $() {
290
290
  return g(He);
291
291
  }
292
292
  function st(e) {
@@ -313,52 +313,52 @@ function pt(t, n, r, i) {
313
313
  if (n.ui) {
314
314
  if (n.readonly || n.static) return;
315
315
  if (n.array) {
316
- let a = t[n.key], o = W(n);
316
+ let a = t[n.key], o = G(n);
317
317
  e(o, a) || (t[n.key] = o, i([...r, n.key], o));
318
318
  } else {
319
- let a = t[n.key], o = U(n);
319
+ let a = t[n.key], o = W(n);
320
320
  e(o, a) || (t[n.key] = o, i([...r, n.key], o));
321
321
  }
322
322
  } else if (n.array) {
323
- let a = t[n.key], o = W(n);
323
+ let a = t[n.key], o = G(n);
324
324
  e(o, a) || (t[n.key] = o, i([...r, n.key], o));
325
325
  } else for (let e of n.children) pt(t[n.key], e, [...r, n.key], i);
326
326
  }
327
327
  function mt(t, n, r, i) {
328
328
  let a = r.at(-1);
329
329
  if (a === void 0) return;
330
- let o = Se(n, r);
330
+ let o = q(n, r);
331
331
  if (o) if (o.ui) {
332
332
  if (o.readonly || o.static) return;
333
333
  if (o.array) if (typeof a == "string") {
334
- let n = K(t, r.slice(0, -1));
334
+ let n = J(t, r.slice(0, -1));
335
335
  if (!n) return;
336
- let s = n[a], c = W(o);
336
+ let s = n[a], c = G(o);
337
337
  e(c, s) || (n[a] = c, i(r, c));
338
338
  } else {
339
- let n = K(t, r.slice(0, -1));
339
+ let n = J(t, r.slice(0, -1));
340
340
  if (!n) return;
341
- let s = n[a], c = U(o);
341
+ let s = n[a], c = W(o);
342
342
  e(c, s) || (n[a] = c, i(r, c));
343
343
  }
344
344
  else {
345
- let n = K(t, r.slice(0, -1));
345
+ let n = J(t, r.slice(0, -1));
346
346
  if (!n) return;
347
- let s = n[a], c = U(o);
347
+ let s = n[a], c = W(o);
348
348
  e(c, s) || (n[a] = c, i(r, c));
349
349
  }
350
350
  } else if (o.array) if (typeof a == "string") {
351
- let n = K(t, r.slice(0, -1));
351
+ let n = J(t, r.slice(0, -1));
352
352
  if (!n) return;
353
- let s = n[a], c = W(o);
353
+ let s = n[a], c = G(o);
354
354
  e(c, s) || (n[a] = c, i(r, c));
355
355
  } else {
356
- let e = K(t, r);
356
+ let e = J(t, r);
357
357
  if (!e) return;
358
358
  for (let t of o.children) pt(e, t, r, i);
359
359
  }
360
360
  else {
361
- let e = K(t, r);
361
+ let e = J(t, r);
362
362
  if (!e) return;
363
363
  for (let t of o.children) pt(e, t, r, i);
364
364
  }
@@ -366,16 +366,16 @@ function mt(t, n, r, i) {
366
366
  //#endregion
367
367
  //#region src/components/menu/func/copy.ts
368
368
  function ht(e) {
369
- let { t } = G(), n = $e(), r = tt();
369
+ let { t } = K(), n = $e(), r = tt();
370
370
  function i() {
371
371
  return !0;
372
372
  }
373
373
  function a() {
374
- let t = Se(n.value, e.value);
374
+ let t = q(n.value, e.value);
375
375
  if (!t) return;
376
376
  let i = {
377
377
  property: t,
378
- object: K(r.value, e.value)
378
+ object: J(r.value, e.value)
379
379
  };
380
380
  localStorage.setItem("propTreeCopy", JSON.stringify(i));
381
381
  }
@@ -390,10 +390,10 @@ function ht(e) {
390
390
  //#endregion
391
391
  //#region src/components/menu/func/paste.ts
392
392
  function gt(e) {
393
- let { t } = G(), n = $e(), r = tt(), i = Q();
393
+ let { t } = K(), n = $e(), r = tt(), i = $();
394
394
  function a() {
395
395
  if (e.value.length <= 0) return !1;
396
- let t = Se(n.value, e.value);
396
+ let t = q(n.value, e.value);
397
397
  if (!t) return !1;
398
398
  let r = localStorage.getItem("propTreeCopy");
399
399
  if (!r) return !1;
@@ -403,11 +403,11 @@ function gt(e) {
403
403
  } catch (e) {
404
404
  return console.error("parse propTreeCopy failed", e), !1;
405
405
  }
406
- return !!Ee(t, i.property);
406
+ return !!Te(t, i.property);
407
407
  }
408
408
  function o() {
409
409
  if (e.value.length <= 0) return;
410
- let t = Se(n.value, e.value);
410
+ let t = q(n.value, e.value);
411
411
  if (!t) return;
412
412
  let a = localStorage.getItem("propTreeCopy");
413
413
  if (!a) return;
@@ -418,11 +418,11 @@ function gt(e) {
418
418
  console.error("parse propTreeCopy failed", e);
419
419
  return;
420
420
  }
421
- if (!Ee(t, o.property)) return;
422
- let s = K(r.value, e.value.slice(0, -1));
421
+ if (!Te(t, o.property)) return;
422
+ let s = J(r.value, e.value.slice(0, -1));
423
423
  if (!s) return;
424
424
  let c = e.value.at(-1);
425
- De(e.value, t, s, o.object, typeof c == "number" ? c : void 0, i);
425
+ Ee(e.value, t, s, o.object, typeof c == "number" ? c : void 0, i);
426
426
  }
427
427
  function s(e) {
428
428
  a() && e.push({
@@ -435,9 +435,9 @@ function gt(e) {
435
435
  //#endregion
436
436
  //#region src/components/menu/func/reset.ts
437
437
  function _t(e) {
438
- let { t } = G(), n = $e(), r = tt(), i = at(), a = Q();
438
+ let { t } = K(), n = $e(), r = tt(), i = at(), a = $();
439
439
  function o() {
440
- return !(e.value.length <= 0 || !Z(i.value, e.value));
440
+ return !(e.value.length <= 0 || !Q(i.value, e.value));
441
441
  }
442
442
  function s() {
443
443
  mt(r.value, n.value, e.value, a);
@@ -458,7 +458,7 @@ var vt = /* @__PURE__ */ m({
458
458
  let t = E(0), n = E(0), r = E([]), i = s(() => [t.value, n.value]), { tryPushCopy: a } = ht(r), { tryPushPaste: l } = gt(r), { tryPushReset: d } = _t(r), m = s(() => {
459
459
  let e = [];
460
460
  return a(e), l(e), d(e), e;
461
- }), { open: h } = H("propTreeMenu", (e) => {
461
+ }), { open: h } = U("propTreeMenu", (e) => {
462
462
  t.value = e.x, n.value = e.y, r.value = e.keys;
463
463
  });
464
464
  return (e, t) => {
@@ -510,7 +510,7 @@ var vt = /* @__PURE__ */ m({
510
510
  "delete"
511
511
  ],
512
512
  setup(e, { emit: t }) {
513
- let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
513
+ let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
514
514
  background: a.value ? r.value : n.value,
515
515
  height: "36px",
516
516
  marginBottom: "1px",
@@ -526,7 +526,7 @@ var vt = /* @__PURE__ */ m({
526
526
  class: "d-flex align-center cursor-pointer",
527
527
  style: b(o.value),
528
528
  onClick: f,
529
- onContextmenu: R(m, ["self", "prevent"]),
529
+ onContextmenu: z(m, ["self", "prevent"]),
530
530
  onMouseout: n[2] ||= (e) => a.value = !1,
531
531
  onMouseover: n[3] ||= (e) => a.value = !0
532
532
  }, [
@@ -542,7 +542,7 @@ var vt = /* @__PURE__ */ m({
542
542
  density: "compact",
543
543
  icon: "mdi-plus",
544
544
  variant: "text",
545
- onClick: n[0] ||= R((e) => i("create"), ["stop"])
545
+ onClick: n[0] ||= z((e) => i("create"), ["stop"])
546
546
  })) : l("", !0),
547
547
  e.hasDelete ? (w(), c(h, {
548
548
  key: 1,
@@ -550,7 +550,7 @@ var vt = /* @__PURE__ */ m({
550
550
  density: "compact",
551
551
  icon: "mdi-minus",
552
552
  variant: "text",
553
- onClick: n[1] ||= R((t) => i("delete", e.index), ["stop"])
553
+ onClick: n[1] ||= z((t) => i("delete", e.index), ["stop"])
554
554
  })) : l("", !0)
555
555
  ], 36)), [[g]]);
556
556
  };
@@ -559,13 +559,13 @@ var vt = /* @__PURE__ */ m({
559
559
  //#endregion
560
560
  //#region src/composables/adaptSlotList/index.ts
561
561
  function xt() {
562
- let e = qe(), t = Ye(), n = Ze(), { i18n: r } = re, o = E([]);
562
+ let e = qe(), t = Ye(), n = Ze(), { i18n: r } = ne, o = E([]);
563
563
  dt(o);
564
564
  let s = () => {
565
565
  if (!e.value || !t.value || !n.value) return [];
566
- let s = ge[e.value];
566
+ let s = he[e.value];
567
567
  if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
568
- let c = ue(t.value, n.value), l = [];
568
+ let c = le(t.value, n.value), l = [];
569
569
  for (let e = 0; e < s.groups[c].length; e++) {
570
570
  let t = s.groups[c][e], n = i(o, t.key);
571
571
  l.push({
@@ -578,15 +578,16 @@ function xt() {
578
578
  });
579
579
  let a = 0;
580
580
  for (let e of t.items) {
581
- let n = ce(e);
581
+ let n = se(e);
582
582
  if (n && !n.internal && n.slots) for (let e of n.slots) {
583
- let i = me("elementSlot", n.key, e.key), o = `${r.global.t(n.name)} / ${r.global.t(e.name)}`;
583
+ let i = pe("elementSlot", n.key, e.key), o = `${r.global.t(n.name)} / ${r.global.t(e.name)}`;
584
584
  l.push({
585
585
  id: i,
586
586
  type: 1,
587
587
  name: o,
588
588
  position: a++,
589
- group: t.key
589
+ group: t.key,
590
+ names: [n.name, e.name]
590
591
  });
591
592
  }
592
593
  }
@@ -606,13 +607,14 @@ function xt() {
606
607
  for (let e of u.comps) {
607
608
  let t = d[e.id];
608
609
  if (t && t.meta.slots) for (let n of t.meta.slots) {
609
- let t = me("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
610
+ let t = pe("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
610
611
  l.push({
611
612
  id: t,
612
613
  type: 1,
613
614
  name: r,
614
615
  position: f++,
615
- group: e.groupId
616
+ group: e.groupId,
617
+ names: [e.name, n.name]
616
618
  });
617
619
  }
618
620
  }
@@ -717,28 +719,28 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
717
719
  },
718
720
  emits: ["x-click"],
719
721
  setup(e, { emit: t }) {
720
- let { backgroundColor2: n, highlightColor: r } = B(), i = e, a = t, o = E(!1), c = s(() => ({
721
- background: o.value ? r.value : n.value,
722
+ let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
723
+ background: a.value ? r.value : n.value,
722
724
  height: "30px",
723
725
  marginTop: "1px",
724
726
  userSelect: "none"
725
727
  }));
726
- return (e, t) => {
727
- let n = O("v-icon"), r = k("ripple");
728
+ return (t, n) => {
729
+ let r = O("v-icon"), s = k("ripple");
728
730
  return L((w(), u("div", {
729
731
  class: "d-flex align-center cursor-pointer",
730
- style: b(c.value),
731
- onClick: t[0] ||= (e) => a("x-click", i.id),
732
- onMouseout: t[1] ||= (e) => o.value = !1,
733
- onMouseover: t[2] ||= (e) => o.value = !0
732
+ style: b(o.value),
733
+ onClick: n[0] ||= (t) => i("x-click", e.id),
734
+ onMouseout: n[1] ||= (e) => a.value = !1,
735
+ onMouseover: n[2] ||= (e) => a.value = !0
734
736
  }, [
735
- p(n, {
736
- icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
737
+ p(r, {
738
+ icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
737
739
  size: "small"
738
740
  }, null, 8, ["icon"]),
739
- d("span", wt, A(i.title), 1),
740
- d("span", Tt, A(i.count), 1)
741
- ], 36)), [[r]]);
741
+ d("span", wt, A(e.title), 1),
742
+ d("span", Tt, A(e.count), 1)
743
+ ], 36)), [[s]]);
742
744
  };
743
745
  }
744
746
  }), Dt = { class: "text-body-large ml-6" }, Ot = /* @__PURE__ */ m({
@@ -749,7 +751,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
749
751
  },
750
752
  emits: ["x-click"],
751
753
  setup(e, { emit: t }) {
752
- let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
754
+ let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
753
755
  background: a.value ? r.value : n.value,
754
756
  height: "48px",
755
757
  marginTop: "1px",
@@ -772,29 +774,27 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
772
774
  }, jt = /* @__PURE__ */ m({
773
775
  __name: "index",
774
776
  props: {
775
- modelValue: {},
776
- modelModifiers: {},
777
777
  open: {
778
778
  type: Boolean,
779
779
  required: !0
780
780
  },
781
781
  openModifiers: {}
782
782
  },
783
- emits: ["update:modelValue", "update:open"],
784
- setup(e) {
785
- let { t } = G(), r = N(e, "modelValue"), a = N(e, "open"), s = ft(), d = (e) => {
786
- let t = i(s, e);
787
- t && n(s, e, !t.collapse);
788
- }, f = (e) => {
789
- r.value = e, a.value = !1;
783
+ emits: /*@__PURE__*/ v(["x-select"], ["update:open"]),
784
+ setup(e, { emit: t }) {
785
+ let { t: r } = K(), a = N(e, "open"), s = t, d = ft(), f = (e) => {
786
+ let t = i(d, e);
787
+ t && n(d, e, !t.collapse);
788
+ }, p = (e) => {
789
+ a.value = !1, s("x-select", e);
790
790
  };
791
- return (e, n) => j(s).length > 0 ? (w(), u("div", kt, [(w(!0), u(o, null, D(j(s), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(Et, {
791
+ return (e, t) => j(d).length > 0 ? (w(), u("div", kt, [(w(!0), u(o, null, D(j(d), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(Et, {
792
792
  key: 0,
793
793
  id: e.id,
794
794
  collapse: e.collapse,
795
795
  count: e.count ?? 0,
796
796
  title: e.name,
797
- onXClick: d
797
+ onXClick: f
798
798
  }, null, 8, [
799
799
  "id",
800
800
  "collapse",
@@ -804,12 +804,12 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
804
804
  key: 1,
805
805
  id: e.id,
806
806
  title: e.name,
807
- onXClick: f
808
- }, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", At, A(j(t)("x-prop-tree.noAdaptSlot")), 1));
807
+ onXClick: p
808
+ }, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", At, A(j(r)("x-prop-tree.noAdaptSlot")), 1));
809
809
  }
810
810
  }), Mt = { class: "text-body-large" }, Nt = /* @__PURE__ */ m({
811
811
  __name: "index",
812
- props: /* @__PURE__ */ v({
812
+ props: /*@__PURE__*/ v({
813
813
  hasDelete: {
814
814
  type: Boolean,
815
815
  default: !1
@@ -819,92 +819,117 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
819
819
  default: !1
820
820
  }
821
821
  }, {
822
- modelValue: {},
822
+ modelValue: { default: null },
823
823
  modelModifiers: {}
824
824
  }),
825
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
826
- setup(e, { emit: t }) {
827
- let { t: n } = G(), r = be(), { sysBarAvail: a } = V(), { backgroundColor1: o } = B(), u = N(e, "modelValue"), m = t, h = ft(), g = s(() => {
825
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
826
+ setup(t, { emit: n }) {
827
+ let { t: a } = K(), o = be(), { sysBarAvail: u } = H(), { backgroundColor1: m } = V(), h = N(t, "modelValue"), g = n, v = ft(), x = s(() => {
828
828
  let e = "100%";
829
- return r.mdAndUp.value && (e = "400px"), {
830
- background: o.value,
829
+ return o.mdAndUp.value && (e = "400px"), {
830
+ background: m.value,
831
831
  width: e,
832
832
  height: "100%"
833
833
  };
834
- }), v = s(() => {
834
+ }), S = s(() => {
835
835
  let e = 48;
836
- return a.value && (e += 24), {
836
+ return u.value && (e += 24), {
837
837
  position: "relative",
838
838
  height: `calc(100% - ${e}px)`
839
839
  };
840
- }), x = s(() => ({ height: "60px" })), S = s(() => {
841
- if (!u.value) return n("x-runtime-lib.notSet");
842
- let e = i(h, u.value);
843
- return e ? e.name : n("x-runtime-lib.slotNotAvail");
844
- }), { open: T } = H(`propTreeAdaptSlotSelectDlg${M()}`);
845
- return C(() => {
846
- T.value = !1;
847
- }), (t, r) => {
848
- let i = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
849
- return w(), c(s, {
850
- modelValue: j(T),
851
- "onUpdate:modelValue": r[6] ||= (e) => _(T) ? T.value = e : null,
840
+ }), T = s(() => ({ height: "60px" }));
841
+ F(() => {
842
+ if (!h.value) return;
843
+ let t = i(v, h.value.id);
844
+ t && !e(t.names, h.value.names) && (h.value = {
845
+ ...h.value,
846
+ names: r(t.names)
847
+ });
848
+ });
849
+ let E = s(() => {
850
+ if (h.value) {
851
+ let { kind: e } = ve(h.value.id);
852
+ return e === "elementSlot" || e === "multipleElementSlot" ? h.value.names.map((e) => a(e)).join(" / ") : h.value.names.join(" / ");
853
+ } else return a("x-runtime-lib.notSet");
854
+ }), { open: D } = U(`propTreeAdaptSlotSelectDlg${M()}`);
855
+ C(() => {
856
+ D.value = !1;
857
+ });
858
+ function ee(e) {
859
+ if (!e) {
860
+ h.value = null;
861
+ return;
862
+ }
863
+ let t = i(v, e);
864
+ if (!t) {
865
+ h.value = null;
866
+ return;
867
+ }
868
+ h.value = {
869
+ id: t.id,
870
+ names: t.names
871
+ };
872
+ }
873
+ return (e, n) => {
874
+ let r = O("v-btn"), i = O("v-sheet"), o = O("v-dialog");
875
+ return w(), c(o, {
876
+ modelValue: j(D),
877
+ "onUpdate:modelValue": n[5] ||= (e) => _(D) ? D.value = e : null,
852
878
  fullscreen: "",
853
879
  "no-click-animation": "",
854
880
  persistent: "",
855
881
  transition: "scroll-x-reverse-transition",
856
- onKeydown: r[7] ||= ne(R((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
882
+ onKeydown: n[6] ||= R(z((e) => D.value = !1, ["stop", "prevent"]), ["esc"])
857
883
  }, {
858
- activator: I(({ props: t }) => [p(i, y(t, {
884
+ activator: I(({ props: e }) => [p(r, y(e, {
859
885
  block: "",
860
886
  density: "comfortable",
861
- readonly: e.readonly
887
+ readonly: t.readonly
862
888
  }), {
863
- default: I(() => [f(A(S.value), 1)]),
889
+ default: I(() => [f(A(E.value), 1)]),
864
890
  _: 1
865
- }, 16, ["readonly"]), e.hasDelete ? (w(), c(i, {
891
+ }, 16, ["readonly"]), t.hasDelete ? (w(), c(r, {
866
892
  key: 0,
867
893
  class: "mx-2",
868
894
  density: "compact",
869
895
  icon: "mdi-minus",
870
896
  variant: "text",
871
- onClick: r[0] ||= R((e) => m("delete"), ["stop"])
897
+ onClick: n[0] ||= z((e) => g("delete"), ["stop"])
872
898
  })) : l("", !0)]),
873
899
  default: I(() => [d("div", {
874
900
  class: "w-100 h-100 d-flex flex-row-reverse",
875
- onClick: r[4] ||= R((e) => T.value = !1, ["self"]),
876
- onContextmenu: r[5] ||= R((e) => T.value = !1, ["self", "prevent"])
901
+ onClick: n[3] ||= z((e) => D.value = !1, ["self"]),
902
+ onContextmenu: n[4] ||= z((e) => D.value = !1, ["self", "prevent"])
877
903
  }, [d("div", {
878
904
  class: "elevation-2",
879
- style: b(g.value)
905
+ style: b(x.value)
880
906
  }, [
881
- j(a) ? (w(), c(o, {
907
+ j(u) ? (w(), c(i, {
882
908
  key: 0,
883
909
  color: "transparent",
884
910
  height: 24
885
911
  })) : l("", !0),
886
- p(o, {
912
+ p(i, {
887
913
  class: "d-flex align-center px-3",
888
914
  color: "transparent",
889
915
  height: 48
890
916
  }, {
891
- default: I(() => [p(i, {
917
+ default: I(() => [p(r, {
892
918
  density: "comfortable",
893
919
  icon: "mdi-close",
894
920
  variant: "text",
895
- onClick: r[1] ||= (e) => T.value = !1
896
- }), d("span", Mt, A(j(n)("x-prop-tree.selectAdaptSlot")), 1)]),
921
+ onClick: n[1] ||= (e) => D.value = !1
922
+ }), d("span", Mt, A(j(a)("x-prop-tree.selectAdaptSlot")), 1)]),
897
923
  _: 1
898
924
  }),
899
925
  d("div", {
900
926
  class: "overflow-y-auto",
901
- style: b(v.value)
927
+ style: b(S.value)
902
928
  }, [p(jt, {
903
- modelValue: u.value,
904
- "onUpdate:modelValue": r[2] ||= (e) => u.value = e,
905
- open: j(T),
906
- "onUpdate:open": r[3] ||= (e) => _(T) ? T.value = e : null
907
- }, null, 8, ["modelValue", "open"]), d("div", { style: b(x.value) }, null, 4)], 4)
929
+ open: j(D),
930
+ "onUpdate:open": n[2] ||= (e) => _(D) ? D.value = e : null,
931
+ onXSelect: ee
932
+ }, null, 8, ["open"]), d("div", { style: b(T.value) }, null, 4)], 4)
908
933
  ], 4)], 32)]),
909
934
  _: 1
910
935
  }, 8, ["modelValue"]);
@@ -920,28 +945,28 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
920
945
  },
921
946
  emits: ["x-click"],
922
947
  setup(e, { emit: t }) {
923
- let { backgroundColor2: n, highlightColor: r } = B(), i = e, a = t, o = E(!1), c = s(() => ({
924
- background: o.value ? r.value : n.value,
948
+ let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
949
+ background: a.value ? r.value : n.value,
925
950
  height: "30px",
926
951
  marginTop: "1px",
927
952
  userSelect: "none"
928
953
  }));
929
- return (e, t) => {
930
- let n = O("v-icon"), r = k("ripple");
954
+ return (t, n) => {
955
+ let r = O("v-icon"), s = k("ripple");
931
956
  return L((w(), u("div", {
932
957
  class: "d-flex align-center cursor-pointer",
933
- style: b(c.value),
934
- onClick: t[0] ||= (e) => a("x-click", i.id),
935
- onMouseout: t[1] ||= (e) => o.value = !1,
936
- onMouseover: t[2] ||= (e) => o.value = !0
958
+ style: b(o.value),
959
+ onClick: n[0] ||= (t) => i("x-click", e.id),
960
+ onMouseout: n[1] ||= (e) => a.value = !1,
961
+ onMouseover: n[2] ||= (e) => a.value = !0
937
962
  }, [
938
- p(n, {
939
- icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
963
+ p(r, {
964
+ icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
940
965
  size: "small"
941
966
  }, null, 8, ["icon"]),
942
- d("span", Pt, A(i.title), 1),
943
- d("span", Ft, A(i.count), 1)
944
- ], 36)), [[r]]);
967
+ d("span", Pt, A(e.title), 1),
968
+ d("span", Ft, A(e.count), 1)
969
+ ], 36)), [[s]]);
945
970
  };
946
971
  }
947
972
  }), Lt = { class: "text-body-large ml-6" }, Rt = /* @__PURE__ */ m({
@@ -952,21 +977,21 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
952
977
  },
953
978
  emits: ["x-click"],
954
979
  setup(e, { emit: t }) {
955
- let { backgroundColor2: n, highlightColor: r } = B(), i = e, a = t, o = E(!1), c = s(() => ({
956
- background: o.value ? r.value : n.value,
980
+ let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
981
+ background: a.value ? r.value : n.value,
957
982
  height: "48px",
958
983
  marginTop: "1px",
959
984
  userSelect: "none"
960
985
  }));
961
- return (e, t) => {
962
- let n = k("ripple");
986
+ return (t, n) => {
987
+ let r = k("ripple");
963
988
  return L((w(), u("div", {
964
989
  class: "d-flex align-center cursor-pointer",
965
- style: b(c.value),
966
- onClick: t[0] ||= (e) => a("x-click", i.id),
967
- onMouseout: t[1] ||= (e) => o.value = !1,
968
- onMouseover: t[2] ||= (e) => o.value = !0
969
- }, [d("span", Lt, A(i.title), 1)], 36)), [[n]]);
990
+ style: b(o.value),
991
+ onClick: n[0] ||= (t) => i("x-click", e.id),
992
+ onMouseout: n[1] ||= (e) => a.value = !1,
993
+ onMouseover: n[2] ||= (e) => a.value = !0
994
+ }, [d("span", Lt, A(e.title), 1)], 36)), [[r]]);
970
995
  };
971
996
  }
972
997
  }), zt = { key: 0 }, Bt = {
@@ -975,29 +1000,29 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
975
1000
  }, Vt = /* @__PURE__ */ m({
976
1001
  __name: "index",
977
1002
  props: {
978
- modelValue: {},
979
- modelModifiers: {},
980
1003
  open: {
981
1004
  type: Boolean,
982
1005
  required: !0
983
1006
  },
984
1007
  openModifiers: {}
985
1008
  },
986
- emits: ["update:modelValue", "update:open"],
987
- setup(e) {
988
- let { t } = G(), r = N(e, "modelValue"), a = N(e, "open"), s = ct(), d = (e) => {
989
- let t = i(s, e);
990
- t && n(s, e, !t.collapse);
991
- }, f = (e) => {
992
- r.value = e, a.value = !1, z.emit("refreshDepends");
993
- };
994
- return (e, n) => j(s).length > 0 ? (w(), u("div", zt, [(w(!0), u(o, null, D(j(s), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(It, {
1009
+ emits: /*@__PURE__*/ v(["x-select"], ["update:open"]),
1010
+ setup(e, { emit: t }) {
1011
+ let { t: r } = K(), a = N(e, "open"), s = t, d = ct();
1012
+ function f(e) {
1013
+ let t = i(d, e);
1014
+ t && n(d, e, !t.collapse);
1015
+ }
1016
+ function p(e) {
1017
+ a.value = !1, s("x-select", e), B.emit("refreshDepends");
1018
+ }
1019
+ return (e, t) => j(d).length > 0 ? (w(), u("div", zt, [(w(!0), u(o, null, D(j(d), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(It, {
995
1020
  key: 0,
996
1021
  id: e.id,
997
1022
  collapse: e.collapse,
998
1023
  count: e.count ?? 0,
999
1024
  title: e.name,
1000
- onXClick: d
1025
+ onXClick: f
1001
1026
  }, null, 8, [
1002
1027
  "id",
1003
1028
  "collapse",
@@ -1007,12 +1032,12 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1007
1032
  key: 1,
1008
1033
  id: e.id,
1009
1034
  title: e.name,
1010
- onXClick: f
1011
- }, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", Bt, A(j(t)("x-prop-tree.noComp")), 1));
1035
+ onXClick: p
1036
+ }, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", Bt, A(j(r)("x-prop-tree.noComp")), 1));
1012
1037
  }
1013
1038
  }), Ht = { class: "text-body-large" }, Ut = /* @__PURE__ */ m({
1014
1039
  __name: "index",
1015
- props: /* @__PURE__ */ v({
1040
+ props: /*@__PURE__*/ v({
1016
1041
  hasDelete: {
1017
1042
  type: Boolean,
1018
1043
  default: !1
@@ -1022,12 +1047,12 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1022
1047
  default: !1
1023
1048
  }
1024
1049
  }, {
1025
- modelValue: {},
1050
+ modelValue: { default: null },
1026
1051
  modelModifiers: {}
1027
1052
  }),
1028
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1053
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
1029
1054
  setup(e, { emit: t }) {
1030
- let { t: n } = G(), r = be(), { sysBarAvail: a } = V(), { backgroundColor1: o } = B(), u = N(e, "modelValue"), m = t, h = ct(), g = s(() => {
1055
+ let { t: n } = K(), r = be(), { sysBarAvail: a } = H(), { backgroundColor1: o } = V(), u = N(e, "modelValue"), m = t, h = ct(), g = s(() => {
1031
1056
  let e = "100%";
1032
1057
  return r.mdAndUp.value && (e = "400px"), {
1033
1058
  background: o.value,
@@ -1040,23 +1065,44 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1040
1065
  position: "relative",
1041
1066
  height: `calc(100% - ${e}px)`
1042
1067
  };
1043
- }), x = s(() => ({ height: "60px" })), S = s(() => {
1044
- if (!u.value) return n("x-runtime-lib.notSet");
1045
- let e = i(h, u.value);
1046
- return e ? e.name : n("x-runtime-lib.compNotAvail");
1047
- }), { open: T } = H(`propTreeCompSelectDlg${M()}`);
1048
- return C(() => {
1068
+ }), x = s(() => ({ height: "60px" }));
1069
+ F(() => {
1070
+ if (!u.value) return;
1071
+ let e = i(h, u.value.id);
1072
+ e && e.name !== u.value.name && (u.value = {
1073
+ ...u.value,
1074
+ name: e.name
1075
+ });
1076
+ });
1077
+ let S = s(() => u.value ? u.value.name : n("x-runtime-lib.notSet")), { open: T } = U(`propTreeCompSelectDlg${M()}`);
1078
+ C(() => {
1049
1079
  T.value = !1;
1050
- }), (t, r) => {
1080
+ });
1081
+ function E(e) {
1082
+ if (!e) {
1083
+ u.value = null;
1084
+ return;
1085
+ }
1086
+ let t = i(h, e);
1087
+ if (!t) {
1088
+ u.value = null;
1089
+ return;
1090
+ }
1091
+ u.value = {
1092
+ id: t.id,
1093
+ name: t.name
1094
+ };
1095
+ }
1096
+ return (t, r) => {
1051
1097
  let i = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
1052
1098
  return w(), c(s, {
1053
1099
  modelValue: j(T),
1054
- "onUpdate:modelValue": r[6] ||= (e) => _(T) ? T.value = e : null,
1100
+ "onUpdate:modelValue": r[5] ||= (e) => _(T) ? T.value = e : null,
1055
1101
  fullscreen: "",
1056
1102
  "no-click-animation": "",
1057
1103
  persistent: "",
1058
1104
  transition: "scroll-x-reverse-transition",
1059
- onKeydown: r[7] ||= ne(R((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
1105
+ onKeydown: r[6] ||= R(z((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
1060
1106
  }, {
1061
1107
  activator: I(({ props: t }) => [p(i, y(t, {
1062
1108
  block: "",
@@ -1071,12 +1117,12 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1071
1117
  density: "compact",
1072
1118
  icon: "mdi-minus",
1073
1119
  variant: "text",
1074
- onClick: r[0] ||= R((e) => m("delete"), ["stop"])
1120
+ onClick: r[0] ||= z((e) => m("delete"), ["stop"])
1075
1121
  })) : l("", !0)]),
1076
1122
  default: I(() => [d("div", {
1077
1123
  class: "w-100 h-100 d-flex flex-row-reverse",
1078
- onClick: r[4] ||= R((e) => T.value = !1, ["self"]),
1079
- onContextmenu: r[5] ||= R((e) => T.value = !1, ["self", "prevent"])
1124
+ onClick: r[3] ||= z((e) => T.value = !1, ["self"]),
1125
+ onContextmenu: r[4] ||= z((e) => T.value = !1, ["self", "prevent"])
1080
1126
  }, [d("div", {
1081
1127
  class: "elevation-2",
1082
1128
  style: b(g.value)
@@ -1103,11 +1149,10 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1103
1149
  class: "overflow-y-auto",
1104
1150
  style: b(v.value)
1105
1151
  }, [p(Vt, {
1106
- modelValue: u.value,
1107
- "onUpdate:modelValue": r[2] ||= (e) => u.value = e,
1108
1152
  open: j(T),
1109
- "onUpdate:open": r[3] ||= (e) => _(T) ? T.value = e : null
1110
- }, null, 8, ["modelValue", "open"]), d("div", { style: b(x.value) }, null, 4)], 4)
1153
+ "onUpdate:open": r[2] ||= (e) => _(T) ? T.value = e : null,
1154
+ onXSelect: E
1155
+ }, null, 8, ["open"]), d("div", { style: b(x.value) }, null, 4)], 4)
1111
1156
  ], 4)], 32)]),
1112
1157
  _: 1
1113
1158
  }, 8, ["modelValue"]);
@@ -1115,7 +1160,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1115
1160
  }
1116
1161
  }), Wt = { class: "d-flex justify-space-between align-center" }, Gt = /* @__PURE__ */ m({
1117
1162
  __name: "index",
1118
- props: /* @__PURE__ */ v({
1163
+ props: /*@__PURE__*/ v({
1119
1164
  hasDelete: {
1120
1165
  type: Boolean,
1121
1166
  default: !1
@@ -1128,11 +1173,11 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1128
1173
  modelValue: { required: !0 },
1129
1174
  modelModifiers: {}
1130
1175
  }),
1131
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1176
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
1132
1177
  setup(e, { emit: t }) {
1133
- let { isMobile: n } = V(), r = N(e, "modelValue"), i = t, a = async (t) => {
1178
+ let { isMobile: n } = H(), r = N(e, "modelValue"), i = t, a = async (t) => {
1134
1179
  if (!t || e.readonly || !n()) return;
1135
- let i = await se({
1180
+ let i = await oe({
1136
1181
  title: "",
1137
1182
  value: r.value
1138
1183
  });
@@ -1159,7 +1204,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1159
1204
  density: "compact",
1160
1205
  icon: "mdi-minus",
1161
1206
  variant: "text",
1162
- onClick: n[1] ||= R((e) => i("delete"), ["stop"])
1207
+ onClick: n[1] ||= z((e) => i("delete"), ["stop"])
1163
1208
  })) : l("", !0)]);
1164
1209
  };
1165
1210
  }
@@ -1182,7 +1227,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1182
1227
  "update:scale"
1183
1228
  ],
1184
1229
  setup(e, { expose: t }) {
1185
- let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a = ie(), o = ae(), s = qe(), l = te("target"), u = () => {
1230
+ let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a = re(), o = ie(), s = qe(), l = te("target"), u = () => {
1186
1231
  let e = JSON.parse(n.value);
1187
1232
  l.value?.load(e);
1188
1233
  };
@@ -1211,7 +1256,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1211
1256
  }
1212
1257
  }), qt = { class: "text-body-large" }, Jt = /* @__PURE__ */ m({
1213
1258
  __name: "index",
1214
- props: /* @__PURE__ */ v({
1259
+ props: /*@__PURE__*/ v({
1215
1260
  hasDelete: {
1216
1261
  type: Boolean,
1217
1262
  default: !1
@@ -1224,16 +1269,16 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1224
1269
  modelValue: { required: !0 },
1225
1270
  modelModifiers: {}
1226
1271
  }),
1227
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1272
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
1228
1273
  setup(e, { emit: t }) {
1229
- let { t: n } = G(), { sysBarAvail: r } = V(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: o } = B(), u = N(e, "modelValue"), m = t, h = E(!1), g = E(1), v = s(() => {
1274
+ let { t: n } = K(), { sysBarAvail: r } = H(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: o } = V(), u = N(e, "modelValue"), m = t, h = E(!1), g = E(1), v = s(() => {
1230
1275
  let e = 48;
1231
1276
  return r.value && (e += 24), {
1232
1277
  position: "relative",
1233
1278
  background: a.value,
1234
1279
  height: `calc(100% - ${e}px)`
1235
1280
  };
1236
- }), x = s(() => n("x-prop-tree.jsonEditor")), { open: S } = H(`propTreejsonEditorDlg${M()}`);
1281
+ }), x = s(() => n("x-prop-tree.jsonEditor")), { open: S } = U(`propTreejsonEditorDlg${M()}`);
1237
1282
  C(() => {
1238
1283
  S.value = !1;
1239
1284
  });
@@ -1250,7 +1295,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1250
1295
  "no-click-animation": "",
1251
1296
  persistent: "",
1252
1297
  transition: "dialog-bottom-transition",
1253
- onKeydown: n[6] ||= ne(R((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
1298
+ onKeydown: n[6] ||= R(z((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
1254
1299
  }, {
1255
1300
  activator: I(({ props: t }) => [p(a, y(t, {
1256
1301
  block: "",
@@ -1265,7 +1310,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1265
1310
  density: "compact",
1266
1311
  icon: "mdi-minus",
1267
1312
  variant: "text",
1268
- onClick: n[0] ||= R((e) => m("delete"), ["stop"])
1313
+ onClick: n[0] ||= z((e) => m("delete"), ["stop"])
1269
1314
  })) : l("", !0)]),
1270
1315
  default: I(() => [p(s, {
1271
1316
  color: j(i),
@@ -1318,7 +1363,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1318
1363
  }
1319
1364
  }), Yt = { class: "d-flex justify-space-between align-center" }, Xt = /* @__PURE__ */ m({
1320
1365
  __name: "color",
1321
- props: /* @__PURE__ */ v({
1366
+ props: /*@__PURE__*/ v({
1322
1367
  hasDelete: {
1323
1368
  type: Boolean,
1324
1369
  default: !1
@@ -1331,12 +1376,12 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1331
1376
  modelValue: {},
1332
1377
  modelModifiers: {}
1333
1378
  }),
1334
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1379
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
1335
1380
  setup(e, { emit: t }) {
1336
- let { t: n } = G(), r = N(e, "modelValue"), i = t, a = s(() => {
1381
+ let { t: n } = K(), r = N(e, "modelValue"), i = t, a = s(() => {
1337
1382
  let t = "100%";
1338
1383
  return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
1339
- }), o = s(() => e.readonly), { open: u } = H(`propTreeColorPickerMenu${M()}`);
1384
+ }), o = s(() => e.readonly), { open: u } = U(`propTreeColorPickerMenu${M()}`);
1340
1385
  return C(() => {
1341
1386
  u.value = !1;
1342
1387
  }), (t, s) => {
@@ -1364,7 +1409,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1364
1409
  density: "compact",
1365
1410
  icon: "mdi-minus",
1366
1411
  variant: "text",
1367
- onClick: s[0] ||= R((e) => i("delete"), ["stop"])
1412
+ onClick: s[0] ||= z((e) => i("delete"), ["stop"])
1368
1413
  })) : l("", !0)])]),
1369
1414
  default: I(() => [p(h, {
1370
1415
  modelValue: r.value,
@@ -1379,7 +1424,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1379
1424
  }
1380
1425
  }), Zt = { class: "d-flex justify-space-between align-center my-2" }, Qt = { class: "flex-grow-1" }, $t = /* @__PURE__ */ m({
1381
1426
  __name: "index",
1382
- props: /* @__PURE__ */ v({
1427
+ props: /*@__PURE__*/ v({
1383
1428
  hasDelete: {
1384
1429
  type: Boolean,
1385
1430
  default: !1
@@ -1393,9 +1438,9 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1393
1438
  modelValue: {},
1394
1439
  modelModifiers: {}
1395
1440
  }),
1396
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1441
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
1397
1442
  setup(e, { emit: t }) {
1398
- let { t: n } = G(), { isMobile: r } = V(), i = N(e, "modelValue"), a = t, o = s(() => de(e.types)), f = E(""), m = s(() => {
1443
+ let { t: n } = K(), { isMobile: r } = H(), i = N(e, "modelValue"), a = t, o = s(() => ue(e.types)), f = E(""), m = s(() => {
1399
1444
  let e = [];
1400
1445
  for (let { value: t, title: r } of o.value) e.push({
1401
1446
  value: t,
@@ -1419,7 +1464,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1419
1464
  }
1420
1465
  let v = E(0), y = async (e) => {
1421
1466
  if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "numberUnit") return;
1422
- let t = await oe({
1467
+ let t = await ae({
1423
1468
  title: "",
1424
1469
  value: v.value,
1425
1470
  precision: h.value.precision,
@@ -1430,26 +1475,26 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1430
1475
  t !== void 0 && (v.value = t);
1431
1476
  };
1432
1477
  F(() => {
1433
- h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value = he(i.value, h.value.unit));
1478
+ h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value = me(i.value, h.value.unit));
1434
1479
  }), P(v, (e) => {
1435
1480
  h.value?.trait === "number" ? i.value = e : h.value?.trait === "numberUnit" && (i.value = e + h.value.unit);
1436
1481
  });
1437
1482
  let b = E("#ff00ff");
1438
1483
  F(() => {
1439
- h.value?.trait === "hexColor" && fe(i.value) && (b.value = i.value);
1484
+ h.value?.trait === "hexColor" && de(i.value) && (b.value = i.value);
1440
1485
  }), P(b, (e) => {
1441
1486
  h.value?.trait === "hexColor" && (i.value = e);
1442
1487
  });
1443
1488
  let x = E("primary"), S = s(() => {
1444
1489
  let e = [];
1445
- if (h.value?.trait === "themeColor") for (let { value: t, title: r } of ve) e.push({
1490
+ if (h.value?.trait === "themeColor") for (let { value: t, title: r } of _e) e.push({
1446
1491
  value: t,
1447
1492
  title: n(r)
1448
1493
  });
1449
1494
  return e;
1450
1495
  });
1451
1496
  return F(() => {
1452
- h.value?.trait === "themeColor" && pe(i.value) && (x.value = i.value);
1497
+ h.value?.trait === "themeColor" && fe(i.value) && (x.value = i.value);
1453
1498
  }), P(x, (e) => {
1454
1499
  h.value?.trait === "themeColor" && (i.value = e);
1455
1500
  }), (t, n) => {
@@ -1525,13 +1570,13 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1525
1570
  density: "compact",
1526
1571
  icon: "mdi-minus",
1527
1572
  variant: "text",
1528
- onClick: n[4] ||= R((e) => a("delete"), ["stop"])
1573
+ onClick: n[4] ||= z((e) => a("delete"), ["stop"])
1529
1574
  })) : l("", !0)]);
1530
1575
  };
1531
1576
  }
1532
1577
  }), en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PURE__ */ m({
1533
1578
  __name: "index",
1534
- props: /* @__PURE__ */ v({
1579
+ props: /*@__PURE__*/ v({
1535
1580
  hasDelete: {
1536
1581
  type: Boolean,
1537
1582
  default: !1
@@ -1548,11 +1593,11 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1548
1593
  modelValue: { required: !0 },
1549
1594
  modelModifiers: {}
1550
1595
  }),
1551
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1596
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
1552
1597
  setup(e, { emit: t }) {
1553
- let { isMobile: n } = V(), r = N(e, "modelValue"), i = t, a = async (t) => {
1598
+ let { isMobile: n } = H(), r = N(e, "modelValue"), i = t, a = async (t) => {
1554
1599
  if (!t || e.readonly || !n()) return;
1555
- let i = await oe({
1600
+ let i = await ae({
1556
1601
  title: "",
1557
1602
  value: r.value,
1558
1603
  precision: e.precision,
@@ -1595,13 +1640,13 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1595
1640
  density: "compact",
1596
1641
  icon: "mdi-minus",
1597
1642
  variant: "text",
1598
- onClick: n[1] ||= R((e) => i("delete"), ["stop"])
1643
+ onClick: n[1] ||= z((e) => i("delete"), ["stop"])
1599
1644
  })) : l("", !0)]);
1600
1645
  };
1601
1646
  }
1602
1647
  }), nn = { class: "d-flex justify-space-between align-center my-2" }, rn = { class: "flex-grow-1" }, an = /* @__PURE__ */ m({
1603
1648
  __name: "index",
1604
- props: /* @__PURE__ */ v({
1649
+ props: /*@__PURE__*/ v({
1605
1650
  hasDelete: {
1606
1651
  type: Boolean,
1607
1652
  default: !1
@@ -1614,9 +1659,9 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1614
1659
  modelValue: { required: !0 },
1615
1660
  modelModifiers: {}
1616
1661
  }),
1617
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1662
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
1618
1663
  setup(e, { emit: t }) {
1619
- let { t: n } = G(), { isMobile: r } = V(), i = N(e, "modelValue"), a = t, o = E(""), f = E(0);
1664
+ let { t: n } = K(), { isMobile: r } = H(), i = N(e, "modelValue"), a = t, o = E(""), f = E(0);
1620
1665
  F(() => {
1621
1666
  let e = i.value.split(",");
1622
1667
  e.length < 1 || (o.value = e[0], (e[0] === "minLength" || e[1] === "maxLength" || e[2] === "length") && (e.length > 1 ? f.value = parseInt(e[1]) : f.value = 0));
@@ -1629,7 +1674,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1629
1674
  value: "",
1630
1675
  title: n("x-runtime-lib.notSet")
1631
1676
  }];
1632
- for (let t of _e) e.push({
1677
+ for (let t of ge) e.push({
1633
1678
  value: t,
1634
1679
  title: n(`x-runtime-lib.${t}`)
1635
1680
  });
@@ -1644,7 +1689,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1644
1689
  });
1645
1690
  async function _(e) {
1646
1691
  if (!e || !r()) return;
1647
- let t = await oe({
1692
+ let t = await ae({
1648
1693
  title: "",
1649
1694
  value: f.value,
1650
1695
  precision: 0,
@@ -1701,13 +1746,13 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1701
1746
  density: "compact",
1702
1747
  icon: "mdi-minus",
1703
1748
  variant: "text",
1704
- onClick: n[2] ||= R((e) => a("delete"), ["stop"])
1749
+ onClick: n[2] ||= z((e) => a("delete"), ["stop"])
1705
1750
  })) : l("", !0)]);
1706
1751
  };
1707
1752
  }
1708
1753
  }), on = { class: "d-flex justify-space-between align-center" }, sn = /* @__PURE__ */ m({
1709
1754
  __name: "index",
1710
- props: /* @__PURE__ */ v({
1755
+ props: /*@__PURE__*/ v({
1711
1756
  hasDelete: {
1712
1757
  type: Boolean,
1713
1758
  default: !1
@@ -1721,11 +1766,11 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1721
1766
  modelValue: {},
1722
1767
  modelModifiers: {}
1723
1768
  }),
1724
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1769
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
1725
1770
  setup(e, { emit: t }) {
1726
- let { t: n } = G(), r = N(e, "modelValue"), i = t, a = s(() => {
1771
+ let { t: n } = K(), r = N(e, "modelValue"), i = t, a = s(() => {
1727
1772
  let t = [];
1728
- return le(e.items)?.forEach(({ value: e, title: r }) => {
1773
+ return ce(e.items)?.forEach(({ value: e, title: r }) => {
1729
1774
  let i = e;
1730
1775
  r && (i = n(r)), t.push({
1731
1776
  value: e,
@@ -1758,7 +1803,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1758
1803
  density: "compact",
1759
1804
  icon: "mdi-minus",
1760
1805
  variant: "text",
1761
- onClick: n[1] ||= R((e) => i("delete"), ["stop"])
1806
+ onClick: n[1] ||= z((e) => i("delete"), ["stop"])
1762
1807
  })) : l("", !0)]);
1763
1808
  };
1764
1809
  }
@@ -1770,7 +1815,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1770
1815
  },
1771
1816
  emits: ["x-click"],
1772
1817
  setup(e, { emit: t }) {
1773
- let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
1818
+ let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
1774
1819
  background: a.value ? r.value : n.value,
1775
1820
  height: "48px",
1776
1821
  marginTop: "1px",
@@ -1793,29 +1838,27 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1793
1838
  }, fn = /* @__PURE__ */ m({
1794
1839
  __name: "index",
1795
1840
  props: {
1796
- modelValue: {},
1797
- modelModifiers: {},
1798
1841
  open: {
1799
1842
  type: Boolean,
1800
1843
  required: !0
1801
1844
  },
1802
1845
  openModifiers: {}
1803
1846
  },
1804
- emits: ["update:modelValue", "update:open"],
1805
- setup(e) {
1806
- let { t } = G(), n = N(e, "modelValue"), r = N(e, "open"), i = ut(), a = (e) => {
1807
- n.value = e, r.value = !1;
1847
+ emits: /*@__PURE__*/ v(["x-select"], ["update:open"]),
1848
+ setup(e, { emit: t }) {
1849
+ let { t: n } = K(), r = N(e, "open"), i = t, a = ut(), s = (e) => {
1850
+ r.value = !1, i("x-select", e);
1808
1851
  };
1809
- return (e, n) => j(i).length > 0 ? (w(), u("div", un, [(w(!0), u(o, null, D(j(i), (e) => (w(), c(ln, {
1852
+ return (e, t) => j(a).length > 0 ? (w(), u("div", un, [(w(!0), u(o, null, D(j(a), (e) => (w(), c(ln, {
1810
1853
  key: e.id,
1811
1854
  id: e.id,
1812
1855
  title: e.name,
1813
- onXClick: a
1814
- }, null, 8, ["id", "title"]))), 128))])) : (w(), u("div", dn, A(j(t)("x-prop-tree.noSlot")), 1));
1856
+ onXClick: s
1857
+ }, null, 8, ["id", "title"]))), 128))])) : (w(), u("div", dn, A(j(n)("x-prop-tree.noSlot")), 1));
1815
1858
  }
1816
1859
  }), pn = { class: "text-body-large" }, mn = /* @__PURE__ */ m({
1817
1860
  __name: "index",
1818
- props: /* @__PURE__ */ v({
1861
+ props: /*@__PURE__*/ v({
1819
1862
  hasDelete: {
1820
1863
  type: Boolean,
1821
1864
  default: !1
@@ -1825,12 +1868,12 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1825
1868
  default: !1
1826
1869
  }
1827
1870
  }, {
1828
- modelValue: {},
1871
+ modelValue: { default: null },
1829
1872
  modelModifiers: {}
1830
1873
  }),
1831
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1874
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
1832
1875
  setup(e, { emit: t }) {
1833
- let { t: n } = G(), r = be(), { sysBarAvail: i } = V(), { backgroundColor1: a } = B(), o = N(e, "modelValue"), u = t, m = ut(), h = s(() => {
1876
+ let { t: n } = K(), r = be(), { sysBarAvail: i } = H(), { backgroundColor1: a } = V(), o = N(e, "modelValue"), u = t, m = ut(), h = s(() => {
1834
1877
  let e = "100%";
1835
1878
  return r.mdAndUp.value && (e = "400px"), {
1836
1879
  background: a.value,
@@ -1843,23 +1886,44 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1843
1886
  position: "relative",
1844
1887
  height: `calc(100% - ${e}px)`
1845
1888
  };
1846
- }), v = s(() => ({ height: "60px" })), x = s(() => {
1847
- if (!o.value) return n("x-runtime-lib.notSet");
1848
- let e = m.value.find((e) => e.id === o.value);
1849
- return e ? e.name : n("x-runtime-lib.slotNotAvail");
1850
- }), { open: S } = H(`propTreeSlotSelectDlg${M()}`);
1851
- return C(() => {
1889
+ }), v = s(() => ({ height: "60px" }));
1890
+ F(() => {
1891
+ if (!o.value) return;
1892
+ let e = m.value.find((e) => e.id === o.value.id);
1893
+ e && e.name !== o.value.name && (o.value = {
1894
+ ...o.value,
1895
+ name: e.name
1896
+ });
1897
+ });
1898
+ let x = s(() => o.value ? o.value.name : n("x-runtime-lib.notSet")), { open: S } = U(`propTreeSlotSelectDlg${M()}`);
1899
+ C(() => {
1852
1900
  S.value = !1;
1853
- }), (t, r) => {
1854
- let a = O("v-btn"), s = O("v-sheet"), m = O("v-dialog");
1855
- return w(), c(m, {
1901
+ });
1902
+ function T(e) {
1903
+ if (!e) {
1904
+ o.value = null;
1905
+ return;
1906
+ }
1907
+ let t = m.value.find((t) => t.id === e);
1908
+ if (!t) {
1909
+ o.value = null;
1910
+ return;
1911
+ }
1912
+ o.value = {
1913
+ id: t.id,
1914
+ name: t.name
1915
+ };
1916
+ }
1917
+ return (t, r) => {
1918
+ let a = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
1919
+ return w(), c(s, {
1856
1920
  modelValue: j(S),
1857
- "onUpdate:modelValue": r[6] ||= (e) => _(S) ? S.value = e : null,
1921
+ "onUpdate:modelValue": r[5] ||= (e) => _(S) ? S.value = e : null,
1858
1922
  fullscreen: "",
1859
1923
  "no-click-animation": "",
1860
1924
  persistent: "",
1861
1925
  transition: "scroll-x-reverse-transition",
1862
- onKeydown: r[7] ||= ne(R((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
1926
+ onKeydown: r[6] ||= R(z((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
1863
1927
  }, {
1864
1928
  activator: I(({ props: t }) => [p(a, y(t, {
1865
1929
  block: "",
@@ -1874,22 +1938,22 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1874
1938
  density: "compact",
1875
1939
  icon: "mdi-minus",
1876
1940
  variant: "text",
1877
- onClick: r[0] ||= R((e) => u("delete"), ["stop"])
1941
+ onClick: r[0] ||= z((e) => u("delete"), ["stop"])
1878
1942
  })) : l("", !0)]),
1879
1943
  default: I(() => [d("div", {
1880
1944
  class: "w-100 h-100 d-flex flex-row-reverse",
1881
- onClick: r[4] ||= R((e) => S.value = !1, ["self"]),
1882
- onContextmenu: r[5] ||= R((e) => S.value = !1, ["self", "prevent"])
1945
+ onClick: r[3] ||= z((e) => S.value = !1, ["self"]),
1946
+ onContextmenu: r[4] ||= z((e) => S.value = !1, ["self", "prevent"])
1883
1947
  }, [d("div", {
1884
1948
  class: "elevation-2",
1885
1949
  style: b(h.value)
1886
1950
  }, [
1887
- j(i) ? (w(), c(s, {
1951
+ j(i) ? (w(), c(o, {
1888
1952
  key: 0,
1889
1953
  color: "transparent",
1890
1954
  height: 24
1891
1955
  })) : l("", !0),
1892
- p(s, {
1956
+ p(o, {
1893
1957
  class: "d-flex align-center px-3",
1894
1958
  color: "transparent",
1895
1959
  height: 48
@@ -1906,11 +1970,10 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1906
1970
  class: "overflow-y-auto",
1907
1971
  style: b(g.value)
1908
1972
  }, [p(fn, {
1909
- modelValue: o.value,
1910
- "onUpdate:modelValue": r[2] ||= (e) => o.value = e,
1911
1973
  open: j(S),
1912
- "onUpdate:open": r[3] ||= (e) => _(S) ? S.value = e : null
1913
- }, null, 8, ["modelValue", "open"]), d("div", { style: b(v.value) }, null, 4)], 4)
1974
+ "onUpdate:open": r[2] ||= (e) => _(S) ? S.value = e : null,
1975
+ onXSelect: T
1976
+ }, null, 8, ["open"]), d("div", { style: b(v.value) }, null, 4)], 4)
1914
1977
  ], 4)], 32)]),
1915
1978
  _: 1
1916
1979
  }, 8, ["modelValue"]);
@@ -1918,7 +1981,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1918
1981
  }
1919
1982
  }), hn = { class: "d-flex justify-space-between align-center" }, gn = /* @__PURE__ */ m({
1920
1983
  __name: "index",
1921
- props: /* @__PURE__ */ v({
1984
+ props: /*@__PURE__*/ v({
1922
1985
  hasDelete: {
1923
1986
  type: Boolean,
1924
1987
  default: !1
@@ -1931,7 +1994,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1931
1994
  modelValue: { type: Boolean },
1932
1995
  modelModifiers: {}
1933
1996
  }),
1934
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1997
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
1935
1998
  setup(e, { emit: t }) {
1936
1999
  let n = N(e, "modelValue"), r = t;
1937
2000
  return (t, i) => {
@@ -1950,13 +2013,13 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1950
2013
  density: "compact",
1951
2014
  icon: "mdi-minus",
1952
2015
  variant: "text",
1953
- onClick: i[1] ||= R((e) => r("delete"), ["stop"])
2016
+ onClick: i[1] ||= z((e) => r("delete"), ["stop"])
1954
2017
  })) : l("", !0)]);
1955
2018
  };
1956
2019
  }
1957
2020
  }), _n = { class: "d-flex justify-space-between align-center" }, vn = /* @__PURE__ */ m({
1958
2021
  __name: "index",
1959
- props: /* @__PURE__ */ v({
2022
+ props: /*@__PURE__*/ v({
1960
2023
  hasDelete: {
1961
2024
  type: Boolean,
1962
2025
  default: !1
@@ -1969,11 +2032,11 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1969
2032
  modelValue: { required: !0 },
1970
2033
  modelModifiers: {}
1971
2034
  }),
1972
- emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
2035
+ emits: /*@__PURE__*/ v(["delete"], ["update:modelValue"]),
1973
2036
  setup(e, { emit: t }) {
1974
- let { isMobile: n } = V(), r = N(e, "modelValue"), i = t, a = async (t) => {
2037
+ let { isMobile: n } = H(), r = N(e, "modelValue"), i = t, a = async (t) => {
1975
2038
  if (!t || e.readonly || !n()) return;
1976
- let i = await se({
2039
+ let i = await oe({
1977
2040
  title: "",
1978
2041
  value: r.value
1979
2042
  });
@@ -2000,7 +2063,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
2000
2063
  density: "compact",
2001
2064
  icon: "mdi-minus",
2002
2065
  variant: "text",
2003
- onClick: n[1] ||= R((e) => i("delete"), ["stop"])
2066
+ onClick: n[1] ||= z((e) => i("delete"), ["stop"])
2004
2067
  })) : l("", !0)]);
2005
2068
  };
2006
2069
  }
@@ -2008,13 +2071,13 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
2008
2071
  //#endregion
2009
2072
  //#region src/composables/uis/uiAdaptSlot.ts
2010
2073
  function yn() {
2011
- let e = Q();
2074
+ let e = $();
2012
2075
  return { renderUiAdaptSlot: (t, n, r, i, a) => {
2013
2076
  if (n.ui !== "adaptSlot") throw Error("useUiAdaptSlot property ui must be adaptSlot");
2014
2077
  return h(Nt, {
2015
- modelValue: q(t, n, r, i, a, e),
2078
+ modelValue: Y(t, n, r, i, a, e),
2016
2079
  "onUpdate:modelValue": (o) => {
2017
- J(t, n, r, o, i, a, e);
2080
+ X(t, n, r, o, i, a, e);
2018
2081
  },
2019
2082
  hasDelete: i !== void 0 && !a,
2020
2083
  onDelete: () => {
@@ -2027,13 +2090,13 @@ function yn() {
2027
2090
  //#endregion
2028
2091
  //#region src/composables/uis/uiComp.ts
2029
2092
  function bn() {
2030
- let e = Q();
2093
+ let e = $();
2031
2094
  return { renderUiComp: (t, n, r, i, a) => {
2032
2095
  if (n.ui !== "comp") throw Error("renderUiComp property ui must be comp");
2033
2096
  return h(Ut, {
2034
- modelValue: q(t, n, r, i, a, e),
2097
+ modelValue: Y(t, n, r, i, a, e),
2035
2098
  "onUpdate:modelValue": (o) => {
2036
- J(t, n, r, o, i, a, e);
2099
+ X(t, n, r, o, i, a, e);
2037
2100
  },
2038
2101
  hasDelete: i !== void 0 && !a,
2039
2102
  onDelete: () => {
@@ -2046,22 +2109,22 @@ function bn() {
2046
2109
  //#endregion
2047
2110
  //#region src/composables/uis/uiDummy.ts
2048
2111
  function xn() {
2049
- let e = Q();
2112
+ let e = $();
2050
2113
  return { renderUiDummy: (t, n, r, i, a) => {
2051
2114
  if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
2052
- q(t, n, r, i, a, e);
2115
+ Y(t, n, r, i, a, e);
2053
2116
  } };
2054
2117
  }
2055
2118
  //#endregion
2056
2119
  //#region src/composables/uis/uiIcon.ts
2057
2120
  function Sn() {
2058
- let e = Q();
2121
+ let e = $();
2059
2122
  return { renderUiIcon: (t, n, r, i, a) => {
2060
2123
  if (n.ui !== "icon") throw Error("renderUiIcon property ui must be icon");
2061
2124
  return h(Gt, {
2062
- modelValue: n.static ? n.value : q(t, n, r, i, a, e),
2125
+ modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
2063
2126
  "onUpdate:modelValue": (o) => {
2064
- n.static || J(t, n, r, o, i, a, e);
2127
+ n.static || X(t, n, r, o, i, a, e);
2065
2128
  },
2066
2129
  hasDelete: i !== void 0 && !a,
2067
2130
  onDelete: () => {
@@ -2074,13 +2137,13 @@ function Sn() {
2074
2137
  //#endregion
2075
2138
  //#region src/composables/uis/uiJson.ts
2076
2139
  function Cn() {
2077
- let e = Q();
2140
+ let e = $();
2078
2141
  return { renderUiJson: (t, n, r, i, a) => {
2079
2142
  if (n.ui !== "json") throw Error("renderUiJson property ui must be json");
2080
2143
  return h(Jt, {
2081
- modelValue: q(t, n, r, i, a, e) ?? "{}",
2144
+ modelValue: Y(t, n, r, i, a, e) ?? "{}",
2082
2145
  "onUpdate:modelValue": (o) => {
2083
- J(t, n, r, o, i, a, e);
2146
+ X(t, n, r, o, i, a, e);
2084
2147
  },
2085
2148
  hasDelete: i !== void 0 && !a,
2086
2149
  onDelete: () => {
@@ -2093,13 +2156,13 @@ function Cn() {
2093
2156
  //#endregion
2094
2157
  //#region src/composables/uis/uiMultiTypes.ts
2095
2158
  function wn() {
2096
- let e = Q();
2159
+ let e = $();
2097
2160
  return { renderUiMultiTypes: (t, n, r, i, a) => {
2098
2161
  if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
2099
2162
  return h($t, {
2100
- modelValue: q(t, n, r, i, a, e),
2163
+ modelValue: Y(t, n, r, i, a, e),
2101
2164
  "onUpdate:modelValue": (o) => {
2102
- J(t, n, r, o, i, a, e);
2165
+ X(t, n, r, o, i, a, e);
2103
2166
  },
2104
2167
  hasDelete: i !== void 0 && !a,
2105
2168
  onDelete: () => {
@@ -2112,13 +2175,13 @@ function wn() {
2112
2175
  //#endregion
2113
2176
  //#region src/composables/uis/uiNumber.ts
2114
2177
  function Tn() {
2115
- let e = Q();
2178
+ let e = $();
2116
2179
  return { renderUiNumber: (t, n, r, i, a) => {
2117
2180
  if (n.ui !== "number") throw Error("renderUiNumber property ui must be number");
2118
2181
  return h(tn, {
2119
- modelValue: q(t, n, r, i, a, e),
2182
+ modelValue: Y(t, n, r, i, a, e),
2120
2183
  "onUpdate:modelValue": (o) => {
2121
- J(t, n, r, o, i, a, e);
2184
+ X(t, n, r, o, i, a, e);
2122
2185
  },
2123
2186
  hasDelete: i !== void 0 && !a,
2124
2187
  onDelete: () => {
@@ -2139,7 +2202,7 @@ var En = /* @__PURE__ */ m({
2139
2202
  props: { minHeight: {} },
2140
2203
  emits: ["menu"],
2141
2204
  setup(e, { emit: t }) {
2142
- let { backgroundColor2: n, highlightColor: r } = B(), i = t, a = E(!1), o = s(() => ({
2205
+ let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = E(!1), o = s(() => ({
2143
2206
  background: a.value ? r.value : n.value,
2144
2207
  minHeight: e.minHeight,
2145
2208
  paddingRight: "4px",
@@ -2153,7 +2216,7 @@ var En = /* @__PURE__ */ m({
2153
2216
  return L((w(), u("div", {
2154
2217
  class: "d-flex justify-space-between align-center cursor-pointer",
2155
2218
  style: b(o.value),
2156
- onContextmenu: R(c, ["self", "prevent"]),
2219
+ onContextmenu: z(c, ["self", "prevent"]),
2157
2220
  onMouseout: t[0] ||= (e) => a.value = !1,
2158
2221
  onMouseover: t[1] ||= (e) => a.value = !0
2159
2222
  }, [ee(e.$slots, "default")], 36)), [[n]]);
@@ -2163,13 +2226,13 @@ var En = /* @__PURE__ */ m({
2163
2226
  //#endregion
2164
2227
  //#region src/composables/uis/uiProperty.ts
2165
2228
  function Dn() {
2166
- let { t: e } = G(), t = at();
2229
+ let { t: e } = K(), t = at();
2167
2230
  return { renderProperty: (n, r, i) => {
2168
2231
  let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
2169
- return Z(t.value, n) && (o += " *"), h(En, {
2232
+ return Q(t.value, n) && (o += " *"), h(En, {
2170
2233
  minHeight: "56px",
2171
2234
  onMenu: (e, t) => {
2172
- z.emit("propTreeMenu", {
2235
+ B.emit("propTreeMenu", {
2173
2236
  x: e,
2174
2237
  y: t,
2175
2238
  keys: n
@@ -2187,13 +2250,13 @@ function Dn() {
2187
2250
  //#endregion
2188
2251
  //#region src/composables/uis/uiRule.ts
2189
2252
  function On() {
2190
- let e = Q();
2253
+ let e = $();
2191
2254
  function t(t, n, r, i, a) {
2192
2255
  if (n.ui !== "rule") throw Error("renderUiRule property ui must be rule");
2193
2256
  return h(an, {
2194
- modelValue: q(t, n, r, i, a, e),
2257
+ modelValue: Y(t, n, r, i, a, e),
2195
2258
  "onUpdate:modelValue": (o) => {
2196
- J(t, n, r, o, i, a, e);
2259
+ X(t, n, r, o, i, a, e);
2197
2260
  },
2198
2261
  hasDelete: i !== void 0 && !a,
2199
2262
  onDelete: () => {
@@ -2206,13 +2269,13 @@ function On() {
2206
2269
  //#endregion
2207
2270
  //#region src/composables/uis/uiSelect.ts
2208
2271
  function kn() {
2209
- let e = Q();
2272
+ let e = $();
2210
2273
  return { renderUiSelect: (t, n, r, i, a) => {
2211
2274
  if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
2212
2275
  return h(sn, {
2213
- modelValue: q(t, n, r, i, a, e),
2276
+ modelValue: Y(t, n, r, i, a, e),
2214
2277
  "onUpdate:modelValue": (o) => {
2215
- J(t, n, r, o, i, a, e);
2278
+ X(t, n, r, o, i, a, e);
2216
2279
  },
2217
2280
  hasDelete: i !== void 0 && !a,
2218
2281
  onDelete: () => {
@@ -2226,13 +2289,13 @@ function kn() {
2226
2289
  //#endregion
2227
2290
  //#region src/composables/uis/uiSlot.ts
2228
2291
  function An() {
2229
- let e = Q();
2292
+ let e = $();
2230
2293
  return { renderUiSlot: (t, n, r, i, a) => {
2231
2294
  if (n.ui !== "slot") throw Error("renderUiSlot property ui must be slot");
2232
2295
  return h(mn, {
2233
- modelValue: q(t, n, r, i, a, e),
2296
+ modelValue: Y(t, n, r, i, a, e),
2234
2297
  "onUpdate:modelValue": (o) => {
2235
- J(t, n, r, o, i, a, e);
2298
+ X(t, n, r, o, i, a, e);
2236
2299
  },
2237
2300
  hasDelete: i !== void 0 && !a,
2238
2301
  onDelete: () => {
@@ -2245,13 +2308,13 @@ function An() {
2245
2308
  //#endregion
2246
2309
  //#region src/composables/uis/uiSwitch.ts
2247
2310
  function jn() {
2248
- let e = Q();
2311
+ let e = $();
2249
2312
  return { renderUiSwitch: (t, n, r, i, a) => {
2250
2313
  if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
2251
2314
  return h(gn, {
2252
- modelValue: q(t, n, r, i, a, e),
2315
+ modelValue: Y(t, n, r, i, a, e),
2253
2316
  "onUpdate:modelValue": (o) => {
2254
- J(t, n, r, o, i, a, e);
2317
+ X(t, n, r, o, i, a, e);
2255
2318
  },
2256
2319
  hasDelete: i !== void 0 && !a,
2257
2320
  onDelete: () => {
@@ -2264,13 +2327,13 @@ function jn() {
2264
2327
  //#endregion
2265
2328
  //#region src/composables/uis/uiText.ts
2266
2329
  function Mn() {
2267
- let e = Q();
2330
+ let e = $();
2268
2331
  return { renderUiText: (t, n, r, i, a) => {
2269
2332
  if (n.ui !== "text") throw Error("renderUiText property ui must be text");
2270
2333
  return h(vn, {
2271
- modelValue: n.static ? n.value : q(t, n, r, i, a, e),
2334
+ modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
2272
2335
  "onUpdate:modelValue": (o) => {
2273
- n.static || J(t, n, r, o, i, a, e);
2336
+ n.static || X(t, n, r, o, i, a, e);
2274
2337
  },
2275
2338
  hasDelete: i !== void 0 && !a,
2276
2339
  onDelete: () => {
@@ -2282,27 +2345,27 @@ function Mn() {
2282
2345
  }
2283
2346
  //#endregion
2284
2347
  //#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
2285
- var $ = "20px", Nn = /* @__PURE__ */ m({
2348
+ var Nn = "20px", Pn = /* @__PURE__ */ m({
2286
2349
  __name: "main",
2287
2350
  setup(e) {
2288
- let { t } = G(), { backgroundColor1: n } = B(), i = $e(), a = tt(), s = rt(), c = at(), l = Q();
2351
+ let { t } = K(), { backgroundColor1: n } = V(), i = $e(), a = tt(), s = rt(), c = at(), l = $();
2289
2352
  St(), Ct(), xt();
2290
2353
  let { renderProperty: d } = Dn(), { renderUiDummy: f } = xn(), { renderUiText: m } = Mn(), { renderUiNumber: g } = Tn(), { renderUiSwitch: _ } = jn(), { renderUiSelect: v } = kn(), { renderUiJson: y } = Cn(), { renderUiIcon: b } = Sn(), { renderUiComp: x } = bn(), { renderUiSlot: S } = An(), { renderUiAdaptSlot: C } = yn(), { renderUiRule: T } = On(), { renderUiMultiTypes: E } = wn(), D = (e, t, n, i, a, o) => {
2291
2354
  if (e = r(e), i === void 0 ? e.push(t.key) : (e.push(i), a && e.push(t.key)), e?.[0] !== "runtime") return t.ui ? t.array && !o ? k(e, t, n, i, a) : A(e, t, n, i, a) : t.array ? ee(e, t, n, i, a) : O(e, t, n, i, a);
2292
2355
  }, ee = (e, n, r, i, a) => {
2293
2356
  if (n.ui) throw Error("renderBranchArray property ui must be invalid");
2294
2357
  if (!n.array) throw Error("renderBranchArray property array must be valid");
2295
- let o = Ce(e, n, r, i, a, l), u = t(n.name);
2296
- Y(s, e) && Z(c.value, e) && (u += " *");
2358
+ let o = Se(e, n, r, i, a, l), u = t(n.name);
2359
+ Z(s, e) && Q(c.value, e) && (u += " *");
2297
2360
  let d = h(bt, {
2298
2361
  title: u,
2299
- collapse: Y(s, e),
2362
+ collapse: Z(s, e),
2300
2363
  hasCreate: !0,
2301
2364
  onCollapse: (t) => {
2302
- we(s, e, t);
2365
+ Ce(s, e, t);
2303
2366
  },
2304
2367
  onMenu: (t, n) => {
2305
- z.emit("propTreeMenu", {
2368
+ B.emit("propTreeMenu", {
2306
2369
  x: t,
2307
2370
  y: n,
2308
2371
  keys: e
@@ -2311,21 +2374,21 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
2311
2374
  onCreate: () => {
2312
2375
  o.push({}), l(e, o);
2313
2376
  }
2314
- }), f = h("div", { style: { paddingLeft: $ } }, (() => {
2377
+ }), f = h("div", { style: { paddingLeft: Nn } }, (() => {
2315
2378
  let t = [];
2316
2379
  for (let r = 0; r < o.length; r++) {
2317
2380
  let i = [...e, r], a = `[${r + 1}]`;
2318
- Y(s, [...e, r]) && Z(c.value, i) && (a += " *");
2381
+ Z(s, [...e, r]) && Q(c.value, i) && (a += " *");
2319
2382
  let u = h(bt, {
2320
2383
  title: a,
2321
- collapse: Y(s, [...e, r]),
2384
+ collapse: Z(s, [...e, r]),
2322
2385
  hasDelete: !0,
2323
2386
  index: r,
2324
2387
  onCollapse: (t) => {
2325
- we(s, [...e, r], t);
2388
+ Ce(s, [...e, r], t);
2326
2389
  },
2327
2390
  onMenu: (e, t) => {
2328
- z.emit("propTreeMenu", {
2391
+ B.emit("propTreeMenu", {
2329
2392
  x: e,
2330
2393
  y: t,
2331
2394
  keys: i
@@ -2336,33 +2399,33 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
2336
2399
  }
2337
2400
  });
2338
2401
  t.push(u);
2339
- let d = h("div", { style: { paddingLeft: $ } }, (() => {
2402
+ let d = h("div", { style: { paddingLeft: Nn } }, (() => {
2340
2403
  let t = [];
2341
2404
  for (let i of n.children) t.push(D(e, i, o[r], r, !0));
2342
2405
  return t;
2343
2406
  })());
2344
- Y(s, [...e, r]) || t.push(d);
2407
+ Z(s, [...e, r]) || t.push(d);
2345
2408
  }
2346
2409
  return t;
2347
2410
  })());
2348
2411
  return h("div", { style: { marginTop: "1px" } }, (() => {
2349
2412
  let t = [];
2350
- return t.push(d), Y(s, e) || t.push(f), t;
2413
+ return t.push(d), Z(s, e) || t.push(f), t;
2351
2414
  })());
2352
2415
  }, O = (e, n, r, i, a) => {
2353
2416
  if (n.ui) throw Error("renderBranchScalar property ui must be invalid");
2354
2417
  if (n.array) throw Error("renderBranchScalar property array must be invalid");
2355
2418
  let o = t(n.name);
2356
- Y(s, e) && Z(c.value, e) && (o += " *");
2419
+ Z(s, e) && Q(c.value, e) && (o += " *");
2357
2420
  let u = h(bt, {
2358
2421
  title: o,
2359
- collapse: Y(s, e),
2422
+ collapse: Z(s, e),
2360
2423
  hasDelete: i !== void 0 && !a,
2361
2424
  onCollapse: (t) => {
2362
- we(s, e, t);
2425
+ Ce(s, e, t);
2363
2426
  },
2364
2427
  onMenu: (t, n) => {
2365
- z.emit("propTreeMenu", {
2428
+ B.emit("propTreeMenu", {
2366
2429
  x: t,
2367
2430
  y: n,
2368
2431
  keys: e
@@ -2371,45 +2434,45 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
2371
2434
  onDelete: () => {
2372
2435
  i === void 0 || a || (r.splice(i, 1), l(e.slice(0, -1), r));
2373
2436
  }
2374
- }), d = h("div", { style: { paddingLeft: $ } }, (() => {
2437
+ }), d = h("div", { style: { paddingLeft: Nn } }, (() => {
2375
2438
  let t = [];
2376
2439
  for (let i of n.children) t.push(D(e, i, (typeof r[n.key] != "object" && (r[n.key] = {}, l(e, r[n.key])), r[n.key]), void 0, !1));
2377
2440
  return t;
2378
2441
  })());
2379
2442
  return h("div", { style: { marginTop: "1px" } }, (() => {
2380
2443
  let t = [];
2381
- return t.push(u), Y(s, e) || t.push(d), t;
2444
+ return t.push(u), Z(s, e) || t.push(d), t;
2382
2445
  })());
2383
2446
  }, k = (e, n, r, i, a) => {
2384
2447
  if (!n.ui) throw Error("renderLeafArray property ui must be valid");
2385
2448
  if (!n.array) throw Error("renderLeafArray property array must be valid");
2386
- let o = Ce(e, n, r, i, a, l), u = t(n.name);
2387
- Y(s, e) && Z(c.value, e) && (u += " *");
2449
+ let o = Se(e, n, r, i, a, l), u = t(n.name);
2450
+ Z(s, e) && Q(c.value, e) && (u += " *");
2388
2451
  let d = h(bt, {
2389
2452
  title: u,
2390
- collapse: Y(s, e),
2453
+ collapse: Z(s, e),
2391
2454
  hasCreate: !0,
2392
2455
  onCollapse: (t) => {
2393
- we(s, e, t);
2456
+ Ce(s, e, t);
2394
2457
  },
2395
2458
  onMenu: (t, n) => {
2396
- z.emit("propTreeMenu", {
2459
+ B.emit("propTreeMenu", {
2397
2460
  x: t,
2398
2461
  y: n,
2399
2462
  keys: e
2400
2463
  });
2401
2464
  },
2402
2465
  onCreate: () => {
2403
- o.push(U(n)), l(e, o);
2466
+ o.push(W(n)), l(e, o);
2404
2467
  }
2405
- }), f = h("div", { style: { paddingLeft: $ } }, (() => {
2468
+ }), f = h("div", { style: { paddingLeft: Nn } }, (() => {
2406
2469
  let t = [];
2407
2470
  for (let r = 0; r < o.length; r++) t.push(D(e, n, o, r, !1, !0));
2408
2471
  return t;
2409
2472
  })());
2410
2473
  return h("div", { style: { marginTop: "1px" } }, (() => {
2411
2474
  let t = [];
2412
- return t.push(d), Y(s, e) || t.push(f), t;
2475
+ return t.push(d), Z(s, e) || t.push(f), t;
2413
2476
  })());
2414
2477
  }, A = (e, t, n, r, i) => {
2415
2478
  if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
@@ -2425,7 +2488,7 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
2425
2488
  })());
2426
2489
  return (e, t) => (w(), u(o, null, [p(j), p(vt)], 64));
2427
2490
  }
2428
- }), Pn = /* @__PURE__ */ m({
2491
+ }), Fn = /* @__PURE__ */ m({
2429
2492
  __name: "index",
2430
2493
  props: {
2431
2494
  config: {},
@@ -2473,16 +2536,16 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
2473
2536
  Pe(l, e.config, e.object);
2474
2537
  }
2475
2538
  return S(() => {
2476
- z.on("refreshPropertyState", d);
2539
+ B.on("refreshPropertyState", d);
2477
2540
  }), x(() => {
2478
- z.off("refreshPropertyState", d);
2541
+ B.off("refreshPropertyState", d);
2479
2542
  }), P([() => e.config, () => e.object], () => {
2480
2543
  Pe(l, e.config, e.object);
2481
- }, { immediate: !0 }), (e, t) => (w(), c(Nn));
2544
+ }, { immediate: !0 }), (e, t) => (w(), c(Pn));
2482
2545
  }
2483
- }), Fn = (e) => {
2484
- e.component("XPropTree", Pn);
2485
- }, In = (e, t, n) => {
2546
+ }), In = (e) => {
2547
+ e.component("XPropTree", Fn);
2548
+ }, Ln = (e, t, n) => {
2486
2549
  let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
2487
2550
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
2488
2551
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
@@ -2490,14 +2553,14 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
2490
2553
  };
2491
2554
  //#endregion
2492
2555
  //#region src/i18n/index.ts
2493
- async function Ln(e) {
2494
- return (await In(/* @__PURE__ */ Object.assign({
2556
+ async function Rn(e) {
2557
+ return (await Ln(/* #__PURE__ */ Object.assign({
2495
2558
  "./locales/en/index.ts": () => import("./i18n-en.h32u3o3z.js").then((e) => e.t),
2496
- "./locales/zhHans/index.ts": () => import("./i18n-zhHans.kyejc661.js").then((e) => e.t)
2559
+ "./locales/zhHans/index.ts": () => import("./i18n-zhHans.byb869oq.js").then((e) => e.t)
2497
2560
  }), `./locales/${e}/index.ts`, 4)).default;
2498
2561
  }
2499
2562
  //#endregion
2500
2563
  //#region src/index.ts
2501
- var Rn = { install: Fn };
2564
+ var zn = { install: In };
2502
2565
  //#endregion
2503
- export { Rn as default, Ln as loadLocaleMessagePropTree };
2566
+ export { zn as default, Rn as loadLocaleMessagePropTree };