x-prop-tree 0.8.3 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +322 -322
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { a as e, i as t, n, r, t as i } from "./vendor.kbufw3jy.js";
2
2
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, h as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, ref as T, renderList as E, renderSlot as ee, resolveComponent as D, resolveDirective as O, toDisplayString as k, unref as A, useId as j, useModel as M, useTemplateRef as te, watch as N, watchEffect as P, withCtx as F, withDirectives as I, withKeys as L, withModifiers as R } from "vue";
3
- import { getElement as ne, getPropertyDefault as z, getPropertyDefaultArray as B, getTag as re, isHexColor as ie, isThemeColor as ae, makeSlotId as oe, parsePercent as se, parsePixel as ce, pkgs as le, themeColors as ue } from "x-runtime-lib";
4
- import { useI18n as V } from "vue-i18n";
5
- import { eventBus as H, globalObjects as de, injectDark as fe, injectLocale as pe, openNumberDlg as me, openPromptDlg as he, useColor as U, useSystem as W, useViewStack as G } from "x-essential-lib";
6
- import { globalState as ge } from "x-state-lib";
7
- import { useDisplay as _e } from "vuetify";
8
- import { XBlockly as ve } from "x-block-lib";
3
+ import { getElement as ne, getItems as re, getPropertyDefault as z, getPropertyDefaultArray as ie, getTag as ae, getTypes as oe, isHexColor as se, isThemeColor as ce, makeSlotId as le, parsePercent as ue, parsePixel as de, pkgs as fe, themeColors as pe } from "x-runtime-lib";
4
+ import { useI18n as B } from "vue-i18n";
5
+ import { eventBus as V, globalObjects as me, injectDark as he, injectLocale as ge, openNumberDlg as _e, openPromptDlg as ve, useColor as H, useSystem as U, useViewStack as W } from "x-essential-lib";
6
+ import { globalState as ye } from "x-state-lib";
7
+ import { useDisplay as be } from "vuetify";
8
+ import { XBlockly as xe } from "x-block-lib";
9
9
  //#region src/utils/collapseState.ts
10
- function K(e, t) {
10
+ function G(e, t) {
11
11
  let n = e.value;
12
12
  for (let e of t) {
13
13
  if (!n.children[e]) return !0;
@@ -15,7 +15,7 @@ function K(e, t) {
15
15
  }
16
16
  return n.collapse;
17
17
  }
18
- function q(e, t, n) {
18
+ function K(e, t, n) {
19
19
  let r = e.value;
20
20
  for (let e of t) r.children[e] || (r.children[e] = {
21
21
  collapse: !0,
@@ -25,7 +25,7 @@ function q(e, t, n) {
25
25
  }
26
26
  //#endregion
27
27
  //#region src/utils/common.ts
28
- function J(e, t) {
28
+ function q(e, t) {
29
29
  let n = {
30
30
  key: "",
31
31
  name: "",
@@ -38,7 +38,7 @@ function J(e, t) {
38
38
  }
39
39
  return n;
40
40
  }
41
- function Y(e, t) {
41
+ function J(e, t) {
42
42
  let n = e;
43
43
  for (let e of t) {
44
44
  if (!n) throw Error("target must be valid");
@@ -46,22 +46,22 @@ function Y(e, t) {
46
46
  }
47
47
  return n;
48
48
  }
49
- function ye(e, n, r, i, a, o) {
49
+ function Se(e, n, r, i, a, o) {
50
50
  if (i !== void 0 && !a) {
51
51
  if (!(r[i] instanceof Array)) {
52
- let a = B(n);
52
+ let a = ie(n);
53
53
  t(a, r[i]) || (r[i] = a, o(e, r[i]));
54
54
  }
55
55
  return r[i];
56
56
  } else {
57
57
  if (!(r[n.key] instanceof Array)) {
58
- let i = B(n);
58
+ let i = ie(n);
59
59
  t(i, r[n.key]) || (r[n.key] = i, o(e, r[n.key]));
60
60
  }
61
61
  return r[n.key];
62
62
  }
63
63
  }
64
- function X(e, n, r, i, a, o) {
64
+ function Y(e, n, r, i, a, o) {
65
65
  if (i !== void 0 && !a) {
66
66
  if (r[i] === void 0) {
67
67
  let a = z(n);
@@ -76,12 +76,12 @@ function X(e, n, r, i, a, o) {
76
76
  return r[n.key];
77
77
  }
78
78
  }
79
- function Z(e, t, n, r, i, a, o) {
79
+ function X(e, t, n, r, i, a, o) {
80
80
  i !== void 0 && !a ? r !== n[i] && (n[i] = r, o(e, n[i])) : r !== n[t.key] && (n[t.key] = r, o(e, n[t.key]));
81
81
  }
82
82
  //#endregion
83
83
  //#region src/utils/copyPaste.ts
84
- var be = (e, t) => {
84
+ var Ce = (e, t) => {
85
85
  let n = (e, t) => {
86
86
  if (e.ui !== t.ui || e.array !== t.array) return !1;
87
87
  if (e.ui || t.ui) return !0;
@@ -90,17 +90,17 @@ var be = (e, t) => {
90
90
  return !0;
91
91
  };
92
92
  return n(e, t);
93
- }, xe = [["basic", "id"], ["basic", "name"]];
94
- function Se(e) {
95
- return xe.find((n) => t(e, n));
93
+ }, we = [["basic", "id"], ["basic", "name"]];
94
+ function Te(e) {
95
+ return we.find((n) => t(e, n));
96
96
  }
97
- function Ce(t, n, r, i, a, o) {
98
- return t = e(t), a === void 0 ? t.push(n.key) : (t.push(a), o && t.push(n.key)), Se(t) ? (i.change = !1, i.warning = !1, {
97
+ function Z(t, n, r, i, a, o) {
98
+ return t = e(t), a === void 0 ? t.push(n.key) : (t.push(a), o && t.push(n.key)), Te(t) ? (i.change = !1, i.warning = !1, {
99
99
  change: i.change,
100
100
  warning: i.warning
101
- }) : n.ui ? n.array && i.children ? Ee(t, n, r, i, a, o) : De(n, r, i, a, o) : n.array ? we(t, n, r, i, a, o) : Te(t, n, r, i, a, o);
101
+ }) : n.ui ? n.array && i.children ? Oe(t, n, r, i, a, o) : ke(n, r, i, a, o) : n.array ? Ee(t, n, r, i, a, o) : De(t, n, r, i, a, o);
102
102
  }
103
- function we(e, n, r, i, a, o) {
103
+ function Ee(e, n, r, i, a, o) {
104
104
  if (n.ui) throw Error("execPropertyBranchArray property ui must be invalid");
105
105
  if (!n.array) throw Error("execPropertyBranchArray property array must be valid");
106
106
  let s;
@@ -121,16 +121,16 @@ function we(e, n, r, i, a, o) {
121
121
  warning: !1,
122
122
  children: {}
123
123
  };
124
- let { change: n, warning: o } = Ce(e, a, s[t], r.children[a.key], t, !0);
124
+ let { change: n, warning: o } = Z(e, a, s[t], r.children[a.key], t, !0);
125
125
  !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);
126
126
  }
127
127
  }
128
- return i.change ||= !t(s, B(n)), {
128
+ return i.change ||= !t(s, ie(n)), {
129
129
  change: i.change,
130
130
  warning: i.warning
131
131
  };
132
132
  }
133
- function Te(e, t, n, r, i, a) {
133
+ function De(e, t, n, r, i, a) {
134
134
  if (t.ui) throw Error("execPropertyBranchScalar property ui must be invalid");
135
135
  if (t.array) throw Error("execPropertyBranchScalar property array must be invalid");
136
136
  let o;
@@ -145,7 +145,7 @@ function Te(e, t, n, r, i, a) {
145
145
  warning: !1,
146
146
  children: {}
147
147
  };
148
- let { change: a, warning: s } = Ce(e, i, o, r.children[i.key], void 0, !1);
148
+ let { change: a, warning: s } = Z(e, i, o, r.children[i.key], void 0, !1);
149
149
  !r.change && a && (r.change = a), !r.warning && s && (r.warning = s);
150
150
  }
151
151
  return {
@@ -153,7 +153,7 @@ function Te(e, t, n, r, i, a) {
153
153
  warning: r.change
154
154
  };
155
155
  }
156
- function Ee(e, n, r, i, a, o) {
156
+ function Oe(e, n, r, i, a, o) {
157
157
  if (!n.ui) throw Error("execPropertyLeafArray property ui must be valid");
158
158
  if (!n.array) throw Error("execPropertyLeafArray property aray must be valid");
159
159
  let s;
@@ -167,15 +167,15 @@ function Ee(e, n, r, i, a, o) {
167
167
  warning: !1,
168
168
  children: {}
169
169
  };
170
- let { change: r, warning: a } = Ce(e, n, s, i.children[t], t, !1);
170
+ let { change: r, warning: a } = Z(e, n, s, i.children[t], t, !1);
171
171
  !i.change && r && (i.change = r), !i.warning && a && (i.warning = a);
172
172
  }
173
- return i.change ||= !t(s, B(n)), {
173
+ return i.change ||= !t(s, ie(n)), {
174
174
  change: i.change,
175
175
  warning: i.warning
176
176
  };
177
177
  }
178
- function De(e, n, r, i, a) {
178
+ function ke(e, n, r, i, a) {
179
179
  if (!e.ui) throw Error("execPropertyLeafScalar property ui must be valid");
180
180
  let o;
181
181
  return o = i !== void 0 && !a ? n[i] : n[e.key], r.change = !t(o, z(e)), {
@@ -183,7 +183,7 @@ function De(e, n, r, i, a) {
183
183
  warning: r.warning
184
184
  };
185
185
  }
186
- function Oe(e, t, n) {
186
+ function Ae(e, t, n) {
187
187
  if (t.length <= 0 || !n) {
188
188
  e.value = {
189
189
  change: !1,
@@ -203,7 +203,7 @@ function Oe(e, t, n) {
203
203
  warning: !1,
204
204
  children: {}
205
205
  };
206
- r.children[e.key] = t, Ce([], e, n, t, void 0, !1);
206
+ r.children[e.key] = t, Z([], e, n, t, void 0, !1);
207
207
  }
208
208
  e.value = r;
209
209
  }
@@ -217,85 +217,85 @@ function Q(e, t) {
217
217
  }
218
218
  //#endregion
219
219
  //#region src/utils/provideInject.ts
220
- var ke = Symbol(), Ae = Symbol(), je = Symbol(), Me = Symbol(), Ne = Symbol(), Pe = Symbol(), Fe = Symbol(), Ie = Symbol(), Le = Symbol(), Re = Symbol(), ze = Symbol();
221
- function Be(e) {
222
- w(ke, e);
223
- }
224
- function Ve() {
225
- return h(ke);
226
- }
220
+ var je = Symbol(), Me = Symbol(), Ne = Symbol(), Pe = Symbol(), Fe = Symbol(), Ie = Symbol(), Le = Symbol(), Re = Symbol(), ze = Symbol(), Be = Symbol(), Ve = Symbol();
227
221
  function He(e) {
228
- w(Ae, e);
229
- }
230
- function Ue() {
231
- return h(Ae);
232
- }
233
- function We(e) {
234
222
  w(je, e);
235
223
  }
236
- function Ge() {
224
+ function Ue() {
237
225
  return h(je);
238
226
  }
239
- function Ke(e) {
227
+ function We(e) {
240
228
  w(Me, e);
241
229
  }
242
- function qe() {
230
+ function Ge() {
243
231
  return h(Me);
244
232
  }
245
- function Je(e) {
233
+ function Ke(e) {
246
234
  w(Ne, e);
247
235
  }
248
- function Ye() {
236
+ function qe() {
249
237
  return h(Ne);
250
238
  }
251
- function Xe(e) {
239
+ function Je(e) {
252
240
  w(Pe, e);
253
241
  }
254
- function Ze() {
242
+ function Ye() {
255
243
  return h(Pe);
256
244
  }
257
- function Qe(e) {
245
+ function Xe(e) {
258
246
  w(Fe, e);
259
247
  }
260
- function $e() {
248
+ function Ze() {
261
249
  return h(Fe);
262
250
  }
263
- function et(e) {
251
+ function Qe(e) {
264
252
  w(Ie, e);
265
253
  }
266
- function $() {
254
+ function $e() {
267
255
  return h(Ie);
268
256
  }
269
- function tt(e) {
257
+ function et(e) {
270
258
  w(Le, e);
271
259
  }
272
- function nt() {
260
+ function tt() {
273
261
  return h(Le);
274
262
  }
275
- function rt(e) {
263
+ function nt(e) {
276
264
  w(Re, e);
277
265
  }
278
- function it() {
266
+ function $() {
279
267
  return h(Re);
280
268
  }
281
- function at(e) {
269
+ function rt(e) {
282
270
  w(ze, e);
283
271
  }
284
- function ot() {
272
+ function it() {
285
273
  return h(ze);
286
274
  }
275
+ function at(e) {
276
+ w(Be, e);
277
+ }
278
+ function ot() {
279
+ return h(Be);
280
+ }
281
+ function st(e) {
282
+ w(Ve, e);
283
+ }
284
+ function ct() {
285
+ return h(Ve);
286
+ }
287
287
  //#endregion
288
288
  //#region src/components/menu/index.vue
289
- var st = /* @__PURE__ */ p({
289
+ var lt = /* @__PURE__ */ p({
290
290
  __name: "index",
291
291
  setup(e) {
292
- let { t } = V(), n = qe(), r = Ye(), i = $e(), c = $(), u = T(0), p = T(0), m = T([]), h = o(() => [u.value, p.value]), _ = (e) => {
292
+ let { t } = B(), n = Ye(), r = Ze(), i = tt(), c = $(), u = T(0), p = T(0), m = T([]), h = o(() => [u.value, p.value]), _ = (e) => {
293
293
  !(m.value.length <= 0 || !Q(i.value, m.value)) && e.push({
294
294
  title: t("x-prop-tree.reset"),
295
295
  func: () => {
296
- let e = J(n.value, m.value);
296
+ let e = q(n.value, m.value);
297
297
  if (e) if (e.ui) {
298
- let t = Y(r.value, m.value.slice(0, -1));
298
+ let t = J(r.value, m.value.slice(0, -1));
299
299
  if (!t) return;
300
300
  t[m.value[m.value.length - 1]] = z(e), c(m.value, t[m.value[m.value.length - 1]]);
301
301
  } else if (e.array) {
@@ -305,18 +305,18 @@ var st = /* @__PURE__ */ p({
305
305
  return;
306
306
  }
307
307
  if (typeof t == "string") {
308
- let t = Y(r.value, m.value.slice(0, -1));
308
+ let t = J(r.value, m.value.slice(0, -1));
309
309
  if (!t) return;
310
310
  t[m.value[m.value.length - 1]] = z(e), c(m.value, t[m.value[m.value.length - 1]]);
311
311
  } else {
312
- let t = Y(r.value, m.value);
312
+ let t = J(r.value, m.value);
313
313
  if (!t) return;
314
314
  e.children.forEach((n) => {
315
315
  t[n.key] = z(e), c([...m.value, n.key], t[n.key]);
316
316
  });
317
317
  }
318
318
  } else {
319
- let t = Y(r.value, m.value);
319
+ let t = J(r.value, m.value);
320
320
  if (!t) return;
321
321
  e.children.forEach((n) => {
322
322
  t[n.key] = z(e), c([...m.value, n.key], t[n.key]);
@@ -328,7 +328,7 @@ var st = /* @__PURE__ */ p({
328
328
  e.push({
329
329
  title: t("x-prop-tree.copy"),
330
330
  func: () => {
331
- let e = J(n.value, m.value), t = Y(r.value, m.value);
331
+ let e = q(n.value, m.value), t = J(r.value, m.value);
332
332
  localStorage.setItem("propTreeCopy", JSON.stringify({
333
333
  property: e,
334
334
  object: t
@@ -342,8 +342,8 @@ var st = /* @__PURE__ */ p({
342
342
  try {
343
343
  let { property: t } = JSON.parse(e);
344
344
  if (!t) return !1;
345
- let r = J(n.value, m.value);
346
- return r ? be(t, r) : !1;
345
+ let r = q(n.value, m.value);
346
+ return r ? Ce(t, r) : !1;
347
347
  } catch (e) {
348
348
  console.error(e);
349
349
  }
@@ -355,7 +355,7 @@ var st = /* @__PURE__ */ p({
355
355
  if (!r()) return;
356
356
  let e = localStorage.getItem("propTreeCopy");
357
357
  if (e) try {
358
- let { object: t } = JSON.parse(e), r = J(n.value, m.value);
358
+ let { object: t } = JSON.parse(e), r = q(n.value, m.value);
359
359
  console.log(t, r);
360
360
  } catch (e) {
361
361
  console.error(e);
@@ -365,7 +365,7 @@ var st = /* @__PURE__ */ p({
365
365
  }, b = o(() => {
366
366
  let e = [];
367
367
  return _(e), v(e), y(e), e;
368
- }), { open: x } = G("propTreeMenu", (e) => {
368
+ }), { open: x } = W("propTreeMenu", (e) => {
369
369
  u.value = e.x, p.value = e.y, m.value = e.keys;
370
370
  });
371
371
  return (e, t) => {
@@ -395,7 +395,7 @@ var st = /* @__PURE__ */ p({
395
395
  }, 8, ["modelValue", "target"]);
396
396
  };
397
397
  }
398
- }), ct = { style: { pointerEvents: "none" } }, lt = /* @__PURE__ */ p({
398
+ }), ut = { style: { pointerEvents: "none" } }, dt = /* @__PURE__ */ p({
399
399
  __name: "index",
400
400
  props: {
401
401
  title: {},
@@ -417,7 +417,7 @@ var st = /* @__PURE__ */ p({
417
417
  "delete"
418
418
  ],
419
419
  setup(e, { emit: t }) {
420
- let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), d = o(() => ({
420
+ let { backgroundColor2: n, highlightColor: r } = H(), i = t, a = T(!1), d = o(() => ({
421
421
  background: a.value ? r.value : n.value,
422
422
  height: "36px",
423
423
  marginBottom: "1px",
@@ -441,7 +441,7 @@ var st = /* @__PURE__ */ p({
441
441
  class: "mr-1",
442
442
  icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
443
443
  }, null, 8, ["icon"]),
444
- u("span", ct, k(e.title), 1),
444
+ u("span", ut, k(e.title), 1),
445
445
  f(o),
446
446
  e.hasCreate ? (C(), s(h, {
447
447
  key: 0,
@@ -465,14 +465,14 @@ var st = /* @__PURE__ */ p({
465
465
  });
466
466
  //#endregion
467
467
  //#region src/composables/adaptSlotList/index.ts
468
- function ut() {
469
- let e = Ve(), t = Ue(), n = Ge(), { i18n: a } = de, o = T([]);
470
- at(o);
468
+ function ft() {
469
+ let e = Ue(), t = Ge(), n = qe(), { i18n: a } = me, o = T([]);
470
+ st(o);
471
471
  let s = () => {
472
472
  if (!e.value || !t.value || !n.value) return [];
473
- let s = le[e.value];
473
+ let s = fe[e.value];
474
474
  if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
475
- let c = re(t.value, n.value), l = [];
475
+ let c = ae(t.value, n.value), l = [];
476
476
  for (let e = 0; e < s.groups[c].length; e++) {
477
477
  let t = s.groups[c][e], n = r(o, t.key);
478
478
  l.push({
@@ -487,7 +487,7 @@ function ut() {
487
487
  for (let e of t.items) {
488
488
  let n = ne(e);
489
489
  if (n && !n.internal && n.slots) for (let e of n.slots) {
490
- let r = oe("elementSlot", n.key, e.key), o = `${a.global.t(n.name)} / ${a.global.t(e.name)}`;
490
+ let r = le("elementSlot", n.key, e.key), o = `${a.global.t(n.name)} / ${a.global.t(e.name)}`;
491
491
  l.push({
492
492
  id: r,
493
493
  type: 1,
@@ -498,7 +498,7 @@ function ut() {
498
498
  }
499
499
  }
500
500
  }
501
- let { activeApp: u, depends: d } = ge.app;
501
+ let { activeApp: u, depends: d } = ye.app;
502
502
  for (let { id: e, name: t, position: n } of u.compGroups) {
503
503
  let i = r(o, e);
504
504
  l.push({
@@ -513,7 +513,7 @@ function ut() {
513
513
  for (let e of u.comps) {
514
514
  let t = d[e.id];
515
515
  if (t && t.meta.slots) for (let n of t.meta.slots) {
516
- let t = oe("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
516
+ let t = le("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
517
517
  l.push({
518
518
  id: t,
519
519
  type: 1,
@@ -547,11 +547,11 @@ function ut() {
547
547
  }
548
548
  //#endregion
549
549
  //#region src/composables/compList/index.ts
550
- function dt() {
550
+ function pt() {
551
551
  let e = T([]);
552
- tt(e);
552
+ rt(e);
553
553
  let t = () => {
554
- let { activeApp: t, depends: n } = ge.app, r = [];
554
+ let { activeApp: t, depends: n } = ye.app, r = [];
555
555
  for (let { id: n, name: i, position: a } of t.compGroups) {
556
556
  let t = e.value.find((e) => e.id === n);
557
557
  r.push({
@@ -585,11 +585,11 @@ function dt() {
585
585
  }
586
586
  //#endregion
587
587
  //#region src/composables/slotList/index.ts
588
- function ft() {
588
+ function mt() {
589
589
  let e = T([]);
590
- rt(e);
590
+ at(e);
591
591
  let t = () => {
592
- let { activeObject: e, activeComp: t } = ge.app;
592
+ let { activeObject: e, activeComp: t } = ye.app;
593
593
  if (e.type !== "comp" || !t.meta.slots) return [];
594
594
  let n = [];
595
595
  for (let { id: e, name: r } of t.meta.slots) n.push({
@@ -614,7 +614,7 @@ function ft() {
614
614
  }
615
615
  //#endregion
616
616
  //#region src/components/values/adaptSlotSelect/adaptSlotList/group.vue?vue&type=script&setup=true&lang.ts
617
- var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text-grey ml-1" }, ht = /* @__PURE__ */ p({
617
+ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text-grey ml-1" }, _t = /* @__PURE__ */ p({
618
618
  __name: "group",
619
619
  props: {
620
620
  id: {},
@@ -624,7 +624,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
624
624
  },
625
625
  emits: ["x-click"],
626
626
  setup(e, { emit: t }) {
627
- let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
627
+ let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
628
628
  background: s.value ? r.value : n.value,
629
629
  height: "30px",
630
630
  marginTop: "1px",
@@ -643,12 +643,12 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
643
643
  icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
644
644
  size: "small"
645
645
  }, null, 8, ["icon"]),
646
- u("span", pt, k(i.title), 1),
647
- u("span", mt, k(i.count), 1)
646
+ u("span", ht, k(i.title), 1),
647
+ u("span", gt, k(i.count), 1)
648
648
  ], 36)), [[r]]);
649
649
  };
650
650
  }
651
- }), gt = { class: "text-body-large ml-6" }, _t = /* @__PURE__ */ p({
651
+ }), vt = { class: "text-body-large ml-6" }, yt = /* @__PURE__ */ p({
652
652
  __name: "item",
653
653
  props: {
654
654
  id: {},
@@ -656,7 +656,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
656
656
  },
657
657
  emits: ["x-click"],
658
658
  setup(e, { emit: t }) {
659
- let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
659
+ let { backgroundColor2: n, highlightColor: r } = H(), i = t, a = T(!1), s = o(() => ({
660
660
  background: a.value ? r.value : n.value,
661
661
  height: "48px",
662
662
  marginTop: "1px",
@@ -670,13 +670,13 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
670
670
  onClick: n[0] ||= (t) => i("x-click", e.id),
671
671
  onMouseout: n[1] ||= (e) => a.value = !1,
672
672
  onMouseover: n[2] ||= (e) => a.value = !0
673
- }, [u("span", gt, k(e.title), 1)], 36)), [[r]]);
673
+ }, [u("span", vt, k(e.title), 1)], 36)), [[r]]);
674
674
  };
675
675
  }
676
- }), vt = { key: 0 }, yt = {
676
+ }), bt = { key: 0 }, xt = {
677
677
  key: 1,
678
678
  class: "text-body-medium text-grey ml-3"
679
- }, bt = /* @__PURE__ */ p({
679
+ }, St = /* @__PURE__ */ p({
680
680
  __name: "index",
681
681
  props: {
682
682
  modelValue: {},
@@ -689,13 +689,13 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
689
689
  },
690
690
  emits: ["update:modelValue", "update:open"],
691
691
  setup(e) {
692
- let { nameList: t } = W(), i = M(e, "modelValue"), o = M(e, "open"), u = ot(), d = (e) => {
692
+ let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = ct(), d = (e) => {
693
693
  let t = r(u, e);
694
694
  t && n(u, e, !t.collapse);
695
695
  }, f = (e) => {
696
696
  i.value = e, o.value = !1;
697
697
  };
698
- return (e, n) => A(u).length > 0 ? (C(), l("div", vt, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(ht, {
698
+ return (e, n) => A(u).length > 0 ? (C(), l("div", bt, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(_t, {
699
699
  key: 0,
700
700
  id: e.id,
701
701
  collapse: e.collapse,
@@ -707,18 +707,18 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
707
707
  "collapse",
708
708
  "count",
709
709
  "title"
710
- ])) : c("", !0), e.type === 1 && e.show ? (C(), s(_t, {
710
+ ])) : c("", !0), e.type === 1 && e.show ? (C(), s(yt, {
711
711
  key: 1,
712
712
  id: e.id,
713
713
  title: e.name,
714
714
  onXClick: f
715
- }, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", yt, k(A(t)([
715
+ }, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", xt, k(A(t)([
716
716
  "x-prop-tree.no",
717
717
  "x-prop-tree.adapt",
718
718
  "x-prop-tree.slot"
719
719
  ])), 1));
720
720
  }
721
- }), xt = { class: "text-body-large" }, St = /* @__PURE__ */ p({
721
+ }), Ct = { class: "text-body-large" }, wt = /* @__PURE__ */ p({
722
722
  __name: "index",
723
723
  props: /* @__PURE__ */ _({
724
724
  hasDelete: {
@@ -735,7 +735,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
735
735
  }),
736
736
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
737
737
  setup(e, { emit: t }) {
738
- let { t: n } = V(), i = _e(), { sysBarAvail: a, nameList: l } = W(), { backgroundColor1: p } = U(), m = M(e, "modelValue"), h = t, _ = ot(), b = o(() => {
738
+ let { t: n } = B(), i = be(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = ct(), b = o(() => {
739
739
  let e = "100%";
740
740
  return i.mdAndUp.value && (e = "400px"), {
741
741
  background: p.value,
@@ -752,7 +752,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
752
752
  if (!m.value) return n("x-runtime-lib.notSet");
753
753
  let e = r(_, m.value);
754
754
  return e ? e.name : n("x-runtime-lib.slotNotAvail");
755
- }), { open: E } = G(`propTreeAdaptSlotSelectDlg${j()}`);
755
+ }), { open: E } = W(`propTreeAdaptSlotSelectDlg${j()}`);
756
756
  return S(() => {
757
757
  E.value = !1;
758
758
  }), (t, n) => {
@@ -804,7 +804,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
804
804
  icon: "mdi-close",
805
805
  variant: "text",
806
806
  onClick: n[1] ||= (e) => E.value = !1
807
- }), u("span", xt, k(A(l)([
807
+ }), u("span", Ct, k(A(l)([
808
808
  "x-prop-tree.select",
809
809
  "x-prop-tree.adapt",
810
810
  "x-prop-tree.slot"
@@ -814,7 +814,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
814
814
  u("div", {
815
815
  class: "overflow-y-auto",
816
816
  style: y(x.value)
817
- }, [f(bt, {
817
+ }, [f(St, {
818
818
  modelValue: m.value,
819
819
  "onUpdate:modelValue": n[2] ||= (e) => m.value = e,
820
820
  open: A(E),
@@ -825,7 +825,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
825
825
  }, 8, ["modelValue"]);
826
826
  };
827
827
  }
828
- }), Ct = { class: "d-flex justify-space-between align-center" }, wt = /* @__PURE__ */ p({
828
+ }), Tt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PURE__ */ p({
829
829
  __name: "index",
830
830
  props: /* @__PURE__ */ _({
831
831
  hasDelete: {
@@ -842,10 +842,10 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
842
842
  }),
843
843
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
844
844
  setup(e, { emit: t }) {
845
- let { t: n } = V(), r = M(e, "modelValue"), i = t, a = o(() => {
845
+ let { t: n } = B(), r = M(e, "modelValue"), i = t, a = o(() => {
846
846
  let t = "100%";
847
847
  return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
848
- }), l = o(() => e.readonly), { open: p } = G(`propTreeColorPickerMenu${j()}`);
848
+ }), l = o(() => e.readonly), { open: p } = W(`propTreeColorPickerMenu${j()}`);
849
849
  return S(() => {
850
850
  p.value = !1;
851
851
  }), (t, o) => {
@@ -856,7 +856,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
856
856
  "close-on-content-click": !1,
857
857
  scrim: "transparent"
858
858
  }, {
859
- activator: F(({ props: t }) => [u("div", Ct, [u("div", {
859
+ activator: F(({ props: t }) => [u("div", Tt, [u("div", {
860
860
  class: "flex-grow-1",
861
861
  style: y(a.value)
862
862
  }, [f(m, v(t, {
@@ -886,7 +886,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
886
886
  }, 8, ["modelValue"]);
887
887
  };
888
888
  }
889
- }), Tt = { class: "text-label-large ml-1" }, Et = { class: "text-body-small text-grey ml-1" }, Dt = /* @__PURE__ */ p({
889
+ }), Dt = { class: "text-label-large ml-1" }, Ot = { class: "text-body-small text-grey ml-1" }, kt = /* @__PURE__ */ p({
890
890
  __name: "group",
891
891
  props: {
892
892
  id: {},
@@ -896,7 +896,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
896
896
  },
897
897
  emits: ["x-click"],
898
898
  setup(e, { emit: t }) {
899
- let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
899
+ let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
900
900
  background: s.value ? r.value : n.value,
901
901
  height: "30px",
902
902
  marginTop: "1px",
@@ -915,12 +915,12 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
915
915
  icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
916
916
  size: "small"
917
917
  }, null, 8, ["icon"]),
918
- u("span", Tt, k(i.title), 1),
919
- u("span", Et, k(i.count), 1)
918
+ u("span", Dt, k(i.title), 1),
919
+ u("span", Ot, k(i.count), 1)
920
920
  ], 36)), [[r]]);
921
921
  };
922
922
  }
923
- }), Ot = { class: "text-body-large ml-6" }, kt = /* @__PURE__ */ p({
923
+ }), At = { class: "text-body-large ml-6" }, jt = /* @__PURE__ */ p({
924
924
  __name: "item",
925
925
  props: {
926
926
  id: {},
@@ -928,7 +928,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
928
928
  },
929
929
  emits: ["x-click"],
930
930
  setup(e, { emit: t }) {
931
- let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
931
+ let { backgroundColor2: n, highlightColor: r } = H(), i = e, a = t, s = T(!1), c = o(() => ({
932
932
  background: s.value ? r.value : n.value,
933
933
  height: "48px",
934
934
  marginTop: "1px",
@@ -942,13 +942,13 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
942
942
  onClick: t[0] ||= (e) => a("x-click", i.id),
943
943
  onMouseout: t[1] ||= (e) => s.value = !1,
944
944
  onMouseover: t[2] ||= (e) => s.value = !0
945
- }, [u("span", Ot, k(i.title), 1)], 36)), [[n]]);
945
+ }, [u("span", At, k(i.title), 1)], 36)), [[n]]);
946
946
  };
947
947
  }
948
- }), At = { key: 0 }, jt = {
948
+ }), Mt = { key: 0 }, Nt = {
949
949
  key: 1,
950
950
  class: "text-body-medium text-grey ml-3"
951
- }, Mt = /* @__PURE__ */ p({
951
+ }, Pt = /* @__PURE__ */ p({
952
952
  __name: "index",
953
953
  props: {
954
954
  modelValue: {},
@@ -961,13 +961,13 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
961
961
  },
962
962
  emits: ["update:modelValue", "update:open"],
963
963
  setup(e) {
964
- let { nameList: t } = W(), i = M(e, "modelValue"), o = M(e, "open"), u = nt(), d = (e) => {
964
+ let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = it(), d = (e) => {
965
965
  let t = r(u, e);
966
966
  t && n(u, e, !t.collapse);
967
967
  }, f = (e) => {
968
- i.value = e, o.value = !1, H.emit("refreshDepends");
968
+ i.value = e, o.value = !1, V.emit("refreshDepends");
969
969
  };
970
- return (e, n) => A(u).length > 0 ? (C(), l("div", At, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(Dt, {
970
+ return (e, n) => A(u).length > 0 ? (C(), l("div", Mt, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(kt, {
971
971
  key: 0,
972
972
  id: e.id,
973
973
  collapse: e.collapse,
@@ -979,14 +979,14 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
979
979
  "collapse",
980
980
  "count",
981
981
  "title"
982
- ])) : c("", !0), e.type === 1 && e.show ? (C(), s(kt, {
982
+ ])) : c("", !0), e.type === 1 && e.show ? (C(), s(jt, {
983
983
  key: 1,
984
984
  id: e.id,
985
985
  title: e.name,
986
986
  onXClick: f
987
- }, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", jt, k(A(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
987
+ }, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Nt, k(A(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
988
988
  }
989
- }), Nt = { class: "text-body-large" }, Pt = /* @__PURE__ */ p({
989
+ }), Ft = { class: "text-body-large" }, It = /* @__PURE__ */ p({
990
990
  __name: "index",
991
991
  props: /* @__PURE__ */ _({
992
992
  hasDelete: {
@@ -1003,7 +1003,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1003
1003
  }),
1004
1004
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1005
1005
  setup(e, { emit: t }) {
1006
- let { t: n } = V(), i = _e(), { sysBarAvail: a, nameList: l } = W(), { backgroundColor1: p } = U(), m = M(e, "modelValue"), h = t, _ = nt(), b = o(() => {
1006
+ let { t: n } = B(), i = be(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = it(), b = o(() => {
1007
1007
  let e = "100%";
1008
1008
  return i.mdAndUp.value && (e = "400px"), {
1009
1009
  background: p.value,
@@ -1020,7 +1020,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1020
1020
  if (!m.value) return n("x-runtime-lib.notSet");
1021
1021
  let e = r(_, m.value);
1022
1022
  return e ? e.name : n("x-runtime-lib.compNotAvail");
1023
- }), { open: E } = G(`propTreeCompSelectDlg${j()}`);
1023
+ }), { open: E } = W(`propTreeCompSelectDlg${j()}`);
1024
1024
  return S(() => {
1025
1025
  E.value = !1;
1026
1026
  }), (t, n) => {
@@ -1072,13 +1072,13 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1072
1072
  icon: "mdi-close",
1073
1073
  variant: "text",
1074
1074
  onClick: n[1] ||= (e) => E.value = !1
1075
- }), u("span", Nt, k(A(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
1075
+ }), u("span", Ft, k(A(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
1076
1076
  _: 1
1077
1077
  }),
1078
1078
  u("div", {
1079
1079
  class: "overflow-y-auto",
1080
1080
  style: y(x.value)
1081
- }, [f(Mt, {
1081
+ }, [f(Pt, {
1082
1082
  modelValue: m.value,
1083
1083
  "onUpdate:modelValue": n[2] ||= (e) => m.value = e,
1084
1084
  open: A(E),
@@ -1089,7 +1089,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1089
1089
  }, 8, ["modelValue"]);
1090
1090
  };
1091
1091
  }
1092
- }), Ft = /* @__PURE__ */ p({
1092
+ }), Lt = /* @__PURE__ */ p({
1093
1093
  __name: "editor",
1094
1094
  props: {
1095
1095
  modelValue: { required: !0 },
@@ -1108,14 +1108,14 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1108
1108
  "update:scale"
1109
1109
  ],
1110
1110
  setup(e, { expose: t }) {
1111
- let n = M(e, "modelValue"), r = M(e, "lock"), i = M(e, "scale"), a = fe(), o = pe(), c = Ve(), l = te("target"), u = () => {
1111
+ let n = M(e, "modelValue"), r = M(e, "lock"), i = M(e, "scale"), a = he(), o = ge(), c = Ue(), l = te("target"), u = () => {
1112
1112
  let e = JSON.parse(n.value);
1113
1113
  l.value?.load(e);
1114
1114
  };
1115
1115
  return t({ save: () => {
1116
1116
  let e = l.value.save();
1117
1117
  n.value = JSON.stringify(e, null, 2);
1118
- } }), (e, t) => (C(), s(A(ve), {
1118
+ } }), (e, t) => (C(), s(A(xe), {
1119
1119
  ref_key: "target",
1120
1120
  ref: l,
1121
1121
  lock: r.value,
@@ -1135,7 +1135,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1135
1135
  "version"
1136
1136
  ]));
1137
1137
  }
1138
- }), It = { class: "text-body-large" }, Lt = /* @__PURE__ */ p({
1138
+ }), Rt = { class: "text-body-large" }, zt = /* @__PURE__ */ p({
1139
1139
  __name: "index",
1140
1140
  props: /* @__PURE__ */ _({
1141
1141
  hasDelete: {
@@ -1152,14 +1152,14 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1152
1152
  }),
1153
1153
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1154
1154
  setup(e, { emit: t }) {
1155
- let { t: n } = V(), { sysBarAvail: r } = W(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: l } = U(), p = M(e, "modelValue"), m = t, h = T(!1), _ = T(1), b = o(() => {
1155
+ let { t: n } = B(), { sysBarAvail: r } = U(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: l } = H(), p = M(e, "modelValue"), m = t, h = T(!1), _ = T(1), b = o(() => {
1156
1156
  let e = 48;
1157
1157
  return r.value && (e += 24), {
1158
1158
  position: "relative",
1159
1159
  background: a.value,
1160
1160
  height: `calc(100% - ${e}px)`
1161
1161
  };
1162
- }), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } = G(`propTreejsonEditorDlg${j()}`);
1162
+ }), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } = W(`propTreejsonEditorDlg${j()}`);
1163
1163
  S(() => {
1164
1164
  w.value = !1;
1165
1165
  });
@@ -1216,12 +1216,12 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1216
1216
  variant: "text",
1217
1217
  onClick: n[1] ||= (e) => w.value = !1
1218
1218
  }),
1219
- u("span", It, k(x.value), 1),
1219
+ u("span", Rt, k(x.value), 1),
1220
1220
  f(S)
1221
1221
  ]),
1222
1222
  _: 1
1223
1223
  }, 8, ["color"]),
1224
- u("div", { style: y(b.value) }, [f(Ft, {
1224
+ u("div", { style: y(b.value) }, [f(Lt, {
1225
1225
  ref_key: "editor",
1226
1226
  ref: E,
1227
1227
  modelValue: p.value,
@@ -1242,7 +1242,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1242
1242
  }, 8, ["modelValue"]);
1243
1243
  };
1244
1244
  }
1245
- }), Rt = { class: "d-flex justify-space-between align-center my-2" }, zt = { class: "flex-grow-1" }, Bt = /* @__PURE__ */ p({
1245
+ }), Bt = { class: "d-flex justify-space-between align-center my-2" }, Vt = { class: "flex-grow-1" }, Ht = /* @__PURE__ */ p({
1246
1246
  __name: "index",
1247
1247
  props: /* @__PURE__ */ _({
1248
1248
  hasDelete: {
@@ -1260,67 +1260,67 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1260
1260
  }),
1261
1261
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1262
1262
  setup(e, { emit: t }) {
1263
- let { t: n } = V(), { isMobile: r } = W(), i = M(e, "modelValue"), a = t, d = Ve(), p = o(() => le[d.value].types[e.types]), m = T(""), h = o(() => {
1263
+ let { t: n } = B(), { isMobile: r } = U(), i = M(e, "modelValue"), a = t, d = o(() => oe(e.types)), p = T(""), m = o(() => {
1264
1264
  let e = [];
1265
- for (let { value: t, title: r } of p.value) e.push({
1265
+ for (let { value: t, title: r } of d.value) e.push({
1266
1266
  value: t,
1267
1267
  title: n(r)
1268
1268
  });
1269
1269
  return e;
1270
1270
  });
1271
1271
  P(() => {
1272
- for (let { value: e, validator: t } of p.value) if (t(i.value)) {
1273
- m.value = e;
1272
+ for (let { value: e, validator: t } of d.value) if (t(i.value)) {
1273
+ p.value = e;
1274
1274
  return;
1275
1275
  }
1276
- m.value = "";
1276
+ p.value = "";
1277
1277
  });
1278
- let g = o(() => p.value.find((e) => e.value === m.value)), _ = () => {
1279
- i.value = g.value?.default;
1280
- }, v = T(0), y = async (e) => {
1281
- if (!e || !r() || !g.value || g.value.trait !== "pixel" && g.value.trait !== "percent") return;
1282
- let t = await me({
1278
+ let h = o(() => d.value.find((e) => e.value === p.value)), g = () => {
1279
+ i.value = h.value?.default;
1280
+ }, _ = T(0), v = async (e) => {
1281
+ if (!e || !r() || !h.value || h.value.trait !== "pixel" && h.value.trait !== "percent") return;
1282
+ let t = await _e({
1283
1283
  title: "",
1284
- value: v.value,
1285
- precision: g.value.precision,
1286
- min: g.value.min,
1287
- max: g.value.max,
1288
- step: g.value.step
1284
+ value: _.value,
1285
+ precision: h.value.precision,
1286
+ min: h.value.min,
1287
+ max: h.value.max,
1288
+ step: h.value.step
1289
1289
  });
1290
- t !== void 0 && (v.value = t);
1290
+ t !== void 0 && (_.value = t);
1291
1291
  };
1292
1292
  P(() => {
1293
- g.value?.trait === "pixel" ? v.value = ce(i.value) : g.value?.trait === "percent" && (v.value = se(i.value));
1294
- }), N(v, (e) => {
1295
- g.value?.trait === "pixel" ? i.value = e + "px" : g.value?.trait === "percent" && (i.value = e + "%");
1293
+ h.value?.trait === "pixel" ? _.value = de(i.value) : h.value?.trait === "percent" && (_.value = ue(i.value));
1294
+ }), N(_, (e) => {
1295
+ h.value?.trait === "pixel" ? i.value = e + "px" : h.value?.trait === "percent" && (i.value = e + "%");
1296
1296
  });
1297
- let b = T("#ff00ff");
1297
+ let y = T("#ff00ff");
1298
1298
  P(() => {
1299
- g.value?.trait === "hexColor" && ie(i.value) && (b.value = i.value);
1300
- }), N(b, (e) => {
1301
- g.value?.trait === "hexColor" && (i.value = e);
1299
+ h.value?.trait === "hexColor" && se(i.value) && (y.value = i.value);
1300
+ }), N(y, (e) => {
1301
+ h.value?.trait === "hexColor" && (i.value = e);
1302
1302
  });
1303
- let x = T("primary"), S = o(() => {
1303
+ let b = T("primary"), x = o(() => {
1304
1304
  let e = [];
1305
- if (g.value?.trait === "themeColor") for (let { value: t, title: r } of ue) e.push({
1305
+ if (h.value?.trait === "themeColor") for (let { value: t, title: r } of pe) e.push({
1306
1306
  value: t,
1307
1307
  title: n(r)
1308
1308
  });
1309
1309
  return e;
1310
1310
  });
1311
1311
  return P(() => {
1312
- g.value?.trait === "themeColor" && ae(i.value) && (x.value = i.value);
1313
- }), N(x, (e) => {
1314
- g.value?.trait === "themeColor" && (i.value = e);
1312
+ h.value?.trait === "themeColor" && ce(i.value) && (b.value = i.value);
1313
+ }), N(b, (e) => {
1314
+ h.value?.trait === "themeColor" && (i.value = e);
1315
1315
  }), (t, n) => {
1316
1316
  let r = D("v-select"), i = D("v-number-input"), o = D("v-btn"), d = O("ripple");
1317
- return C(), l("div", Rt, [u("div", zt, [
1317
+ return C(), l("div", Bt, [u("div", Vt, [
1318
1318
  I(f(r, {
1319
- modelValue: m.value,
1320
- "onUpdate:modelValue": [n[0] ||= (e) => m.value = e, _],
1319
+ modelValue: p.value,
1320
+ "onUpdate:modelValue": [n[0] ||= (e) => p.value = e, g],
1321
1321
  density: "compact",
1322
1322
  "hide-details": "",
1323
- items: h.value,
1323
+ items: m.value,
1324
1324
  readonly: e.readonly,
1325
1325
  "single-line": ""
1326
1326
  }, null, 8, [
@@ -1333,20 +1333,20 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1333
1333
  void 0,
1334
1334
  { stop: !0 }
1335
1335
  ]]),
1336
- g.value?.trait === "pixel" || g.value?.trait === "percent" ? I((C(), s(i, {
1336
+ h.value?.trait === "pixel" || h.value?.trait === "percent" ? I((C(), s(i, {
1337
1337
  key: 0,
1338
- modelValue: v.value,
1339
- "onUpdate:modelValue": n[1] ||= (e) => v.value = e,
1338
+ modelValue: _.value,
1339
+ "onUpdate:modelValue": n[1] ||= (e) => _.value = e,
1340
1340
  "control-variant": "stacked",
1341
1341
  density: "compact",
1342
1342
  "hide-details": "",
1343
- max: g.value.max,
1344
- min: g.value.min,
1345
- precision: g.value.precision,
1343
+ max: h.value.max,
1344
+ min: h.value.min,
1345
+ precision: h.value.precision,
1346
1346
  readonly: e.readonly,
1347
1347
  "single-line": "",
1348
- step: g.value.step,
1349
- "onUpdate:focused": y
1348
+ step: h.value.step,
1349
+ "onUpdate:focused": v
1350
1350
  }, null, 8, [
1351
1351
  "modelValue",
1352
1352
  "max",
@@ -1360,18 +1360,18 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1360
1360
  void 0,
1361
1361
  { stop: !0 }
1362
1362
  ]]) : c("", !0),
1363
- g.value?.trait === "hexColor" ? (C(), s(wt, {
1363
+ h.value?.trait === "hexColor" ? (C(), s(Et, {
1364
1364
  key: 1,
1365
- modelValue: b.value,
1366
- "onUpdate:modelValue": n[2] ||= (e) => b.value = e
1365
+ modelValue: y.value,
1366
+ "onUpdate:modelValue": n[2] ||= (e) => y.value = e
1367
1367
  }, null, 8, ["modelValue"])) : c("", !0),
1368
- g.value?.trait === "themeColor" ? I((C(), s(r, {
1368
+ h.value?.trait === "themeColor" ? I((C(), s(r, {
1369
1369
  key: 2,
1370
- modelValue: x.value,
1371
- "onUpdate:modelValue": n[3] ||= (e) => x.value = e,
1370
+ modelValue: b.value,
1371
+ "onUpdate:modelValue": n[3] ||= (e) => b.value = e,
1372
1372
  density: "compact",
1373
1373
  "hide-details": "",
1374
- items: S.value,
1374
+ items: x.value,
1375
1375
  "single-line": ""
1376
1376
  }, null, 8, ["modelValue", "items"])), [[
1377
1377
  d,
@@ -1389,7 +1389,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1389
1389
  })) : c("", !0)]);
1390
1390
  };
1391
1391
  }
1392
- }), Vt = { class: "d-flex justify-space-between align-center" }, Ht = /* @__PURE__ */ p({
1392
+ }), Ut = { class: "d-flex justify-space-between align-center" }, Wt = /* @__PURE__ */ p({
1393
1393
  __name: "index",
1394
1394
  props: /* @__PURE__ */ _({
1395
1395
  hasDelete: {
@@ -1410,9 +1410,9 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1410
1410
  }),
1411
1411
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1412
1412
  setup(e, { emit: t }) {
1413
- let { isMobile: n } = W(), r = M(e, "modelValue"), i = t, a = async (t) => {
1413
+ let { isMobile: n } = U(), r = M(e, "modelValue"), i = t, a = async (t) => {
1414
1414
  if (!t || e.readonly || !n()) return;
1415
- let i = await me({
1415
+ let i = await _e({
1416
1416
  title: "",
1417
1417
  value: r.value,
1418
1418
  precision: e.precision,
@@ -1424,7 +1424,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1424
1424
  };
1425
1425
  return (t, n) => {
1426
1426
  let o = D("v-number-input"), u = D("v-btn"), d = O("ripple");
1427
- return C(), l("div", Vt, [I(f(o, {
1427
+ return C(), l("div", Ut, [I(f(o, {
1428
1428
  modelValue: r.value,
1429
1429
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1430
1430
  "control-variant": "stacked",
@@ -1459,7 +1459,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1459
1459
  })) : c("", !0)]);
1460
1460
  };
1461
1461
  }
1462
- }), Ut = { class: "d-flex justify-space-between align-center" }, Wt = /* @__PURE__ */ p({
1462
+ }), Gt = { class: "d-flex justify-space-between align-center" }, Kt = /* @__PURE__ */ p({
1463
1463
  __name: "index",
1464
1464
  props: /* @__PURE__ */ _({
1465
1465
  hasDelete: {
@@ -1477,23 +1477,23 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1477
1477
  }),
1478
1478
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1479
1479
  setup(e, { emit: t }) {
1480
- let { t: n } = V(), r = M(e, "modelValue"), i = t, a = Ve(), u = o(() => {
1480
+ let { t: n } = B(), r = M(e, "modelValue"), i = t, a = o(() => {
1481
1481
  let t = [];
1482
- return le[a.value].items[e.items].forEach(({ title: e, value: r }) => {
1482
+ return re(e.items)?.forEach(({ value: e, title: r }) => {
1483
1483
  t.push({
1484
- title: n(e),
1485
- value: r
1484
+ value: e,
1485
+ title: n(r)
1486
1486
  });
1487
1487
  }), t;
1488
1488
  });
1489
1489
  return (t, n) => {
1490
- let a = D("v-select"), o = D("v-btn"), d = O("ripple");
1491
- return C(), l("div", Ut, [I(f(a, {
1490
+ let o = D("v-select"), u = D("v-btn"), d = O("ripple");
1491
+ return C(), l("div", Gt, [I(f(o, {
1492
1492
  modelValue: r.value,
1493
1493
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1494
1494
  density: "compact",
1495
1495
  "hide-details": "",
1496
- items: u.value,
1496
+ items: a.value,
1497
1497
  readonly: e.readonly,
1498
1498
  "single-line": ""
1499
1499
  }, null, 8, [
@@ -1505,7 +1505,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1505
1505
  void 0,
1506
1506
  void 0,
1507
1507
  { stop: !0 }
1508
- ]]), e.hasDelete ? (C(), s(o, {
1508
+ ]]), e.hasDelete ? (C(), s(u, {
1509
1509
  key: 0,
1510
1510
  class: "mx-2",
1511
1511
  density: "compact",
@@ -1515,7 +1515,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1515
1515
  })) : c("", !0)]);
1516
1516
  };
1517
1517
  }
1518
- }), Gt = { class: "text-body-large ml-6" }, Kt = /* @__PURE__ */ p({
1518
+ }), qt = { class: "text-body-large ml-6" }, Jt = /* @__PURE__ */ p({
1519
1519
  __name: "item",
1520
1520
  props: {
1521
1521
  id: {},
@@ -1523,7 +1523,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1523
1523
  },
1524
1524
  emits: ["x-click"],
1525
1525
  setup(e, { emit: t }) {
1526
- let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
1526
+ let { backgroundColor2: n, highlightColor: r } = H(), i = t, a = T(!1), s = o(() => ({
1527
1527
  background: a.value ? r.value : n.value,
1528
1528
  height: "48px",
1529
1529
  marginTop: "1px",
@@ -1537,13 +1537,13 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1537
1537
  onClick: n[0] ||= (t) => i("x-click", e.id),
1538
1538
  onMouseout: n[1] ||= (e) => a.value = !1,
1539
1539
  onMouseover: n[2] ||= (e) => a.value = !0
1540
- }, [u("span", Gt, k(e.title), 1)], 36)), [[r]]);
1540
+ }, [u("span", qt, k(e.title), 1)], 36)), [[r]]);
1541
1541
  };
1542
1542
  }
1543
- }), qt = { key: 0 }, Jt = {
1543
+ }), Yt = { key: 0 }, Xt = {
1544
1544
  key: 1,
1545
1545
  class: "text-body-medium text-grey ml-3"
1546
- }, Yt = /* @__PURE__ */ p({
1546
+ }, Zt = /* @__PURE__ */ p({
1547
1547
  __name: "index",
1548
1548
  props: {
1549
1549
  modelValue: {},
@@ -1556,17 +1556,17 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1556
1556
  },
1557
1557
  emits: ["update:modelValue", "update:open"],
1558
1558
  setup(e) {
1559
- let { nameList: t } = W(), n = M(e, "modelValue"), r = M(e, "open"), i = it(), o = (e) => {
1559
+ let { nameList: t } = U(), n = M(e, "modelValue"), r = M(e, "open"), i = ot(), o = (e) => {
1560
1560
  n.value = e, r.value = !1;
1561
1561
  };
1562
- return (e, n) => A(i).length > 0 ? (C(), l("div", qt, [(C(!0), l(a, null, E(A(i), (e) => (C(), s(Kt, {
1562
+ return (e, n) => A(i).length > 0 ? (C(), l("div", Yt, [(C(!0), l(a, null, E(A(i), (e) => (C(), s(Jt, {
1563
1563
  key: e.id,
1564
1564
  id: e.id,
1565
1565
  title: e.name,
1566
1566
  onXClick: o
1567
- }, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", Jt, k(A(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
1567
+ }, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", Xt, k(A(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
1568
1568
  }
1569
- }), Xt = { class: "text-body-large" }, Zt = /* @__PURE__ */ p({
1569
+ }), Qt = { class: "text-body-large" }, $t = /* @__PURE__ */ p({
1570
1570
  __name: "index",
1571
1571
  props: /* @__PURE__ */ _({
1572
1572
  hasDelete: {
@@ -1583,7 +1583,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1583
1583
  }),
1584
1584
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1585
1585
  setup(e, { emit: t }) {
1586
- let { t: n } = V(), r = _e(), { sysBarAvail: i, nameList: a } = W(), { backgroundColor1: l } = U(), p = M(e, "modelValue"), m = t, h = it(), _ = o(() => {
1586
+ let { t: n } = B(), r = be(), { sysBarAvail: i, nameList: a } = U(), { backgroundColor1: l } = H(), p = M(e, "modelValue"), m = t, h = ot(), _ = o(() => {
1587
1587
  let e = "100%";
1588
1588
  return r.mdAndUp.value && (e = "400px"), {
1589
1589
  background: l.value,
@@ -1600,7 +1600,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1600
1600
  if (!p.value) return n("x-runtime-lib.notSet");
1601
1601
  let e = h.value.find((e) => e.id === p.value);
1602
1602
  return e ? e.name : n("x-runtime-lib.slotNotAvail");
1603
- }), { open: T } = G(`propTreeSlotSelectDlg${j()}`);
1603
+ }), { open: T } = W(`propTreeSlotSelectDlg${j()}`);
1604
1604
  return S(() => {
1605
1605
  T.value = !1;
1606
1606
  }), (t, n) => {
@@ -1652,13 +1652,13 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1652
1652
  icon: "mdi-close",
1653
1653
  variant: "text",
1654
1654
  onClick: n[1] ||= (e) => T.value = !1
1655
- }), u("span", Xt, k(A(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
1655
+ }), u("span", Qt, k(A(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
1656
1656
  _: 1
1657
1657
  }),
1658
1658
  u("div", {
1659
1659
  class: "overflow-y-auto",
1660
1660
  style: y(b.value)
1661
- }, [f(Yt, {
1661
+ }, [f(Zt, {
1662
1662
  modelValue: p.value,
1663
1663
  "onUpdate:modelValue": n[2] ||= (e) => p.value = e,
1664
1664
  open: A(T),
@@ -1669,7 +1669,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1669
1669
  }, 8, ["modelValue"]);
1670
1670
  };
1671
1671
  }
1672
- }), Qt = { class: "d-flex justify-space-between align-center" }, $t = /* @__PURE__ */ p({
1672
+ }), en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PURE__ */ p({
1673
1673
  __name: "index",
1674
1674
  props: /* @__PURE__ */ _({
1675
1675
  hasDelete: {
@@ -1686,9 +1686,9 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1686
1686
  }),
1687
1687
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1688
1688
  setup(e, { emit: t }) {
1689
- let { isMobile: n } = W(), r = M(e, "modelValue"), i = t, a = async (t) => {
1689
+ let { isMobile: n } = U(), r = M(e, "modelValue"), i = t, a = async (t) => {
1690
1690
  if (!t || e.readonly || !n()) return;
1691
- let i = await he({
1691
+ let i = await ve({
1692
1692
  title: "",
1693
1693
  value: r.value
1694
1694
  });
@@ -1696,7 +1696,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1696
1696
  };
1697
1697
  return (t, n) => {
1698
1698
  let o = D("v-text-field"), u = D("v-btn"), d = O("ripple");
1699
- return C(), l("div", Qt, [I(f(o, {
1699
+ return C(), l("div", en, [I(f(o, {
1700
1700
  modelValue: r.value,
1701
1701
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1702
1702
  density: "compact",
@@ -1719,7 +1719,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1719
1719
  })) : c("", !0)]);
1720
1720
  };
1721
1721
  }
1722
- }), en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PURE__ */ p({
1722
+ }), nn = { class: "d-flex justify-space-between align-center" }, rn = /* @__PURE__ */ p({
1723
1723
  __name: "index",
1724
1724
  props: /* @__PURE__ */ _({
1725
1725
  hasDelete: {
@@ -1739,7 +1739,7 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1739
1739
  let n = M(e, "modelValue"), r = t;
1740
1740
  return (t, i) => {
1741
1741
  let a = D("v-switch"), o = D("v-btn");
1742
- return C(), l("div", en, [f(a, {
1742
+ return C(), l("div", nn, [f(a, {
1743
1743
  modelValue: n.value,
1744
1744
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
1745
1745
  class: "ml-1",
@@ -1760,14 +1760,14 @@ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text
1760
1760
  });
1761
1761
  //#endregion
1762
1762
  //#region src/composables/uis/uiAdaptSlotSelect.ts
1763
- function nn() {
1763
+ function an() {
1764
1764
  let e = $();
1765
1765
  return { renderUiAdaptSlotSelect: (t, n, r, i, a) => {
1766
1766
  if (n.ui !== "selectAdaptSlot") throw Error("renderUiSlotSelect property ui must be selectAdaptSlot");
1767
- return m(St, {
1768
- modelValue: X(t, n, r, i, a, e),
1767
+ return m(wt, {
1768
+ modelValue: Y(t, n, r, i, a, e),
1769
1769
  "onUpdate:modelValue": (o) => {
1770
- Z(t, n, r, o, i, a, e);
1770
+ X(t, n, r, o, i, a, e);
1771
1771
  },
1772
1772
  hasDelete: i !== void 0 && !a,
1773
1773
  onDelete: () => {
@@ -1779,14 +1779,14 @@ function nn() {
1779
1779
  }
1780
1780
  //#endregion
1781
1781
  //#region src/composables/uis/uiColorPicker.ts
1782
- function rn() {
1782
+ function on() {
1783
1783
  let e = $();
1784
1784
  return { renderUiColorPicker: (t, n, r, i, a) => {
1785
1785
  if (n.ui !== "colorPicker") throw Error("renderUiColorPicker property ui must be colorPicker");
1786
- return m(wt, {
1787
- modelValue: X(t, n, r, i, a, e),
1786
+ return m(Et, {
1787
+ modelValue: Y(t, n, r, i, a, e),
1788
1788
  "onUpdate:modelValue": (o) => {
1789
- Z(t, n, r, o, i, a, e);
1789
+ X(t, n, r, o, i, a, e);
1790
1790
  },
1791
1791
  hasDelete: i !== void 0 && !a,
1792
1792
  onDelete: () => {
@@ -1798,14 +1798,14 @@ function rn() {
1798
1798
  }
1799
1799
  //#endregion
1800
1800
  //#region src/composables/uis/uiCompSelect.ts
1801
- function an() {
1801
+ function sn() {
1802
1802
  let e = $();
1803
1803
  return { renderUiCompSelect: (t, n, r, i, a) => {
1804
1804
  if (n.ui !== "selectComp") throw Error("renderUiCompSelect property ui must be selectComp");
1805
- return m(Pt, {
1806
- modelValue: X(t, n, r, i, a, e),
1805
+ return m(It, {
1806
+ modelValue: Y(t, n, r, i, a, e),
1807
1807
  "onUpdate:modelValue": (o) => {
1808
- Z(t, n, r, o, i, a, e);
1808
+ X(t, n, r, o, i, a, e);
1809
1809
  },
1810
1810
  hasDelete: i !== void 0 && !a,
1811
1811
  onDelete: () => {
@@ -1817,23 +1817,23 @@ function an() {
1817
1817
  }
1818
1818
  //#endregion
1819
1819
  //#region src/composables/uis/uiDummy.ts
1820
- function on() {
1820
+ function cn() {
1821
1821
  let e = $();
1822
1822
  return { renderUiDummy: (t, n, r, i, a) => {
1823
1823
  if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
1824
- X(t, n, r, i, a, e);
1824
+ Y(t, n, r, i, a, e);
1825
1825
  } };
1826
1826
  }
1827
1827
  //#endregion
1828
1828
  //#region src/composables/uis/uiJsonEditor.ts
1829
- function sn() {
1829
+ function ln() {
1830
1830
  let e = $();
1831
1831
  return { renderUiJsonEditor: (t, n, r, i, a) => {
1832
1832
  if (n.ui !== "jsonEditor") throw Error("renderUijsonEditor property ui must be jsonEditor");
1833
- return m(Lt, {
1834
- modelValue: X(t, n, r, i, a, e) ?? "{}",
1833
+ return m(zt, {
1834
+ modelValue: Y(t, n, r, i, a, e) ?? "{}",
1835
1835
  "onUpdate:modelValue": (o) => {
1836
- Z(t, n, r, o, i, a, e);
1836
+ X(t, n, r, o, i, a, e);
1837
1837
  },
1838
1838
  hasDelete: i !== void 0 && !a,
1839
1839
  onDelete: () => {
@@ -1845,14 +1845,14 @@ function sn() {
1845
1845
  }
1846
1846
  //#endregion
1847
1847
  //#region src/composables/uis/uiMultiTypes.ts
1848
- function cn() {
1848
+ function un() {
1849
1849
  let e = $();
1850
1850
  return { renderUiMultiTypes: (t, n, r, i, a) => {
1851
1851
  if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
1852
- return m(Bt, {
1853
- modelValue: X(t, n, r, i, a, e) ?? "",
1852
+ return m(Ht, {
1853
+ modelValue: Y(t, n, r, i, a, e) ?? "",
1854
1854
  "onUpdate:modelValue": (o) => {
1855
- Z(t, n, r, o, i, a, e);
1855
+ X(t, n, r, o, i, a, e);
1856
1856
  },
1857
1857
  hasDelete: i !== void 0 && !a,
1858
1858
  onDelete: () => {
@@ -1864,14 +1864,14 @@ function cn() {
1864
1864
  }
1865
1865
  //#endregion
1866
1866
  //#region src/composables/uis/uiNumInput.ts
1867
- function ln() {
1867
+ function dn() {
1868
1868
  let e = $();
1869
1869
  return { renderUiNumInput: (t, n, r, i, a) => {
1870
1870
  if (n.ui !== "numInput") throw Error("renderUiNumInput property ui must be numInput");
1871
- return m(Ht, {
1872
- modelValue: X(t, n, r, i, a, e),
1871
+ return m(Wt, {
1872
+ modelValue: Y(t, n, r, i, a, e),
1873
1873
  "onUpdate:modelValue": (o) => {
1874
- Z(t, n, r, o, i, a, e);
1874
+ X(t, n, r, o, i, a, e);
1875
1875
  },
1876
1876
  hasDelete: i !== void 0 && !a,
1877
1877
  onDelete: () => {
@@ -1887,12 +1887,12 @@ function ln() {
1887
1887
  }
1888
1888
  //#endregion
1889
1889
  //#region src/components/entry/index.vue
1890
- var un = /* @__PURE__ */ p({
1890
+ var fn = /* @__PURE__ */ p({
1891
1891
  __name: "index",
1892
1892
  props: { minHeight: {} },
1893
1893
  emits: ["menu"],
1894
1894
  setup(e, { emit: t }) {
1895
- let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
1895
+ let { backgroundColor2: n, highlightColor: r } = H(), i = t, a = T(!1), s = o(() => ({
1896
1896
  background: a.value ? r.value : n.value,
1897
1897
  minHeight: e.minHeight,
1898
1898
  paddingRight: "4px",
@@ -1915,14 +1915,14 @@ var un = /* @__PURE__ */ p({
1915
1915
  });
1916
1916
  //#endregion
1917
1917
  //#region src/composables/uis/uiProperty.ts
1918
- function dn() {
1919
- let { t: e } = V(), t = $e();
1918
+ function pn() {
1919
+ let { t: e } = B(), t = tt();
1920
1920
  return { renderProperty: (n, r, i) => {
1921
1921
  let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
1922
- return Q(t.value, n) && (o += " *"), m(un, {
1922
+ return Q(t.value, n) && (o += " *"), m(fn, {
1923
1923
  minHeight: "56px",
1924
1924
  onMenu: (e, t) => {
1925
- H.emit("propTreeMenu", {
1925
+ V.emit("propTreeMenu", {
1926
1926
  x: e,
1927
1927
  y: t,
1928
1928
  keys: n
@@ -1939,14 +1939,14 @@ function dn() {
1939
1939
  }
1940
1940
  //#endregion
1941
1941
  //#region src/composables/uis/uiSelect.ts
1942
- function fn() {
1942
+ function mn() {
1943
1943
  let e = $();
1944
1944
  return { renderUiSelect: (t, n, r, i, a) => {
1945
1945
  if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
1946
- return m(Wt, {
1947
- modelValue: X(t, n, r, i, a, e) ?? "",
1946
+ return m(Kt, {
1947
+ modelValue: Y(t, n, r, i, a, e) ?? "",
1948
1948
  "onUpdate:modelValue": (o) => {
1949
- Z(t, n, r, o, i, a, e);
1949
+ X(t, n, r, o, i, a, e);
1950
1950
  },
1951
1951
  hasDelete: i !== void 0 && !a,
1952
1952
  onDelete: () => {
@@ -1959,14 +1959,14 @@ function fn() {
1959
1959
  }
1960
1960
  //#endregion
1961
1961
  //#region src/composables/uis/uiSlotSelect.ts
1962
- function pn() {
1962
+ function hn() {
1963
1963
  let e = $();
1964
1964
  return { renderUiSlotSelect: (t, n, r, i, a) => {
1965
1965
  if (n.ui !== "selectSlot") throw Error("renderUiSlotSelect property ui must be selectSlot");
1966
- return m(Zt, {
1967
- modelValue: X(t, n, r, i, a, e),
1966
+ return m($t, {
1967
+ modelValue: Y(t, n, r, i, a, e),
1968
1968
  "onUpdate:modelValue": (o) => {
1969
- Z(t, n, r, o, i, a, e);
1969
+ X(t, n, r, o, i, a, e);
1970
1970
  },
1971
1971
  hasDelete: i !== void 0 && !a,
1972
1972
  onDelete: () => {
@@ -1978,14 +1978,14 @@ function pn() {
1978
1978
  }
1979
1979
  //#endregion
1980
1980
  //#region src/composables/uis/uiStrInput.ts
1981
- function mn() {
1981
+ function gn() {
1982
1982
  let e = $();
1983
1983
  return { renderUiStrInput: (t, n, r, i, a) => {
1984
1984
  if (n.ui !== "strInput") throw Error("renderUiStrInput property ui must be strInput");
1985
- return m($t, {
1986
- modelValue: n.static ? n.value : X(t, n, r, i, a, e),
1985
+ return m(tn, {
1986
+ modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
1987
1987
  "onUpdate:modelValue": (o) => {
1988
- n.static || Z(t, n, r, o, i, a, e);
1988
+ n.static || X(t, n, r, o, i, a, e);
1989
1989
  },
1990
1990
  hasDelete: i !== void 0 && !a,
1991
1991
  onDelete: () => {
@@ -1997,14 +1997,14 @@ function mn() {
1997
1997
  }
1998
1998
  //#endregion
1999
1999
  //#region src/composables/uis/uiSwitch.ts
2000
- function hn() {
2000
+ function _n() {
2001
2001
  let e = $();
2002
2002
  return { renderUiSwitch: (t, n, r, i, a) => {
2003
2003
  if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
2004
- return m(tn, {
2005
- modelValue: X(t, n, r, i, a, e) ?? !1,
2004
+ return m(rn, {
2005
+ modelValue: Y(t, n, r, i, a, e) ?? !1,
2006
2006
  "onUpdate:modelValue": (o) => {
2007
- Z(t, n, r, o, i, a, e);
2007
+ X(t, n, r, o, i, a, e);
2008
2008
  },
2009
2009
  hasDelete: i !== void 0 && !a,
2010
2010
  onDelete: () => {
@@ -2016,25 +2016,25 @@ function hn() {
2016
2016
  }
2017
2017
  //#endregion
2018
2018
  //#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
2019
- var gn = "20px", _n = /* @__PURE__ */ p({
2019
+ var vn = "20px", yn = /* @__PURE__ */ p({
2020
2020
  __name: "main",
2021
2021
  setup(t) {
2022
- let { t: n } = V(), { backgroundColor1: r } = U(), i = qe(), o = Ye(), s = Ze(), c = $e(), u = $();
2023
- dt(), ft(), ut();
2024
- let { renderProperty: d } = dn(), { renderUiDummy: p } = on(), { renderUiStrInput: h } = mn(), { renderUiNumInput: g } = ln(), { renderUiSwitch: _ } = hn(), { renderUiSelect: v } = fn(), { renderUiColorPicker: y } = rn(), { renderUiJsonEditor: b } = sn(), { renderUiMultiTypes: x } = cn(), { renderUiCompSelect: S } = an(), { renderUiSlotSelect: w } = pn(), { renderUiAdaptSlotSelect: T } = nn(), E = (t, n, r, i, a, o) => (t = e(t), i === void 0 ? t.push(n.key) : (t.push(i), a && t.push(n.key)), n.ui ? n.array && !o ? O(t, n, r, i, a) : k(t, n, r, i, a) : n.array ? ee(t, n, r, i, a) : D(t, n, r, i, a)), ee = (e, t, r, i, a) => {
2022
+ let { t: n } = B(), { backgroundColor1: r } = H(), i = Ye(), o = Ze(), s = $e(), c = tt(), u = $();
2023
+ pt(), mt(), ft();
2024
+ let { renderProperty: d } = pn(), { renderUiDummy: p } = cn(), { renderUiStrInput: h } = gn(), { renderUiNumInput: g } = dn(), { renderUiSwitch: _ } = _n(), { renderUiSelect: v } = mn(), { renderUiColorPicker: y } = on(), { renderUiJsonEditor: b } = ln(), { renderUiMultiTypes: x } = un(), { renderUiCompSelect: S } = sn(), { renderUiSlotSelect: w } = hn(), { renderUiAdaptSlotSelect: T } = an(), E = (t, n, r, i, a, o) => (t = e(t), i === void 0 ? t.push(n.key) : (t.push(i), a && t.push(n.key)), n.ui ? n.array && !o ? O(t, n, r, i, a) : k(t, n, r, i, a) : n.array ? ee(t, n, r, i, a) : D(t, n, r, i, a)), ee = (e, t, r, i, a) => {
2025
2025
  if (t.ui) throw Error("renderBranchArray property ui must be invalid");
2026
2026
  if (!t.array) throw Error("renderBranchArray property array must be valid");
2027
- let o = ye(e, t, r, i, a, u), l = n(t.name);
2028
- K(s, e) && Q(c.value, e) && (l += " *");
2029
- let d = m(lt, {
2027
+ let o = Se(e, t, r, i, a, u), l = n(t.name);
2028
+ G(s, e) && Q(c.value, e) && (l += " *");
2029
+ let d = m(dt, {
2030
2030
  title: l,
2031
- collapse: K(s, e),
2031
+ collapse: G(s, e),
2032
2032
  hasCreate: !0,
2033
2033
  onCollapse: (t) => {
2034
- q(s, e, t);
2034
+ K(s, e, t);
2035
2035
  },
2036
2036
  onMenu: (t, n) => {
2037
- H.emit("propTreeMenu", {
2037
+ V.emit("propTreeMenu", {
2038
2038
  x: t,
2039
2039
  y: n,
2040
2040
  keys: e
@@ -2043,21 +2043,21 @@ var gn = "20px", _n = /* @__PURE__ */ p({
2043
2043
  onCreate: () => {
2044
2044
  o.push({}), u(e, o);
2045
2045
  }
2046
- }), f = m("div", { style: { paddingLeft: gn } }, (() => {
2046
+ }), f = m("div", { style: { paddingLeft: vn } }, (() => {
2047
2047
  let n = [];
2048
2048
  for (let r = 0; r < o.length; r++) {
2049
2049
  let i = [...e, r], a = `[${r + 1}]`;
2050
- K(s, [...e, r]) && Q(c.value, i) && (a += " *");
2051
- let l = m(lt, {
2050
+ G(s, [...e, r]) && Q(c.value, i) && (a += " *");
2051
+ let l = m(dt, {
2052
2052
  title: a,
2053
- collapse: K(s, [...e, r]),
2053
+ collapse: G(s, [...e, r]),
2054
2054
  hasDelete: !0,
2055
2055
  index: r,
2056
2056
  onCollapse: (t) => {
2057
- q(s, [...e, r], t);
2057
+ K(s, [...e, r], t);
2058
2058
  },
2059
2059
  onMenu: (e, t) => {
2060
- H.emit("propTreeMenu", {
2060
+ V.emit("propTreeMenu", {
2061
2061
  x: e,
2062
2062
  y: t,
2063
2063
  keys: i
@@ -2068,33 +2068,33 @@ var gn = "20px", _n = /* @__PURE__ */ p({
2068
2068
  }
2069
2069
  });
2070
2070
  n.push(l);
2071
- let d = m("div", { style: { paddingLeft: gn } }, (() => {
2071
+ let d = m("div", { style: { paddingLeft: vn } }, (() => {
2072
2072
  let n = [];
2073
2073
  for (let i of t.children) n.push(E(e, i, o[r], r, !0));
2074
2074
  return n;
2075
2075
  })());
2076
- K(s, [...e, r]) || n.push(d);
2076
+ G(s, [...e, r]) || n.push(d);
2077
2077
  }
2078
2078
  return n;
2079
2079
  })());
2080
2080
  return m("div", { style: { marginTop: "1px" } }, (() => {
2081
2081
  let t = [];
2082
- return t.push(d), K(s, e) || t.push(f), t;
2082
+ return t.push(d), G(s, e) || t.push(f), t;
2083
2083
  })());
2084
2084
  }, D = (e, t, r, i, a) => {
2085
2085
  if (t.ui) throw Error("renderBranchScalar property ui must be invalid");
2086
2086
  if (t.array) throw Error("renderBranchScalar property array must be invalid");
2087
2087
  let o = n(t.name);
2088
- K(s, e) && Q(c.value, e) && (o += " *");
2089
- let l = m(lt, {
2088
+ G(s, e) && Q(c.value, e) && (o += " *");
2089
+ let l = m(dt, {
2090
2090
  title: o,
2091
- collapse: K(s, e),
2091
+ collapse: G(s, e),
2092
2092
  hasDelete: i !== void 0 && !a,
2093
2093
  onCollapse: (t) => {
2094
- q(s, e, t);
2094
+ K(s, e, t);
2095
2095
  },
2096
2096
  onMenu: (t, n) => {
2097
- H.emit("propTreeMenu", {
2097
+ V.emit("propTreeMenu", {
2098
2098
  x: t,
2099
2099
  y: n,
2100
2100
  keys: e
@@ -2103,29 +2103,29 @@ var gn = "20px", _n = /* @__PURE__ */ p({
2103
2103
  onDelete: () => {
2104
2104
  i === void 0 || a || (r.splice(i, 1), u(e.slice(0, -1), r));
2105
2105
  }
2106
- }), d = m("div", { style: { paddingLeft: gn } }, (() => {
2106
+ }), d = m("div", { style: { paddingLeft: vn } }, (() => {
2107
2107
  let n = [];
2108
2108
  for (let i of t.children) n.push(E(e, i, (typeof r[t.key] != "object" && (r[t.key] = {}, u(e, r[t.key])), r[t.key]), void 0, !1));
2109
2109
  return n;
2110
2110
  })());
2111
2111
  return m("div", { style: { marginTop: "1px" } }, (() => {
2112
2112
  let t = [];
2113
- return t.push(l), K(s, e) || t.push(d), t;
2113
+ return t.push(l), G(s, e) || t.push(d), t;
2114
2114
  })());
2115
2115
  }, O = (e, t, r, i, a) => {
2116
2116
  if (!t.ui) throw Error("renderLeafArray property ui must be valid");
2117
2117
  if (!t.array) throw Error("renderLeafArray property array must be valid");
2118
- let o = ye(e, t, r, i, a, u), l = n(t.name);
2119
- K(s, e) && Q(c.value, e) && (l += " *");
2120
- let d = m(lt, {
2118
+ let o = Se(e, t, r, i, a, u), l = n(t.name);
2119
+ G(s, e) && Q(c.value, e) && (l += " *");
2120
+ let d = m(dt, {
2121
2121
  title: l,
2122
- collapse: K(s, e),
2122
+ collapse: G(s, e),
2123
2123
  hasCreate: !0,
2124
2124
  onCollapse: (t) => {
2125
- q(s, e, t);
2125
+ K(s, e, t);
2126
2126
  },
2127
2127
  onMenu: (t, n) => {
2128
- H.emit("propTreeMenu", {
2128
+ V.emit("propTreeMenu", {
2129
2129
  x: t,
2130
2130
  y: n,
2131
2131
  keys: e
@@ -2134,14 +2134,14 @@ var gn = "20px", _n = /* @__PURE__ */ p({
2134
2134
  onCreate: () => {
2135
2135
  o.push(z(t)), u(e, o);
2136
2136
  }
2137
- }), f = m("div", { style: { paddingLeft: gn } }, (() => {
2137
+ }), f = m("div", { style: { paddingLeft: vn } }, (() => {
2138
2138
  let n = [];
2139
2139
  for (let r = 0; r < o.length; r++) n.push(E(e, t, o, r, !1, !0));
2140
2140
  return n;
2141
2141
  })());
2142
2142
  return m("div", { style: { marginTop: "1px" } }, (() => {
2143
2143
  let t = [];
2144
- return t.push(d), K(s, e) || t.push(f), t;
2144
+ return t.push(d), G(s, e) || t.push(f), t;
2145
2145
  })());
2146
2146
  }, k = (e, t, n, r, i) => {
2147
2147
  if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
@@ -2155,9 +2155,9 @@ var gn = "20px", _n = /* @__PURE__ */ p({
2155
2155
  if (i.value.length > 0 && o.value) for (let t of i.value) e.push(E([], t, o.value, void 0, !1));
2156
2156
  return e;
2157
2157
  })());
2158
- return (e, t) => (C(), l(a, null, [f(A), f(st)], 64));
2158
+ return (e, t) => (C(), l(a, null, [f(A), f(lt)], 64));
2159
2159
  }
2160
- }), vn = /* @__PURE__ */ p({
2160
+ }), bn = /* @__PURE__ */ p({
2161
2161
  __name: "index",
2162
2162
  props: {
2163
2163
  config: {},
@@ -2169,25 +2169,25 @@ var gn = "20px", _n = /* @__PURE__ */ p({
2169
2169
  emits: ["change"],
2170
2170
  setup(e, { emit: t }) {
2171
2171
  let n = t, r = T([]);
2172
- Ke(r), P(() => {
2172
+ Je(r), P(() => {
2173
2173
  r.value = e.config;
2174
2174
  });
2175
2175
  let i = T();
2176
- Je(i), P(() => {
2176
+ Xe(i), P(() => {
2177
2177
  i.value = e.object;
2178
2178
  });
2179
2179
  let a = T("");
2180
- Be(a), P(() => {
2180
+ He(a), P(() => {
2181
2181
  a.value = e.version;
2182
2182
  });
2183
2183
  let o = T(e.type);
2184
- He(o), P(() => {
2184
+ We(o), P(() => {
2185
2185
  o.value = e.type;
2186
2186
  });
2187
2187
  let c = T("");
2188
- We(c), P(() => {
2188
+ Ke(c), P(() => {
2189
2189
  c.value = e.subtype;
2190
- }), Xe(T({
2190
+ }), Qe(T({
2191
2191
  collapse: !0,
2192
2192
  children: {}
2193
2193
  }));
@@ -2196,15 +2196,15 @@ var gn = "20px", _n = /* @__PURE__ */ p({
2196
2196
  warning: !1,
2197
2197
  children: {}
2198
2198
  });
2199
- return Qe(l), et((t, r) => {
2200
- Oe(l, e.config, e.object), n("change", t, r);
2199
+ return et(l), nt((t, r) => {
2200
+ Ae(l, e.config, e.object), n("change", t, r);
2201
2201
  }), N([() => e.config, () => e.object], () => {
2202
- Oe(l, e.config, e.object);
2203
- }, { immediate: !0 }), (e, t) => (C(), s(_n));
2202
+ Ae(l, e.config, e.object);
2203
+ }, { immediate: !0 }), (e, t) => (C(), s(yn));
2204
2204
  }
2205
- }), yn = (e) => {
2206
- e.component("XPropTree", vn);
2207
- }, bn = (e, t, n) => {
2205
+ }), xn = (e) => {
2206
+ e.component("XPropTree", bn);
2207
+ }, Sn = (e, t, n) => {
2208
2208
  let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
2209
2209
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
2210
2210
  (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."))));
@@ -2212,14 +2212,14 @@ var gn = "20px", _n = /* @__PURE__ */ p({
2212
2212
  };
2213
2213
  //#endregion
2214
2214
  //#region src/i18n/index.ts
2215
- async function xn(e) {
2216
- return (await bn(/* @__PURE__ */ Object.assign({
2215
+ async function Cn(e) {
2216
+ return (await Sn(/* @__PURE__ */ Object.assign({
2217
2217
  "./locales/en/index.ts": () => import("./i18n-en.lvwojc1f.js").then((e) => e.t),
2218
2218
  "./locales/zhHans/index.ts": () => import("./i18n-zhHans.u8lopwp1.js").then((e) => e.t)
2219
2219
  }), `./locales/${e}/index.ts`, 4)).default;
2220
2220
  }
2221
2221
  //#endregion
2222
2222
  //#region src/index.ts
2223
- var Sn = { install: yn };
2223
+ var wn = { install: xn };
2224
2224
  //#endregion
2225
- export { Sn as default, xn as loadLocaleMessagePropTree };
2225
+ export { wn as default, Cn as loadLocaleMessagePropTree };