x-prop-tree 0.6.17 → 0.6.18
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.
|
@@ -5,13 +5,13 @@ interface Props {
|
|
|
5
5
|
}
|
|
6
6
|
type __VLS_Props = Props;
|
|
7
7
|
type __VLS_PublicProps = __VLS_Props & {
|
|
8
|
-
modelValue
|
|
8
|
+
modelValue?: string;
|
|
9
9
|
};
|
|
10
10
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
delete: (...args: any[]) => void;
|
|
12
|
-
"update:modelValue": (value: string) => void;
|
|
12
|
+
"update:modelValue": (value: string | undefined) => void;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
15
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
export default _default;
|
|
@@ -4,13 +4,13 @@ interface Props {
|
|
|
4
4
|
}
|
|
5
5
|
type __VLS_Props = Props;
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & {
|
|
7
|
-
modelValue
|
|
7
|
+
modelValue?: boolean;
|
|
8
8
|
};
|
|
9
9
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
10
|
delete: (...args: any[]) => void;
|
|
11
|
-
"update:modelValue": (value: boolean) => void;
|
|
11
|
+
"update:modelValue": (value: boolean | undefined) => void;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
13
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
14
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { provide as Te, inject as Se, defineComponent as K, ref as B, computed as R, resolveComponent as V, createBlock as F, openBlock as w, unref as k, isRef as Fe, withCtx as J, createVNode as N, createElementBlock as H, Fragment as He, renderList as Ht, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as
|
|
1
|
+
import { provide as Te, inject as Se, defineComponent as K, ref as B, computed as R, resolveComponent as V, createBlock as F, openBlock as w, unref as k, isRef as Fe, withCtx as J, createVNode as N, createElementBlock as H, Fragment as He, renderList as Ht, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, withModifiers as z, normalizeStyle as le, createElementVNode as q, createCommentVNode as I, renderSlot as jn, h as _, mergeModels as X, useModel as oe, useId as Gt, onUnmounted as Kt, withKeys as kn, mergeProps as zt, watchEffect as mt, watch as Oe, reactive as En, onMounted as Nn, onBeforeUnmount as Bn } from "vue";
|
|
2
2
|
import { useI18n as ue } from "vue-i18n";
|
|
3
3
|
import { useViewStack as ut, useColor as we, eventBus as _e, useSystem as Rn } from "x-essential-lib";
|
|
4
|
-
import { getPropDefault as E, pkgs as
|
|
4
|
+
import { getPropDefault as E, pkgs as qt, parsePixelStr as Fn, parsePercentStr as Hn } from "x-runtime-lib";
|
|
5
5
|
import { globalState as Gn } from "x-state-lib";
|
|
6
6
|
import { useDisplay as Kn } from "vuetify";
|
|
7
|
-
var It = typeof global == "object" && global && global.Object === Object && global,
|
|
7
|
+
var It = typeof global == "object" && global && global.Object === Object && global, zn = typeof self == "object" && self && self.Object === Object && self, Y = It || zn || Function("return this")(), se = Y.Symbol, Xt = Object.prototype, qn = Xt.hasOwnProperty, In = Xt.toString, Ce = se ? se.toStringTag : void 0;
|
|
8
8
|
function Xn(e) {
|
|
9
|
-
var t =
|
|
9
|
+
var t = qn.call(e, Ce), n = e[Ce];
|
|
10
10
|
try {
|
|
11
11
|
e[Ce] = void 0;
|
|
12
12
|
var r = !0;
|
|
@@ -27,13 +27,13 @@ function de(e) {
|
|
|
27
27
|
return e != null && typeof e == "object";
|
|
28
28
|
}
|
|
29
29
|
var Me = Array.isArray;
|
|
30
|
-
function
|
|
30
|
+
function qe(e) {
|
|
31
31
|
var t = typeof e;
|
|
32
32
|
return e != null && (t == "object" || t == "function");
|
|
33
33
|
}
|
|
34
34
|
var er = "[object AsyncFunction]", tr = "[object Function]", nr = "[object GeneratorFunction]", rr = "[object Proxy]";
|
|
35
35
|
function Zt(e) {
|
|
36
|
-
if (!
|
|
36
|
+
if (!qe(e))
|
|
37
37
|
return !1;
|
|
38
38
|
var t = Le(e);
|
|
39
39
|
return t == tr || t == nr || t == er || t == rr;
|
|
@@ -63,7 +63,7 @@ var sr = /[\\^$.*+?()[\]{}|]/g, ar = /^\[object .+?Constructor\]$/, ur = Functio
|
|
|
63
63
|
"^" + fr.call(dr).replace(sr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
64
64
|
);
|
|
65
65
|
function vr(e) {
|
|
66
|
-
if (!
|
|
66
|
+
if (!qe(e) || or(e))
|
|
67
67
|
return !1;
|
|
68
68
|
var t = Zt(e) ? pr : ar;
|
|
69
69
|
return t.test(ve(e));
|
|
@@ -79,7 +79,7 @@ var rt = me(Y, "WeakMap"), ht = Object.create, yr = /* @__PURE__ */ function() {
|
|
|
79
79
|
function e() {
|
|
80
80
|
}
|
|
81
81
|
return function(t) {
|
|
82
|
-
if (!
|
|
82
|
+
if (!qe(t))
|
|
83
83
|
return {};
|
|
84
84
|
if (ht)
|
|
85
85
|
return ht(t);
|
|
@@ -149,9 +149,9 @@ var Yt = Object.prototype, Mr = Yt.hasOwnProperty, Vr = Yt.propertyIsEnumerable,
|
|
|
149
149
|
function Lr() {
|
|
150
150
|
return !1;
|
|
151
151
|
}
|
|
152
|
-
var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Qt && typeof module == "object" && module && !module.nodeType && module, Dr = $t && $t.exports === Qt, Tt = Dr ? Y.Buffer : void 0, jr = Tt ? Tt.isBuffer : void 0, Ge = jr || Lr, kr = "[object Arguments]", Er = "[object Array]", Nr = "[object Boolean]", Br = "[object Date]", Rr = "[object Error]", Fr = "[object Function]", Hr = "[object Map]", Gr = "[object Number]", Kr = "[object Object]",
|
|
152
|
+
var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, $t = Qt && typeof module == "object" && module && !module.nodeType && module, Dr = $t && $t.exports === Qt, Tt = Dr ? Y.Buffer : void 0, jr = Tt ? Tt.isBuffer : void 0, Ge = jr || Lr, kr = "[object Arguments]", Er = "[object Array]", Nr = "[object Boolean]", Br = "[object Date]", Rr = "[object Error]", Fr = "[object Function]", Hr = "[object Map]", Gr = "[object Number]", Kr = "[object Object]", zr = "[object RegExp]", qr = "[object Set]", Ir = "[object String]", Xr = "[object WeakMap]", Zr = "[object ArrayBuffer]", Jr = "[object DataView]", Wr = "[object Float32Array]", Yr = "[object Float64Array]", Qr = "[object Int8Array]", eo = "[object Int16Array]", to = "[object Int32Array]", no = "[object Uint8Array]", ro = "[object Uint8ClampedArray]", oo = "[object Uint16Array]", io = "[object Uint32Array]", U = {};
|
|
153
153
|
U[Wr] = U[Yr] = U[Qr] = U[eo] = U[to] = U[no] = U[ro] = U[oo] = U[io] = !0;
|
|
154
|
-
U[kr] = U[Er] = U[Zr] = U[Nr] = U[Jr] = U[Br] = U[Rr] = U[Fr] = U[Hr] = U[Gr] = U[Kr] = U[
|
|
154
|
+
U[kr] = U[Er] = U[Zr] = U[Nr] = U[Jr] = U[Br] = U[Rr] = U[Fr] = U[Hr] = U[Gr] = U[Kr] = U[zr] = U[qr] = U[Ir] = U[Xr] = !1;
|
|
155
155
|
function lo(e) {
|
|
156
156
|
return de(e) && Jt(e.length) && !!U[Le(e)];
|
|
157
157
|
}
|
|
@@ -328,10 +328,10 @@ function Ko(e) {
|
|
|
328
328
|
var t = this.__data__, n = t.delete(e);
|
|
329
329
|
return this.size = t.size, n;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function zo(e) {
|
|
332
332
|
return this.__data__.get(e);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function qo(e) {
|
|
335
335
|
return this.__data__.has(e);
|
|
336
336
|
}
|
|
337
337
|
var Io = 200;
|
|
@@ -351,8 +351,8 @@ function te(e) {
|
|
|
351
351
|
}
|
|
352
352
|
te.prototype.clear = Go;
|
|
353
353
|
te.prototype.delete = Ko;
|
|
354
|
-
te.prototype.get =
|
|
355
|
-
te.prototype.has =
|
|
354
|
+
te.prototype.get = zo;
|
|
355
|
+
te.prototype.has = qo;
|
|
356
356
|
te.prototype.set = Xo;
|
|
357
357
|
var rn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = rn && typeof module == "object" && module && !module.nodeType && module, Zo = wt && wt.exports === rn, At = Zo ? Y.Buffer : void 0;
|
|
358
358
|
At && At.allocUnsafe;
|
|
@@ -471,14 +471,14 @@ var Dt = $e && $e.isMap, Ri = Dt ? ft(Dt) : Bi, Fi = "[object Set]";
|
|
|
471
471
|
function Hi(e) {
|
|
472
472
|
return de(e) && Z(e) == Fi;
|
|
473
473
|
}
|
|
474
|
-
var jt = $e && $e.isSet, Gi = jt ? ft(jt) : Hi, on = "[object Arguments]", Ki = "[object Array]",
|
|
475
|
-
M[on] = M[Ki] = M[nl] = M[rl] = M[
|
|
474
|
+
var jt = $e && $e.isSet, Gi = jt ? ft(jt) : Hi, on = "[object Arguments]", Ki = "[object Array]", zi = "[object Boolean]", qi = "[object Date]", Ii = "[object Error]", ln = "[object Function]", Xi = "[object GeneratorFunction]", Zi = "[object Map]", Ji = "[object Number]", sn = "[object Object]", Wi = "[object RegExp]", Yi = "[object Set]", Qi = "[object String]", el = "[object Symbol]", tl = "[object WeakMap]", nl = "[object ArrayBuffer]", rl = "[object DataView]", ol = "[object Float32Array]", il = "[object Float64Array]", ll = "[object Int8Array]", sl = "[object Int16Array]", al = "[object Int32Array]", ul = "[object Uint8Array]", cl = "[object Uint8ClampedArray]", fl = "[object Uint16Array]", dl = "[object Uint32Array]", M = {};
|
|
475
|
+
M[on] = M[Ki] = M[nl] = M[rl] = M[zi] = M[qi] = M[ol] = M[il] = M[ll] = M[sl] = M[al] = M[Zi] = M[Ji] = M[sn] = M[Wi] = M[Yi] = M[Qi] = M[el] = M[ul] = M[cl] = M[fl] = M[dl] = !0;
|
|
476
476
|
M[Ii] = M[ln] = M[tl] = !1;
|
|
477
477
|
function Re(e, t, n, r, i, o) {
|
|
478
478
|
var l;
|
|
479
479
|
if (l !== void 0)
|
|
480
480
|
return l;
|
|
481
|
-
if (!
|
|
481
|
+
if (!qe(e))
|
|
482
482
|
return e;
|
|
483
483
|
var a = Me(e);
|
|
484
484
|
if (a)
|
|
@@ -520,13 +520,13 @@ function yl(e) {
|
|
|
520
520
|
function gl(e) {
|
|
521
521
|
return this.__data__.has(e);
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function ze(e) {
|
|
524
524
|
var t = -1, n = e == null ? 0 : e.length;
|
|
525
525
|
for (this.__data__ = new ye(); ++t < n; )
|
|
526
526
|
this.add(e[t]);
|
|
527
527
|
}
|
|
528
|
-
|
|
529
|
-
|
|
528
|
+
ze.prototype.add = ze.prototype.push = yl;
|
|
529
|
+
ze.prototype.has = gl;
|
|
530
530
|
function hl(e, t) {
|
|
531
531
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
532
532
|
if (t(e[n], n, e))
|
|
@@ -544,7 +544,7 @@ function un(e, t, n, r, i, o) {
|
|
|
544
544
|
var s = o.get(e), v = o.get(t);
|
|
545
545
|
if (s && v)
|
|
546
546
|
return s == t && v == e;
|
|
547
|
-
var d = -1, f = !0, p = n & $l ? new
|
|
547
|
+
var d = -1, f = !0, p = n & $l ? new ze() : void 0;
|
|
548
548
|
for (o.set(e, t), o.set(t, e); ++d < a; ) {
|
|
549
549
|
var h = e[d], P = t[d];
|
|
550
550
|
if (r)
|
|
@@ -677,7 +677,7 @@ function cn(e, t, n, r, i) {
|
|
|
677
677
|
function Ze(e, t) {
|
|
678
678
|
return cn(e, t);
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function zl(e, t) {
|
|
681
681
|
const n = [];
|
|
682
682
|
let r = [];
|
|
683
683
|
e.forEach((l) => {
|
|
@@ -698,7 +698,7 @@ function ql(e, t) {
|
|
|
698
698
|
function fn(e, t) {
|
|
699
699
|
return e.value.find((n) => n.id === t);
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function ql(e, t, n) {
|
|
702
702
|
for (let r = 0; r < e.value.length; r++) {
|
|
703
703
|
let i = e.value[r];
|
|
704
704
|
if (i.id === t) {
|
|
@@ -1060,7 +1060,7 @@ const Be = /* @__PURE__ */ K({
|
|
|
1060
1060
|
class: "d-flex align-center cursor-pointer",
|
|
1061
1061
|
style: le(l.value),
|
|
1062
1062
|
onClick: a,
|
|
1063
|
-
onContextmenu:
|
|
1063
|
+
onContextmenu: z(u, ["prevent"]),
|
|
1064
1064
|
onMouseover: v[2] || (v[2] = (h) => o.value = !0),
|
|
1065
1065
|
onMouseout: v[3] || (v[3] = (h) => o.value = !1)
|
|
1066
1066
|
}, [
|
|
@@ -1068,19 +1068,19 @@ const Be = /* @__PURE__ */ K({
|
|
|
1068
1068
|
class: "mr-1",
|
|
1069
1069
|
icon: s.collapse ? k($n) : k(bn)
|
|
1070
1070
|
}, null, 8, ["icon"]),
|
|
1071
|
-
|
|
1071
|
+
q("span", null, ne(s.title), 1),
|
|
1072
1072
|
N(f),
|
|
1073
1073
|
s.hasCreate ? (w(), F(d, {
|
|
1074
1074
|
key: 0,
|
|
1075
1075
|
class: "mx-3",
|
|
1076
1076
|
icon: k(ds),
|
|
1077
|
-
onClick: v[0] || (v[0] =
|
|
1077
|
+
onClick: v[0] || (v[0] = z((h) => i("create"), ["stop"]))
|
|
1078
1078
|
}, null, 8, ["icon"])) : I("", !0),
|
|
1079
1079
|
s.hasDelete ? (w(), F(d, {
|
|
1080
1080
|
key: 1,
|
|
1081
1081
|
class: "mx-3",
|
|
1082
1082
|
icon: k(ge),
|
|
1083
|
-
onClick: v[1] || (v[1] =
|
|
1083
|
+
onClick: v[1] || (v[1] = z((h) => i("delete", s.index), ["stop"]))
|
|
1084
1084
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1085
1085
|
], 36)), [
|
|
1086
1086
|
[p]
|
|
@@ -1108,7 +1108,7 @@ const Be = /* @__PURE__ */ K({
|
|
|
1108
1108
|
return re((w(), H("div", {
|
|
1109
1109
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1110
1110
|
style: le(l.value),
|
|
1111
|
-
onContextmenu:
|
|
1111
|
+
onContextmenu: z(a, ["prevent"]),
|
|
1112
1112
|
onMouseover: s[0] || (s[0] = (d) => o.value = !0),
|
|
1113
1113
|
onMouseout: s[1] || (s[1] = (d) => o.value = !1)
|
|
1114
1114
|
}, [
|
|
@@ -1212,7 +1212,7 @@ const ys = { class: "d-flex justify-space-between align-center" }, gs = /* @__PU
|
|
|
1212
1212
|
key: 0,
|
|
1213
1213
|
class: "mx-2",
|
|
1214
1214
|
icon: k(ge),
|
|
1215
|
-
onClick: o[1] || (o[1] =
|
|
1215
|
+
onClick: o[1] || (o[1] = z((s) => r("delete"), ["stop"]))
|
|
1216
1216
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1217
1217
|
]);
|
|
1218
1218
|
};
|
|
@@ -1290,7 +1290,7 @@ const _s = { class: "d-flex justify-space-between align-center" }, bs = /* @__PU
|
|
|
1290
1290
|
key: 0,
|
|
1291
1291
|
class: "mx-2",
|
|
1292
1292
|
icon: k(ge),
|
|
1293
|
-
onClick: o[1] || (o[1] =
|
|
1293
|
+
onClick: o[1] || (o[1] = z((s) => r("delete"), ["stop"]))
|
|
1294
1294
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1295
1295
|
]);
|
|
1296
1296
|
};
|
|
@@ -1334,7 +1334,7 @@ const Ts = { class: "d-flex justify-space-between align-center" }, Ss = /* @__PU
|
|
|
1334
1334
|
hasDelete: { type: Boolean, default: !1 },
|
|
1335
1335
|
readonly: { type: Boolean, default: !1 }
|
|
1336
1336
|
}, {
|
|
1337
|
-
modelValue: { type: Boolean
|
|
1337
|
+
modelValue: { type: Boolean },
|
|
1338
1338
|
modelModifiers: {}
|
|
1339
1339
|
}),
|
|
1340
1340
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
@@ -1356,7 +1356,7 @@ const Ts = { class: "d-flex justify-space-between align-center" }, Ss = /* @__PU
|
|
|
1356
1356
|
key: 0,
|
|
1357
1357
|
class: "mx-2",
|
|
1358
1358
|
icon: k(ge),
|
|
1359
|
-
onClick: o[1] || (o[1] =
|
|
1359
|
+
onClick: o[1] || (o[1] = z((u) => r("delete"), ["stop"]))
|
|
1360
1360
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1361
1361
|
]);
|
|
1362
1362
|
};
|
|
@@ -1397,7 +1397,7 @@ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PU
|
|
|
1397
1397
|
readonly: { type: Boolean, default: !1 },
|
|
1398
1398
|
items: {}
|
|
1399
1399
|
}, {
|
|
1400
|
-
modelValue: {
|
|
1400
|
+
modelValue: {},
|
|
1401
1401
|
modelModifiers: {}
|
|
1402
1402
|
}),
|
|
1403
1403
|
emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
|
|
@@ -1405,7 +1405,7 @@ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PU
|
|
|
1405
1405
|
const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = R(() => {
|
|
1406
1406
|
var u;
|
|
1407
1407
|
const a = [];
|
|
1408
|
-
return (u =
|
|
1408
|
+
return (u = qt[o.value]) == null || u.items[e.items].forEach(({ title: s, value: v }) => {
|
|
1409
1409
|
a.push({ title: n(s), value: v });
|
|
1410
1410
|
}), a;
|
|
1411
1411
|
});
|
|
@@ -1432,7 +1432,7 @@ const As = { class: "d-flex justify-space-between align-center" }, Cs = /* @__PU
|
|
|
1432
1432
|
key: 0,
|
|
1433
1433
|
class: "mx-2",
|
|
1434
1434
|
icon: k(ge),
|
|
1435
|
-
onClick: u[1] || (u[1] =
|
|
1435
|
+
onClick: u[1] || (u[1] = z((f) => i("delete"), ["stop"]))
|
|
1436
1436
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1437
1437
|
]);
|
|
1438
1438
|
};
|
|
@@ -1496,8 +1496,8 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
|
|
|
1496
1496
|
icon: i.collapse ? k($n) : k(bn),
|
|
1497
1497
|
size: "small"
|
|
1498
1498
|
}, null, 8, ["icon"]),
|
|
1499
|
-
|
|
1500
|
-
|
|
1499
|
+
q("span", Os, ne(i.title), 1),
|
|
1500
|
+
q("span", xs, ne(i.count), 1)
|
|
1501
1501
|
], 36)), [
|
|
1502
1502
|
[d]
|
|
1503
1503
|
]);
|
|
@@ -1526,7 +1526,7 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
|
|
|
1526
1526
|
onMouseover: s[1] || (s[1] = (d) => l.value = !0),
|
|
1527
1527
|
onMouseout: s[2] || (s[2] = (d) => l.value = !1)
|
|
1528
1528
|
}, [
|
|
1529
|
-
|
|
1529
|
+
q("span", Vs, ne(i.title), 1)
|
|
1530
1530
|
], 36)), [
|
|
1531
1531
|
[v]
|
|
1532
1532
|
]);
|
|
@@ -1547,7 +1547,7 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
|
|
|
1547
1547
|
setup(e) {
|
|
1548
1548
|
const { t } = ue(), n = oe(e, "modelValue"), r = oe(e, "open"), i = _n(), o = (a) => {
|
|
1549
1549
|
const u = fn(i, a);
|
|
1550
|
-
u &&
|
|
1550
|
+
u && ql(i, a, !u.collapse);
|
|
1551
1551
|
}, l = (a) => {
|
|
1552
1552
|
n.value = a, r.value = !1, _e.emit("refreshDepends");
|
|
1553
1553
|
};
|
|
@@ -1612,10 +1612,10 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
|
|
|
1612
1612
|
persistent: "",
|
|
1613
1613
|
"no-click-animation": "",
|
|
1614
1614
|
fullscreen: "",
|
|
1615
|
-
onKeydown: p[6] || (p[6] = kn(
|
|
1615
|
+
onKeydown: p[6] || (p[6] = kn(z(($) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1616
1616
|
}, {
|
|
1617
1617
|
activator: J(({ props: $ }) => [
|
|
1618
|
-
N(h,
|
|
1618
|
+
N(h, zt($, {
|
|
1619
1619
|
density: "comfortable",
|
|
1620
1620
|
block: ""
|
|
1621
1621
|
}), {
|
|
@@ -1626,12 +1626,12 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
|
|
|
1626
1626
|
}, 1040)
|
|
1627
1627
|
]),
|
|
1628
1628
|
default: J(() => [
|
|
1629
|
-
|
|
1629
|
+
q("div", {
|
|
1630
1630
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1631
|
-
onClick: p[3] || (p[3] =
|
|
1632
|
-
onContextmenu: p[4] || (p[4] =
|
|
1631
|
+
onClick: p[3] || (p[3] = z(($) => d.value = !1, ["self"])),
|
|
1632
|
+
onContextmenu: p[4] || (p[4] = z(($) => d.value = !1, ["self", "prevent"]))
|
|
1633
1633
|
}, [
|
|
1634
|
-
|
|
1634
|
+
q("div", {
|
|
1635
1635
|
class: "elevation-2",
|
|
1636
1636
|
style: le(a.value)
|
|
1637
1637
|
}, [
|
|
@@ -1650,11 +1650,11 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
|
|
|
1650
1650
|
icon: k(fs),
|
|
1651
1651
|
onClick: p[0] || (p[0] = ($) => d.value = !1)
|
|
1652
1652
|
}, null, 8, ["icon"]),
|
|
1653
|
-
|
|
1653
|
+
q("span", ks, ne(k(t)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
1654
1654
|
]),
|
|
1655
1655
|
_: 1
|
|
1656
1656
|
}),
|
|
1657
|
-
|
|
1657
|
+
q("div", {
|
|
1658
1658
|
class: "overflow-y-auto",
|
|
1659
1659
|
style: le(u.value)
|
|
1660
1660
|
}, [
|
|
@@ -1664,7 +1664,7 @@ const Os = { class: "text-subtitle-2 ml-1" }, xs = { class: "text-caption text-g
|
|
|
1664
1664
|
open: k(d),
|
|
1665
1665
|
"onUpdate:open": p[2] || (p[2] = ($) => Fe(d) ? d.value = $ : null)
|
|
1666
1666
|
}, null, 8, ["modelValue", "open"]),
|
|
1667
|
-
|
|
1667
|
+
q("div", {
|
|
1668
1668
|
style: le(s.value)
|
|
1669
1669
|
}, null, 4)
|
|
1670
1670
|
], 4)
|
|
@@ -1727,12 +1727,12 @@ const Bs = { class: "d-flex justify-space-between align-center" }, Rs = /* @__PU
|
|
|
1727
1727
|
scrim: "transparent"
|
|
1728
1728
|
}, {
|
|
1729
1729
|
activator: J(({ props: h }) => [
|
|
1730
|
-
|
|
1731
|
-
|
|
1730
|
+
q("div", Bs, [
|
|
1731
|
+
q("div", {
|
|
1732
1732
|
class: "flex-grow-1",
|
|
1733
1733
|
style: le(o.value)
|
|
1734
1734
|
}, [
|
|
1735
|
-
N(v,
|
|
1735
|
+
N(v, zt(h, {
|
|
1736
1736
|
density: "comfortable",
|
|
1737
1737
|
color: r.value,
|
|
1738
1738
|
block: "",
|
|
@@ -1748,7 +1748,7 @@ const Bs = { class: "d-flex justify-space-between align-center" }, Rs = /* @__PU
|
|
|
1748
1748
|
key: 0,
|
|
1749
1749
|
class: "mx-2",
|
|
1750
1750
|
icon: k(ge),
|
|
1751
|
-
onClick: s[0] || (s[0] =
|
|
1751
|
+
onClick: s[0] || (s[0] = z((P) => i("delete"), ["stop"]))
|
|
1752
1752
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1753
1753
|
])
|
|
1754
1754
|
]),
|
|
@@ -1807,7 +1807,7 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
|
|
|
1807
1807
|
setup(e, { emit: t }) {
|
|
1808
1808
|
const { t: n } = ue(), r = oe(e, "modelValue"), i = t, o = hn(), l = R(() => {
|
|
1809
1809
|
var f;
|
|
1810
|
-
return (f =
|
|
1810
|
+
return (f = qt[o.value]) == null ? void 0 : f.types[e.types];
|
|
1811
1811
|
}), a = B(0), u = R(() => {
|
|
1812
1812
|
var p;
|
|
1813
1813
|
const f = [];
|
|
@@ -1839,7 +1839,7 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
|
|
|
1839
1839
|
var $, O;
|
|
1840
1840
|
const h = V("v-select"), P = V("v-number-input"), A = V("v-icon"), C = ae("ripple");
|
|
1841
1841
|
return w(), H("div", Hs, [
|
|
1842
|
-
|
|
1842
|
+
q("div", Gs, [
|
|
1843
1843
|
re(N(h, {
|
|
1844
1844
|
modelValue: a.value,
|
|
1845
1845
|
"onUpdate:modelValue": [
|
|
@@ -1883,13 +1883,13 @@ const Hs = { class: "d-flex justify-space-between align-center my-2" }, Gs = { c
|
|
|
1883
1883
|
key: 0,
|
|
1884
1884
|
class: "mx-2",
|
|
1885
1885
|
icon: k(ge),
|
|
1886
|
-
onClick: p[2] || (p[2] =
|
|
1886
|
+
onClick: p[2] || (p[2] = z((T) => i("delete"), ["stop"]))
|
|
1887
1887
|
}, null, 8, ["icon"])) : I("", !0)
|
|
1888
1888
|
]);
|
|
1889
1889
|
};
|
|
1890
1890
|
}
|
|
1891
1891
|
});
|
|
1892
|
-
function
|
|
1892
|
+
function zs(e) {
|
|
1893
1893
|
return { renderUiMultiTypes: (n, r, i, o, l) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(Ks, {
|
|
1894
1894
|
modelValue: ce(
|
|
1895
1895
|
n,
|
|
@@ -1917,7 +1917,7 @@ function qs(e) {
|
|
|
1917
1917
|
types: r.types
|
|
1918
1918
|
}) };
|
|
1919
1919
|
}
|
|
1920
|
-
const
|
|
1920
|
+
const qs = /* @__PURE__ */ K({
|
|
1921
1921
|
__name: "index",
|
|
1922
1922
|
props: {
|
|
1923
1923
|
unique: {},
|
|
@@ -1975,7 +1975,7 @@ const zs = /* @__PURE__ */ K({
|
|
|
1975
1975
|
});
|
|
1976
1976
|
}), c.forEach(({ id: m, groupid: b, name: x, position: D }) => {
|
|
1977
1977
|
g.push({ id: m, type: 1, name: x, position: D, group: b });
|
|
1978
|
-
}),
|
|
1978
|
+
}), zl(g, !0), P.value = g;
|
|
1979
1979
|
};
|
|
1980
1980
|
let C;
|
|
1981
1981
|
const $ = () => {
|
|
@@ -1990,7 +1990,7 @@ const zs = /* @__PURE__ */ K({
|
|
|
1990
1990
|
}), Bn(() => {
|
|
1991
1991
|
O();
|
|
1992
1992
|
});
|
|
1993
|
-
const { renderProp: T } = vs(v, a, u), { renderUiDummy: L } = ms(d), { renderUiStrInput: W } = hs(d), { renderUiNumInput: Ye } = $s(d), { renderUiSwitch: Tn } = ws(d), { renderUiSelect: Sn } = Ps(d), { renderUiColorPicker: wn } = Fs(d), { renderUiMultiTypes: An } =
|
|
1993
|
+
const { renderProp: T } = vs(v, a, u), { renderUiDummy: L } = ms(d), { renderUiStrInput: W } = hs(d), { renderUiNumInput: Ye } = $s(d), { renderUiSwitch: Tn } = ws(d), { renderUiSelect: Sn } = Ps(d), { renderUiColorPicker: wn } = Fs(d), { renderUiMultiTypes: An } = zs(d), { renderUiCompSelect: Cn } = Ns(d), De = (y, c, g, m, b, x) => (y = an(y), b !== void 0 ? (y.push(b), x && y.push(c.key)) : y.push(c.key), c.ui ? c.array && m ? xn(y, c, g, m, b, x) : Mn(y, c, g, b, x) : c.array ? Pn(y, c, g, m, b, x) : On(
|
|
1994
1994
|
y,
|
|
1995
1995
|
c,
|
|
1996
1996
|
g,
|
|
@@ -2267,7 +2267,7 @@ const zs = /* @__PURE__ */ K({
|
|
|
2267
2267
|
], 64));
|
|
2268
2268
|
}
|
|
2269
2269
|
}), Is = (e) => {
|
|
2270
|
-
e.component("XPropTree",
|
|
2270
|
+
e.component("XPropTree", qs);
|
|
2271
2271
|
}, Xs = (e, t, n) => {
|
|
2272
2272
|
const r = e[t];
|
|
2273
2273
|
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((i, o) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-prop-tree",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.18",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"vuetify": "^3.8.1",
|
|
29
29
|
"x-essential-lib": "^0.8.6",
|
|
30
30
|
"x-group-list": "^0.4.1",
|
|
31
|
-
"x-runtime-lib": "^0.6.
|
|
31
|
+
"x-runtime-lib": "^0.6.37",
|
|
32
32
|
"x-state-lib": "^0.2.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|