x-prop-tree 0.7.14 → 0.7.16

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