x-prop-tree 0.3.3 → 0.3.4
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 +106 -107
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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 k, watchEffect as Ce, toRefs as De, warn as Le, getCurrentInstance as Me, inject as Q, shallowRef as Te, provide as ke, defineComponent as M, isRef as ze, createVNode as C, mergeProps as Re, unref as W, ref as I, toRef as Pe, Text as
|
|
2
|
+
import { Fragment as Ae, reactive as ve, computed as k, watchEffect as Ce, toRefs as De, warn as Le, getCurrentInstance as Me, inject as Q, shallowRef as Te, provide as ke, defineComponent as M, isRef as ze, createVNode as C, mergeProps as Re, unref as W, ref as I, toRef as Pe, Text as He, mergeModels as K, useModel as xe, resolveComponent as G, openBlock as p, createElementBlock as be, normalizeStyle as Ve, createBlock as U, resolveDirective as Ne, withDirectives as Oe, createElementVNode as Ee, toDisplayString as We, withModifiers as j, createCommentVNode as ee, h as y } from "vue";
|
|
3
3
|
import { useI18n as Ge } from "vue-i18n";
|
|
4
4
|
import { useColor as Ue } from "x-essential-lib";
|
|
5
|
-
import { getPropDefault as
|
|
5
|
+
import { getPropDefault as N } from "x-runtime-lib";
|
|
6
|
+
var qe = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Ze = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", Ye = "M19,13H5V11H19V13Z", Ke = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
6
7
|
function w(e, t) {
|
|
7
8
|
return (n) => Object.keys(e).reduce((s, a) => {
|
|
8
9
|
const u = typeof e[a] == "object" && e[a] != null && !Array.isArray(e[a]) ? e[a] : {
|
|
@@ -14,7 +15,7 @@ function w(e, t) {
|
|
|
14
15
|
} : s[a] = u, t && !s[a].source && (s[a].source = t), s;
|
|
15
16
|
}, {});
|
|
16
17
|
}
|
|
17
|
-
const
|
|
18
|
+
const Xe = w({
|
|
18
19
|
class: [String, Array, Object],
|
|
19
20
|
style: {
|
|
20
21
|
type: [String, Array, Object],
|
|
@@ -32,7 +33,7 @@ function te(e) {
|
|
|
32
33
|
function Y(e, t) {
|
|
33
34
|
return t.every((n) => e.hasOwnProperty(n));
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function Je(e, t) {
|
|
36
37
|
const n = {}, s = new Set(Object.keys(e));
|
|
37
38
|
for (const a of t)
|
|
38
39
|
s.has(a) && (n[a] = e[a]);
|
|
@@ -42,7 +43,7 @@ function ne(e, t) {
|
|
|
42
43
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "0";
|
|
43
44
|
return e + n.repeat(Math.max(0, t - e.length));
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function Qe(e) {
|
|
46
47
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
47
48
|
const n = [];
|
|
48
49
|
let s = 0;
|
|
@@ -50,7 +51,7 @@ function Ye(e) {
|
|
|
50
51
|
n.push(e.substr(s, t)), s += t;
|
|
51
52
|
return n;
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
+
function Se() {
|
|
54
55
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0;
|
|
55
56
|
const s = {};
|
|
56
57
|
for (const a in e)
|
|
@@ -58,7 +59,7 @@ function Ve() {
|
|
|
58
59
|
for (const a in t) {
|
|
59
60
|
const r = e[a], u = t[a];
|
|
60
61
|
if (te(r) && te(u)) {
|
|
61
|
-
s[a] =
|
|
62
|
+
s[a] = Se(r, u, n);
|
|
62
63
|
continue;
|
|
63
64
|
}
|
|
64
65
|
if (Array.isArray(r) && Array.isArray(u) && n) {
|
|
@@ -80,7 +81,7 @@ function F() {
|
|
|
80
81
|
return F.cache.set(e, t), t;
|
|
81
82
|
}
|
|
82
83
|
F.cache = /* @__PURE__ */ new Map();
|
|
83
|
-
function
|
|
84
|
+
function _e(e) {
|
|
84
85
|
const t = ve({}), n = k(e);
|
|
85
86
|
return Ce(() => {
|
|
86
87
|
for (const s in n.value)
|
|
@@ -89,22 +90,22 @@ function pe(e) {
|
|
|
89
90
|
flush: "sync"
|
|
90
91
|
}), De(t);
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
+
function je(e, t) {
|
|
93
94
|
return e.includes(t);
|
|
94
95
|
}
|
|
95
|
-
const
|
|
96
|
+
const _ = 2.4, se = 0.2126729, ae = 0.7151522, le = 0.072175, et = 0.55, tt = 0.58, nt = 0.57, st = 0.62, O = 0.03, re = 1.45, at = 5e-4, lt = 1.25, rt = 1.25, ie = 0.078, ue = 12.82051282051282, E = 0.06, oe = 1e-3;
|
|
96
97
|
function ce(e, t) {
|
|
97
|
-
const n = (e.r / 255) **
|
|
98
|
+
const n = (e.r / 255) ** _, s = (e.g / 255) ** _, a = (e.b / 255) ** _, r = (t.r / 255) ** _, u = (t.g / 255) ** _, m = (t.b / 255) ** _;
|
|
98
99
|
let o = n * se + s * ae + a * le, f = r * se + u * ae + m * le;
|
|
99
|
-
if (o <=
|
|
100
|
+
if (o <= O && (o += (O - o) ** re), f <= O && (f += (O - f) ** re), Math.abs(f - o) < at)
|
|
100
101
|
return 0;
|
|
101
102
|
let h;
|
|
102
103
|
if (f > o) {
|
|
103
|
-
const g = (f **
|
|
104
|
-
h = g < oe ? 0 : g < ie ? g - g * ue *
|
|
104
|
+
const g = (f ** et - o ** tt) * lt;
|
|
105
|
+
h = g < oe ? 0 : g < ie ? g - g * ue * E : g - E;
|
|
105
106
|
} else {
|
|
106
|
-
const g = (f **
|
|
107
|
-
h = g > -oe ? 0 : g > -ie ? g - g * ue *
|
|
107
|
+
const g = (f ** st - o ** nt) * rt;
|
|
108
|
+
h = g > -oe ? 0 : g > -ie ? g - g * ue * E : g + E;
|
|
108
109
|
}
|
|
109
110
|
return h * 100;
|
|
110
111
|
}
|
|
@@ -114,10 +115,10 @@ function D(e) {
|
|
|
114
115
|
function X(e) {
|
|
115
116
|
return !!e && /^(#|var\(--|(rgb|hsl)a?\()/.test(e);
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
+
function it(e) {
|
|
118
119
|
return X(e) && !/^((rgb|hsl)a?\()?var\(--/.test(e);
|
|
119
120
|
}
|
|
120
|
-
const fe = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,
|
|
121
|
+
const fe = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, ut = {
|
|
121
122
|
rgb: (e, t, n, s) => ({
|
|
122
123
|
r: e,
|
|
123
124
|
g: t,
|
|
@@ -169,17 +170,17 @@ function $(e) {
|
|
|
169
170
|
fn: n,
|
|
170
171
|
values: s
|
|
171
172
|
} = t, a = s.split(/,\s*/).map((r) => r.endsWith("%") && ["hsl", "hsla", "hsv", "hsva"].includes(n) ? parseFloat(r) / 100 : parseFloat(r));
|
|
172
|
-
return
|
|
173
|
+
return ut[n](...a);
|
|
173
174
|
} else if (typeof e == "string") {
|
|
174
175
|
let t = e.startsWith("#") ? e.slice(1) : e;
|
|
175
176
|
[3, 4].includes(t.length) ? t = t.split("").map((s) => s + s).join("") : [6, 8].includes(t.length) || D(`'${e}' is not a valid hex(a) color`);
|
|
176
177
|
const n = parseInt(t, 16);
|
|
177
|
-
return (isNaN(n) || n < 0 || n > 4294967295) && D(`'${e}' is not a valid hex(a) color`),
|
|
178
|
+
return (isNaN(n) || n < 0 || n > 4294967295) && D(`'${e}' is not a valid hex(a) color`), ot(t);
|
|
178
179
|
} else if (typeof e == "object") {
|
|
179
180
|
if (Y(e, ["r", "g", "b"]))
|
|
180
181
|
return e;
|
|
181
182
|
if (Y(e, ["h", "s", "l"]))
|
|
182
|
-
return L(
|
|
183
|
+
return L(pe(e));
|
|
183
184
|
if (Y(e, ["h", "s", "v"]))
|
|
184
185
|
return L(e);
|
|
185
186
|
}
|
|
@@ -204,9 +205,9 @@ function L(e) {
|
|
|
204
205
|
};
|
|
205
206
|
}
|
|
206
207
|
function de(e) {
|
|
207
|
-
return L(
|
|
208
|
+
return L(pe(e));
|
|
208
209
|
}
|
|
209
|
-
function
|
|
210
|
+
function pe(e) {
|
|
210
211
|
const {
|
|
211
212
|
h: t,
|
|
212
213
|
s: n,
|
|
@@ -220,9 +221,9 @@ function _e(e) {
|
|
|
220
221
|
a
|
|
221
222
|
};
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
-
e =
|
|
225
|
-
let [t, n, s, a] =
|
|
224
|
+
function ot(e) {
|
|
225
|
+
e = ct(e);
|
|
226
|
+
let [t, n, s, a] = Qe(e, 2).map((r) => parseInt(r, 16));
|
|
226
227
|
return a = a === void 0 ? a : a / 255, {
|
|
227
228
|
r: t,
|
|
228
229
|
g: n,
|
|
@@ -230,10 +231,10 @@ function lt(e) {
|
|
|
230
231
|
a
|
|
231
232
|
};
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
+
function ct(e) {
|
|
234
235
|
return e.startsWith("#") && (e = e.slice(1)), e = e.replace(/([^0-9a-f])/gi, "F"), (e.length === 3 || e.length === 4) && (e = e.split("").map((t) => t + t).join("")), e.length !== 6 && (e = ne(ne(e, 6), 8, "F")), e;
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
+
function ft(e) {
|
|
237
238
|
const t = Math.abs(ce($(0), $(e)));
|
|
238
239
|
return Math.abs(ce($(16777215), $(e))) > Math.min(t, 50) ? "#fff" : "#000";
|
|
239
240
|
}
|
|
@@ -243,12 +244,12 @@ function T(e, t) {
|
|
|
243
244
|
throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);
|
|
244
245
|
return n;
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
+
function dt() {
|
|
247
248
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "composables";
|
|
248
249
|
const t = T(e).type;
|
|
249
250
|
return F((t == null ? void 0 : t.aliasName) || (t == null ? void 0 : t.name));
|
|
250
251
|
}
|
|
251
|
-
function
|
|
252
|
+
function mt(e) {
|
|
252
253
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : T("injectSelf");
|
|
253
254
|
const {
|
|
254
255
|
provides: n
|
|
@@ -263,11 +264,11 @@ function Fe() {
|
|
|
263
264
|
throw new Error("[Vuetify] Could not find defaults instance");
|
|
264
265
|
return e;
|
|
265
266
|
}
|
|
266
|
-
function
|
|
267
|
+
function gt(e, t) {
|
|
267
268
|
var n, s;
|
|
268
269
|
return typeof ((n = e.props) == null ? void 0 : n[t]) < "u" || typeof ((s = e.props) == null ? void 0 : s[F(t)]) < "u";
|
|
269
270
|
}
|
|
270
|
-
function
|
|
271
|
+
function yt() {
|
|
271
272
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Fe();
|
|
272
273
|
const s = T("useDefaults");
|
|
273
274
|
if (t = t ?? s.type.name ?? s.type.__name, !t)
|
|
@@ -277,9 +278,9 @@ function ft() {
|
|
|
277
278
|
return (o = n.value) == null ? void 0 : o[e._as ?? t];
|
|
278
279
|
}), r = new Proxy(e, {
|
|
279
280
|
get(o, f) {
|
|
280
|
-
var g,
|
|
281
|
+
var g, V, S, b, z, R, d;
|
|
281
282
|
const h = Reflect.get(o, f);
|
|
282
|
-
return f === "class" || f === "style" ? [(g = a.value) == null ? void 0 : g[f], h].filter((l) => l != null) : typeof f == "string" && !
|
|
283
|
+
return f === "class" || f === "style" ? [(g = a.value) == null ? void 0 : g[f], h].filter((l) => l != null) : typeof f == "string" && !gt(s.vnode, f) ? ((V = a.value) == null ? void 0 : V[f]) !== void 0 ? (S = a.value) == null ? void 0 : S[f] : ((z = (b = n.value) == null ? void 0 : b.global) == null ? void 0 : z[f]) !== void 0 ? (d = (R = n.value) == null ? void 0 : R.global) == null ? void 0 : d[f] : h : h;
|
|
283
284
|
}
|
|
284
285
|
}), u = Te();
|
|
285
286
|
Ce(() => {
|
|
@@ -293,8 +294,8 @@ function ft() {
|
|
|
293
294
|
u.value = void 0;
|
|
294
295
|
});
|
|
295
296
|
function m() {
|
|
296
|
-
const o =
|
|
297
|
-
ke(J, k(() => u.value ?
|
|
297
|
+
const o = mt(J, s);
|
|
298
|
+
ke(J, k(() => u.value ? Se((o == null ? void 0 : o.value) ?? {}, u.value) : o == null ? void 0 : o.value));
|
|
298
299
|
}
|
|
299
300
|
return {
|
|
300
301
|
props: r,
|
|
@@ -308,7 +309,7 @@ function q(e) {
|
|
|
308
309
|
e.props = w(e.props ?? {}, e.name)();
|
|
309
310
|
const t = Object.keys(e.props).filter((n) => n !== "class" && n !== "style");
|
|
310
311
|
e.filterProps = function(s) {
|
|
311
|
-
return
|
|
312
|
+
return Je(s, t);
|
|
312
313
|
}, e.props._as = String, e.setup = function(s, a) {
|
|
313
314
|
const r = Fe();
|
|
314
315
|
if (!r.value)
|
|
@@ -316,7 +317,7 @@ function q(e) {
|
|
|
316
317
|
const {
|
|
317
318
|
props: u,
|
|
318
319
|
provideSubDefaults: m
|
|
319
|
-
} =
|
|
320
|
+
} = yt(s, s._as ?? e.name, r), o = e._setup(u, a);
|
|
320
321
|
return m(), o;
|
|
321
322
|
};
|
|
322
323
|
}
|
|
@@ -326,14 +327,14 @@ function Be() {
|
|
|
326
327
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
327
328
|
return (t) => (e ? q : M)(t);
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function ht(e) {
|
|
330
331
|
const t = T("useRender");
|
|
331
332
|
t.render = e;
|
|
332
333
|
}
|
|
333
|
-
const me = Symbol.for("vuetify:theme"),
|
|
334
|
+
const me = Symbol.for("vuetify:theme"), vt = w({
|
|
334
335
|
theme: String
|
|
335
336
|
}, "theme");
|
|
336
|
-
function
|
|
337
|
+
function Ct(e) {
|
|
337
338
|
T("provideTheme");
|
|
338
339
|
const t = Q(me, null);
|
|
339
340
|
if (!t)
|
|
@@ -346,21 +347,21 @@ function gt(e) {
|
|
|
346
347
|
};
|
|
347
348
|
return ke(me, r), r;
|
|
348
349
|
}
|
|
349
|
-
const
|
|
350
|
+
const kt = w({
|
|
350
351
|
tag: {
|
|
351
352
|
type: String,
|
|
352
353
|
default: "div"
|
|
353
354
|
}
|
|
354
355
|
}, "tag");
|
|
355
|
-
function
|
|
356
|
-
return
|
|
356
|
+
function xt(e) {
|
|
357
|
+
return _e(() => {
|
|
357
358
|
const t = [], n = {};
|
|
358
359
|
if (e.value.background)
|
|
359
360
|
if (X(e.value.background)) {
|
|
360
|
-
if (n.backgroundColor = e.value.background, !e.value.text &&
|
|
361
|
+
if (n.backgroundColor = e.value.background, !e.value.text && it(e.value.background)) {
|
|
361
362
|
const s = $(e.value.background);
|
|
362
363
|
if (s.a == null || s.a === 1) {
|
|
363
|
-
const a =
|
|
364
|
+
const a = ft(s);
|
|
364
365
|
n.color = a, n.caretColor = a;
|
|
365
366
|
}
|
|
366
367
|
}
|
|
@@ -372,19 +373,19 @@ function ht(e) {
|
|
|
372
373
|
};
|
|
373
374
|
});
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
+
function bt(e, t) {
|
|
376
377
|
const n = k(() => ({
|
|
377
378
|
text: ze(e) ? e.value : null
|
|
378
379
|
})), {
|
|
379
380
|
colorClasses: s,
|
|
380
381
|
colorStyles: a
|
|
381
|
-
} =
|
|
382
|
+
} = xt(n);
|
|
382
383
|
return {
|
|
383
384
|
textColorClasses: s,
|
|
384
385
|
textColorStyles: a
|
|
385
386
|
};
|
|
386
387
|
}
|
|
387
|
-
const Ie = [String, Function, Object, Array],
|
|
388
|
+
const Ie = [String, Function, Object, Array], Vt = Symbol.for("vuetify:icons"), Z = w({
|
|
388
389
|
icon: {
|
|
389
390
|
type: Ie
|
|
390
391
|
},
|
|
@@ -410,7 +411,7 @@ const Ie = [String, Function, Object, Array], Ct = Symbol.for("vuetify:icons"),
|
|
|
410
411
|
});
|
|
411
412
|
};
|
|
412
413
|
}
|
|
413
|
-
}),
|
|
414
|
+
}), St = q({
|
|
414
415
|
name: "VSvgIcon",
|
|
415
416
|
inheritAttrs: !1,
|
|
416
417
|
props: Z(),
|
|
@@ -456,8 +457,8 @@ q({
|
|
|
456
457
|
}, null);
|
|
457
458
|
}
|
|
458
459
|
});
|
|
459
|
-
const
|
|
460
|
-
const t = Q(
|
|
460
|
+
const wt = (e) => {
|
|
461
|
+
const t = Q(Vt);
|
|
461
462
|
if (!t)
|
|
462
463
|
throw new Error("Missing Vuetify Icons provide!");
|
|
463
464
|
return {
|
|
@@ -471,7 +472,7 @@ const xt = (e) => {
|
|
|
471
472
|
let a = s;
|
|
472
473
|
if (typeof a == "string" && (a = a.trim(), a.startsWith("$") && (a = (o = t.aliases) == null ? void 0 : o[a.slice(1)])), a || D(`Could not find aliased icon "${s}"`), Array.isArray(a))
|
|
473
474
|
return {
|
|
474
|
-
component:
|
|
475
|
+
component: St,
|
|
475
476
|
icon: a
|
|
476
477
|
};
|
|
477
478
|
if (typeof a != "string")
|
|
@@ -486,17 +487,17 @@ const xt = (e) => {
|
|
|
486
487
|
};
|
|
487
488
|
})
|
|
488
489
|
};
|
|
489
|
-
},
|
|
490
|
+
}, _t = ["x-small", "small", "default", "large", "x-large"], pt = w({
|
|
490
491
|
size: {
|
|
491
492
|
type: [String, Number],
|
|
492
493
|
default: "default"
|
|
493
494
|
}
|
|
494
495
|
}, "size");
|
|
495
|
-
function
|
|
496
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
497
|
-
return
|
|
496
|
+
function Ft(e) {
|
|
497
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : dt();
|
|
498
|
+
return _e(() => {
|
|
498
499
|
let n, s;
|
|
499
|
-
return
|
|
500
|
+
return je(_t, e.size) ? n = `${t}--size-${e.size}` : e.size && (s = {
|
|
500
501
|
width: A(e.size),
|
|
501
502
|
height: A(e.size)
|
|
502
503
|
}), {
|
|
@@ -505,21 +506,21 @@ function Vt(e) {
|
|
|
505
506
|
};
|
|
506
507
|
});
|
|
507
508
|
}
|
|
508
|
-
const
|
|
509
|
+
const Bt = w({
|
|
509
510
|
color: String,
|
|
510
511
|
disabled: Boolean,
|
|
511
512
|
start: Boolean,
|
|
512
513
|
end: Boolean,
|
|
513
514
|
icon: Ie,
|
|
514
|
-
...
|
|
515
|
-
...
|
|
516
|
-
...
|
|
515
|
+
...Xe(),
|
|
516
|
+
...pt(),
|
|
517
|
+
...kt({
|
|
517
518
|
tag: "i"
|
|
518
519
|
}),
|
|
519
|
-
...
|
|
520
|
-
}, "VIcon"),
|
|
520
|
+
...vt()
|
|
521
|
+
}, "VIcon"), It = Be()({
|
|
521
522
|
name: "VIcon",
|
|
522
|
-
props:
|
|
523
|
+
props: Bt(),
|
|
523
524
|
setup(e, t) {
|
|
524
525
|
let {
|
|
525
526
|
attrs: n,
|
|
@@ -527,18 +528,18 @@ const wt = w({
|
|
|
527
528
|
} = t;
|
|
528
529
|
const a = I(), {
|
|
529
530
|
themeClasses: r
|
|
530
|
-
} =
|
|
531
|
+
} = Ct(e), {
|
|
531
532
|
iconData: u
|
|
532
|
-
} =
|
|
533
|
+
} = wt(k(() => a.value || e.icon)), {
|
|
533
534
|
sizeClasses: m
|
|
534
|
-
} =
|
|
535
|
+
} = Ft(e), {
|
|
535
536
|
textColorClasses: o,
|
|
536
537
|
textColorStyles: f
|
|
537
|
-
} =
|
|
538
|
-
return
|
|
539
|
-
var
|
|
540
|
-
const h = (
|
|
541
|
-
h && (a.value = (
|
|
538
|
+
} = bt(Pe(e, "color"));
|
|
539
|
+
return ht(() => {
|
|
540
|
+
var V, S;
|
|
541
|
+
const h = (V = s.default) == null ? void 0 : V.call(s);
|
|
542
|
+
h && (a.value = (S = we(h).filter((b) => b.type === He && b.children && typeof b.children == "string")[0]) == null ? void 0 : S.children);
|
|
542
543
|
const g = !!(n.onClick || n.onClickOnce);
|
|
543
544
|
return C(u.value.component, {
|
|
544
545
|
tag: e.tag,
|
|
@@ -562,7 +563,7 @@ const wt = w({
|
|
|
562
563
|
});
|
|
563
564
|
}), {};
|
|
564
565
|
}
|
|
565
|
-
}),
|
|
566
|
+
}), $t = /* @__PURE__ */ M({
|
|
566
567
|
__name: "index",
|
|
567
568
|
props: /* @__PURE__ */ K({
|
|
568
569
|
min: { default: -1 / 0 },
|
|
@@ -581,8 +582,8 @@ const wt = w({
|
|
|
581
582
|
}));
|
|
582
583
|
return (a, r) => {
|
|
583
584
|
const u = G("v-text-field");
|
|
584
|
-
return
|
|
585
|
-
style:
|
|
585
|
+
return p(), be("div", {
|
|
586
|
+
style: Ve(s.value)
|
|
586
587
|
}, [
|
|
587
588
|
C(u, {
|
|
588
589
|
"model-value": t.value,
|
|
@@ -595,9 +596,7 @@ const wt = w({
|
|
|
595
596
|
], 4);
|
|
596
597
|
};
|
|
597
598
|
}
|
|
598
|
-
})
|
|
599
|
-
var Ft = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Bt = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", It = "M19,13H5V11H19V13Z";
|
|
600
|
-
const ye = /* @__PURE__ */ M({
|
|
599
|
+
}), ye = /* @__PURE__ */ M({
|
|
601
600
|
__name: "index",
|
|
602
601
|
props: /* @__PURE__ */ K({
|
|
603
602
|
readonly: { type: Boolean, default: !1 },
|
|
@@ -611,13 +610,13 @@ const ye = /* @__PURE__ */ M({
|
|
|
611
610
|
const n = xe(e, "modelValue"), s = e, a = t;
|
|
612
611
|
return (r, u) => {
|
|
613
612
|
const m = G("v-text-field");
|
|
614
|
-
return
|
|
613
|
+
return p(), U(m, {
|
|
615
614
|
modelValue: n.value,
|
|
616
615
|
"onUpdate:modelValue": u[0] || (u[0] = (o) => n.value = o),
|
|
617
616
|
"onClick:appendInner": u[1] || (u[1] = (o) => a("delete")),
|
|
618
617
|
variant: "outlined",
|
|
619
618
|
density: "compact",
|
|
620
|
-
"append-inner-icon": s.hasDelete ? W(
|
|
619
|
+
"append-inner-icon": s.hasDelete ? W(Ye) : "",
|
|
621
620
|
readonly: s.readonly,
|
|
622
621
|
"hide-details": "",
|
|
623
622
|
"single-line": ""
|
|
@@ -639,25 +638,25 @@ const ye = /* @__PURE__ */ M({
|
|
|
639
638
|
height: "36px"
|
|
640
639
|
}));
|
|
641
640
|
return (r, u) => {
|
|
642
|
-
const m = G("v-icon"), o = G("v-spacer"), f =
|
|
643
|
-
return
|
|
641
|
+
const m = G("v-icon"), o = G("v-spacer"), f = Ne("ripple");
|
|
642
|
+
return Oe((p(), be("div", {
|
|
644
643
|
onClick: u[2] || (u[2] = (h) => s("collapse", !n.collapse)),
|
|
645
644
|
class: "d-flex align-center",
|
|
646
|
-
style:
|
|
645
|
+
style: Ve(a.value)
|
|
647
646
|
}, [
|
|
648
647
|
C(m, {
|
|
649
648
|
class: "mr-1",
|
|
650
|
-
icon: n.collapse ? W(
|
|
649
|
+
icon: n.collapse ? W(Ze) : W(qe)
|
|
651
650
|
}, null, 8, ["icon"]),
|
|
652
|
-
|
|
651
|
+
Ee("span", null, We(n.title), 1),
|
|
653
652
|
C(o),
|
|
654
|
-
n.hasCreate ? (
|
|
653
|
+
n.hasCreate ? (p(), U(m, {
|
|
655
654
|
key: 0,
|
|
656
655
|
onClick: u[0] || (u[0] = j((h) => s("create"), ["stop"])),
|
|
657
656
|
class: "ml-3",
|
|
658
657
|
icon: "$plus"
|
|
659
658
|
})) : ee("", !0),
|
|
660
|
-
n.hasDelete ? (
|
|
659
|
+
n.hasDelete ? (p(), U(m, {
|
|
661
660
|
key: 1,
|
|
662
661
|
onClick: u[1] || (u[1] = j((h) => s("delete", n.index), ["stop"])),
|
|
663
662
|
class: "ml-3",
|
|
@@ -668,7 +667,7 @@ const ye = /* @__PURE__ */ M({
|
|
|
668
667
|
]);
|
|
669
668
|
};
|
|
670
669
|
}
|
|
671
|
-
}),
|
|
670
|
+
}), At = /* @__PURE__ */ M({
|
|
672
671
|
__name: "index",
|
|
673
672
|
props: {
|
|
674
673
|
unique: {},
|
|
@@ -679,9 +678,9 @@ const ye = /* @__PURE__ */ M({
|
|
|
679
678
|
setup(e, { emit: t }) {
|
|
680
679
|
const { t: n } = Ge(), { backgroundColor2: s } = Ue(), a = e, r = t, u = I("20px"), m = I("56px"), o = I("10px"), f = I("250px"), h = ve({});
|
|
681
680
|
function g(d, l, i, c) {
|
|
682
|
-
return l.keyFlag || (d += l.key), l.children ? l.array ?
|
|
681
|
+
return l.keyFlag || (d += l.key), l.children ? l.array ? V(d, l, i, c) : S(d, l, i, c) : l.array ? b(d, l, i) : z(d, l, i);
|
|
683
682
|
}
|
|
684
|
-
function
|
|
683
|
+
function V(d, l, i, c) {
|
|
685
684
|
i[l.key] instanceof Array || (i[l.key] = [], r("change", d, i[l.key]));
|
|
686
685
|
const B = y(he, {
|
|
687
686
|
title: n(l.name),
|
|
@@ -722,7 +721,7 @@ const ye = /* @__PURE__ */ M({
|
|
|
722
721
|
})()
|
|
723
722
|
);
|
|
724
723
|
}
|
|
725
|
-
function
|
|
724
|
+
function S(d, l, i, c) {
|
|
726
725
|
const B = y(he, {
|
|
727
726
|
title: n(l.name),
|
|
728
727
|
collapse: !!c.collapse,
|
|
@@ -739,15 +738,15 @@ const ye = /* @__PURE__ */ M({
|
|
|
739
738
|
(() => {
|
|
740
739
|
var P;
|
|
741
740
|
const v = [];
|
|
742
|
-
return (P = l.children) == null || P.forEach((
|
|
743
|
-
typeof c[
|
|
741
|
+
return (P = l.children) == null || P.forEach((H) => {
|
|
742
|
+
typeof c[H.key] != "object" && (c[H.key] = {
|
|
744
743
|
collapse: !0
|
|
745
744
|
});
|
|
746
745
|
const $e = g(
|
|
747
746
|
d,
|
|
748
|
-
|
|
747
|
+
H,
|
|
749
748
|
l.keyFlag ? i : (typeof i[l.key] != "object" && (i[l.key] = {}, r("change", d, i[l.key])), i[l.key]),
|
|
750
|
-
c[
|
|
749
|
+
c[H.key]
|
|
751
750
|
);
|
|
752
751
|
v.push($e);
|
|
753
752
|
}), v;
|
|
@@ -768,7 +767,7 @@ const ye = /* @__PURE__ */ M({
|
|
|
768
767
|
);
|
|
769
768
|
}
|
|
770
769
|
function b(d, l, i) {
|
|
771
|
-
if (i[l.key] instanceof Array || (i[l.key] =
|
|
770
|
+
if (i[l.key] instanceof Array || (i[l.key] = N(l), r("change", d, i[l.key])), l.ui === "strInput")
|
|
772
771
|
return y(
|
|
773
772
|
"div",
|
|
774
773
|
{
|
|
@@ -846,7 +845,7 @@ const ye = /* @__PURE__ */ M({
|
|
|
846
845
|
i[l.key].push(""), r("change", d, i[l.key]);
|
|
847
846
|
}
|
|
848
847
|
},
|
|
849
|
-
[y(
|
|
848
|
+
[y(It, { icon: Ke })]
|
|
850
849
|
);
|
|
851
850
|
return c.push(B), c;
|
|
852
851
|
})()
|
|
@@ -857,7 +856,7 @@ const ye = /* @__PURE__ */ M({
|
|
|
857
856
|
}
|
|
858
857
|
function z(d, l, i) {
|
|
859
858
|
if (l.ui === "void")
|
|
860
|
-
i[l.key] === void 0 && (console.assert(l.default !== void 0), i[l.key] =
|
|
859
|
+
i[l.key] === void 0 && (console.assert(l.default !== void 0), i[l.key] = N(l), r("change", d, i[l.key]));
|
|
861
860
|
else {
|
|
862
861
|
if (l.ui === "strInput")
|
|
863
862
|
return y(
|
|
@@ -889,7 +888,7 @@ const ye = /* @__PURE__ */ M({
|
|
|
889
888
|
},
|
|
890
889
|
[
|
|
891
890
|
y(ye, {
|
|
892
|
-
modelValue: l.static ? l.value : (typeof i[l.key] != "string" && (i[l.key] =
|
|
891
|
+
modelValue: l.static ? l.value : (typeof i[l.key] != "string" && (i[l.key] = N(l), r("change", d, i[l.key])), i[l.key]),
|
|
893
892
|
"onUpdate:modelValue": (c) => {
|
|
894
893
|
l.static || c !== i[l.key] && (i[l.key] = c, r("change", d, c));
|
|
895
894
|
},
|
|
@@ -928,8 +927,8 @@ const ye = /* @__PURE__ */ M({
|
|
|
928
927
|
}
|
|
929
928
|
},
|
|
930
929
|
[
|
|
931
|
-
y(
|
|
932
|
-
modelValue: (typeof i[l.key] != "number" && (i[l.key] =
|
|
930
|
+
y($t, {
|
|
931
|
+
modelValue: (typeof i[l.key] != "number" && (i[l.key] = N(l), r("change", d, i[l.key])), i[l.key]),
|
|
933
932
|
"onUpdate:modelValue": (c) => {
|
|
934
933
|
c !== i[l.key] && (i[l.key] = c, r("change", d, c));
|
|
935
934
|
},
|
|
@@ -961,11 +960,11 @@ const ye = /* @__PURE__ */ M({
|
|
|
961
960
|
return d;
|
|
962
961
|
})()
|
|
963
962
|
);
|
|
964
|
-
return (d, l) => (
|
|
963
|
+
return (d, l) => (p(), U(R));
|
|
965
964
|
}
|
|
966
|
-
}),
|
|
967
|
-
e.component("x-prop-tree",
|
|
968
|
-
},
|
|
965
|
+
}), Dt = (e) => {
|
|
966
|
+
e.component("x-prop-tree", At);
|
|
967
|
+
}, Rt = { install: Dt };
|
|
969
968
|
export {
|
|
970
|
-
|
|
969
|
+
Rt as default
|
|
971
970
|
};
|