x-prop-tree 0.8.12 → 0.8.14

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 +312 -307
  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.jothdq5o.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 D, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as ee, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as R, withModifiers as z } from "vue";
3
- import { getElement as te, getItems as ne, getPropertyDefault as B, getPropertyDefaultArray as re, getTag as ie, getTypes as ae, isHexColor as oe, isThemeColor as se, makeSlotId as ce, parsePercent as le, parsePixel as ue, pkgs as de, rules as fe, themeColors as pe } from "x-runtime-lib";
4
- import { useI18n as V } from "vue-i18n";
5
- import { eventBus as H, globalObjects as me, injectDark as he, injectLocale as ge, openNumberDlg as _e, openPromptDlg as ve, useColor as U, useSystem as W, useViewStack as G } 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";
3
+ import { getElement as te, getItems as ne, getPropertyDefault as B, getPropertyDefaultArray as V, getTag as re, getTypes as ie, isHexColor as ae, isThemeColor as oe, makeSlotId as se, parseNumberUnit as ce, pkgs as le, rules as ue, themeColors as de } from "x-runtime-lib";
4
+ import { useI18n as H } from "vue-i18n";
5
+ import { eventBus as U, globalObjects as fe, injectDark as pe, injectLocale as me, openNumberDlg as he, openPromptDlg as ge, useColor as W, useSystem as G, useViewStack as K } from "x-essential-lib";
6
+ import { globalState as _e } from "x-state-lib";
7
+ import { useDisplay as ve } from "vuetify";
8
+ import { XBlockly as ye } from "x-block-lib";
9
9
  //#region src/utils/common.ts
10
- function K(e, t) {
10
+ function q(e, t) {
11
11
  let n = {
12
12
  key: "",
13
13
  name: "",
@@ -20,7 +20,7 @@ function K(e, t) {
20
20
  }
21
21
  return n;
22
22
  }
23
- function q(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,22 +28,22 @@ function q(e, t) {
28
28
  }
29
29
  return n;
30
30
  }
31
- function Se(e, n, r, i, a, o) {
31
+ function be(e, n, r, i, a, o) {
32
32
  if (i !== void 0 && !a) {
33
33
  if (!(r[i] instanceof Array)) {
34
- let a = re(n);
34
+ let a = V(n);
35
35
  t(a, r[i]) || (r[i] = a, o(e, r[i]));
36
36
  }
37
37
  return r[i];
38
38
  } else {
39
39
  if (!(r[n.key] instanceof Array)) {
40
- let i = re(n);
40
+ let i = V(n);
41
41
  t(i, r[n.key]) || (r[n.key] = i, o(e, r[n.key]));
42
42
  }
43
43
  return r[n.key];
44
44
  }
45
45
  }
46
- function J(e, n, r, i, a, o) {
46
+ function Y(e, n, r, i, a, o) {
47
47
  if (i !== void 0 && !a) {
48
48
  if (r[i] === void 0) {
49
49
  let a = B(n);
@@ -58,12 +58,12 @@ function J(e, n, r, i, a, o) {
58
58
  return r[n.key];
59
59
  }
60
60
  }
61
- function Y(e, t, n, r, i, a, o) {
61
+ function X(e, t, n, r, i, a, o) {
62
62
  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]));
63
63
  }
64
64
  //#endregion
65
65
  //#region src/utils/collapseState.ts
66
- function X(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 X(e, t) {
71
71
  }
72
72
  return n.collapse;
73
73
  }
74
- function Z(e, t, n) {
74
+ function xe(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,7 +81,7 @@ function Z(e, t, n) {
81
81
  }
82
82
  //#endregion
83
83
  //#region src/utils/copyPaste.ts
84
- var Ce = (e, t) => {
84
+ var Se = (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,20 +90,20 @@ var Ce = (e, t) => {
90
90
  return !0;
91
91
  };
92
92
  return n(e, t);
93
- }, we = [["basic", "id"], ["basic", "name"]];
94
- function Te(e) {
95
- return we.find((n) => t(e, n));
93
+ }, Ce = [["basic", "id"], ["basic", "name"]];
94
+ function we(e) {
95
+ return Ce.find((n) => t(e, n));
96
96
  }
97
- function Ee(t, n, r, i, a, o) {
97
+ function Te(t, n, r, i, a, o) {
98
98
  return t = e(t), a === void 0 ? t.push(n.key) : (t.push(a), o && t.push(n.key)), t?.[0] === "runtime" ? {
99
99
  change: !1,
100
100
  warning: !1
101
- } : Te(t) ? (i.change = !1, i.warning = !1, {
101
+ } : we(t) ? (i.change = !1, i.warning = !1, {
102
102
  change: i.change,
103
103
  warning: i.warning
104
- }) : n.ui ? n.array && i.children ? ke(t, n, r, i, a, o) : Ae(n, r, i, a, o) : n.array ? De(t, n, r, i, a, o) : Oe(t, n, r, i, a, o);
104
+ }) : 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);
105
105
  }
106
- function De(e, n, r, i, a, o) {
106
+ function Ee(e, n, r, i, a, o) {
107
107
  if (n.ui) throw Error("execPropertyBranchArray property ui must be invalid");
108
108
  if (!n.array) throw Error("execPropertyBranchArray property array must be valid");
109
109
  let s;
@@ -124,16 +124,16 @@ function De(e, n, r, i, a, o) {
124
124
  warning: !1,
125
125
  children: {}
126
126
  };
127
- let { change: n, warning: o } = Ee(e, a, s[t], r.children[a.key], t, !0);
127
+ let { change: n, warning: o } = Te(e, a, s[t], r.children[a.key], t, !0);
128
128
  !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);
129
129
  }
130
130
  }
131
- return i.change ||= !t(s, re(n)), {
131
+ return i.change ||= !t(s, V(n)), {
132
132
  change: i.change,
133
133
  warning: i.warning
134
134
  };
135
135
  }
136
- function Oe(e, t, n, r, i, a) {
136
+ function De(e, t, n, r, i, a) {
137
137
  if (t.ui) throw Error("execPropertyBranchScalar property ui must be invalid");
138
138
  if (t.array) throw Error("execPropertyBranchScalar property array must be invalid");
139
139
  let o;
@@ -148,7 +148,7 @@ function Oe(e, t, n, r, i, a) {
148
148
  warning: !1,
149
149
  children: {}
150
150
  };
151
- let { change: a, warning: s } = Ee(e, i, o, r.children[i.key], void 0, !1);
151
+ let { change: a, warning: s } = Te(e, i, o, r.children[i.key], void 0, !1);
152
152
  !r.change && a && (r.change = a), !r.warning && s && (r.warning = s);
153
153
  }
154
154
  return {
@@ -156,7 +156,7 @@ function Oe(e, t, n, r, i, a) {
156
156
  warning: r.change
157
157
  };
158
158
  }
159
- function ke(e, n, r, i, a, o) {
159
+ function Oe(e, n, r, i, a, o) {
160
160
  if (!n.ui) throw Error("execPropertyLeafArray property ui must be valid");
161
161
  if (!n.array) throw Error("execPropertyLeafArray property aray must be valid");
162
162
  let s;
@@ -170,15 +170,15 @@ function ke(e, n, r, i, a, o) {
170
170
  warning: !1,
171
171
  children: {}
172
172
  };
173
- let { change: r, warning: a } = Ee(e, n, s, i.children[t], t, !1);
173
+ let { change: r, warning: a } = Te(e, n, s, i.children[t], t, !1);
174
174
  !i.change && r && (i.change = r), !i.warning && a && (i.warning = a);
175
175
  }
176
- return i.change ||= !t(s, re(n)), {
176
+ return i.change ||= !t(s, V(n)), {
177
177
  change: i.change,
178
178
  warning: i.warning
179
179
  };
180
180
  }
181
- function Ae(e, n, r, i, a) {
181
+ function ke(e, n, r, i, a) {
182
182
  if (!e.ui) throw Error("execPropertyLeafScalar property ui must be valid");
183
183
  let o;
184
184
  return o = i !== void 0 && !a ? n[i] : n[e.key], r.change = !t(o, B(e)), {
@@ -186,7 +186,7 @@ function Ae(e, n, r, i, a) {
186
186
  warning: r.warning
187
187
  };
188
188
  }
189
- function je(e, t, n) {
189
+ function Ae(e, t, n) {
190
190
  if (t.length <= 0 || !n) {
191
191
  e.value = {
192
192
  change: !1,
@@ -206,7 +206,7 @@ function je(e, t, n) {
206
206
  warning: !1,
207
207
  children: {}
208
208
  };
209
- r.children[e.key] = t, Ee([], e, n, t, void 0, !1);
209
+ r.children[e.key] = t, Te([], e, n, t, void 0, !1);
210
210
  }
211
211
  e.value = r;
212
212
  }
@@ -220,85 +220,85 @@ function Q(e, t) {
220
220
  }
221
221
  //#endregion
222
222
  //#region src/utils/provideInject.ts
223
- var Me = Symbol(), Ne = Symbol(), Pe = Symbol(), Fe = Symbol(), Ie = Symbol(), Le = Symbol(), Re = Symbol(), ze = Symbol(), Be = Symbol(), Ve = Symbol(), He = Symbol();
224
- function Ue(e) {
223
+ var je = Symbol(), Me = Symbol(), Ne = Symbol(), Pe = Symbol(), Fe = Symbol(), Ie = Symbol(), Le = Symbol(), Re = Symbol(), ze = Symbol(), Be = Symbol(), Ve = Symbol();
224
+ function He(e) {
225
+ w(je, e);
226
+ }
227
+ function Ue() {
228
+ return h(je);
229
+ }
230
+ function We(e) {
225
231
  w(Me, e);
226
232
  }
227
- function We() {
233
+ function Ge() {
228
234
  return h(Me);
229
235
  }
230
- function Ge(e) {
236
+ function Ke(e) {
231
237
  w(Ne, e);
232
238
  }
233
- function Ke() {
239
+ function qe() {
234
240
  return h(Ne);
235
241
  }
236
- function qe(e) {
242
+ function Je(e) {
237
243
  w(Pe, e);
238
244
  }
239
- function Je() {
245
+ function Ye() {
240
246
  return h(Pe);
241
247
  }
242
- function Ye(e) {
248
+ function Xe(e) {
243
249
  w(Fe, e);
244
250
  }
245
- function Xe() {
251
+ function Ze() {
246
252
  return h(Fe);
247
253
  }
248
- function Ze(e) {
254
+ function Qe(e) {
249
255
  w(Ie, e);
250
256
  }
251
- function Qe() {
257
+ function $e() {
252
258
  return h(Ie);
253
259
  }
254
- function $e(e) {
260
+ function et(e) {
255
261
  w(Le, e);
256
262
  }
257
- function et() {
263
+ function tt() {
258
264
  return h(Le);
259
265
  }
260
- function tt(e) {
266
+ function nt(e) {
261
267
  w(Re, e);
262
268
  }
263
- function nt() {
269
+ function $() {
264
270
  return h(Re);
265
271
  }
266
272
  function rt(e) {
267
273
  w(ze, e);
268
274
  }
269
- function $() {
275
+ function it() {
270
276
  return h(ze);
271
277
  }
272
- function it(e) {
278
+ function at(e) {
273
279
  w(Be, e);
274
280
  }
275
- function at() {
281
+ function ot() {
276
282
  return h(Be);
277
283
  }
278
- function ot(e) {
284
+ function st(e) {
279
285
  w(Ve, e);
280
286
  }
281
- function st() {
287
+ function ct() {
282
288
  return h(Ve);
283
289
  }
284
- function ct(e) {
285
- w(He, e);
286
- }
287
- function lt() {
288
- return h(He);
289
- }
290
290
  //#endregion
291
291
  //#region src/components/menu/index.vue
292
- var ut = /* @__PURE__ */ p({
292
+ var lt = /* @__PURE__ */ p({
293
293
  __name: "index",
294
294
  setup(e) {
295
- let { t } = V(), n = Xe(), r = Qe(), i = nt(), c = $(), u = T(0), p = T(0), m = T([]), h = o(() => [u.value, p.value]), _ = (e) => {
295
+ let { t } = H(), n = Ye(), r = Ze(), i = tt(), c = $(), u = T(0), p = T(0), m = T([]), h = o(() => [u.value, p.value]), _ = (e) => {
296
296
  !(m.value.length <= 0 || !Q(i.value, m.value)) && e.push({
297
297
  title: t("x-prop-tree.reset"),
298
298
  func: () => {
299
- let e = K(n.value, m.value);
299
+ let e = q(n.value, m.value);
300
300
  if (e) if (e.ui) {
301
- let t = q(r.value, m.value.slice(0, -1));
301
+ let t = J(r.value, m.value.slice(0, -1));
302
302
  if (!t) return;
303
303
  t[m.value[m.value.length - 1]] = B(e), c(m.value, t[m.value[m.value.length - 1]]);
304
304
  } else if (e.array) {
@@ -308,18 +308,18 @@ var ut = /* @__PURE__ */ p({
308
308
  return;
309
309
  }
310
310
  if (typeof t == "string") {
311
- let t = q(r.value, m.value.slice(0, -1));
311
+ let t = J(r.value, m.value.slice(0, -1));
312
312
  if (!t) return;
313
313
  t[m.value[m.value.length - 1]] = B(e), c(m.value, t[m.value[m.value.length - 1]]);
314
314
  } else {
315
- let t = q(r.value, m.value);
315
+ let t = J(r.value, m.value);
316
316
  if (!t) return;
317
317
  e.children.forEach((n) => {
318
318
  t[n.key] = B(e), c([...m.value, n.key], t[n.key]);
319
319
  });
320
320
  }
321
321
  } else {
322
- let t = q(r.value, m.value);
322
+ let t = J(r.value, m.value);
323
323
  if (!t) return;
324
324
  e.children.forEach((n) => {
325
325
  t[n.key] = B(e), c([...m.value, n.key], t[n.key]);
@@ -331,7 +331,7 @@ var ut = /* @__PURE__ */ p({
331
331
  e.push({
332
332
  title: t("x-prop-tree.copy"),
333
333
  func: () => {
334
- let e = K(n.value, m.value), t = q(r.value, m.value);
334
+ let e = q(n.value, m.value), t = J(r.value, m.value);
335
335
  localStorage.setItem("propTreeCopy", JSON.stringify({
336
336
  property: e,
337
337
  object: t
@@ -345,8 +345,8 @@ var ut = /* @__PURE__ */ p({
345
345
  try {
346
346
  let { property: t } = JSON.parse(e);
347
347
  if (!t) return !1;
348
- let r = K(n.value, m.value);
349
- return r ? Ce(t, r) : !1;
348
+ let r = q(n.value, m.value);
349
+ return r ? Se(t, r) : !1;
350
350
  } catch (e) {
351
351
  console.error(e);
352
352
  }
@@ -358,7 +358,7 @@ var ut = /* @__PURE__ */ p({
358
358
  if (!r()) return;
359
359
  let e = localStorage.getItem("propTreeCopy");
360
360
  if (e) try {
361
- let { object: t } = JSON.parse(e), r = K(n.value, m.value);
361
+ let { object: t } = JSON.parse(e), r = q(n.value, m.value);
362
362
  console.log(t, r);
363
363
  } catch (e) {
364
364
  console.error(e);
@@ -368,7 +368,7 @@ var ut = /* @__PURE__ */ p({
368
368
  }, b = o(() => {
369
369
  let e = [];
370
370
  return _(e), v(e), y(e), e;
371
- }), { open: x } = G("propTreeMenu", (e) => {
371
+ }), { open: x } = K("propTreeMenu", (e) => {
372
372
  u.value = e.x, p.value = e.y, m.value = e.keys;
373
373
  });
374
374
  return (e, t) => {
@@ -398,7 +398,7 @@ var ut = /* @__PURE__ */ p({
398
398
  }, 8, ["modelValue", "target"]);
399
399
  };
400
400
  }
401
- }), dt = { style: { pointerEvents: "none" } }, ft = /* @__PURE__ */ p({
401
+ }), ut = { style: { pointerEvents: "none" } }, dt = /* @__PURE__ */ p({
402
402
  __name: "index",
403
403
  props: {
404
404
  title: {},
@@ -420,7 +420,7 @@ var ut = /* @__PURE__ */ p({
420
420
  "delete"
421
421
  ],
422
422
  setup(e, { emit: t }) {
423
- let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), d = o(() => ({
423
+ let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), d = o(() => ({
424
424
  background: a.value ? r.value : n.value,
425
425
  height: "36px",
426
426
  marginBottom: "1px",
@@ -444,7 +444,7 @@ var ut = /* @__PURE__ */ p({
444
444
  class: "mr-1",
445
445
  icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
446
446
  }, null, 8, ["icon"]),
447
- u("span", dt, A(e.title), 1),
447
+ u("span", ut, A(e.title), 1),
448
448
  f(o),
449
449
  e.hasCreate ? (C(), s(h, {
450
450
  key: 0,
@@ -468,14 +468,14 @@ var ut = /* @__PURE__ */ p({
468
468
  });
469
469
  //#endregion
470
470
  //#region src/composables/adaptSlotList/index.ts
471
- function pt() {
472
- let e = We(), t = Ke(), n = Je(), { i18n: a } = me, o = T([]);
473
- ct(o);
471
+ function ft() {
472
+ let e = Ue(), t = Ge(), n = qe(), { i18n: a } = fe, o = T([]);
473
+ st(o);
474
474
  let s = () => {
475
475
  if (!e.value || !t.value || !n.value) return [];
476
- let s = de[e.value];
476
+ let s = le[e.value];
477
477
  if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
478
- let c = ie(t.value, n.value), l = [];
478
+ let c = re(t.value, n.value), l = [];
479
479
  for (let e = 0; e < s.groups[c].length; e++) {
480
480
  let t = s.groups[c][e], n = r(o, t.key);
481
481
  l.push({
@@ -490,7 +490,7 @@ function pt() {
490
490
  for (let e of t.items) {
491
491
  let n = te(e);
492
492
  if (n && !n.internal && n.slots) for (let e of n.slots) {
493
- let r = ce("elementSlot", n.key, e.key), o = `${a.global.t(n.name)} / ${a.global.t(e.name)}`;
493
+ let r = se("elementSlot", n.key, e.key), o = `${a.global.t(n.name)} / ${a.global.t(e.name)}`;
494
494
  l.push({
495
495
  id: r,
496
496
  type: 1,
@@ -501,7 +501,7 @@ function pt() {
501
501
  }
502
502
  }
503
503
  }
504
- let { activeApp: u, depends: d } = ye.app;
504
+ let { activeApp: u, depends: d } = _e.app;
505
505
  for (let { id: e, name: t, position: n } of u.compGroups) {
506
506
  let i = r(o, e);
507
507
  l.push({
@@ -516,7 +516,7 @@ function pt() {
516
516
  for (let e of u.comps) {
517
517
  let t = d[e.id];
518
518
  if (t && t.meta.slots) for (let n of t.meta.slots) {
519
- let t = ce("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
519
+ let t = se("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
520
520
  l.push({
521
521
  id: t,
522
522
  type: 1,
@@ -550,11 +550,11 @@ function pt() {
550
550
  }
551
551
  //#endregion
552
552
  //#region src/composables/compList/index.ts
553
- function mt() {
553
+ function pt() {
554
554
  let e = T([]);
555
- it(e);
555
+ rt(e);
556
556
  let t = () => {
557
- let { activeApp: t, depends: n } = ye.app, r = [];
557
+ let { activeApp: t, depends: n } = _e.app, r = [];
558
558
  for (let { id: n, name: i, position: a } of t.compGroups) {
559
559
  let t = e.value.find((e) => e.id === n);
560
560
  r.push({
@@ -588,11 +588,11 @@ function mt() {
588
588
  }
589
589
  //#endregion
590
590
  //#region src/composables/slotList/index.ts
591
- function ht() {
591
+ function mt() {
592
592
  let e = T([]);
593
- ot(e);
593
+ at(e);
594
594
  let t = () => {
595
- let { activeObject: e, activeComp: t } = ye.app;
595
+ let { activeObject: e, activeComp: t } = _e.app;
596
596
  if (e.type !== "comp" || !t.meta.slots) return [];
597
597
  let n = [];
598
598
  for (let { id: e, name: r } of t.meta.slots) n.push({
@@ -617,7 +617,7 @@ function ht() {
617
617
  }
618
618
  //#endregion
619
619
  //#region src/components/values/adaptSlot/adaptSlotList/group.vue?vue&type=script&setup=true&lang.ts
620
- var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text-grey ml-1" }, vt = /* @__PURE__ */ p({
620
+ var ht = { class: "text-label-large ml-1" }, gt = { class: "text-body-small text-grey ml-1" }, _t = /* @__PURE__ */ p({
621
621
  __name: "group",
622
622
  props: {
623
623
  id: {},
@@ -627,7 +627,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
627
627
  },
628
628
  emits: ["x-click"],
629
629
  setup(e, { emit: t }) {
630
- let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
630
+ let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, s = T(!1), c = o(() => ({
631
631
  background: s.value ? r.value : n.value,
632
632
  height: "30px",
633
633
  marginTop: "1px",
@@ -646,12 +646,12 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
646
646
  icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
647
647
  size: "small"
648
648
  }, null, 8, ["icon"]),
649
- u("span", gt, A(i.title), 1),
650
- u("span", _t, A(i.count), 1)
649
+ u("span", ht, A(i.title), 1),
650
+ u("span", gt, A(i.count), 1)
651
651
  ], 36)), [[r]]);
652
652
  };
653
653
  }
654
- }), yt = { class: "text-body-large ml-6" }, bt = /* @__PURE__ */ p({
654
+ }), vt = { class: "text-body-large ml-6" }, yt = /* @__PURE__ */ p({
655
655
  __name: "item",
656
656
  props: {
657
657
  id: {},
@@ -659,7 +659,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
659
659
  },
660
660
  emits: ["x-click"],
661
661
  setup(e, { emit: t }) {
662
- let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
662
+ let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), s = o(() => ({
663
663
  background: a.value ? r.value : n.value,
664
664
  height: "48px",
665
665
  marginTop: "1px",
@@ -673,13 +673,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
673
673
  onClick: n[0] ||= (t) => i("x-click", e.id),
674
674
  onMouseout: n[1] ||= (e) => a.value = !1,
675
675
  onMouseover: n[2] ||= (e) => a.value = !0
676
- }, [u("span", yt, A(e.title), 1)], 36)), [[r]]);
676
+ }, [u("span", vt, A(e.title), 1)], 36)), [[r]]);
677
677
  };
678
678
  }
679
- }), xt = { key: 0 }, St = {
679
+ }), bt = { key: 0 }, xt = {
680
680
  key: 1,
681
681
  class: "text-body-medium text-grey ml-3"
682
- }, Ct = /* @__PURE__ */ p({
682
+ }, St = /* @__PURE__ */ p({
683
683
  __name: "index",
684
684
  props: {
685
685
  modelValue: {},
@@ -692,13 +692,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
692
692
  },
693
693
  emits: ["update:modelValue", "update:open"],
694
694
  setup(e) {
695
- let { nameList: t } = W(), i = N(e, "modelValue"), o = N(e, "open"), u = lt(), d = (e) => {
695
+ let { nameList: t } = G(), i = N(e, "modelValue"), o = N(e, "open"), u = ct(), d = (e) => {
696
696
  let t = r(u, e);
697
697
  t && n(u, e, !t.collapse);
698
698
  }, f = (e) => {
699
699
  i.value = e, o.value = !1;
700
700
  };
701
- return (e, n) => j(u).length > 0 ? (C(), l("div", xt, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(vt, {
701
+ return (e, n) => j(u).length > 0 ? (C(), l("div", bt, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(_t, {
702
702
  key: 0,
703
703
  id: e.id,
704
704
  collapse: e.collapse,
@@ -710,18 +710,18 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
710
710
  "collapse",
711
711
  "count",
712
712
  "title"
713
- ])) : c("", !0), e.type === 1 && e.show ? (C(), s(bt, {
713
+ ])) : c("", !0), e.type === 1 && e.show ? (C(), s(yt, {
714
714
  key: 1,
715
715
  id: e.id,
716
716
  title: e.name,
717
717
  onXClick: f
718
- }, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", St, A(j(t)([
718
+ }, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", xt, A(j(t)([
719
719
  "x-prop-tree.no",
720
720
  "x-prop-tree.adapt",
721
721
  "x-prop-tree.slot"
722
722
  ])), 1));
723
723
  }
724
- }), wt = { class: "text-body-large" }, Tt = /* @__PURE__ */ p({
724
+ }), Ct = { class: "text-body-large" }, wt = /* @__PURE__ */ p({
725
725
  __name: "index",
726
726
  props: /* @__PURE__ */ _({
727
727
  hasDelete: {
@@ -738,7 +738,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
738
738
  }),
739
739
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
740
740
  setup(e, { emit: t }) {
741
- let { t: n } = V(), i = be(), { sysBarAvail: a, nameList: l } = W(), { backgroundColor1: p } = U(), m = N(e, "modelValue"), h = t, _ = lt(), b = o(() => {
741
+ let { t: n } = H(), i = ve(), { sysBarAvail: a, nameList: l } = G(), { backgroundColor1: p } = W(), m = N(e, "modelValue"), h = t, _ = ct(), b = o(() => {
742
742
  let e = "100%";
743
743
  return i.mdAndUp.value && (e = "400px"), {
744
744
  background: p.value,
@@ -755,7 +755,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
755
755
  if (!m.value) return n("x-runtime-lib.notSet");
756
756
  let e = r(_, m.value);
757
757
  return e ? e.name : n("x-runtime-lib.slotNotAvail");
758
- }), { open: E } = G(`propTreeAdaptSlotSelectDlg${M()}`);
758
+ }), { open: E } = K(`propTreeAdaptSlotSelectDlg${M()}`);
759
759
  return S(() => {
760
760
  E.value = !1;
761
761
  }), (t, n) => {
@@ -807,7 +807,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
807
807
  icon: "mdi-close",
808
808
  variant: "text",
809
809
  onClick: n[1] ||= (e) => E.value = !1
810
- }), u("span", wt, A(j(l)([
810
+ }), u("span", Ct, A(j(l)([
811
811
  "x-prop-tree.select",
812
812
  "x-prop-tree.adapt",
813
813
  "x-prop-tree.slot"
@@ -817,7 +817,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
817
817
  u("div", {
818
818
  class: "overflow-y-auto",
819
819
  style: y(x.value)
820
- }, [f(Ct, {
820
+ }, [f(St, {
821
821
  modelValue: m.value,
822
822
  "onUpdate:modelValue": n[2] ||= (e) => m.value = e,
823
823
  open: j(E),
@@ -828,7 +828,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
828
828
  }, 8, ["modelValue"]);
829
829
  };
830
830
  }
831
- }), Et = { class: "text-label-large ml-1" }, Dt = { class: "text-body-small text-grey ml-1" }, Ot = /* @__PURE__ */ p({
831
+ }), Tt = { class: "text-label-large ml-1" }, Et = { class: "text-body-small text-grey ml-1" }, Dt = /* @__PURE__ */ p({
832
832
  __name: "group",
833
833
  props: {
834
834
  id: {},
@@ -838,7 +838,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
838
838
  },
839
839
  emits: ["x-click"],
840
840
  setup(e, { emit: t }) {
841
- let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
841
+ let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, s = T(!1), c = o(() => ({
842
842
  background: s.value ? r.value : n.value,
843
843
  height: "30px",
844
844
  marginTop: "1px",
@@ -857,12 +857,12 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
857
857
  icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
858
858
  size: "small"
859
859
  }, null, 8, ["icon"]),
860
- u("span", Et, A(i.title), 1),
861
- u("span", Dt, A(i.count), 1)
860
+ u("span", Tt, A(i.title), 1),
861
+ u("span", Et, A(i.count), 1)
862
862
  ], 36)), [[r]]);
863
863
  };
864
864
  }
865
- }), kt = { class: "text-body-large ml-6" }, At = /* @__PURE__ */ p({
865
+ }), Ot = { class: "text-body-large ml-6" }, kt = /* @__PURE__ */ p({
866
866
  __name: "item",
867
867
  props: {
868
868
  id: {},
@@ -870,7 +870,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
870
870
  },
871
871
  emits: ["x-click"],
872
872
  setup(e, { emit: t }) {
873
- let { backgroundColor2: n, highlightColor: r } = U(), i = e, a = t, s = T(!1), c = o(() => ({
873
+ let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, s = T(!1), c = o(() => ({
874
874
  background: s.value ? r.value : n.value,
875
875
  height: "48px",
876
876
  marginTop: "1px",
@@ -884,13 +884,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
884
884
  onClick: t[0] ||= (e) => a("x-click", i.id),
885
885
  onMouseout: t[1] ||= (e) => s.value = !1,
886
886
  onMouseover: t[2] ||= (e) => s.value = !0
887
- }, [u("span", kt, A(i.title), 1)], 36)), [[n]]);
887
+ }, [u("span", Ot, A(i.title), 1)], 36)), [[n]]);
888
888
  };
889
889
  }
890
- }), jt = { key: 0 }, Mt = {
890
+ }), At = { key: 0 }, jt = {
891
891
  key: 1,
892
892
  class: "text-body-medium text-grey ml-3"
893
- }, Nt = /* @__PURE__ */ p({
893
+ }, Mt = /* @__PURE__ */ p({
894
894
  __name: "index",
895
895
  props: {
896
896
  modelValue: {},
@@ -903,13 +903,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
903
903
  },
904
904
  emits: ["update:modelValue", "update:open"],
905
905
  setup(e) {
906
- let { nameList: t } = W(), i = N(e, "modelValue"), o = N(e, "open"), u = at(), d = (e) => {
906
+ let { nameList: t } = G(), i = N(e, "modelValue"), o = N(e, "open"), u = it(), d = (e) => {
907
907
  let t = r(u, e);
908
908
  t && n(u, e, !t.collapse);
909
909
  }, f = (e) => {
910
- i.value = e, o.value = !1, H.emit("refreshDepends");
910
+ i.value = e, o.value = !1, U.emit("refreshDepends");
911
911
  };
912
- return (e, n) => j(u).length > 0 ? (C(), l("div", jt, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(Ot, {
912
+ return (e, n) => j(u).length > 0 ? (C(), l("div", At, [(C(!0), l(a, null, E(j(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(Dt, {
913
913
  key: 0,
914
914
  id: e.id,
915
915
  collapse: e.collapse,
@@ -921,14 +921,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
921
921
  "collapse",
922
922
  "count",
923
923
  "title"
924
- ])) : c("", !0), e.type === 1 && e.show ? (C(), s(At, {
924
+ ])) : c("", !0), e.type === 1 && e.show ? (C(), s(kt, {
925
925
  key: 1,
926
926
  id: e.id,
927
927
  title: e.name,
928
928
  onXClick: f
929
- }, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", Mt, A(j(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
929
+ }, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", jt, A(j(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
930
930
  }
931
- }), Pt = { class: "text-body-large" }, Ft = /* @__PURE__ */ p({
931
+ }), Nt = { class: "text-body-large" }, Pt = /* @__PURE__ */ p({
932
932
  __name: "index",
933
933
  props: /* @__PURE__ */ _({
934
934
  hasDelete: {
@@ -945,7 +945,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
945
945
  }),
946
946
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
947
947
  setup(e, { emit: t }) {
948
- let { t: n } = V(), i = be(), { sysBarAvail: a, nameList: l } = W(), { backgroundColor1: p } = U(), m = N(e, "modelValue"), h = t, _ = at(), b = o(() => {
948
+ let { t: n } = H(), i = ve(), { sysBarAvail: a, nameList: l } = G(), { backgroundColor1: p } = W(), m = N(e, "modelValue"), h = t, _ = it(), b = o(() => {
949
949
  let e = "100%";
950
950
  return i.mdAndUp.value && (e = "400px"), {
951
951
  background: p.value,
@@ -962,7 +962,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
962
962
  if (!m.value) return n("x-runtime-lib.notSet");
963
963
  let e = r(_, m.value);
964
964
  return e ? e.name : n("x-runtime-lib.compNotAvail");
965
- }), { open: E } = G(`propTreeCompSelectDlg${M()}`);
965
+ }), { open: E } = K(`propTreeCompSelectDlg${M()}`);
966
966
  return S(() => {
967
967
  E.value = !1;
968
968
  }), (t, n) => {
@@ -1014,13 +1014,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1014
1014
  icon: "mdi-close",
1015
1015
  variant: "text",
1016
1016
  onClick: n[1] ||= (e) => E.value = !1
1017
- }), u("span", Pt, A(j(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
1017
+ }), u("span", Nt, A(j(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
1018
1018
  _: 1
1019
1019
  }),
1020
1020
  u("div", {
1021
1021
  class: "overflow-y-auto",
1022
1022
  style: y(x.value)
1023
- }, [f(Nt, {
1023
+ }, [f(Mt, {
1024
1024
  modelValue: m.value,
1025
1025
  "onUpdate:modelValue": n[2] ||= (e) => m.value = e,
1026
1026
  open: j(E),
@@ -1031,7 +1031,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1031
1031
  }, 8, ["modelValue"]);
1032
1032
  };
1033
1033
  }
1034
- }), It = { class: "d-flex justify-space-between align-center" }, Lt = /* @__PURE__ */ p({
1034
+ }), Ft = { class: "d-flex justify-space-between align-center" }, It = /* @__PURE__ */ p({
1035
1035
  __name: "index",
1036
1036
  props: /* @__PURE__ */ _({
1037
1037
  hasDelete: {
@@ -1048,9 +1048,9 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1048
1048
  }),
1049
1049
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1050
1050
  setup(e, { emit: t }) {
1051
- let { isMobile: n } = W(), r = N(e, "modelValue"), i = t, a = async (t) => {
1051
+ let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
1052
1052
  if (!t || e.readonly || !n()) return;
1053
- let i = await ve({
1053
+ let i = await ge({
1054
1054
  title: "",
1055
1055
  value: r.value
1056
1056
  });
@@ -1058,7 +1058,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1058
1058
  };
1059
1059
  return (t, n) => {
1060
1060
  let o = O("v-text-field"), u = O("v-btn"), d = k("ripple");
1061
- return C(), l("div", It, [L(f(o, {
1061
+ return C(), l("div", Ft, [L(f(o, {
1062
1062
  modelValue: r.value,
1063
1063
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1064
1064
  density: "compact",
@@ -1081,7 +1081,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1081
1081
  })) : c("", !0)]);
1082
1082
  };
1083
1083
  }
1084
- }), Rt = /* @__PURE__ */ p({
1084
+ }), Lt = /* @__PURE__ */ p({
1085
1085
  __name: "editor",
1086
1086
  props: {
1087
1087
  modelValue: { required: !0 },
@@ -1100,14 +1100,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1100
1100
  "update:scale"
1101
1101
  ],
1102
1102
  setup(e, { expose: t }) {
1103
- let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a = he(), o = ge(), c = We(), l = ee("target"), u = () => {
1103
+ let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a = pe(), o = me(), c = Ue(), l = ee("target"), u = () => {
1104
1104
  let e = JSON.parse(n.value);
1105
1105
  l.value?.load(e);
1106
1106
  };
1107
1107
  return t({ save: () => {
1108
1108
  let e = l.value.save();
1109
1109
  n.value = JSON.stringify(e, null, 2);
1110
- } }), (e, t) => (C(), s(j(xe), {
1110
+ } }), (e, t) => (C(), s(j(ye), {
1111
1111
  ref_key: "target",
1112
1112
  ref: l,
1113
1113
  lock: r.value,
@@ -1127,7 +1127,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1127
1127
  "version"
1128
1128
  ]));
1129
1129
  }
1130
- }), zt = { class: "text-body-large" }, Bt = /* @__PURE__ */ p({
1130
+ }), Rt = { class: "text-body-large" }, zt = /* @__PURE__ */ p({
1131
1131
  __name: "index",
1132
1132
  props: /* @__PURE__ */ _({
1133
1133
  hasDelete: {
@@ -1144,14 +1144,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1144
1144
  }),
1145
1145
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1146
1146
  setup(e, { emit: t }) {
1147
- let { t: n } = V(), { sysBarAvail: r } = W(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: l } = U(), p = N(e, "modelValue"), m = t, h = T(!1), _ = T(1), b = o(() => {
1147
+ let { t: n } = H(), { sysBarAvail: r } = G(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: l } = W(), p = N(e, "modelValue"), m = t, h = T(!1), _ = T(1), b = o(() => {
1148
1148
  let e = 48;
1149
1149
  return r.value && (e += 24), {
1150
1150
  position: "relative",
1151
1151
  background: a.value,
1152
1152
  height: `calc(100% - ${e}px)`
1153
1153
  };
1154
- }), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } = G(`propTreejsonEditorDlg${M()}`);
1154
+ }), x = o(() => n("x-prop-tree.jsonEditor")), { open: w } = K(`propTreejsonEditorDlg${M()}`);
1155
1155
  S(() => {
1156
1156
  w.value = !1;
1157
1157
  });
@@ -1208,12 +1208,12 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1208
1208
  variant: "text",
1209
1209
  onClick: n[1] ||= (e) => w.value = !1
1210
1210
  }),
1211
- u("span", zt, A(x.value), 1),
1211
+ u("span", Rt, A(x.value), 1),
1212
1212
  f(S)
1213
1213
  ]),
1214
1214
  _: 1
1215
1215
  }, 8, ["color"]),
1216
- u("div", { style: y(b.value) }, [f(Rt, {
1216
+ u("div", { style: y(b.value) }, [f(Lt, {
1217
1217
  ref_key: "editor",
1218
1218
  ref: E,
1219
1219
  modelValue: p.value,
@@ -1234,7 +1234,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1234
1234
  }, 8, ["modelValue"]);
1235
1235
  };
1236
1236
  }
1237
- }), Vt = { class: "d-flex justify-space-between align-center" }, Ht = /* @__PURE__ */ p({
1237
+ }), Bt = { class: "d-flex justify-space-between align-center" }, Vt = /* @__PURE__ */ p({
1238
1238
  __name: "color",
1239
1239
  props: /* @__PURE__ */ _({
1240
1240
  hasDelete: {
@@ -1251,10 +1251,10 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1251
1251
  }),
1252
1252
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1253
1253
  setup(e, { emit: t }) {
1254
- let { t: n } = V(), r = N(e, "modelValue"), i = t, a = o(() => {
1254
+ let { t: n } = H(), r = N(e, "modelValue"), i = t, a = o(() => {
1255
1255
  let t = "100%";
1256
1256
  return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
1257
- }), l = o(() => e.readonly), { open: p } = G(`propTreeColorPickerMenu${M()}`);
1257
+ }), l = o(() => e.readonly), { open: p } = K(`propTreeColorPickerMenu${M()}`);
1258
1258
  return S(() => {
1259
1259
  p.value = !1;
1260
1260
  }), (t, o) => {
@@ -1265,7 +1265,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1265
1265
  "close-on-content-click": !1,
1266
1266
  scrim: "transparent"
1267
1267
  }, {
1268
- activator: I(({ props: t }) => [u("div", Vt, [u("div", {
1268
+ activator: I(({ props: t }) => [u("div", Bt, [u("div", {
1269
1269
  class: "flex-grow-1",
1270
1270
  style: y(a.value)
1271
1271
  }, [f(m, v(t, {
@@ -1295,7 +1295,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1295
1295
  }, 8, ["modelValue"]);
1296
1296
  };
1297
1297
  }
1298
- }), Ut = { class: "d-flex justify-space-between align-center my-2" }, Wt = { class: "flex-grow-1" }, Gt = /* @__PURE__ */ p({
1298
+ }), Ht = { class: "d-flex justify-space-between align-center my-2" }, Ut = { class: "flex-grow-1" }, Wt = /* @__PURE__ */ p({
1299
1299
  __name: "index",
1300
1300
  props: /* @__PURE__ */ _({
1301
1301
  hasDelete: {
@@ -1313,7 +1313,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1313
1313
  }),
1314
1314
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1315
1315
  setup(e, { emit: t }) {
1316
- let { t: n } = V(), { isMobile: r } = W(), i = N(e, "modelValue"), a = t, d = o(() => ae(e.types)), p = T(""), m = o(() => {
1316
+ let { t: n } = H(), { isMobile: r } = G(), i = N(e, "modelValue"), a = t, d = o(() => ie(e.types)), p = T(""), m = o(() => {
1317
1317
  let e = [];
1318
1318
  for (let { value: t, title: r } of d.value) e.push({
1319
1319
  value: t,
@@ -1326,48 +1326,53 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1326
1326
  p.value = e;
1327
1327
  return;
1328
1328
  }
1329
- p.value = "";
1329
+ _();
1330
1330
  });
1331
- let h = o(() => d.value.find((e) => e.value === p.value)), g = () => {
1331
+ let h = o(() => d.value.find((e) => e.value === p.value));
1332
+ function g() {
1332
1333
  i.value = h.value?.default;
1333
- }, _ = T(0), v = async (e) => {
1334
- if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "pixel" && h.value.trait !== "percent") return;
1335
- let t = await _e({
1334
+ }
1335
+ function _() {
1336
+ p.value = d.value[0].value, g();
1337
+ }
1338
+ let v = T(0), y = async (e) => {
1339
+ if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "numberUnit") return;
1340
+ let t = await he({
1336
1341
  title: "",
1337
- value: _.value,
1342
+ value: v.value,
1338
1343
  precision: h.value.precision,
1339
1344
  min: h.value.min,
1340
1345
  max: h.value.max,
1341
1346
  step: h.value.step
1342
1347
  });
1343
- t !== void 0 && (_.value = t);
1348
+ t !== void 0 && (v.value = t);
1344
1349
  };
1345
1350
  F(() => {
1346
- h.value?.trait === "number" ? _.value = i.value : h.value?.trait === "pixel" ? _.value = ue(i.value) : h.value?.trait === "percent" && (_.value = le(i.value));
1347
- }), P(_, (e) => {
1348
- h.value?.trait === "number" ? i.value = e : h.value?.trait === "pixel" ? i.value = e + "px" : h.value?.trait === "percent" && (i.value = e + "%");
1351
+ h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value = ce(i.value, h.value.unit));
1352
+ }), P(v, (e) => {
1353
+ h.value?.trait === "number" ? i.value = e : h.value?.trait === "numberUnit" && (i.value = e + h.value.unit);
1349
1354
  });
1350
- let y = T("#ff00ff");
1355
+ let b = T("#ff00ff");
1351
1356
  F(() => {
1352
- h.value?.trait === "hexColor" && oe(i.value) && (y.value = i.value);
1353
- }), P(y, (e) => {
1357
+ h.value?.trait === "hexColor" && ae(i.value) && (b.value = i.value);
1358
+ }), P(b, (e) => {
1354
1359
  h.value?.trait === "hexColor" && (i.value = e);
1355
1360
  });
1356
- let b = T("primary"), x = o(() => {
1361
+ let x = T("primary"), S = o(() => {
1357
1362
  let e = [];
1358
- if (h.value?.trait === "themeColor") for (let { value: t, title: r } of pe) e.push({
1363
+ if (h.value?.trait === "themeColor") for (let { value: t, title: r } of de) e.push({
1359
1364
  value: t,
1360
1365
  title: n(r)
1361
1366
  });
1362
1367
  return e;
1363
1368
  });
1364
1369
  return F(() => {
1365
- h.value?.trait === "themeColor" && se(i.value) && (b.value = i.value);
1366
- }), P(b, (e) => {
1370
+ h.value?.trait === "themeColor" && oe(i.value) && (x.value = i.value);
1371
+ }), P(x, (e) => {
1367
1372
  h.value?.trait === "themeColor" && (i.value = e);
1368
1373
  }), (t, n) => {
1369
1374
  let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), d = k("ripple");
1370
- return C(), l("div", Ut, [u("div", Wt, [
1375
+ return C(), l("div", Ht, [u("div", Ut, [
1371
1376
  L(f(r, {
1372
1377
  modelValue: p.value,
1373
1378
  "onUpdate:modelValue": [n[0] ||= (e) => p.value = e, g],
@@ -1386,10 +1391,10 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1386
1391
  void 0,
1387
1392
  { stop: !0 }
1388
1393
  ]]),
1389
- h.value?.trait === "number" || h.value?.trait === "pixel" || h.value?.trait === "percent" ? L((C(), s(i, {
1394
+ h.value?.trait === "number" || h.value?.trait === "numberUnit" ? L((C(), s(i, {
1390
1395
  key: 0,
1391
- modelValue: _.value,
1392
- "onUpdate:modelValue": n[1] ||= (e) => _.value = e,
1396
+ modelValue: v.value,
1397
+ "onUpdate:modelValue": n[1] ||= (e) => v.value = e,
1393
1398
  "control-variant": "stacked",
1394
1399
  density: "compact",
1395
1400
  "hide-details": "",
@@ -1399,7 +1404,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1399
1404
  readonly: e.readonly,
1400
1405
  "single-line": "",
1401
1406
  step: h.value.step,
1402
- "onUpdate:focused": v
1407
+ "onUpdate:focused": y
1403
1408
  }, null, 8, [
1404
1409
  "modelValue",
1405
1410
  "max",
@@ -1413,18 +1418,18 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1413
1418
  void 0,
1414
1419
  { stop: !0 }
1415
1420
  ]]) : c("", !0),
1416
- h.value?.trait === "hexColor" ? (C(), s(Ht, {
1421
+ h.value?.trait === "hexColor" ? (C(), s(Vt, {
1417
1422
  key: 1,
1418
- modelValue: y.value,
1419
- "onUpdate:modelValue": n[2] ||= (e) => y.value = e
1423
+ modelValue: b.value,
1424
+ "onUpdate:modelValue": n[2] ||= (e) => b.value = e
1420
1425
  }, null, 8, ["modelValue"])) : c("", !0),
1421
1426
  h.value?.trait === "themeColor" ? L((C(), s(r, {
1422
1427
  key: 2,
1423
- modelValue: b.value,
1424
- "onUpdate:modelValue": n[3] ||= (e) => b.value = e,
1428
+ modelValue: x.value,
1429
+ "onUpdate:modelValue": n[3] ||= (e) => x.value = e,
1425
1430
  density: "compact",
1426
1431
  "hide-details": "",
1427
- items: x.value,
1432
+ items: S.value,
1428
1433
  "single-line": ""
1429
1434
  }, null, 8, ["modelValue", "items"])), [[
1430
1435
  d,
@@ -1442,7 +1447,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1442
1447
  })) : c("", !0)]);
1443
1448
  };
1444
1449
  }
1445
- }), Kt = { class: "d-flex justify-space-between align-center" }, qt = /* @__PURE__ */ p({
1450
+ }), Gt = { class: "d-flex justify-space-between align-center" }, Kt = /* @__PURE__ */ p({
1446
1451
  __name: "index",
1447
1452
  props: /* @__PURE__ */ _({
1448
1453
  hasDelete: {
@@ -1463,9 +1468,9 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1463
1468
  }),
1464
1469
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1465
1470
  setup(e, { emit: t }) {
1466
- let { isMobile: n } = W(), r = N(e, "modelValue"), i = t, a = async (t) => {
1471
+ let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
1467
1472
  if (!t || e.readonly || !n()) return;
1468
- let i = await _e({
1473
+ let i = await he({
1469
1474
  title: "",
1470
1475
  value: r.value,
1471
1476
  precision: e.precision,
@@ -1477,7 +1482,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1477
1482
  };
1478
1483
  return (t, n) => {
1479
1484
  let o = O("v-number-input"), u = O("v-btn"), d = k("ripple");
1480
- return C(), l("div", Kt, [L(f(o, {
1485
+ return C(), l("div", Gt, [L(f(o, {
1481
1486
  modelValue: r.value,
1482
1487
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1483
1488
  "control-variant": "stacked",
@@ -1512,7 +1517,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1512
1517
  })) : c("", !0)]);
1513
1518
  };
1514
1519
  }
1515
- }), Jt = { class: "d-flex justify-space-between align-center my-2" }, Yt = { class: "flex-grow-1" }, Xt = /* @__PURE__ */ p({
1520
+ }), qt = { class: "d-flex justify-space-between align-center my-2" }, Jt = { class: "flex-grow-1" }, Yt = /* @__PURE__ */ p({
1516
1521
  __name: "index",
1517
1522
  props: /* @__PURE__ */ _({
1518
1523
  hasDelete: {
@@ -1529,7 +1534,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1529
1534
  }),
1530
1535
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1531
1536
  setup(e, { emit: t }) {
1532
- let { t: n } = V(), { isMobile: r } = W(), i = N(e, "modelValue"), a = t, d = T(""), p = T(0);
1537
+ let { t: n } = H(), { isMobile: r } = G(), i = N(e, "modelValue"), a = t, d = T(""), p = T(0);
1533
1538
  F(() => {
1534
1539
  let e = i.value.split(",");
1535
1540
  e.length < 1 || (d.value = e[0], (e[0] === "minLength" || e[1] === "maxLength" || e[2] === "length") && (e.length > 1 ? p.value = parseInt(e[1]) : p.value = 0));
@@ -1542,7 +1547,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1542
1547
  value: "",
1543
1548
  title: n("x-runtime-lib.notSet")
1544
1549
  }];
1545
- for (let t of fe) e.push({
1550
+ for (let t of ue) e.push({
1546
1551
  value: t,
1547
1552
  title: n(`x-runtime-lib.${t}`)
1548
1553
  });
@@ -1557,7 +1562,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1557
1562
  });
1558
1563
  async function _(e) {
1559
1564
  if (!e || !r()) return;
1560
- let t = await _e({
1565
+ let t = await he({
1561
1566
  title: "",
1562
1567
  value: p.value,
1563
1568
  precision: 0,
@@ -1572,7 +1577,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1572
1577
  }
1573
1578
  return (t, n) => {
1574
1579
  let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), m = k("ripple");
1575
- return C(), l("div", Jt, [u("div", Yt, [L(f(r, {
1580
+ return C(), l("div", qt, [u("div", Jt, [L(f(r, {
1576
1581
  modelValue: d.value,
1577
1582
  "onUpdate:modelValue": [n[0] ||= (e) => d.value = e, g],
1578
1583
  density: "compact",
@@ -1618,7 +1623,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1618
1623
  })) : c("", !0)]);
1619
1624
  };
1620
1625
  }
1621
- }), Zt = { class: "d-flex justify-space-between align-center" }, Qt = /* @__PURE__ */ p({
1626
+ }), Xt = { class: "d-flex justify-space-between align-center" }, Zt = /* @__PURE__ */ p({
1622
1627
  __name: "index",
1623
1628
  props: /* @__PURE__ */ _({
1624
1629
  hasDelete: {
@@ -1636,7 +1641,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1636
1641
  }),
1637
1642
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1638
1643
  setup(e, { emit: t }) {
1639
- let { t: n } = V(), r = N(e, "modelValue"), i = t, a = o(() => {
1644
+ let { t: n } = H(), r = N(e, "modelValue"), i = t, a = o(() => {
1640
1645
  let t = [];
1641
1646
  return ne(e.items)?.forEach(({ value: e, title: r }) => {
1642
1647
  let i = e;
@@ -1648,7 +1653,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1648
1653
  });
1649
1654
  return (t, n) => {
1650
1655
  let o = O("v-select"), u = O("v-btn"), d = k("ripple");
1651
- return C(), l("div", Zt, [L(f(o, {
1656
+ return C(), l("div", Xt, [L(f(o, {
1652
1657
  modelValue: r.value,
1653
1658
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1654
1659
  density: "compact",
@@ -1675,7 +1680,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1675
1680
  })) : c("", !0)]);
1676
1681
  };
1677
1682
  }
1678
- }), $t = { class: "text-body-large ml-6" }, en = /* @__PURE__ */ p({
1683
+ }), Qt = { class: "text-body-large ml-6" }, $t = /* @__PURE__ */ p({
1679
1684
  __name: "item",
1680
1685
  props: {
1681
1686
  id: {},
@@ -1683,7 +1688,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1683
1688
  },
1684
1689
  emits: ["x-click"],
1685
1690
  setup(e, { emit: t }) {
1686
- let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
1691
+ let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), s = o(() => ({
1687
1692
  background: a.value ? r.value : n.value,
1688
1693
  height: "48px",
1689
1694
  marginTop: "1px",
@@ -1697,13 +1702,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1697
1702
  onClick: n[0] ||= (t) => i("x-click", e.id),
1698
1703
  onMouseout: n[1] ||= (e) => a.value = !1,
1699
1704
  onMouseover: n[2] ||= (e) => a.value = !0
1700
- }, [u("span", $t, A(e.title), 1)], 36)), [[r]]);
1705
+ }, [u("span", Qt, A(e.title), 1)], 36)), [[r]]);
1701
1706
  };
1702
1707
  }
1703
- }), tn = { key: 0 }, nn = {
1708
+ }), en = { key: 0 }, tn = {
1704
1709
  key: 1,
1705
1710
  class: "text-body-medium text-grey ml-3"
1706
- }, rn = /* @__PURE__ */ p({
1711
+ }, nn = /* @__PURE__ */ p({
1707
1712
  __name: "index",
1708
1713
  props: {
1709
1714
  modelValue: {},
@@ -1716,17 +1721,17 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1716
1721
  },
1717
1722
  emits: ["update:modelValue", "update:open"],
1718
1723
  setup(e) {
1719
- let { nameList: t } = W(), n = N(e, "modelValue"), r = N(e, "open"), i = st(), o = (e) => {
1724
+ let { nameList: t } = G(), n = N(e, "modelValue"), r = N(e, "open"), i = ot(), o = (e) => {
1720
1725
  n.value = e, r.value = !1;
1721
1726
  };
1722
- return (e, n) => j(i).length > 0 ? (C(), l("div", tn, [(C(!0), l(a, null, E(j(i), (e) => (C(), s(en, {
1727
+ return (e, n) => j(i).length > 0 ? (C(), l("div", en, [(C(!0), l(a, null, E(j(i), (e) => (C(), s($t, {
1723
1728
  key: e.id,
1724
1729
  id: e.id,
1725
1730
  title: e.name,
1726
1731
  onXClick: o
1727
- }, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", nn, A(j(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
1732
+ }, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", tn, A(j(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
1728
1733
  }
1729
- }), an = { class: "text-body-large" }, on = /* @__PURE__ */ p({
1734
+ }), rn = { class: "text-body-large" }, an = /* @__PURE__ */ p({
1730
1735
  __name: "index",
1731
1736
  props: /* @__PURE__ */ _({
1732
1737
  hasDelete: {
@@ -1743,7 +1748,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1743
1748
  }),
1744
1749
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1745
1750
  setup(e, { emit: t }) {
1746
- let { t: n } = V(), r = be(), { sysBarAvail: i, nameList: a } = W(), { backgroundColor1: l } = U(), p = N(e, "modelValue"), m = t, h = st(), _ = o(() => {
1751
+ let { t: n } = H(), r = ve(), { sysBarAvail: i, nameList: a } = G(), { backgroundColor1: l } = W(), p = N(e, "modelValue"), m = t, h = ot(), _ = o(() => {
1747
1752
  let e = "100%";
1748
1753
  return r.mdAndUp.value && (e = "400px"), {
1749
1754
  background: l.value,
@@ -1760,7 +1765,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1760
1765
  if (!p.value) return n("x-runtime-lib.notSet");
1761
1766
  let e = h.value.find((e) => e.id === p.value);
1762
1767
  return e ? e.name : n("x-runtime-lib.slotNotAvail");
1763
- }), { open: T } = G(`propTreeSlotSelectDlg${M()}`);
1768
+ }), { open: T } = K(`propTreeSlotSelectDlg${M()}`);
1764
1769
  return S(() => {
1765
1770
  T.value = !1;
1766
1771
  }), (t, n) => {
@@ -1812,13 +1817,13 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1812
1817
  icon: "mdi-close",
1813
1818
  variant: "text",
1814
1819
  onClick: n[1] ||= (e) => T.value = !1
1815
- }), u("span", an, A(j(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
1820
+ }), u("span", rn, A(j(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
1816
1821
  _: 1
1817
1822
  }),
1818
1823
  u("div", {
1819
1824
  class: "overflow-y-auto",
1820
1825
  style: y(b.value)
1821
- }, [f(rn, {
1826
+ }, [f(nn, {
1822
1827
  modelValue: p.value,
1823
1828
  "onUpdate:modelValue": n[2] ||= (e) => p.value = e,
1824
1829
  open: j(T),
@@ -1829,7 +1834,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1829
1834
  }, 8, ["modelValue"]);
1830
1835
  };
1831
1836
  }
1832
- }), sn = { class: "d-flex justify-space-between align-center" }, cn = /* @__PURE__ */ p({
1837
+ }), on = { class: "d-flex justify-space-between align-center" }, sn = /* @__PURE__ */ p({
1833
1838
  __name: "index",
1834
1839
  props: /* @__PURE__ */ _({
1835
1840
  hasDelete: {
@@ -1849,7 +1854,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1849
1854
  let n = N(e, "modelValue"), r = t;
1850
1855
  return (t, i) => {
1851
1856
  let a = O("v-switch"), o = O("v-btn");
1852
- return C(), l("div", sn, [f(a, {
1857
+ return C(), l("div", on, [f(a, {
1853
1858
  modelValue: n.value,
1854
1859
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
1855
1860
  class: "ml-1",
@@ -1867,7 +1872,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1867
1872
  })) : c("", !0)]);
1868
1873
  };
1869
1874
  }
1870
- }), ln = { class: "d-flex justify-space-between align-center" }, un = /* @__PURE__ */ p({
1875
+ }), cn = { class: "d-flex justify-space-between align-center" }, ln = /* @__PURE__ */ p({
1871
1876
  __name: "index",
1872
1877
  props: /* @__PURE__ */ _({
1873
1878
  hasDelete: {
@@ -1884,9 +1889,9 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1884
1889
  }),
1885
1890
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1886
1891
  setup(e, { emit: t }) {
1887
- let { isMobile: n } = W(), r = N(e, "modelValue"), i = t, a = async (t) => {
1892
+ let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
1888
1893
  if (!t || e.readonly || !n()) return;
1889
- let i = await ve({
1894
+ let i = await ge({
1890
1895
  title: "",
1891
1896
  value: r.value
1892
1897
  });
@@ -1894,7 +1899,7 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1894
1899
  };
1895
1900
  return (t, n) => {
1896
1901
  let o = O("v-text-field"), u = O("v-btn"), d = k("ripple");
1897
- return C(), l("div", ln, [L(f(o, {
1902
+ return C(), l("div", cn, [L(f(o, {
1898
1903
  modelValue: r.value,
1899
1904
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1900
1905
  density: "compact",
@@ -1920,14 +1925,14 @@ var gt = { class: "text-label-large ml-1" }, _t = { class: "text-body-small text
1920
1925
  });
1921
1926
  //#endregion
1922
1927
  //#region src/composables/uis/uiAdaptSlot.ts
1923
- function dn() {
1928
+ function un() {
1924
1929
  let e = $();
1925
1930
  return { renderUiAdaptSlot: (t, n, r, i, a) => {
1926
1931
  if (n.ui !== "adaptSlot") throw Error("useUiAdaptSlot property ui must be adaptSlot");
1927
- return m(Tt, {
1928
- modelValue: J(t, n, r, i, a, e),
1932
+ return m(wt, {
1933
+ modelValue: Y(t, n, r, i, a, e),
1929
1934
  "onUpdate:modelValue": (o) => {
1930
- Y(t, n, r, o, i, a, e);
1935
+ X(t, n, r, o, i, a, e);
1931
1936
  },
1932
1937
  hasDelete: i !== void 0 && !a,
1933
1938
  onDelete: () => {
@@ -1939,14 +1944,14 @@ function dn() {
1939
1944
  }
1940
1945
  //#endregion
1941
1946
  //#region src/composables/uis/uiComp.ts
1942
- function fn() {
1947
+ function dn() {
1943
1948
  let e = $();
1944
1949
  return { renderUiComp: (t, n, r, i, a) => {
1945
1950
  if (n.ui !== "comp") throw Error("renderUiComp property ui must be comp");
1946
- return m(Ft, {
1947
- modelValue: J(t, n, r, i, a, e),
1951
+ return m(Pt, {
1952
+ modelValue: Y(t, n, r, i, a, e),
1948
1953
  "onUpdate:modelValue": (o) => {
1949
- Y(t, n, r, o, i, a, e);
1954
+ X(t, n, r, o, i, a, e);
1950
1955
  },
1951
1956
  hasDelete: i !== void 0 && !a,
1952
1957
  onDelete: () => {
@@ -1958,23 +1963,23 @@ function fn() {
1958
1963
  }
1959
1964
  //#endregion
1960
1965
  //#region src/composables/uis/uiDummy.ts
1961
- function pn() {
1966
+ function fn() {
1962
1967
  let e = $();
1963
1968
  return { renderUiDummy: (t, n, r, i, a) => {
1964
1969
  if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
1965
- J(t, n, r, i, a, e);
1970
+ Y(t, n, r, i, a, e);
1966
1971
  } };
1967
1972
  }
1968
1973
  //#endregion
1969
1974
  //#region src/composables/uis/uiIcon.ts
1970
- function mn() {
1975
+ function pn() {
1971
1976
  let e = $();
1972
1977
  return { renderUiIcon: (t, n, r, i, a) => {
1973
1978
  if (n.ui !== "icon") throw Error("renderUiIcon property ui must be icon");
1974
- return m(Lt, {
1975
- modelValue: n.static ? n.value : J(t, n, r, i, a, e),
1979
+ return m(It, {
1980
+ modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
1976
1981
  "onUpdate:modelValue": (o) => {
1977
- n.static || Y(t, n, r, o, i, a, e);
1982
+ n.static || X(t, n, r, o, i, a, e);
1978
1983
  },
1979
1984
  hasDelete: i !== void 0 && !a,
1980
1985
  onDelete: () => {
@@ -1986,14 +1991,14 @@ function mn() {
1986
1991
  }
1987
1992
  //#endregion
1988
1993
  //#region src/composables/uis/uiJson.ts
1989
- function hn() {
1994
+ function mn() {
1990
1995
  let e = $();
1991
1996
  return { renderUiJson: (t, n, r, i, a) => {
1992
1997
  if (n.ui !== "json") throw Error("renderUiJson property ui must be json");
1993
- return m(Bt, {
1994
- modelValue: J(t, n, r, i, a, e) ?? "{}",
1998
+ return m(zt, {
1999
+ modelValue: Y(t, n, r, i, a, e) ?? "{}",
1995
2000
  "onUpdate:modelValue": (o) => {
1996
- Y(t, n, r, o, i, a, e);
2001
+ X(t, n, r, o, i, a, e);
1997
2002
  },
1998
2003
  hasDelete: i !== void 0 && !a,
1999
2004
  onDelete: () => {
@@ -2005,14 +2010,14 @@ function hn() {
2005
2010
  }
2006
2011
  //#endregion
2007
2012
  //#region src/composables/uis/uiMultiTypes.ts
2008
- function gn() {
2013
+ function hn() {
2009
2014
  let e = $();
2010
2015
  return { renderUiMultiTypes: (t, n, r, i, a) => {
2011
2016
  if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
2012
- return m(Gt, {
2013
- modelValue: J(t, n, r, i, a, e),
2017
+ return m(Wt, {
2018
+ modelValue: Y(t, n, r, i, a, e),
2014
2019
  "onUpdate:modelValue": (o) => {
2015
- Y(t, n, r, o, i, a, e);
2020
+ X(t, n, r, o, i, a, e);
2016
2021
  },
2017
2022
  hasDelete: i !== void 0 && !a,
2018
2023
  onDelete: () => {
@@ -2024,14 +2029,14 @@ function gn() {
2024
2029
  }
2025
2030
  //#endregion
2026
2031
  //#region src/composables/uis/uiNumber.ts
2027
- function _n() {
2032
+ function gn() {
2028
2033
  let e = $();
2029
2034
  return { renderUiNumber: (t, n, r, i, a) => {
2030
2035
  if (n.ui !== "number") throw Error("renderUiNumber property ui must be number");
2031
- return m(qt, {
2032
- modelValue: J(t, n, r, i, a, e),
2036
+ return m(Kt, {
2037
+ modelValue: Y(t, n, r, i, a, e),
2033
2038
  "onUpdate:modelValue": (o) => {
2034
- Y(t, n, r, o, i, a, e);
2039
+ X(t, n, r, o, i, a, e);
2035
2040
  },
2036
2041
  hasDelete: i !== void 0 && !a,
2037
2042
  onDelete: () => {
@@ -2047,12 +2052,12 @@ function _n() {
2047
2052
  }
2048
2053
  //#endregion
2049
2054
  //#region src/components/entry/index.vue
2050
- var vn = /* @__PURE__ */ p({
2055
+ var _n = /* @__PURE__ */ p({
2051
2056
  __name: "index",
2052
2057
  props: { minHeight: {} },
2053
2058
  emits: ["menu"],
2054
2059
  setup(e, { emit: t }) {
2055
- let { backgroundColor2: n, highlightColor: r } = U(), i = t, a = T(!1), s = o(() => ({
2060
+ let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = T(!1), s = o(() => ({
2056
2061
  background: a.value ? r.value : n.value,
2057
2062
  minHeight: e.minHeight,
2058
2063
  paddingRight: "4px",
@@ -2075,14 +2080,14 @@ var vn = /* @__PURE__ */ p({
2075
2080
  });
2076
2081
  //#endregion
2077
2082
  //#region src/composables/uis/uiProperty.ts
2078
- function yn() {
2079
- let { t: e } = V(), t = nt();
2083
+ function vn() {
2084
+ let { t: e } = H(), t = tt();
2080
2085
  return { renderProperty: (n, r, i) => {
2081
2086
  let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
2082
- return Q(t.value, n) && (o += " *"), m(vn, {
2087
+ return Q(t.value, n) && (o += " *"), m(_n, {
2083
2088
  minHeight: "56px",
2084
2089
  onMenu: (e, t) => {
2085
- H.emit("propTreeMenu", {
2090
+ U.emit("propTreeMenu", {
2086
2091
  x: e,
2087
2092
  y: t,
2088
2093
  keys: n
@@ -2099,14 +2104,14 @@ function yn() {
2099
2104
  }
2100
2105
  //#endregion
2101
2106
  //#region src/composables/uis/uiRule.ts
2102
- function bn() {
2107
+ function yn() {
2103
2108
  let e = $();
2104
2109
  function t(t, n, r, i, a) {
2105
2110
  if (n.ui !== "rule") throw Error("renderUiRule property ui must be rule");
2106
- return m(Xt, {
2107
- modelValue: J(t, n, r, i, a, e),
2111
+ return m(Yt, {
2112
+ modelValue: Y(t, n, r, i, a, e),
2108
2113
  "onUpdate:modelValue": (o) => {
2109
- Y(t, n, r, o, i, a, e);
2114
+ X(t, n, r, o, i, a, e);
2110
2115
  },
2111
2116
  hasDelete: i !== void 0 && !a,
2112
2117
  onDelete: () => {
@@ -2118,14 +2123,14 @@ function bn() {
2118
2123
  }
2119
2124
  //#endregion
2120
2125
  //#region src/composables/uis/uiSelect.ts
2121
- function xn() {
2126
+ function bn() {
2122
2127
  let e = $();
2123
2128
  return { renderUiSelect: (t, n, r, i, a) => {
2124
2129
  if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
2125
- return m(Qt, {
2126
- modelValue: J(t, n, r, i, a, e),
2130
+ return m(Zt, {
2131
+ modelValue: Y(t, n, r, i, a, e),
2127
2132
  "onUpdate:modelValue": (o) => {
2128
- Y(t, n, r, o, i, a, e);
2133
+ X(t, n, r, o, i, a, e);
2129
2134
  },
2130
2135
  hasDelete: i !== void 0 && !a,
2131
2136
  onDelete: () => {
@@ -2138,14 +2143,14 @@ function xn() {
2138
2143
  }
2139
2144
  //#endregion
2140
2145
  //#region src/composables/uis/uiSlot.ts
2141
- function Sn() {
2146
+ function xn() {
2142
2147
  let e = $();
2143
2148
  return { renderUiSlot: (t, n, r, i, a) => {
2144
2149
  if (n.ui !== "slot") throw Error("renderUiSlot property ui must be slot");
2145
- return m(on, {
2146
- modelValue: J(t, n, r, i, a, e),
2150
+ return m(an, {
2151
+ modelValue: Y(t, n, r, i, a, e),
2147
2152
  "onUpdate:modelValue": (o) => {
2148
- Y(t, n, r, o, i, a, e);
2153
+ X(t, n, r, o, i, a, e);
2149
2154
  },
2150
2155
  hasDelete: i !== void 0 && !a,
2151
2156
  onDelete: () => {
@@ -2157,14 +2162,14 @@ function Sn() {
2157
2162
  }
2158
2163
  //#endregion
2159
2164
  //#region src/composables/uis/uiSwitch.ts
2160
- function Cn() {
2165
+ function Sn() {
2161
2166
  let e = $();
2162
2167
  return { renderUiSwitch: (t, n, r, i, a) => {
2163
2168
  if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
2164
- return m(cn, {
2165
- modelValue: J(t, n, r, i, a, e),
2169
+ return m(sn, {
2170
+ modelValue: Y(t, n, r, i, a, e),
2166
2171
  "onUpdate:modelValue": (o) => {
2167
- Y(t, n, r, o, i, a, e);
2172
+ X(t, n, r, o, i, a, e);
2168
2173
  },
2169
2174
  hasDelete: i !== void 0 && !a,
2170
2175
  onDelete: () => {
@@ -2176,14 +2181,14 @@ function Cn() {
2176
2181
  }
2177
2182
  //#endregion
2178
2183
  //#region src/composables/uis/uiText.ts
2179
- function wn() {
2184
+ function Cn() {
2180
2185
  let e = $();
2181
2186
  return { renderUiText: (t, n, r, i, a) => {
2182
2187
  if (n.ui !== "text") throw Error("renderUiText property ui must be text");
2183
- return m(un, {
2184
- modelValue: n.static ? n.value : J(t, n, r, i, a, e),
2188
+ return m(ln, {
2189
+ modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
2185
2190
  "onUpdate:modelValue": (o) => {
2186
- n.static || Y(t, n, r, o, i, a, e);
2191
+ n.static || X(t, n, r, o, i, a, e);
2187
2192
  },
2188
2193
  hasDelete: i !== void 0 && !a,
2189
2194
  onDelete: () => {
@@ -2195,27 +2200,27 @@ function wn() {
2195
2200
  }
2196
2201
  //#endregion
2197
2202
  //#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
2198
- var Tn = "20px", En = /* @__PURE__ */ p({
2203
+ var wn = "20px", Tn = /* @__PURE__ */ p({
2199
2204
  __name: "main",
2200
2205
  setup(t) {
2201
- let { t: n } = V(), { backgroundColor1: r } = U(), i = Xe(), o = Qe(), s = et(), c = nt(), u = $();
2202
- mt(), ht(), pt();
2203
- let { renderProperty: d } = yn(), { renderUiDummy: p } = pn(), { renderUiText: h } = wn(), { renderUiNumber: g } = _n(), { renderUiSwitch: _ } = Cn(), { renderUiSelect: v } = xn(), { renderUiJson: y } = hn(), { renderUiIcon: b } = mn(), { renderUiComp: x } = fn(), { renderUiSlot: S } = Sn(), { renderUiAdaptSlot: w } = dn(), { renderUiRule: T } = bn(), { renderUiMultiTypes: E } = gn(), D = (t, n, r, i, a, o) => {
2206
+ let { t: n } = H(), { backgroundColor1: r } = W(), i = Ye(), o = Ze(), s = $e(), c = tt(), u = $();
2207
+ pt(), mt(), ft();
2208
+ let { renderProperty: d } = vn(), { renderUiDummy: p } = fn(), { renderUiText: h } = Cn(), { renderUiNumber: g } = gn(), { renderUiSwitch: _ } = Sn(), { renderUiSelect: v } = bn(), { renderUiJson: y } = mn(), { renderUiIcon: b } = pn(), { renderUiComp: x } = dn(), { renderUiSlot: S } = xn(), { renderUiAdaptSlot: w } = un(), { renderUiRule: T } = yn(), { renderUiMultiTypes: E } = hn(), D = (t, n, r, i, a, o) => {
2204
2209
  if (t = e(t), i === void 0 ? t.push(n.key) : (t.push(i), a && t.push(n.key)), t?.[0] !== "runtime") return n.ui ? n.array && !o ? A(t, n, r, i, a) : j(t, n, r, i, a) : n.array ? O(t, n, r, i, a) : k(t, n, r, i, a);
2205
2210
  }, O = (e, t, r, i, a) => {
2206
2211
  if (t.ui) throw Error("renderBranchArray property ui must be invalid");
2207
2212
  if (!t.array) throw Error("renderBranchArray property array must be valid");
2208
- let o = Se(e, t, r, i, a, u), l = n(t.name);
2209
- X(s, e) && Q(c.value, e) && (l += " *");
2210
- let d = m(ft, {
2213
+ let o = be(e, t, r, i, a, u), l = n(t.name);
2214
+ Z(s, e) && Q(c.value, e) && (l += " *");
2215
+ let d = m(dt, {
2211
2216
  title: l,
2212
- collapse: X(s, e),
2217
+ collapse: Z(s, e),
2213
2218
  hasCreate: !0,
2214
2219
  onCollapse: (t) => {
2215
- Z(s, e, t);
2220
+ xe(s, e, t);
2216
2221
  },
2217
2222
  onMenu: (t, n) => {
2218
- H.emit("propTreeMenu", {
2223
+ U.emit("propTreeMenu", {
2219
2224
  x: t,
2220
2225
  y: n,
2221
2226
  keys: e
@@ -2224,21 +2229,21 @@ var Tn = "20px", En = /* @__PURE__ */ p({
2224
2229
  onCreate: () => {
2225
2230
  o.push({}), u(e, o);
2226
2231
  }
2227
- }), f = m("div", { style: { paddingLeft: Tn } }, (() => {
2232
+ }), f = m("div", { style: { paddingLeft: wn } }, (() => {
2228
2233
  let n = [];
2229
2234
  for (let r = 0; r < o.length; r++) {
2230
2235
  let i = [...e, r], a = `[${r + 1}]`;
2231
- X(s, [...e, r]) && Q(c.value, i) && (a += " *");
2232
- let l = m(ft, {
2236
+ Z(s, [...e, r]) && Q(c.value, i) && (a += " *");
2237
+ let l = m(dt, {
2233
2238
  title: a,
2234
- collapse: X(s, [...e, r]),
2239
+ collapse: Z(s, [...e, r]),
2235
2240
  hasDelete: !0,
2236
2241
  index: r,
2237
2242
  onCollapse: (t) => {
2238
- Z(s, [...e, r], t);
2243
+ xe(s, [...e, r], t);
2239
2244
  },
2240
2245
  onMenu: (e, t) => {
2241
- H.emit("propTreeMenu", {
2246
+ U.emit("propTreeMenu", {
2242
2247
  x: e,
2243
2248
  y: t,
2244
2249
  keys: i
@@ -2249,33 +2254,33 @@ var Tn = "20px", En = /* @__PURE__ */ p({
2249
2254
  }
2250
2255
  });
2251
2256
  n.push(l);
2252
- let d = m("div", { style: { paddingLeft: Tn } }, (() => {
2257
+ let d = m("div", { style: { paddingLeft: wn } }, (() => {
2253
2258
  let n = [];
2254
2259
  for (let i of t.children) n.push(D(e, i, o[r], r, !0));
2255
2260
  return n;
2256
2261
  })());
2257
- X(s, [...e, r]) || n.push(d);
2262
+ Z(s, [...e, r]) || n.push(d);
2258
2263
  }
2259
2264
  return n;
2260
2265
  })());
2261
2266
  return m("div", { style: { marginTop: "1px" } }, (() => {
2262
2267
  let t = [];
2263
- return t.push(d), X(s, e) || t.push(f), t;
2268
+ return t.push(d), Z(s, e) || t.push(f), t;
2264
2269
  })());
2265
2270
  }, k = (e, t, r, i, a) => {
2266
2271
  if (t.ui) throw Error("renderBranchScalar property ui must be invalid");
2267
2272
  if (t.array) throw Error("renderBranchScalar property array must be invalid");
2268
2273
  let o = n(t.name);
2269
- X(s, e) && Q(c.value, e) && (o += " *");
2270
- let l = m(ft, {
2274
+ Z(s, e) && Q(c.value, e) && (o += " *");
2275
+ let l = m(dt, {
2271
2276
  title: o,
2272
- collapse: X(s, e),
2277
+ collapse: Z(s, e),
2273
2278
  hasDelete: i !== void 0 && !a,
2274
2279
  onCollapse: (t) => {
2275
- Z(s, e, t);
2280
+ xe(s, e, t);
2276
2281
  },
2277
2282
  onMenu: (t, n) => {
2278
- H.emit("propTreeMenu", {
2283
+ U.emit("propTreeMenu", {
2279
2284
  x: t,
2280
2285
  y: n,
2281
2286
  keys: e
@@ -2284,29 +2289,29 @@ var Tn = "20px", En = /* @__PURE__ */ p({
2284
2289
  onDelete: () => {
2285
2290
  i === void 0 || a || (r.splice(i, 1), u(e.slice(0, -1), r));
2286
2291
  }
2287
- }), d = m("div", { style: { paddingLeft: Tn } }, (() => {
2292
+ }), d = m("div", { style: { paddingLeft: wn } }, (() => {
2288
2293
  let n = [];
2289
2294
  for (let i of t.children) n.push(D(e, i, (typeof r[t.key] != "object" && (r[t.key] = {}, u(e, r[t.key])), r[t.key]), void 0, !1));
2290
2295
  return n;
2291
2296
  })());
2292
2297
  return m("div", { style: { marginTop: "1px" } }, (() => {
2293
2298
  let t = [];
2294
- return t.push(l), X(s, e) || t.push(d), t;
2299
+ return t.push(l), Z(s, e) || t.push(d), t;
2295
2300
  })());
2296
2301
  }, A = (e, t, r, i, a) => {
2297
2302
  if (!t.ui) throw Error("renderLeafArray property ui must be valid");
2298
2303
  if (!t.array) throw Error("renderLeafArray property array must be valid");
2299
- let o = Se(e, t, r, i, a, u), l = n(t.name);
2300
- X(s, e) && Q(c.value, e) && (l += " *");
2301
- let d = m(ft, {
2304
+ let o = be(e, t, r, i, a, u), l = n(t.name);
2305
+ Z(s, e) && Q(c.value, e) && (l += " *");
2306
+ let d = m(dt, {
2302
2307
  title: l,
2303
- collapse: X(s, e),
2308
+ collapse: Z(s, e),
2304
2309
  hasCreate: !0,
2305
2310
  onCollapse: (t) => {
2306
- Z(s, e, t);
2311
+ xe(s, e, t);
2307
2312
  },
2308
2313
  onMenu: (t, n) => {
2309
- H.emit("propTreeMenu", {
2314
+ U.emit("propTreeMenu", {
2310
2315
  x: t,
2311
2316
  y: n,
2312
2317
  keys: e
@@ -2315,14 +2320,14 @@ var Tn = "20px", En = /* @__PURE__ */ p({
2315
2320
  onCreate: () => {
2316
2321
  o.push(B(t)), u(e, o);
2317
2322
  }
2318
- }), f = m("div", { style: { paddingLeft: Tn } }, (() => {
2323
+ }), f = m("div", { style: { paddingLeft: wn } }, (() => {
2319
2324
  let n = [];
2320
2325
  for (let r = 0; r < o.length; r++) n.push(D(e, t, o, r, !1, !0));
2321
2326
  return n;
2322
2327
  })());
2323
2328
  return m("div", { style: { marginTop: "1px" } }, (() => {
2324
2329
  let t = [];
2325
- return t.push(d), X(s, e) || t.push(f), t;
2330
+ return t.push(d), Z(s, e) || t.push(f), t;
2326
2331
  })());
2327
2332
  }, j = (e, t, n, r, i) => {
2328
2333
  if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
@@ -2336,9 +2341,9 @@ var Tn = "20px", En = /* @__PURE__ */ p({
2336
2341
  if (i.value.length > 0 && o.value) for (let t of i.value) e.push(D([], t, o.value, void 0, !1));
2337
2342
  return e;
2338
2343
  })());
2339
- return (e, t) => (C(), l(a, null, [f(M), f(ut)], 64));
2344
+ return (e, t) => (C(), l(a, null, [f(M), f(lt)], 64));
2340
2345
  }
2341
- }), Dn = /* @__PURE__ */ p({
2346
+ }), En = /* @__PURE__ */ p({
2342
2347
  __name: "index",
2343
2348
  props: {
2344
2349
  config: {},
@@ -2350,25 +2355,25 @@ var Tn = "20px", En = /* @__PURE__ */ p({
2350
2355
  emits: ["change"],
2351
2356
  setup(e, { emit: t }) {
2352
2357
  let n = t, r = T([]);
2353
- Ye(r), F(() => {
2358
+ Je(r), F(() => {
2354
2359
  r.value = e.config;
2355
2360
  });
2356
2361
  let i = T();
2357
- Ze(i), F(() => {
2362
+ Xe(i), F(() => {
2358
2363
  i.value = e.object;
2359
2364
  });
2360
2365
  let a = T("");
2361
- Ue(a), F(() => {
2366
+ He(a), F(() => {
2362
2367
  a.value = e.version;
2363
2368
  });
2364
2369
  let o = T(e.type);
2365
- Ge(o), F(() => {
2370
+ We(o), F(() => {
2366
2371
  o.value = e.type;
2367
2372
  });
2368
2373
  let c = T("");
2369
- qe(c), F(() => {
2374
+ Ke(c), F(() => {
2370
2375
  c.value = e.subtype;
2371
- }), $e(T({
2376
+ }), Qe(T({
2372
2377
  collapse: !0,
2373
2378
  children: {}
2374
2379
  }));
@@ -2377,15 +2382,15 @@ var Tn = "20px", En = /* @__PURE__ */ p({
2377
2382
  warning: !1,
2378
2383
  children: {}
2379
2384
  });
2380
- return tt(l), rt((t, r) => {
2381
- je(l, e.config, e.object), n("change", t, r);
2385
+ return et(l), nt((t, r) => {
2386
+ Ae(l, e.config, e.object), n("change", t, r);
2382
2387
  }), P([() => e.config, () => e.object], () => {
2383
- je(l, e.config, e.object);
2384
- }, { immediate: !0 }), (e, t) => (C(), s(En));
2388
+ Ae(l, e.config, e.object);
2389
+ }, { immediate: !0 }), (e, t) => (C(), s(Tn));
2385
2390
  }
2386
- }), On = (e) => {
2387
- e.component("XPropTree", Dn);
2388
- }, kn = (e, t, n) => {
2391
+ }), Dn = (e) => {
2392
+ e.component("XPropTree", En);
2393
+ }, On = (e, t, n) => {
2389
2394
  let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
2390
2395
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
2391
2396
  (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."))));
@@ -2393,14 +2398,14 @@ var Tn = "20px", En = /* @__PURE__ */ p({
2393
2398
  };
2394
2399
  //#endregion
2395
2400
  //#region src/i18n/index.ts
2396
- async function An(e) {
2397
- return (await kn(/* @__PURE__ */ Object.assign({
2401
+ async function kn(e) {
2402
+ return (await On(/* @__PURE__ */ Object.assign({
2398
2403
  "./locales/en/index.ts": () => import("./i18n-en.lvwojc1f.js").then((e) => e.t),
2399
2404
  "./locales/zhHans/index.ts": () => import("./i18n-zhHans.u8lopwp1.js").then((e) => e.t)
2400
2405
  }), `./locales/${e}/index.ts`, 4)).default;
2401
2406
  }
2402
2407
  //#endregion
2403
2408
  //#region src/index.ts
2404
- var jn = { install: On };
2409
+ var An = { install: Dn };
2405
2410
  //#endregion
2406
- export { jn as default, An as loadLocaleMessagePropTree };
2411
+ export { An as default, kn as loadLocaleMessagePropTree };