x-prop-tree 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,421 +1,421 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.id="x-prop-tree",e.appendChild(document.createTextNode('.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
- import { Fragment as ue, reactive as De, computed as V, watchEffect as re, toRefs as Xe, warn as Ye, getCurrentInstance as Ze, inject as oe, shallowRef as Ke, provide as Te, defineComponent as w, isRef as ce, createVNode as _, mergeProps as de, unref as T, ref as B, toRef as Je, Text as Qe, resolveDirective as R, withDirectives as P, openBlock as C, createElementBlock as Y, normalizeStyle as Ae, withModifiers as j, renderSlot as je, resolveComponent as k, createBlock as I, withCtx as F, renderList as en, createTextVNode as fe, toDisplayString as ee, createElementVNode as nn, createCommentVNode as se, mergeModels as L, useModel as U, h as p } from "vue";
3
- import { useI18n as me } from "vue-i18n";
4
- import { useColor as ye, eventBus as Pe, useViewStack as Le } from "x-essential-lib";
5
- import { getPropDefault as D } from "x-runtime-lib";
6
- var tn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", ln = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", Oe = "M19,13H5V11H19V13Z", ze = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
7
- function O(e, n) {
8
- return (t) => Object.keys(e).reduce((l, a) => {
9
- const u = typeof e[a] == "object" && e[a] != null && !Array.isArray(e[a]) ? e[a] : {
2
+ import { Fragment as ie, reactive as Te, computed as V, watchEffect as re, toRefs as Ye, warn as Ze, getCurrentInstance as Ke, inject as oe, shallowRef as Je, provide as Ae, defineComponent as w, isRef as ce, createVNode as _, mergeProps as de, unref as T, ref as $, toRef as Qe, Text as je, resolveDirective as N, withDirectives as P, openBlock as C, createElementBlock as X, normalizeStyle as Pe, withModifiers as Q, renderSlot as et, resolveComponent as k, createBlock as B, withCtx as F, renderList as tt, createTextVNode as me, toDisplayString as j, createElementVNode as nt, createCommentVNode as se, mergeModels as L, useModel as R, watch as ge, h as p } from "vue";
3
+ import { useI18n as fe } from "vue-i18n";
4
+ import { useColor as ye, eventBus as Le, useViewStack as Oe } from "x-essential-lib";
5
+ import { parsePixelStr as lt, parsePercentStr as st, getPropDefault as D } from "x-runtime-lib";
6
+ var at = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", ut = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", ze = "M19,13H5V11H19V13Z", He = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
7
+ function O(e, t) {
8
+ return (n) => Object.keys(e).reduce((l, a) => {
9
+ const i = typeof e[a] == "object" && e[a] != null && !Array.isArray(e[a]) ? e[a] : {
10
10
  type: e[a]
11
11
  };
12
- return t && a in t ? l[a] = {
13
- ...u,
14
- default: t[a]
15
- } : l[a] = u, n && !l[a].source && (l[a].source = n), l;
12
+ return n && a in n ? l[a] = {
13
+ ...i,
14
+ default: n[a]
15
+ } : l[a] = i, t && !l[a].source && (l[a].source = t), l;
16
16
  }, {});
17
17
  }
18
- const sn = O({
18
+ const it = O({
19
19
  class: [String, Array, Object],
20
20
  style: {
21
21
  type: [String, Array, Object],
22
22
  default: null
23
23
  }
24
24
  }, "component");
25
- function G(e) {
26
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "px";
25
+ function W(e) {
26
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "px";
27
27
  if (!(e == null || e === ""))
28
- return isNaN(+e) ? String(e) : isFinite(+e) ? `${Number(e)}${n}` : void 0;
28
+ return isNaN(+e) ? String(e) : isFinite(+e) ? `${Number(e)}${t}` : void 0;
29
29
  }
30
- function ge(e) {
31
- let n;
32
- return e !== null && typeof e == "object" && ((n = Object.getPrototypeOf(e)) === Object.prototype || n === null);
30
+ function ve(e) {
31
+ let t;
32
+ return e !== null && typeof e == "object" && ((t = Object.getPrototypeOf(e)) === Object.prototype || t === null);
33
33
  }
34
- function le(e, n) {
35
- return n.every((t) => e.hasOwnProperty(t));
34
+ function le(e, t) {
35
+ return t.every((n) => e.hasOwnProperty(n));
36
36
  }
37
- function an(e, n) {
38
- const t = {}, l = new Set(Object.keys(e));
39
- for (const a of n)
40
- l.has(a) && (t[a] = e[a]);
41
- return t;
37
+ function rt(e, t) {
38
+ const n = {}, l = new Set(Object.keys(e));
39
+ for (const a of t)
40
+ l.has(a) && (n[a] = e[a]);
41
+ return n;
42
42
  }
43
- function ve(e, n) {
44
- let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "0";
45
- return e + t.repeat(Math.max(0, n - e.length));
43
+ function he(e, t) {
44
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "0";
45
+ return e + n.repeat(Math.max(0, t - e.length));
46
46
  }
47
- function un(e) {
48
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
49
- const t = [];
47
+ function ot(e) {
48
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
49
+ const n = [];
50
50
  let l = 0;
51
51
  for (; l < e.length; )
52
- t.push(e.substr(l, n)), l += n;
53
- return t;
52
+ n.push(e.substr(l, t)), l += t;
53
+ return n;
54
54
  }
55
- function He() {
56
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = arguments.length > 2 ? arguments[2] : void 0;
55
+ function Ue() {
56
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0;
57
57
  const l = {};
58
58
  for (const a in e)
59
59
  l[a] = e[a];
60
- for (const a in n) {
61
- const i = e[a], u = n[a];
62
- if (ge(i) && ge(u)) {
63
- l[a] = He(i, u, t);
60
+ for (const a in t) {
61
+ const u = e[a], i = t[a];
62
+ if (ve(u) && ve(i)) {
63
+ l[a] = Ue(u, i, n);
64
64
  continue;
65
65
  }
66
- if (t && Array.isArray(i) && Array.isArray(u)) {
67
- l[a] = t(i, u);
66
+ if (n && Array.isArray(u) && Array.isArray(i)) {
67
+ l[a] = n(u, i);
68
68
  continue;
69
69
  }
70
- l[a] = u;
70
+ l[a] = i;
71
71
  }
72
72
  return l;
73
73
  }
74
74
  function Ne(e) {
75
- return e.map((n) => n.type === ue ? Ne(n.children) : n).flat();
75
+ return e.map((t) => t.type === ie ? Ne(t.children) : t).flat();
76
76
  }
77
- function N() {
77
+ function U() {
78
78
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
79
- if (N.cache.has(e)) return N.cache.get(e);
80
- const n = e.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
81
- return N.cache.set(e, n), n;
79
+ if (U.cache.has(e)) return U.cache.get(e);
80
+ const t = e.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
81
+ return U.cache.set(e, t), t;
82
82
  }
83
- N.cache = /* @__PURE__ */ new Map();
83
+ U.cache = /* @__PURE__ */ new Map();
84
84
  function Re(e) {
85
- const n = De({}), t = V(e);
85
+ const t = Te({}), n = V(e);
86
86
  return re(() => {
87
- for (const l in t.value)
88
- n[l] = t.value[l];
87
+ for (const l in n.value)
88
+ t[l] = n.value[l];
89
89
  }, {
90
90
  flush: "sync"
91
- }), Xe(n);
91
+ }), Ye(t);
92
92
  }
93
- function rn(e, n) {
94
- return e.includes(n);
93
+ function ct(e, t) {
94
+ return e.includes(t);
95
95
  }
96
- const H = 2.4, he = 0.2126729, pe = 0.7151522, _e = 0.072175, on = 0.55, cn = 0.58, dn = 0.57, fn = 0.62, J = 0.03, ke = 1.45, mn = 5e-4, yn = 1.25, gn = 1.25, Ve = 0.078, Ce = 12.82051282051282, Q = 0.06, xe = 1e-3;
97
- function be(e, n) {
98
- const t = (e.r / 255) ** H, l = (e.g / 255) ** H, a = (e.b / 255) ** H, i = (n.r / 255) ** H, u = (n.g / 255) ** H, d = (n.b / 255) ** H;
99
- let o = t * he + l * pe + a * _e, c = i * he + u * pe + d * _e;
100
- if (o <= J && (o += (J - o) ** ke), c <= J && (c += (J - c) ** ke), Math.abs(c - o) < mn) return 0;
101
- let m;
96
+ const H = 2.4, pe = 0.2126729, _e = 0.7151522, ke = 0.072175, dt = 0.55, mt = 0.58, ft = 0.57, yt = 0.62, K = 0.03, Ve = 1.45, gt = 5e-4, vt = 1.25, ht = 1.25, Ce = 0.078, xe = 12.82051282051282, J = 0.06, be = 1e-3;
97
+ function Se(e, t) {
98
+ const n = (e.r / 255) ** H, l = (e.g / 255) ** H, a = (e.b / 255) ** H, u = (t.r / 255) ** H, i = (t.g / 255) ** H, m = (t.b / 255) ** H;
99
+ let o = n * pe + l * _e + a * ke, c = u * pe + i * _e + m * ke;
100
+ if (o <= K && (o += (K - o) ** Ve), c <= K && (c += (K - c) ** Ve), Math.abs(c - o) < gt) return 0;
101
+ let f;
102
102
  if (c > o) {
103
- const y = (c ** on - o ** cn) * yn;
104
- m = y < xe ? 0 : y < Ve ? y - y * Ce * Q : y - Q;
103
+ const g = (c ** dt - o ** mt) * vt;
104
+ f = g < be ? 0 : g < Ce ? g - g * xe * J : g - J;
105
105
  } else {
106
- const y = (c ** fn - o ** dn) * gn;
107
- m = y > -xe ? 0 : y > -Ve ? y - y * Ce * Q : y + Q;
106
+ const g = (c ** yt - o ** ft) * ht;
107
+ f = g > -be ? 0 : g > -Ce ? g - g * xe * J : g + J;
108
108
  }
109
- return m * 100;
109
+ return f * 100;
110
110
  }
111
- function q(e) {
112
- Ye(`Vuetify: ${e}`);
111
+ function G(e) {
112
+ Ze(`Vuetify: ${e}`);
113
113
  }
114
114
  function ae(e) {
115
115
  return !!e && /^(#|var\(--|(rgb|hsl)a?\()/.test(e);
116
116
  }
117
- function vn(e) {
117
+ function pt(e) {
118
118
  return ae(e) && !/^((rgb|hsl)a?\()?var\(--/.test(e);
119
119
  }
120
- const Se = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, hn = {
121
- rgb: (e, n, t, l) => ({
120
+ const we = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, _t = {
121
+ rgb: (e, t, n, l) => ({
122
122
  r: e,
123
- g: n,
124
- b: t,
123
+ g: t,
124
+ b: n,
125
125
  a: l
126
126
  }),
127
- rgba: (e, n, t, l) => ({
127
+ rgba: (e, t, n, l) => ({
128
128
  r: e,
129
- g: n,
130
- b: t,
129
+ g: t,
130
+ b: n,
131
131
  a: l
132
132
  }),
133
- hsl: (e, n, t, l) => we({
133
+ hsl: (e, t, n, l) => Ie({
134
134
  h: e,
135
- s: n,
136
- l: t,
135
+ s: t,
136
+ l: n,
137
137
  a: l
138
138
  }),
139
- hsla: (e, n, t, l) => we({
139
+ hsla: (e, t, n, l) => Ie({
140
140
  h: e,
141
- s: n,
142
- l: t,
141
+ s: t,
142
+ l: n,
143
143
  a: l
144
144
  }),
145
- hsv: (e, n, t, l) => X({
145
+ hsv: (e, t, n, l) => q({
146
146
  h: e,
147
- s: n,
148
- v: t,
147
+ s: t,
148
+ v: n,
149
149
  a: l
150
150
  }),
151
- hsva: (e, n, t, l) => X({
151
+ hsva: (e, t, n, l) => q({
152
152
  h: e,
153
- s: n,
154
- v: t,
153
+ s: t,
154
+ v: n,
155
155
  a: l
156
156
  })
157
157
  };
158
- function W(e) {
158
+ function E(e) {
159
159
  if (typeof e == "number")
160
- return (isNaN(e) || e < 0 || e > 16777215) && q(`'${e}' is not a valid hex color`), {
160
+ return (isNaN(e) || e < 0 || e > 16777215) && G(`'${e}' is not a valid hex color`), {
161
161
  r: (e & 16711680) >> 16,
162
162
  g: (e & 65280) >> 8,
163
163
  b: e & 255
164
164
  };
165
- if (typeof e == "string" && Se.test(e)) {
165
+ if (typeof e == "string" && we.test(e)) {
166
166
  const {
167
- groups: n
168
- } = e.match(Se), {
169
- fn: t,
167
+ groups: t
168
+ } = e.match(we), {
169
+ fn: n,
170
170
  values: l
171
- } = n, a = l.split(/,\s*/).map((i) => i.endsWith("%") && ["hsl", "hsla", "hsv", "hsva"].includes(t) ? parseFloat(i) / 100 : parseFloat(i));
172
- return hn[t](...a);
171
+ } = t, a = l.split(/,\s*/).map((u) => u.endsWith("%") && ["hsl", "hsla", "hsv", "hsva"].includes(n) ? parseFloat(u) / 100 : parseFloat(u));
172
+ return _t[n](...a);
173
173
  } else if (typeof e == "string") {
174
- let n = e.startsWith("#") ? e.slice(1) : e;
175
- [3, 4].includes(n.length) ? n = n.split("").map((l) => l + l).join("") : [6, 8].includes(n.length) || q(`'${e}' is not a valid hex(a) color`);
176
- const t = parseInt(n, 16);
177
- return (isNaN(t) || t < 0 || t > 4294967295) && q(`'${e}' is not a valid hex(a) color`), pn(n);
174
+ let t = e.startsWith("#") ? e.slice(1) : e;
175
+ [3, 4].includes(t.length) ? t = t.split("").map((l) => l + l).join("") : [6, 8].includes(t.length) || G(`'${e}' is not a valid hex(a) color`);
176
+ const n = parseInt(t, 16);
177
+ return (isNaN(n) || n < 0 || n > 4294967295) && G(`'${e}' is not a valid hex(a) color`), kt(t);
178
178
  } else if (typeof e == "object") {
179
179
  if (le(e, ["r", "g", "b"]))
180
180
  return e;
181
181
  if (le(e, ["h", "s", "l"]))
182
- return X(Ue(e));
182
+ return q(Ee(e));
183
183
  if (le(e, ["h", "s", "v"]))
184
- return X(e);
184
+ return q(e);
185
185
  }
186
186
  throw new TypeError(`Invalid color: ${e == null ? e : String(e) || e.constructor.name}
187
187
  Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`);
188
188
  }
189
- function X(e) {
189
+ function q(e) {
190
190
  const {
191
- h: n,
192
- s: t,
191
+ h: t,
192
+ s: n,
193
193
  v: l,
194
194
  a
195
- } = e, i = (d) => {
196
- const o = (d + n / 60) % 6;
197
- return l - l * t * Math.max(Math.min(o, 4 - o, 1), 0);
198
- }, u = [i(5), i(3), i(1)].map((d) => Math.round(d * 255));
195
+ } = e, u = (m) => {
196
+ const o = (m + t / 60) % 6;
197
+ return l - l * n * Math.max(Math.min(o, 4 - o, 1), 0);
198
+ }, i = [u(5), u(3), u(1)].map((m) => Math.round(m * 255));
199
199
  return {
200
- r: u[0],
201
- g: u[1],
202
- b: u[2],
200
+ r: i[0],
201
+ g: i[1],
202
+ b: i[2],
203
203
  a
204
204
  };
205
205
  }
206
- function we(e) {
207
- return X(Ue(e));
206
+ function Ie(e) {
207
+ return q(Ee(e));
208
208
  }
209
- function Ue(e) {
209
+ function Ee(e) {
210
210
  const {
211
- h: n,
212
- s: t,
211
+ h: t,
212
+ s: n,
213
213
  l,
214
214
  a
215
- } = e, i = l + t * Math.min(l, 1 - l), u = i === 0 ? 0 : 2 - 2 * l / i;
215
+ } = e, u = l + n * Math.min(l, 1 - l), i = u === 0 ? 0 : 2 - 2 * l / u;
216
216
  return {
217
- h: n,
218
- s: u,
219
- v: i,
217
+ h: t,
218
+ s: i,
219
+ v: u,
220
220
  a
221
221
  };
222
222
  }
223
- function pn(e) {
224
- e = _n(e);
225
- let [n, t, l, a] = un(e, 2).map((i) => parseInt(i, 16));
223
+ function kt(e) {
224
+ e = Vt(e);
225
+ let [t, n, l, a] = ot(e, 2).map((u) => parseInt(u, 16));
226
226
  return a = a === void 0 ? a : a / 255, {
227
- r: n,
228
- g: t,
227
+ r: t,
228
+ g: n,
229
229
  b: l,
230
230
  a
231
231
  };
232
232
  }
233
- function _n(e) {
234
- return e.startsWith("#") && (e = e.slice(1)), e = e.replace(/([^0-9a-f])/gi, "F"), (e.length === 3 || e.length === 4) && (e = e.split("").map((n) => n + n).join("")), e.length !== 6 && (e = ve(ve(e, 6), 8, "F")), e;
233
+ function Vt(e) {
234
+ return e.startsWith("#") && (e = e.slice(1)), e = e.replace(/([^0-9a-f])/gi, "F"), (e.length === 3 || e.length === 4) && (e = e.split("").map((t) => t + t).join("")), e.length !== 6 && (e = he(he(e, 6), 8, "F")), e;
235
235
  }
236
- function kn(e) {
237
- const n = Math.abs(be(W(0), W(e)));
238
- return Math.abs(be(W(16777215), W(e))) > Math.min(n, 50) ? "#fff" : "#000";
236
+ function Ct(e) {
237
+ const t = Math.abs(Se(E(0), E(e)));
238
+ return Math.abs(Se(E(16777215), E(e))) > Math.min(t, 50) ? "#fff" : "#000";
239
239
  }
240
- function Z(e, n) {
241
- const t = Ze();
242
- if (!t)
240
+ function Y(e, t) {
241
+ const n = Ke();
242
+ if (!n)
243
243
  throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);
244
- return t;
244
+ return n;
245
245
  }
246
- function Vn() {
246
+ function xt() {
247
247
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "composables";
248
- const n = Z(e).type;
249
- return N((n == null ? void 0 : n.aliasName) || (n == null ? void 0 : n.name));
248
+ const t = Y(e).type;
249
+ return U((t == null ? void 0 : t.aliasName) || (t == null ? void 0 : t.name));
250
250
  }
251
- function Cn(e) {
252
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Z("injectSelf");
251
+ function bt(e) {
252
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Y("injectSelf");
253
253
  const {
254
- provides: t
255
- } = n;
256
- if (t && e in t)
257
- return t[e];
254
+ provides: n
255
+ } = t;
256
+ if (n && e in n)
257
+ return n[e];
258
258
  }
259
- const ie = Symbol.for("vuetify:defaults");
260
- function Ee() {
261
- const e = oe(ie);
259
+ const ue = Symbol.for("vuetify:defaults");
260
+ function We() {
261
+ const e = oe(ue);
262
262
  if (!e) throw new Error("[Vuetify] Could not find defaults instance");
263
263
  return e;
264
264
  }
265
- function xn(e, n) {
266
- var t, l;
267
- return typeof ((t = e.props) == null ? void 0 : t[n]) < "u" || typeof ((l = e.props) == null ? void 0 : l[N(n)]) < "u";
265
+ function St(e, t) {
266
+ var n, l;
267
+ return typeof ((n = e.props) == null ? void 0 : n[t]) < "u" || typeof ((l = e.props) == null ? void 0 : l[U(t)]) < "u";
268
268
  }
269
- function bn() {
270
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ee();
271
- const l = Z("useDefaults");
272
- if (n = n ?? l.type.name ?? l.type.__name, !n)
269
+ function wt() {
270
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : We();
271
+ const l = Y("useDefaults");
272
+ if (t = t ?? l.type.name ?? l.type.__name, !t)
273
273
  throw new Error("[Vuetify] Could not determine component name");
274
274
  const a = V(() => {
275
275
  var o;
276
- return (o = t.value) == null ? void 0 : o[e._as ?? n];
277
- }), i = new Proxy(e, {
276
+ return (o = n.value) == null ? void 0 : o[e._as ?? t];
277
+ }), u = new Proxy(e, {
278
278
  get(o, c) {
279
- var y, S, $, x, M, A, K;
280
- const m = Reflect.get(o, c);
281
- return c === "class" || c === "style" ? [(y = a.value) == null ? void 0 : y[c], m].filter((f) => f != null) : typeof c == "string" && !xn(l.vnode, c) ? ((S = a.value) == null ? void 0 : S[c]) !== void 0 ? ($ = a.value) == null ? void 0 : $[c] : ((M = (x = t.value) == null ? void 0 : x.global) == null ? void 0 : M[c]) !== void 0 ? (K = (A = t.value) == null ? void 0 : A.global) == null ? void 0 : K[c] : m : m;
279
+ var g, x, I, b, M, A, Z;
280
+ const f = Reflect.get(o, c);
281
+ return c === "class" || c === "style" ? [(g = a.value) == null ? void 0 : g[c], f].filter((d) => d != null) : typeof c == "string" && !St(l.vnode, c) ? ((x = a.value) == null ? void 0 : x[c]) !== void 0 ? (I = a.value) == null ? void 0 : I[c] : ((M = (b = n.value) == null ? void 0 : b.global) == null ? void 0 : M[c]) !== void 0 ? (Z = (A = n.value) == null ? void 0 : A.global) == null ? void 0 : Z[c] : f : f;
282
282
  }
283
- }), u = Ke();
283
+ }), i = Je();
284
284
  re(() => {
285
285
  if (a.value) {
286
286
  const o = Object.entries(a.value).filter((c) => {
287
- let [m] = c;
288
- return m.startsWith(m[0].toUpperCase());
287
+ let [f] = c;
288
+ return f.startsWith(f[0].toUpperCase());
289
289
  });
290
- u.value = o.length ? Object.fromEntries(o) : void 0;
290
+ i.value = o.length ? Object.fromEntries(o) : void 0;
291
291
  } else
292
- u.value = void 0;
292
+ i.value = void 0;
293
293
  });
294
- function d() {
295
- const o = Cn(ie, l);
296
- Te(ie, V(() => u.value ? He((o == null ? void 0 : o.value) ?? {}, u.value) : o == null ? void 0 : o.value));
294
+ function m() {
295
+ const o = bt(ue, l);
296
+ Ae(ue, V(() => i.value ? Ue((o == null ? void 0 : o.value) ?? {}, i.value) : o == null ? void 0 : o.value));
297
297
  }
298
298
  return {
299
- props: i,
300
- provideSubDefaults: d
299
+ props: u,
300
+ provideSubDefaults: m
301
301
  };
302
302
  }
303
- function ne(e) {
303
+ function ee(e) {
304
304
  if (e._setup = e._setup ?? e.setup, !e.name)
305
- return q("The component is missing an explicit name, unable to generate default prop value"), e;
305
+ return G("The component is missing an explicit name, unable to generate default prop value"), e;
306
306
  if (e._setup) {
307
307
  e.props = O(e.props ?? {}, e.name)();
308
- const n = Object.keys(e.props).filter((t) => t !== "class" && t !== "style");
308
+ const t = Object.keys(e.props).filter((n) => n !== "class" && n !== "style");
309
309
  e.filterProps = function(l) {
310
- return an(l, n);
310
+ return rt(l, t);
311
311
  }, e.props._as = String, e.setup = function(l, a) {
312
- const i = Ee();
313
- if (!i.value) return e._setup(l, a);
312
+ const u = We();
313
+ if (!u.value) return e._setup(l, a);
314
314
  const {
315
- props: u,
316
- provideSubDefaults: d
317
- } = bn(l, l._as ?? e.name, i), o = e._setup(u, a);
318
- return d(), o;
315
+ props: i,
316
+ provideSubDefaults: m
317
+ } = wt(l, l._as ?? e.name, u), o = e._setup(i, a);
318
+ return m(), o;
319
319
  };
320
320
  }
321
321
  return e;
322
322
  }
323
- function We() {
323
+ function Ge() {
324
324
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
325
- return (n) => (e ? ne : w)(n);
325
+ return (t) => (e ? ee : w)(t);
326
326
  }
327
- function Sn(e) {
328
- const n = Z("useRender");
329
- n.render = e;
327
+ function It(e) {
328
+ const t = Y("useRender");
329
+ t.render = e;
330
330
  }
331
- const $e = Symbol.for("vuetify:theme"), wn = O({
331
+ const $e = Symbol.for("vuetify:theme"), $t = O({
332
332
  theme: String
333
333
  }, "theme");
334
- function $n(e) {
335
- Z("provideTheme");
336
- const n = oe($e, null);
337
- if (!n) throw new Error("Could not find Vuetify theme injection");
338
- const t = V(() => e.theme ?? n.name.value), l = V(() => n.themes.value[t.value]), a = V(() => n.isDisabled ? void 0 : `v-theme--${t.value}`), i = {
339
- ...n,
340
- name: t,
334
+ function Bt(e) {
335
+ Y("provideTheme");
336
+ const t = oe($e, null);
337
+ if (!t) throw new Error("Could not find Vuetify theme injection");
338
+ const n = V(() => e.theme ?? t.name.value), l = V(() => t.themes.value[n.value]), a = V(() => t.isDisabled ? void 0 : `v-theme--${n.value}`), u = {
339
+ ...t,
340
+ name: n,
341
341
  current: l,
342
342
  themeClasses: a
343
343
  };
344
- return Te($e, i), i;
344
+ return Ae($e, u), u;
345
345
  }
346
- const In = O({
346
+ const Mt = O({
347
347
  tag: {
348
348
  type: String,
349
349
  default: "div"
350
350
  }
351
351
  }, "tag");
352
- function Bn(e) {
352
+ function Ft(e) {
353
353
  return Re(() => {
354
- const n = [], t = {};
354
+ const t = [], n = {};
355
355
  if (e.value.background)
356
356
  if (ae(e.value.background)) {
357
- if (t.backgroundColor = e.value.background, !e.value.text && vn(e.value.background)) {
358
- const l = W(e.value.background);
357
+ if (n.backgroundColor = e.value.background, !e.value.text && pt(e.value.background)) {
358
+ const l = E(e.value.background);
359
359
  if (l.a == null || l.a === 1) {
360
- const a = kn(l);
361
- t.color = a, t.caretColor = a;
360
+ const a = Ct(l);
361
+ n.color = a, n.caretColor = a;
362
362
  }
363
363
  }
364
364
  } else
365
- n.push(`bg-${e.value.background}`);
366
- return e.value.text && (ae(e.value.text) ? (t.color = e.value.text, t.caretColor = e.value.text) : n.push(`text-${e.value.text}`)), {
367
- colorClasses: n,
368
- colorStyles: t
365
+ t.push(`bg-${e.value.background}`);
366
+ return e.value.text && (ae(e.value.text) ? (n.color = e.value.text, n.caretColor = e.value.text) : t.push(`text-${e.value.text}`)), {
367
+ colorClasses: t,
368
+ colorStyles: n
369
369
  };
370
370
  });
371
371
  }
372
- function Mn(e, n) {
373
- const t = V(() => ({
372
+ function Dt(e, t) {
373
+ const n = V(() => ({
374
374
  text: ce(e) ? e.value : null
375
375
  })), {
376
376
  colorClasses: l,
377
377
  colorStyles: a
378
- } = Bn(t);
378
+ } = Ft(n);
379
379
  return {
380
380
  textColorClasses: l,
381
381
  textColorStyles: a
382
382
  };
383
383
  }
384
- const Ge = [String, Function, Object, Array], Fn = Symbol.for("vuetify:icons"), te = O({
384
+ const qe = [String, Function, Object, Array], Tt = Symbol.for("vuetify:icons"), te = O({
385
385
  icon: {
386
- type: Ge
386
+ type: qe
387
387
  },
388
388
  // Could not remove this and use makeTagProps, types complained because it is not required
389
389
  tag: {
390
390
  type: String,
391
391
  required: !0
392
392
  }
393
- }, "icon"), Ie = We()({
393
+ }, "icon"), Be = Ge()({
394
394
  name: "VComponentIcon",
395
395
  props: te(),
396
- setup(e, n) {
396
+ setup(e, t) {
397
397
  let {
398
- slots: t
399
- } = n;
398
+ slots: n
399
+ } = t;
400
400
  return () => {
401
401
  const l = e.icon;
402
402
  return _(e.tag, null, {
403
403
  default: () => {
404
404
  var a;
405
- return [e.icon ? _(l, null, null) : (a = t.default) == null ? void 0 : a.call(t)];
405
+ return [e.icon ? _(l, null, null) : (a = n.default) == null ? void 0 : a.call(n)];
406
406
  }
407
407
  });
408
408
  };
409
409
  }
410
- }), Dn = ne({
410
+ }), At = ee({
411
411
  name: "VSvgIcon",
412
412
  inheritAttrs: !1,
413
413
  props: te(),
414
- setup(e, n) {
414
+ setup(e, t) {
415
415
  let {
416
- attrs: t
417
- } = n;
418
- return () => _(e.tag, de(t, {
416
+ attrs: n
417
+ } = t;
418
+ return () => _(e.tag, de(n, {
419
419
  style: null
420
420
  }), {
421
421
  default: () => [_("svg", {
@@ -435,7 +435,7 @@ const Ge = [String, Function, Object, Array], Fn = Symbol.for("vuetify:icons"),
435
435
  });
436
436
  }
437
437
  });
438
- ne({
438
+ ee({
439
439
  name: "VLigatureIcon",
440
440
  props: te(),
441
441
  setup(e) {
@@ -444,7 +444,7 @@ ne({
444
444
  });
445
445
  }
446
446
  });
447
- ne({
447
+ ee({
448
448
  name: "VClassIcon",
449
449
  props: te(),
450
450
  setup(e) {
@@ -453,181 +453,181 @@ ne({
453
453
  }, null);
454
454
  }
455
455
  });
456
- const Tn = (e) => {
457
- const n = oe(Fn);
458
- if (!n) throw new Error("Missing Vuetify Icons provide!");
456
+ const Pt = (e) => {
457
+ const t = oe(Tt);
458
+ if (!t) throw new Error("Missing Vuetify Icons provide!");
459
459
  return {
460
460
  iconData: V(() => {
461
461
  var o;
462
462
  const l = T(e);
463
463
  if (!l) return {
464
- component: Ie
464
+ component: Be
465
465
  };
466
466
  let a = l;
467
- if (typeof a == "string" && (a = a.trim(), a.startsWith("$") && (a = (o = n.aliases) == null ? void 0 : o[a.slice(1)])), a || q(`Could not find aliased icon "${l}"`), Array.isArray(a))
467
+ if (typeof a == "string" && (a = a.trim(), a.startsWith("$") && (a = (o = t.aliases) == null ? void 0 : o[a.slice(1)])), a || G(`Could not find aliased icon "${l}"`), Array.isArray(a))
468
468
  return {
469
- component: Dn,
469
+ component: At,
470
470
  icon: a
471
471
  };
472
472
  if (typeof a != "string")
473
473
  return {
474
- component: Ie,
474
+ component: Be,
475
475
  icon: a
476
476
  };
477
- const i = Object.keys(n.sets).find((c) => typeof a == "string" && a.startsWith(`${c}:`)), u = i ? a.slice(i.length + 1) : a;
477
+ const u = Object.keys(t.sets).find((c) => typeof a == "string" && a.startsWith(`${c}:`)), i = u ? a.slice(u.length + 1) : a;
478
478
  return {
479
- component: n.sets[i ?? n.defaultSet].component,
480
- icon: u
479
+ component: t.sets[u ?? t.defaultSet].component,
480
+ icon: i
481
481
  };
482
482
  })
483
483
  };
484
- }, An = ["x-small", "small", "default", "large", "x-large"], Pn = O({
484
+ }, Lt = ["x-small", "small", "default", "large", "x-large"], Ot = O({
485
485
  size: {
486
486
  type: [String, Number],
487
487
  default: "default"
488
488
  }
489
489
  }, "size");
490
- function Ln(e) {
491
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Vn();
490
+ function zt(e) {
491
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : xt();
492
492
  return Re(() => {
493
- let t, l;
494
- return rn(An, e.size) ? t = `${n}--size-${e.size}` : e.size && (l = {
495
- width: G(e.size),
496
- height: G(e.size)
493
+ let n, l;
494
+ return ct(Lt, e.size) ? n = `${t}--size-${e.size}` : e.size && (l = {
495
+ width: W(e.size),
496
+ height: W(e.size)
497
497
  }), {
498
- sizeClasses: t,
498
+ sizeClasses: n,
499
499
  sizeStyles: l
500
500
  };
501
501
  });
502
502
  }
503
- const On = O({
503
+ const Ht = O({
504
504
  color: String,
505
505
  disabled: Boolean,
506
506
  start: Boolean,
507
507
  end: Boolean,
508
- icon: Ge,
509
- ...sn(),
510
- ...Pn(),
511
- ...In({
508
+ icon: qe,
509
+ ...it(),
510
+ ...Ot(),
511
+ ...Mt({
512
512
  tag: "i"
513
513
  }),
514
- ...wn()
515
- }, "VIcon"), zn = We()({
514
+ ...$t()
515
+ }, "VIcon"), Ut = Ge()({
516
516
  name: "VIcon",
517
- props: On(),
518
- setup(e, n) {
517
+ props: Ht(),
518
+ setup(e, t) {
519
519
  let {
520
- attrs: t,
520
+ attrs: n,
521
521
  slots: l
522
- } = n;
523
- const a = B(), {
524
- themeClasses: i
525
- } = $n(e), {
526
- iconData: u
527
- } = Tn(V(() => a.value || e.icon)), {
528
- sizeClasses: d
529
- } = Ln(e), {
522
+ } = t;
523
+ const a = $(), {
524
+ themeClasses: u
525
+ } = Bt(e), {
526
+ iconData: i
527
+ } = Pt(V(() => a.value || e.icon)), {
528
+ sizeClasses: m
529
+ } = zt(e), {
530
530
  textColorClasses: o,
531
531
  textColorStyles: c
532
- } = Mn(Je(e, "color"));
533
- return Sn(() => {
534
- var S, $;
535
- const m = (S = l.default) == null ? void 0 : S.call(l);
536
- m && (a.value = ($ = Ne(m).filter((x) => x.type === Qe && x.children && typeof x.children == "string")[0]) == null ? void 0 : $.children);
537
- const y = !!(t.onClick || t.onClickOnce);
538
- return _(u.value.component, {
532
+ } = Dt(Qe(e, "color"));
533
+ return It(() => {
534
+ var x, I;
535
+ const f = (x = l.default) == null ? void 0 : x.call(l);
536
+ f && (a.value = (I = Ne(f).filter((b) => b.type === je && b.children && typeof b.children == "string")[0]) == null ? void 0 : I.children);
537
+ const g = !!(n.onClick || n.onClickOnce);
538
+ return _(i.value.component, {
539
539
  tag: e.tag,
540
- icon: u.value.icon,
541
- class: ["v-icon", "notranslate", i.value, d.value, o.value, {
542
- "v-icon--clickable": y,
540
+ icon: i.value.icon,
541
+ class: ["v-icon", "notranslate", u.value, m.value, o.value, {
542
+ "v-icon--clickable": g,
543
543
  "v-icon--disabled": e.disabled,
544
544
  "v-icon--start": e.start,
545
545
  "v-icon--end": e.end
546
546
  }, e.class],
547
- style: [d.value ? void 0 : {
548
- fontSize: G(e.size),
549
- height: G(e.size),
550
- width: G(e.size)
547
+ style: [m.value ? void 0 : {
548
+ fontSize: W(e.size),
549
+ height: W(e.size),
550
+ width: W(e.size)
551
551
  }, c.value, e.style],
552
- role: y ? "button" : void 0,
553
- "aria-hidden": !y,
554
- tabindex: y ? e.disabled ? -1 : 0 : void 0
552
+ role: g ? "button" : void 0,
553
+ "aria-hidden": !g,
554
+ tabindex: g ? e.disabled ? -1 : 0 : void 0
555
555
  }, {
556
- default: () => [m]
556
+ default: () => [f]
557
557
  });
558
558
  }), {};
559
559
  }
560
- }), Hn = /* @__PURE__ */ w({
560
+ }), Nt = /* @__PURE__ */ w({
561
561
  __name: "entry",
562
562
  props: {
563
563
  minHeight: {}
564
564
  },
565
565
  setup(e) {
566
- const { backgroundColor2: n, highlightColor: t } = ye(), l = B(!1), a = V(() => ({
567
- background: l.value ? t.value : n.value,
566
+ const { backgroundColor2: t, highlightColor: n } = ye(), l = $(!1), a = V(() => ({
567
+ background: l.value ? n.value : t.value,
568
568
  minHeight: e.minHeight,
569
569
  paddingRight: "4px",
570
570
  marginBottom: "1px",
571
571
  userSelect: "none"
572
- })), i = (u) => {
573
- Pe.emit("propTreeMenu", {
574
- x: u.clientX,
575
- y: u.clientY
572
+ })), u = (i) => {
573
+ Le.emit("propTreeMenu", {
574
+ x: i.clientX,
575
+ y: i.clientY
576
576
  });
577
577
  };
578
- return (u, d) => {
579
- const o = R("ripple");
580
- return P((C(), Y("div", {
578
+ return (i, m) => {
579
+ const o = N("ripple");
580
+ return P((C(), X("div", {
581
581
  class: "d-flex justify-space-between align-center cursor-pointer",
582
- style: Ae(a.value),
583
- onContextmenu: j(i, ["prevent"]),
584
- onMouseover: d[0] || (d[0] = (c) => l.value = !0),
585
- onMouseout: d[1] || (d[1] = (c) => l.value = !1)
582
+ style: Pe(a.value),
583
+ onContextmenu: Q(u, ["prevent"]),
584
+ onMouseover: m[0] || (m[0] = (c) => l.value = !0),
585
+ onMouseout: m[1] || (m[1] = (c) => l.value = !1)
586
586
  }, [
587
- je(u.$slots, "default")
587
+ et(i.$slots, "default")
588
588
  ], 36)), [
589
589
  [o]
590
590
  ]);
591
591
  };
592
592
  }
593
- }), Nn = /* @__PURE__ */ w({
593
+ }), Rt = /* @__PURE__ */ w({
594
594
  __name: "menu",
595
595
  setup(e) {
596
- const { t: n } = me(), t = B(0), l = B(0), a = V(() => [t.value, l.value]), i = (c) => {
597
- const m = () => {
596
+ const { t } = fe(), n = $(0), l = $(0), a = V(() => [n.value, l.value]), u = (c) => {
597
+ const f = () => {
598
598
  console.log("reset");
599
599
  };
600
600
  c.push({
601
- title: n("x-prop-tree.reset"),
602
- func: m
601
+ title: t("x-prop-tree.reset"),
602
+ func: f
603
603
  });
604
- }, u = V(() => {
604
+ }, i = V(() => {
605
605
  const c = [];
606
- return i(c), c;
607
- }), d = (c) => {
608
- t.value = c.x, l.value = c.y;
609
- }, { open: o } = Le("propTreeMenu", d);
610
- return (c, m) => {
611
- const y = k("v-list-item-title"), S = k("v-list-item"), $ = k("v-list"), x = k("v-menu");
612
- return C(), I(x, {
606
+ return u(c), c;
607
+ }), m = (c) => {
608
+ n.value = c.x, l.value = c.y;
609
+ }, { open: o } = Oe("propTreeMenu", m);
610
+ return (c, f) => {
611
+ const g = k("v-list-item-title"), x = k("v-list-item"), I = k("v-list"), b = k("v-menu");
612
+ return C(), B(b, {
613
613
  modelValue: T(o),
614
- "onUpdate:modelValue": m[0] || (m[0] = (M) => ce(o) ? o.value = M : null),
614
+ "onUpdate:modelValue": f[0] || (f[0] = (M) => ce(o) ? o.value = M : null),
615
615
  "location-strategy": "connected",
616
616
  target: a.value,
617
617
  scrim: "transparent"
618
618
  }, {
619
619
  default: F(() => [
620
- _($, null, {
620
+ _(I, null, {
621
621
  default: F(() => [
622
- (C(!0), Y(ue, null, en(u.value, (M, A) => (C(), I(S, {
622
+ (C(!0), X(ie, null, tt(i.value, (M, A) => (C(), B(x, {
623
623
  key: A,
624
624
  link: "",
625
625
  onClick: M.func
626
626
  }, {
627
627
  default: F(() => [
628
- _(y, null, {
628
+ _(g, null, {
629
629
  default: F(() => [
630
- fe(ee(M.title), 1)
630
+ me(j(M.title), 1)
631
631
  ]),
632
632
  _: 2
633
633
  }, 1024)
@@ -642,7 +642,7 @@ const On = O({
642
642
  }, 8, ["modelValue", "target"]);
643
643
  };
644
644
  }
645
- }), Be = /* @__PURE__ */ w({
645
+ }), Me = /* @__PURE__ */ w({
646
646
  __name: "title",
647
647
  props: {
648
648
  title: {},
@@ -652,54 +652,54 @@ const On = O({
652
652
  index: { default: 0 }
653
653
  },
654
654
  emits: ["collapse", "create", "delete"],
655
- setup(e, { emit: n }) {
656
- const { backgroundColor2: t, highlightColor: l } = ye(), a = n, i = B(!1), u = V(() => ({
657
- background: i.value ? l.value : t.value,
655
+ setup(e, { emit: t }) {
656
+ const { backgroundColor2: n, highlightColor: l } = ye(), a = t, u = $(!1), i = V(() => ({
657
+ background: u.value ? l.value : n.value,
658
658
  height: "36px",
659
659
  marginBottom: "1px",
660
660
  userSelect: "none"
661
- })), d = () => {
661
+ })), m = () => {
662
662
  a("collapse", !e.collapse);
663
663
  }, o = (c) => {
664
- Pe.emit("propTreeMenu", {
664
+ Le.emit("propTreeMenu", {
665
665
  x: c.clientX,
666
666
  y: c.clientY
667
667
  });
668
668
  };
669
- return (c, m) => {
670
- const y = k("v-icon"), S = k("v-spacer"), $ = R("ripple");
671
- return P((C(), Y("div", {
669
+ return (c, f) => {
670
+ const g = k("v-icon"), x = k("v-spacer"), I = N("ripple");
671
+ return P((C(), X("div", {
672
672
  class: "d-flex align-center cursor-pointer",
673
- style: Ae(u.value),
674
- onClick: d,
675
- onContextmenu: j(o, ["prevent"]),
676
- onMouseover: m[2] || (m[2] = (x) => i.value = !0),
677
- onMouseout: m[3] || (m[3] = (x) => i.value = !1)
673
+ style: Pe(i.value),
674
+ onClick: m,
675
+ onContextmenu: Q(o, ["prevent"]),
676
+ onMouseover: f[2] || (f[2] = (b) => u.value = !0),
677
+ onMouseout: f[3] || (f[3] = (b) => u.value = !1)
678
678
  }, [
679
- _(y, {
679
+ _(g, {
680
680
  class: "mr-1",
681
- icon: c.collapse ? T(ln) : T(tn)
681
+ icon: c.collapse ? T(ut) : T(at)
682
682
  }, null, 8, ["icon"]),
683
- nn("span", null, ee(c.title), 1),
684
- _(S),
685
- c.hasCreate ? (C(), I(y, {
683
+ nt("span", null, j(c.title), 1),
684
+ _(x),
685
+ c.hasCreate ? (C(), B(g, {
686
686
  key: 0,
687
687
  class: "ml-3",
688
- icon: T(ze),
689
- onClick: m[0] || (m[0] = j((x) => a("create"), ["stop"]))
688
+ icon: T(He),
689
+ onClick: f[0] || (f[0] = Q((b) => a("create"), ["stop"]))
690
690
  }, null, 8, ["icon"])) : se("", !0),
691
- c.hasDelete ? (C(), I(y, {
691
+ c.hasDelete ? (C(), B(g, {
692
692
  key: 1,
693
693
  class: "ml-3",
694
- icon: T(Oe),
695
- onClick: m[1] || (m[1] = j((x) => a("delete", c.index), ["stop"]))
694
+ icon: T(ze),
695
+ onClick: f[1] || (f[1] = Q((b) => a("delete", c.index), ["stop"]))
696
696
  }, null, 8, ["icon"])) : se("", !0)
697
697
  ], 36)), [
698
- [$]
698
+ [I]
699
699
  ]);
700
700
  };
701
701
  }
702
- }), Rn = /* @__PURE__ */ w({
702
+ }), Et = /* @__PURE__ */ w({
703
703
  __name: "colorPicker",
704
704
  props: /* @__PURE__ */ L({
705
705
  readonly: { type: Boolean, default: !1 }
@@ -709,29 +709,29 @@ const On = O({
709
709
  }),
710
710
  emits: ["update:modelValue"],
711
711
  setup(e) {
712
- const n = U(e, "modelValue"), t = V(() => e.readonly), l = B("hexa");
713
- return (a, i) => {
714
- const u = k("v-btn"), d = k("v-color-picker"), o = k("v-menu");
715
- return C(), I(o, { "close-on-content-click": !1 }, {
712
+ const t = R(e, "modelValue"), n = V(() => e.readonly), l = $("hexa");
713
+ return (a, u) => {
714
+ const i = k("v-btn"), m = k("v-color-picker"), o = k("v-menu");
715
+ return C(), B(o, { "close-on-content-click": !1 }, {
716
716
  activator: F(({ props: c }) => [
717
- _(u, de(c, {
717
+ _(i, de(c, {
718
718
  density: "comfortable",
719
- color: n.value,
719
+ color: t.value,
720
720
  block: "",
721
- disabled: t.value
721
+ disabled: n.value
722
722
  }), {
723
723
  default: F(() => [
724
- fe(ee(n.value), 1)
724
+ me(j(t.value), 1)
725
725
  ]),
726
726
  _: 2
727
727
  }, 1040, ["color", "disabled"])
728
728
  ]),
729
729
  default: F(() => [
730
- _(d, {
731
- modelValue: n.value,
732
- "onUpdate:modelValue": i[0] || (i[0] = (c) => n.value = c),
730
+ _(m, {
731
+ modelValue: t.value,
732
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => t.value = c),
733
733
  mode: l.value,
734
- "onUpdate:mode": i[1] || (i[1] = (c) => l.value = c),
734
+ "onUpdate:mode": u[1] || (u[1] = (c) => l.value = c),
735
735
  "show-swatches": "",
736
736
  "swatches-max-height": "150px"
737
737
  }, null, 8, ["modelValue", "mode"])
@@ -740,24 +740,24 @@ const On = O({
740
740
  });
741
741
  };
742
742
  }
743
- }), Un = /* @__PURE__ */ w({
743
+ }), Wt = /* @__PURE__ */ w({
744
744
  __name: "compSelect",
745
745
  setup(e) {
746
- const n = V(() => "<n/a>"), t = () => {
747
- }, { open: l } = Le("compSelectDlg", t);
748
- return (a, i) => {
749
- const u = k("v-btn"), d = k("v-dialog");
750
- return C(), I(d, {
746
+ const t = V(() => "<n/a>"), n = () => {
747
+ }, { open: l } = Oe("compSelectDlg", n);
748
+ return (a, u) => {
749
+ const i = k("v-btn"), m = k("v-dialog");
750
+ return C(), B(m, {
751
751
  modelValue: T(l),
752
- "onUpdate:modelValue": i[0] || (i[0] = (o) => ce(l) ? l.value = o : null)
752
+ "onUpdate:modelValue": u[0] || (u[0] = (o) => ce(l) ? l.value = o : null)
753
753
  }, {
754
754
  activator: F(({ props: o }) => [
755
- _(u, de(o, {
755
+ _(i, de(o, {
756
756
  density: "comfortable",
757
757
  block: ""
758
758
  }), {
759
759
  default: F(() => [
760
- fe(ee(n.value), 1)
760
+ me(j(t.value), 1)
761
761
  ]),
762
762
  _: 2
763
763
  }, 1040)
@@ -766,73 +766,68 @@ const On = O({
766
766
  }, 8, ["modelValue"]);
767
767
  };
768
768
  }
769
- }), En = { class: "my-2" }, Wn = /* @__PURE__ */ w({
769
+ }), Gt = { class: "my-2" }, qt = /* @__PURE__ */ w({
770
770
  __name: "multiTypes",
771
771
  props: /* @__PURE__ */ L({
772
- types: {},
773
- precision: { default: 4 },
774
- min: { default: () => -1 / 0 },
775
- max: { default: () => 1 / 0 },
776
- step: { default: 1 }
772
+ types: {}
777
773
  }, {
778
- modelValue: {},
774
+ modelValue: { default: "" },
779
775
  modelModifiers: {}
780
776
  }),
781
777
  emits: ["update:modelValue"],
782
778
  setup(e) {
783
- const { t: n } = me(), t = U(e, "modelValue"), l = V(() => {
784
- const d = [];
779
+ const { t } = fe(), n = R(e, "modelValue"), l = $(0), a = V(() => {
780
+ const m = [];
785
781
  return e.types.forEach((o, c) => {
786
- d.push({
787
- title: n(o.name),
782
+ m.push({
783
+ title: t(o.name),
788
784
  value: c
789
785
  });
790
- }), d;
791
- }), a = B(0);
792
- re(() => {
793
- for (let d = 0; d < e.types.length; d++)
794
- if (e.types[d].validator(t.value)) {
795
- a.value = d;
796
- break;
797
- }
786
+ }), m;
798
787
  });
799
- const i = V(() => e.types[a.value]), u = () => {
800
- t.value = i.value.default;
801
- };
802
- return (d, o) => {
803
- const c = k("v-select"), m = k("v-number-input"), y = R("ripple");
804
- return C(), Y("div", En, [
788
+ e.types.some((m, o) => m.validator(n.value) ? (l.value = o, !0) : !1);
789
+ const u = V(() => e.types[l.value]);
790
+ ge(u, (m) => {
791
+ n.value = m.default;
792
+ });
793
+ const i = $(0);
794
+ return re(() => {
795
+ u.value.ui === "pixelInput" ? i.value = lt(n.value) : u.value.ui === "percentInput" && (i.value = st(n.value));
796
+ }), ge(i, (m) => {
797
+ u.value.ui === "pixelInput" ? n.value = m + "px" : u.value.ui === "percentInput" && (n.value = m + "%");
798
+ }), (m, o) => {
799
+ const c = k("v-select"), f = k("v-number-input"), g = N("ripple");
800
+ return C(), X("div", Gt, [
805
801
  P(_(c, {
806
- modelValue: a.value,
807
- "onUpdate:modelValue": [
808
- o[0] || (o[0] = (S) => a.value = S),
809
- u
810
- ],
802
+ modelValue: l.value,
803
+ "onUpdate:modelValue": o[0] || (o[0] = (x) => l.value = x),
811
804
  density: "compact",
812
- items: l.value,
805
+ items: a.value,
813
806
  "hide-details": "",
814
807
  "single-line": ""
815
808
  }, null, 8, ["modelValue", "items"]), [
816
809
  [
817
- y,
810
+ g,
818
811
  void 0,
819
812
  void 0,
820
813
  { stop: !0 }
821
814
  ]
822
815
  ]),
823
- i.value.ui === "pixelInput" || i.value.ui === "percentInput" ? P((C(), I(m, {
816
+ u.value.ui === "pixelInput" || u.value.ui === "percentInput" ? P((C(), B(f, {
824
817
  key: 0,
818
+ modelValue: i.value,
819
+ "onUpdate:modelValue": o[1] || (o[1] = (x) => i.value = x),
825
820
  density: "compact",
826
821
  "control-variant": "stacked",
827
- precision: d.precision,
828
- min: d.min,
829
- max: d.max,
830
- step: d.step,
822
+ precision: u.value.precision,
823
+ min: u.value.min,
824
+ max: u.value.max,
825
+ step: u.value.step,
831
826
  "hide-details": "",
832
827
  "single-line": ""
833
- }, null, 8, ["precision", "min", "max", "step"])), [
828
+ }, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
834
829
  [
835
- y,
830
+ g,
836
831
  void 0,
837
832
  void 0,
838
833
  { stop: !0 }
@@ -841,7 +836,7 @@ const On = O({
841
836
  ]);
842
837
  };
843
838
  }
844
- }), Gn = /* @__PURE__ */ w({
839
+ }), Xt = /* @__PURE__ */ w({
845
840
  __name: "numInput",
846
841
  props: /* @__PURE__ */ L({
847
842
  precision: { default: 4 },
@@ -855,24 +850,24 @@ const On = O({
855
850
  }),
856
851
  emits: ["update:modelValue"],
857
852
  setup(e) {
858
- const n = U(e, "modelValue");
859
- return (t, l) => {
860
- const a = k("v-number-input"), i = R("ripple");
861
- return P((C(), I(a, {
862
- modelValue: n.value,
863
- "onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u),
853
+ const t = R(e, "modelValue");
854
+ return (n, l) => {
855
+ const a = k("v-number-input"), u = N("ripple");
856
+ return P((C(), B(a, {
857
+ modelValue: t.value,
858
+ "onUpdate:modelValue": l[0] || (l[0] = (i) => t.value = i),
864
859
  density: "compact",
865
860
  "control-variant": "stacked",
866
- precision: t.precision,
867
- min: t.min,
868
- max: t.max,
869
- step: t.step,
861
+ precision: n.precision,
862
+ min: n.min,
863
+ max: n.max,
864
+ step: n.step,
870
865
  "hide-details": "",
871
866
  "single-line": "",
872
- readonly: t.readonly
867
+ readonly: n.readonly
873
868
  }, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"])), [
874
869
  [
875
- i,
870
+ u,
876
871
  void 0,
877
872
  void 0,
878
873
  { stop: !0 }
@@ -880,7 +875,7 @@ const On = O({
880
875
  ]);
881
876
  };
882
877
  }
883
- }), qn = /* @__PURE__ */ w({
878
+ }), Yt = /* @__PURE__ */ w({
884
879
  __name: "select",
885
880
  props: /* @__PURE__ */ L({
886
881
  readonly: { type: Boolean, default: !1 },
@@ -891,20 +886,20 @@ const On = O({
891
886
  }),
892
887
  emits: ["update:modelValue"],
893
888
  setup(e) {
894
- const n = U(e, "modelValue");
895
- return (t, l) => {
896
- const a = k("v-select"), i = R("ripple");
897
- return P((C(), I(a, {
898
- modelValue: n.value,
899
- "onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u),
889
+ const t = R(e, "modelValue");
890
+ return (n, l) => {
891
+ const a = k("v-select"), u = N("ripple");
892
+ return P((C(), B(a, {
893
+ modelValue: t.value,
894
+ "onUpdate:modelValue": l[0] || (l[0] = (i) => t.value = i),
900
895
  density: "compact",
901
- items: t.items,
896
+ items: n.items,
902
897
  "hide-details": "",
903
898
  "single-line": "",
904
- readonly: t.readonly
899
+ readonly: n.readonly
905
900
  }, null, 8, ["modelValue", "items", "readonly"])), [
906
901
  [
907
- i,
902
+ u,
908
903
  void 0,
909
904
  void 0,
910
905
  { stop: !0 }
@@ -912,7 +907,7 @@ const On = O({
912
907
  ]);
913
908
  };
914
909
  }
915
- }), Me = /* @__PURE__ */ w({
910
+ }), Fe = /* @__PURE__ */ w({
916
911
  __name: "strInput",
917
912
  props: /* @__PURE__ */ L({
918
913
  readonly: { type: Boolean, default: !1 },
@@ -922,22 +917,22 @@ const On = O({
922
917
  modelModifiers: {}
923
918
  }),
924
919
  emits: /* @__PURE__ */ L(["delete"], ["update:modelValue"]),
925
- setup(e, { emit: n }) {
926
- const t = U(e, "modelValue"), l = n;
927
- return (a, i) => {
928
- const u = k("v-text-field"), d = R("ripple");
929
- return P((C(), I(u, {
930
- modelValue: t.value,
931
- "onUpdate:modelValue": i[0] || (i[0] = (o) => t.value = o),
920
+ setup(e, { emit: t }) {
921
+ const n = R(e, "modelValue"), l = t;
922
+ return (a, u) => {
923
+ const i = k("v-text-field"), m = N("ripple");
924
+ return P((C(), B(i, {
925
+ modelValue: n.value,
926
+ "onUpdate:modelValue": u[0] || (u[0] = (o) => n.value = o),
932
927
  density: "compact",
933
- "append-inner-icon": a.hasDelete ? T(Oe) : "",
928
+ "append-inner-icon": a.hasDelete ? T(ze) : "",
934
929
  "hide-details": "",
935
930
  "single-line": "",
936
931
  readonly: a.readonly,
937
- "onClick:appendInner": i[1] || (i[1] = (o) => l("delete"))
932
+ "onClick:appendInner": u[1] || (u[1] = (o) => l("delete"))
938
933
  }, null, 8, ["modelValue", "append-inner-icon", "readonly"])), [
939
934
  [
940
- d,
935
+ m,
941
936
  void 0,
942
937
  void 0,
943
938
  { stop: !0 }
@@ -945,7 +940,7 @@ const On = O({
945
940
  ]);
946
941
  };
947
942
  }
948
- }), Xn = /* @__PURE__ */ w({
943
+ }), Zt = /* @__PURE__ */ w({
949
944
  __name: "switch",
950
945
  props: /* @__PURE__ */ L({
951
946
  readonly: { type: Boolean, default: !1 }
@@ -955,36 +950,36 @@ const On = O({
955
950
  }),
956
951
  emits: ["update:modelValue"],
957
952
  setup(e) {
958
- const n = U(e, "modelValue");
959
- return (t, l) => {
953
+ const t = R(e, "modelValue");
954
+ return (n, l) => {
960
955
  const a = k("v-switch");
961
- return C(), I(a, {
962
- modelValue: n.value,
963
- "onUpdate:modelValue": l[0] || (l[0] = (i) => n.value = i),
956
+ return C(), B(a, {
957
+ modelValue: t.value,
958
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u),
964
959
  class: "ml-1",
965
960
  density: "compact",
966
961
  color: "primary",
967
962
  "hide-details": "",
968
- readonly: t.readonly
963
+ readonly: n.readonly
969
964
  }, null, 8, ["modelValue", "readonly"]);
970
965
  };
971
966
  }
972
967
  });
973
- function Fe(e, n) {
974
- const t = n.split(".");
968
+ function De(e, t) {
969
+ const n = t.split(".");
975
970
  let l = e;
976
- return t.forEach((a) => {
971
+ return n.forEach((a) => {
977
972
  l[a] || (l[a] = {}), l = l[a];
978
973
  }), l.collapse === void 0 && (l.collapse = !0), l.collapse;
979
974
  }
980
- function Yn(e, n, t) {
981
- const l = n.split(".");
975
+ function Kt(e, t, n) {
976
+ const l = t.split(".");
982
977
  let a = e;
983
- l.forEach((i) => {
984
- a[i] || (a[i] = {}), a = a[i];
985
- }), a.collapse = t;
978
+ l.forEach((u) => {
979
+ a[u] || (a[u] = {}), a = a[u];
980
+ }), a.collapse = n;
986
981
  }
987
- const Zn = /* @__PURE__ */ w({
982
+ const Jt = /* @__PURE__ */ w({
988
983
  __name: "index",
989
984
  props: {
990
985
  unique: {},
@@ -992,33 +987,29 @@ const Zn = /* @__PURE__ */ w({
992
987
  object: {}
993
988
  },
994
989
  emits: ["change"],
995
- setup(e, { emit: n }) {
996
- const { t } = me(), { backgroundColor1: l, backgroundColor2: a } = ye(), i = e, u = n, d = B("20px"), o = B("56px"), c = B("200px"), m = De({});
997
- function y(f, s, r, g) {
998
- return f !== "" && (f += "."), f += s.key, s.children ? s.array ? S(f, s, r, g) : $(f, s, r, g) : s.array ? x(f, s, r) : M(f, s, r);
999
- }
1000
- function S(f, s, r, g) {
1001
- r[s.key] instanceof Array || (r[s.key] = [], u("change", f, r[s.key]));
1002
- const b = p(Be, {
1003
- title: t(s.name),
1004
- collapse: (typeof g.collapse != "boolean" && (g.collapse = !0), g.collapse),
990
+ setup(e, { emit: t }) {
991
+ const { t: n } = fe(), { backgroundColor1: l, backgroundColor2: a } = ye(), u = e, i = t, m = $("20px"), o = $("56px"), c = $("200px"), f = Te({}), g = (d, s, r, v) => (d !== "" && (d += "."), d += s.key, s.children ? s.array ? x(d, s, r, v) : I(d, s, r, v) : s.array ? b(d, s, r) : M(d, s, r)), x = (d, s, r, v) => {
992
+ r[s.key] instanceof Array || (r[s.key] = [], i("change", d, r[s.key]));
993
+ const S = p(Me, {
994
+ title: n(s.name),
995
+ collapse: (typeof v.collapse != "boolean" && (v.collapse = !0), v.collapse),
1005
996
  onCollapse: (h) => {
1006
- g.collapse = h;
997
+ v.collapse = h;
1007
998
  },
1008
999
  onCreate: () => {
1009
- r[s.key].push({}), u("change", f, r[s.key]);
1000
+ r[s.key].push({}), i("change", d, r[s.key]);
1010
1001
  }
1011
- }), v = p(
1002
+ }), y = p(
1012
1003
  "div",
1013
1004
  {
1014
1005
  style: {
1015
- paddingLeft: d.value
1006
+ paddingLeft: m.value
1016
1007
  }
1017
1008
  },
1018
1009
  (() => {
1019
- g[s.key] instanceof Array || (g[s.key] = []);
1010
+ v[s.key] instanceof Array || (v[s.key] = []);
1020
1011
  for (let h = 0; h < r[s.key].length; h++)
1021
- typeof g[s.key][h] != "object" && (g[s.key][h] = {
1012
+ typeof v[s.key][h] != "object" && (v[s.key][h] = {
1022
1013
  collapse: !0
1023
1014
  });
1024
1015
  return [];
@@ -1034,36 +1025,35 @@ const Zn = /* @__PURE__ */ w({
1034
1025
  },
1035
1026
  (() => {
1036
1027
  const h = [];
1037
- return h.push(b), g.collapse || h.push(v), h;
1028
+ return h.push(S), v.collapse || h.push(y), h;
1038
1029
  })()
1039
1030
  );
1040
- }
1041
- function $(f, s, r, g) {
1042
- const b = p(Be, {
1043
- title: t(s.name),
1044
- collapse: Fe(g, f),
1031
+ }, I = (d, s, r, v) => {
1032
+ const S = p(Me, {
1033
+ title: n(s.name),
1034
+ collapse: De(v, d),
1045
1035
  onCollapse: (h) => {
1046
- Yn(g, f, h);
1036
+ Kt(v, d, h);
1047
1037
  }
1048
- }), v = p(
1038
+ }), y = p(
1049
1039
  "div",
1050
1040
  {
1051
1041
  style: {
1052
1042
  background: l.value,
1053
- paddingLeft: d.value
1043
+ paddingLeft: m.value
1054
1044
  }
1055
1045
  },
1056
1046
  (() => {
1057
1047
  var z;
1058
1048
  const h = [];
1059
- return (z = s.children) == null || z.forEach((E) => {
1060
- const qe = y(
1061
- f,
1062
- E,
1063
- (typeof r[s.key] != "object" && (r[s.key] = {}, u("change", f, r[s.key])), r[s.key]),
1064
- g
1049
+ return (z = s.children) == null || z.forEach((ne) => {
1050
+ const Xe = g(
1051
+ d,
1052
+ ne,
1053
+ (typeof r[s.key] != "object" && (r[s.key] = {}, i("change", d, r[s.key])), r[s.key]),
1054
+ v
1065
1055
  );
1066
- h.push(qe);
1056
+ h.push(Xe);
1067
1057
  }), h;
1068
1058
  })()
1069
1059
  );
@@ -1076,15 +1066,14 @@ const Zn = /* @__PURE__ */ w({
1076
1066
  },
1077
1067
  (() => {
1078
1068
  const h = [];
1079
- return h.push(b), Fe(g, f) || h.push(v), h;
1069
+ return h.push(S), De(v, d) || h.push(y), h;
1080
1070
  })()
1081
1071
  );
1082
- }
1083
- function x(f, s, r) {
1084
- r[s.key] instanceof Array || (r[s.key] = D(s), u("change", f, r[s.key]));
1085
- let g = () => [];
1086
- return s.ui === "strInput" ? g = () => {
1087
- const b = [];
1072
+ }, b = (d, s, r) => {
1073
+ r[s.key] instanceof Array || (r[s.key] = D(s), i("change", d, r[s.key]));
1074
+ let v = () => [];
1075
+ return s.ui === "strInput" ? v = () => {
1076
+ const S = [];
1088
1077
  for (let h = 0; h < r[s.key].length; h++) {
1089
1078
  const z = p(
1090
1079
  "div",
@@ -1095,21 +1084,21 @@ const Zn = /* @__PURE__ */ w({
1095
1084
  }
1096
1085
  },
1097
1086
  [
1098
- p(Me, {
1087
+ p(Fe, {
1099
1088
  modelValue: r[s.key][h],
1100
- "onUpdate:modelValue": (E) => {
1101
- r[s.key][h] = E, u("change", f, r[s.key]);
1089
+ "onUpdate:modelValue": (ne) => {
1090
+ r[s.key][h] = ne, i("change", d, r[s.key]);
1102
1091
  },
1103
1092
  hasDelete: !0,
1104
1093
  onDelete: () => {
1105
- r[s.key].splice(h, 1), u("change", f, r[s.key]);
1094
+ r[s.key].splice(h, 1), i("change", d, r[s.key]);
1106
1095
  }
1107
1096
  })
1108
1097
  ]
1109
1098
  );
1110
- b.push(z);
1099
+ S.push(z);
1111
1100
  }
1112
- const v = p(
1101
+ const y = p(
1113
1102
  "div",
1114
1103
  {
1115
1104
  class: "d-flex align-center justify-center",
@@ -1123,103 +1112,96 @@ const Zn = /* @__PURE__ */ w({
1123
1112
  border: "thin dashed #bdbdbd"
1124
1113
  },
1125
1114
  onClick: () => {
1126
- r[s.key].push(""), u("change", f, r[s.key]);
1115
+ r[s.key].push(""), i("change", d, r[s.key]);
1127
1116
  }
1128
1117
  },
1129
- [p(zn, { icon: ze })]
1118
+ [p(Ut, { icon: He })]
1130
1119
  );
1131
- return b.push(v), b;
1132
- } : console.assert(!1, "invalid prop ui", s.ui), A(t(s.name), g());
1133
- }
1134
- function M(f, s, r) {
1135
- let g = () => [];
1136
- return s.ui === "void" ? r[s.key] === void 0 && (console.assert(s.default !== void 0), r[s.key] = D(s), u("change", f, r[s.key])) : s.ui === "strInput" ? g = () => [p(Me, {
1137
- modelValue: s.static ? s.value : (typeof r[s.key] != "string" && (r[s.key] = D(s), u("change", f, r[s.key])), r[s.key]),
1138
- "onUpdate:modelValue": (v) => {
1139
- s.static || v !== r[s.key] && (r[s.key] = v, u("change", f, v));
1120
+ return S.push(y), S;
1121
+ } : console.assert(!1, "invalid prop ui", s.ui), A(n(s.name), v());
1122
+ }, M = (d, s, r) => {
1123
+ let v = () => [];
1124
+ return s.ui === "dummy" ? r[s.key] === void 0 && (r[s.key] = D(s), i("change", d, r[s.key])) : s.ui === "strInput" ? v = () => [p(Fe, {
1125
+ modelValue: s.static ? s.value : (typeof r[s.key] != "string" && (r[s.key] = D(s), i("change", d, r[s.key])), r[s.key]),
1126
+ "onUpdate:modelValue": (y) => {
1127
+ s.static || y !== r[s.key] && (r[s.key] = y, i("change", d, y));
1140
1128
  },
1141
1129
  readonly: s.static || s.readonly
1142
- })] : s.ui === "numInput" ? g = () => [p(Gn, {
1143
- modelValue: (typeof r[s.key] != "number" && (r[s.key] = D(s), u("change", f, r[s.key])), r[s.key]),
1144
- "onUpdate:modelValue": (v) => {
1145
- v !== r[s.key] && (r[s.key] = v, u("change", f, v));
1130
+ })] : s.ui === "numInput" ? v = () => [p(Xt, {
1131
+ modelValue: (typeof r[s.key] != "number" && (r[s.key] = D(s), i("change", d, r[s.key])), r[s.key]),
1132
+ "onUpdate:modelValue": (y) => {
1133
+ y !== r[s.key] && (r[s.key] = y, i("change", d, y));
1146
1134
  },
1147
1135
  readonly: s.readonly
1148
- })] : s.ui === "switch" ? g = () => [p(Xn, {
1149
- modelValue: (typeof r[s.key] != "boolean" && (r[s.key] = D(s), u("change", f, r[s.key])), r[s.key]),
1150
- "onUpdate:modelValue": (v) => {
1151
- v !== r[s.key] && (r[s.key] = v, u("change", f, v));
1136
+ })] : s.ui === "switch" ? v = () => [p(Zt, {
1137
+ modelValue: (typeof r[s.key] != "boolean" && (r[s.key] = D(s), i("change", d, r[s.key])), r[s.key]),
1138
+ "onUpdate:modelValue": (y) => {
1139
+ y !== r[s.key] && (r[s.key] = y, i("change", d, y));
1152
1140
  },
1153
1141
  readonly: s.readonly
1154
- })] : s.ui === "select" ? g = () => [p(qn, {
1155
- modelValue: (typeof r[s.key] != "string" && (r[s.key] = D(s), u("change", f, r[s.key])), r[s.key]),
1156
- "onUpdate:modelValue": (v) => {
1157
- v !== r[s.key] && (r[s.key] = v, u("change", f, v));
1142
+ })] : s.ui === "select" ? v = () => [p(Yt, {
1143
+ modelValue: (typeof r[s.key] != "string" && (r[s.key] = D(s), i("change", d, r[s.key])), r[s.key]),
1144
+ "onUpdate:modelValue": (y) => {
1145
+ y !== r[s.key] && (r[s.key] = y, i("change", d, y));
1158
1146
  },
1159
1147
  items: (() => {
1160
- var h;
1161
- const v = [];
1162
- return (h = s.items) == null || h.forEach(({ title: z, value: E }) => {
1163
- v.push({
1164
- title: t(z),
1165
- value: E
1148
+ const y = [];
1149
+ return s.items.forEach(({ title: h, value: z }) => {
1150
+ y.push({
1151
+ title: n(h),
1152
+ value: z
1166
1153
  });
1167
- }), v;
1154
+ }), y;
1168
1155
  })(),
1169
1156
  readonly: s.readonly
1170
- })] : s.ui === "colorPicker" ? g = () => [p(Rn, {
1171
- modelValue: (typeof r[s.key] != "string" && (r[s.key] = D(s), u("change", f, r[s.key])), r[s.key]),
1172
- "onUpdate:modelValue": (v) => {
1173
- v !== r[s.key] && (r[s.key] = v, u("change", f, v));
1157
+ })] : s.ui === "colorPicker" ? v = () => [p(Et, {
1158
+ modelValue: (typeof r[s.key] != "string" && (r[s.key] = D(s), i("change", d, r[s.key])), r[s.key]),
1159
+ "onUpdate:modelValue": (y) => {
1160
+ y !== r[s.key] && (r[s.key] = y, i("change", d, y));
1174
1161
  },
1175
1162
  readonly: s.readonly
1176
- })] : s.ui === "multiTypes" ? g = () => [p(Wn, {
1177
- modelValue: (typeof r[s.key] != "string" && (r[s.key] = D(s), u("change", f, r[s.key])), r[s.key]),
1178
- types: s.types,
1179
- precision: s.precision,
1180
- min: s.min,
1181
- max: s.max,
1182
- step: s.step
1183
- })] : s.ui === "compSelect" ? g = () => [p(Un, {})] : console.assert(!1, "invalid prop ui", s.ui), A(t(s.name), g());
1184
- }
1185
- function A(f, s) {
1186
- return p(
1187
- Hn,
1188
- {
1189
- minHeight: o.value
1163
+ })] : s.ui === "multiTypes" ? v = () => [p(qt, {
1164
+ modelValue: (typeof r[s.key] != "string" && (r[s.key] = D(s), i("change", d, r[s.key])), r[s.key]),
1165
+ "onUpdate:modelValue": (y) => {
1166
+ y !== r[s.key] && (r[s.key] = y, i("change", d, y));
1190
1167
  },
1191
- () => [
1192
- p("span", { class: "ml-1", innerHTML: f }),
1193
- p("div", { style: { width: c.value } }, s)
1194
- ]
1195
- );
1196
- }
1197
- const K = () => p(
1168
+ types: s.types
1169
+ })] : s.ui === "compSelect" ? v = () => [p(Wt, {})] : console.assert(!1, "invalid prop ui", s.ui), A(n(s.name), v());
1170
+ }, A = (d, s) => p(
1171
+ Nt,
1172
+ {
1173
+ minHeight: o.value
1174
+ },
1175
+ () => [
1176
+ p("span", { class: "ml-1", innerHTML: d }),
1177
+ p("div", { style: { width: c.value } }, s)
1178
+ ]
1179
+ ), Z = () => p(
1198
1180
  "div",
1199
1181
  {
1200
1182
  class: "text-body-2"
1201
1183
  },
1202
1184
  (() => {
1203
- const f = [];
1204
- if (i.unique && i.config && i.object) {
1205
- m[i.unique] || (m[i.unique] = {});
1206
- const s = m[i.unique];
1207
- i.config.forEach((r) => {
1208
- const g = y("", r, i.object, s);
1209
- f.push(g);
1185
+ const d = [];
1186
+ if (u.unique && u.config && u.object) {
1187
+ f[u.unique] || (f[u.unique] = {});
1188
+ const s = f[u.unique];
1189
+ u.config.forEach((r) => {
1190
+ const v = g("", r, u.object, s);
1191
+ d.push(v);
1210
1192
  });
1211
1193
  }
1212
- return f;
1194
+ return d;
1213
1195
  })()
1214
1196
  );
1215
- return (f, s) => (C(), Y(ue, null, [
1216
- _(K),
1217
- _(Nn)
1197
+ return (d, s) => (C(), X(ie, null, [
1198
+ _(Z),
1199
+ _(Rt)
1218
1200
  ], 64));
1219
1201
  }
1220
- }), Kn = (e) => {
1221
- e.component("XPropTree", Zn);
1222
- }, nt = { install: Kn };
1202
+ }), Qt = (e) => {
1203
+ e.component("XPropTree", Jt);
1204
+ }, ln = { install: Qt };
1223
1205
  export {
1224
- nt as default
1206
+ ln as default
1225
1207
  };