x-prop-tree 0.4.6 → 0.4.8

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 Ae, reactive as Ve, computed as b, watchEffect as be, toRefs as Me, warn as Pe, getCurrentInstance as Le, inject as j, shallowRef as Te, provide as _e, defineComponent as M, isRef as ze, createVNode as C, mergeProps as xe, unref as q, ref as T, toRef as Oe, Text as Re, resolveComponent as p, openBlock as S, createBlock as B, withCtx as ne, mergeModels as Z, useModel as ee, resolveDirective as Ne, withDirectives as He, createElementBlock as Ee, normalizeStyle as We, createElementVNode as Ue, toDisplayString as Ge, withModifiers as te, createCommentVNode as se, h as k } from "vue";
3
- import { useI18n as qe } from "vue-i18n";
4
- import { useColor as Ze } from "x-essential-lib";
5
- import { getPropDefault as L } from "x-runtime-lib";
6
- var Xe = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Ye = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", Ke = "M19,13H5V11H19V13Z", Je = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
7
- function I(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 Ie, createVNode as C, mergeProps as Me, unref as T, ref as I, toRef as Ze, Text as Ke, resolveDirective as G, withDirectives as q, openBlock as x, createElementBlock as j, normalizeStyle as Fe, withModifiers as Q, renderSlot as Je, resolveComponent as p, createBlock as M, 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 Qe = I({
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 O(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 ae(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 je(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 le(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 en(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 pe() {
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 r = e[a], u = n[a];
62
- if (ae(r) && ae(u)) {
63
- s[a] = pe(r, 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(r) && Array.isArray(u)) {
67
- s[a] = t(r, 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 === Ae ? 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 A() {
77
+ function H() {
78
78
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
79
- if (A.cache.has(e)) return A.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 A.cache.set(e, n), n;
82
- }
83
- A.cache = /* @__PURE__ */ new Map();
84
- function we(e) {
85
- const n = Ve({}), t = b(e);
86
- return be(() => {
87
- for (const s in t.value)
88
- n[s] = t.value[s];
81
+ return H.cache.set(e, n), n;
82
+ }
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
- }), Me(n);
91
+ }), Ge(n);
92
92
  }
93
- function nn(e, n) {
93
+ function rn(e, n) {
94
94
  return e.includes(n);
95
95
  }
96
- const D = 2.4, re = 0.2126729, ie = 0.7151522, ue = 0.072175, tn = 0.55, sn = 0.58, an = 0.57, ln = 0.62, U = 0.03, oe = 1.45, rn = 5e-4, un = 1.25, on = 1.25, ce = 0.078, fe = 12.82051282051282, G = 0.06, de = 1e-3;
97
- function me(e, n) {
98
- const t = (e.r / 255) ** D, s = (e.g / 255) ** D, a = (e.b / 255) ** D, r = (n.r / 255) ** D, u = (n.g / 255) ** D, y = (n.b / 255) ** D;
99
- let o = t * re + s * ie + a * ue, f = r * re + u * ie + y * ue;
100
- if (o <= U && (o += (U - o) ** oe), f <= U && (f += (U - f) ** oe), Math.abs(f - o) < rn) return 0;
101
- let v;
102
- if (f > o) {
103
- const g = (f ** tn - o ** sn) * un;
104
- v = g < de ? 0 : g < ce ? g - g * fe * G : g - 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 g = (f ** ln - o ** an) * on;
107
- v = g > -de ? 0 : g > -ce ? g - g * fe * G : g + 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 v * 100;
109
+ return f * 100;
110
110
  }
111
- function R(e) {
112
- Pe(`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 cn(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 ge = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, fn = {
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) => ye({
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) => ye({
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) => N({
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) => N({
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 z(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" && ge.test(e)) {
165
+ if (typeof e == "string" && Ve.test(e)) {
166
166
  const {
167
167
  groups: n
168
- } = e.match(ge), {
168
+ } = e.match(Ve), {
169
169
  fn: t,
170
- values: s
171
- } = n, a = s.split(/,\s*/).map((r) => r.endsWith("%") && ["hsl", "hsla", "hsv", "hsva"].includes(t) ? parseFloat(r) / 100 : parseFloat(r));
172
- return fn[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`), dn(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 N(Fe(e));
183
- if (K(e, ["h", "s", "v"]))
184
- return N(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 N(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, r = (y) => {
196
- const o = (y + n / 60) % 6;
197
- return s - s * t * Math.max(Math.min(o, 4 - o, 1), 0);
198
- }, u = [r(5), r(3), r(1)].map((y) => Math.round(y * 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 ye(e) {
207
- return N(Fe(e));
206
+ function _e(e) {
207
+ return W(Ne(e));
208
208
  }
209
- function Fe(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, r = s + t * Math.min(s, 1 - s), u = r === 0 ? 0 : 2 - 2 * s / r;
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,
218
+ s: i,
219
219
  v: r,
220
220
  a
221
221
  };
222
222
  }
223
- function dn(e) {
224
- e = mn(e);
225
- let [n, t, s, a] = en(e, 2).map((r) => parseInt(r, 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 mn(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 = le(le(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 gn(e) {
237
- const n = Math.abs(me(z(0), z(e)));
238
- return Math.abs(me(z(16777215), z(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 = Le();
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 yn() {
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 A((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 hn(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 Be() {
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 vn(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[A(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 kn() {
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] : Be();
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 = b(() => {
275
- var o;
276
- return (o = t.value) == null ? void 0 : o[e._as ?? n];
274
+ const a = _(() => {
275
+ var c;
276
+ return (c = t.value) == null ? void 0 : c[e._as ?? n];
277
277
  }), r = new Proxy(e, {
278
- get(o, f) {
279
- var g, w, F, _, E, P, W;
280
- const v = Reflect.get(o, f);
281
- return f === "class" || f === "style" ? [(g = a.value) == null ? void 0 : g[f], v].filter((c) => c != null) : typeof f == "string" && !vn(s.vnode, f) ? ((w = a.value) == null ? void 0 : w[f]) !== void 0 ? (F = a.value) == null ? void 0 : F[f] : ((E = (_ = t.value) == null ? void 0 : _.global) == null ? void 0 : E[f]) !== void 0 ? (W = (P = t.value) == null ? void 0 : P.global) == null ? void 0 : W[f] : v : v;
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 = Te();
284
- be(() => {
283
+ }), i = Ye();
284
+ Be(() => {
285
285
  if (a.value) {
286
- const o = Object.entries(a.value).filter((f) => {
287
- let [v] = f;
288
- return v.startsWith(v[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
- function y() {
295
- const o = hn(Q, s);
296
- _e(Q, b(() => u.value ? pe((o == null ? void 0 : o.value) ?? {}, u.value) : o == null ? void 0 : o.value));
294
+ function g() {
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
299
  props: r,
300
- provideSubDefaults: y
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 = I(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 je(s, n);
311
- }, e.props._as = String, e.setup = function(s, a) {
312
- const r = Be();
313
- if (!r.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,
316
- provideSubDefaults: y
317
- } = kn(s, s._as ?? e.name, r), o = e._setup(u, a);
318
- return y(), o;
315
+ props: i,
316
+ provideSubDefaults: g
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 Ie() {
323
+ function Ue() {
324
324
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
325
- return (n) => (e ? X : M)(n);
325
+ return (n) => (e ? ee : B)(n);
326
326
  }
327
- function Cn(e) {
328
- const n = H("useRender");
327
+ function bn(e) {
328
+ const n = Y("useRender");
329
329
  n.render = e;
330
330
  }
331
- const he = Symbol.for("vuetify:theme"), Vn = I({
331
+ const pe = Symbol.for("vuetify:theme"), Sn = L({
332
332
  theme: String
333
333
  }, "theme");
334
- function bn(e) {
335
- H("provideTheme");
336
- const n = j(he, 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 = b(() => e.theme ?? n.name.value), s = b(() => n.themes.value[t.value]), a = b(() => n.isDisabled ? void 0 : `v-theme--${t.value}`), r = {
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 _e(he, r), r;
344
+ return $e(pe, r), r;
345
345
  }
346
- const _n = I({
346
+ const Bn = L({
347
347
  tag: {
348
348
  type: String,
349
349
  default: "div"
350
350
  }
351
351
  }, "tag");
352
- function xn(e) {
353
- return we(() => {
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 && cn(e.value.background)) {
358
- const s = z(e.value.background);
359
- if (s.a == null || s.a === 1) {
360
- const a = gn(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 pn(e, n) {
373
- const t = b(() => ({
374
- text: ze(e) ? e.value : null
372
+ function In(e, n) {
373
+ const t = _(() => ({
374
+ text: Ie(e) ? e.value : null
375
375
  })), {
376
- colorClasses: s,
376
+ colorClasses: l,
377
377
  colorStyles: a
378
- } = xn(t);
378
+ } = $n(t);
379
379
  return {
380
- textColorClasses: s,
380
+ textColorClasses: l,
381
381
  textColorStyles: a
382
382
  };
383
383
  }
384
- const $e = [String, Function, Object, Array], Sn = Symbol.for("vuetify:icons"), Y = I({
384
+ const Ee = [String, Function, Object, Array], Mn = Symbol.for("vuetify:icons"), ne = L({
385
385
  icon: {
386
- type: $e
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"), ve = Ie()({
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
- }), wn = X({
410
+ }), Fn = 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, xe(t, {
418
+ return () => C(e.tag, Me(t, {
419
419
  style: null
420
420
  }), {
421
421
  default: () => [C("svg", {
@@ -424,167 +424,325 @@ const $e = [String, Function, Object, Array], Sn = 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 Fn = (e) => {
457
- const n = j(Sn);
456
+ const Dn = (e) => {
457
+ const n = re(Mn);
458
458
  if (!n) throw new Error("Missing Vuetify Icons provide!");
459
459
  return {
460
- iconData: b(() => {
461
- var o;
462
- const s = q(e);
463
- if (!s) return {
464
- component: ve
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: wn,
469
+ component: Fn,
470
470
  icon: a
471
471
  };
472
472
  if (typeof a != "string")
473
473
  return {
474
- component: ve,
474
+ component: xe,
475
475
  icon: a
476
476
  };
477
- const r = Object.keys(n.sets).find((f) => typeof a == "string" && a.startsWith(`${f}:`)), u = r ? a.slice(r.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
479
  component: n.sets[r ?? n.defaultSet].component,
480
- icon: u
480
+ icon: i
481
481
  };
482
482
  })
483
483
  };
484
- }, Bn = ["x-small", "small", "default", "large", "x-large"], In = I({
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 $n(e) {
491
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : yn();
492
- return we(() => {
493
- let t, s;
494
- return nn(Bn, e.size) ? t = `${n}--size-${e.size}` : e.size && (s = {
495
- width: O(e.size),
496
- height: O(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 Dn = I({
503
+ const Ln = L({
504
504
  color: String,
505
505
  disabled: Boolean,
506
506
  start: Boolean,
507
507
  end: Boolean,
508
- icon: $e,
509
- ...Qe(),
510
- ...In(),
511
- ..._n({
508
+ icon: Ee,
509
+ ...ln(),
510
+ ...Tn(),
511
+ ...Bn({
512
512
  tag: "i"
513
513
  }),
514
- ...Vn()
515
- }, "VIcon"), An = Ie()({
514
+ ...Sn()
515
+ }, "VIcon"), zn = Ue()({
516
516
  name: "VIcon",
517
- props: Dn(),
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 = T(), {
523
+ const a = I(), {
524
524
  themeClasses: r
525
- } = bn(e), {
526
- iconData: u
527
- } = Fn(b(() => a.value || e.icon)), {
528
- sizeClasses: y
529
- } = $n(e), {
530
- textColorClasses: o,
531
- textColorStyles: f
532
- } = pn(Oe(e, "color"));
533
- return Cn(() => {
534
- var w, F;
535
- const v = (w = s.default) == null ? void 0 : w.call(s);
536
- v && (a.value = (F = Se(v).filter((_) => _.type === Re && _.children && typeof _.children == "string")[0]) == null ? void 0 : F.children);
537
- const g = !!(t.onClick || t.onClickOnce);
538
- return C(u.value.component, {
525
+ } = wn(e), {
526
+ iconData: i
527
+ } = Dn(_(() => a.value || e.icon)), {
528
+ sizeClasses: g
529
+ } = Pn(e), {
530
+ textColorClasses: c,
531
+ textColorStyles: o
532
+ } = In(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
+ const y = !!(t.onClick || t.onClickOnce);
538
+ return C(i.value.component, {
539
539
  tag: e.tag,
540
- icon: u.value.icon,
541
- class: ["v-icon", "notranslate", r.value, y.value, o.value, {
542
- "v-icon--clickable": g,
540
+ icon: i.value.icon,
541
+ class: ["v-icon", "notranslate", r.value, g.value, c.value, {
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
- style: [y.value ? void 0 : {
548
- fontSize: O(e.size),
549
- height: O(e.size),
550
- width: O(e.size)
551
- }, f.value, e.style],
552
- role: g ? "button" : void 0,
553
- "aria-hidden": !g,
554
- tabindex: g ? e.disabled ? -1 : 0 : void 0
547
+ style: [g.value ? void 0 : {
548
+ fontSize: U(e.size),
549
+ height: U(e.size),
550
+ width: U(e.size)
551
+ }, o.value, e.style],
552
+ role: y ? "button" : void 0,
553
+ "aria-hidden": !y,
554
+ tabindex: y ? e.disabled ? -1 : 0 : void 0
555
555
  }, {
556
- default: () => [v]
556
+ default: () => [f]
557
557
  });
558
558
  }), {};
559
559
  }
560
- }), Mn = (e, n) => {
561
- const t = e.__vccOpts || e;
562
- for (const [s, a] of n)
563
- t[s] = a;
564
- return t;
565
- }, Pn = {};
566
- function Ln(e, n) {
567
- const t = p("v-btn"), s = p("v-color-picker"), a = p("v-menu");
568
- return S(), B(a, { "close-on-content-click": !1 }, {
569
- activator: ne(({ props: r }) => [
570
- C(t, xe(r, {
571
- density: "comfortable",
572
- color: "#00000000",
573
- block: ""
574
- }), null, 16)
575
- ]),
576
- default: ne(() => [
577
- C(s, {
578
- "show-swatches": "",
579
- "swatches-max-height": "150px"
580
- })
581
- ]),
582
- _: 1
583
- });
584
- }
585
- const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
586
- __name: "index",
587
- 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 = I(!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: Fe(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 = I(0), l = I(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(), M(V, {
613
+ modelValue: T(c),
614
+ "onUpdate:modelValue": f[0] || (f[0] = ($) => Ie(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(), M(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 = I(!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: Fe(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(), M(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(), M(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 = I("hexa");
713
+ return (a, r) => {
714
+ const i = p("v-btn"), g = p("v-color-picker"), c = p("v-menu");
715
+ return x(), M(c, { "close-on-content-click": !1 }, {
716
+ activator: P(({ props: o }) => [
717
+ C(i, Me(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({
588
746
  min: { default: () => -1 / 0 },
589
747
  max: { default: () => 1 / 0 },
590
748
  precision: { default: 4 },
@@ -596,12 +754,12 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
596
754
  }),
597
755
  emits: ["update:modelValue"],
598
756
  setup(e) {
599
- const n = ee(e, "modelValue");
600
- return (t, s) => {
601
- const a = p("v-number-input");
602
- return S(), B(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(), M(a, {
603
761
  modelValue: n.value,
604
- "onUpdate:modelValue": s[0] || (s[0] = (r) => n.value = r),
762
+ "onUpdate:modelValue": l[0] || (l[0] = (i) => n.value = i),
605
763
  density: "compact",
606
764
  "control-variant": "stacked",
607
765
  min: t.min,
@@ -611,12 +769,19 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
611
769
  "hide-details": "",
612
770
  "single-line": "",
613
771
  readonly: t.readonly
614
- }, 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
+ ]);
615
780
  };
616
781
  }
617
- }), On = /* @__PURE__ */ M({
618
- __name: "index",
619
- props: /* @__PURE__ */ Z({
782
+ }), Un = /* @__PURE__ */ B({
783
+ __name: "select",
784
+ props: /* @__PURE__ */ N({
620
785
  readonly: { type: Boolean, default: !1 },
621
786
  items: {}
622
787
  }, {
@@ -625,91 +790,85 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
625
790
  }),
626
791
  emits: ["update:modelValue"],
627
792
  setup(e) {
628
- const n = ee(e, "modelValue");
629
- return (t, s) => {
630
- const a = p("v-select");
631
- return S(), B(a, {
793
+ const n = X(e, "modelValue");
794
+ return (t, l) => {
795
+ const a = p("v-select"), r = G("ripple");
796
+ return q((x(), M(a, {
632
797
  modelValue: n.value,
633
- "onUpdate:modelValue": s[0] || (s[0] = (r) => n.value = r),
798
+ "onUpdate:modelValue": l[0] || (l[0] = (i) => n.value = i),
634
799
  density: "compact",
635
800
  items: t.items,
636
801
  "hide-details": "",
637
802
  "single-line": "",
638
803
  readonly: t.readonly
639
- }, 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
+ ]);
640
812
  };
641
813
  }
642
- }), ke = /* @__PURE__ */ M({
643
- __name: "index",
644
- props: /* @__PURE__ */ Z({
814
+ }), Se = /* @__PURE__ */ B({
815
+ __name: "strInput",
816
+ props: /* @__PURE__ */ N({
645
817
  readonly: { type: Boolean, default: !1 },
646
818
  hasDelete: { type: Boolean, default: !1 }
647
819
  }, {
648
820
  modelValue: {},
649
821
  modelModifiers: {}
650
822
  }),
651
- emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
823
+ emits: /* @__PURE__ */ N(["delete"], ["update:modelValue"]),
652
824
  setup(e, { emit: n }) {
653
- const t = ee(e, "modelValue"), s = n;
825
+ const t = X(e, "modelValue"), l = n;
654
826
  return (a, r) => {
655
- const u = p("v-text-field");
656
- return S(), B(u, {
827
+ const i = p("v-text-field"), g = G("ripple");
828
+ return q((x(), M(i, {
657
829
  modelValue: t.value,
658
- "onUpdate:modelValue": r[0] || (r[0] = (y) => t.value = y),
830
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => t.value = c),
659
831
  density: "compact",
660
- "append-inner-icon": a.hasDelete ? q(Ke) : "",
832
+ "append-inner-icon": a.hasDelete ? T(Pe) : "",
661
833
  "hide-details": "",
662
834
  "single-line": "",
663
835
  readonly: a.readonly,
664
- "onClick:appendInner": r[1] || (r[1] = (y) => s("delete"))
665
- }, 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
+ ]);
666
845
  };
667
846
  }
668
- }), Ce = /* @__PURE__ */ M({
669
- __name: "index",
670
- props: {
671
- title: {},
672
- collapse: { type: Boolean },
673
- hasCreate: { type: Boolean, default: !1 },
674
- hasDelete: { type: Boolean, default: !1 },
675
- index: { default: 0 }
676
- },
677
- emits: ["collapse", "create", "delete"],
678
- setup(e, { emit: n }) {
679
- const t = n, s = b(() => ({
680
- height: "36px"
681
- }));
682
- return (a, r) => {
683
- const u = p("v-icon"), y = p("v-spacer"), o = Ne("ripple");
684
- return He((S(), Ee("div", {
685
- class: "d-flex align-center",
686
- style: We(s.value),
687
- onClick: r[2] || (r[2] = (f) => t("collapse", !a.collapse))
688
- }, [
689
- C(u, {
690
- class: "mr-1",
691
- icon: a.collapse ? q(Ye) : q(Xe)
692
- }, null, 8, ["icon"]),
693
- Ue("span", null, Ge(a.title), 1),
694
- C(y),
695
- a.hasCreate ? (S(), B(u, {
696
- key: 0,
697
- class: "ml-3",
698
- icon: "$plus",
699
- onClick: r[0] || (r[0] = te((f) => t("create"), ["stop"]))
700
- })) : se("", !0),
701
- a.hasDelete ? (S(), B(u, {
702
- key: 1,
703
- class: "ml-3",
704
- icon: "$sub",
705
- onClick: r[1] || (r[1] = te((f) => t("delete", a.index), ["stop"]))
706
- })) : se("", !0)
707
- ], 4)), [
708
- [o]
709
- ]);
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(), M(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"]);
710
869
  };
711
870
  }
712
- }), Rn = /* @__PURE__ */ M({
871
+ }), Wn = /* @__PURE__ */ B({
713
872
  __name: "index",
714
873
  props: {
715
874
  unique: {},
@@ -718,32 +877,32 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
718
877
  },
719
878
  emits: ["change"],
720
879
  setup(e, { emit: n }) {
721
- const { t } = qe(), { backgroundColor2: s } = Ze(), a = e, r = n, u = T("20px"), y = T("56px"), o = T("10px"), f = T("250px"), v = Ve({});
722
- function g(c, l, i, d) {
723
- return l.keyFlag || (c !== "" && (c += "."), c += l.key), l.children ? l.array ? w(c, l, i, d) : F(c, l, i, d) : l.array ? _(c, l, i) : E(c, l, i);
880
+ const { t } = Ae(), { backgroundColor1: l, backgroundColor2: a } = ue(), r = e, i = n, g = I("20px"), c = I("56px"), o = I("200px"), f = we({});
881
+ function y(d, s, u, m) {
882
+ return 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);
724
883
  }
725
- function w(c, l, i, d) {
726
- i[l.key] instanceof Array || (i[l.key] = [], r("change", c, i[l.key]));
727
- const V = k(Ce, {
728
- title: t(l.name),
729
- collapse: !!d.collapse,
730
- onCollapse: (m) => {
731
- d.collapse = m;
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;
732
891
  },
733
892
  onCreate: () => {
734
- i[l.key].push({}), r("change", c, i[l.key]);
893
+ u[s.key].push({}), i("change", d, u[s.key]);
735
894
  }
736
- }), h = k(
895
+ }), v = k(
737
896
  "div",
738
897
  {
739
898
  style: {
740
- marginLeft: u.value
899
+ paddingLeft: g.value
741
900
  }
742
901
  },
743
902
  (() => {
744
- d[l.key] instanceof Array || (d[l.key] = []);
745
- for (let m = 0; m < i[l.key].length; m++)
746
- typeof d[l.key][m] != "object" && (d[l.key][m] = {
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] = {
747
906
  collapse: !0
748
907
  });
749
908
  return [];
@@ -753,91 +912,91 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
753
912
  "div",
754
913
  {
755
914
  style: {
756
- background: s.value,
915
+ background: a.value,
757
916
  marginBottom: "1px"
758
917
  }
759
918
  },
760
919
  (() => {
761
- const m = [];
762
- return m.push(V), d.collapse || m.push(h), m;
920
+ const h = [];
921
+ return h.push(b), m.collapse || h.push(v), h;
763
922
  })()
764
923
  );
765
924
  }
766
- function F(c, l, i, d) {
767
- const V = k(Ce, {
768
- title: t(l.name),
769
- collapse: !!d.collapse,
770
- onCollapse: (m) => {
771
- d.collapse = m;
925
+ function w(d, s, u, m) {
926
+ const b = k(be, {
927
+ title: t(s.name),
928
+ collapse: !!m.collapse,
929
+ onCollapse: (h) => {
930
+ m.collapse = h;
772
931
  }
773
- }), h = k(
932
+ }), v = k(
774
933
  "div",
775
934
  {
776
935
  style: {
777
- marginLeft: u.value
936
+ background: l.value,
937
+ paddingLeft: g.value
778
938
  }
779
939
  },
780
940
  (() => {
781
- var $;
782
- const m = [];
783
- return ($ = l.children) == null || $.forEach((x) => {
784
- typeof d[x.key] != "object" && (d[x.key] = {
941
+ var z;
942
+ const h = [];
943
+ return (z = s.children) == null || z.forEach((F) => {
944
+ typeof m[F.key] != "object" && (m[F.key] = {
785
945
  collapse: !0
786
946
  });
787
- const De = g(
788
- c,
789
- x,
790
- l.keyFlag ? i : (typeof i[l.key] != "object" && (i[l.key] = {}, r("change", c, i[l.key])), i[l.key]),
791
- d[x.key]
947
+ const We = y(
948
+ d,
949
+ F,
950
+ (typeof u[s.key] != "object" && (u[s.key] = {}, i("change", d, u[s.key])), u[s.key]),
951
+ m[F.key]
792
952
  );
793
- m.push(De);
794
- }), m;
953
+ h.push(We);
954
+ }), h;
795
955
  })()
796
956
  );
797
957
  return k(
798
958
  "div",
799
959
  {
800
960
  style: {
801
- background: s.value,
802
961
  marginBottom: "1px"
803
962
  }
804
963
  },
805
964
  (() => {
806
- const m = [];
807
- return m.push(V), d.collapse || m.push(h), m;
965
+ const h = [];
966
+ return h.push(b), m.collapse || h.push(v), h;
808
967
  })()
809
968
  );
810
969
  }
811
- function _(c, l, i) {
812
- i[l.key] instanceof Array || (i[l.key] = L(l), r("change", c, i[l.key]));
813
- let d = () => [];
814
- return l.ui === "strInput" ? d = () => {
815
- const V = [];
816
- for (let m = 0; m < i[l.key].length; m++) {
817
- const $ = k(
970
+ function V(d, s, u) {
971
+ u[s.key] instanceof Array || (u[s.key] = A(s), i("change", d, u[s.key]));
972
+ let m = () => [];
973
+ return s.ui === "strInput" ? m = () => {
974
+ const b = [];
975
+ for (let h = 0; h < u[s.key].length; h++) {
976
+ const z = k(
818
977
  "div",
819
978
  {
820
979
  class: "d-flex align-center justify-center",
821
980
  style: {
822
- height: y.value
981
+ height: c.value
823
982
  }
824
983
  },
825
984
  [
826
- k(ke, {
827
- modelValue: i[l.key][m],
828
- "onUpdate:modelValue": (x) => {
829
- i[l.key][m] = x, r("change", c, i[l.key]);
985
+ k(Se, {
986
+ modelValue: u[s.key][h],
987
+ "onUpdate:modelValue": (F) => {
988
+ u[s.key][h] = F, i("change", d, u[s.key]);
830
989
  },
831
990
  hasDelete: !0,
832
991
  onDelete: () => {
833
- i[l.key].splice(m, 1), r("change", c, i[l.key]);
992
+ u[s.key].splice(h, 1), i("change", d, u[s.key]);
834
993
  }
835
994
  })
836
995
  ]
837
996
  );
838
- V.push($);
997
+ b.push(z);
839
998
  }
840
- const h = k(
999
+ const v = k(
841
1000
  "div",
842
1001
  {
843
1002
  class: "d-flex align-center justify-center",
@@ -851,85 +1010,96 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
851
1010
  border: "thin dashed #bdbdbd"
852
1011
  },
853
1012
  onClick: () => {
854
- i[l.key].push(""), r("change", c, i[l.key]);
1013
+ u[s.key].push(""), i("change", d, u[s.key]);
855
1014
  }
856
1015
  },
857
- [k(An, { icon: Je })]
1016
+ [k(zn, { icon: Le })]
858
1017
  );
859
- return V.push(h), V;
860
- } : console.assert(!1, "invalid prop ui", l.ui), P(t(l.name), d());
1018
+ return b.push(v), b;
1019
+ } : console.assert(!1, "invalid prop ui", s.ui), D(t(s.name), m());
861
1020
  }
862
- function E(c, l, i) {
863
- let d = () => [];
864
- return l.ui === "void" ? i[l.key] === void 0 && (console.assert(l.default !== void 0), i[l.key] = L(l), r("change", c, i[l.key])) : l.ui === "strInput" ? d = () => [k(ke, {
865
- modelValue: l.static ? l.value : (typeof i[l.key] != "string" && (i[l.key] = L(l), r("change", c, i[l.key])), i[l.key]),
866
- "onUpdate:modelValue": (h) => {
867
- l.static || h !== i[l.key] && (i[l.key] = h, r("change", c, h));
1021
+ function $(d, s, u) {
1022
+ let m = () => [];
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]),
1031
+ "onUpdate:modelValue": (v) => {
1032
+ v !== u[s.key] && (u[s.key] = v, i("change", d, v));
868
1033
  },
869
- readonly: l.static || l.readonly
870
- })] : l.ui === "numInput" ? d = () => [k(zn, {
871
- modelValue: (typeof i[l.key] != "number" && (i[l.key] = L(l), r("change", c, i[l.key])), i[l.key]),
872
- "onUpdate:modelValue": (h) => {
873
- h !== i[l.key] && (i[l.key] = h, r("change", c, h));
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]),
1037
+ "onUpdate:modelValue": (v) => {
1038
+ v !== u[s.key] && (u[s.key] = v, i("change", d, v));
874
1039
  },
875
- readonly: l.readonly
876
- })] : l.ui === "select" ? d = () => [k(On, {
877
- modelValue: (typeof i[l.key] != "string" && (i[l.key] = L(l), r("change", c, i[l.key])), i[l.key]),
878
- "onUpdate:modelValue": (h) => {
879
- h !== i[l.key] && (i[l.key] = h, r("change", c, h));
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]),
1043
+ "onUpdate:modelValue": (v) => {
1044
+ v !== u[s.key] && (u[s.key] = v, i("change", d, v));
880
1045
  },
881
1046
  items: (() => {
882
- var m;
883
- const h = [];
884
- return (m = l.items) == null || m.forEach(({ title: $, value: x }) => {
885
- h.push({
886
- title: t($),
887
- value: x
1047
+ var h;
1048
+ const v = [];
1049
+ return (h = s.items) == null || h.forEach(({ title: z, value: F }) => {
1050
+ v.push({
1051
+ title: t(z),
1052
+ value: F
888
1053
  });
889
- }), h;
1054
+ }), v;
890
1055
  })(),
891
- readonly: l.readonly
892
- })] : l.ui === "colorPicker" ? d = () => [k(Tn)] : console.assert(!1, "invalid prop ui", l.ui), P(t(l.name), d());
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());
893
1064
  }
894
- function P(c, l) {
1065
+ function D(d, s) {
895
1066
  return k(
896
- "div",
1067
+ On,
897
1068
  {
898
- class: "d-flex justify-space-between align-center",
899
- style: {
900
- minHeight: y.value,
901
- marginRight: o.value
902
- }
1069
+ minHeight: c.value
903
1070
  },
904
- [
905
- k("span", { style: { marginLeft: "4px" }, innerHTML: c }),
906
- k("div", { style: { width: f.value } }, l)
1071
+ () => [
1072
+ k("span", { class: "ml-1", innerHTML: d }),
1073
+ k("div", { style: { width: o.value } }, s)
907
1074
  ]
908
1075
  );
909
1076
  }
910
- const W = () => k(
1077
+ const Z = () => k(
911
1078
  "div",
912
1079
  {
913
1080
  class: "text-body-2"
914
1081
  },
915
1082
  (() => {
916
- const c = [];
917
- if (a.unique && a.config && a.object) {
918
- v[a.unique] || (v[a.unique] = {});
919
- const l = v[a.unique];
920
- a.config.forEach((i) => {
921
- const d = g("", i, a.object, l);
922
- c.push(d);
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);
923
1090
  });
924
1091
  }
925
- return c;
1092
+ return d;
926
1093
  })()
927
1094
  );
928
- return (c, l) => (S(), B(W));
1095
+ return (d, s) => (x(), j(ae, null, [
1096
+ C(Z),
1097
+ C(Hn)
1098
+ ], 64));
929
1099
  }
930
- }), Nn = (e) => {
931
- e.component("XPropTree", Rn);
932
- }, Gn = { install: Nn };
1100
+ }), Gn = (e) => {
1101
+ e.component("XPropTree", Wn);
1102
+ }, Kn = { install: Gn };
933
1103
  export {
934
- Gn as default
1104
+ Kn as default
935
1105
  };