x-prop-tree 0.8.0 → 0.8.1

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 +385 -330
  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 ne, withModifiers as L } from "vue";
3
- import { getElement as re, getPropertyDefault as R, getPropertyDefaultArray as ie, getTag as ae, makeSlotId as oe, parsePercent as se, parsePixel as ce, pkgs as le } from "x-runtime-lib";
4
- import { useI18n as z } from "vue-i18n";
5
- import { eventBus as B, globalObjects as ue, injectDark as de, injectLocale as fe, openNumberDlg as pe, openPromptDlg as me, useColor as V, useSystem as H, useViewStack as U } from "x-essential-lib";
6
- import { globalState as he } from "x-state-lib";
7
- import { useDisplay as ge } from "vuetify";
8
- import { XBlockly as _e } from "x-block-lib";
3
+ import { getElement as re, getPropertyDefault as R, getPropertyDefaultArray as z, getTag as ie, isHexColor as ae, isThemeColor as oe, makeSlotId as se, parsePercent as ce, parsePixel as le, pkgs as ue, themeColors as de } from "x-runtime-lib";
4
+ import { useI18n as B } from "vue-i18n";
5
+ import { eventBus as V, globalObjects as fe, injectDark as pe, injectLocale as me, openNumberDlg as he, openPromptDlg as ge, useColor as H, useSystem as U, useViewStack as W } 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/collapseState.ts
10
- function W(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 W(e, t) {
15
15
  }
16
16
  return n.collapse;
17
17
  }
18
- function G(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 G(e, t, n) {
25
25
  }
26
26
  //#endregion
27
27
  //#region src/utils/common.ts
28
- function K(e, t) {
28
+ function q(e, t) {
29
29
  let n = {
30
30
  key: "",
31
31
  name: "",
@@ -38,7 +38,7 @@ function K(e, t) {
38
38
  }
39
39
  return n;
40
40
  }
41
- function q(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 q(e, t) {
46
46
  }
47
47
  return n;
48
48
  }
49
- function ve(e, n, r, i, a, o) {
49
+ function be(e, n, r, i, a, o) {
50
50
  if (i !== void 0 && !a) {
51
51
  if (!(r[i] instanceof Array)) {
52
- let a = ie(n);
52
+ let a = z(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 = ie(n);
58
+ let i = z(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 J(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 = R(n);
@@ -76,12 +76,12 @@ function J(e, n, r, i, a, o) {
76
76
  return r[n.key];
77
77
  }
78
78
  }
79
- function Y(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 ye = (e, t) => {
84
+ var xe = (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 ye = (e, t) => {
90
90
  return !0;
91
91
  };
92
92
  return n(e, t);
93
- }, be = [["basic", "id"], ["basic", "name"]];
94
- function xe(e) {
95
- return be.find((n) => t(e, n));
93
+ }, Se = [["basic", "id"], ["basic", "name"]];
94
+ function Ce(e) {
95
+ return Se.find((n) => t(e, n));
96
96
  }
97
- function X(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)), xe(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)), Ce(t) ? (i.change = !1, i.warning = !1, {
99
99
  change: i.change,
100
100
  warning: i.warning
101
- }) : n.ui ? n.array && i.children ? we(t, n, r, i, a, o) : Te(n, r, i, a, o) : n.array ? Se(t, n, r, i, a, o) : Ce(t, n, r, i, a, o);
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);
102
102
  }
103
- function Se(e, n, r, i, a, o) {
103
+ function we(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 Se(e, n, r, i, a, o) {
121
121
  warning: !1,
122
122
  children: {}
123
123
  };
124
- let { change: n, warning: o } = X(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, ie(n)), {
128
+ return i.change ||= !t(s, z(n)), {
129
129
  change: i.change,
130
130
  warning: i.warning
131
131
  };
132
132
  }
133
- function Ce(e, t, n, r, i, a) {
133
+ function Te(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 Ce(e, t, n, r, i, a) {
145
145
  warning: !1,
146
146
  children: {}
147
147
  };
148
- let { change: a, warning: s } = X(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 Ce(e, t, n, r, i, a) {
153
153
  warning: r.change
154
154
  };
155
155
  }
156
- function we(e, n, r, i, a, o) {
156
+ function Ee(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 we(e, n, r, i, a, o) {
167
167
  warning: !1,
168
168
  children: {}
169
169
  };
170
- let { change: r, warning: a } = X(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, ie(n)), {
173
+ return i.change ||= !t(s, z(n)), {
174
174
  change: i.change,
175
175
  warning: i.warning
176
176
  };
177
177
  }
178
- function Te(e, n, r, i, a) {
178
+ function De(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, R(e)), {
@@ -183,7 +183,7 @@ function Te(e, n, r, i, a) {
183
183
  warning: r.warning
184
184
  };
185
185
  }
186
- function Ee(e, t, n) {
186
+ function Oe(e, t, n) {
187
187
  if (t.length <= 0 || !n) {
188
188
  e.value = {
189
189
  change: !1,
@@ -203,11 +203,11 @@ function Ee(e, t, n) {
203
203
  warning: !1,
204
204
  children: {}
205
205
  };
206
- r.children[e.key] = t, X([], 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
  }
210
- function Z(e, t) {
210
+ function Q(e, t) {
211
211
  let n = e;
212
212
  for (let e of t) {
213
213
  if (!n.children[e]) return !1;
@@ -217,53 +217,41 @@ function Z(e, t) {
217
217
  }
218
218
  //#endregion
219
219
  //#region src/utils/provideInject.ts
220
- var De = Symbol(), Oe = Symbol(), ke = Symbol(), Ae = Symbol(), je = Symbol(), Me = Symbol(), Ne = Symbol(), Pe = Symbol(), Fe = Symbol(), Ie = Symbol(), Le = Symbol();
221
- function Re(e) {
222
- w(De, e);
223
- }
224
- function Q() {
225
- return h(De);
226
- }
227
- function ze(e) {
228
- w(Oe, e);
229
- }
230
- function Be() {
231
- return h(Oe);
232
- }
233
- function Ve(e) {
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) {
234
222
  w(ke, e);
235
223
  }
236
- function He() {
224
+ function Ve() {
237
225
  return h(ke);
238
226
  }
239
- function Ue(e) {
227
+ function He(e) {
240
228
  w(Ae, e);
241
229
  }
242
- function We() {
230
+ function Ue() {
243
231
  return h(Ae);
244
232
  }
245
- function Ge(e) {
233
+ function We(e) {
246
234
  w(je, e);
247
235
  }
248
- function Ke() {
236
+ function Ge() {
249
237
  return h(je);
250
238
  }
251
- function qe(e) {
239
+ function Ke(e) {
252
240
  w(Me, e);
253
241
  }
254
- function Je() {
242
+ function qe() {
255
243
  return h(Me);
256
244
  }
257
- function Ye(e) {
245
+ function Je(e) {
258
246
  w(Ne, e);
259
247
  }
260
- function Xe() {
248
+ function Ye() {
261
249
  return h(Ne);
262
250
  }
263
- function Ze(e) {
251
+ function Xe(e) {
264
252
  w(Pe, e);
265
253
  }
266
- function $() {
254
+ function Ze() {
267
255
  return h(Pe);
268
256
  }
269
257
  function Qe(e) {
@@ -275,27 +263,39 @@ function $e() {
275
263
  function et(e) {
276
264
  w(Ie, e);
277
265
  }
278
- function tt() {
266
+ function $() {
279
267
  return h(Ie);
280
268
  }
281
- function nt(e) {
269
+ function tt(e) {
282
270
  w(Le, e);
283
271
  }
284
- function rt() {
272
+ function nt() {
285
273
  return h(Le);
286
274
  }
275
+ function rt(e) {
276
+ w(Re, e);
277
+ }
278
+ function it() {
279
+ return h(Re);
280
+ }
281
+ function at(e) {
282
+ w(ze, e);
283
+ }
284
+ function ot() {
285
+ return h(ze);
286
+ }
287
287
  //#endregion
288
288
  //#region src/components/menu/index.vue
289
- var it = /* @__PURE__ */ p({
289
+ var st = /* @__PURE__ */ p({
290
290
  __name: "index",
291
291
  setup(e) {
292
- let { t } = z(), n = We(), r = Ke(), i = Xe(), c = $(), u = T(0), p = T(0), m = T([]), h = o(() => [u.value, p.value]), _ = (e) => {
293
- !(m.value.length <= 0 || !Z(i.value, m.value)) && e.push({
292
+ let { t } = B(), n = qe(), r = Ye(), i = $e(), c = $(), u = T(0), p = T(0), m = T([]), h = o(() => [u.value, p.value]), _ = (e) => {
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 = K(n.value, m.value);
296
+ let e = q(n.value, m.value);
297
297
  if (e) if (e.ui) {
298
- let t = q(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]] = R(e), c(m.value, t[m.value[m.value.length - 1]]);
301
301
  } else if (e.array) {
@@ -305,18 +305,18 @@ var it = /* @__PURE__ */ p({
305
305
  return;
306
306
  }
307
307
  if (typeof t == "string") {
308
- let t = q(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]] = R(e), c(m.value, t[m.value[m.value.length - 1]]);
311
311
  } else {
312
- let t = q(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] = R(e), c([...m.value, n.key], t[n.key]);
316
316
  });
317
317
  }
318
318
  } else {
319
- let t = q(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] = R(e), c([...m.value, n.key], t[n.key]);
@@ -328,7 +328,7 @@ var it = /* @__PURE__ */ p({
328
328
  e.push({
329
329
  title: t("x-prop-tree.copy"),
330
330
  func: () => {
331
- let e = K(n.value, m.value), t = q(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 it = /* @__PURE__ */ p({
342
342
  try {
343
343
  let { property: t } = JSON.parse(e);
344
344
  if (!t) return !1;
345
- let r = K(n.value, m.value);
346
- return r ? ye(t, r) : !1;
345
+ let r = q(n.value, m.value);
346
+ return r ? xe(t, r) : !1;
347
347
  } catch (e) {
348
348
  console.error(e);
349
349
  }
@@ -355,7 +355,7 @@ var it = /* @__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 = K(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 it = /* @__PURE__ */ p({
365
365
  }, b = o(() => {
366
366
  let e = [];
367
367
  return _(e), v(e), y(e), e;
368
- }), { open: x } = U("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 it = /* @__PURE__ */ p({
395
395
  }, 8, ["modelValue", "target"]);
396
396
  };
397
397
  }
398
- }), at = { style: { pointerEvents: "none" } }, ot = /* @__PURE__ */ p({
398
+ }), ct = { style: { pointerEvents: "none" } }, lt = /* @__PURE__ */ p({
399
399
  __name: "index",
400
400
  props: {
401
401
  title: {},
@@ -417,7 +417,7 @@ var it = /* @__PURE__ */ p({
417
417
  "delete"
418
418
  ],
419
419
  setup(e, { emit: t }) {
420
- let { backgroundColor2: n, highlightColor: r } = V(), 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 it = /* @__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", at, k(e.title), 1),
444
+ u("span", ct, k(e.title), 1),
445
445
  f(o),
446
446
  e.hasCreate ? (C(), s(h, {
447
447
  key: 0,
@@ -465,14 +465,14 @@ var it = /* @__PURE__ */ p({
465
465
  });
466
466
  //#endregion
467
467
  //#region src/composables/adaptSlotList/index.ts
468
- function st() {
469
- let e = Q(), t = Be(), n = He(), { i18n: a } = ue, o = T([]);
470
- nt(o);
468
+ function ut() {
469
+ let e = Ve(), t = Ue(), n = Ge(), { i18n: a } = fe, o = T([]);
470
+ at(o);
471
471
  let s = () => {
472
472
  if (!e.value || !t.value || !n.value) return [];
473
- let s = le[e.value];
473
+ let s = ue[e.value];
474
474
  if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
475
- let c = ae(t.value, n.value), l = [];
475
+ let c = ie(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 st() {
487
487
  for (let e of t.items) {
488
488
  let n = re(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 = se("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 st() {
498
498
  }
499
499
  }
500
500
  }
501
- let { activeApp: u, depends: d } = he.app;
501
+ let { activeApp: u, depends: d } = _e.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 st() {
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 = se("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 st() {
547
547
  }
548
548
  //#endregion
549
549
  //#region src/composables/compList/index.ts
550
- function ct() {
550
+ function dt() {
551
551
  let e = T([]);
552
- Qe(e);
552
+ tt(e);
553
553
  let t = () => {
554
- let { activeApp: t, depends: n } = he.app, r = [];
554
+ let { activeApp: t, depends: n } = _e.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 ct() {
585
585
  }
586
586
  //#endregion
587
587
  //#region src/composables/slotList/index.ts
588
- function lt() {
588
+ function ft() {
589
589
  let e = T([]);
590
- et(e);
590
+ rt(e);
591
591
  let t = () => {
592
- let { activeObject: e, activeComp: t } = he.app;
592
+ let { activeObject: e, activeComp: t } = _e.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 lt() {
614
614
  }
615
615
  //#endregion
616
616
  //#region src/components/values/adaptSlotSelect/adaptSlotList/group.vue?vue&type=script&setup=true&lang.ts
617
- var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text-grey ml-1" }, ft = /* @__PURE__ */ p({
617
+ var pt = { class: "text-label-large ml-1" }, mt = { class: "text-body-small text-grey ml-1" }, ht = /* @__PURE__ */ p({
618
618
  __name: "group",
619
619
  props: {
620
620
  id: {},
@@ -624,7 +624,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
624
624
  },
625
625
  emits: ["x-click"],
626
626
  setup(e, { emit: t }) {
627
- let { backgroundColor2: n, highlightColor: r } = V(), 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 ut = { class: "text-label-large ml-1" }, dt = { 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", ut, k(i.title), 1),
647
- u("span", dt, k(i.count), 1)
646
+ u("span", pt, k(i.title), 1),
647
+ u("span", mt, k(i.count), 1)
648
648
  ], 36)), [[r]]);
649
649
  };
650
650
  }
651
- }), pt = { class: "text-body-large ml-6" }, mt = /* @__PURE__ */ p({
651
+ }), gt = { class: "text-body-large ml-6" }, _t = /* @__PURE__ */ p({
652
652
  __name: "item",
653
653
  props: {
654
654
  id: {},
@@ -656,7 +656,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
656
656
  },
657
657
  emits: ["x-click"],
658
658
  setup(e, { emit: t }) {
659
- let { backgroundColor2: n, highlightColor: r } = V(), 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 ut = { class: "text-label-large ml-1" }, dt = { 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", pt, k(e.title), 1)], 36)), [[r]]);
673
+ }, [u("span", gt, k(e.title), 1)], 36)), [[r]]);
674
674
  };
675
675
  }
676
- }), ht = { key: 0 }, gt = {
676
+ }), vt = { key: 0 }, yt = {
677
677
  key: 1,
678
678
  class: "text-body-medium text-grey ml-3"
679
- }, _t = /* @__PURE__ */ p({
679
+ }, bt = /* @__PURE__ */ p({
680
680
  __name: "index",
681
681
  props: {
682
682
  modelValue: {},
@@ -689,13 +689,13 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
689
689
  },
690
690
  emits: ["update:modelValue", "update:open"],
691
691
  setup(e) {
692
- let { nameList: t } = H(), i = M(e, "modelValue"), o = M(e, "open"), u = rt(), d = (e) => {
692
+ let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = ot(), 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", ht, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(ft, {
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, {
699
699
  key: 0,
700
700
  id: e.id,
701
701
  collapse: e.collapse,
@@ -707,18 +707,18 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
707
707
  "collapse",
708
708
  "count",
709
709
  "title"
710
- ])) : c("", !0), e.type === 1 && e.show ? (C(), s(mt, {
710
+ ])) : c("", !0), e.type === 1 && e.show ? (C(), s(_t, {
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", gt, k(A(t)([
715
+ }, null, 8, ["id", "title"])) : c("", !0)], 64))), 128))])) : (C(), l("div", yt, 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
- }), vt = { class: "text-body-large" }, yt = /* @__PURE__ */ p({
721
+ }), xt = { class: "text-body-large" }, St = /* @__PURE__ */ p({
722
722
  __name: "index",
723
723
  props: /* @__PURE__ */ _({
724
724
  hasDelete: {
@@ -735,7 +735,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
735
735
  }),
736
736
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
737
737
  setup(e, { emit: t }) {
738
- let { t: n } = z(), i = ge(), { sysBarAvail: a, nameList: l } = H(), { backgroundColor1: p } = V(), m = M(e, "modelValue"), h = t, _ = rt(), b = o(() => {
738
+ let { t: n } = B(), i = ve(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = ot(), 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 ut = { class: "text-label-large ml-1" }, dt = { 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 } = U(`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 ut = { class: "text-label-large ml-1" }, dt = { 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", vt, k(A(l)([
807
+ }), u("span", xt, 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 ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
814
814
  u("div", {
815
815
  class: "overflow-y-auto",
816
816
  style: y(x.value)
817
- }, [f(_t, {
817
+ }, [f(bt, {
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 ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
825
825
  }, 8, ["modelValue"]);
826
826
  };
827
827
  }
828
- }), bt = { class: "d-flex justify-space-between align-center" }, xt = /* @__PURE__ */ p({
828
+ }), Ct = { class: "d-flex justify-space-between align-center" }, wt = /* @__PURE__ */ p({
829
829
  __name: "index",
830
830
  props: /* @__PURE__ */ _({
831
831
  hasDelete: {
@@ -842,10 +842,10 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
842
842
  }),
843
843
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
844
844
  setup(e, { emit: t }) {
845
- let { t: n } = z(), 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 } = U(`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 ut = { class: "text-label-large ml-1" }, dt = { 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", bt, [u("div", {
859
+ activator: F(({ props: t }) => [u("div", Ct, [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 ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
886
886
  }, 8, ["modelValue"]);
887
887
  };
888
888
  }
889
- }), St = { class: "text-label-large ml-1" }, Ct = { class: "text-body-small text-grey ml-1" }, wt = /* @__PURE__ */ p({
889
+ }), Tt = { class: "text-label-large ml-1" }, Et = { class: "text-body-small text-grey ml-1" }, Dt = /* @__PURE__ */ p({
890
890
  __name: "group",
891
891
  props: {
892
892
  id: {},
@@ -896,7 +896,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
896
896
  },
897
897
  emits: ["x-click"],
898
898
  setup(e, { emit: t }) {
899
- let { backgroundColor2: n, highlightColor: r } = V(), 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 ut = { class: "text-label-large ml-1" }, dt = { 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", St, k(i.title), 1),
919
- u("span", Ct, k(i.count), 1)
918
+ u("span", Tt, k(i.title), 1),
919
+ u("span", Et, k(i.count), 1)
920
920
  ], 36)), [[r]]);
921
921
  };
922
922
  }
923
- }), Tt = { class: "text-body-large ml-6" }, Et = /* @__PURE__ */ p({
923
+ }), Ot = { class: "text-body-large ml-6" }, kt = /* @__PURE__ */ p({
924
924
  __name: "item",
925
925
  props: {
926
926
  id: {},
@@ -928,7 +928,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
928
928
  },
929
929
  emits: ["x-click"],
930
930
  setup(e, { emit: t }) {
931
- let { backgroundColor2: n, highlightColor: r } = V(), 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 ut = { class: "text-label-large ml-1" }, dt = { 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", Tt, k(i.title), 1)], 36)), [[n]]);
945
+ }, [u("span", Ot, k(i.title), 1)], 36)), [[n]]);
946
946
  };
947
947
  }
948
- }), Dt = { key: 0 }, Ot = {
948
+ }), At = { key: 0 }, jt = {
949
949
  key: 1,
950
950
  class: "text-body-medium text-grey ml-3"
951
- }, kt = /* @__PURE__ */ p({
951
+ }, Mt = /* @__PURE__ */ p({
952
952
  __name: "index",
953
953
  props: {
954
954
  modelValue: {},
@@ -961,13 +961,13 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
961
961
  },
962
962
  emits: ["update:modelValue", "update:open"],
963
963
  setup(e) {
964
- let { nameList: t } = H(), i = M(e, "modelValue"), o = M(e, "open"), u = $e(), d = (e) => {
964
+ let { nameList: t } = U(), i = M(e, "modelValue"), o = M(e, "open"), u = nt(), 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, B.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", Dt, [(C(!0), l(a, null, E(A(u), (e) => (C(), l(a, { key: e.id }, [e.type === 0 ? (C(), s(wt, {
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, {
971
971
  key: 0,
972
972
  id: e.id,
973
973
  collapse: e.collapse,
@@ -979,14 +979,14 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
979
979
  "collapse",
980
980
  "count",
981
981
  "title"
982
- ])) : c("", !0), e.type === 1 && e.show ? (C(), s(Et, {
982
+ ])) : c("", !0), e.type === 1 && e.show ? (C(), s(kt, {
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", Ot, k(A(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
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));
988
988
  }
989
- }), At = { class: "text-body-large" }, jt = /* @__PURE__ */ p({
989
+ }), Nt = { class: "text-body-large" }, Pt = /* @__PURE__ */ p({
990
990
  __name: "index",
991
991
  props: /* @__PURE__ */ _({
992
992
  hasDelete: {
@@ -1003,7 +1003,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1003
1003
  }),
1004
1004
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1005
1005
  setup(e, { emit: t }) {
1006
- let { t: n } = z(), i = ge(), { sysBarAvail: a, nameList: l } = H(), { backgroundColor1: p } = V(), m = M(e, "modelValue"), h = t, _ = $e(), b = o(() => {
1006
+ let { t: n } = B(), i = ve(), { sysBarAvail: a, nameList: l } = U(), { backgroundColor1: p } = H(), m = M(e, "modelValue"), h = t, _ = nt(), 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 ut = { class: "text-label-large ml-1" }, dt = { 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 } = U(`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 ut = { class: "text-label-large ml-1" }, dt = { 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", At, k(A(l)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
1075
+ }), u("span", Nt, 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(kt, {
1081
+ }, [f(Mt, {
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 ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1089
1089
  }, 8, ["modelValue"]);
1090
1090
  };
1091
1091
  }
1092
- }), Mt = /* @__PURE__ */ p({
1092
+ }), Ft = /* @__PURE__ */ p({
1093
1093
  __name: "editor",
1094
1094
  props: {
1095
1095
  modelValue: { required: !0 },
@@ -1108,14 +1108,14 @@ var ut = { class: "text-label-large ml-1" }, dt = { 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 = de(), o = fe(), c = Q(), l = te("target"), u = () => {
1111
+ let n = M(e, "modelValue"), r = M(e, "lock"), i = M(e, "scale"), a = pe(), o = me(), c = Ve(), 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(_e), {
1118
+ } }), (e, t) => (C(), s(A(ye), {
1119
1119
  ref_key: "target",
1120
1120
  ref: l,
1121
1121
  lock: r.value,
@@ -1135,7 +1135,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1135
1135
  "version"
1136
1136
  ]));
1137
1137
  }
1138
- }), Nt = { class: "text-body-large" }, Pt = /* @__PURE__ */ p({
1138
+ }), It = { class: "text-body-large" }, Lt = /* @__PURE__ */ p({
1139
1139
  __name: "index",
1140
1140
  props: /* @__PURE__ */ _({
1141
1141
  hasDelete: {
@@ -1152,14 +1152,14 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1152
1152
  }),
1153
1153
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1154
1154
  setup(e, { emit: t }) {
1155
- let { t: n } = z(), { sysBarAvail: r } = H(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: l } = V(), 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 } = U(`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 ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1216
1216
  variant: "text",
1217
1217
  onClick: n[1] ||= (e) => w.value = !1
1218
1218
  }),
1219
- u("span", Nt, k(x.value), 1),
1219
+ u("span", It, 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(Mt, {
1224
+ u("div", { style: y(b.value) }, [f(Ft, {
1225
1225
  ref_key: "editor",
1226
1226
  ref: E,
1227
1227
  modelValue: p.value,
@@ -1242,7 +1242,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1242
1242
  }, 8, ["modelValue"]);
1243
1243
  };
1244
1244
  }
1245
- }), Ft = { class: "d-flex justify-space-between align-center my-2" }, It = { class: "flex-grow-1" }, Lt = /* @__PURE__ */ p({
1245
+ }), Rt = { class: "d-flex justify-space-between align-center my-2" }, zt = { class: "flex-grow-1" }, Bt = /* @__PURE__ */ p({
1246
1246
  __name: "index",
1247
1247
  props: /* @__PURE__ */ _({
1248
1248
  hasDelete: {
@@ -1260,23 +1260,26 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1260
1260
  }),
1261
1261
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1262
1262
  setup(e, { emit: t }) {
1263
- let { t: n } = z(), { isMobile: r } = H(), i = M(e, "modelValue"), a = t, d = Q(), p = o(() => le[d.value].types[e.types]), m = T(0), h = o(() => {
1263
+ let { t: n } = B(), { isMobile: r } = U(), i = M(e, "modelValue"), a = t, d = Ve(), p = o(() => ue[d.value].types[e.types]), m = T(""), h = o(() => {
1264
1264
  let e = [];
1265
- return p.value?.forEach(({ title: t }, r) => {
1266
- e.push({
1267
- title: n(t),
1268
- value: r
1269
- });
1270
- }), e;
1265
+ for (let { value: t, title: r } of p.value) e.push({
1266
+ value: t,
1267
+ title: n(r)
1268
+ });
1269
+ return e;
1271
1270
  });
1272
1271
  P(() => {
1273
- p.value?.some((e, t) => e.validator(i.value) ? (m.value = t, !0) : !1);
1272
+ for (let { value: e, validator: t } of p.value) if (t(i.value)) {
1273
+ m.value = e;
1274
+ return;
1275
+ }
1276
+ m.value = "";
1274
1277
  });
1275
- let g = o(() => p.value?.[m.value]), _ = () => {
1278
+ let g = o(() => p.value.find((e) => e.value === m.value)), _ = () => {
1276
1279
  i.value = g.value?.default;
1277
1280
  }, v = T(0), y = async (e) => {
1278
- if (!e || !r() || g.value.value !== "pixel" && g.value.value !== "percent") return;
1279
- let t = await pe({
1281
+ if (!e || !r() || !g.value || g.value.trait !== "pixel" && g.value.trait !== "percent") return;
1282
+ let t = await he({
1280
1283
  title: "",
1281
1284
  value: v.value,
1282
1285
  precision: g.value.precision,
@@ -1286,66 +1289,118 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1286
1289
  });
1287
1290
  t !== void 0 && (v.value = t);
1288
1291
  };
1289
- return P(() => {
1290
- g.value?.value === "pixel" ? v.value = ce(i.value) : g.value?.value === "percent" && (v.value = se(i.value));
1292
+ P(() => {
1293
+ g.value?.trait === "pixel" ? v.value = le(i.value) : g.value?.trait === "percent" && (v.value = ce(i.value));
1291
1294
  }), N(v, (e) => {
1292
- g.value?.value === "pixel" ? i.value = e + "px" : g.value?.value === "percent" && (i.value = e + "%");
1295
+ g.value?.trait === "pixel" ? i.value = e + "px" : g.value?.trait === "percent" && (i.value = e + "%");
1296
+ });
1297
+ let b = T("#ff00ff");
1298
+ P(() => {
1299
+ g.value?.trait === "hexColor" && ae(i.value) && (b.value = i.value);
1300
+ }), N(b, (e) => {
1301
+ g.value?.trait === "hexColor" && (i.value = e);
1302
+ });
1303
+ let x = T("primary"), S = o(() => {
1304
+ let e = [];
1305
+ if (g.value?.trait === "themeColor") for (let { value: t, title: r } of de) e.push({
1306
+ value: t,
1307
+ title: n(r)
1308
+ });
1309
+ return e;
1310
+ });
1311
+ return P(() => {
1312
+ g.value?.trait === "themeColor" && oe(i.value) && (x.value = i.value);
1313
+ }), N(x, (e) => {
1314
+ g.value?.trait === "themeColor" && (i.value = e);
1293
1315
  }), (t, n) => {
1294
- let r = D("v-select"), i = D("v-number-input"), o = D("v-btn"), d = O("ripple");
1295
- return C(), l("div", Ft, [u("div", It, [I(f(r, {
1296
- modelValue: m.value,
1297
- "onUpdate:modelValue": [n[0] ||= (e) => m.value = e, _],
1298
- density: "compact",
1299
- "hide-details": "",
1300
- items: h.value,
1301
- readonly: e.readonly,
1302
- "single-line": ""
1303
- }, null, 8, [
1304
- "modelValue",
1305
- "items",
1306
- "readonly"
1307
- ]), [[
1308
- d,
1309
- void 0,
1310
- void 0,
1311
- { stop: !0 }
1312
- ]]), g.value?.value === "pixel" || g.value?.value === "percent" ? I((C(), s(i, {
1313
- key: 0,
1314
- modelValue: v.value,
1315
- "onUpdate:modelValue": n[1] ||= (e) => v.value = e,
1316
- "control-variant": "stacked",
1317
- density: "compact",
1318
- "hide-details": "",
1319
- max: g.value.max,
1320
- min: g.value.min,
1321
- precision: g.value.precision,
1322
- readonly: e.readonly,
1323
- "single-line": "",
1324
- step: g.value.step,
1325
- "onUpdate:focused": y
1326
- }, null, 8, [
1327
- "modelValue",
1328
- "max",
1329
- "min",
1330
- "precision",
1331
- "readonly",
1332
- "step"
1333
- ])), [[
1334
- d,
1335
- void 0,
1336
- void 0,
1337
- { stop: !0 }
1338
- ]]) : c("", !0)]), e.hasDelete ? (C(), s(o, {
1316
+ let r = D("v-select"), i = D("v-number-input"), o = D("v-color-input"), d = D("v-btn"), p = O("ripple");
1317
+ return C(), l("div", Rt, [u("div", zt, [
1318
+ I(f(r, {
1319
+ modelValue: m.value,
1320
+ "onUpdate:modelValue": [n[0] ||= (e) => m.value = e, _],
1321
+ density: "compact",
1322
+ "hide-details": "",
1323
+ items: h.value,
1324
+ readonly: e.readonly,
1325
+ "single-line": ""
1326
+ }, null, 8, [
1327
+ "modelValue",
1328
+ "items",
1329
+ "readonly"
1330
+ ]), [[
1331
+ p,
1332
+ void 0,
1333
+ void 0,
1334
+ { stop: !0 }
1335
+ ]]),
1336
+ g.value?.trait === "pixel" || g.value?.trait === "percent" ? I((C(), s(i, {
1337
+ key: 0,
1338
+ modelValue: v.value,
1339
+ "onUpdate:modelValue": n[1] ||= (e) => v.value = e,
1340
+ "control-variant": "stacked",
1341
+ density: "compact",
1342
+ "hide-details": "",
1343
+ max: g.value.max,
1344
+ min: g.value.min,
1345
+ precision: g.value.precision,
1346
+ readonly: e.readonly,
1347
+ "single-line": "",
1348
+ step: g.value.step,
1349
+ "onUpdate:focused": y
1350
+ }, null, 8, [
1351
+ "modelValue",
1352
+ "max",
1353
+ "min",
1354
+ "precision",
1355
+ "readonly",
1356
+ "step"
1357
+ ])), [[
1358
+ p,
1359
+ void 0,
1360
+ void 0,
1361
+ { stop: !0 }
1362
+ ]]) : c("", !0),
1363
+ g.value?.trait === "hexColor" ? I((C(), s(o, {
1364
+ key: 1,
1365
+ modelValue: b.value,
1366
+ "onUpdate:modelValue": n[2] ||= (e) => b.value = e,
1367
+ density: "compact",
1368
+ "hide-details": "",
1369
+ "hide-pip": "",
1370
+ mode: "hexa",
1371
+ "show-swatches": "",
1372
+ "swatches-max-height": "150px"
1373
+ }, null, 8, ["modelValue"])), [[
1374
+ p,
1375
+ void 0,
1376
+ void 0,
1377
+ { stop: !0 }
1378
+ ]]) : c("", !0),
1379
+ g.value?.trait === "themeColor" ? I((C(), s(r, {
1380
+ key: 2,
1381
+ modelValue: x.value,
1382
+ "onUpdate:modelValue": n[3] ||= (e) => x.value = e,
1383
+ items: S.value,
1384
+ density: "compact",
1385
+ "hide-details": "",
1386
+ "single-line": ""
1387
+ }, null, 8, ["modelValue", "items"])), [[
1388
+ p,
1389
+ void 0,
1390
+ void 0,
1391
+ { stop: !0 }
1392
+ ]]) : c("", !0)
1393
+ ]), e.hasDelete ? (C(), s(d, {
1339
1394
  key: 0,
1340
1395
  class: "mx-2",
1341
1396
  density: "compact",
1342
1397
  icon: "mdi-minus",
1343
1398
  variant: "text",
1344
- onClick: n[2] ||= L((e) => a("delete"), ["stop"])
1399
+ onClick: n[4] ||= L((e) => a("delete"), ["stop"])
1345
1400
  })) : c("", !0)]);
1346
1401
  };
1347
1402
  }
1348
- }), Rt = { class: "d-flex justify-space-between align-center" }, zt = /* @__PURE__ */ p({
1403
+ }), Vt = { class: "d-flex justify-space-between align-center" }, Ht = /* @__PURE__ */ p({
1349
1404
  __name: "index",
1350
1405
  props: /* @__PURE__ */ _({
1351
1406
  hasDelete: {
@@ -1366,9 +1421,9 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1366
1421
  }),
1367
1422
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1368
1423
  setup(e, { emit: t }) {
1369
- let { isMobile: n } = H(), r = M(e, "modelValue"), i = t, a = async (t) => {
1424
+ let { isMobile: n } = U(), r = M(e, "modelValue"), i = t, a = async (t) => {
1370
1425
  if (!t || e.readonly || !n()) return;
1371
- let i = await pe({
1426
+ let i = await he({
1372
1427
  title: "",
1373
1428
  value: r.value,
1374
1429
  precision: e.precision,
@@ -1380,7 +1435,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1380
1435
  };
1381
1436
  return (t, n) => {
1382
1437
  let o = D("v-number-input"), u = D("v-btn"), d = O("ripple");
1383
- return C(), l("div", Rt, [I(f(o, {
1438
+ return C(), l("div", Vt, [I(f(o, {
1384
1439
  modelValue: r.value,
1385
1440
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1386
1441
  "control-variant": "stacked",
@@ -1415,7 +1470,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1415
1470
  })) : c("", !0)]);
1416
1471
  };
1417
1472
  }
1418
- }), Bt = { class: "d-flex justify-space-between align-center" }, Vt = /* @__PURE__ */ p({
1473
+ }), Ut = { class: "d-flex justify-space-between align-center" }, Wt = /* @__PURE__ */ p({
1419
1474
  __name: "index",
1420
1475
  props: /* @__PURE__ */ _({
1421
1476
  hasDelete: {
@@ -1433,9 +1488,9 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1433
1488
  }),
1434
1489
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1435
1490
  setup(e, { emit: t }) {
1436
- let { t: n } = z(), r = M(e, "modelValue"), i = t, a = Q(), u = o(() => {
1491
+ let { t: n } = B(), r = M(e, "modelValue"), i = t, a = Ve(), u = o(() => {
1437
1492
  let t = [];
1438
- return le[a.value].items[e.items].forEach(({ title: e, value: r }) => {
1493
+ return ue[a.value].items[e.items].forEach(({ title: e, value: r }) => {
1439
1494
  t.push({
1440
1495
  title: n(e),
1441
1496
  value: r
@@ -1444,7 +1499,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1444
1499
  });
1445
1500
  return (t, n) => {
1446
1501
  let a = D("v-select"), o = D("v-btn"), d = O("ripple");
1447
- return C(), l("div", Bt, [I(f(a, {
1502
+ return C(), l("div", Ut, [I(f(a, {
1448
1503
  modelValue: r.value,
1449
1504
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1450
1505
  density: "compact",
@@ -1471,7 +1526,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1471
1526
  })) : c("", !0)]);
1472
1527
  };
1473
1528
  }
1474
- }), Ht = { class: "text-body-large ml-6" }, Ut = /* @__PURE__ */ p({
1529
+ }), Gt = { class: "text-body-large ml-6" }, Kt = /* @__PURE__ */ p({
1475
1530
  __name: "item",
1476
1531
  props: {
1477
1532
  id: {},
@@ -1479,7 +1534,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1479
1534
  },
1480
1535
  emits: ["x-click"],
1481
1536
  setup(e, { emit: t }) {
1482
- let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = T(!1), s = o(() => ({
1537
+ let { backgroundColor2: n, highlightColor: r } = H(), i = t, a = T(!1), s = o(() => ({
1483
1538
  background: a.value ? r.value : n.value,
1484
1539
  height: "48px",
1485
1540
  marginTop: "1px",
@@ -1493,13 +1548,13 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1493
1548
  onClick: n[0] ||= (t) => i("x-click", e.id),
1494
1549
  onMouseout: n[1] ||= (e) => a.value = !1,
1495
1550
  onMouseover: n[2] ||= (e) => a.value = !0
1496
- }, [u("span", Ht, k(e.title), 1)], 36)), [[r]]);
1551
+ }, [u("span", Gt, k(e.title), 1)], 36)), [[r]]);
1497
1552
  };
1498
1553
  }
1499
- }), Wt = { key: 0 }, Gt = {
1554
+ }), qt = { key: 0 }, Jt = {
1500
1555
  key: 1,
1501
1556
  class: "text-body-medium text-grey ml-3"
1502
- }, Kt = /* @__PURE__ */ p({
1557
+ }, Yt = /* @__PURE__ */ p({
1503
1558
  __name: "index",
1504
1559
  props: {
1505
1560
  modelValue: {},
@@ -1512,17 +1567,17 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1512
1567
  },
1513
1568
  emits: ["update:modelValue", "update:open"],
1514
1569
  setup(e) {
1515
- let { nameList: t } = H(), n = M(e, "modelValue"), r = M(e, "open"), i = tt(), o = (e) => {
1570
+ let { nameList: t } = U(), n = M(e, "modelValue"), r = M(e, "open"), i = it(), o = (e) => {
1516
1571
  n.value = e, r.value = !1;
1517
1572
  };
1518
- return (e, n) => A(i).length > 0 ? (C(), l("div", Wt, [(C(!0), l(a, null, E(A(i), (e) => (C(), s(Ut, {
1573
+ return (e, n) => A(i).length > 0 ? (C(), l("div", qt, [(C(!0), l(a, null, E(A(i), (e) => (C(), s(Kt, {
1519
1574
  key: e.id,
1520
1575
  id: e.id,
1521
1576
  title: e.name,
1522
1577
  onXClick: o
1523
- }, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", Gt, k(A(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
1578
+ }, null, 8, ["id", "title"]))), 128))])) : (C(), l("div", Jt, k(A(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
1524
1579
  }
1525
- }), qt = { class: "text-body-large" }, Jt = /* @__PURE__ */ p({
1580
+ }), Xt = { class: "text-body-large" }, Zt = /* @__PURE__ */ p({
1526
1581
  __name: "index",
1527
1582
  props: /* @__PURE__ */ _({
1528
1583
  hasDelete: {
@@ -1539,7 +1594,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1539
1594
  }),
1540
1595
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1541
1596
  setup(e, { emit: t }) {
1542
- let { t: n } = z(), r = ge(), { sysBarAvail: i, nameList: a } = H(), { backgroundColor1: l } = V(), p = M(e, "modelValue"), m = t, h = tt(), _ = o(() => {
1597
+ let { t: n } = B(), r = ve(), { sysBarAvail: i, nameList: a } = U(), { backgroundColor1: l } = H(), p = M(e, "modelValue"), m = t, h = it(), _ = o(() => {
1543
1598
  let e = "100%";
1544
1599
  return r.mdAndUp.value && (e = "400px"), {
1545
1600
  background: l.value,
@@ -1556,7 +1611,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1556
1611
  if (!p.value) return n("x-runtime-lib.notSet");
1557
1612
  let e = h.value.find((e) => e.id === p.value);
1558
1613
  return e ? e.name : n("x-runtime-lib.slotNotAvail");
1559
- }), { open: T } = U(`propTreeSlotSelectDlg${j()}`);
1614
+ }), { open: T } = W(`propTreeSlotSelectDlg${j()}`);
1560
1615
  return S(() => {
1561
1616
  T.value = !1;
1562
1617
  }), (t, n) => {
@@ -1608,13 +1663,13 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1608
1663
  icon: "mdi-close",
1609
1664
  variant: "text",
1610
1665
  onClick: n[1] ||= (e) => T.value = !1
1611
- }), u("span", qt, k(A(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
1666
+ }), u("span", Xt, k(A(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
1612
1667
  _: 1
1613
1668
  }),
1614
1669
  u("div", {
1615
1670
  class: "overflow-y-auto",
1616
1671
  style: y(b.value)
1617
- }, [f(Kt, {
1672
+ }, [f(Yt, {
1618
1673
  modelValue: p.value,
1619
1674
  "onUpdate:modelValue": n[2] ||= (e) => p.value = e,
1620
1675
  open: A(T),
@@ -1625,7 +1680,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1625
1680
  }, 8, ["modelValue"]);
1626
1681
  };
1627
1682
  }
1628
- }), Yt = { class: "d-flex justify-space-between align-center" }, Xt = /* @__PURE__ */ p({
1683
+ }), Qt = { class: "d-flex justify-space-between align-center" }, $t = /* @__PURE__ */ p({
1629
1684
  __name: "index",
1630
1685
  props: /* @__PURE__ */ _({
1631
1686
  hasDelete: {
@@ -1642,9 +1697,9 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1642
1697
  }),
1643
1698
  emits: /* @__PURE__ */ _(["delete"], ["update:modelValue"]),
1644
1699
  setup(e, { emit: t }) {
1645
- let { isMobile: n } = H(), r = M(e, "modelValue"), i = t, a = async (t) => {
1700
+ let { isMobile: n } = U(), r = M(e, "modelValue"), i = t, a = async (t) => {
1646
1701
  if (!t || e.readonly || !n()) return;
1647
- let i = await me({
1702
+ let i = await ge({
1648
1703
  title: "",
1649
1704
  value: r.value
1650
1705
  });
@@ -1652,7 +1707,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1652
1707
  };
1653
1708
  return (t, n) => {
1654
1709
  let o = D("v-text-field"), u = D("v-btn"), d = O("ripple");
1655
- return C(), l("div", Yt, [I(f(o, {
1710
+ return C(), l("div", Qt, [I(f(o, {
1656
1711
  modelValue: r.value,
1657
1712
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
1658
1713
  density: "compact",
@@ -1675,7 +1730,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1675
1730
  })) : c("", !0)]);
1676
1731
  };
1677
1732
  }
1678
- }), Zt = { class: "d-flex justify-space-between align-center" }, Qt = /* @__PURE__ */ p({
1733
+ }), en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PURE__ */ p({
1679
1734
  __name: "index",
1680
1735
  props: /* @__PURE__ */ _({
1681
1736
  hasDelete: {
@@ -1695,7 +1750,7 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1695
1750
  let n = M(e, "modelValue"), r = t;
1696
1751
  return (t, i) => {
1697
1752
  let a = D("v-switch"), o = D("v-btn");
1698
- return C(), l("div", Zt, [f(a, {
1753
+ return C(), l("div", en, [f(a, {
1699
1754
  modelValue: n.value,
1700
1755
  "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
1701
1756
  class: "ml-1",
@@ -1716,14 +1771,14 @@ var ut = { class: "text-label-large ml-1" }, dt = { class: "text-body-small text
1716
1771
  });
1717
1772
  //#endregion
1718
1773
  //#region src/composables/uis/uiAdaptSlotSelect.ts
1719
- function $t() {
1774
+ function nn() {
1720
1775
  let e = $();
1721
1776
  return { renderUiAdaptSlotSelect: (t, n, r, i, a) => {
1722
1777
  if (n.ui !== "selectAdaptSlot") throw Error("renderUiSlotSelect property ui must be selectAdaptSlot");
1723
- return m(yt, {
1724
- modelValue: J(t, n, r, i, a, e),
1778
+ return m(St, {
1779
+ modelValue: Y(t, n, r, i, a, e),
1725
1780
  "onUpdate:modelValue": (o) => {
1726
- Y(t, n, r, o, i, a, e);
1781
+ X(t, n, r, o, i, a, e);
1727
1782
  },
1728
1783
  hasDelete: i !== void 0 && !a,
1729
1784
  onDelete: () => {
@@ -1735,14 +1790,14 @@ function $t() {
1735
1790
  }
1736
1791
  //#endregion
1737
1792
  //#region src/composables/uis/uiColorPicker.ts
1738
- function en() {
1793
+ function rn() {
1739
1794
  let e = $();
1740
1795
  return { renderUiColorPicker: (t, n, r, i, a) => {
1741
1796
  if (n.ui !== "colorPicker") throw Error("renderUiColorPicker property ui must be colorPicker");
1742
- return m(xt, {
1743
- modelValue: J(t, n, r, i, a, e),
1797
+ return m(wt, {
1798
+ modelValue: Y(t, n, r, i, a, e),
1744
1799
  "onUpdate:modelValue": (o) => {
1745
- Y(t, n, r, o, i, a, e);
1800
+ X(t, n, r, o, i, a, e);
1746
1801
  },
1747
1802
  hasDelete: i !== void 0 && !a,
1748
1803
  onDelete: () => {
@@ -1754,14 +1809,14 @@ function en() {
1754
1809
  }
1755
1810
  //#endregion
1756
1811
  //#region src/composables/uis/uiCompSelect.ts
1757
- function tn() {
1812
+ function an() {
1758
1813
  let e = $();
1759
1814
  return { renderUiCompSelect: (t, n, r, i, a) => {
1760
1815
  if (n.ui !== "selectComp") throw Error("renderUiCompSelect property ui must be selectComp");
1761
- return m(jt, {
1762
- modelValue: J(t, n, r, i, a, e),
1816
+ return m(Pt, {
1817
+ modelValue: Y(t, n, r, i, a, e),
1763
1818
  "onUpdate:modelValue": (o) => {
1764
- Y(t, n, r, o, i, a, e);
1819
+ X(t, n, r, o, i, a, e);
1765
1820
  },
1766
1821
  hasDelete: i !== void 0 && !a,
1767
1822
  onDelete: () => {
@@ -1773,23 +1828,23 @@ function tn() {
1773
1828
  }
1774
1829
  //#endregion
1775
1830
  //#region src/composables/uis/uiDummy.ts
1776
- function nn() {
1831
+ function on() {
1777
1832
  let e = $();
1778
1833
  return { renderUiDummy: (t, n, r, i, a) => {
1779
1834
  if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
1780
- J(t, n, r, i, a, e);
1835
+ Y(t, n, r, i, a, e);
1781
1836
  } };
1782
1837
  }
1783
1838
  //#endregion
1784
1839
  //#region src/composables/uis/uiJsonEditor.ts
1785
- function rn() {
1840
+ function sn() {
1786
1841
  let e = $();
1787
1842
  return { renderUiJsonEditor: (t, n, r, i, a) => {
1788
1843
  if (n.ui !== "jsonEditor") throw Error("renderUijsonEditor property ui must be jsonEditor");
1789
- return m(Pt, {
1790
- modelValue: J(t, n, r, i, a, e) ?? "{}",
1844
+ return m(Lt, {
1845
+ modelValue: Y(t, n, r, i, a, e) ?? "{}",
1791
1846
  "onUpdate:modelValue": (o) => {
1792
- Y(t, n, r, o, i, a, e);
1847
+ X(t, n, r, o, i, a, e);
1793
1848
  },
1794
1849
  hasDelete: i !== void 0 && !a,
1795
1850
  onDelete: () => {
@@ -1801,14 +1856,14 @@ function rn() {
1801
1856
  }
1802
1857
  //#endregion
1803
1858
  //#region src/composables/uis/uiMultiTypes.ts
1804
- function an() {
1859
+ function cn() {
1805
1860
  let e = $();
1806
1861
  return { renderUiMultiTypes: (t, n, r, i, a) => {
1807
1862
  if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
1808
- return m(Lt, {
1809
- modelValue: J(t, n, r, i, a, e) ?? "",
1863
+ return m(Bt, {
1864
+ modelValue: Y(t, n, r, i, a, e) ?? "",
1810
1865
  "onUpdate:modelValue": (o) => {
1811
- Y(t, n, r, o, i, a, e);
1866
+ X(t, n, r, o, i, a, e);
1812
1867
  },
1813
1868
  hasDelete: i !== void 0 && !a,
1814
1869
  onDelete: () => {
@@ -1820,14 +1875,14 @@ function an() {
1820
1875
  }
1821
1876
  //#endregion
1822
1877
  //#region src/composables/uis/uiNumInput.ts
1823
- function on() {
1878
+ function ln() {
1824
1879
  let e = $();
1825
1880
  return { renderUiNumInput: (t, n, r, i, a) => {
1826
1881
  if (n.ui !== "numInput") throw Error("renderUiNumInput property ui must be numInput");
1827
- return m(zt, {
1828
- modelValue: J(t, n, r, i, a, e),
1882
+ return m(Ht, {
1883
+ modelValue: Y(t, n, r, i, a, e),
1829
1884
  "onUpdate:modelValue": (o) => {
1830
- Y(t, n, r, o, i, a, e);
1885
+ X(t, n, r, o, i, a, e);
1831
1886
  },
1832
1887
  hasDelete: i !== void 0 && !a,
1833
1888
  onDelete: () => {
@@ -1843,12 +1898,12 @@ function on() {
1843
1898
  }
1844
1899
  //#endregion
1845
1900
  //#region src/components/entry/index.vue
1846
- var sn = /* @__PURE__ */ p({
1901
+ var un = /* @__PURE__ */ p({
1847
1902
  __name: "index",
1848
1903
  props: { minHeight: {} },
1849
1904
  emits: ["menu"],
1850
1905
  setup(e, { emit: t }) {
1851
- let { backgroundColor2: n, highlightColor: r } = V(), i = t, a = T(!1), s = o(() => ({
1906
+ let { backgroundColor2: n, highlightColor: r } = H(), i = t, a = T(!1), s = o(() => ({
1852
1907
  background: a.value ? r.value : n.value,
1853
1908
  minHeight: e.minHeight,
1854
1909
  paddingRight: "4px",
@@ -1871,14 +1926,14 @@ var sn = /* @__PURE__ */ p({
1871
1926
  });
1872
1927
  //#endregion
1873
1928
  //#region src/composables/uis/uiProperty.ts
1874
- function cn() {
1875
- let { t: e } = z(), t = Xe();
1929
+ function dn() {
1930
+ let { t: e } = B(), t = $e();
1876
1931
  return { renderProperty: (n, r, i) => {
1877
1932
  let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
1878
- return Z(t.value, n) && (o += " *"), m(sn, {
1933
+ return Q(t.value, n) && (o += " *"), m(un, {
1879
1934
  minHeight: "56px",
1880
1935
  onMenu: (e, t) => {
1881
- B.emit("propTreeMenu", {
1936
+ V.emit("propTreeMenu", {
1882
1937
  x: e,
1883
1938
  y: t,
1884
1939
  keys: n
@@ -1895,14 +1950,14 @@ function cn() {
1895
1950
  }
1896
1951
  //#endregion
1897
1952
  //#region src/composables/uis/uiSelect.ts
1898
- function ln() {
1953
+ function fn() {
1899
1954
  let e = $();
1900
1955
  return { renderUiSelect: (t, n, r, i, a) => {
1901
1956
  if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
1902
- return m(Vt, {
1903
- modelValue: J(t, n, r, i, a, e) ?? "",
1957
+ return m(Wt, {
1958
+ modelValue: Y(t, n, r, i, a, e) ?? "",
1904
1959
  "onUpdate:modelValue": (o) => {
1905
- Y(t, n, r, o, i, a, e);
1960
+ X(t, n, r, o, i, a, e);
1906
1961
  },
1907
1962
  hasDelete: i !== void 0 && !a,
1908
1963
  onDelete: () => {
@@ -1915,14 +1970,14 @@ function ln() {
1915
1970
  }
1916
1971
  //#endregion
1917
1972
  //#region src/composables/uis/uiSlotSelect.ts
1918
- function un() {
1973
+ function pn() {
1919
1974
  let e = $();
1920
1975
  return { renderUiSlotSelect: (t, n, r, i, a) => {
1921
1976
  if (n.ui !== "selectSlot") throw Error("renderUiSlotSelect property ui must be selectSlot");
1922
- return m(Jt, {
1923
- modelValue: J(t, n, r, i, a, e),
1977
+ return m(Zt, {
1978
+ modelValue: Y(t, n, r, i, a, e),
1924
1979
  "onUpdate:modelValue": (o) => {
1925
- Y(t, n, r, o, i, a, e);
1980
+ X(t, n, r, o, i, a, e);
1926
1981
  },
1927
1982
  hasDelete: i !== void 0 && !a,
1928
1983
  onDelete: () => {
@@ -1934,14 +1989,14 @@ function un() {
1934
1989
  }
1935
1990
  //#endregion
1936
1991
  //#region src/composables/uis/uiStrInput.ts
1937
- function dn() {
1992
+ function mn() {
1938
1993
  let e = $();
1939
1994
  return { renderUiStrInput: (t, n, r, i, a) => {
1940
1995
  if (n.ui !== "strInput") throw Error("renderUiStrInput property ui must be strInput");
1941
- return m(Xt, {
1942
- modelValue: n.static ? n.value : J(t, n, r, i, a, e),
1996
+ return m($t, {
1997
+ modelValue: n.static ? n.value : Y(t, n, r, i, a, e),
1943
1998
  "onUpdate:modelValue": (o) => {
1944
- n.static || Y(t, n, r, o, i, a, e);
1999
+ n.static || X(t, n, r, o, i, a, e);
1945
2000
  },
1946
2001
  hasDelete: i !== void 0 && !a,
1947
2002
  onDelete: () => {
@@ -1953,14 +2008,14 @@ function dn() {
1953
2008
  }
1954
2009
  //#endregion
1955
2010
  //#region src/composables/uis/uiSwitch.ts
1956
- function fn() {
2011
+ function hn() {
1957
2012
  let e = $();
1958
2013
  return { renderUiSwitch: (t, n, r, i, a) => {
1959
2014
  if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
1960
- return m(Qt, {
1961
- modelValue: J(t, n, r, i, a, e) ?? !1,
2015
+ return m(tn, {
2016
+ modelValue: Y(t, n, r, i, a, e) ?? !1,
1962
2017
  "onUpdate:modelValue": (o) => {
1963
- Y(t, n, r, o, i, a, e);
2018
+ X(t, n, r, o, i, a, e);
1964
2019
  },
1965
2020
  hasDelete: i !== void 0 && !a,
1966
2021
  onDelete: () => {
@@ -1972,25 +2027,25 @@ function fn() {
1972
2027
  }
1973
2028
  //#endregion
1974
2029
  //#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
1975
- var pn = "20px", mn = /* @__PURE__ */ p({
2030
+ var gn = "20px", _n = /* @__PURE__ */ p({
1976
2031
  __name: "main",
1977
2032
  setup(t) {
1978
- let { t: n } = z(), { backgroundColor1: r } = V(), i = We(), o = Ke(), s = Je(), c = Xe(), u = $();
1979
- ct(), lt(), st();
1980
- let { renderProperty: d } = cn(), { renderUiDummy: p } = nn(), { renderUiStrInput: h } = dn(), { renderUiNumInput: g } = on(), { renderUiSwitch: _ } = fn(), { renderUiSelect: v } = ln(), { renderUiColorPicker: y } = en(), { renderUiJsonEditor: b } = rn(), { renderUiMultiTypes: x } = an(), { renderUiCompSelect: S } = tn(), { renderUiSlotSelect: w } = un(), { renderUiAdaptSlotSelect: T } = $t(), 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) => {
2033
+ let { t: n } = B(), { backgroundColor1: r } = H(), i = qe(), o = Ye(), s = Ze(), c = $e(), u = $();
2034
+ dt(), ft(), ut();
2035
+ 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) => {
1981
2036
  if (t.ui) throw Error("renderBranchArray property ui must be invalid");
1982
2037
  if (!t.array) throw Error("renderBranchArray property array must be valid");
1983
- let o = ve(e, t, r, i, a, u), l = n(t.name);
1984
- W(s, e) && Z(c.value, e) && (l += " *");
1985
- let d = m(ot, {
2038
+ let o = be(e, t, r, i, a, u), l = n(t.name);
2039
+ G(s, e) && Q(c.value, e) && (l += " *");
2040
+ let d = m(lt, {
1986
2041
  title: l,
1987
- collapse: W(s, e),
2042
+ collapse: G(s, e),
1988
2043
  hasCreate: !0,
1989
2044
  onCollapse: (t) => {
1990
- G(s, e, t);
2045
+ K(s, e, t);
1991
2046
  },
1992
2047
  onMenu: (t, n) => {
1993
- B.emit("propTreeMenu", {
2048
+ V.emit("propTreeMenu", {
1994
2049
  x: t,
1995
2050
  y: n,
1996
2051
  keys: e
@@ -1999,21 +2054,21 @@ var pn = "20px", mn = /* @__PURE__ */ p({
1999
2054
  onCreate: () => {
2000
2055
  o.push({}), u(e, o);
2001
2056
  }
2002
- }), f = m("div", { style: { paddingLeft: pn } }, (() => {
2057
+ }), f = m("div", { style: { paddingLeft: gn } }, (() => {
2003
2058
  let n = [];
2004
2059
  for (let r = 0; r < o.length; r++) {
2005
2060
  let i = [...e, r], a = `[${r + 1}]`;
2006
- W(s, [...e, r]) && Z(c.value, i) && (a += " *");
2007
- let l = m(ot, {
2061
+ G(s, [...e, r]) && Q(c.value, i) && (a += " *");
2062
+ let l = m(lt, {
2008
2063
  title: a,
2009
- collapse: W(s, [...e, r]),
2064
+ collapse: G(s, [...e, r]),
2010
2065
  hasDelete: !0,
2011
2066
  index: r,
2012
2067
  onCollapse: (t) => {
2013
- G(s, [...e, r], t);
2068
+ K(s, [...e, r], t);
2014
2069
  },
2015
2070
  onMenu: (e, t) => {
2016
- B.emit("propTreeMenu", {
2071
+ V.emit("propTreeMenu", {
2017
2072
  x: e,
2018
2073
  y: t,
2019
2074
  keys: i
@@ -2024,33 +2079,33 @@ var pn = "20px", mn = /* @__PURE__ */ p({
2024
2079
  }
2025
2080
  });
2026
2081
  n.push(l);
2027
- let d = m("div", { style: { paddingLeft: pn } }, (() => {
2082
+ let d = m("div", { style: { paddingLeft: gn } }, (() => {
2028
2083
  let n = [];
2029
2084
  for (let i of t.children) n.push(E(e, i, o[r], r, !0));
2030
2085
  return n;
2031
2086
  })());
2032
- W(s, [...e, r]) || n.push(d);
2087
+ G(s, [...e, r]) || n.push(d);
2033
2088
  }
2034
2089
  return n;
2035
2090
  })());
2036
2091
  return m("div", { style: { marginTop: "1px" } }, (() => {
2037
2092
  let t = [];
2038
- return t.push(d), W(s, e) || t.push(f), t;
2093
+ return t.push(d), G(s, e) || t.push(f), t;
2039
2094
  })());
2040
2095
  }, D = (e, t, r, i, a) => {
2041
2096
  if (t.ui) throw Error("renderBranchScalar property ui must be invalid");
2042
2097
  if (t.array) throw Error("renderBranchScalar property array must be invalid");
2043
2098
  let o = n(t.name);
2044
- W(s, e) && Z(c.value, e) && (o += " *");
2045
- let l = m(ot, {
2099
+ G(s, e) && Q(c.value, e) && (o += " *");
2100
+ let l = m(lt, {
2046
2101
  title: o,
2047
- collapse: W(s, e),
2102
+ collapse: G(s, e),
2048
2103
  hasDelete: i !== void 0 && !a,
2049
2104
  onCollapse: (t) => {
2050
- G(s, e, t);
2105
+ K(s, e, t);
2051
2106
  },
2052
2107
  onMenu: (t, n) => {
2053
- B.emit("propTreeMenu", {
2108
+ V.emit("propTreeMenu", {
2054
2109
  x: t,
2055
2110
  y: n,
2056
2111
  keys: e
@@ -2059,29 +2114,29 @@ var pn = "20px", mn = /* @__PURE__ */ p({
2059
2114
  onDelete: () => {
2060
2115
  i === void 0 || a || (r.splice(i, 1), u(e.slice(0, -1), r));
2061
2116
  }
2062
- }), d = m("div", { style: { paddingLeft: pn } }, (() => {
2117
+ }), d = m("div", { style: { paddingLeft: gn } }, (() => {
2063
2118
  let n = [];
2064
2119
  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));
2065
2120
  return n;
2066
2121
  })());
2067
2122
  return m("div", { style: { marginTop: "1px" } }, (() => {
2068
2123
  let t = [];
2069
- return t.push(l), W(s, e) || t.push(d), t;
2124
+ return t.push(l), G(s, e) || t.push(d), t;
2070
2125
  })());
2071
2126
  }, O = (e, t, r, i, a) => {
2072
2127
  if (!t.ui) throw Error("renderLeafArray property ui must be valid");
2073
2128
  if (!t.array) throw Error("renderLeafArray property array must be valid");
2074
- let o = ve(e, t, r, i, a, u), l = n(t.name);
2075
- W(s, e) && Z(c.value, e) && (l += " *");
2076
- let d = m(ot, {
2129
+ let o = be(e, t, r, i, a, u), l = n(t.name);
2130
+ G(s, e) && Q(c.value, e) && (l += " *");
2131
+ let d = m(lt, {
2077
2132
  title: l,
2078
- collapse: W(s, e),
2133
+ collapse: G(s, e),
2079
2134
  hasCreate: !0,
2080
2135
  onCollapse: (t) => {
2081
- G(s, e, t);
2136
+ K(s, e, t);
2082
2137
  },
2083
2138
  onMenu: (t, n) => {
2084
- B.emit("propTreeMenu", {
2139
+ V.emit("propTreeMenu", {
2085
2140
  x: t,
2086
2141
  y: n,
2087
2142
  keys: e
@@ -2090,14 +2145,14 @@ var pn = "20px", mn = /* @__PURE__ */ p({
2090
2145
  onCreate: () => {
2091
2146
  o.push(R(t)), u(e, o);
2092
2147
  }
2093
- }), f = m("div", { style: { paddingLeft: pn } }, (() => {
2148
+ }), f = m("div", { style: { paddingLeft: gn } }, (() => {
2094
2149
  let n = [];
2095
2150
  for (let r = 0; r < o.length; r++) n.push(E(e, t, o, r, !1, !0));
2096
2151
  return n;
2097
2152
  })());
2098
2153
  return m("div", { style: { marginTop: "1px" } }, (() => {
2099
2154
  let t = [];
2100
- return t.push(d), W(s, e) || t.push(f), t;
2155
+ return t.push(d), G(s, e) || t.push(f), t;
2101
2156
  })());
2102
2157
  }, k = (e, t, n, r, i) => {
2103
2158
  if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
@@ -2111,9 +2166,9 @@ var pn = "20px", mn = /* @__PURE__ */ p({
2111
2166
  if (i.value.length > 0 && o.value) for (let t of i.value) e.push(E([], t, o.value, void 0, !1));
2112
2167
  return e;
2113
2168
  })());
2114
- return (e, t) => (C(), l(a, null, [f(A), f(it)], 64));
2169
+ return (e, t) => (C(), l(a, null, [f(A), f(st)], 64));
2115
2170
  }
2116
- }), hn = /* @__PURE__ */ p({
2171
+ }), vn = /* @__PURE__ */ p({
2117
2172
  __name: "index",
2118
2173
  props: {
2119
2174
  config: {},
@@ -2125,25 +2180,25 @@ var pn = "20px", mn = /* @__PURE__ */ p({
2125
2180
  emits: ["change"],
2126
2181
  setup(e, { emit: t }) {
2127
2182
  let n = t, r = T([]);
2128
- Ue(r), P(() => {
2183
+ Ke(r), P(() => {
2129
2184
  r.value = e.config;
2130
2185
  });
2131
2186
  let i = T();
2132
- Ge(i), P(() => {
2187
+ Je(i), P(() => {
2133
2188
  i.value = e.object;
2134
2189
  });
2135
2190
  let a = T("");
2136
- Re(a), P(() => {
2191
+ Be(a), P(() => {
2137
2192
  a.value = e.version;
2138
2193
  });
2139
2194
  let o = T(e.type);
2140
- ze(o), P(() => {
2195
+ He(o), P(() => {
2141
2196
  o.value = e.type;
2142
2197
  });
2143
2198
  let c = T("");
2144
- Ve(c), P(() => {
2199
+ We(c), P(() => {
2145
2200
  c.value = e.subtype;
2146
- }), qe(T({
2201
+ }), Xe(T({
2147
2202
  collapse: !0,
2148
2203
  children: {}
2149
2204
  }));
@@ -2152,15 +2207,15 @@ var pn = "20px", mn = /* @__PURE__ */ p({
2152
2207
  warning: !1,
2153
2208
  children: {}
2154
2209
  });
2155
- return Ye(l), Ze((t, r) => {
2156
- Ee(l, e.config, e.object), n("change", t, r);
2210
+ return Qe(l), et((t, r) => {
2211
+ Oe(l, e.config, e.object), n("change", t, r);
2157
2212
  }), N([() => e.config, () => e.object], () => {
2158
- Ee(l, e.config, e.object);
2159
- }, { immediate: !0 }), (e, t) => (C(), s(mn));
2213
+ Oe(l, e.config, e.object);
2214
+ }, { immediate: !0 }), (e, t) => (C(), s(_n));
2160
2215
  }
2161
- }), gn = (e) => {
2162
- e.component("XPropTree", hn);
2163
- }, _n = (e, t, n) => {
2216
+ }), yn = (e) => {
2217
+ e.component("XPropTree", vn);
2218
+ }, bn = (e, t, n) => {
2164
2219
  let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
2165
2220
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
2166
2221
  (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."))));
@@ -2168,14 +2223,14 @@ var pn = "20px", mn = /* @__PURE__ */ p({
2168
2223
  };
2169
2224
  //#endregion
2170
2225
  //#region src/i18n/index.ts
2171
- async function vn(e) {
2172
- return (await _n(/* @__PURE__ */ Object.assign({
2226
+ async function xn(e) {
2227
+ return (await bn(/* @__PURE__ */ Object.assign({
2173
2228
  "./locales/en/index.ts": () => import("./i18n-en.lvwojc1f.js").then((e) => e.t),
2174
2229
  "./locales/zhHans/index.ts": () => import("./i18n-zhHans.u8lopwp1.js").then((e) => e.t)
2175
2230
  }), `./locales/${e}/index.ts`, 4)).default;
2176
2231
  }
2177
2232
  //#endregion
2178
2233
  //#region src/index.ts
2179
- var yn = { install: gn };
2234
+ var Sn = { install: yn };
2180
2235
  //#endregion
2181
- export { yn as default, vn as loadLocaleMessagePropTree };
2236
+ export { Sn as default, xn as loadLocaleMessagePropTree };