x-prop-tree 0.4.5 → 0.4.7

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