x-prop-tree 0.7.24 → 0.7.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { provide as ae, inject as ce, defineComponent as E, ref as T, computed as L, resolveComponent as $, createBlock as B, openBlock as _, unref as P, isRef as re, withCtx as R, createVNode as b, createElementBlock as K, Fragment as fe, renderList as Te, createTextVNode as ke, toDisplayString as F, resolveDirective as ee, withDirectives as j, withModifiers as X, normalizeStyle as W, createElementVNode as q, createCommentVNode as G, onMounted as He, onBeforeUnmount as Xe, watch as oe, mergeModels as Z, useModel as z, useId as $e, onUnmounted as we, mergeProps as Me, withKeys as Le, useTemplateRef as Fe, watchEffect as Ke, h as k, renderSlot as kt, reactive as _t } from "vue";
2
- import { useI18n as I } from "vue-i18n";
3
- import { useViewStack as _e, useColor as te, globalObjects as xt, eventBus as de, useSystem as pe, injectDark as St, injectLocale as Vt, openNumberDlg as ze, openPromptDlg as Ct } from "x-essential-lib";
4
- import { getPropertyDefault as J, pkgs as Ne, getPropertyTag as Ut, elements as $t, makeSlotId as Re, parsePixelStr as wt, parsePercentStr as Mt } from "x-runtime-lib";
5
- import { c as Ge, i as be, r as ve, d as Ye, v as We } from "./vendor.f0ug048x.js";
6
- import { globalState as Qe } from "x-state-lib";
7
- import { useDisplay as Ze } from "vuetify";
8
- import { XBlockly as bt } from "x-block-lib";
9
- const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t, s) => {
1
+ import { provide as re, inject as ae, defineComponent as E, ref as O, computed as A, resolveComponent as V, createBlock as B, openBlock as S, unref as L, isRef as ie, withCtx as q, createVNode as w, createElementBlock as R, Fragment as ve, renderList as Ne, createTextVNode as ge, toDisplayString as H, resolveDirective as te, withDirectives as j, withModifiers as J, normalizeStyle as z, createElementVNode as D, createCommentVNode as Y, onMounted as Oe, onBeforeUnmount as Be, watch as se, useModel as G, useId as Se, onUnmounted as xe, withKeys as Me, mergeProps as Ve, mergeModels as Z, useTemplateRef as Ye, watchEffect as He, h as x, renderSlot as St, reactive as xt } from "vue";
2
+ import { useI18n as ne } from "vue-i18n";
3
+ import { useViewStack as ye, useColor as I, globalObjects as Vt, useSystem as ue, eventBus as me, injectDark as Ct, injectLocale as Ut, openNumberDlg as We, openPromptDlg as $t } from "x-essential-lib";
4
+ import { getPropertyDefault as X, pkgs as qe, getPropertyTag as bt, elements as wt, makeSlotId as Fe, parsePixelStr as Mt, parsePercentStr as Pt } from "x-runtime-lib";
5
+ import { c as Qe, i as Pe, r as pe, d as Ze, v as je } from "./vendor.f0ug048x.js";
6
+ import { globalState as Ke } from "x-state-lib";
7
+ import { useDisplay as Re } from "vuetify";
8
+ import { XBlockly as Lt } from "x-block-lib";
9
+ const ze = (t) => !(t instanceof Array), Te = (t) => t instanceof Array, At = (t, s) => {
10
10
  const n = (e, l) => {
11
11
  if (e.ui !== l.ui || e.array !== l.array)
12
12
  return !1;
@@ -20,7 +20,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
20
20
  return !0;
21
21
  };
22
22
  return n(t, s);
23
- }, Ce = (t, s) => {
23
+ }, be = (t, s) => {
24
24
  let n = {
25
25
  key: "",
26
26
  name: "",
@@ -42,7 +42,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
42
42
  n = n.children.find((l) => l.key === e);
43
43
  }
44
44
  }), n;
45
- }, he = (t, s) => {
45
+ }, ke = (t, s) => {
46
46
  let n = t;
47
47
  return s.forEach((e) => {
48
48
  if (!n) {
@@ -51,39 +51,39 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
51
51
  }
52
52
  n = n[e];
53
53
  }), n;
54
- }, ne = (t, s, n, e, l, o) => {
54
+ }, ee = (t, s, n, e, l, o) => {
55
55
  if (l !== void 0)
56
56
  if (o) {
57
57
  if (n[s.key] === void 0) {
58
- const i = J(s);
58
+ const i = X(s);
59
59
  i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
60
60
  }
61
61
  return n[s.key];
62
62
  } else {
63
63
  if (n[l] === void 0) {
64
- const i = J(s, !0);
64
+ const i = X(s, !0);
65
65
  i !== void 0 && (n[l] = i, e(t, n[l]));
66
66
  }
67
67
  return n[l];
68
68
  }
69
69
  else {
70
70
  if (n[s.key] === void 0) {
71
- const i = J(s);
71
+ const i = X(s);
72
72
  i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
73
73
  }
74
74
  return n[s.key];
75
75
  }
76
- }, se = (t, s, n, e, l, o, i) => {
76
+ }, le = (t, s, n, e, l, o, i) => {
77
77
  if (o !== void 0)
78
78
  i ? e !== n[s.key] && (n[s.key] = e, l(t, n[s.key])) : e !== n[o] && (n[o] = e, l(t, n[o]));
79
79
  else {
80
80
  let u = e;
81
81
  (s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (u = void 0)), u !== n[s.key] && (n[s.key] = u, l(t, n[s.key]));
82
82
  }
83
- }, Be = (t) => !(t instanceof Array), Pe = (t) => t instanceof Array, Dt = [
83
+ }, Ee = (t) => !(t instanceof Array), Le = (t) => t instanceof Array, Dt = [
84
84
  ["basic", "id"],
85
85
  ["basic", "name"]
86
- ], At = (t) => Dt.find((s) => be(t, s)), De = (t, s, n, e, l, o, i) => (t = Ge(t), o !== void 0 ? (t.push(o), i && t.push(s.key)) : t.push(s.key), At(t) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && Pe(e.children) ? Nt(
86
+ ], Tt = (t) => Dt.find((s) => Pe(t, s)), Ae = (t, s, n, e, l, o, i) => (t = Qe(t), o !== void 0 ? (t.push(o), i && t.push(s.key)) : t.push(s.key), Tt(t) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && Le(e.children) ? Bt(
87
87
  t,
88
88
  s,
89
89
  n,
@@ -91,13 +91,13 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
91
91
  l,
92
92
  o,
93
93
  i
94
- ) : Bt(
94
+ ) : qt(
95
95
  s,
96
96
  n,
97
97
  e,
98
98
  o,
99
99
  i
100
- ) : s.array ? Tt(
100
+ ) : s.array ? Nt(
101
101
  t,
102
102
  s,
103
103
  n,
@@ -105,7 +105,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
105
105
  l,
106
106
  o,
107
107
  i
108
- ) : Lt(
108
+ ) : Ot(
109
109
  t,
110
110
  s,
111
111
  n,
@@ -113,7 +113,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
113
113
  l,
114
114
  o,
115
115
  i
116
- )), Tt = (t, s, n, e, l, o, i) => {
116
+ )), Nt = (t, s, n, e, l, o, i) => {
117
117
  if (s.ui)
118
118
  return console.assert(!1, "execPropertyBranchArray property ui must be invalid"), !1;
119
119
  if (!s.array)
@@ -121,13 +121,13 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
121
121
  !1,
122
122
  "execPropertyBranchArray property array must be valid"
123
123
  ), !1;
124
- if (!e.children || !Pe(e.children))
124
+ if (!e.children || !Le(e.children))
125
125
  return console.assert(
126
126
  !1,
127
127
  "execPropertyBranchArray state children must be array"
128
128
  ), !1;
129
129
  let u;
130
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = J(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = J(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
130
+ o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = X(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = X(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
131
131
  for (let r = 0; r < u.length; r++) {
132
132
  e.children.push({
133
133
  change: !1,
@@ -135,14 +135,14 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
135
135
  });
136
136
  const a = e.children[r];
137
137
  s.children.forEach((d) => {
138
- if (!a.children || !Be(a.children)) {
138
+ if (!a.children || !Ee(a.children)) {
139
139
  console.assert(!1);
140
140
  return;
141
141
  }
142
142
  a.children[d.key] = {
143
143
  change: !1,
144
144
  children: d.array ? [] : {}
145
- }, De(
145
+ }, Ae(
146
146
  t,
147
147
  d,
148
148
  u[r],
@@ -153,8 +153,8 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
153
153
  ) && (a.change = !0), a.change && (e.change = !0);
154
154
  });
155
155
  }
156
- return e.change || (e.change = !be(u, J(s))), e.change;
157
- }, Lt = (t, s, n, e, l, o, i) => {
156
+ return e.change || (e.change = !Pe(u, X(s))), e.change;
157
+ }, Ot = (t, s, n, e, l, o, i) => {
158
158
  if (s.ui)
159
159
  return console.assert(
160
160
  !1,
@@ -165,7 +165,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
165
165
  !1,
166
166
  "execPropertyBranchScalar property array must be invalid"
167
167
  ), !1;
168
- if (!e.children || !Be(e.children))
168
+ if (!e.children || !Ee(e.children))
169
169
  return console.assert(!1, "execPropertyBranchScalar state children must be map"), !1;
170
170
  let u;
171
171
  o !== void 0 && !i ? (n[o] || (n[o] = {}), u = n[o]) : (n[s.key] || (n[s.key] = {}), u = n[s.key]), e.change = !1;
@@ -174,23 +174,23 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
174
174
  e.children[a.key] = {
175
175
  change: !1,
176
176
  children: a.array ? [] : {}
177
- }, De(t, a, u, e.children[a.key], l) && (e.change = !0);
177
+ }, Ae(t, a, u, e.children[a.key], l) && (e.change = !0);
178
178
  }
179
179
  return e.change;
180
- }, Nt = (t, s, n, e, l, o, i) => {
180
+ }, Bt = (t, s, n, e, l, o, i) => {
181
181
  if (!s.ui)
182
182
  return console.assert(!1, "execPropertyLeafArray property ui must be valid"), !1;
183
183
  if (!s.array)
184
184
  return console.assert(!1, "execPropertyLeafArray property aray must be valid"), !1;
185
- if (!e.children || !Pe(e.children))
185
+ if (!e.children || !Le(e.children))
186
186
  return console.assert(!1, "execPropertyLeafArray state children must be array"), !1;
187
187
  let u;
188
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = J(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = J(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
188
+ o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = X(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = X(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
189
189
  for (let r = 0; r < u.length; r++)
190
190
  e.children[r] = {
191
191
  change: !1,
192
192
  children: {}
193
- }, De(
193
+ }, Ae(
194
194
  t,
195
195
  s,
196
196
  u,
@@ -199,13 +199,13 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
199
199
  r,
200
200
  !1
201
201
  ) && (e.change = !0);
202
- return e.change || (e.change = !be(u, J(s))), e.change;
203
- }, Bt = (t, s, n, e, l) => {
202
+ return e.change || (e.change = !Pe(u, X(s))), e.change;
203
+ }, qt = (t, s, n, e, l) => {
204
204
  if (!t.ui)
205
205
  return console.assert(!1, "execPropertyLeafScalar property ui must be valid"), !1;
206
206
  let o;
207
- return e !== void 0 && !l ? o = s[e] : o = s[t.key], n.change = !be(o, J(t, !0)), n.change;
208
- }, Je = (t, s, n, e) => {
207
+ return e !== void 0 && !l ? o = s[e] : o = s[t.key], n.change = !Pe(o, X(t, !0)), n.change;
208
+ }, Ge = (t, s, n, e) => {
209
209
  if (s.length <= 0 || !n) {
210
210
  t.value = {};
211
211
  return;
@@ -215,9 +215,9 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
215
215
  l[o.key] = {
216
216
  change: !1,
217
217
  children: o.array ? [] : {}
218
- }, De([], o, n, l[o.key], e);
218
+ }, Ae([], o, n, l[o.key], e);
219
219
  }), t.value = l;
220
- }, me = (t, s) => {
220
+ }, fe = (t, s) => {
221
221
  let n = {
222
222
  change: !1,
223
223
  children: t
@@ -227,162 +227,168 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
227
227
  return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
228
228
  if (!n.children)
229
229
  return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
230
- typeof e == "string" ? Be(n.children) && (n = n.children[e]) : Pe(n.children) && (n = n.children[e]);
230
+ typeof e == "string" ? Ee(n.children) && (n = n.children[e]) : Le(n.children) && (n = n.children[e]);
231
231
  }), n?.change ?? !1;
232
- }, je = Symbol(), Ie = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), lt = Symbol(), ot = Symbol();
233
- function Ot(t) {
234
- ae(je, t);
232
+ }, Ie = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), lt = Symbol(), ot = Symbol(), st = Symbol(), it = Symbol();
233
+ function Kt(t) {
234
+ re(Ie, t);
235
235
  }
236
- function Oe() {
237
- return ce(je);
238
- }
239
- function qt(t) {
240
- ae(Ie, t);
241
- }
242
- function Kt() {
243
- return ce(Ie);
236
+ function Je() {
237
+ return ae(Ie);
244
238
  }
245
239
  function Rt(t) {
246
- ae(et, t);
240
+ re(et, t);
247
241
  }
248
242
  function Et() {
249
- return ce(et);
243
+ return ae(et);
250
244
  }
251
245
  function Jt(t) {
252
- ae(tt, t);
246
+ re(tt, t);
253
247
  }
254
- function Ht() {
255
- return ce(tt);
248
+ function Xt() {
249
+ return ae(tt);
256
250
  }
257
- function Xt(t) {
258
- ae(nt, t);
251
+ function Ht(t) {
252
+ re(nt, t);
259
253
  }
260
254
  function Ft() {
261
- return ce(nt);
255
+ return ae(nt);
262
256
  }
263
257
  function zt(t) {
264
- ae(lt, t);
258
+ re(lt, t);
259
+ }
260
+ function Gt() {
261
+ return ae(lt);
262
+ }
263
+ function Yt(t) {
264
+ re(ot, t);
265
+ }
266
+ function ut() {
267
+ return ae(ot);
265
268
  }
266
- function st() {
267
- return ce(lt);
269
+ function Wt(t) {
270
+ re(st, t);
268
271
  }
269
- function Gt(t) {
270
- ae(ot, t);
272
+ function Qt() {
273
+ return ae(st);
271
274
  }
272
- function it() {
273
- return ce(ot);
275
+ function Zt(t) {
276
+ re(it, t);
274
277
  }
275
- const Yt = /* @__PURE__ */ E({
278
+ function rt() {
279
+ return ae(it);
280
+ }
281
+ const jt = /* @__PURE__ */ E({
276
282
  __name: "index",
277
283
  setup(t) {
278
- const { t: s } = I(), n = Kt(), e = Et(), l = Ht(), o = Ft(), i = T(0), u = T(0), r = T([]), a = L(() => [i.value, u.value]), d = (S) => {
279
- const D = () => !(r.value.length <= 0 || !me(l.value, r.value)), x = () => {
280
- const V = Ce(n.value, r.value);
281
- if (V)
282
- if (V.ui) {
283
- const U = he(e.value, r.value.slice(0, -1));
284
- if (!U)
284
+ const { t: s } = ne(), n = Et(), e = Xt(), l = Ft(), o = Gt(), i = O(0), u = O(0), r = O([]), a = A(() => [i.value, u.value]), d = (k) => {
285
+ const $ = () => !(r.value.length <= 0 || !fe(l.value, r.value)), U = () => {
286
+ const g = be(n.value, r.value);
287
+ if (g)
288
+ if (g.ui) {
289
+ const M = ke(e.value, r.value.slice(0, -1));
290
+ if (!M)
285
291
  return;
286
- U[r.value[r.value.length - 1]] = J(V), o(r.value, U[r.value[r.value.length - 1]]);
287
- } else if (V.array) {
288
- const U = r.value[r.value.length - 1];
289
- if (U === void 0) {
292
+ M[r.value[r.value.length - 1]] = X(g), o(r.value, M[r.value[r.value.length - 1]]);
293
+ } else if (g.array) {
294
+ const M = r.value[r.value.length - 1];
295
+ if (M === void 0) {
290
296
  console.assert(!1, "invalid last key");
291
297
  return;
292
298
  }
293
- if (typeof U == "string") {
294
- const O = he(e.value, r.value.slice(0, -1));
295
- if (!O)
299
+ if (typeof M == "string") {
300
+ const T = ke(e.value, r.value.slice(0, -1));
301
+ if (!T)
296
302
  return;
297
- O[r.value[r.value.length - 1]] = J(V), o(r.value, O[r.value[r.value.length - 1]]);
303
+ T[r.value[r.value.length - 1]] = X(g), o(r.value, T[r.value[r.value.length - 1]]);
298
304
  } else {
299
- const O = he(e.value, r.value);
300
- if (!O)
305
+ const T = ke(e.value, r.value);
306
+ if (!T)
301
307
  return;
302
- V.children.forEach((Q) => {
303
- O[Q.key] = J(V), o([...r.value, Q.key], O[Q.key]);
308
+ g.children.forEach((Q) => {
309
+ T[Q.key] = X(g), o([...r.value, Q.key], T[Q.key]);
304
310
  });
305
311
  }
306
312
  } else {
307
- const U = he(e.value, r.value);
308
- if (!U)
313
+ const M = ke(e.value, r.value);
314
+ if (!M)
309
315
  return;
310
- V.children.forEach((O) => {
311
- U[O.key] = J(V), o([...r.value, O.key], U[O.key]);
316
+ g.children.forEach((T) => {
317
+ M[T.key] = X(g), o([...r.value, T.key], M[T.key]);
312
318
  });
313
319
  }
314
320
  };
315
- D() && S.push({
321
+ $() && k.push({
316
322
  title: s("x-prop-tree.reset"),
317
- func: x
323
+ func: U
318
324
  });
319
- }, c = (S) => {
320
- const D = () => {
321
- const x = Ce(n.value, r.value), V = he(e.value, r.value);
322
- localStorage.setItem("propTreeCopy", JSON.stringify({ property: x, object: V }));
325
+ }, c = (k) => {
326
+ const $ = () => {
327
+ const U = be(n.value, r.value), g = ke(e.value, r.value);
328
+ localStorage.setItem("propTreeCopy", JSON.stringify({ property: U, object: g }));
323
329
  };
324
- S.push({
330
+ k.push({
325
331
  title: s("x-prop-tree.copy"),
326
- func: D
332
+ func: $
327
333
  });
328
- }, f = (S) => {
329
- const D = () => {
330
- const V = localStorage.getItem("propTreeCopy");
331
- if (!V)
334
+ }, m = (k) => {
335
+ const $ = () => {
336
+ const g = localStorage.getItem("propTreeCopy");
337
+ if (!g)
332
338
  return !1;
333
339
  try {
334
- const { property: U } = JSON.parse(V);
335
- if (!U)
340
+ const { property: M } = JSON.parse(g);
341
+ if (!M)
336
342
  return !1;
337
- const O = Ce(n.value, r.value);
338
- return Pt(U, O);
339
- } catch (U) {
340
- console.error(U);
343
+ const T = be(n.value, r.value);
344
+ return At(M, T);
345
+ } catch (M) {
346
+ console.error(M);
341
347
  }
342
348
  return !1;
343
- }, x = () => {
344
- if (!D())
349
+ }, U = () => {
350
+ if (!$())
345
351
  return;
346
- const V = localStorage.getItem("propTreeCopy");
347
- if (V)
352
+ const g = localStorage.getItem("propTreeCopy");
353
+ if (g)
348
354
  try {
349
- const { object: U } = JSON.parse(V), O = Ce(n.value, r.value);
350
- console.log(U, O);
351
- } catch (U) {
352
- console.error(U);
355
+ const { object: M } = JSON.parse(g), T = be(n.value, r.value);
356
+ console.log(M, T);
357
+ } catch (M) {
358
+ console.error(M);
353
359
  }
354
360
  };
355
- D() && S.push({
361
+ $() && k.push({
356
362
  title: s("x-prop-tree.paste"),
357
- func: x
363
+ func: U
358
364
  });
359
- }, v = L(() => {
360
- const S = [];
361
- return d(S), c(S), f(S), S;
362
- }), C = (S) => {
363
- i.value = S.x, u.value = S.y, r.value = S.keys;
364
- }, { open: h } = _e("propTreeMenu", C);
365
- return (S, D) => {
366
- const x = $("v-list-item-title"), V = $("v-list-item"), U = $("v-list"), O = $("v-menu");
367
- return _(), B(O, {
368
- modelValue: P(h),
369
- "onUpdate:modelValue": D[0] || (D[0] = (Q) => re(h) ? h.value = Q : null),
365
+ }, p = A(() => {
366
+ const k = [];
367
+ return d(k), c(k), m(k), k;
368
+ }), v = (k) => {
369
+ i.value = k.x, u.value = k.y, r.value = k.keys;
370
+ }, { open: C } = ye("propTreeMenu", v);
371
+ return (k, $) => {
372
+ const U = V("v-list-item-title"), g = V("v-list-item"), M = V("v-list"), T = V("v-menu");
373
+ return S(), B(T, {
374
+ modelValue: L(C),
375
+ "onUpdate:modelValue": $[0] || ($[0] = (Q) => ie(C) ? C.value = Q : null),
370
376
  "location-strategy": "connected",
371
377
  scrim: "transparent",
372
378
  target: a.value
373
379
  }, {
374
- default: R(() => [
375
- b(U, null, {
376
- default: R(() => [
377
- (_(!0), K(fe, null, Te(v.value, (Q, ge) => (_(), B(V, {
378
- key: ge,
380
+ default: q(() => [
381
+ w(M, null, {
382
+ default: q(() => [
383
+ (S(!0), R(ve, null, Ne(p.value, (Q, he) => (S(), B(g, {
384
+ key: he,
379
385
  link: "",
380
386
  onClick: Q.func
381
387
  }, {
382
- default: R(() => [
383
- b(x, null, {
384
- default: R(() => [
385
- ke(F(Q.title), 1)
388
+ default: q(() => [
389
+ w(U, null, {
390
+ default: q(() => [
391
+ ge(H(Q.title), 1)
386
392
  ]),
387
393
  _: 2
388
394
  }, 1024)
@@ -397,7 +403,7 @@ const Yt = /* @__PURE__ */ E({
397
403
  }, 8, ["modelValue", "target"]);
398
404
  };
399
405
  }
400
- }), Wt = { style: { pointerEvents: "none" } }, Ue = /* @__PURE__ */ E({
406
+ }), It = { style: { pointerEvents: "none" } }, we = /* @__PURE__ */ E({
401
407
  __name: "index",
402
408
  props: {
403
409
  title: {},
@@ -408,7 +414,7 @@ const Yt = /* @__PURE__ */ E({
408
414
  },
409
415
  emits: ["collapse", "menu", "create", "delete"],
410
416
  setup(t, { emit: s }) {
411
- const { backgroundColor2: n, highlightColor: e } = te(), l = s, o = T(!1), i = L(() => ({
417
+ const { backgroundColor2: n, highlightColor: e } = I(), l = s, o = O(!1), i = A(() => ({
412
418
  background: o.value ? e.value : n.value,
413
419
  height: "36px",
414
420
  marginBottom: "1px",
@@ -419,132 +425,132 @@ const Yt = /* @__PURE__ */ E({
419
425
  l("menu", a.clientX, a.clientY);
420
426
  };
421
427
  return (a, d) => {
422
- const c = $("v-icon"), f = $("v-spacer"), v = $("v-btn"), C = ee("ripple");
423
- return j((_(), K("div", {
428
+ const c = V("v-icon"), m = V("v-spacer"), p = V("v-btn"), v = te("ripple");
429
+ return j((S(), R("div", {
424
430
  class: "d-flex align-center cursor-pointer",
425
- style: W(i.value),
431
+ style: z(i.value),
426
432
  onClick: u,
427
- onContextmenu: X(r, ["self", "prevent"]),
428
- onMouseout: d[2] || (d[2] = (h) => o.value = !1),
429
- onMouseover: d[3] || (d[3] = (h) => o.value = !0)
433
+ onContextmenu: J(r, ["self", "prevent"]),
434
+ onMouseout: d[2] || (d[2] = (C) => o.value = !1),
435
+ onMouseover: d[3] || (d[3] = (C) => o.value = !0)
430
436
  }, [
431
- b(c, {
437
+ w(c, {
432
438
  class: "mr-1",
433
439
  icon: t.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
434
440
  }, null, 8, ["icon"]),
435
- q("span", Wt, F(t.title), 1),
436
- b(f),
437
- t.hasCreate ? (_(), B(v, {
441
+ D("span", It, H(t.title), 1),
442
+ w(m),
443
+ t.hasCreate ? (S(), B(p, {
438
444
  key: 0,
439
445
  class: "mx-3",
440
446
  density: "compact",
441
447
  icon: "mdi-plus",
442
448
  variant: "text",
443
- onClick: d[0] || (d[0] = X((h) => l("create"), ["stop"]))
444
- })) : G("", !0),
445
- t.hasDelete ? (_(), B(v, {
449
+ onClick: d[0] || (d[0] = J((C) => l("create"), ["stop"]))
450
+ })) : Y("", !0),
451
+ t.hasDelete ? (S(), B(p, {
446
452
  key: 1,
447
453
  class: "mx-3",
448
454
  density: "compact",
449
455
  icon: "mdi-minus",
450
456
  variant: "text",
451
- onClick: d[1] || (d[1] = X((h) => l("delete", t.index), ["stop"]))
452
- })) : G("", !0)
457
+ onClick: d[1] || (d[1] = J((C) => l("delete", t.index), ["stop"]))
458
+ })) : Y("", !0)
453
459
  ], 36)), [
454
- [C]
460
+ [v]
455
461
  ]);
456
462
  };
457
463
  }
458
464
  });
459
- function Qt(t, s, n) {
460
- const { i18n: e } = xt, l = T([]);
461
- Gt(l);
465
+ function en(t, s, n) {
466
+ const { i18n: e } = Vt, l = O([]);
467
+ Zt(l);
462
468
  const o = () => {
463
469
  if (!t.value || !s.value || !n.value)
464
- return;
465
- const a = Ne[t.value];
466
- if (!a) {
467
- console.assert(!1, `invalid version=${t.value}`);
468
- return;
469
- }
470
- const d = Ut(s.value, n.value), c = [];
471
- for (let h = 0; h < a.groups[d].length; h++) {
472
- const S = a.groups[d][h], D = ve(l, S.key);
473
- c.push({
474
- id: S.key,
470
+ return [];
471
+ const d = qe[t.value];
472
+ if (!d)
473
+ return console.assert(!1, `invalid version=${t.value}`), [];
474
+ const c = bt(s.value, n.value), m = [];
475
+ for (let k = 0; k < d.groups[c].length; k++) {
476
+ const $ = d.groups[c][k], U = pe(l, $.key);
477
+ m.push({
478
+ id: $.key,
475
479
  type: 0,
476
- name: e.global.t(S.name),
477
- position: h,
478
- collapse: D?.collapse ?? !0,
480
+ name: e.global.t($.name),
481
+ position: k,
482
+ collapse: U?.collapse ?? !0,
479
483
  count: 0
480
484
  });
481
- let x = 0;
482
- for (const V of S.items) {
483
- const U = $t[V];
484
- if (U && !U.internal && U.slots)
485
- for (const O of U.slots) {
486
- const Q = Re("elementSlot", U.key, O.key), ge = `${e.global.t(U.name)} / ${e.global.t(O.name)}`;
487
- c.push({
488
- id: Q,
485
+ let g = 0;
486
+ for (const M of $.items) {
487
+ const T = wt[M];
488
+ if (T && !T.internal && T.slots)
489
+ for (const Q of T.slots) {
490
+ const he = Fe("elementSlot", T.key, Q.key), De = `${e.global.t(T.name)} / ${e.global.t(Q.name)}`;
491
+ m.push({
492
+ id: he,
489
493
  type: 1,
490
- name: ge,
491
- position: x++,
492
- group: S.key
494
+ name: De,
495
+ position: g++,
496
+ group: $.key
493
497
  });
494
498
  }
495
499
  }
496
500
  }
497
- const { activeApp: f, depends: v } = Qe.app;
498
- for (const { id: h, name: S, position: D } of f.compGroups) {
499
- const x = ve(l, h);
500
- c.push({
501
- id: h,
501
+ const { activeApp: p, depends: v } = Ke.app;
502
+ for (const { id: k, name: $, position: U } of p.compGroups) {
503
+ const g = pe(l, k);
504
+ m.push({
505
+ id: k,
502
506
  type: 0,
503
- name: S,
504
- position: D,
505
- collapse: x?.collapse ?? !0
507
+ name: $,
508
+ position: U,
509
+ collapse: g?.collapse ?? !0
506
510
  });
507
511
  }
508
512
  let C = 0;
509
- for (const h of f.comps) {
510
- const S = v[h.id];
511
- if (S && S.meta.slots)
512
- for (const D of S.meta.slots) {
513
- const x = Re("customSlot", h.id, D.id), V = `${h.name} / ${D.name}`;
514
- c.push({
515
- id: x,
513
+ for (const k of p.comps) {
514
+ const $ = v[k.id];
515
+ if ($ && $.meta.slots)
516
+ for (const U of $.meta.slots) {
517
+ const g = Fe("customSlot", k.id, U.id), M = `${k.name} / ${U.name}`;
518
+ m.push({
519
+ id: g,
516
520
  type: 1,
517
- name: V,
521
+ name: M,
518
522
  position: C++,
519
- group: h.groupId
523
+ group: k.groupId
520
524
  });
521
525
  }
522
526
  }
523
- Ye(c, !0), l.value = c;
527
+ return Ze(m, !0), m;
528
+ }, i = () => {
529
+ l.value = o();
524
530
  };
525
- let i;
526
- const u = () => {
527
- clearTimeout(i), i = window.setTimeout(() => {
528
- o(), i && u();
531
+ let u;
532
+ const r = () => {
533
+ clearTimeout(u), u = window.setTimeout(() => {
534
+ i(), u && r();
529
535
  }, 1e3);
530
- }, r = () => {
531
- clearTimeout(i), i = void 0;
536
+ }, a = () => {
537
+ clearTimeout(u), u = void 0;
532
538
  };
533
- He(() => {
534
- u();
535
- }), Xe(() => {
539
+ Oe(() => {
536
540
  r();
537
- }), oe([t, s, n], () => {
538
- o(), u();
541
+ }), Be(() => {
542
+ a();
543
+ }), se([t, s, n], () => {
544
+ i(), r();
539
545
  });
540
546
  }
541
- function Zt() {
542
- const t = T([]);
543
- zt(t);
547
+ function tn() {
548
+ const t = O([]);
549
+ Yt(t);
544
550
  const s = () => {
545
- const { activeApp: o, depends: i } = Qe.app, u = [];
551
+ const { activeApp: o, depends: i } = Ke.app, u = [];
546
552
  for (const { id: r, name: a, position: d } of o.compGroups) {
547
- const c = t.value.find((f) => f.id === r);
553
+ const c = t.value.find((m) => m.id === r);
548
554
  u.push({
549
555
  id: r,
550
556
  type: 0,
@@ -555,7 +561,7 @@ function Zt() {
555
561
  }
556
562
  for (const { id: r, groupId: a, name: d, position: c } of o.comps)
557
563
  i[r] && u.push({ id: r, type: 1, name: d, position: c, group: a });
558
- Ye(u, !0), t.value = u;
564
+ Ze(u, !0), t.value = u;
559
565
  };
560
566
  let n;
561
567
  const e = () => {
@@ -565,13 +571,251 @@ function Zt() {
565
571
  }, l = () => {
566
572
  clearTimeout(n), n = void 0;
567
573
  };
568
- He(() => {
574
+ Oe(() => {
569
575
  e();
570
- }), Xe(() => {
576
+ }), Be(() => {
577
+ l();
578
+ });
579
+ }
580
+ function nn() {
581
+ const t = O([]);
582
+ Wt(t);
583
+ const s = () => {
584
+ const { activeObject: i, activeComp: u } = Ke.app;
585
+ if (i.type !== "comp")
586
+ return [];
587
+ if (!u.meta.slots)
588
+ return [];
589
+ const r = [];
590
+ for (const { id: a, name: d } of u.meta.slots)
591
+ r.push({ id: a, name: d });
592
+ return r;
593
+ }, n = () => {
594
+ t.value = s();
595
+ };
596
+ let e;
597
+ const l = () => {
598
+ clearTimeout(e), e = window.setTimeout(() => {
599
+ n(), e && l();
600
+ }, 1e3);
601
+ }, o = () => {
602
+ clearTimeout(e), e = void 0;
603
+ };
604
+ Oe(() => {
571
605
  l();
606
+ }), Be(() => {
607
+ o();
572
608
  });
573
609
  }
574
- const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PURE__ */ E({
610
+ const ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-grey ml-1" }, sn = /* @__PURE__ */ E({
611
+ __name: "group",
612
+ props: {
613
+ id: {},
614
+ title: {},
615
+ collapse: { type: Boolean },
616
+ count: {}
617
+ },
618
+ emits: ["x-click"],
619
+ setup(t, { emit: s }) {
620
+ const { backgroundColor2: n, highlightColor: e } = I(), l = t, o = s, i = O(!1), u = A(() => ({
621
+ background: i.value ? e.value : n.value,
622
+ height: "30px",
623
+ marginBottom: "1px",
624
+ userSelect: "none"
625
+ }));
626
+ return (r, a) => {
627
+ const d = V("v-icon"), c = te("ripple");
628
+ return j((S(), R("div", {
629
+ class: "d-flex align-center cursor-pointer",
630
+ style: z(u.value),
631
+ onClick: a[0] || (a[0] = (m) => o("x-click", l.id)),
632
+ onMouseout: a[1] || (a[1] = (m) => i.value = !1),
633
+ onMouseover: a[2] || (a[2] = (m) => i.value = !0)
634
+ }, [
635
+ w(d, {
636
+ icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
637
+ size: "small"
638
+ }, null, 8, ["icon"]),
639
+ D("span", ln, H(l.title), 1),
640
+ D("span", on, H(l.count), 1)
641
+ ], 36)), [
642
+ [c]
643
+ ]);
644
+ };
645
+ }
646
+ }), un = { class: "text-subtitle-1 ml-6" }, rn = /* @__PURE__ */ E({
647
+ __name: "item",
648
+ props: {
649
+ id: {},
650
+ title: {}
651
+ },
652
+ emits: ["x-click"],
653
+ setup(t, { emit: s }) {
654
+ const { backgroundColor2: n, highlightColor: e } = I(), l = t, o = s, i = O(!1), u = A(() => ({
655
+ background: i.value ? e.value : n.value,
656
+ height: "48px",
657
+ marginBottom: "1px",
658
+ userSelect: "none"
659
+ }));
660
+ return (r, a) => {
661
+ const d = te("ripple");
662
+ return j((S(), R("div", {
663
+ class: "d-flex align-center cursor-pointer",
664
+ style: z(u.value),
665
+ onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
666
+ onMouseout: a[1] || (a[1] = (c) => i.value = !1),
667
+ onMouseover: a[2] || (a[2] = (c) => i.value = !0)
668
+ }, [
669
+ D("span", un, H(l.title), 1)
670
+ ], 36)), [
671
+ [d]
672
+ ]);
673
+ };
674
+ }
675
+ }), an = { key: 0 }, cn = {
676
+ key: 1,
677
+ class: "text-body-2 text-grey ml-3"
678
+ }, dn = /* @__PURE__ */ E({
679
+ __name: "index",
680
+ props: {
681
+ modelValue: {},
682
+ modelModifiers: {},
683
+ open: { type: Boolean, required: !0 },
684
+ openModifiers: {}
685
+ },
686
+ emits: ["update:modelValue", "update:open"],
687
+ setup(t) {
688
+ const { nameList: s } = ue(), n = G(t, "modelValue"), e = G(t, "open"), l = rt(), o = (u) => {
689
+ const r = pe(l, u);
690
+ r && je(l, u, !r.collapse);
691
+ }, i = (u) => {
692
+ n.value = u, e.value = !1;
693
+ };
694
+ return (u, r) => L(l).length > 0 ? (S(), R("div", an, [
695
+ (S(!0), R(ve, null, Ne(L(l), (a) => (S(), R(ve, {
696
+ key: a.id
697
+ }, [
698
+ a.type === 0 ? (S(), B(sn, {
699
+ key: 0,
700
+ id: a.id,
701
+ collapse: a.collapse,
702
+ count: a.count ?? 0,
703
+ title: a.name,
704
+ onXClick: o
705
+ }, null, 8, ["id", "collapse", "count", "title"])) : Y("", !0),
706
+ a.type === 1 && a.show ? (S(), B(rn, {
707
+ key: 1,
708
+ id: a.id,
709
+ title: a.name,
710
+ onXClick: i
711
+ }, null, 8, ["id", "title"])) : Y("", !0)
712
+ ], 64))), 128))
713
+ ])) : (S(), R("div", cn, H(L(s)(["no", "slot"])), 1));
714
+ }
715
+ }), mn = { class: "text-subtitle-1 ml-3" }, fn = /* @__PURE__ */ E({
716
+ __name: "index",
717
+ props: {
718
+ modelValue: {},
719
+ modelModifiers: {}
720
+ },
721
+ emits: ["update:modelValue"],
722
+ setup(t) {
723
+ const { t: s } = ne(), n = Re(), { sysBarAvail: e } = ue(), { backgroundColor1: l } = I(), o = G(t, "modelValue"), i = rt(), u = A(() => {
724
+ let m = "100%";
725
+ return n.mdAndUp.value && (m = "400px"), {
726
+ background: l.value,
727
+ width: m,
728
+ height: "100%"
729
+ };
730
+ }), r = A(() => {
731
+ let m = 48;
732
+ return e.value && (m += 24), {
733
+ position: "relative",
734
+ height: `calc(100% - ${m}px)`
735
+ };
736
+ }), a = A(() => ({
737
+ height: "60px"
738
+ })), d = A(() => {
739
+ if (!o.value)
740
+ return s("x-runtime-lib.notSet");
741
+ const m = pe(i, o.value);
742
+ return m ? m.name : s("x-runtime-lib.slotNotAvail");
743
+ }), { open: c } = ye(`propTreeSlotSelectDlg${Se()}`);
744
+ return xe(() => {
745
+ c.value = !1;
746
+ }), (m, p) => {
747
+ const v = V("v-btn"), C = V("v-sheet"), k = V("v-icon"), $ = V("v-dialog");
748
+ return S(), B($, {
749
+ modelValue: L(c),
750
+ "onUpdate:modelValue": p[5] || (p[5] = (U) => ie(c) ? c.value = U : null),
751
+ fullscreen: "",
752
+ "no-click-animation": "",
753
+ persistent: "",
754
+ transition: "scroll-x-reverse-transition",
755
+ onKeydown: p[6] || (p[6] = Me(J((U) => c.value = !1, ["stop", "prevent"]), ["esc"]))
756
+ }, {
757
+ activator: q(({ props: U }) => [
758
+ w(v, Ve(U, {
759
+ block: "",
760
+ density: "comfortable"
761
+ }), {
762
+ default: q(() => [
763
+ ge(H(d.value), 1)
764
+ ]),
765
+ _: 1
766
+ }, 16)
767
+ ]),
768
+ default: q(() => [
769
+ D("div", {
770
+ class: "w-100 h-100 d-flex flex-row-reverse",
771
+ onClick: p[3] || (p[3] = J((U) => c.value = !1, ["self"])),
772
+ onContextmenu: p[4] || (p[4] = J((U) => c.value = !1, ["self", "prevent"]))
773
+ }, [
774
+ D("div", {
775
+ class: "elevation-2",
776
+ style: z(u.value)
777
+ }, [
778
+ L(e) ? (S(), B(C, {
779
+ key: 0,
780
+ color: "transparent",
781
+ height: 24
782
+ })) : Y("", !0),
783
+ w(C, {
784
+ class: "d-flex align-center px-3",
785
+ color: "transparent",
786
+ height: 48
787
+ }, {
788
+ default: q(() => [
789
+ w(k, {
790
+ icon: "mdi-close",
791
+ onClick: p[0] || (p[0] = (U) => c.value = !1)
792
+ }),
793
+ D("span", mn, H(L(s)("x-prop-tree.dlg.adaptSlotSelect.title")), 1)
794
+ ]),
795
+ _: 1
796
+ }),
797
+ D("div", {
798
+ class: "overflow-y-auto",
799
+ style: z(r.value)
800
+ }, [
801
+ w(dn, {
802
+ modelValue: o.value,
803
+ "onUpdate:modelValue": p[1] || (p[1] = (U) => o.value = U),
804
+ open: L(c),
805
+ "onUpdate:open": p[2] || (p[2] = (U) => ie(c) ? c.value = U : null)
806
+ }, null, 8, ["modelValue", "open"]),
807
+ D("div", {
808
+ style: z(a.value)
809
+ }, null, 4)
810
+ ], 4)
811
+ ], 4)
812
+ ], 32)
813
+ ]),
814
+ _: 1
815
+ }, 8, ["modelValue"]);
816
+ };
817
+ }
818
+ }), vn = { class: "d-flex justify-space-between align-center" }, pn = /* @__PURE__ */ E({
575
819
  __name: "index",
576
820
  props: /* @__PURE__ */ Z({
577
821
  hasDelete: { type: Boolean, default: !1 },
@@ -582,54 +826,54 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
582
826
  }),
583
827
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
584
828
  setup(t, { emit: s }) {
585
- const { t: n } = I(), e = z(t, "modelValue"), l = s, o = L(() => {
829
+ const { t: n } = ne(), e = G(t, "modelValue"), l = s, o = A(() => {
586
830
  let r = "100%";
587
831
  return t.hasDelete && (r = "calc(100% - 37px)"), {
588
832
  width: r
589
833
  };
590
- }), i = L(() => t.readonly), { open: u } = _e(`propTreeColorPickerMenu${$e()}`);
591
- return we(() => {
834
+ }), i = A(() => t.readonly), { open: u } = ye(`propTreeColorPickerMenu${Se()}`);
835
+ return xe(() => {
592
836
  u.value = !1;
593
837
  }), (r, a) => {
594
- const d = $("v-btn"), c = $("v-color-picker"), f = $("v-menu");
595
- return _(), B(f, {
596
- modelValue: P(u),
597
- "onUpdate:modelValue": a[2] || (a[2] = (v) => re(u) ? u.value = v : null),
838
+ const d = V("v-btn"), c = V("v-color-picker"), m = V("v-menu");
839
+ return S(), B(m, {
840
+ modelValue: L(u),
841
+ "onUpdate:modelValue": a[2] || (a[2] = (p) => ie(u) ? u.value = p : null),
598
842
  "close-on-content-click": !1,
599
843
  scrim: "transparent"
600
844
  }, {
601
- activator: R(({ props: v }) => [
602
- q("div", jt, [
603
- q("div", {
845
+ activator: q(({ props: p }) => [
846
+ D("div", vn, [
847
+ D("div", {
604
848
  class: "flex-grow-1",
605
- style: W(o.value)
849
+ style: z(o.value)
606
850
  }, [
607
- b(d, Me(v, {
851
+ w(d, Ve(p, {
608
852
  block: "",
609
853
  color: e.value,
610
854
  density: "comfortable",
611
855
  disabled: i.value
612
856
  }), {
613
- default: R(() => [
614
- ke(F(e.value ? e.value : P(n)("x-runtime-lib.notSet")), 1)
857
+ default: q(() => [
858
+ ge(H(e.value ? e.value : L(n)("x-runtime-lib.notSet")), 1)
615
859
  ]),
616
860
  _: 1
617
861
  }, 16, ["color", "disabled"])
618
862
  ], 4),
619
- t.hasDelete ? (_(), B(d, {
863
+ t.hasDelete ? (S(), B(d, {
620
864
  key: 0,
621
865
  class: "mx-2",
622
866
  density: "compact",
623
867
  icon: "mdi-minus",
624
868
  variant: "text",
625
- onClick: a[0] || (a[0] = X((C) => l("delete"), ["stop"]))
626
- })) : G("", !0)
869
+ onClick: a[0] || (a[0] = J((v) => l("delete"), ["stop"]))
870
+ })) : Y("", !0)
627
871
  ])
628
872
  ]),
629
- default: R(() => [
630
- b(c, {
873
+ default: q(() => [
874
+ w(c, {
631
875
  modelValue: e.value,
632
- "onUpdate:modelValue": a[1] || (a[1] = (v) => e.value = v),
876
+ "onUpdate:modelValue": a[1] || (a[1] = (p) => e.value = p),
633
877
  mode: "hexa",
634
878
  "show-swatches": "",
635
879
  "swatches-max-height": "150px"
@@ -639,7 +883,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
639
883
  }, 8, ["modelValue"]);
640
884
  };
641
885
  }
642
- }), en = { class: "text-subtitle-2 ml-1" }, tn = { class: "text-caption text-grey ml-1" }, nn = /* @__PURE__ */ E({
886
+ }), gn = { class: "text-subtitle-2 ml-1" }, yn = { class: "text-caption text-grey ml-1" }, hn = /* @__PURE__ */ E({
643
887
  __name: "group",
644
888
  props: {
645
889
  id: {},
@@ -649,33 +893,33 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
649
893
  },
650
894
  emits: ["x-click"],
651
895
  setup(t, { emit: s }) {
652
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
896
+ const { backgroundColor2: n, highlightColor: e } = I(), l = t, o = s, i = O(!1), u = A(() => ({
653
897
  background: i.value ? e.value : n.value,
654
898
  height: "30px",
655
899
  marginBottom: "1px",
656
900
  userSelect: "none"
657
901
  }));
658
902
  return (r, a) => {
659
- const d = $("v-icon"), c = ee("ripple");
660
- return j((_(), K("div", {
903
+ const d = V("v-icon"), c = te("ripple");
904
+ return j((S(), R("div", {
661
905
  class: "d-flex align-center cursor-pointer",
662
- style: W(u.value),
663
- onClick: a[0] || (a[0] = (f) => o("x-click", l.id)),
664
- onMouseout: a[1] || (a[1] = (f) => i.value = !1),
665
- onMouseover: a[2] || (a[2] = (f) => i.value = !0)
906
+ style: z(u.value),
907
+ onClick: a[0] || (a[0] = (m) => o("x-click", l.id)),
908
+ onMouseout: a[1] || (a[1] = (m) => i.value = !1),
909
+ onMouseover: a[2] || (a[2] = (m) => i.value = !0)
666
910
  }, [
667
- b(d, {
911
+ w(d, {
668
912
  icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
669
913
  size: "small"
670
914
  }, null, 8, ["icon"]),
671
- q("span", en, F(l.title), 1),
672
- q("span", tn, F(l.count), 1)
915
+ D("span", gn, H(l.title), 1),
916
+ D("span", yn, H(l.count), 1)
673
917
  ], 36)), [
674
918
  [c]
675
919
  ]);
676
920
  };
677
921
  }
678
- }), ln = { class: "text-subtitle-1 ml-6" }, on = /* @__PURE__ */ E({
922
+ }), _n = { class: "text-subtitle-1 ml-6" }, kn = /* @__PURE__ */ E({
679
923
  __name: "item",
680
924
  props: {
681
925
  id: {},
@@ -683,31 +927,31 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
683
927
  },
684
928
  emits: ["x-click"],
685
929
  setup(t, { emit: s }) {
686
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
930
+ const { backgroundColor2: n, highlightColor: e } = I(), l = t, o = s, i = O(!1), u = A(() => ({
687
931
  background: i.value ? e.value : n.value,
688
932
  height: "48px",
689
933
  marginBottom: "1px",
690
934
  userSelect: "none"
691
935
  }));
692
936
  return (r, a) => {
693
- const d = ee("ripple");
694
- return j((_(), K("div", {
937
+ const d = te("ripple");
938
+ return j((S(), R("div", {
695
939
  class: "d-flex align-center cursor-pointer",
696
- style: W(u.value),
940
+ style: z(u.value),
697
941
  onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
698
942
  onMouseout: a[1] || (a[1] = (c) => i.value = !1),
699
943
  onMouseover: a[2] || (a[2] = (c) => i.value = !0)
700
944
  }, [
701
- q("span", ln, F(l.title), 1)
945
+ D("span", _n, H(l.title), 1)
702
946
  ], 36)), [
703
947
  [d]
704
948
  ]);
705
949
  };
706
950
  }
707
- }), sn = { key: 0 }, un = {
951
+ }), Sn = { key: 0 }, xn = {
708
952
  key: 1,
709
953
  class: "text-body-2 text-grey ml-3"
710
- }, rn = /* @__PURE__ */ E({
954
+ }, Vn = /* @__PURE__ */ E({
711
955
  __name: "index",
712
956
  props: {
713
957
  modelValue: {},
@@ -717,34 +961,34 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
717
961
  },
718
962
  emits: ["update:modelValue", "update:open"],
719
963
  setup(t) {
720
- const { t: s } = I(), n = z(t, "modelValue"), e = z(t, "open"), l = st(), o = (u) => {
721
- const r = ve(l, u);
722
- r && We(l, u, !r.collapse);
964
+ const { nameList: s } = ue(), n = G(t, "modelValue"), e = G(t, "open"), l = ut(), o = (u) => {
965
+ const r = pe(l, u);
966
+ r && je(l, u, !r.collapse);
723
967
  }, i = (u) => {
724
- n.value = u, e.value = !1, de.emit("refreshDepends");
968
+ n.value = u, e.value = !1, me.emit("refreshDepends");
725
969
  };
726
- return (u, r) => P(l).length > 0 ? (_(), K("div", sn, [
727
- (_(!0), K(fe, null, Te(P(l), (a) => (_(), K(fe, {
970
+ return (u, r) => L(l).length > 0 ? (S(), R("div", Sn, [
971
+ (S(!0), R(ve, null, Ne(L(l), (a) => (S(), R(ve, {
728
972
  key: a.id
729
973
  }, [
730
- a.type === 0 ? (_(), B(nn, {
974
+ a.type === 0 ? (S(), B(hn, {
731
975
  key: 0,
732
976
  id: a.id,
733
977
  collapse: a.collapse,
734
978
  count: a.count ?? 0,
735
979
  title: a.name,
736
980
  onXClick: o
737
- }, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
738
- a.type === 1 && a.show ? (_(), B(on, {
981
+ }, null, 8, ["id", "collapse", "count", "title"])) : Y("", !0),
982
+ a.type === 1 && a.show ? (S(), B(kn, {
739
983
  key: 1,
740
984
  id: a.id,
741
985
  title: a.name,
742
986
  onXClick: i
743
- }, null, 8, ["id", "title"])) : G("", !0)
987
+ }, null, 8, ["id", "title"])) : Y("", !0)
744
988
  ], 64))), 128))
745
- ])) : (_(), K("div", un, F(P(s)("x-prop-tree.noComp")), 1));
989
+ ])) : (S(), R("div", xn, H(L(s)(["no", "comp"])), 1));
746
990
  }
747
- }), an = { class: "text-subtitle-1 ml-3" }, cn = /* @__PURE__ */ E({
991
+ }), Cn = { class: "text-subtitle-1 ml-3" }, Un = /* @__PURE__ */ E({
748
992
  __name: "index",
749
993
  props: {
750
994
  modelValue: {},
@@ -752,92 +996,92 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
752
996
  },
753
997
  emits: ["update:modelValue"],
754
998
  setup(t) {
755
- const { t: s } = I(), n = Ze(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = st(), u = L(() => {
756
- let f = "100%";
757
- return n.mdAndUp.value && (f = "400px"), {
758
- background: l.value,
759
- width: f,
999
+ const { t: s } = ne(), n = Re(), { sysBarAvail: e, nameList: l } = ue(), { backgroundColor1: o } = I(), i = G(t, "modelValue"), u = ut(), r = A(() => {
1000
+ let p = "100%";
1001
+ return n.mdAndUp.value && (p = "400px"), {
1002
+ background: o.value,
1003
+ width: p,
760
1004
  height: "100%"
761
1005
  };
762
- }), r = L(() => {
763
- let f = 48;
764
- return e.value && (f += 24), {
1006
+ }), a = A(() => {
1007
+ let p = 48;
1008
+ return e.value && (p += 24), {
765
1009
  position: "relative",
766
- height: `calc(100% - ${f}px)`
1010
+ height: `calc(100% - ${p}px)`
767
1011
  };
768
- }), a = L(() => ({
1012
+ }), d = A(() => ({
769
1013
  height: "60px"
770
- })), d = L(() => {
771
- if (!o.value)
1014
+ })), c = A(() => {
1015
+ if (!i.value)
772
1016
  return s("x-runtime-lib.notSet");
773
- const f = ve(i, o.value);
774
- return f ? f.name : s("x-runtime-lib.compNotAvail");
775
- }), { open: c } = _e(`propTreeCompSelectDlg${$e()}`);
776
- return we(() => {
777
- c.value = !1;
778
- }), (f, v) => {
779
- const C = $("v-btn"), h = $("v-sheet"), S = $("v-icon"), D = $("v-dialog");
780
- return _(), B(D, {
781
- modelValue: P(c),
782
- "onUpdate:modelValue": v[5] || (v[5] = (x) => re(c) ? c.value = x : null),
1017
+ const p = pe(u, i.value);
1018
+ return p ? p.name : s("x-runtime-lib.compNotAvail");
1019
+ }), { open: m } = ye(`propTreeCompSelectDlg${Se()}`);
1020
+ return xe(() => {
1021
+ m.value = !1;
1022
+ }), (p, v) => {
1023
+ const C = V("v-btn"), k = V("v-sheet"), $ = V("v-icon"), U = V("v-dialog");
1024
+ return S(), B(U, {
1025
+ modelValue: L(m),
1026
+ "onUpdate:modelValue": v[5] || (v[5] = (g) => ie(m) ? m.value = g : null),
783
1027
  fullscreen: "",
784
1028
  "no-click-animation": "",
785
1029
  persistent: "",
786
1030
  transition: "scroll-x-reverse-transition",
787
- onKeydown: v[6] || (v[6] = Le(X((x) => c.value = !1, ["stop", "prevent"]), ["esc"]))
1031
+ onKeydown: v[6] || (v[6] = Me(J((g) => m.value = !1, ["stop", "prevent"]), ["esc"]))
788
1032
  }, {
789
- activator: R(({ props: x }) => [
790
- b(C, Me(x, {
1033
+ activator: q(({ props: g }) => [
1034
+ w(C, Ve(g, {
791
1035
  block: "",
792
1036
  density: "comfortable"
793
1037
  }), {
794
- default: R(() => [
795
- ke(F(d.value), 1)
1038
+ default: q(() => [
1039
+ ge(H(c.value), 1)
796
1040
  ]),
797
1041
  _: 1
798
1042
  }, 16)
799
1043
  ]),
800
- default: R(() => [
801
- q("div", {
1044
+ default: q(() => [
1045
+ D("div", {
802
1046
  class: "w-100 h-100 d-flex flex-row-reverse",
803
- onClick: v[3] || (v[3] = X((x) => c.value = !1, ["self"])),
804
- onContextmenu: v[4] || (v[4] = X((x) => c.value = !1, ["self", "prevent"]))
1047
+ onClick: v[3] || (v[3] = J((g) => m.value = !1, ["self"])),
1048
+ onContextmenu: v[4] || (v[4] = J((g) => m.value = !1, ["self", "prevent"]))
805
1049
  }, [
806
- q("div", {
1050
+ D("div", {
807
1051
  class: "elevation-2",
808
- style: W(u.value)
1052
+ style: z(r.value)
809
1053
  }, [
810
- P(e) ? (_(), B(h, {
1054
+ L(e) ? (S(), B(k, {
811
1055
  key: 0,
812
1056
  color: "transparent",
813
1057
  height: 24
814
- })) : G("", !0),
815
- b(h, {
1058
+ })) : Y("", !0),
1059
+ w(k, {
816
1060
  class: "d-flex align-center px-3",
817
1061
  color: "transparent",
818
1062
  height: 48
819
1063
  }, {
820
- default: R(() => [
821
- b(S, {
1064
+ default: q(() => [
1065
+ w($, {
822
1066
  icon: "mdi-close",
823
- onClick: v[0] || (v[0] = (x) => c.value = !1)
1067
+ onClick: v[0] || (v[0] = (g) => m.value = !1)
824
1068
  }),
825
- q("span", an, F(P(s)("x-prop-tree.dlg.compSelect.title")), 1)
1069
+ D("span", Cn, H(L(l)(["select", "comp"])), 1)
826
1070
  ]),
827
1071
  _: 1
828
1072
  }),
829
- q("div", {
1073
+ D("div", {
830
1074
  class: "overflow-y-auto",
831
- style: W(r.value)
1075
+ style: z(a.value)
832
1076
  }, [
833
- b(rn, {
834
- modelValue: o.value,
835
- "onUpdate:modelValue": v[1] || (v[1] = (x) => o.value = x),
836
- open: P(c),
837
- "onUpdate:open": v[2] || (v[2] = (x) => re(c) ? c.value = x : null)
1077
+ w(Vn, {
1078
+ modelValue: i.value,
1079
+ "onUpdate:modelValue": v[1] || (v[1] = (g) => i.value = g),
1080
+ open: L(m),
1081
+ "onUpdate:open": v[2] || (v[2] = (g) => ie(m) ? m.value = g : null)
838
1082
  }, null, 8, ["modelValue", "open"]),
839
- q("div", {
840
- style: W(a.value)
1083
+ D("div", {
1084
+ style: z(d.value)
841
1085
  }, null, 4)
842
1086
  ], 4)
843
1087
  ], 4)
@@ -847,7 +1091,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
847
1091
  }, 8, ["modelValue"]);
848
1092
  };
849
1093
  }
850
- }), dn = /* @__PURE__ */ E({
1094
+ }), $n = /* @__PURE__ */ E({
851
1095
  __name: "editor",
852
1096
  props: {
853
1097
  modelValue: { required: !0 },
@@ -859,28 +1103,28 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
859
1103
  },
860
1104
  emits: ["update:modelValue", "update:lock", "update:scale"],
861
1105
  setup(t, { expose: s }) {
862
- const n = z(t, "modelValue"), e = z(t, "lock"), l = z(t, "scale"), o = St(), i = Vt(), u = Oe(), r = Fe("target"), a = () => {
1106
+ const n = G(t, "modelValue"), e = G(t, "lock"), l = G(t, "scale"), o = Ct(), i = Ut(), u = Je(), r = Ye("target"), a = () => {
863
1107
  const c = JSON.parse(n.value);
864
1108
  r.value?.load(c);
865
1109
  };
866
1110
  return s({ save: () => {
867
1111
  const c = r.value.save();
868
1112
  n.value = JSON.stringify(c, null, 2);
869
- } }), (c, f) => (_(), B(P(bt), {
1113
+ } }), (c, m) => (S(), B(L(Lt), {
870
1114
  ref_key: "target",
871
1115
  ref: r,
872
1116
  lock: e.value,
873
- "onUpdate:lock": f[0] || (f[0] = (v) => e.value = v),
1117
+ "onUpdate:lock": m[0] || (m[0] = (p) => e.value = p),
874
1118
  scale: l.value,
875
- "onUpdate:scale": f[1] || (f[1] = (v) => l.value = v),
876
- dark: P(o),
877
- locale: P(i),
1119
+ "onUpdate:scale": m[1] || (m[1] = (p) => l.value = p),
1120
+ dark: L(o),
1121
+ locale: L(i),
878
1122
  type: "json",
879
- version: P(u),
1123
+ version: L(u),
880
1124
  onReady: a
881
1125
  }, null, 8, ["lock", "scale", "dark", "locale", "version"]));
882
1126
  }
883
- }), mn = { class: "text-subtitle-1" }, fn = /* @__PURE__ */ E({
1127
+ }), bn = { class: "text-subtitle-1" }, wn = /* @__PURE__ */ E({
884
1128
  __name: "index",
885
1129
  props: {
886
1130
  modelValue: { required: !0 },
@@ -888,84 +1132,84 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
888
1132
  },
889
1133
  emits: ["update:modelValue"],
890
1134
  setup(t) {
891
- const { t: s } = I(), { sysBarAvail: n } = pe(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = te(), i = z(t, "modelValue"), u = T(!1), r = T(1), a = L(() => {
892
- let v = 48;
893
- return n.value && (v += 24), {
1135
+ const { t: s } = ne(), { sysBarAvail: n } = ue(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = I(), i = G(t, "modelValue"), u = O(!1), r = O(1), a = A(() => {
1136
+ let p = 48;
1137
+ return n.value && (p += 24), {
894
1138
  position: "relative",
895
1139
  background: l.value,
896
- height: `calc(100% - ${v}px)`
1140
+ height: `calc(100% - ${p}px)`
897
1141
  };
898
- }), d = L(() => s("x-prop-tree.dlg.jsonEditor.title")), { open: c } = _e(`propTreejsonEditorDlg${$e()}`);
899
- we(() => {
1142
+ }), d = A(() => s("x-prop-tree.dlg.jsonEditor.title")), { open: c } = ye(`propTreejsonEditorDlg${Se()}`);
1143
+ xe(() => {
900
1144
  c.value = !1;
901
1145
  });
902
- const f = Fe("editor");
903
- return oe(c, (v) => {
904
- v || f.value?.save();
905
- }), (v, C) => {
906
- const h = $("v-btn"), S = $("v-sheet"), D = $("v-spacer"), x = $("v-dialog");
907
- return _(), B(x, {
908
- modelValue: P(c),
909
- "onUpdate:modelValue": C[4] || (C[4] = (V) => re(c) ? c.value = V : null),
1146
+ const m = Ye("editor");
1147
+ return se(c, (p) => {
1148
+ p || m.value?.save();
1149
+ }), (p, v) => {
1150
+ const C = V("v-btn"), k = V("v-sheet"), $ = V("v-spacer"), U = V("v-dialog");
1151
+ return S(), B(U, {
1152
+ modelValue: L(c),
1153
+ "onUpdate:modelValue": v[4] || (v[4] = (g) => ie(c) ? c.value = g : null),
910
1154
  attach: "",
911
1155
  fullscreen: "",
912
1156
  "no-click-animation": "",
913
1157
  persistent: "",
914
1158
  transition: "dialog-bottom-transition",
915
- onKeydown: C[5] || (C[5] = Le(X((V) => c.value = !1, ["stop", "prevent"]), ["esc"]))
1159
+ onKeydown: v[5] || (v[5] = Me(J((g) => c.value = !1, ["stop", "prevent"]), ["esc"]))
916
1160
  }, {
917
- activator: R(({ props: V }) => [
918
- b(h, Me(V, {
1161
+ activator: q(({ props: g }) => [
1162
+ w(C, Ve(g, {
919
1163
  block: "",
920
1164
  density: "comfortable"
921
1165
  }), {
922
- default: R(() => [
923
- ke(F(d.value), 1)
1166
+ default: q(() => [
1167
+ ge(H(d.value), 1)
924
1168
  ]),
925
1169
  _: 1
926
1170
  }, 16)
927
1171
  ]),
928
- default: R(() => [
929
- b(S, {
930
- color: P(e),
1172
+ default: q(() => [
1173
+ w(k, {
1174
+ color: L(e),
931
1175
  height: "100%",
932
1176
  width: "100%"
933
1177
  }, {
934
- default: R(() => [
935
- P(n) ? (_(), B(S, {
1178
+ default: q(() => [
1179
+ L(n) ? (S(), B(k, {
936
1180
  key: 0,
937
- color: P(o),
1181
+ color: L(o),
938
1182
  height: 24
939
- }, null, 8, ["color"])) : G("", !0),
940
- b(S, {
1183
+ }, null, 8, ["color"])) : Y("", !0),
1184
+ w(k, {
941
1185
  class: "d-flex align-center px-2",
942
- color: P(o),
1186
+ color: L(o),
943
1187
  height: 48
944
1188
  }, {
945
- default: R(() => [
946
- b(h, {
1189
+ default: q(() => [
1190
+ w(C, {
947
1191
  density: "comfortable",
948
1192
  icon: "mdi-close",
949
1193
  variant: "text",
950
- onClick: C[0] || (C[0] = (V) => c.value = !1)
1194
+ onClick: v[0] || (v[0] = (g) => c.value = !1)
951
1195
  }),
952
- q("span", mn, F(P(s)("x-prop-tree.dlg.jsonEditor.title")), 1),
953
- b(D)
1196
+ D("span", bn, H(L(s)("x-prop-tree.jsonEditor")), 1),
1197
+ w($)
954
1198
  ]),
955
1199
  _: 1
956
1200
  }, 8, ["color"]),
957
- q("div", {
958
- style: W(a.value)
1201
+ D("div", {
1202
+ style: z(a.value)
959
1203
  }, [
960
- b(dn, {
1204
+ w($n, {
961
1205
  ref_key: "editor",
962
- ref: f,
1206
+ ref: m,
963
1207
  modelValue: i.value,
964
- "onUpdate:modelValue": C[1] || (C[1] = (V) => i.value = V),
1208
+ "onUpdate:modelValue": v[1] || (v[1] = (g) => i.value = g),
965
1209
  lock: u.value,
966
- "onUpdate:lock": C[2] || (C[2] = (V) => u.value = V),
1210
+ "onUpdate:lock": v[2] || (v[2] = (g) => u.value = g),
967
1211
  scale: r.value,
968
- "onUpdate:scale": C[3] || (C[3] = (V) => r.value = V)
1212
+ "onUpdate:scale": v[3] || (v[3] = (g) => r.value = g)
969
1213
  }, null, 8, ["modelValue", "lock", "scale"])
970
1214
  ], 4)
971
1215
  ]),
@@ -976,7 +1220,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
976
1220
  }, 8, ["modelValue"]);
977
1221
  };
978
1222
  }
979
- }), vn = { class: "d-flex justify-space-between align-center my-2" }, pn = { class: "flex-grow-1" }, gn = /* @__PURE__ */ E({
1223
+ }), Mn = { class: "d-flex justify-space-between align-center my-2" }, Pn = { class: "flex-grow-1" }, Ln = /* @__PURE__ */ E({
980
1224
  __name: "index",
981
1225
  props: /* @__PURE__ */ Z({
982
1226
  hasDelete: { type: Boolean, default: !1 },
@@ -987,45 +1231,45 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
987
1231
  }),
988
1232
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
989
1233
  setup(t, { emit: s }) {
990
- const { t: n } = I(), { isMobile: e } = pe(), l = z(t, "modelValue"), o = s, i = Oe(), u = L(() => Ne[i.value].types[t.types]), r = T(0), a = L(() => {
991
- const C = [];
992
- return u.value?.forEach(({ title: h }, S) => {
993
- C.push({
994
- title: n(h),
995
- value: S
1234
+ const { t: n } = ne(), { isMobile: e } = ue(), l = G(t, "modelValue"), o = s, i = Je(), u = A(() => qe[i.value].types[t.types]), r = O(0), a = A(() => {
1235
+ const v = [];
1236
+ return u.value?.forEach(({ title: C }, k) => {
1237
+ v.push({
1238
+ title: n(C),
1239
+ value: k
996
1240
  });
997
- }), C;
1241
+ }), v;
998
1242
  });
999
- Ke(() => {
1000
- u.value?.some((C, h) => C.validator(l.value) ? (r.value = h, !0) : !1);
1243
+ He(() => {
1244
+ u.value?.some((v, C) => v.validator(l.value) ? (r.value = C, !0) : !1);
1001
1245
  });
1002
- const d = L(() => u.value?.[r.value]), c = () => {
1246
+ const d = A(() => u.value?.[r.value]), c = () => {
1003
1247
  l.value = d.value?.default;
1004
- }, f = T(0), v = async (C) => {
1005
- if (!C || !e() || d.value.ui !== "pixelInput" && d.value.ui !== "percentInput")
1248
+ }, m = O(0), p = async (v) => {
1249
+ if (!v || !e() || d.value.ui !== "pixelInput" && d.value.ui !== "percentInput")
1006
1250
  return;
1007
- const h = await ze({
1251
+ const C = await We({
1008
1252
  title: "",
1009
- value: f.value,
1253
+ value: m.value,
1010
1254
  precision: d.value.precision,
1011
1255
  min: d.value.min,
1012
1256
  max: d.value.max,
1013
1257
  step: d.value.step
1014
1258
  });
1015
- h !== void 0 && (f.value = h);
1259
+ C !== void 0 && (m.value = C);
1016
1260
  };
1017
- return Ke(() => {
1018
- d.value?.ui === "pixelInput" ? f.value = wt(l.value) : d.value?.ui === "percentInput" && (f.value = Mt(l.value));
1019
- }), oe(f, (C) => {
1020
- d.value?.ui === "pixelInput" ? l.value = C + "px" : d.value?.ui === "percentInput" && (l.value = C + "%");
1021
- }), (C, h) => {
1022
- const S = $("v-select"), D = $("v-number-input"), x = $("v-btn"), V = ee("ripple");
1023
- return _(), K("div", vn, [
1024
- q("div", pn, [
1025
- j(b(S, {
1261
+ return He(() => {
1262
+ d.value?.ui === "pixelInput" ? m.value = Mt(l.value) : d.value?.ui === "percentInput" && (m.value = Pt(l.value));
1263
+ }), se(m, (v) => {
1264
+ d.value?.ui === "pixelInput" ? l.value = v + "px" : d.value?.ui === "percentInput" && (l.value = v + "%");
1265
+ }), (v, C) => {
1266
+ const k = V("v-select"), $ = V("v-number-input"), U = V("v-btn"), g = te("ripple");
1267
+ return S(), R("div", Mn, [
1268
+ D("div", Pn, [
1269
+ j(w(k, {
1026
1270
  modelValue: r.value,
1027
1271
  "onUpdate:modelValue": [
1028
- h[0] || (h[0] = (U) => r.value = U),
1272
+ C[0] || (C[0] = (M) => r.value = M),
1029
1273
  c
1030
1274
  ],
1031
1275
  density: "compact",
@@ -1034,16 +1278,16 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1034
1278
  "single-line": ""
1035
1279
  }, null, 8, ["modelValue", "items"]), [
1036
1280
  [
1037
- V,
1281
+ g,
1038
1282
  void 0,
1039
1283
  void 0,
1040
1284
  { stop: !0 }
1041
1285
  ]
1042
1286
  ]),
1043
- d.value?.ui === "pixelInput" || d.value?.ui === "percentInput" ? j((_(), B(D, {
1287
+ d.value?.ui === "pixelInput" || d.value?.ui === "percentInput" ? j((S(), B($, {
1044
1288
  key: 0,
1045
- modelValue: f.value,
1046
- "onUpdate:modelValue": h[1] || (h[1] = (U) => f.value = U),
1289
+ modelValue: m.value,
1290
+ "onUpdate:modelValue": C[1] || (C[1] = (M) => m.value = M),
1047
1291
  "control-variant": "stacked",
1048
1292
  density: "compact",
1049
1293
  "hide-details": "",
@@ -1052,28 +1296,28 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1052
1296
  precision: d.value.precision,
1053
1297
  "single-line": "",
1054
1298
  step: d.value.step,
1055
- "onUpdate:focused": v
1299
+ "onUpdate:focused": p
1056
1300
  }, null, 8, ["modelValue", "max", "min", "precision", "step"])), [
1057
1301
  [
1058
- V,
1302
+ g,
1059
1303
  void 0,
1060
1304
  void 0,
1061
1305
  { stop: !0 }
1062
1306
  ]
1063
- ]) : G("", !0)
1307
+ ]) : Y("", !0)
1064
1308
  ]),
1065
- t.hasDelete ? (_(), B(x, {
1309
+ t.hasDelete ? (S(), B(U, {
1066
1310
  key: 0,
1067
1311
  class: "mx-2",
1068
1312
  density: "compact",
1069
1313
  icon: "mdi-minus",
1070
1314
  variant: "text",
1071
- onClick: h[2] || (h[2] = X((U) => o("delete"), ["stop"]))
1072
- })) : G("", !0)
1315
+ onClick: C[2] || (C[2] = J((M) => o("delete"), ["stop"]))
1316
+ })) : Y("", !0)
1073
1317
  ]);
1074
1318
  };
1075
1319
  }
1076
- }), yn = { class: "d-flex justify-space-between align-center" }, hn = /* @__PURE__ */ E({
1320
+ }), An = { class: "d-flex justify-space-between align-center" }, Dn = /* @__PURE__ */ E({
1077
1321
  __name: "index",
1078
1322
  props: /* @__PURE__ */ Z({
1079
1323
  hasDelete: { type: Boolean, default: !1 },
@@ -1089,10 +1333,10 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1089
1333
  }),
1090
1334
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1091
1335
  setup(t, { emit: s }) {
1092
- const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
1336
+ const { isMobile: n } = ue(), e = G(t, "modelValue"), l = s, o = async (i) => {
1093
1337
  if (!i || t.readonly || !n())
1094
1338
  return;
1095
- const u = await ze({
1339
+ const u = await We({
1096
1340
  title: "",
1097
1341
  value: e.value,
1098
1342
  precision: t.precision,
@@ -1103,9 +1347,9 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1103
1347
  u !== void 0 && (e.value = u);
1104
1348
  };
1105
1349
  return (i, u) => {
1106
- const r = $("v-number-input"), a = $("v-btn"), d = ee("ripple");
1107
- return _(), K("div", yn, [
1108
- j(b(r, {
1350
+ const r = V("v-number-input"), a = V("v-btn"), d = te("ripple");
1351
+ return S(), R("div", An, [
1352
+ j(w(r, {
1109
1353
  modelValue: e.value,
1110
1354
  "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
1111
1355
  "control-variant": "stacked",
@@ -1126,18 +1370,18 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1126
1370
  { stop: !0 }
1127
1371
  ]
1128
1372
  ]),
1129
- t.hasDelete ? (_(), B(a, {
1373
+ t.hasDelete ? (S(), B(a, {
1130
1374
  key: 0,
1131
1375
  class: "mx-2",
1132
1376
  density: "compact",
1133
1377
  icon: "mdi-minus",
1134
1378
  variant: "text",
1135
- onClick: u[1] || (u[1] = X((c) => l("delete"), ["stop"]))
1136
- })) : G("", !0)
1379
+ onClick: u[1] || (u[1] = J((c) => l("delete"), ["stop"]))
1380
+ })) : Y("", !0)
1137
1381
  ]);
1138
1382
  };
1139
1383
  }
1140
- }), kn = { class: "d-flex justify-space-between align-center" }, _n = /* @__PURE__ */ E({
1384
+ }), Tn = { class: "d-flex justify-space-between align-center" }, Nn = /* @__PURE__ */ E({
1141
1385
  __name: "index",
1142
1386
  props: /* @__PURE__ */ Z({
1143
1387
  hasDelete: { type: Boolean, default: !1 },
@@ -1149,18 +1393,18 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1149
1393
  }),
1150
1394
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1151
1395
  setup(t, { emit: s }) {
1152
- const { t: n } = I(), e = z(t, "modelValue"), l = s, o = Oe(), i = L(() => {
1396
+ const { t: n } = ne(), e = G(t, "modelValue"), l = s, o = Je(), i = A(() => {
1153
1397
  const u = [];
1154
- return Ne[o.value].items[t.items].forEach(({ title: a, value: d }) => {
1398
+ return qe[o.value].items[t.items].forEach(({ title: a, value: d }) => {
1155
1399
  u.push({ title: n(a), value: d });
1156
1400
  }), u;
1157
1401
  });
1158
1402
  return (u, r) => {
1159
- const a = $("v-select"), d = $("v-btn"), c = ee("ripple");
1160
- return _(), K("div", kn, [
1161
- j(b(a, {
1403
+ const a = V("v-select"), d = V("v-btn"), c = te("ripple");
1404
+ return S(), R("div", Tn, [
1405
+ j(w(a, {
1162
1406
  modelValue: e.value,
1163
- "onUpdate:modelValue": r[0] || (r[0] = (f) => e.value = f),
1407
+ "onUpdate:modelValue": r[0] || (r[0] = (m) => e.value = m),
1164
1408
  density: "compact",
1165
1409
  "hide-details": "",
1166
1410
  items: i.value,
@@ -1174,123 +1418,27 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1174
1418
  { stop: !0 }
1175
1419
  ]
1176
1420
  ]),
1177
- t.hasDelete ? (_(), B(d, {
1421
+ t.hasDelete ? (S(), B(d, {
1178
1422
  key: 0,
1179
1423
  class: "mx-2",
1180
1424
  density: "compact",
1181
1425
  icon: "mdi-minus",
1182
1426
  variant: "text",
1183
- onClick: r[1] || (r[1] = X((f) => l("delete"), ["stop"]))
1184
- })) : G("", !0)
1185
- ]);
1186
- };
1187
- }
1188
- }), xn = { class: "text-subtitle-2 ml-1" }, Sn = { class: "text-caption text-grey ml-1" }, Vn = /* @__PURE__ */ E({
1189
- __name: "group",
1190
- props: {
1191
- id: {},
1192
- title: {},
1193
- collapse: { type: Boolean },
1194
- count: {}
1195
- },
1196
- emits: ["x-click"],
1197
- setup(t, { emit: s }) {
1198
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
1199
- background: i.value ? e.value : n.value,
1200
- height: "30px",
1201
- marginBottom: "1px",
1202
- userSelect: "none"
1203
- }));
1204
- return (r, a) => {
1205
- const d = $("v-icon"), c = ee("ripple");
1206
- return j((_(), K("div", {
1207
- class: "d-flex align-center cursor-pointer",
1208
- style: W(u.value),
1209
- onClick: a[0] || (a[0] = (f) => o("x-click", l.id)),
1210
- onMouseout: a[1] || (a[1] = (f) => i.value = !1),
1211
- onMouseover: a[2] || (a[2] = (f) => i.value = !0)
1212
- }, [
1213
- b(d, {
1214
- icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
1215
- size: "small"
1216
- }, null, 8, ["icon"]),
1217
- q("span", xn, F(l.title), 1),
1218
- q("span", Sn, F(l.count), 1)
1219
- ], 36)), [
1220
- [c]
1427
+ onClick: r[1] || (r[1] = J((m) => l("delete"), ["stop"]))
1428
+ })) : Y("", !0)
1221
1429
  ]);
1222
1430
  };
1223
1431
  }
1224
- }), Cn = { class: "text-subtitle-1 ml-6" }, Un = /* @__PURE__ */ E({
1225
- __name: "item",
1226
- props: {
1227
- id: {},
1228
- title: {}
1229
- },
1230
- emits: ["x-click"],
1231
- setup(t, { emit: s }) {
1232
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
1233
- background: i.value ? e.value : n.value,
1234
- height: "48px",
1235
- marginBottom: "1px",
1236
- userSelect: "none"
1237
- }));
1238
- return (r, a) => {
1239
- const d = ee("ripple");
1240
- return j((_(), K("div", {
1241
- class: "d-flex align-center cursor-pointer",
1242
- style: W(u.value),
1243
- onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
1244
- onMouseout: a[1] || (a[1] = (c) => i.value = !1),
1245
- onMouseover: a[2] || (a[2] = (c) => i.value = !0)
1246
- }, [
1247
- q("span", Cn, F(l.title), 1)
1248
- ], 36)), [
1249
- [d]
1250
- ]);
1251
- };
1252
- }
1253
- }), $n = { key: 0 }, wn = {
1254
- key: 1,
1255
- class: "text-body-2 text-grey ml-3"
1256
- }, Mn = /* @__PURE__ */ E({
1257
- __name: "index",
1258
- props: {
1259
- modelValue: {},
1260
- modelModifiers: {},
1261
- open: { type: Boolean, required: !0 },
1262
- openModifiers: {}
1263
- },
1264
- emits: ["update:modelValue", "update:open"],
1265
- setup(t) {
1266
- const { t: s } = I(), n = z(t, "modelValue"), e = z(t, "open"), l = it(), o = (u) => {
1267
- const r = ve(l, u);
1268
- r && We(l, u, !r.collapse);
1269
- }, i = (u) => {
1270
- n.value = u, e.value = !1;
1271
- };
1272
- return (u, r) => P(l).length > 0 ? (_(), K("div", $n, [
1273
- (_(!0), K(fe, null, Te(P(l), (a) => (_(), K(fe, {
1274
- key: a.id
1275
- }, [
1276
- a.type === 0 ? (_(), B(Vn, {
1277
- key: 0,
1278
- id: a.id,
1279
- collapse: a.collapse,
1280
- count: a.count ?? 0,
1281
- title: a.name,
1282
- onXClick: o
1283
- }, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
1284
- a.type === 1 && a.show ? (_(), B(Un, {
1285
- key: 1,
1286
- id: a.id,
1287
- title: a.name,
1288
- onXClick: i
1289
- }, null, 8, ["id", "title"])) : G("", !0)
1290
- ], 64))), 128))
1291
- ])) : (_(), K("div", wn, F(P(s)("x-prop-tree.noSlot")), 1));
1292
- }
1293
- }), bn = { class: "text-subtitle-1 ml-3" }, Pn = /* @__PURE__ */ E({
1432
+ }), On = (t, s) => {
1433
+ const n = t.__vccOpts || t;
1434
+ for (const [e, l] of s)
1435
+ n[e] = l;
1436
+ return n;
1437
+ }, Bn = {};
1438
+ function qn(t, s) {
1439
+ return S(), R("div");
1440
+ }
1441
+ const Kn = /* @__PURE__ */ On(Bn, [["render", qn]]), Rn = { class: "text-subtitle-1 ml-3" }, En = /* @__PURE__ */ E({
1294
1442
  __name: "index",
1295
1443
  props: {
1296
1444
  modelValue: {},
@@ -1298,92 +1446,92 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1298
1446
  },
1299
1447
  emits: ["update:modelValue"],
1300
1448
  setup(t) {
1301
- const { t: s } = I(), n = Ze(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = it(), u = L(() => {
1302
- let f = "100%";
1303
- return n.mdAndUp.value && (f = "400px"), {
1304
- background: l.value,
1305
- width: f,
1449
+ const { t: s } = ne(), n = Re(), { sysBarAvail: e, nameList: l } = ue(), { backgroundColor1: o } = I(), i = G(t, "modelValue"), u = Qt(), r = A(() => {
1450
+ let p = "100%";
1451
+ return n.mdAndUp.value && (p = "400px"), {
1452
+ background: o.value,
1453
+ width: p,
1306
1454
  height: "100%"
1307
1455
  };
1308
- }), r = L(() => {
1309
- let f = 48;
1310
- return e.value && (f += 24), {
1456
+ }), a = A(() => {
1457
+ let p = 48;
1458
+ return e.value && (p += 24), {
1311
1459
  position: "relative",
1312
- height: `calc(100% - ${f}px)`
1460
+ height: `calc(100% - ${p}px)`
1313
1461
  };
1314
- }), a = L(() => ({
1462
+ }), d = A(() => ({
1315
1463
  height: "60px"
1316
- })), d = L(() => {
1317
- if (!o.value)
1464
+ })), c = A(() => {
1465
+ if (!i.value)
1318
1466
  return s("x-runtime-lib.notSet");
1319
- const f = ve(i, o.value);
1320
- return f ? f.name : s("x-runtime-lib.slotNotAvail");
1321
- }), { open: c } = _e(`propTreeSlotSelectDlg${$e()}`);
1322
- return we(() => {
1323
- c.value = !1;
1324
- }), (f, v) => {
1325
- const C = $("v-btn"), h = $("v-sheet"), S = $("v-icon"), D = $("v-dialog");
1326
- return _(), B(D, {
1327
- modelValue: P(c),
1328
- "onUpdate:modelValue": v[5] || (v[5] = (x) => re(c) ? c.value = x : null),
1467
+ const p = u.value.find((v) => v.id === i.value);
1468
+ return p ? p.name : s("x-runtime-lib.slotNotAvail");
1469
+ }), { open: m } = ye(`propTreeSlotSelectDlg${Se()}`);
1470
+ return xe(() => {
1471
+ m.value = !1;
1472
+ }), (p, v) => {
1473
+ const C = V("v-btn"), k = V("v-sheet"), $ = V("v-icon"), U = V("v-dialog");
1474
+ return S(), B(U, {
1475
+ modelValue: L(m),
1476
+ "onUpdate:modelValue": v[5] || (v[5] = (g) => ie(m) ? m.value = g : null),
1329
1477
  fullscreen: "",
1330
1478
  "no-click-animation": "",
1331
1479
  persistent: "",
1332
1480
  transition: "scroll-x-reverse-transition",
1333
- onKeydown: v[6] || (v[6] = Le(X((x) => c.value = !1, ["stop", "prevent"]), ["esc"]))
1481
+ onKeydown: v[6] || (v[6] = Me(J((g) => m.value = !1, ["stop", "prevent"]), ["esc"]))
1334
1482
  }, {
1335
- activator: R(({ props: x }) => [
1336
- b(C, Me(x, {
1483
+ activator: q(({ props: g }) => [
1484
+ w(C, Ve(g, {
1337
1485
  block: "",
1338
1486
  density: "comfortable"
1339
1487
  }), {
1340
- default: R(() => [
1341
- ke(F(d.value), 1)
1488
+ default: q(() => [
1489
+ ge(H(c.value), 1)
1342
1490
  ]),
1343
1491
  _: 1
1344
1492
  }, 16)
1345
1493
  ]),
1346
- default: R(() => [
1347
- q("div", {
1494
+ default: q(() => [
1495
+ D("div", {
1348
1496
  class: "w-100 h-100 d-flex flex-row-reverse",
1349
- onClick: v[3] || (v[3] = X((x) => c.value = !1, ["self"])),
1350
- onContextmenu: v[4] || (v[4] = X((x) => c.value = !1, ["self", "prevent"]))
1497
+ onClick: v[3] || (v[3] = J((g) => m.value = !1, ["self"])),
1498
+ onContextmenu: v[4] || (v[4] = J((g) => m.value = !1, ["self", "prevent"]))
1351
1499
  }, [
1352
- q("div", {
1500
+ D("div", {
1353
1501
  class: "elevation-2",
1354
- style: W(u.value)
1502
+ style: z(r.value)
1355
1503
  }, [
1356
- P(e) ? (_(), B(h, {
1504
+ L(e) ? (S(), B(k, {
1357
1505
  key: 0,
1358
1506
  color: "transparent",
1359
1507
  height: 24
1360
- })) : G("", !0),
1361
- b(h, {
1508
+ })) : Y("", !0),
1509
+ w(k, {
1362
1510
  class: "d-flex align-center px-3",
1363
1511
  color: "transparent",
1364
1512
  height: 48
1365
1513
  }, {
1366
- default: R(() => [
1367
- b(S, {
1514
+ default: q(() => [
1515
+ w($, {
1368
1516
  icon: "mdi-close",
1369
- onClick: v[0] || (v[0] = (x) => c.value = !1)
1517
+ onClick: v[0] || (v[0] = (g) => m.value = !1)
1370
1518
  }),
1371
- q("span", bn, F(P(s)("x-prop-tree.dlg.slotSelect.title")), 1)
1519
+ D("span", Rn, H(L(l)(["select", "slot"])), 1)
1372
1520
  ]),
1373
1521
  _: 1
1374
1522
  }),
1375
- q("div", {
1523
+ D("div", {
1376
1524
  class: "overflow-y-auto",
1377
- style: W(r.value)
1525
+ style: z(a.value)
1378
1526
  }, [
1379
- b(Mn, {
1380
- modelValue: o.value,
1381
- "onUpdate:modelValue": v[1] || (v[1] = (x) => o.value = x),
1382
- open: P(c),
1383
- "onUpdate:open": v[2] || (v[2] = (x) => re(c) ? c.value = x : null)
1527
+ w(Kn, {
1528
+ modelValue: i.value,
1529
+ "onUpdate:modelValue": v[1] || (v[1] = (g) => i.value = g),
1530
+ open: L(m),
1531
+ "onUpdate:open": v[2] || (v[2] = (g) => ie(m) ? m.value = g : null)
1384
1532
  }, null, 8, ["modelValue", "open"]),
1385
- q("div", {
1386
- style: W(a.value)
1533
+ D("div", {
1534
+ style: z(d.value)
1387
1535
  }, null, 4)
1388
1536
  ], 4)
1389
1537
  ], 4)
@@ -1393,7 +1541,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1393
1541
  }, 8, ["modelValue"]);
1394
1542
  };
1395
1543
  }
1396
- }), Dn = { class: "d-flex justify-space-between align-center" }, An = /* @__PURE__ */ E({
1544
+ }), Jn = { class: "d-flex justify-space-between align-center" }, Xn = /* @__PURE__ */ E({
1397
1545
  __name: "index",
1398
1546
  props: /* @__PURE__ */ Z({
1399
1547
  hasDelete: { type: Boolean, default: !1 },
@@ -1404,19 +1552,19 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1404
1552
  }),
1405
1553
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1406
1554
  setup(t, { emit: s }) {
1407
- const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
1555
+ const { isMobile: n } = ue(), e = G(t, "modelValue"), l = s, o = async (i) => {
1408
1556
  if (!i || t.readonly || !n())
1409
1557
  return;
1410
- const u = await Ct({
1558
+ const u = await $t({
1411
1559
  title: "",
1412
1560
  value: e.value
1413
1561
  });
1414
1562
  u !== void 0 && (e.value = u);
1415
1563
  };
1416
1564
  return (i, u) => {
1417
- const r = $("v-text-field"), a = $("v-btn"), d = ee("ripple");
1418
- return _(), K("div", Dn, [
1419
- j(b(r, {
1565
+ const r = V("v-text-field"), a = V("v-btn"), d = te("ripple");
1566
+ return S(), R("div", Jn, [
1567
+ j(w(r, {
1420
1568
  modelValue: e.value,
1421
1569
  "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
1422
1570
  density: "compact",
@@ -1432,18 +1580,18 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1432
1580
  { stop: !0 }
1433
1581
  ]
1434
1582
  ]),
1435
- t.hasDelete ? (_(), B(a, {
1583
+ t.hasDelete ? (S(), B(a, {
1436
1584
  key: 0,
1437
1585
  class: "mx-2",
1438
1586
  density: "compact",
1439
1587
  icon: "mdi-minus",
1440
1588
  variant: "text",
1441
- onClick: u[1] || (u[1] = X((c) => l("delete"), ["stop"]))
1442
- })) : G("", !0)
1589
+ onClick: u[1] || (u[1] = J((c) => l("delete"), ["stop"]))
1590
+ })) : Y("", !0)
1443
1591
  ]);
1444
1592
  };
1445
1593
  }
1446
- }), Tn = { class: "d-flex justify-space-between align-center" }, Ln = /* @__PURE__ */ E({
1594
+ }), Hn = { class: "d-flex justify-space-between align-center" }, Fn = /* @__PURE__ */ E({
1447
1595
  __name: "index",
1448
1596
  props: /* @__PURE__ */ Z({
1449
1597
  hasDelete: { type: Boolean, default: !1 },
@@ -1454,11 +1602,11 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1454
1602
  }),
1455
1603
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1456
1604
  setup(t, { emit: s }) {
1457
- const n = z(t, "modelValue"), e = s;
1605
+ const n = G(t, "modelValue"), e = s;
1458
1606
  return (l, o) => {
1459
- const i = $("v-switch"), u = $("v-btn");
1460
- return _(), K("div", Tn, [
1461
- b(i, {
1607
+ const i = V("v-switch"), u = V("v-btn");
1608
+ return S(), R("div", Hn, [
1609
+ w(i, {
1462
1610
  modelValue: n.value,
1463
1611
  "onUpdate:modelValue": o[0] || (o[0] = (r) => n.value = r),
1464
1612
  class: "ml-1",
@@ -1467,21 +1615,44 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1467
1615
  "hide-details": "",
1468
1616
  readonly: t.readonly
1469
1617
  }, null, 8, ["modelValue", "readonly"]),
1470
- t.hasDelete ? (_(), B(u, {
1618
+ t.hasDelete ? (S(), B(u, {
1471
1619
  key: 0,
1472
1620
  class: "mx-2",
1473
1621
  density: "compact",
1474
1622
  icon: "mdi-minus",
1475
1623
  variant: "text",
1476
- onClick: o[1] || (o[1] = X((r) => e("delete"), ["stop"]))
1477
- })) : G("", !0)
1624
+ onClick: o[1] || (o[1] = J((r) => e("delete"), ["stop"]))
1625
+ })) : Y("", !0)
1478
1626
  ]);
1479
1627
  };
1480
1628
  }
1481
1629
  });
1482
- function Nn(t) {
1483
- return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), k("div", "renderUiColorPicker property ui must be colorPicker")) : k(It, {
1484
- modelValue: ne(
1630
+ function zn(t) {
1631
+ return { renderUiAdaptSlotSelect: (n, e, l, o, i) => e.ui !== "adaptSlotSelect" ? (console.assert(!1), x("div", "renderUiSlotSelect property ui must be adaptSlotSelect")) : x(fn, {
1632
+ modelValue: ee(
1633
+ n,
1634
+ e,
1635
+ l,
1636
+ t,
1637
+ o,
1638
+ i
1639
+ ),
1640
+ "onUpdate:modelValue": (u) => {
1641
+ le(
1642
+ n,
1643
+ e,
1644
+ l,
1645
+ u,
1646
+ t,
1647
+ o,
1648
+ i
1649
+ );
1650
+ }
1651
+ }) };
1652
+ }
1653
+ function Gn(t) {
1654
+ return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), x("div", "renderUiColorPicker property ui must be colorPicker")) : x(pn, {
1655
+ modelValue: ee(
1485
1656
  n,
1486
1657
  e,
1487
1658
  l,
@@ -1490,7 +1661,7 @@ function Nn(t) {
1490
1661
  i
1491
1662
  ),
1492
1663
  "onUpdate:modelValue": (u) => {
1493
- se(
1664
+ le(
1494
1665
  n,
1495
1666
  e,
1496
1667
  l,
@@ -1507,9 +1678,9 @@ function Nn(t) {
1507
1678
  readonly: e.readonly
1508
1679
  }) };
1509
1680
  }
1510
- function Bn(t) {
1511
- return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), k("div", "renderUiCompSelect property ui must be compSelect")) : k(cn, {
1512
- modelValue: ne(
1681
+ function Yn(t) {
1682
+ return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), x("div", "renderUiCompSelect property ui must be compSelect")) : x(Un, {
1683
+ modelValue: ee(
1513
1684
  n,
1514
1685
  e,
1515
1686
  l,
@@ -1518,7 +1689,7 @@ function Bn(t) {
1518
1689
  i
1519
1690
  ),
1520
1691
  "onUpdate:modelValue": (u) => {
1521
- se(
1692
+ le(
1522
1693
  n,
1523
1694
  e,
1524
1695
  l,
@@ -1530,18 +1701,18 @@ function Bn(t) {
1530
1701
  }
1531
1702
  }) };
1532
1703
  }
1533
- function On(t) {
1704
+ function Wn(t) {
1534
1705
  return { renderUiDummy: (n, e, l, o, i) => {
1535
1706
  if (e.ui !== "dummy") {
1536
1707
  console.assert(!1, "renderUiDummy property ui must be dummy");
1537
1708
  return;
1538
1709
  }
1539
- ne(n, e, l, t, o, i);
1710
+ ee(n, e, l, t, o, i);
1540
1711
  } };
1541
1712
  }
1542
- function qn(t) {
1543
- return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? k("div", "renderUijsonEditor property ui must be jsonEditor") : k(fn, {
1544
- modelValue: ne(
1713
+ function Qn(t) {
1714
+ return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? x("div", "renderUijsonEditor property ui must be jsonEditor") : x(wn, {
1715
+ modelValue: ee(
1545
1716
  n,
1546
1717
  e,
1547
1718
  l,
@@ -1550,7 +1721,7 @@ function qn(t) {
1550
1721
  i
1551
1722
  ) ?? "{}",
1552
1723
  "onUpdate:modelValue": (u) => {
1553
- se(
1724
+ le(
1554
1725
  n,
1555
1726
  e,
1556
1727
  l,
@@ -1562,9 +1733,9 @@ function qn(t) {
1562
1733
  }
1563
1734
  }) };
1564
1735
  }
1565
- function Kn(t) {
1566
- return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), k("div", "renderUiMultiTypes property ui must be multiTypes")) : k(gn, {
1567
- modelValue: ne(
1736
+ function Zn(t) {
1737
+ return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), x("div", "renderUiMultiTypes property ui must be multiTypes")) : x(Ln, {
1738
+ modelValue: ee(
1568
1739
  n,
1569
1740
  e,
1570
1741
  l,
@@ -1573,7 +1744,7 @@ function Kn(t) {
1573
1744
  i
1574
1745
  ) ?? "",
1575
1746
  "onUpdate:modelValue": (u) => {
1576
- se(
1747
+ le(
1577
1748
  n,
1578
1749
  e,
1579
1750
  l,
@@ -1590,9 +1761,9 @@ function Kn(t) {
1590
1761
  types: e.types
1591
1762
  }) };
1592
1763
  }
1593
- function Rn(t) {
1594
- return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), k("div", "renderUiNumInput property ui must be numInput")) : k(hn, {
1595
- modelValue: ne(
1764
+ function jn(t) {
1765
+ return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), x("div", "renderUiNumInput property ui must be numInput")) : x(Dn, {
1766
+ modelValue: ee(
1596
1767
  n,
1597
1768
  e,
1598
1769
  l,
@@ -1601,7 +1772,7 @@ function Rn(t) {
1601
1772
  i
1602
1773
  ),
1603
1774
  "onUpdate:modelValue": (u) => {
1604
- se(
1775
+ le(
1605
1776
  n,
1606
1777
  e,
1607
1778
  l,
@@ -1622,14 +1793,14 @@ function Rn(t) {
1622
1793
  readonly: e.readonly
1623
1794
  }) };
1624
1795
  }
1625
- const En = /* @__PURE__ */ E({
1796
+ const In = /* @__PURE__ */ E({
1626
1797
  __name: "index",
1627
1798
  props: {
1628
1799
  minHeight: {}
1629
1800
  },
1630
1801
  emits: ["menu"],
1631
1802
  setup(t, { emit: s }) {
1632
- const { backgroundColor2: n, highlightColor: e } = te(), l = s, o = T(!1), i = L(() => ({
1803
+ const { backgroundColor2: n, highlightColor: e } = I(), l = s, o = O(!1), i = A(() => ({
1633
1804
  background: o.value ? e.value : n.value,
1634
1805
  minHeight: t.minHeight,
1635
1806
  paddingRight: "4px",
@@ -1639,47 +1810,47 @@ const En = /* @__PURE__ */ E({
1639
1810
  l("menu", r.clientX, r.clientY);
1640
1811
  };
1641
1812
  return (r, a) => {
1642
- const d = ee("ripple");
1643
- return j((_(), K("div", {
1813
+ const d = te("ripple");
1814
+ return j((S(), R("div", {
1644
1815
  class: "d-flex justify-space-between align-center cursor-pointer",
1645
- style: W(i.value),
1646
- onContextmenu: X(u, ["self", "prevent"]),
1816
+ style: z(i.value),
1817
+ onContextmenu: J(u, ["self", "prevent"]),
1647
1818
  onMouseout: a[0] || (a[0] = (c) => o.value = !1),
1648
1819
  onMouseover: a[1] || (a[1] = (c) => o.value = !0)
1649
1820
  }, [
1650
- kt(r.$slots, "default")
1821
+ St(r.$slots, "default")
1651
1822
  ], 36)), [
1652
1823
  [d]
1653
1824
  ]);
1654
1825
  };
1655
1826
  }
1656
1827
  });
1657
- function Jn(t, s, n) {
1658
- const { t: e } = I();
1828
+ function el(t, s, n) {
1829
+ const { t: e } = ne();
1659
1830
  return { renderProperty: (o, i, u) => {
1660
1831
  const r = o[o.length - 1];
1661
1832
  let d = typeof r == "number" ? `[${r + 1}]` : e(i.name);
1662
- return me(t.value, o) && (d += " *"), k(
1663
- En,
1833
+ return fe(t.value, o) && (d += " *"), x(
1834
+ In,
1664
1835
  {
1665
1836
  minHeight: s.value,
1666
- onMenu: (c, f) => {
1667
- de.emit("propTreeMenu", { x: c, y: f, keys: o });
1837
+ onMenu: (c, m) => {
1838
+ me.emit("propTreeMenu", { x: c, y: m, keys: o });
1668
1839
  }
1669
1840
  },
1670
1841
  () => [
1671
- k("span", {
1842
+ x("span", {
1672
1843
  style: { marginLeft: "4px", pointerEvents: "none" },
1673
1844
  innerHTML: d
1674
1845
  }),
1675
- k("div", { style: { width: n.value } }, u)
1846
+ x("div", { style: { width: n.value } }, u)
1676
1847
  ]
1677
1848
  );
1678
1849
  } };
1679
1850
  }
1680
- function Hn(t) {
1681
- return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), k("div", "renderUiSelect property ui must be select")) : k(_n, {
1682
- modelValue: ne(
1851
+ function tl(t) {
1852
+ return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), x("div", "renderUiSelect property ui must be select")) : x(Nn, {
1853
+ modelValue: ee(
1683
1854
  n,
1684
1855
  e,
1685
1856
  l,
@@ -1688,7 +1859,7 @@ function Hn(t) {
1688
1859
  i
1689
1860
  ) ?? "",
1690
1861
  "onUpdate:modelValue": (u) => {
1691
- se(
1862
+ le(
1692
1863
  n,
1693
1864
  e,
1694
1865
  l,
@@ -1706,9 +1877,9 @@ function Hn(t) {
1706
1877
  readonly: e.readonly
1707
1878
  }) };
1708
1879
  }
1709
- function Xn(t) {
1710
- return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), k("div", "renderUiSlotSelect property ui must be slotSelect")) : k(Pn, {
1711
- modelValue: ne(
1880
+ function nl(t) {
1881
+ return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), x("div", "renderUiSlotSelect property ui must be slotSelect")) : x(En, {
1882
+ modelValue: ee(
1712
1883
  n,
1713
1884
  e,
1714
1885
  l,
@@ -1717,7 +1888,7 @@ function Xn(t) {
1717
1888
  i
1718
1889
  ),
1719
1890
  "onUpdate:modelValue": (u) => {
1720
- se(
1891
+ le(
1721
1892
  n,
1722
1893
  e,
1723
1894
  l,
@@ -1729,9 +1900,9 @@ function Xn(t) {
1729
1900
  }
1730
1901
  }) };
1731
1902
  }
1732
- function Fn(t) {
1733
- return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), k("div", "renderUiStrInput property ui must be strInput")) : k(An, {
1734
- modelValue: e.static ? e.value : ne(
1903
+ function ll(t) {
1904
+ return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), x("div", "renderUiStrInput property ui must be strInput")) : x(Xn, {
1905
+ modelValue: e.static ? e.value : ee(
1735
1906
  n,
1736
1907
  e,
1737
1908
  l,
@@ -1740,7 +1911,7 @@ function Fn(t) {
1740
1911
  i
1741
1912
  ),
1742
1913
  "onUpdate:modelValue": (u) => {
1743
- e.static || se(
1914
+ e.static || le(
1744
1915
  n,
1745
1916
  e,
1746
1917
  l,
@@ -1757,9 +1928,9 @@ function Fn(t) {
1757
1928
  readonly: e.static || e.readonly
1758
1929
  }) };
1759
1930
  }
1760
- function zn(t) {
1761
- return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), k("div", "renderUiSwitch property ui must be switch")) : k(Ln, {
1762
- modelValue: ne(
1931
+ function ol(t) {
1932
+ return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), x("div", "renderUiSwitch property ui must be switch")) : x(Fn, {
1933
+ modelValue: ee(
1763
1934
  n,
1764
1935
  e,
1765
1936
  l,
@@ -1768,7 +1939,7 @@ function zn(t) {
1768
1939
  i
1769
1940
  ) ?? !1,
1770
1941
  "onUpdate:modelValue": (u) => {
1771
- se(
1942
+ le(
1772
1943
  n,
1773
1944
  e,
1774
1945
  l,
@@ -1785,7 +1956,7 @@ function zn(t) {
1785
1956
  readonly: e.readonly
1786
1957
  }) };
1787
1958
  }
1788
- const Gn = /* @__PURE__ */ E({
1959
+ const sl = /* @__PURE__ */ E({
1789
1960
  __name: "index",
1790
1961
  props: {
1791
1962
  unique: {},
@@ -1797,108 +1968,108 @@ const Gn = /* @__PURE__ */ E({
1797
1968
  },
1798
1969
  emits: ["change"],
1799
1970
  setup(t, { emit: s }) {
1800
- const { t: n } = I(), { backgroundColor1: e } = te(), l = t, o = s, i = T("20px"), u = T("56px"), r = T("200px"), a = _t({}), d = T({}), c = (p, m) => {
1801
- Je(d, l.config, l.object), o("change", p, m);
1971
+ const { t: n } = ne(), { backgroundColor1: e } = I(), l = t, o = s, i = O("20px"), u = O("56px"), r = O("200px"), a = xt({}), d = O({}), c = (y, f) => {
1972
+ Ge(d, l.config, l.object), o("change", y, f);
1802
1973
  };
1803
- oe(
1974
+ se(
1804
1975
  [() => l.config, () => l.object],
1805
1976
  () => {
1806
- Je(
1977
+ Ge(
1807
1978
  d,
1808
1979
  l.config,
1809
1980
  l.object,
1810
- (p, m) => {
1811
- o("change", p, m);
1981
+ (y, f) => {
1982
+ o("change", y, f);
1812
1983
  }
1813
1984
  );
1814
1985
  },
1815
1986
  { immediate: !0 }
1816
1987
  );
1817
- const f = T(l.version);
1818
- Ot(f), oe(
1988
+ const m = O(l.version);
1989
+ Kt(m), se(
1819
1990
  () => l.version,
1820
1991
  () => {
1821
- f.value = l.version;
1992
+ m.value = l.version;
1822
1993
  }
1823
1994
  );
1824
- const v = T(l.type);
1825
- oe(
1995
+ const p = O(l.type);
1996
+ se(
1826
1997
  () => l.type,
1827
1998
  () => {
1828
- v.value = l.type;
1999
+ p.value = l.type;
1829
2000
  }
1830
2001
  );
1831
- const C = T(l.subtype);
1832
- oe(
2002
+ const v = O(l.subtype);
2003
+ se(
1833
2004
  () => l.subtype,
1834
2005
  () => {
1835
- C.value = l.subtype;
2006
+ v.value = l.subtype;
1836
2007
  }
1837
2008
  );
1838
- const h = T(l.config);
1839
- qt(h), oe(
2009
+ const C = O(l.config);
2010
+ Rt(C), se(
1840
2011
  () => l.config,
1841
2012
  () => {
1842
- h.value = l.config;
2013
+ C.value = l.config;
1843
2014
  }
1844
2015
  );
1845
- const S = T(l.object);
1846
- Rt(S), oe(
2016
+ const k = O(l.object);
2017
+ Jt(k), se(
1847
2018
  () => l.object,
1848
2019
  () => {
1849
- S.value = l.object;
2020
+ k.value = l.object;
1850
2021
  }
1851
- ), Jt(d), Xt(c), Zt(), Qt(f, v, C);
1852
- const { renderProperty: D } = Jn(
2022
+ ), Ht(d), zt(c), tn(), nn(), en(m, p, v);
2023
+ const { renderProperty: $ } = el(
1853
2024
  d,
1854
2025
  u,
1855
2026
  r
1856
- ), { renderUiDummy: x } = On(c), { renderUiStrInput: V } = Fn(c), { renderUiNumInput: U } = Rn(c), { renderUiSwitch: O } = zn(c), { renderUiSelect: Q } = Hn(c), { renderUiColorPicker: ge } = Nn(c), { renderUiJsonEditor: ut } = qn(c), { renderUiMultiTypes: rt } = Kn(c), { renderUiCompSelect: at } = Bn(c), { renderUiSlotSelect: ct } = Xn(c), xe = (p, m, y, g, w, A) => (p = Ge(p), w !== void 0 ? (p.push(w), A && p.push(m.key)) : p.push(m.key), m.ui ? m.array && g ? ft(
1857
- p,
1858
- m,
2027
+ ), { renderUiDummy: U } = Wn(c), { renderUiStrInput: g } = ll(c), { renderUiNumInput: M } = jn(c), { renderUiSwitch: T } = ol(c), { renderUiSelect: Q } = tl(c), { renderUiColorPicker: he } = Gn(c), { renderUiJsonEditor: De } = Qn(c), { renderUiMultiTypes: at } = Zn(c), { renderUiCompSelect: ct } = Yn(c), { renderUiSlotSelect: dt } = nl(c), { renderUiAdaptSlotSelect: mt } = zn(c), Ce = (y, f, _, h, b, N) => (y = Qe(y), b !== void 0 ? (y.push(b), N && y.push(f.key)) : y.push(f.key), f.ui ? f.array && h ? pt(
1859
2028
  y,
1860
- g,
1861
- w,
1862
- A
1863
- ) : vt(p, m, y, w, A) : m.array ? dt(
1864
- p,
1865
- m,
2029
+ f,
2030
+ _,
2031
+ h,
2032
+ b,
2033
+ N
2034
+ ) : gt(y, f, _, b, N) : f.array ? ft(
1866
2035
  y,
1867
- g,
1868
- w,
1869
- A
1870
- ) : mt(
1871
- p,
1872
- m,
2036
+ f,
2037
+ _,
2038
+ h,
2039
+ b,
2040
+ N
2041
+ ) : vt(
1873
2042
  y,
1874
- g,
1875
- w,
1876
- A
1877
- )), dt = (p, m, y, g, w, A) => {
1878
- if (m.ui)
1879
- return console.assert(!1), k("div", "renderBranchArray property ui must be invalid");
1880
- if (!m.array)
1881
- return console.assert(!1), k("div", "renderBranchArray property array must be valid");
1882
- if (!g)
1883
- return console.assert(!1), k("div", "renderBranchArray branch must be valid");
1884
- let H;
1885
- w !== void 0 && !A ? (y[w] instanceof Array || (y[w] = J(m), c(p, y[m.key])), H = y[w]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
1886
- let ie = n(m.name);
1887
- g.collapse && me(d.value, p) && (ie += " *");
1888
- const ye = k(Ue, {
1889
- title: ie,
1890
- collapse: g.collapse,
2043
+ f,
2044
+ _,
2045
+ h,
2046
+ b,
2047
+ N
2048
+ )), ft = (y, f, _, h, b, N) => {
2049
+ if (f.ui)
2050
+ return console.assert(!1), x("div", "renderBranchArray property ui must be invalid");
2051
+ if (!f.array)
2052
+ return console.assert(!1), x("div", "renderBranchArray property array must be valid");
2053
+ if (!h)
2054
+ return console.assert(!1), x("div", "renderBranchArray branch must be valid");
2055
+ let F;
2056
+ b !== void 0 && !N ? (_[b] instanceof Array || (_[b] = X(f), c(y, _[f.key])), F = _[b]) : (_[f.key] instanceof Array || (_[f.key] = X(f), c(y, _[f.key])), F = _[f.key]);
2057
+ let ce = n(f.name);
2058
+ h.collapse && fe(d.value, y) && (ce += " *");
2059
+ const _e = x(we, {
2060
+ title: ce,
2061
+ collapse: h.collapse,
1891
2062
  hasCreate: !0,
1892
- onCollapse: (M) => {
1893
- g.collapse = M;
2063
+ onCollapse: (P) => {
2064
+ h.collapse = P;
1894
2065
  },
1895
- onMenu: (M, N) => {
1896
- de.emit("propTreeMenu", { x: M, y: N, keys: p });
2066
+ onMenu: (P, K) => {
2067
+ me.emit("propTreeMenu", { x: P, y: K, keys: y });
1897
2068
  },
1898
2069
  onCreate: () => {
1899
- H.push({}), c(p, H);
2070
+ F.push({}), c(y, F);
1900
2071
  }
1901
- }), Y = k(
2072
+ }), W = x(
1902
2073
  "div",
1903
2074
  {
1904
2075
  style: {
@@ -1906,44 +2077,44 @@ const Gn = /* @__PURE__ */ E({
1906
2077
  }
1907
2078
  },
1908
2079
  (() => {
1909
- const M = [];
1910
- for (let N = 0; N < H.length; N++) {
1911
- if (!Ae(g.children)) {
2080
+ const P = [];
2081
+ for (let K = 0; K < F.length; K++) {
2082
+ if (!Te(h.children)) {
1912
2083
  console.assert(!1);
1913
2084
  break;
1914
2085
  }
1915
- g.children[N] || g.children.push({
2086
+ h.children[K] || h.children.push({
1916
2087
  collapse: !0,
1917
2088
  children: {}
1918
2089
  });
1919
- const Se = [...p, N], Ve = g.children[N];
1920
- let qe = `[${N + 1}]`;
1921
- g.children[N].collapse && me(d.value, Se) && (qe += " *");
1922
- const gt = k(Ue, {
1923
- title: qe,
1924
- collapse: g.children[N].collapse,
2090
+ const Ue = [...y, K], $e = h.children[K];
2091
+ let Xe = `[${K + 1}]`;
2092
+ h.children[K].collapse && fe(d.value, Ue) && (Xe += " *");
2093
+ const ht = x(we, {
2094
+ title: Xe,
2095
+ collapse: h.children[K].collapse,
1925
2096
  hasDelete: !0,
1926
- index: N,
1927
- onCollapse: (le) => {
1928
- if (!Ae(g.children)) {
2097
+ index: K,
2098
+ onCollapse: (oe) => {
2099
+ if (!Te(h.children)) {
1929
2100
  console.assert(!1);
1930
2101
  return;
1931
2102
  }
1932
- g.children[N].collapse = le;
2103
+ h.children[K].collapse = oe;
1933
2104
  },
1934
- onMenu: (le, ue) => {
1935
- de.emit("propTreeMenu", { x: le, y: ue, keys: Se });
2105
+ onMenu: (oe, de) => {
2106
+ me.emit("propTreeMenu", { x: oe, y: de, keys: Ue });
1936
2107
  },
1937
- onDelete: (le) => {
1938
- if (!Ae(g.children)) {
2108
+ onDelete: (oe) => {
2109
+ if (!Te(h.children)) {
1939
2110
  console.assert(!1);
1940
2111
  return;
1941
2112
  }
1942
- g.children.splice(le, 1), H.splice(le, 1), c(p, H);
2113
+ h.children.splice(oe, 1), F.splice(oe, 1), c(y, F);
1943
2114
  }
1944
2115
  });
1945
- M.push(gt);
1946
- const yt = k(
2116
+ P.push(ht);
2117
+ const _t = x(
1947
2118
  "div",
1948
2119
  {
1949
2120
  style: {
@@ -1951,34 +2122,34 @@ const Gn = /* @__PURE__ */ E({
1951
2122
  }
1952
2123
  },
1953
2124
  (() => {
1954
- const le = [];
1955
- return m.children.forEach((ue) => {
1956
- if (!Ee(Ve.children)) {
2125
+ const oe = [];
2126
+ return f.children.forEach((de) => {
2127
+ if (!ze($e.children)) {
1957
2128
  console.assert(!1);
1958
2129
  return;
1959
2130
  }
1960
- Ve.children[ue.key] || (Ve.children[ue.key] = {
2131
+ $e.children[de.key] || ($e.children[de.key] = {
1961
2132
  collapse: !0,
1962
- children: ue.array ? [] : {}
2133
+ children: de.array ? [] : {}
1963
2134
  });
1964
- const ht = xe(
1965
- p,
1966
- ue,
1967
- H[N],
1968
- Ve.children[ue.key],
1969
- N,
2135
+ const kt = Ce(
2136
+ y,
2137
+ de,
2138
+ F[K],
2139
+ $e.children[de.key],
2140
+ K,
1970
2141
  !0
1971
2142
  );
1972
- le.push(ht);
1973
- }), le;
2143
+ oe.push(kt);
2144
+ }), oe;
1974
2145
  })()
1975
2146
  );
1976
- g.children[N].collapse || M.push(yt);
2147
+ h.children[K].collapse || P.push(_t);
1977
2148
  }
1978
- return M;
2149
+ return P;
1979
2150
  })()
1980
2151
  );
1981
- return k(
2152
+ return x(
1982
2153
  "div",
1983
2154
  {
1984
2155
  style: {
@@ -1986,33 +2157,33 @@ const Gn = /* @__PURE__ */ E({
1986
2157
  }
1987
2158
  },
1988
2159
  (() => {
1989
- const M = [];
1990
- return M.push(ye), g.collapse || M.push(Y), M;
2160
+ const P = [];
2161
+ return P.push(_e), h.collapse || P.push(W), P;
1991
2162
  })()
1992
2163
  );
1993
- }, mt = (p, m, y, g, w, A) => {
1994
- if (m.ui)
1995
- return console.assert(!1), k("div", "renderBranchScalar property ui must be invalid");
1996
- if (m.array)
1997
- return console.assert(!1), k("div", "renderBranchScalar property array must be invalid");
1998
- if (!g)
1999
- return console.assert(!1), k("div", "renderBranchScalar branch must be valid");
2000
- let H = n(m.name);
2001
- g.collapse && me(d.value, p) && (H += " *");
2002
- const ie = k(Ue, {
2003
- title: H,
2004
- collapse: g.collapse,
2005
- hasDelete: w !== void 0 && !A,
2006
- onCollapse: (Y) => {
2007
- g.collapse = Y;
2164
+ }, vt = (y, f, _, h, b, N) => {
2165
+ if (f.ui)
2166
+ return console.assert(!1), x("div", "renderBranchScalar property ui must be invalid");
2167
+ if (f.array)
2168
+ return console.assert(!1), x("div", "renderBranchScalar property array must be invalid");
2169
+ if (!h)
2170
+ return console.assert(!1), x("div", "renderBranchScalar branch must be valid");
2171
+ let F = n(f.name);
2172
+ h.collapse && fe(d.value, y) && (F += " *");
2173
+ const ce = x(we, {
2174
+ title: F,
2175
+ collapse: h.collapse,
2176
+ hasDelete: b !== void 0 && !N,
2177
+ onCollapse: (W) => {
2178
+ h.collapse = W;
2008
2179
  },
2009
- onMenu: (Y, M) => {
2010
- de.emit("propTreeMenu", { x: Y, y: M, keys: p });
2180
+ onMenu: (W, P) => {
2181
+ me.emit("propTreeMenu", { x: W, y: P, keys: y });
2011
2182
  },
2012
2183
  onDelete: () => {
2013
- w === void 0 || A || (y.splice(w, 1), c(p.slice(0, -1), y));
2184
+ b === void 0 || N || (_.splice(b, 1), c(y.slice(0, -1), _));
2014
2185
  }
2015
- }), ye = k(
2186
+ }), _e = x(
2016
2187
  "div",
2017
2188
  {
2018
2189
  style: {
@@ -2020,27 +2191,27 @@ const Gn = /* @__PURE__ */ E({
2020
2191
  }
2021
2192
  },
2022
2193
  (() => {
2023
- const Y = [];
2024
- return m.children.forEach((M) => {
2025
- if (!Ee(g.children)) {
2194
+ const W = [];
2195
+ return f.children.forEach((P) => {
2196
+ if (!ze(h.children)) {
2026
2197
  console.assert(!1);
2027
2198
  return;
2028
2199
  }
2029
- g.children[M.key] || (g.children[M.key] = {
2200
+ h.children[P.key] || (h.children[P.key] = {
2030
2201
  collapse: !0,
2031
- children: !M.ui && M.array ? [] : {}
2202
+ children: !P.ui && P.array ? [] : {}
2032
2203
  });
2033
- const N = xe(
2034
- p,
2035
- M,
2036
- (typeof y[m.key] != "object" && (y[m.key] = {}, c(p, y[m.key])), y[m.key]),
2037
- g.children[M.key]
2204
+ const K = Ce(
2205
+ y,
2206
+ P,
2207
+ (typeof _[f.key] != "object" && (_[f.key] = {}, c(y, _[f.key])), _[f.key]),
2208
+ h.children[P.key]
2038
2209
  );
2039
- Y.push(N);
2040
- }), Y;
2210
+ W.push(K);
2211
+ }), W;
2041
2212
  })()
2042
2213
  );
2043
- return k(
2214
+ return x(
2044
2215
  "div",
2045
2216
  {
2046
2217
  style: {
@@ -2048,35 +2219,35 @@ const Gn = /* @__PURE__ */ E({
2048
2219
  }
2049
2220
  },
2050
2221
  (() => {
2051
- const Y = [];
2052
- return Y.push(ie), g.collapse || Y.push(ye), Y;
2222
+ const W = [];
2223
+ return W.push(ce), h.collapse || W.push(_e), W;
2053
2224
  })()
2054
2225
  );
2055
- }, ft = (p, m, y, g, w, A) => {
2056
- if (!m.ui)
2057
- return console.assert(!1), k("div", "renderLeafArray property ui must be valid");
2058
- if (!m.array)
2059
- return console.assert(!1), k("div", "renderLeafArray property array must be valid");
2060
- if (!g)
2061
- return console.assert(!1), k("div", "renderLeafArray branch must be valid");
2062
- let H;
2063
- w !== void 0 && !A ? (y[w] instanceof Array || (y[w] = J(m), c(p, y[w])), H = y[w]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
2064
- let ie = n(m.name);
2065
- g.collapse && me(d.value, p) && (ie += " *");
2066
- const ye = k(Ue, {
2067
- title: ie,
2068
- collapse: g.collapse,
2226
+ }, pt = (y, f, _, h, b, N) => {
2227
+ if (!f.ui)
2228
+ return console.assert(!1), x("div", "renderLeafArray property ui must be valid");
2229
+ if (!f.array)
2230
+ return console.assert(!1), x("div", "renderLeafArray property array must be valid");
2231
+ if (!h)
2232
+ return console.assert(!1), x("div", "renderLeafArray branch must be valid");
2233
+ let F;
2234
+ b !== void 0 && !N ? (_[b] instanceof Array || (_[b] = X(f), c(y, _[b])), F = _[b]) : (_[f.key] instanceof Array || (_[f.key] = X(f), c(y, _[f.key])), F = _[f.key]);
2235
+ let ce = n(f.name);
2236
+ h.collapse && fe(d.value, y) && (ce += " *");
2237
+ const _e = x(we, {
2238
+ title: ce,
2239
+ collapse: h.collapse,
2069
2240
  hasCreate: !0,
2070
- onCollapse: (M) => {
2071
- g.collapse = M;
2241
+ onCollapse: (P) => {
2242
+ h.collapse = P;
2072
2243
  },
2073
- onMenu: (M, N) => {
2074
- de.emit("propTreeMenu", { x: M, y: N, keys: p });
2244
+ onMenu: (P, K) => {
2245
+ me.emit("propTreeMenu", { x: P, y: K, keys: y });
2075
2246
  },
2076
2247
  onCreate: () => {
2077
- H.push(J(m, !0)), c(p, H);
2248
+ F.push(X(f, !0)), c(y, F);
2078
2249
  }
2079
- }), Y = k(
2250
+ }), W = x(
2080
2251
  "div",
2081
2252
  {
2082
2253
  style: {
@@ -2084,15 +2255,15 @@ const Gn = /* @__PURE__ */ E({
2084
2255
  }
2085
2256
  },
2086
2257
  (() => {
2087
- const M = [];
2088
- for (let N = 0; N < H.length; N++) {
2089
- const Se = xe(p, m, H, void 0, N, !1);
2090
- M.push(Se);
2258
+ const P = [];
2259
+ for (let K = 0; K < F.length; K++) {
2260
+ const Ue = Ce(y, f, F, void 0, K, !1);
2261
+ P.push(Ue);
2091
2262
  }
2092
- return M;
2263
+ return P;
2093
2264
  })()
2094
2265
  );
2095
- return k(
2266
+ return x(
2096
2267
  "div",
2097
2268
  {
2098
2269
  style: {
@@ -2100,16 +2271,16 @@ const Gn = /* @__PURE__ */ E({
2100
2271
  }
2101
2272
  },
2102
2273
  (() => {
2103
- const M = [];
2104
- return M.push(ye), g.collapse || M.push(Y), M;
2274
+ const P = [];
2275
+ return P.push(_e), h.collapse || P.push(W), P;
2105
2276
  })()
2106
2277
  );
2107
- }, vt = (p, m, y, g, w) => {
2108
- if (!m.ui)
2109
- return console.assert(!1), k("div", "renderLeafScalar property ui must be valid");
2110
- let A;
2111
- return m.ui === "dummy" ? A = x(p, m, y, g, w) : m.ui === "strInput" ? A = V(p, m, y, g, w) : m.ui === "numInput" ? A = U(p, m, y, g, w) : m.ui === "switch" ? A = O(p, m, y, g, w) : m.ui === "select" ? A = Q(p, m, y, g, w) : m.ui === "colorPicker" ? A = ge(p, m, y, g, w) : m.ui === "jsonEditor" ? A = ut(p, m, y, g, w) : m.ui === "multiTypes" ? A = rt(p, m, y, g, w) : m.ui === "compSelect" ? A = at(p, m, y, g, w) : m.ui === "slotSelect" ? A = ct(p, m, y, g, w) : console.assert(!1, "renderLeafScalar not implemented"), A ? D(p, m, A) : k("div");
2112
- }, pt = () => k(
2278
+ }, gt = (y, f, _, h, b) => {
2279
+ if (!f.ui)
2280
+ return console.assert(!1), x("div", "renderLeafScalar property ui must be valid");
2281
+ let N;
2282
+ return f.ui === "dummy" ? N = U(y, f, _, h, b) : f.ui === "strInput" ? N = g(y, f, _, h, b) : f.ui === "numInput" ? N = M(y, f, _, h, b) : f.ui === "switch" ? N = T(y, f, _, h, b) : f.ui === "select" ? N = Q(y, f, _, h, b) : f.ui === "colorPicker" ? N = he(y, f, _, h, b) : f.ui === "jsonEditor" ? N = De(y, f, _, h, b) : f.ui === "multiTypes" ? N = at(y, f, _, h, b) : f.ui === "compSelect" ? N = ct(y, f, _, h, b) : f.ui === "slotSelect" ? N = dt(y, f, _, h, b) : f.ui === "adaptSlotSelect" ? N = mt(y, f, _, h, b) : console.assert(!1, "renderLeafScalar not implemented"), N ? $(y, f, N) : x("div");
2283
+ }, yt = () => x(
2113
2284
  "div",
2114
2285
  {
2115
2286
  class: "text-body-2",
@@ -2118,49 +2289,49 @@ const Gn = /* @__PURE__ */ E({
2118
2289
  }
2119
2290
  },
2120
2291
  (() => {
2121
- const p = [];
2292
+ const y = [];
2122
2293
  if (l.unique && l.config.length > 0 && l.object) {
2123
2294
  a[l.unique] || (a[l.unique] = {});
2124
- const m = a[l.unique];
2125
- l.config.forEach((y) => {
2126
- m[y.key] || (m[y.key] = {
2295
+ const f = a[l.unique];
2296
+ l.config.forEach((_) => {
2297
+ f[_.key] || (f[_.key] = {
2127
2298
  collapse: !0,
2128
- children: !y.ui && y.array ? [] : {}
2299
+ children: !_.ui && _.array ? [] : {}
2129
2300
  });
2130
- const g = xe(
2301
+ const h = Ce(
2131
2302
  [],
2132
- y,
2303
+ _,
2133
2304
  l.object,
2134
- m[y.key]
2305
+ f[_.key]
2135
2306
  );
2136
- p.push(g);
2307
+ y.push(h);
2137
2308
  });
2138
2309
  }
2139
- return p;
2310
+ return y;
2140
2311
  })()
2141
2312
  );
2142
- return (p, m) => (_(), K(fe, null, [
2143
- b(pt),
2144
- b(Yt, {
2313
+ return (y, f) => (S(), R(ve, null, [
2314
+ w(yt),
2315
+ w(jt, {
2145
2316
  config: l.config,
2146
2317
  object: l.object,
2147
2318
  "property-states": d.value
2148
2319
  }, null, 8, ["config", "object", "property-states"])
2149
2320
  ], 64));
2150
2321
  }
2151
- }), Yn = (t) => {
2152
- t.component("XPropTree", Gn);
2153
- }, Wn = (t, s, n) => {
2322
+ }), il = (t) => {
2323
+ t.component("XPropTree", sl);
2324
+ }, ul = (t, s, n) => {
2154
2325
  const e = t[s];
2155
2326
  return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((l, o) => {
2156
2327
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
2157
2328
  });
2158
2329
  };
2159
- async function ol(t) {
2160
- return (await Wn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.fwi8tazn.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.ju37v3iz.js") }), `./locales/${t}/index.ts`, 4)).default;
2330
+ async function gl(t) {
2331
+ return (await ul(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.gtpxr0k8.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.ev8iw0vp.js") }), `./locales/${t}/index.ts`, 4)).default;
2161
2332
  }
2162
- const sl = { install: Yn };
2333
+ const yl = { install: il };
2163
2334
  export {
2164
- sl as default,
2165
- ol as loadLocaleMessagePropTree
2335
+ yl as default,
2336
+ gl as loadLocaleMessagePropTree
2166
2337
  };