x-prop-tree 0.7.12 → 0.7.13
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/components/propTree/components/common/entry.vue.d.ts +3 -2
- package/dist/components/propTree/components/common/menu.vue.d.ts +2 -1
- package/dist/components/propTree/components/common/title.vue.d.ts +2 -1
- package/dist/components/propTree/components/values/colorPicker.vue.d.ts +4 -2
- package/dist/components/propTree/components/values/compSelect/compList/group.vue.d.ts +2 -1
- package/dist/components/propTree/components/values/compSelect/compList/index.vue.d.ts +4 -3
- package/dist/components/propTree/components/values/compSelect/compList/item.vue.d.ts +2 -1
- package/dist/components/propTree/components/values/compSelect/index.vue.d.ts +4 -3
- package/dist/components/propTree/components/values/iconSelect/index.vue.d.ts +2 -1
- package/dist/components/propTree/components/values/iconSelect/item.vue.d.ts +2 -1
- package/dist/components/propTree/components/values/jsonEditor/editor.vue.d.ts +4 -3
- package/dist/components/propTree/components/values/jsonEditor/index.vue.d.ts +4 -3
- package/dist/components/propTree/components/values/multiTypes.vue.d.ts +4 -2
- package/dist/components/propTree/components/values/numInput.vue.d.ts +4 -2
- package/dist/components/propTree/components/values/select.vue.d.ts +4 -2
- package/dist/components/propTree/components/values/strInput.vue.d.ts +4 -2
- package/dist/components/propTree/components/values/switch.vue.d.ts +4 -2
- package/dist/components/propTree/index.vue.d.ts +2 -1
- package/dist/index.js +494 -494
- package/package.json +18 -18
package/dist/index.js
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import { provide as ce, inject as de, defineComponent as R, ref as O, computed as K, resolveComponent as
|
|
1
|
+
import { provide as ce, inject as de, defineComponent as R, ref as O, computed as K, resolveComponent as U, createBlock as B, openBlock as C, unref as L, isRef as ve, withCtx as J, createVNode as D, createElementBlock as E, Fragment as Ve, renderList as Be, createTextVNode as Ce, toDisplayString as W, resolveDirective as le, withDirectives as ee, withModifiers as X, normalizeStyle as I, createElementVNode as F, createCommentVNode as G, renderSlot as ft, h, mergeModels as Y, useModel as z, useId as we, onUnmounted as De, withKeys as Ke, mergeProps as be, watchEffect as Ne, watch as re, useTemplateRef as Je, reactive as mt, onMounted as vt, onBeforeUnmount as pt } from "vue";
|
|
2
2
|
import { useI18n as te } from "vue-i18n";
|
|
3
|
-
import { useViewStack as
|
|
4
|
-
import { c as Ee, i as
|
|
3
|
+
import { useViewStack as xe, useColor as ie, eventBus as ue, useSystem as pe, openPromptDlg as yt, openNumberDlg as Re, injectDark as gt, injectLocale as ht } from "x-essential-lib";
|
|
4
|
+
import { c as Ee, i as Se, r as He, v as kt, d as _t } from "./vendor.f0ug048x.js";
|
|
5
5
|
import { getPropDefault as q, pkgs as Fe, parsePixelStr as Vt, parsePercentStr as Ct } from "x-runtime-lib";
|
|
6
|
-
import { globalState as
|
|
7
|
-
import { useDisplay as
|
|
8
|
-
import { XBlockly as
|
|
9
|
-
const
|
|
10
|
-
let
|
|
6
|
+
import { globalState as xt } from "x-state-lib";
|
|
7
|
+
import { useDisplay as St } from "vuetify";
|
|
8
|
+
import { XBlockly as Ut } from "x-block-lib";
|
|
9
|
+
const ke = (t, s) => {
|
|
10
|
+
let n = { key: "", name: "", children: t };
|
|
11
11
|
return s.forEach((e) => {
|
|
12
12
|
if (typeof e != "number") {
|
|
13
|
-
if (!
|
|
13
|
+
if (!n) {
|
|
14
14
|
console.assert(!1, `unpkgProp invalid prop keys=${s}`);
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
if (
|
|
17
|
+
if (n.ui) {
|
|
18
18
|
console.assert(!1, `unpkgProp prop ui must be invalid keys=${s}`);
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
n = n.children.find((l) => l.key === e);
|
|
22
22
|
}
|
|
23
|
-
}),
|
|
24
|
-
}, me = (
|
|
25
|
-
let
|
|
23
|
+
}), n;
|
|
24
|
+
}, me = (t, s) => {
|
|
25
|
+
let n = t;
|
|
26
26
|
return s.forEach((e) => {
|
|
27
|
-
if (!
|
|
27
|
+
if (!n) {
|
|
28
28
|
console.assert(!1, `unpkgObject object must be valid keys=${s}`);
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
}),
|
|
33
|
-
}, Oe = (
|
|
34
|
-
const
|
|
35
|
-
if (e.ui !==
|
|
31
|
+
n = n[e];
|
|
32
|
+
}), n;
|
|
33
|
+
}, Oe = (t) => !(t instanceof Array), Me = (t) => t instanceof Array, $t = (t, s) => {
|
|
34
|
+
const n = (e, l) => {
|
|
35
|
+
if (e.ui !== l.ui || e.array !== l.array)
|
|
36
36
|
return !1;
|
|
37
|
-
if (e.ui ||
|
|
37
|
+
if (e.ui || l.ui)
|
|
38
38
|
return !0;
|
|
39
|
-
if (e.children.length !==
|
|
39
|
+
if (e.children.length !== l.children.length)
|
|
40
40
|
return !1;
|
|
41
41
|
for (let o = 0; o < e.children.length; o++)
|
|
42
|
-
if (!
|
|
42
|
+
if (!n(e.children[o], l.children[o]))
|
|
43
43
|
return !1;
|
|
44
44
|
return !0;
|
|
45
45
|
};
|
|
46
|
-
return t
|
|
47
|
-
}, Ae = (
|
|
46
|
+
return n(t, s);
|
|
47
|
+
}, Ae = (t) => !(t instanceof Array), Ue = (t) => t instanceof Array, Pt = [
|
|
48
48
|
["basic", "id"],
|
|
49
49
|
["basic", "name"]
|
|
50
|
-
], Mt = (
|
|
51
|
-
l,
|
|
52
|
-
s,
|
|
50
|
+
], Mt = (t) => Pt.find((s) => Se(t, s)), $e = (t, s, n, e, l, o, i) => (t = Ee(t), o !== void 0 ? (t.push(o), i && t.push(s.key)) : t.push(s.key), Mt(t) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && Ue(e.children) ? bt(
|
|
53
51
|
t,
|
|
54
|
-
|
|
52
|
+
s,
|
|
55
53
|
n,
|
|
54
|
+
e,
|
|
55
|
+
l,
|
|
56
56
|
o,
|
|
57
57
|
i
|
|
58
|
-
) : At(s,
|
|
59
|
-
l,
|
|
60
|
-
s,
|
|
58
|
+
) : At(s, n, e, o, i) : s.array ? wt(
|
|
61
59
|
t,
|
|
62
|
-
|
|
60
|
+
s,
|
|
63
61
|
n,
|
|
62
|
+
e,
|
|
63
|
+
l,
|
|
64
64
|
o,
|
|
65
65
|
i
|
|
66
66
|
) : Dt(
|
|
67
|
-
l,
|
|
68
|
-
s,
|
|
69
67
|
t,
|
|
70
|
-
|
|
68
|
+
s,
|
|
71
69
|
n,
|
|
70
|
+
e,
|
|
71
|
+
l,
|
|
72
72
|
o,
|
|
73
73
|
i
|
|
74
|
-
)), wt = (
|
|
74
|
+
)), wt = (t, s, n, e, l, o, i) => {
|
|
75
75
|
if (s.ui)
|
|
76
76
|
return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
|
|
77
77
|
if (!s.array)
|
|
78
78
|
return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
|
|
79
|
-
if (!e.children || !
|
|
79
|
+
if (!e.children || !Ue(e.children))
|
|
80
80
|
return console.assert(!1, "execPropBranchArray state children must be array"), !1;
|
|
81
|
-
let
|
|
82
|
-
o !== void 0 && !i ? (
|
|
83
|
-
for (let
|
|
81
|
+
let u;
|
|
82
|
+
o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = q(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = q(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
|
|
83
|
+
for (let r = 0; r < u.length; r++) {
|
|
84
84
|
e.children.push({
|
|
85
85
|
change: !1,
|
|
86
86
|
children: {}
|
|
87
87
|
});
|
|
88
|
-
const a = e.children[
|
|
88
|
+
const a = e.children[r];
|
|
89
89
|
s.children.forEach((f) => {
|
|
90
90
|
if (!a.children || !Ae(a.children)) {
|
|
91
91
|
console.assert(!1);
|
|
@@ -95,149 +95,149 @@ const _e = (l, s) => {
|
|
|
95
95
|
change: !1,
|
|
96
96
|
children: f.array ? [] : {}
|
|
97
97
|
}, $e(
|
|
98
|
-
|
|
98
|
+
t,
|
|
99
99
|
f,
|
|
100
|
-
r
|
|
100
|
+
u[r],
|
|
101
101
|
a.children[f.key],
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
l,
|
|
103
|
+
r,
|
|
104
104
|
!0
|
|
105
105
|
) && (a.change = !0), a.change && (e.change = !0);
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
return e.change || (e.change = !
|
|
109
|
-
}, Dt = (
|
|
108
|
+
return e.change || (e.change = !Se(u, q(s))), e.change;
|
|
109
|
+
}, Dt = (t, s, n, e, l, o, i) => {
|
|
110
110
|
if (s.ui)
|
|
111
111
|
return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
|
|
112
112
|
if (s.array)
|
|
113
113
|
return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
|
|
114
114
|
if (!e.children || !Ae(e.children))
|
|
115
115
|
return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
|
|
116
|
-
let
|
|
117
|
-
o !== void 0 && !i ? (
|
|
118
|
-
for (let
|
|
119
|
-
const a = s.children[
|
|
116
|
+
let u;
|
|
117
|
+
o !== void 0 && !i ? (n[o] || (n[o] = {}), u = n[o]) : (n[s.key] || (n[s.key] = {}), u = n[s.key]), e.change = !1;
|
|
118
|
+
for (let r = 0; r < s.children.length; r++) {
|
|
119
|
+
const a = s.children[r];
|
|
120
120
|
e.children[a.key] = {
|
|
121
121
|
change: !1,
|
|
122
122
|
children: a.array ? [] : {}
|
|
123
|
-
}, $e(
|
|
123
|
+
}, $e(t, a, u, e.children[a.key], l) && (e.change = !0);
|
|
124
124
|
}
|
|
125
125
|
return e.change;
|
|
126
|
-
}, bt = (
|
|
126
|
+
}, bt = (t, s, n, e, l, o, i) => {
|
|
127
127
|
if (!s.ui)
|
|
128
128
|
return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
|
|
129
129
|
if (!s.array)
|
|
130
130
|
return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
|
|
131
|
-
if (!e.children || !
|
|
131
|
+
if (!e.children || !Ue(e.children))
|
|
132
132
|
return console.assert(!1, "execPropLeafArray state children must be array"), !1;
|
|
133
|
-
let
|
|
134
|
-
o !== void 0 && !i ? (
|
|
135
|
-
for (let
|
|
136
|
-
e.children[
|
|
133
|
+
let u;
|
|
134
|
+
o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = q(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = q(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
|
|
135
|
+
for (let r = 0; r < u.length; r++)
|
|
136
|
+
e.children[r] = {
|
|
137
137
|
change: !1,
|
|
138
138
|
children: {}
|
|
139
|
-
}, $e(
|
|
140
|
-
return e.change || (e.change = !
|
|
141
|
-
}, At = (
|
|
142
|
-
if (!
|
|
139
|
+
}, $e(t, s, u, e.children[r], l, r, !1) && (e.change = !0);
|
|
140
|
+
return e.change || (e.change = !Se(u, q(s))), e.change;
|
|
141
|
+
}, At = (t, s, n, e, l) => {
|
|
142
|
+
if (!t.ui)
|
|
143
143
|
return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
|
|
144
144
|
let o;
|
|
145
|
-
return e !== void 0 && !
|
|
146
|
-
}, qe = (
|
|
147
|
-
if (s.length <= 0 || !
|
|
148
|
-
|
|
145
|
+
return e !== void 0 && !l ? o = s[e] : o = s[t.key], n.change = !Se(o, q(t, !0)), n.change;
|
|
146
|
+
}, qe = (t, s, n, e) => {
|
|
147
|
+
if (s.length <= 0 || !n) {
|
|
148
|
+
t.value = {};
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const l = {};
|
|
152
152
|
s.forEach((o) => {
|
|
153
|
-
|
|
153
|
+
l[o.key] = {
|
|
154
154
|
change: !1,
|
|
155
155
|
children: o.array ? [] : {}
|
|
156
|
-
}, $e([], o,
|
|
157
|
-
}),
|
|
158
|
-
}, ae = (
|
|
159
|
-
let
|
|
156
|
+
}, $e([], o, n, l[o.key], e);
|
|
157
|
+
}), t.value = l;
|
|
158
|
+
}, ae = (t, s) => {
|
|
159
|
+
let n = { change: !1, children: t };
|
|
160
160
|
return s.forEach((e) => {
|
|
161
|
-
if (!
|
|
161
|
+
if (!n)
|
|
162
162
|
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
163
|
-
if (!
|
|
163
|
+
if (!n.children)
|
|
164
164
|
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
165
|
-
typeof e == "string" ? Ae(
|
|
166
|
-
}),
|
|
165
|
+
typeof e == "string" ? Ae(n.children) && (n = n.children[e]) : Ue(n.children) && (n = n.children[e]);
|
|
166
|
+
}), n?.change ?? !1;
|
|
167
167
|
}, Xe = Symbol(), ze = Symbol(), Ge = Symbol(), Ye = Symbol(), We = Symbol(), Qe = Symbol();
|
|
168
|
-
function Tt(
|
|
169
|
-
ce(Xe,
|
|
168
|
+
function Tt(t) {
|
|
169
|
+
ce(Xe, t);
|
|
170
170
|
}
|
|
171
171
|
function Te() {
|
|
172
172
|
return de(Xe);
|
|
173
173
|
}
|
|
174
|
-
function Lt(
|
|
175
|
-
ce(ze,
|
|
174
|
+
function Lt(t) {
|
|
175
|
+
ce(ze, t);
|
|
176
176
|
}
|
|
177
177
|
function Nt() {
|
|
178
178
|
return de(ze);
|
|
179
179
|
}
|
|
180
|
-
function Ot(
|
|
181
|
-
ce(Ge,
|
|
180
|
+
function Ot(t) {
|
|
181
|
+
ce(Ge, t);
|
|
182
182
|
}
|
|
183
183
|
function qt() {
|
|
184
184
|
return de(Ge);
|
|
185
185
|
}
|
|
186
|
-
function Bt(
|
|
187
|
-
ce(Ye,
|
|
186
|
+
function Bt(t) {
|
|
187
|
+
ce(Ye, t);
|
|
188
188
|
}
|
|
189
189
|
function Kt() {
|
|
190
190
|
return de(Ye);
|
|
191
191
|
}
|
|
192
|
-
function Jt(
|
|
193
|
-
ce(We,
|
|
192
|
+
function Jt(t) {
|
|
193
|
+
ce(We, t);
|
|
194
194
|
}
|
|
195
195
|
function Rt() {
|
|
196
196
|
return de(We);
|
|
197
197
|
}
|
|
198
|
-
function Et(
|
|
199
|
-
ce(Qe,
|
|
198
|
+
function Et(t) {
|
|
199
|
+
ce(Qe, t);
|
|
200
200
|
}
|
|
201
201
|
function Ze() {
|
|
202
202
|
return de(Qe);
|
|
203
203
|
}
|
|
204
204
|
const Ht = /* @__PURE__ */ R({
|
|
205
205
|
__name: "menu",
|
|
206
|
-
setup(
|
|
207
|
-
const { t: s } = te(),
|
|
208
|
-
const T = () => !(
|
|
209
|
-
const
|
|
210
|
-
if (
|
|
211
|
-
if (
|
|
212
|
-
const M = me(e.value,
|
|
206
|
+
setup(t) {
|
|
207
|
+
const { t: s } = te(), n = Nt(), e = qt(), l = Kt(), o = Rt(), i = O(0), u = O(0), r = O([]), a = K(() => [i.value, u.value]), f = (P) => {
|
|
208
|
+
const T = () => !(r.value.length <= 0 || !ae(l.value, r.value)), w = () => {
|
|
209
|
+
const k = ke(n.value, r.value);
|
|
210
|
+
if (k)
|
|
211
|
+
if (k.ui) {
|
|
212
|
+
const M = me(e.value, r.value.slice(0, -1));
|
|
213
213
|
if (!M)
|
|
214
214
|
return;
|
|
215
|
-
M[
|
|
216
|
-
} else if (
|
|
217
|
-
const M =
|
|
215
|
+
M[r.value[r.value.length - 1]] = q(k), o(r.value, M[r.value[r.value.length - 1]]);
|
|
216
|
+
} else if (k.array) {
|
|
217
|
+
const M = r.value[r.value.length - 1];
|
|
218
218
|
if (M === void 0) {
|
|
219
219
|
console.assert(!1, "invalid last key");
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
222
|
if (typeof M == "string") {
|
|
223
|
-
const N = me(e.value,
|
|
223
|
+
const N = me(e.value, r.value.slice(0, -1));
|
|
224
224
|
if (!N)
|
|
225
225
|
return;
|
|
226
|
-
N[
|
|
226
|
+
N[r.value[r.value.length - 1]] = q(k), o(r.value, N[r.value[r.value.length - 1]]);
|
|
227
227
|
} else {
|
|
228
|
-
const N = me(e.value,
|
|
228
|
+
const N = me(e.value, r.value);
|
|
229
229
|
if (!N)
|
|
230
230
|
return;
|
|
231
|
-
|
|
232
|
-
N[Q.key] = q(
|
|
231
|
+
k.children.forEach((Q) => {
|
|
232
|
+
N[Q.key] = q(k), o([...r.value, Q.key], N[Q.key]);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
} else {
|
|
236
|
-
const M = me(e.value,
|
|
236
|
+
const M = me(e.value, r.value);
|
|
237
237
|
if (!M)
|
|
238
238
|
return;
|
|
239
|
-
|
|
240
|
-
M[N.key] = q(
|
|
239
|
+
k.children.forEach((N) => {
|
|
240
|
+
M[N.key] = q(k), o([...r.value, N.key], M[N.key]);
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
};
|
|
@@ -247,8 +247,8 @@ const Ht = /* @__PURE__ */ R({
|
|
|
247
247
|
});
|
|
248
248
|
}, d = (P) => {
|
|
249
249
|
const T = () => {
|
|
250
|
-
const w =
|
|
251
|
-
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: w, object:
|
|
250
|
+
const w = ke(n.value, r.value), k = me(e.value, r.value);
|
|
251
|
+
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: w, object: k }));
|
|
252
252
|
};
|
|
253
253
|
P.push({
|
|
254
254
|
title: s("x-prop-tree.copy"),
|
|
@@ -256,11 +256,11 @@ const Ht = /* @__PURE__ */ R({
|
|
|
256
256
|
});
|
|
257
257
|
}, y = (P) => {
|
|
258
258
|
const T = () => {
|
|
259
|
-
const
|
|
260
|
-
if (!
|
|
259
|
+
const k = localStorage.getItem("propTreeCopy");
|
|
260
|
+
if (!k)
|
|
261
261
|
return !1;
|
|
262
262
|
try {
|
|
263
|
-
const { prop: M } = JSON.parse(
|
|
263
|
+
const { prop: M } = JSON.parse(k), N = ke(n.value, r.value);
|
|
264
264
|
return $t(M, N);
|
|
265
265
|
} catch (M) {
|
|
266
266
|
console.error(M);
|
|
@@ -269,10 +269,10 @@ const Ht = /* @__PURE__ */ R({
|
|
|
269
269
|
}, w = () => {
|
|
270
270
|
if (!T())
|
|
271
271
|
return;
|
|
272
|
-
const
|
|
273
|
-
if (
|
|
272
|
+
const k = localStorage.getItem("propTreeCopy");
|
|
273
|
+
if (k)
|
|
274
274
|
try {
|
|
275
|
-
const { object: M } = JSON.parse(
|
|
275
|
+
const { object: M } = JSON.parse(k), N = ke(n.value, r.value);
|
|
276
276
|
console.log(M, N);
|
|
277
277
|
} catch (M) {
|
|
278
278
|
console.error(M);
|
|
@@ -285,14 +285,14 @@ const Ht = /* @__PURE__ */ R({
|
|
|
285
285
|
}, g = K(() => {
|
|
286
286
|
const P = [];
|
|
287
287
|
return f(P), d(P), y(P), P;
|
|
288
|
-
}),
|
|
289
|
-
i.value = P.x,
|
|
290
|
-
}, { open:
|
|
288
|
+
}), V = (P) => {
|
|
289
|
+
i.value = P.x, u.value = P.y, r.value = P.keys;
|
|
290
|
+
}, { open: x } = xe("propTreeMenu", V);
|
|
291
291
|
return (P, T) => {
|
|
292
|
-
const w =
|
|
292
|
+
const w = U("v-list-item-title"), k = U("v-list-item"), M = U("v-list"), N = U("v-menu");
|
|
293
293
|
return C(), B(N, {
|
|
294
|
-
modelValue: L(
|
|
295
|
-
"onUpdate:modelValue": T[0] || (T[0] = (Q) => ve(
|
|
294
|
+
modelValue: L(x),
|
|
295
|
+
"onUpdate:modelValue": T[0] || (T[0] = (Q) => ve(x) ? x.value = Q : null),
|
|
296
296
|
"location-strategy": "connected",
|
|
297
297
|
scrim: "transparent",
|
|
298
298
|
target: a.value
|
|
@@ -300,7 +300,7 @@ const Ht = /* @__PURE__ */ R({
|
|
|
300
300
|
default: J(() => [
|
|
301
301
|
D(M, null, {
|
|
302
302
|
default: J(() => [
|
|
303
|
-
(C(!0), E(Ve, null, Be(g.value, (Q, Pe) => (C(), B(
|
|
303
|
+
(C(!0), E(Ve, null, Be(g.value, (Q, Pe) => (C(), B(k, {
|
|
304
304
|
key: Pe,
|
|
305
305
|
link: "",
|
|
306
306
|
onClick: Q.func
|
|
@@ -323,7 +323,7 @@ const Ht = /* @__PURE__ */ R({
|
|
|
323
323
|
}, 8, ["modelValue", "target"]);
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
}), Ft = { style: { pointerEvents: "none" } },
|
|
326
|
+
}), Ft = { style: { pointerEvents: "none" } }, _e = /* @__PURE__ */ R({
|
|
327
327
|
__name: "title",
|
|
328
328
|
props: {
|
|
329
329
|
title: {},
|
|
@@ -333,51 +333,51 @@ const Ht = /* @__PURE__ */ R({
|
|
|
333
333
|
index: { default: 0 }
|
|
334
334
|
},
|
|
335
335
|
emits: ["collapse", "menu", "create", "delete"],
|
|
336
|
-
setup(
|
|
337
|
-
const { backgroundColor2:
|
|
338
|
-
background: o.value ? e.value :
|
|
336
|
+
setup(t, { emit: s }) {
|
|
337
|
+
const { backgroundColor2: n, highlightColor: e } = ie(), l = s, o = O(!1), i = K(() => ({
|
|
338
|
+
background: o.value ? e.value : n.value,
|
|
339
339
|
height: "36px",
|
|
340
340
|
marginBottom: "1px",
|
|
341
341
|
userSelect: "none"
|
|
342
|
-
})),
|
|
343
|
-
|
|
344
|
-
},
|
|
345
|
-
|
|
342
|
+
})), u = () => {
|
|
343
|
+
l("collapse", !t.collapse);
|
|
344
|
+
}, r = (a) => {
|
|
345
|
+
l("menu", a.clientX, a.clientY);
|
|
346
346
|
};
|
|
347
347
|
return (a, f) => {
|
|
348
|
-
const d =
|
|
348
|
+
const d = U("v-icon"), y = U("v-spacer"), g = U("v-btn"), V = le("ripple");
|
|
349
349
|
return ee((C(), E("div", {
|
|
350
350
|
class: "d-flex align-center cursor-pointer",
|
|
351
351
|
style: I(i.value),
|
|
352
|
-
onClick:
|
|
353
|
-
onContextmenu: X(
|
|
354
|
-
onMouseout: f[2] || (f[2] = (
|
|
355
|
-
onMouseover: f[3] || (f[3] = (
|
|
352
|
+
onClick: u,
|
|
353
|
+
onContextmenu: X(r, ["self", "prevent"]),
|
|
354
|
+
onMouseout: f[2] || (f[2] = (x) => o.value = !1),
|
|
355
|
+
onMouseover: f[3] || (f[3] = (x) => o.value = !0)
|
|
356
356
|
}, [
|
|
357
357
|
D(d, {
|
|
358
358
|
class: "mr-1",
|
|
359
|
-
icon:
|
|
359
|
+
icon: t.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
|
|
360
360
|
}, null, 8, ["icon"]),
|
|
361
|
-
F("span", Ft, W(
|
|
361
|
+
F("span", Ft, W(t.title), 1),
|
|
362
362
|
D(y),
|
|
363
|
-
|
|
363
|
+
t.hasCreate ? (C(), B(g, {
|
|
364
364
|
key: 0,
|
|
365
365
|
class: "mx-3",
|
|
366
366
|
density: "compact",
|
|
367
367
|
icon: "mdi-plus",
|
|
368
368
|
variant: "text",
|
|
369
|
-
onClick: f[0] || (f[0] = X((
|
|
369
|
+
onClick: f[0] || (f[0] = X((x) => l("create"), ["stop"]))
|
|
370
370
|
})) : G("", !0),
|
|
371
|
-
|
|
371
|
+
t.hasDelete ? (C(), B(g, {
|
|
372
372
|
key: 1,
|
|
373
373
|
class: "mx-3",
|
|
374
374
|
density: "compact",
|
|
375
375
|
icon: "mdi-minus",
|
|
376
376
|
variant: "text",
|
|
377
|
-
onClick: f[1] || (f[1] = X((
|
|
377
|
+
onClick: f[1] || (f[1] = X((x) => l("delete", t.index), ["stop"]))
|
|
378
378
|
})) : G("", !0)
|
|
379
379
|
], 36)), [
|
|
380
|
-
[
|
|
380
|
+
[V]
|
|
381
381
|
]);
|
|
382
382
|
};
|
|
383
383
|
}
|
|
@@ -387,38 +387,38 @@ const Ht = /* @__PURE__ */ R({
|
|
|
387
387
|
minHeight: {}
|
|
388
388
|
},
|
|
389
389
|
emits: ["menu"],
|
|
390
|
-
setup(
|
|
391
|
-
const { backgroundColor2:
|
|
392
|
-
background: o.value ? e.value :
|
|
393
|
-
minHeight:
|
|
390
|
+
setup(t, { emit: s }) {
|
|
391
|
+
const { backgroundColor2: n, highlightColor: e } = ie(), l = s, o = O(!1), i = K(() => ({
|
|
392
|
+
background: o.value ? e.value : n.value,
|
|
393
|
+
minHeight: t.minHeight,
|
|
394
394
|
paddingRight: "4px",
|
|
395
395
|
marginBottom: "1px",
|
|
396
396
|
userSelect: "none"
|
|
397
|
-
})),
|
|
398
|
-
|
|
397
|
+
})), u = (r) => {
|
|
398
|
+
l("menu", r.clientX, r.clientY);
|
|
399
399
|
};
|
|
400
|
-
return (
|
|
400
|
+
return (r, a) => {
|
|
401
401
|
const f = le("ripple");
|
|
402
402
|
return ee((C(), E("div", {
|
|
403
403
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
404
404
|
style: I(i.value),
|
|
405
|
-
onContextmenu: X(
|
|
405
|
+
onContextmenu: X(u, ["self", "prevent"]),
|
|
406
406
|
onMouseout: a[0] || (a[0] = (d) => o.value = !1),
|
|
407
407
|
onMouseover: a[1] || (a[1] = (d) => o.value = !0)
|
|
408
408
|
}, [
|
|
409
|
-
ft(
|
|
409
|
+
ft(r.$slots, "default")
|
|
410
410
|
], 36)), [
|
|
411
411
|
[f]
|
|
412
412
|
]);
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
|
-
function zt(
|
|
416
|
+
function zt(t, s, n) {
|
|
417
417
|
const { t: e } = te();
|
|
418
|
-
return { renderProp: (o, i,
|
|
419
|
-
const
|
|
420
|
-
let f = typeof
|
|
421
|
-
return ae(
|
|
418
|
+
return { renderProp: (o, i, u) => {
|
|
419
|
+
const r = o[o.length - 1];
|
|
420
|
+
let f = typeof r == "number" ? `[${r + 1}]` : e(i.name);
|
|
421
|
+
return ae(t.value, o) && (f += " *"), h(
|
|
422
422
|
Xt,
|
|
423
423
|
{
|
|
424
424
|
minHeight: s.value,
|
|
@@ -431,48 +431,48 @@ function zt(l, s, t) {
|
|
|
431
431
|
style: { marginLeft: "4px", pointerEvents: "none" },
|
|
432
432
|
innerHTML: f
|
|
433
433
|
}),
|
|
434
|
-
h("div", { style: { width:
|
|
434
|
+
h("div", { style: { width: n.value } }, u)
|
|
435
435
|
]
|
|
436
436
|
);
|
|
437
437
|
} };
|
|
438
438
|
}
|
|
439
|
-
const ne = (
|
|
440
|
-
if (
|
|
439
|
+
const ne = (t, s, n, e, l, o) => {
|
|
440
|
+
if (l !== void 0)
|
|
441
441
|
if (o) {
|
|
442
|
-
if (
|
|
442
|
+
if (n[s.key] === void 0) {
|
|
443
443
|
const i = q(s);
|
|
444
|
-
i !== void 0 && (
|
|
444
|
+
i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
|
|
445
445
|
}
|
|
446
|
-
return
|
|
446
|
+
return n[s.key];
|
|
447
447
|
} else {
|
|
448
|
-
if (
|
|
448
|
+
if (n[l] === void 0) {
|
|
449
449
|
const i = q(s, !0);
|
|
450
|
-
i !== void 0 && (
|
|
450
|
+
i !== void 0 && (n[l] = i, e(t, n[l]));
|
|
451
451
|
}
|
|
452
|
-
return
|
|
452
|
+
return n[l];
|
|
453
453
|
}
|
|
454
454
|
else {
|
|
455
|
-
if (
|
|
455
|
+
if (n[s.key] === void 0) {
|
|
456
456
|
const i = q(s);
|
|
457
|
-
i !== void 0 && (
|
|
457
|
+
i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
|
|
458
458
|
}
|
|
459
|
-
return
|
|
459
|
+
return n[s.key];
|
|
460
460
|
}
|
|
461
|
-
}, oe = (
|
|
461
|
+
}, oe = (t, s, n, e, l, o, i) => {
|
|
462
462
|
if (o !== void 0)
|
|
463
|
-
i ? e !==
|
|
463
|
+
i ? e !== n[s.key] && (n[s.key] = e, l(t, n[s.key])) : e !== n[o] && (n[o] = e, l(t, n[o]));
|
|
464
464
|
else {
|
|
465
|
-
let
|
|
466
|
-
(s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (
|
|
465
|
+
let u = e;
|
|
466
|
+
(s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (u = void 0)), u !== n[s.key] && (n[s.key] = u, l(t, n[s.key]));
|
|
467
467
|
}
|
|
468
468
|
};
|
|
469
|
-
function Gt(
|
|
470
|
-
return { renderUiDummy: (
|
|
469
|
+
function Gt(t) {
|
|
470
|
+
return { renderUiDummy: (n, e, l, o, i) => {
|
|
471
471
|
if (e.ui !== "dummy") {
|
|
472
472
|
console.assert(!1, "renderUiDummy prop ui must be dummy");
|
|
473
473
|
return;
|
|
474
474
|
}
|
|
475
|
-
ne(
|
|
475
|
+
ne(n, e, l, t, o, i);
|
|
476
476
|
} };
|
|
477
477
|
}
|
|
478
478
|
const Yt = { class: "d-flex justify-space-between align-center" }, Wt = /* @__PURE__ */ R({
|
|
@@ -485,25 +485,25 @@ const Yt = { class: "d-flex justify-space-between align-center" }, Wt = /* @__PU
|
|
|
485
485
|
modelModifiers: {}
|
|
486
486
|
}),
|
|
487
487
|
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
488
|
-
setup(
|
|
489
|
-
const { isMobile:
|
|
490
|
-
if (!i ||
|
|
488
|
+
setup(t, { emit: s }) {
|
|
489
|
+
const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
|
|
490
|
+
if (!i || t.readonly || !n())
|
|
491
491
|
return;
|
|
492
|
-
const
|
|
492
|
+
const u = await yt({
|
|
493
493
|
title: "",
|
|
494
494
|
value: e.value
|
|
495
495
|
});
|
|
496
|
-
|
|
496
|
+
u !== void 0 && (e.value = u);
|
|
497
497
|
};
|
|
498
|
-
return (i,
|
|
499
|
-
const
|
|
498
|
+
return (i, u) => {
|
|
499
|
+
const r = U("v-text-field"), a = U("v-btn"), f = le("ripple");
|
|
500
500
|
return C(), E("div", Yt, [
|
|
501
|
-
ee(D(
|
|
501
|
+
ee(D(r, {
|
|
502
502
|
modelValue: e.value,
|
|
503
|
-
"onUpdate:modelValue":
|
|
503
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => e.value = d),
|
|
504
504
|
density: "compact",
|
|
505
505
|
"hide-details": "",
|
|
506
|
-
readonly:
|
|
506
|
+
readonly: t.readonly,
|
|
507
507
|
"single-line": "",
|
|
508
508
|
"onUpdate:focused": o
|
|
509
509
|
}, null, 8, ["modelValue", "readonly"]), [
|
|
@@ -514,42 +514,42 @@ const Yt = { class: "d-flex justify-space-between align-center" }, Wt = /* @__PU
|
|
|
514
514
|
{ stop: !0 }
|
|
515
515
|
]
|
|
516
516
|
]),
|
|
517
|
-
|
|
517
|
+
t.hasDelete ? (C(), B(a, {
|
|
518
518
|
key: 0,
|
|
519
519
|
class: "mx-2",
|
|
520
520
|
density: "compact",
|
|
521
521
|
icon: "mdi-minus",
|
|
522
522
|
variant: "text",
|
|
523
|
-
onClick:
|
|
523
|
+
onClick: u[1] || (u[1] = X((d) => l("delete"), ["stop"]))
|
|
524
524
|
})) : G("", !0)
|
|
525
525
|
]);
|
|
526
526
|
};
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
|
-
function Qt(
|
|
530
|
-
return { renderUiStrInput: (
|
|
529
|
+
function Qt(t) {
|
|
530
|
+
return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput prop ui must be strInput")) : h(Wt, {
|
|
531
531
|
modelValue: e.static ? e.value : ne(
|
|
532
|
-
t,
|
|
533
|
-
e,
|
|
534
532
|
n,
|
|
533
|
+
e,
|
|
535
534
|
l,
|
|
535
|
+
t,
|
|
536
536
|
o,
|
|
537
537
|
i
|
|
538
538
|
),
|
|
539
|
-
"onUpdate:modelValue": (
|
|
539
|
+
"onUpdate:modelValue": (u) => {
|
|
540
540
|
e.static || oe(
|
|
541
|
-
t,
|
|
542
|
-
e,
|
|
543
541
|
n,
|
|
544
|
-
|
|
542
|
+
e,
|
|
545
543
|
l,
|
|
544
|
+
u,
|
|
545
|
+
t,
|
|
546
546
|
o,
|
|
547
547
|
i
|
|
548
548
|
);
|
|
549
549
|
},
|
|
550
550
|
hasDelete: o !== void 0 && !i,
|
|
551
551
|
onDelete: () => {
|
|
552
|
-
o === void 0 || i || (
|
|
552
|
+
o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
|
|
553
553
|
},
|
|
554
554
|
readonly: e.static || e.readonly
|
|
555
555
|
}) };
|
|
@@ -569,35 +569,35 @@ const Zt = { class: "d-flex justify-space-between align-center" }, jt = /* @__PU
|
|
|
569
569
|
modelModifiers: {}
|
|
570
570
|
}),
|
|
571
571
|
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
572
|
-
setup(
|
|
573
|
-
const { isMobile:
|
|
574
|
-
if (!i ||
|
|
572
|
+
setup(t, { emit: s }) {
|
|
573
|
+
const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
|
|
574
|
+
if (!i || t.readonly || !n())
|
|
575
575
|
return;
|
|
576
|
-
const
|
|
576
|
+
const u = await Re({
|
|
577
577
|
title: "",
|
|
578
578
|
value: e.value,
|
|
579
|
-
precision:
|
|
580
|
-
min:
|
|
581
|
-
max:
|
|
582
|
-
step:
|
|
579
|
+
precision: t.precision,
|
|
580
|
+
min: t.min,
|
|
581
|
+
max: t.max,
|
|
582
|
+
step: t.step
|
|
583
583
|
});
|
|
584
|
-
|
|
584
|
+
u !== void 0 && (e.value = u);
|
|
585
585
|
};
|
|
586
|
-
return (i,
|
|
587
|
-
const
|
|
586
|
+
return (i, u) => {
|
|
587
|
+
const r = U("v-number-input"), a = U("v-btn"), f = le("ripple");
|
|
588
588
|
return C(), E("div", Zt, [
|
|
589
|
-
ee(D(
|
|
589
|
+
ee(D(r, {
|
|
590
590
|
modelValue: e.value,
|
|
591
|
-
"onUpdate:modelValue":
|
|
591
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => e.value = d),
|
|
592
592
|
"control-variant": "stacked",
|
|
593
593
|
density: "compact",
|
|
594
594
|
"hide-details": "",
|
|
595
|
-
max:
|
|
596
|
-
min:
|
|
597
|
-
precision:
|
|
598
|
-
readonly:
|
|
595
|
+
max: t.max,
|
|
596
|
+
min: t.min,
|
|
597
|
+
precision: t.precision,
|
|
598
|
+
readonly: t.readonly,
|
|
599
599
|
"single-line": "",
|
|
600
|
-
step:
|
|
600
|
+
step: t.step,
|
|
601
601
|
"onUpdate:focused": o
|
|
602
602
|
}, null, 8, ["modelValue", "max", "min", "precision", "readonly", "step"]), [
|
|
603
603
|
[
|
|
@@ -607,42 +607,42 @@ const Zt = { class: "d-flex justify-space-between align-center" }, jt = /* @__PU
|
|
|
607
607
|
{ stop: !0 }
|
|
608
608
|
]
|
|
609
609
|
]),
|
|
610
|
-
|
|
610
|
+
t.hasDelete ? (C(), B(a, {
|
|
611
611
|
key: 0,
|
|
612
612
|
class: "mx-2",
|
|
613
613
|
density: "compact",
|
|
614
614
|
icon: "mdi-minus",
|
|
615
615
|
variant: "text",
|
|
616
|
-
onClick:
|
|
616
|
+
onClick: u[1] || (u[1] = X((d) => l("delete"), ["stop"]))
|
|
617
617
|
})) : G("", !0)
|
|
618
618
|
]);
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
621
|
});
|
|
622
|
-
function It(
|
|
623
|
-
return { renderUiNumInput: (
|
|
622
|
+
function It(t) {
|
|
623
|
+
return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput prop ui must be numInput")) : h(jt, {
|
|
624
624
|
modelValue: ne(
|
|
625
|
-
t,
|
|
626
|
-
e,
|
|
627
625
|
n,
|
|
626
|
+
e,
|
|
628
627
|
l,
|
|
628
|
+
t,
|
|
629
629
|
o,
|
|
630
630
|
i
|
|
631
631
|
),
|
|
632
|
-
"onUpdate:modelValue": (
|
|
632
|
+
"onUpdate:modelValue": (u) => {
|
|
633
633
|
oe(
|
|
634
|
-
t,
|
|
635
|
-
e,
|
|
636
634
|
n,
|
|
637
|
-
|
|
635
|
+
e,
|
|
638
636
|
l,
|
|
637
|
+
u,
|
|
638
|
+
t,
|
|
639
639
|
o,
|
|
640
640
|
i
|
|
641
641
|
);
|
|
642
642
|
},
|
|
643
643
|
hasDelete: o !== void 0 && !i,
|
|
644
644
|
onDelete: () => {
|
|
645
|
-
o === void 0 || i || (
|
|
645
|
+
o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
|
|
646
646
|
},
|
|
647
647
|
precision: e.precision,
|
|
648
648
|
min: e.min,
|
|
@@ -661,56 +661,56 @@ const en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PU
|
|
|
661
661
|
modelModifiers: {}
|
|
662
662
|
}),
|
|
663
663
|
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
664
|
-
setup(
|
|
665
|
-
const
|
|
666
|
-
return (
|
|
667
|
-
const i =
|
|
664
|
+
setup(t, { emit: s }) {
|
|
665
|
+
const n = z(t, "modelValue"), e = s;
|
|
666
|
+
return (l, o) => {
|
|
667
|
+
const i = U("v-switch"), u = U("v-btn");
|
|
668
668
|
return C(), E("div", en, [
|
|
669
669
|
D(i, {
|
|
670
|
-
modelValue:
|
|
671
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
670
|
+
modelValue: n.value,
|
|
671
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => n.value = r),
|
|
672
672
|
class: "ml-1",
|
|
673
673
|
color: "primary",
|
|
674
674
|
density: "compact",
|
|
675
675
|
"hide-details": "",
|
|
676
|
-
readonly:
|
|
676
|
+
readonly: t.readonly
|
|
677
677
|
}, null, 8, ["modelValue", "readonly"]),
|
|
678
|
-
|
|
678
|
+
t.hasDelete ? (C(), B(u, {
|
|
679
679
|
key: 0,
|
|
680
680
|
class: "mx-2",
|
|
681
681
|
density: "compact",
|
|
682
682
|
icon: "mdi-minus",
|
|
683
683
|
variant: "text",
|
|
684
|
-
onClick: o[1] || (o[1] = X((
|
|
684
|
+
onClick: o[1] || (o[1] = X((r) => e("delete"), ["stop"]))
|
|
685
685
|
})) : G("", !0)
|
|
686
686
|
]);
|
|
687
687
|
};
|
|
688
688
|
}
|
|
689
689
|
});
|
|
690
|
-
function nn(
|
|
691
|
-
return { renderUiSwitch: (
|
|
690
|
+
function nn(t) {
|
|
691
|
+
return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), h("div", "renderUiSwitch prop ui must be switch")) : h(tn, {
|
|
692
692
|
modelValue: ne(
|
|
693
|
-
t,
|
|
694
|
-
e,
|
|
695
693
|
n,
|
|
694
|
+
e,
|
|
696
695
|
l,
|
|
696
|
+
t,
|
|
697
697
|
o,
|
|
698
698
|
i
|
|
699
699
|
) ?? !1,
|
|
700
|
-
"onUpdate:modelValue": (
|
|
700
|
+
"onUpdate:modelValue": (u) => {
|
|
701
701
|
oe(
|
|
702
|
-
t,
|
|
703
|
-
e,
|
|
704
702
|
n,
|
|
705
|
-
|
|
703
|
+
e,
|
|
706
704
|
l,
|
|
705
|
+
u,
|
|
706
|
+
t,
|
|
707
707
|
o,
|
|
708
708
|
i
|
|
709
709
|
);
|
|
710
710
|
},
|
|
711
711
|
hasDelete: o !== void 0 && !i,
|
|
712
712
|
onDelete: () => {
|
|
713
|
-
o === void 0 || i || (
|
|
713
|
+
o === void 0 || i || (l.splice(o, 1), t(n.slice(0, 1), l));
|
|
714
714
|
},
|
|
715
715
|
readonly: e.readonly
|
|
716
716
|
}) };
|
|
@@ -726,23 +726,23 @@ const ln = { class: "d-flex justify-space-between align-center" }, on = /* @__PU
|
|
|
726
726
|
modelModifiers: {}
|
|
727
727
|
}),
|
|
728
728
|
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
729
|
-
setup(
|
|
730
|
-
const { t } = te(), e = z(
|
|
731
|
-
const
|
|
732
|
-
return Fe[o.value]?.items[
|
|
733
|
-
|
|
734
|
-
}),
|
|
729
|
+
setup(t, { emit: s }) {
|
|
730
|
+
const { t: n } = te(), e = z(t, "modelValue"), l = s, o = Te(), i = K(() => {
|
|
731
|
+
const u = [];
|
|
732
|
+
return Fe[o.value]?.items[t.items].forEach(({ title: r, value: a }) => {
|
|
733
|
+
u.push({ title: n(r), value: a });
|
|
734
|
+
}), u;
|
|
735
735
|
});
|
|
736
|
-
return (
|
|
737
|
-
const a =
|
|
736
|
+
return (u, r) => {
|
|
737
|
+
const a = U("v-select"), f = U("v-btn"), d = le("ripple");
|
|
738
738
|
return C(), E("div", ln, [
|
|
739
739
|
ee(D(a, {
|
|
740
740
|
modelValue: e.value,
|
|
741
|
-
"onUpdate:modelValue":
|
|
741
|
+
"onUpdate:modelValue": r[0] || (r[0] = (y) => e.value = y),
|
|
742
742
|
density: "compact",
|
|
743
743
|
"hide-details": "",
|
|
744
744
|
items: i.value,
|
|
745
|
-
readonly:
|
|
745
|
+
readonly: t.readonly,
|
|
746
746
|
"single-line": ""
|
|
747
747
|
}, null, 8, ["modelValue", "items", "readonly"]), [
|
|
748
748
|
[
|
|
@@ -752,42 +752,42 @@ const ln = { class: "d-flex justify-space-between align-center" }, on = /* @__PU
|
|
|
752
752
|
{ stop: !0 }
|
|
753
753
|
]
|
|
754
754
|
]),
|
|
755
|
-
|
|
755
|
+
t.hasDelete ? (C(), B(f, {
|
|
756
756
|
key: 0,
|
|
757
757
|
class: "mx-2",
|
|
758
758
|
density: "compact",
|
|
759
759
|
icon: "mdi-minus",
|
|
760
760
|
variant: "text",
|
|
761
|
-
onClick:
|
|
761
|
+
onClick: r[1] || (r[1] = X((y) => l("delete"), ["stop"]))
|
|
762
762
|
})) : G("", !0)
|
|
763
763
|
]);
|
|
764
764
|
};
|
|
765
765
|
}
|
|
766
766
|
});
|
|
767
|
-
function sn(
|
|
768
|
-
return { renderUiSelect: (
|
|
767
|
+
function sn(t) {
|
|
768
|
+
return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), h("div", "renderUiSelect prop ui must be select")) : h(on, {
|
|
769
769
|
modelValue: ne(
|
|
770
|
-
t,
|
|
771
|
-
e,
|
|
772
770
|
n,
|
|
771
|
+
e,
|
|
773
772
|
l,
|
|
773
|
+
t,
|
|
774
774
|
o,
|
|
775
775
|
i
|
|
776
776
|
) ?? "",
|
|
777
|
-
"onUpdate:modelValue": (
|
|
777
|
+
"onUpdate:modelValue": (u) => {
|
|
778
778
|
oe(
|
|
779
|
-
t,
|
|
780
|
-
e,
|
|
781
779
|
n,
|
|
782
|
-
|
|
780
|
+
e,
|
|
783
781
|
l,
|
|
782
|
+
u,
|
|
783
|
+
t,
|
|
784
784
|
o,
|
|
785
785
|
i
|
|
786
786
|
);
|
|
787
787
|
},
|
|
788
788
|
hasDelete: o !== void 0 && !i,
|
|
789
789
|
onDelete: () => {
|
|
790
|
-
o === void 0 || i || (
|
|
790
|
+
o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
|
|
791
791
|
},
|
|
792
792
|
items: e.items,
|
|
793
793
|
readonly: e.readonly
|
|
@@ -802,28 +802,28 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
|
|
|
802
802
|
count: {}
|
|
803
803
|
},
|
|
804
804
|
emits: ["x-click"],
|
|
805
|
-
setup(
|
|
806
|
-
const { backgroundColor2:
|
|
807
|
-
background: i.value ? e.value :
|
|
805
|
+
setup(t, { emit: s }) {
|
|
806
|
+
const { backgroundColor2: n, highlightColor: e } = ie(), l = t, o = s, i = O(!1), u = K(() => ({
|
|
807
|
+
background: i.value ? e.value : n.value,
|
|
808
808
|
height: "30px",
|
|
809
809
|
marginBottom: "1px",
|
|
810
810
|
userSelect: "none"
|
|
811
811
|
}));
|
|
812
|
-
return (
|
|
813
|
-
const f =
|
|
812
|
+
return (r, a) => {
|
|
813
|
+
const f = U("v-icon"), d = le("ripple");
|
|
814
814
|
return ee((C(), E("div", {
|
|
815
815
|
class: "d-flex align-center cursor-pointer",
|
|
816
|
-
style: I(
|
|
817
|
-
onClick: a[0] || (a[0] = (y) => o("x-click",
|
|
816
|
+
style: I(u.value),
|
|
817
|
+
onClick: a[0] || (a[0] = (y) => o("x-click", l.id)),
|
|
818
818
|
onMouseout: a[1] || (a[1] = (y) => i.value = !1),
|
|
819
819
|
onMouseover: a[2] || (a[2] = (y) => i.value = !0)
|
|
820
820
|
}, [
|
|
821
821
|
D(f, {
|
|
822
|
-
icon:
|
|
822
|
+
icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
823
823
|
size: "small"
|
|
824
824
|
}, null, 8, ["icon"]),
|
|
825
|
-
F("span", rn, W(
|
|
826
|
-
F("span", un, W(
|
|
825
|
+
F("span", rn, W(l.title), 1),
|
|
826
|
+
F("span", un, W(l.count), 1)
|
|
827
827
|
], 36)), [
|
|
828
828
|
[d]
|
|
829
829
|
]);
|
|
@@ -836,23 +836,23 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
|
|
|
836
836
|
title: {}
|
|
837
837
|
},
|
|
838
838
|
emits: ["x-click"],
|
|
839
|
-
setup(
|
|
840
|
-
const { backgroundColor2:
|
|
841
|
-
background: i.value ? e.value :
|
|
839
|
+
setup(t, { emit: s }) {
|
|
840
|
+
const { backgroundColor2: n, highlightColor: e } = ie(), l = t, o = s, i = O(!1), u = K(() => ({
|
|
841
|
+
background: i.value ? e.value : n.value,
|
|
842
842
|
height: "48px",
|
|
843
843
|
marginBottom: "1px",
|
|
844
844
|
userSelect: "none"
|
|
845
845
|
}));
|
|
846
|
-
return (
|
|
846
|
+
return (r, a) => {
|
|
847
847
|
const f = le("ripple");
|
|
848
848
|
return ee((C(), E("div", {
|
|
849
849
|
class: "d-flex align-center cursor-pointer",
|
|
850
|
-
style: I(
|
|
851
|
-
onClick: a[0] || (a[0] = (d) => o("x-click",
|
|
850
|
+
style: I(u.value),
|
|
851
|
+
onClick: a[0] || (a[0] = (d) => o("x-click", l.id)),
|
|
852
852
|
onMouseout: a[1] || (a[1] = (d) => i.value = !1),
|
|
853
853
|
onMouseover: a[2] || (a[2] = (d) => i.value = !0)
|
|
854
854
|
}, [
|
|
855
|
-
F("span", cn, W(
|
|
855
|
+
F("span", cn, W(l.title), 1)
|
|
856
856
|
], 36)), [
|
|
857
857
|
[f]
|
|
858
858
|
]);
|
|
@@ -870,15 +870,15 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
|
|
|
870
870
|
openModifiers: {}
|
|
871
871
|
},
|
|
872
872
|
emits: ["update:modelValue", "update:open"],
|
|
873
|
-
setup(
|
|
874
|
-
const { t: s } = te(),
|
|
875
|
-
const
|
|
876
|
-
|
|
877
|
-
}, i = (
|
|
878
|
-
|
|
873
|
+
setup(t) {
|
|
874
|
+
const { t: s } = te(), n = z(t, "modelValue"), e = z(t, "open"), l = Ze(), o = (u) => {
|
|
875
|
+
const r = He(l, u);
|
|
876
|
+
r && kt(l, u, !r.collapse);
|
|
877
|
+
}, i = (u) => {
|
|
878
|
+
n.value = u, e.value = !1, ue.emit("refreshDepends");
|
|
879
879
|
};
|
|
880
|
-
return (
|
|
881
|
-
(C(!0), E(Ve, null, Be(L(
|
|
880
|
+
return (u, r) => L(l).length > 0 ? (C(), E("div", fn, [
|
|
881
|
+
(C(!0), E(Ve, null, Be(L(l), (a) => (C(), E(Ve, {
|
|
882
882
|
key: a.id
|
|
883
883
|
}, [
|
|
884
884
|
a.type === 0 ? (C(), B(an, {
|
|
@@ -905,15 +905,15 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
|
|
|
905
905
|
modelModifiers: {}
|
|
906
906
|
},
|
|
907
907
|
emits: ["update:modelValue"],
|
|
908
|
-
setup(
|
|
909
|
-
const { t: s } = te(),
|
|
908
|
+
setup(t) {
|
|
909
|
+
const { t: s } = te(), n = St(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = ie(), o = z(t, "modelValue"), i = Ze(), u = K(() => {
|
|
910
910
|
let y = "100%";
|
|
911
|
-
return
|
|
912
|
-
background:
|
|
911
|
+
return n.mdAndUp.value && (y = "400px"), {
|
|
912
|
+
background: l.value,
|
|
913
913
|
width: y,
|
|
914
914
|
height: "100%"
|
|
915
915
|
};
|
|
916
|
-
}),
|
|
916
|
+
}), r = K(() => {
|
|
917
917
|
let y = 48;
|
|
918
918
|
return e.value && (y += 24), {
|
|
919
919
|
position: "relative",
|
|
@@ -926,11 +926,11 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
|
|
|
926
926
|
return s("x-runtime-lib.notSet");
|
|
927
927
|
const y = He(i, o.value);
|
|
928
928
|
return y ? y.name : s("x-runtime-lib.compNotAvail");
|
|
929
|
-
}), { open: d } =
|
|
929
|
+
}), { open: d } = xe(`propTreeCompSelectDlg${we()}`);
|
|
930
930
|
return De(() => {
|
|
931
931
|
d.value = !1;
|
|
932
932
|
}), (y, g) => {
|
|
933
|
-
const
|
|
933
|
+
const V = U("v-btn"), x = U("v-sheet"), P = U("v-icon"), T = U("v-dialog");
|
|
934
934
|
return C(), B(T, {
|
|
935
935
|
modelValue: L(d),
|
|
936
936
|
"onUpdate:modelValue": g[5] || (g[5] = (w) => ve(d) ? d.value = w : null),
|
|
@@ -941,7 +941,7 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
|
|
|
941
941
|
onKeydown: g[6] || (g[6] = Ke(X((w) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
942
942
|
}, {
|
|
943
943
|
activator: J(({ props: w }) => [
|
|
944
|
-
D(
|
|
944
|
+
D(V, be(w, {
|
|
945
945
|
block: "",
|
|
946
946
|
density: "comfortable"
|
|
947
947
|
}), {
|
|
@@ -959,14 +959,14 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
|
|
|
959
959
|
}, [
|
|
960
960
|
F("div", {
|
|
961
961
|
class: "elevation-2",
|
|
962
|
-
style: I(
|
|
962
|
+
style: I(u.value)
|
|
963
963
|
}, [
|
|
964
|
-
L(e) ? (C(), B(
|
|
964
|
+
L(e) ? (C(), B(x, {
|
|
965
965
|
key: 0,
|
|
966
966
|
color: "transparent",
|
|
967
967
|
height: 24
|
|
968
968
|
})) : G("", !0),
|
|
969
|
-
D(
|
|
969
|
+
D(x, {
|
|
970
970
|
class: "d-flex align-center px-3",
|
|
971
971
|
color: "transparent",
|
|
972
972
|
height: 48
|
|
@@ -982,7 +982,7 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
|
|
|
982
982
|
}),
|
|
983
983
|
F("div", {
|
|
984
984
|
class: "overflow-y-auto",
|
|
985
|
-
style: I(
|
|
985
|
+
style: I(r.value)
|
|
986
986
|
}, [
|
|
987
987
|
D(vn, {
|
|
988
988
|
modelValue: o.value,
|
|
@@ -1002,30 +1002,30 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
|
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
});
|
|
1005
|
-
function gn(
|
|
1006
|
-
return { renderUiCompSelect: (
|
|
1005
|
+
function gn(t) {
|
|
1006
|
+
return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), h("div", "renderUiCompSelect prop ui must be compSelect")) : h(yn, {
|
|
1007
1007
|
modelValue: ne(
|
|
1008
|
-
t,
|
|
1009
|
-
e,
|
|
1010
1008
|
n,
|
|
1009
|
+
e,
|
|
1011
1010
|
l,
|
|
1011
|
+
t,
|
|
1012
1012
|
o,
|
|
1013
1013
|
i
|
|
1014
1014
|
),
|
|
1015
|
-
"onUpdate:modelValue": (
|
|
1015
|
+
"onUpdate:modelValue": (u) => {
|
|
1016
1016
|
oe(
|
|
1017
|
-
t,
|
|
1018
|
-
e,
|
|
1019
1017
|
n,
|
|
1020
|
-
|
|
1018
|
+
e,
|
|
1021
1019
|
l,
|
|
1020
|
+
u,
|
|
1021
|
+
t,
|
|
1022
1022
|
o,
|
|
1023
1023
|
i
|
|
1024
1024
|
);
|
|
1025
1025
|
}
|
|
1026
1026
|
}) };
|
|
1027
1027
|
}
|
|
1028
|
-
const hn = { class: "d-flex justify-space-between align-center" },
|
|
1028
|
+
const hn = { class: "d-flex justify-space-between align-center" }, kn = /* @__PURE__ */ R({
|
|
1029
1029
|
__name: "colorPicker",
|
|
1030
1030
|
props: /* @__PURE__ */ Y({
|
|
1031
1031
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1035,20 +1035,20 @@ const hn = { class: "d-flex justify-space-between align-center" }, _n = /* @__PU
|
|
|
1035
1035
|
modelModifiers: {}
|
|
1036
1036
|
}),
|
|
1037
1037
|
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
1038
|
-
setup(
|
|
1039
|
-
const { t } = te(), e = z(
|
|
1040
|
-
let
|
|
1041
|
-
return
|
|
1042
|
-
width:
|
|
1038
|
+
setup(t, { emit: s }) {
|
|
1039
|
+
const { t: n } = te(), e = z(t, "modelValue"), l = s, o = K(() => {
|
|
1040
|
+
let r = "100%";
|
|
1041
|
+
return t.hasDelete && (r = "calc(100% - 37px)"), {
|
|
1042
|
+
width: r
|
|
1043
1043
|
};
|
|
1044
|
-
}), i = K(() =>
|
|
1044
|
+
}), i = K(() => t.readonly), { open: u } = xe(`propTreeColorPickerMenu${we()}`);
|
|
1045
1045
|
return De(() => {
|
|
1046
|
-
|
|
1047
|
-
}), (
|
|
1048
|
-
const f =
|
|
1046
|
+
u.value = !1;
|
|
1047
|
+
}), (r, a) => {
|
|
1048
|
+
const f = U("v-btn"), d = U("v-color-picker"), y = U("v-menu");
|
|
1049
1049
|
return C(), B(y, {
|
|
1050
|
-
modelValue: L(
|
|
1051
|
-
"onUpdate:modelValue": a[2] || (a[2] = (g) => ve(
|
|
1050
|
+
modelValue: L(u),
|
|
1051
|
+
"onUpdate:modelValue": a[2] || (a[2] = (g) => ve(u) ? u.value = g : null),
|
|
1052
1052
|
"close-on-content-click": !1,
|
|
1053
1053
|
scrim: "transparent"
|
|
1054
1054
|
}, {
|
|
@@ -1065,18 +1065,18 @@ const hn = { class: "d-flex justify-space-between align-center" }, _n = /* @__PU
|
|
|
1065
1065
|
disabled: i.value
|
|
1066
1066
|
}), {
|
|
1067
1067
|
default: J(() => [
|
|
1068
|
-
Ce(W(e.value ? e.value : L(
|
|
1068
|
+
Ce(W(e.value ? e.value : L(n)("x-runtime-lib.notSet")), 1)
|
|
1069
1069
|
]),
|
|
1070
1070
|
_: 1
|
|
1071
1071
|
}, 16, ["color", "disabled"])
|
|
1072
1072
|
], 4),
|
|
1073
|
-
|
|
1073
|
+
t.hasDelete ? (C(), B(f, {
|
|
1074
1074
|
key: 0,
|
|
1075
1075
|
class: "mx-2",
|
|
1076
1076
|
density: "compact",
|
|
1077
1077
|
icon: "mdi-minus",
|
|
1078
1078
|
variant: "text",
|
|
1079
|
-
onClick: a[0] || (a[0] = X((
|
|
1079
|
+
onClick: a[0] || (a[0] = X((V) => l("delete"), ["stop"]))
|
|
1080
1080
|
})) : G("", !0)
|
|
1081
1081
|
])
|
|
1082
1082
|
]),
|
|
@@ -1094,35 +1094,35 @@ const hn = { class: "d-flex justify-space-between align-center" }, _n = /* @__PU
|
|
|
1094
1094
|
};
|
|
1095
1095
|
}
|
|
1096
1096
|
});
|
|
1097
|
-
function
|
|
1098
|
-
return { renderUiColorPicker: (
|
|
1097
|
+
function _n(t) {
|
|
1098
|
+
return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), h("div", "renderUiColorPicker prop ui must be colorPicker")) : h(kn, {
|
|
1099
1099
|
modelValue: ne(
|
|
1100
|
-
t,
|
|
1101
|
-
e,
|
|
1102
1100
|
n,
|
|
1101
|
+
e,
|
|
1103
1102
|
l,
|
|
1103
|
+
t,
|
|
1104
1104
|
o,
|
|
1105
1105
|
i
|
|
1106
1106
|
),
|
|
1107
|
-
"onUpdate:modelValue": (
|
|
1107
|
+
"onUpdate:modelValue": (u) => {
|
|
1108
1108
|
oe(
|
|
1109
|
-
t,
|
|
1110
|
-
e,
|
|
1111
1109
|
n,
|
|
1112
|
-
|
|
1110
|
+
e,
|
|
1113
1111
|
l,
|
|
1112
|
+
u,
|
|
1113
|
+
t,
|
|
1114
1114
|
o,
|
|
1115
1115
|
i
|
|
1116
1116
|
);
|
|
1117
1117
|
},
|
|
1118
1118
|
hasDelete: o !== void 0 && !i,
|
|
1119
1119
|
onDelete: () => {
|
|
1120
|
-
o === void 0 || i || (
|
|
1120
|
+
o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
|
|
1121
1121
|
},
|
|
1122
1122
|
readonly: e.readonly
|
|
1123
1123
|
}) };
|
|
1124
1124
|
}
|
|
1125
|
-
const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { class: "flex-grow-1" },
|
|
1125
|
+
const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { class: "flex-grow-1" }, xn = /* @__PURE__ */ R({
|
|
1126
1126
|
__name: "multiTypes",
|
|
1127
1127
|
props: /* @__PURE__ */ Y({
|
|
1128
1128
|
hasDelete: { type: Boolean, default: !1 },
|
|
@@ -1132,25 +1132,25 @@ const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { c
|
|
|
1132
1132
|
modelModifiers: {}
|
|
1133
1133
|
}),
|
|
1134
1134
|
emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
|
|
1135
|
-
setup(
|
|
1136
|
-
const { t } = te(), { isMobile: e } = pe(),
|
|
1137
|
-
const
|
|
1138
|
-
return
|
|
1139
|
-
|
|
1140
|
-
title:
|
|
1135
|
+
setup(t, { emit: s }) {
|
|
1136
|
+
const { t: n } = te(), { isMobile: e } = pe(), l = z(t, "modelValue"), o = s, i = Te(), u = K(() => Fe[i.value]?.types[t.types]), r = O(0), a = K(() => {
|
|
1137
|
+
const V = [];
|
|
1138
|
+
return u.value?.forEach(({ title: x }, P) => {
|
|
1139
|
+
V.push({
|
|
1140
|
+
title: n(x),
|
|
1141
1141
|
value: P
|
|
1142
1142
|
});
|
|
1143
|
-
}),
|
|
1143
|
+
}), V;
|
|
1144
1144
|
});
|
|
1145
1145
|
Ne(() => {
|
|
1146
|
-
|
|
1146
|
+
u.value?.some((V, x) => V.validator(l.value) ? (r.value = x, !0) : !1);
|
|
1147
1147
|
});
|
|
1148
|
-
const f = K(() =>
|
|
1149
|
-
|
|
1150
|
-
}, y = O(0), g = async (
|
|
1151
|
-
if (!
|
|
1148
|
+
const f = K(() => u.value?.[r.value]), d = () => {
|
|
1149
|
+
l.value = f.value?.default;
|
|
1150
|
+
}, y = O(0), g = async (V) => {
|
|
1151
|
+
if (!V || !e() || f.value.ui !== "pixelInput" && f.value.ui !== "percentInput")
|
|
1152
1152
|
return;
|
|
1153
|
-
const
|
|
1153
|
+
const x = await Re({
|
|
1154
1154
|
title: "",
|
|
1155
1155
|
value: y.value,
|
|
1156
1156
|
precision: f.value.precision,
|
|
@@ -1158,20 +1158,20 @@ const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { c
|
|
|
1158
1158
|
max: f.value.max,
|
|
1159
1159
|
step: f.value.step
|
|
1160
1160
|
});
|
|
1161
|
-
|
|
1161
|
+
x !== void 0 && (y.value = x);
|
|
1162
1162
|
};
|
|
1163
1163
|
return Ne(() => {
|
|
1164
|
-
f.value?.ui === "pixelInput" ? y.value = Vt(
|
|
1165
|
-
}), re(y, (
|
|
1166
|
-
f.value?.ui === "pixelInput" ?
|
|
1167
|
-
}), (
|
|
1168
|
-
const P =
|
|
1164
|
+
f.value?.ui === "pixelInput" ? y.value = Vt(l.value) : f.value?.ui === "percentInput" && (y.value = Ct(l.value));
|
|
1165
|
+
}), re(y, (V) => {
|
|
1166
|
+
f.value?.ui === "pixelInput" ? l.value = V + "px" : f.value?.ui === "percentInput" && (l.value = V + "%");
|
|
1167
|
+
}), (V, x) => {
|
|
1168
|
+
const P = U("v-select"), T = U("v-number-input"), w = U("v-btn"), k = le("ripple");
|
|
1169
1169
|
return C(), E("div", Vn, [
|
|
1170
1170
|
F("div", Cn, [
|
|
1171
1171
|
ee(D(P, {
|
|
1172
|
-
modelValue:
|
|
1172
|
+
modelValue: r.value,
|
|
1173
1173
|
"onUpdate:modelValue": [
|
|
1174
|
-
|
|
1174
|
+
x[0] || (x[0] = (M) => r.value = M),
|
|
1175
1175
|
d
|
|
1176
1176
|
],
|
|
1177
1177
|
density: "compact",
|
|
@@ -1180,7 +1180,7 @@ const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { c
|
|
|
1180
1180
|
"single-line": ""
|
|
1181
1181
|
}, null, 8, ["modelValue", "items"]), [
|
|
1182
1182
|
[
|
|
1183
|
-
|
|
1183
|
+
k,
|
|
1184
1184
|
void 0,
|
|
1185
1185
|
void 0,
|
|
1186
1186
|
{ stop: !0 }
|
|
@@ -1189,7 +1189,7 @@ const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { c
|
|
|
1189
1189
|
f.value?.ui === "pixelInput" || f.value?.ui === "percentInput" ? ee((C(), B(T, {
|
|
1190
1190
|
key: 0,
|
|
1191
1191
|
modelValue: y.value,
|
|
1192
|
-
"onUpdate:modelValue":
|
|
1192
|
+
"onUpdate:modelValue": x[1] || (x[1] = (M) => y.value = M),
|
|
1193
1193
|
"control-variant": "stacked",
|
|
1194
1194
|
density: "compact",
|
|
1195
1195
|
"hide-details": "",
|
|
@@ -1201,54 +1201,54 @@ const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { c
|
|
|
1201
1201
|
"onUpdate:focused": g
|
|
1202
1202
|
}, null, 8, ["modelValue", "max", "min", "precision", "step"])), [
|
|
1203
1203
|
[
|
|
1204
|
-
|
|
1204
|
+
k,
|
|
1205
1205
|
void 0,
|
|
1206
1206
|
void 0,
|
|
1207
1207
|
{ stop: !0 }
|
|
1208
1208
|
]
|
|
1209
1209
|
]) : G("", !0)
|
|
1210
1210
|
]),
|
|
1211
|
-
|
|
1211
|
+
t.hasDelete ? (C(), B(w, {
|
|
1212
1212
|
key: 0,
|
|
1213
1213
|
class: "mx-2",
|
|
1214
1214
|
density: "compact",
|
|
1215
1215
|
icon: "mdi-minus",
|
|
1216
1216
|
variant: "text",
|
|
1217
|
-
onClick:
|
|
1217
|
+
onClick: x[2] || (x[2] = X((M) => o("delete"), ["stop"]))
|
|
1218
1218
|
})) : G("", !0)
|
|
1219
1219
|
]);
|
|
1220
1220
|
};
|
|
1221
1221
|
}
|
|
1222
1222
|
});
|
|
1223
|
-
function
|
|
1224
|
-
return { renderUiMultiTypes: (
|
|
1223
|
+
function Sn(t) {
|
|
1224
|
+
return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), h("div", "renderUiMultiTypes prop ui must be multiTypes")) : h(xn, {
|
|
1225
1225
|
modelValue: ne(
|
|
1226
|
-
t,
|
|
1227
|
-
e,
|
|
1228
1226
|
n,
|
|
1227
|
+
e,
|
|
1229
1228
|
l,
|
|
1229
|
+
t,
|
|
1230
1230
|
o,
|
|
1231
1231
|
i
|
|
1232
1232
|
) ?? "",
|
|
1233
|
-
"onUpdate:modelValue": (
|
|
1233
|
+
"onUpdate:modelValue": (u) => {
|
|
1234
1234
|
oe(
|
|
1235
|
-
t,
|
|
1236
|
-
e,
|
|
1237
1235
|
n,
|
|
1238
|
-
|
|
1236
|
+
e,
|
|
1239
1237
|
l,
|
|
1238
|
+
u,
|
|
1239
|
+
t,
|
|
1240
1240
|
o,
|
|
1241
1241
|
i
|
|
1242
1242
|
);
|
|
1243
1243
|
},
|
|
1244
1244
|
hasDelete: o !== void 0 && !i,
|
|
1245
1245
|
onDelete: () => {
|
|
1246
|
-
o === void 0 || i || (
|
|
1246
|
+
o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
|
|
1247
1247
|
},
|
|
1248
1248
|
types: e.types
|
|
1249
1249
|
}) };
|
|
1250
1250
|
}
|
|
1251
|
-
const
|
|
1251
|
+
const Un = /* @__PURE__ */ R({
|
|
1252
1252
|
__name: "editor",
|
|
1253
1253
|
props: {
|
|
1254
1254
|
modelValue: { required: !0 },
|
|
@@ -1259,25 +1259,25 @@ const xn = /* @__PURE__ */ R({
|
|
|
1259
1259
|
scaleModifiers: {}
|
|
1260
1260
|
},
|
|
1261
1261
|
emits: ["update:modelValue", "update:lock", "update:scale"],
|
|
1262
|
-
setup(
|
|
1263
|
-
const
|
|
1264
|
-
const d = JSON.parse(
|
|
1265
|
-
|
|
1262
|
+
setup(t, { expose: s }) {
|
|
1263
|
+
const n = z(t, "modelValue"), e = z(t, "lock"), l = z(t, "scale"), o = gt(), i = ht(), u = Te(), r = Je("target"), a = () => {
|
|
1264
|
+
const d = JSON.parse(n.value);
|
|
1265
|
+
r.value?.load(d);
|
|
1266
1266
|
};
|
|
1267
1267
|
return s({ save: () => {
|
|
1268
|
-
const d =
|
|
1269
|
-
|
|
1270
|
-
} }), (d, y) => (C(), B(L(
|
|
1268
|
+
const d = r.value.save();
|
|
1269
|
+
n.value = JSON.stringify(d, null, 2);
|
|
1270
|
+
} }), (d, y) => (C(), B(L(Ut), {
|
|
1271
1271
|
ref_key: "target",
|
|
1272
|
-
ref:
|
|
1272
|
+
ref: r,
|
|
1273
1273
|
lock: e.value,
|
|
1274
1274
|
"onUpdate:lock": y[0] || (y[0] = (g) => e.value = g),
|
|
1275
|
-
scale:
|
|
1276
|
-
"onUpdate:scale": y[1] || (y[1] = (g) =>
|
|
1275
|
+
scale: l.value,
|
|
1276
|
+
"onUpdate:scale": y[1] || (y[1] = (g) => l.value = g),
|
|
1277
1277
|
dark: L(o),
|
|
1278
1278
|
locale: L(i),
|
|
1279
1279
|
type: "json",
|
|
1280
|
-
version: L(
|
|
1280
|
+
version: L(u),
|
|
1281
1281
|
onReady: a
|
|
1282
1282
|
}, null, 8, ["lock", "scale", "dark", "locale", "version"]));
|
|
1283
1283
|
}
|
|
@@ -1288,35 +1288,35 @@ const xn = /* @__PURE__ */ R({
|
|
|
1288
1288
|
modelModifiers: {}
|
|
1289
1289
|
},
|
|
1290
1290
|
emits: ["update:modelValue"],
|
|
1291
|
-
setup(
|
|
1292
|
-
const { t: s } = te(), { sysBarAvail:
|
|
1291
|
+
setup(t) {
|
|
1292
|
+
const { t: s } = te(), { sysBarAvail: n } = pe(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = ie(), i = z(t, "modelValue"), u = O(!1), r = O(1), a = K(() => {
|
|
1293
1293
|
let g = 48;
|
|
1294
|
-
return
|
|
1294
|
+
return n.value && (g += 24), {
|
|
1295
1295
|
position: "relative",
|
|
1296
|
-
background:
|
|
1296
|
+
background: l.value,
|
|
1297
1297
|
height: `calc(100% - ${g}px)`
|
|
1298
1298
|
};
|
|
1299
|
-
}), f = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } =
|
|
1299
|
+
}), f = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } = xe(`propTreeJsonObjectDlg${we()}`);
|
|
1300
1300
|
De(() => {
|
|
1301
1301
|
d.value = !1;
|
|
1302
1302
|
});
|
|
1303
1303
|
const y = Je("editor");
|
|
1304
1304
|
return re(d, (g) => {
|
|
1305
1305
|
g || y.value?.save();
|
|
1306
|
-
}), (g,
|
|
1307
|
-
const
|
|
1306
|
+
}), (g, V) => {
|
|
1307
|
+
const x = U("v-btn"), P = U("v-sheet"), T = U("v-spacer"), w = U("v-dialog");
|
|
1308
1308
|
return C(), B(w, {
|
|
1309
1309
|
modelValue: L(d),
|
|
1310
|
-
"onUpdate:modelValue":
|
|
1310
|
+
"onUpdate:modelValue": V[4] || (V[4] = (k) => ve(d) ? d.value = k : null),
|
|
1311
1311
|
attach: "",
|
|
1312
1312
|
fullscreen: "",
|
|
1313
1313
|
"no-click-animation": "",
|
|
1314
1314
|
persistent: "",
|
|
1315
1315
|
transition: "dialog-bottom-transition",
|
|
1316
|
-
onKeydown:
|
|
1316
|
+
onKeydown: V[5] || (V[5] = Ke(X((k) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1317
1317
|
}, {
|
|
1318
|
-
activator: J(({ props:
|
|
1319
|
-
D(
|
|
1318
|
+
activator: J(({ props: k }) => [
|
|
1319
|
+
D(x, be(k, {
|
|
1320
1320
|
block: "",
|
|
1321
1321
|
density: "comfortable"
|
|
1322
1322
|
}), {
|
|
@@ -1333,7 +1333,7 @@ const xn = /* @__PURE__ */ R({
|
|
|
1333
1333
|
width: "100%"
|
|
1334
1334
|
}, {
|
|
1335
1335
|
default: J(() => [
|
|
1336
|
-
L(
|
|
1336
|
+
L(n) ? (C(), B(P, {
|
|
1337
1337
|
key: 0,
|
|
1338
1338
|
color: L(o),
|
|
1339
1339
|
height: 24
|
|
@@ -1344,11 +1344,11 @@ const xn = /* @__PURE__ */ R({
|
|
|
1344
1344
|
height: 48
|
|
1345
1345
|
}, {
|
|
1346
1346
|
default: J(() => [
|
|
1347
|
-
D(
|
|
1347
|
+
D(x, {
|
|
1348
1348
|
density: "comfortable",
|
|
1349
1349
|
icon: "mdi-close",
|
|
1350
1350
|
variant: "text",
|
|
1351
|
-
onClick:
|
|
1351
|
+
onClick: V[0] || (V[0] = (k) => d.value = !1)
|
|
1352
1352
|
}),
|
|
1353
1353
|
F("span", $n, W(L(s)("x-prop-tree.dlg.jsonObject.title")), 1),
|
|
1354
1354
|
D(T)
|
|
@@ -1358,15 +1358,15 @@ const xn = /* @__PURE__ */ R({
|
|
|
1358
1358
|
F("div", {
|
|
1359
1359
|
style: I(a.value)
|
|
1360
1360
|
}, [
|
|
1361
|
-
D(
|
|
1361
|
+
D(Un, {
|
|
1362
1362
|
ref_key: "editor",
|
|
1363
1363
|
ref: y,
|
|
1364
1364
|
modelValue: i.value,
|
|
1365
|
-
"onUpdate:modelValue":
|
|
1366
|
-
lock:
|
|
1367
|
-
"onUpdate:lock":
|
|
1368
|
-
scale:
|
|
1369
|
-
"onUpdate:scale":
|
|
1365
|
+
"onUpdate:modelValue": V[1] || (V[1] = (k) => i.value = k),
|
|
1366
|
+
lock: u.value,
|
|
1367
|
+
"onUpdate:lock": V[2] || (V[2] = (k) => u.value = k),
|
|
1368
|
+
scale: r.value,
|
|
1369
|
+
"onUpdate:scale": V[3] || (V[3] = (k) => r.value = k)
|
|
1370
1370
|
}, null, 8, ["modelValue", "lock", "scale"])
|
|
1371
1371
|
], 4)
|
|
1372
1372
|
]),
|
|
@@ -1378,23 +1378,23 @@ const xn = /* @__PURE__ */ R({
|
|
|
1378
1378
|
};
|
|
1379
1379
|
}
|
|
1380
1380
|
});
|
|
1381
|
-
function Mn(
|
|
1382
|
-
return { renderUiJsonEditor: (
|
|
1381
|
+
function Mn(t) {
|
|
1382
|
+
return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? h("div", "renderUiJsonObject prop ui must be jsonEditor") : h(Pn, {
|
|
1383
1383
|
modelValue: ne(
|
|
1384
|
-
t,
|
|
1385
|
-
e,
|
|
1386
1384
|
n,
|
|
1385
|
+
e,
|
|
1387
1386
|
l,
|
|
1387
|
+
t,
|
|
1388
1388
|
o,
|
|
1389
1389
|
i
|
|
1390
1390
|
) ?? "{}",
|
|
1391
|
-
"onUpdate:modelValue": (
|
|
1391
|
+
"onUpdate:modelValue": (u) => {
|
|
1392
1392
|
oe(
|
|
1393
|
-
t,
|
|
1394
|
-
e,
|
|
1395
1393
|
n,
|
|
1396
|
-
|
|
1394
|
+
e,
|
|
1397
1395
|
l,
|
|
1396
|
+
u,
|
|
1397
|
+
t,
|
|
1398
1398
|
o,
|
|
1399
1399
|
i
|
|
1400
1400
|
);
|
|
@@ -1410,78 +1410,78 @@ const wn = /* @__PURE__ */ R({
|
|
|
1410
1410
|
version: {}
|
|
1411
1411
|
},
|
|
1412
1412
|
emits: ["change"],
|
|
1413
|
-
setup(
|
|
1414
|
-
const { t } = te(), { backgroundColor1: e } = ie(),
|
|
1415
|
-
qe(f,
|
|
1413
|
+
setup(t, { emit: s }) {
|
|
1414
|
+
const { t: n } = te(), { backgroundColor1: e } = ie(), l = t, o = s, i = O("20px"), u = O("56px"), r = O("200px"), a = mt({}), f = O({}), d = (v, c) => {
|
|
1415
|
+
qe(f, l.config, l.object), o("change", v, c);
|
|
1416
1416
|
};
|
|
1417
1417
|
re(
|
|
1418
|
-
[() =>
|
|
1418
|
+
[() => l.config, () => l.object],
|
|
1419
1419
|
() => {
|
|
1420
|
-
qe(f,
|
|
1420
|
+
qe(f, l.config, l.object, (v, c) => {
|
|
1421
1421
|
o("change", v, c);
|
|
1422
1422
|
});
|
|
1423
1423
|
},
|
|
1424
1424
|
{ immediate: !0 }
|
|
1425
1425
|
);
|
|
1426
|
-
const y = O(
|
|
1426
|
+
const y = O(l.version);
|
|
1427
1427
|
Tt(y), re(
|
|
1428
|
-
() =>
|
|
1428
|
+
() => l.version,
|
|
1429
1429
|
() => {
|
|
1430
|
-
y.value =
|
|
1430
|
+
y.value = l.version;
|
|
1431
1431
|
}
|
|
1432
1432
|
);
|
|
1433
|
-
const g = O(
|
|
1433
|
+
const g = O(l.config);
|
|
1434
1434
|
Lt(g), re(
|
|
1435
|
-
() =>
|
|
1435
|
+
() => l.config,
|
|
1436
1436
|
() => {
|
|
1437
|
-
g.value =
|
|
1437
|
+
g.value = l.config;
|
|
1438
1438
|
}
|
|
1439
1439
|
);
|
|
1440
|
-
const
|
|
1441
|
-
Ot(
|
|
1442
|
-
() =>
|
|
1440
|
+
const V = O(l.object);
|
|
1441
|
+
Ot(V), re(
|
|
1442
|
+
() => l.object,
|
|
1443
1443
|
() => {
|
|
1444
|
-
|
|
1444
|
+
V.value = l.object;
|
|
1445
1445
|
}
|
|
1446
1446
|
), Bt(f), Jt(d);
|
|
1447
|
-
const
|
|
1448
|
-
Et(
|
|
1447
|
+
const x = O([]);
|
|
1448
|
+
Et(x);
|
|
1449
1449
|
const P = () => {
|
|
1450
|
-
const { compGroups: v, comps: c } =
|
|
1451
|
-
v.forEach(({ id: m, name:
|
|
1452
|
-
const A =
|
|
1450
|
+
const { compGroups: v, comps: c } = xt.app.activeApp, p = [];
|
|
1451
|
+
v.forEach(({ id: m, name: _, position: $ }) => {
|
|
1452
|
+
const A = x.value.find((Z) => Z.id === m);
|
|
1453
1453
|
p.push({
|
|
1454
1454
|
id: m,
|
|
1455
1455
|
type: 0,
|
|
1456
|
-
name:
|
|
1456
|
+
name: _,
|
|
1457
1457
|
position: $,
|
|
1458
1458
|
collapse: A?.collapse ?? !0
|
|
1459
1459
|
});
|
|
1460
|
-
}), c.forEach(({ id: m,
|
|
1461
|
-
p.push({ id: m, type: 1, name: $, position: A, group:
|
|
1462
|
-
}),
|
|
1460
|
+
}), c.forEach(({ id: m, groupId: _, name: $, position: A }) => {
|
|
1461
|
+
p.push({ id: m, type: 1, name: $, position: A, group: _ });
|
|
1462
|
+
}), _t(p, !0), x.value = p;
|
|
1463
1463
|
};
|
|
1464
1464
|
let T;
|
|
1465
1465
|
const w = () => {
|
|
1466
1466
|
clearTimeout(T), T = window.setTimeout(() => {
|
|
1467
1467
|
P(), T && w();
|
|
1468
1468
|
}, 1e3);
|
|
1469
|
-
},
|
|
1469
|
+
}, k = () => {
|
|
1470
1470
|
clearTimeout(T), T = void 0;
|
|
1471
1471
|
};
|
|
1472
1472
|
vt(() => {
|
|
1473
1473
|
w();
|
|
1474
1474
|
}), pt(() => {
|
|
1475
|
-
|
|
1475
|
+
k();
|
|
1476
1476
|
});
|
|
1477
|
-
const { renderProp: M } = zt(f,
|
|
1477
|
+
const { renderProp: M } = zt(f, u, r), { renderUiDummy: N } = Gt(d), { renderUiStrInput: Q } = Qt(d), { renderUiNumInput: Pe } = It(d), { renderUiSwitch: je } = nn(d), { renderUiSelect: Ie } = sn(d), { renderUiColorPicker: et } = _n(d), { renderUiJsonEditor: tt } = Mn(d), { renderUiMultiTypes: nt } = Sn(d), { renderUiCompSelect: lt } = gn(d), ye = (v, c, p, m, _, $) => (v = Ee(v), _ !== void 0 ? (v.push(_), $ && v.push(c.key)) : v.push(c.key), c.ui ? c.array && m ? it(v, c, p, m, _, $) : rt(v, c, p, _, $) : c.array ? ot(v, c, p, m, _, $) : st(
|
|
1478
1478
|
v,
|
|
1479
1479
|
c,
|
|
1480
1480
|
p,
|
|
1481
1481
|
m,
|
|
1482
|
-
|
|
1482
|
+
_,
|
|
1483
1483
|
$
|
|
1484
|
-
)), ot = (v, c, p, m,
|
|
1484
|
+
)), ot = (v, c, p, m, _, $) => {
|
|
1485
1485
|
if (c.ui)
|
|
1486
1486
|
return console.assert(!1), h("div", "renderBranchArray prop ui must be invalid");
|
|
1487
1487
|
if (!c.array)
|
|
@@ -1489,18 +1489,18 @@ const wn = /* @__PURE__ */ R({
|
|
|
1489
1489
|
if (!m)
|
|
1490
1490
|
return console.assert(!1), h("div", "renderBranchArray branch must be valid");
|
|
1491
1491
|
let A;
|
|
1492
|
-
|
|
1493
|
-
let Z =
|
|
1492
|
+
_ !== void 0 && !$ ? (p[_] instanceof Array || (p[_] = q(c), d(v, p[c.key])), A = p[_]) : (p[c.key] instanceof Array || (p[c.key] = q(c), d(v, p[c.key])), A = p[c.key]);
|
|
1493
|
+
let Z = n(c.name);
|
|
1494
1494
|
m.collapse && ae(f.value, v) && (Z += " *");
|
|
1495
|
-
const fe = h(
|
|
1495
|
+
const fe = h(_e, {
|
|
1496
1496
|
title: Z,
|
|
1497
1497
|
collapse: m.collapse,
|
|
1498
1498
|
hasCreate: !0,
|
|
1499
|
-
onCollapse: (
|
|
1500
|
-
m.collapse =
|
|
1499
|
+
onCollapse: (S) => {
|
|
1500
|
+
m.collapse = S;
|
|
1501
1501
|
},
|
|
1502
|
-
onMenu: (
|
|
1503
|
-
ue.emit("propTreeMenu", { x:
|
|
1502
|
+
onMenu: (S, b) => {
|
|
1503
|
+
ue.emit("propTreeMenu", { x: S, y: b, keys: v });
|
|
1504
1504
|
},
|
|
1505
1505
|
onCreate: () => {
|
|
1506
1506
|
A.push({}), d(v, A);
|
|
@@ -1513,7 +1513,7 @@ const wn = /* @__PURE__ */ R({
|
|
|
1513
1513
|
}
|
|
1514
1514
|
},
|
|
1515
1515
|
(() => {
|
|
1516
|
-
const
|
|
1516
|
+
const S = [];
|
|
1517
1517
|
for (let b = 0; b < A.length; b++) {
|
|
1518
1518
|
if (!Me(m.children)) {
|
|
1519
1519
|
console.assert(!1);
|
|
@@ -1526,7 +1526,7 @@ const wn = /* @__PURE__ */ R({
|
|
|
1526
1526
|
const ge = [...v, b], he = m.children[b];
|
|
1527
1527
|
let Le = `[${b + 1}]`;
|
|
1528
1528
|
m.children[b].collapse && ae(f.value, ge) && (Le += " *");
|
|
1529
|
-
const at = h(
|
|
1529
|
+
const at = h(_e, {
|
|
1530
1530
|
title: Le,
|
|
1531
1531
|
collapse: m.children[b].collapse,
|
|
1532
1532
|
hasDelete: !0,
|
|
@@ -1549,7 +1549,7 @@ const wn = /* @__PURE__ */ R({
|
|
|
1549
1549
|
m.children.splice(j, 1), A.splice(j, 1), d(v, A);
|
|
1550
1550
|
}
|
|
1551
1551
|
});
|
|
1552
|
-
|
|
1552
|
+
S.push(at);
|
|
1553
1553
|
const ct = h(
|
|
1554
1554
|
"div",
|
|
1555
1555
|
{
|
|
@@ -1580,9 +1580,9 @@ const wn = /* @__PURE__ */ R({
|
|
|
1580
1580
|
}), j;
|
|
1581
1581
|
})()
|
|
1582
1582
|
);
|
|
1583
|
-
m.children[b].collapse ||
|
|
1583
|
+
m.children[b].collapse || S.push(ct);
|
|
1584
1584
|
}
|
|
1585
|
-
return
|
|
1585
|
+
return S;
|
|
1586
1586
|
})()
|
|
1587
1587
|
);
|
|
1588
1588
|
return h(
|
|
@@ -1593,31 +1593,31 @@ const wn = /* @__PURE__ */ R({
|
|
|
1593
1593
|
}
|
|
1594
1594
|
},
|
|
1595
1595
|
(() => {
|
|
1596
|
-
const
|
|
1597
|
-
return
|
|
1596
|
+
const S = [];
|
|
1597
|
+
return S.push(fe), m.collapse || S.push(H), S;
|
|
1598
1598
|
})()
|
|
1599
1599
|
);
|
|
1600
|
-
}, st = (v, c, p, m,
|
|
1600
|
+
}, st = (v, c, p, m, _, $) => {
|
|
1601
1601
|
if (c.ui)
|
|
1602
1602
|
return console.assert(!1), h("div", "renderBranchScalar prop ui must be invalid");
|
|
1603
1603
|
if (c.array)
|
|
1604
1604
|
return console.assert(!1), h("div", "renderBranchScalar prop array must be invalid");
|
|
1605
1605
|
if (!m)
|
|
1606
1606
|
return console.assert(!1), h("div", "renderBranchScalar branch must be valid");
|
|
1607
|
-
let A =
|
|
1607
|
+
let A = n(c.name);
|
|
1608
1608
|
m.collapse && ae(f.value, v) && (A += " *");
|
|
1609
|
-
const Z = h(
|
|
1609
|
+
const Z = h(_e, {
|
|
1610
1610
|
title: A,
|
|
1611
1611
|
collapse: m.collapse,
|
|
1612
|
-
hasDelete:
|
|
1612
|
+
hasDelete: _ !== void 0 && !$,
|
|
1613
1613
|
onCollapse: (H) => {
|
|
1614
1614
|
m.collapse = H;
|
|
1615
1615
|
},
|
|
1616
|
-
onMenu: (H,
|
|
1617
|
-
ue.emit("propTreeMenu", { x: H, y:
|
|
1616
|
+
onMenu: (H, S) => {
|
|
1617
|
+
ue.emit("propTreeMenu", { x: H, y: S, keys: v });
|
|
1618
1618
|
},
|
|
1619
1619
|
onDelete: () => {
|
|
1620
|
-
|
|
1620
|
+
_ === void 0 || $ || (p.splice(_, 1), d(v.slice(0, -1), p));
|
|
1621
1621
|
}
|
|
1622
1622
|
}), fe = h(
|
|
1623
1623
|
"div",
|
|
@@ -1628,20 +1628,20 @@ const wn = /* @__PURE__ */ R({
|
|
|
1628
1628
|
},
|
|
1629
1629
|
(() => {
|
|
1630
1630
|
const H = [];
|
|
1631
|
-
return c.children.forEach((
|
|
1631
|
+
return c.children.forEach((S) => {
|
|
1632
1632
|
if (!Oe(m.children)) {
|
|
1633
1633
|
console.assert(!1);
|
|
1634
1634
|
return;
|
|
1635
1635
|
}
|
|
1636
|
-
m.children[
|
|
1636
|
+
m.children[S.key] || (m.children[S.key] = {
|
|
1637
1637
|
collapse: !0,
|
|
1638
|
-
children: !
|
|
1638
|
+
children: !S.ui && S.array ? [] : {}
|
|
1639
1639
|
});
|
|
1640
1640
|
const b = ye(
|
|
1641
1641
|
v,
|
|
1642
|
-
|
|
1642
|
+
S,
|
|
1643
1643
|
(typeof p[c.key] != "object" && (p[c.key] = {}, d(v, p[c.key])), p[c.key]),
|
|
1644
|
-
m.children[
|
|
1644
|
+
m.children[S.key]
|
|
1645
1645
|
);
|
|
1646
1646
|
H.push(b);
|
|
1647
1647
|
}), H;
|
|
@@ -1659,7 +1659,7 @@ const wn = /* @__PURE__ */ R({
|
|
|
1659
1659
|
return H.push(Z), m.collapse || H.push(fe), H;
|
|
1660
1660
|
})()
|
|
1661
1661
|
);
|
|
1662
|
-
}, it = (v, c, p, m,
|
|
1662
|
+
}, it = (v, c, p, m, _, $) => {
|
|
1663
1663
|
if (!c.ui)
|
|
1664
1664
|
return console.assert(!1), h("div", "renderLeafArray prop ui must be valid");
|
|
1665
1665
|
if (!c.array)
|
|
@@ -1667,18 +1667,18 @@ const wn = /* @__PURE__ */ R({
|
|
|
1667
1667
|
if (!m)
|
|
1668
1668
|
return console.assert(!1), h("div", "renderLeafArray branch must be valid");
|
|
1669
1669
|
let A;
|
|
1670
|
-
|
|
1671
|
-
let Z =
|
|
1670
|
+
_ !== void 0 && !$ ? (p[_] instanceof Array || (p[_] = q(c), d(v, p[_])), A = p[_]) : (p[c.key] instanceof Array || (p[c.key] = q(c), d(v, p[c.key])), A = p[c.key]);
|
|
1671
|
+
let Z = n(c.name);
|
|
1672
1672
|
m.collapse && ae(f.value, v) && (Z += " *");
|
|
1673
|
-
const fe = h(
|
|
1673
|
+
const fe = h(_e, {
|
|
1674
1674
|
title: Z,
|
|
1675
1675
|
collapse: m.collapse,
|
|
1676
1676
|
hasCreate: !0,
|
|
1677
|
-
onCollapse: (
|
|
1678
|
-
m.collapse =
|
|
1677
|
+
onCollapse: (S) => {
|
|
1678
|
+
m.collapse = S;
|
|
1679
1679
|
},
|
|
1680
|
-
onMenu: (
|
|
1681
|
-
ue.emit("propTreeMenu", { x:
|
|
1680
|
+
onMenu: (S, b) => {
|
|
1681
|
+
ue.emit("propTreeMenu", { x: S, y: b, keys: v });
|
|
1682
1682
|
},
|
|
1683
1683
|
onCreate: () => {
|
|
1684
1684
|
A.push(q(c, !0)), d(v, A);
|
|
@@ -1691,12 +1691,12 @@ const wn = /* @__PURE__ */ R({
|
|
|
1691
1691
|
}
|
|
1692
1692
|
},
|
|
1693
1693
|
(() => {
|
|
1694
|
-
const
|
|
1694
|
+
const S = [];
|
|
1695
1695
|
for (let b = 0; b < A.length; b++) {
|
|
1696
1696
|
const ge = ye(v, c, A, void 0, b, !1);
|
|
1697
|
-
|
|
1697
|
+
S.push(ge);
|
|
1698
1698
|
}
|
|
1699
|
-
return
|
|
1699
|
+
return S;
|
|
1700
1700
|
})()
|
|
1701
1701
|
);
|
|
1702
1702
|
return h(
|
|
@@ -1707,15 +1707,15 @@ const wn = /* @__PURE__ */ R({
|
|
|
1707
1707
|
}
|
|
1708
1708
|
},
|
|
1709
1709
|
(() => {
|
|
1710
|
-
const
|
|
1711
|
-
return
|
|
1710
|
+
const S = [];
|
|
1711
|
+
return S.push(fe), m.collapse || S.push(H), S;
|
|
1712
1712
|
})()
|
|
1713
1713
|
);
|
|
1714
|
-
}, rt = (v, c, p, m,
|
|
1714
|
+
}, rt = (v, c, p, m, _) => {
|
|
1715
1715
|
if (!c.ui)
|
|
1716
1716
|
return console.assert(!1), h("div", "renderLeafScalar prop ui must be valid");
|
|
1717
1717
|
let $;
|
|
1718
|
-
return c.ui === "dummy" ? $ = N(v, c, p, m,
|
|
1718
|
+
return c.ui === "dummy" ? $ = N(v, c, p, m, _) : c.ui === "strInput" ? $ = Q(v, c, p, m, _) : c.ui === "numInput" ? $ = Pe(v, c, p, m, _) : c.ui === "switch" ? $ = je(v, c, p, m, _) : c.ui === "select" ? $ = Ie(v, c, p, m, _) : c.ui === "colorPicker" ? $ = et(v, c, p, m, _) : c.ui === "jsonEditor" ? $ = tt(v, c, p, m, _) : c.ui === "multiTypes" ? $ = nt(v, c, p, m, _) : c.ui === "compSelect" ? $ = lt(v, c, p, m, _) : console.assert(!1, "renderLeafScalar not implemented"), $ ? M(v, c, $) : h("div");
|
|
1719
1719
|
}, ut = () => h(
|
|
1720
1720
|
"div",
|
|
1721
1721
|
{
|
|
@@ -1726,15 +1726,15 @@ const wn = /* @__PURE__ */ R({
|
|
|
1726
1726
|
},
|
|
1727
1727
|
(() => {
|
|
1728
1728
|
const v = [];
|
|
1729
|
-
if (
|
|
1730
|
-
a[
|
|
1731
|
-
const c = a[
|
|
1732
|
-
|
|
1729
|
+
if (l.unique && l.config.length > 0 && l.object) {
|
|
1730
|
+
a[l.unique] || (a[l.unique] = {});
|
|
1731
|
+
const c = a[l.unique];
|
|
1732
|
+
l.config.forEach((p) => {
|
|
1733
1733
|
c[p.key] || (c[p.key] = {
|
|
1734
1734
|
collapse: !0,
|
|
1735
1735
|
children: !p.ui && p.array ? [] : {}
|
|
1736
1736
|
});
|
|
1737
|
-
const m = ye([], p,
|
|
1737
|
+
const m = ye([], p, l.object, c[p.key]);
|
|
1738
1738
|
v.push(m);
|
|
1739
1739
|
});
|
|
1740
1740
|
}
|
|
@@ -1744,22 +1744,22 @@ const wn = /* @__PURE__ */ R({
|
|
|
1744
1744
|
return (v, c) => (C(), E(Ve, null, [
|
|
1745
1745
|
D(ut),
|
|
1746
1746
|
D(Ht, {
|
|
1747
|
-
config:
|
|
1748
|
-
object:
|
|
1747
|
+
config: l.config,
|
|
1748
|
+
object: l.object,
|
|
1749
1749
|
"prop-states": f.value
|
|
1750
1750
|
}, null, 8, ["config", "object", "prop-states"])
|
|
1751
1751
|
], 64));
|
|
1752
1752
|
}
|
|
1753
|
-
}), Dn = (
|
|
1754
|
-
|
|
1755
|
-
}, bn = (
|
|
1756
|
-
const e =
|
|
1757
|
-
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((
|
|
1758
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !==
|
|
1753
|
+
}), Dn = (t) => {
|
|
1754
|
+
t.component("XPropTree", wn);
|
|
1755
|
+
}, bn = (t, s, n) => {
|
|
1756
|
+
const e = t[s];
|
|
1757
|
+
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((l, o) => {
|
|
1758
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
|
|
1759
1759
|
});
|
|
1760
1760
|
};
|
|
1761
|
-
async function Jn(
|
|
1762
|
-
return (await bn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.n11iysmh.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.hr18mfah.js") }), `./locales/${
|
|
1761
|
+
async function Jn(t) {
|
|
1762
|
+
return (await bn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.n11iysmh.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.hr18mfah.js") }), `./locales/${t}/index.ts`, 4)).default;
|
|
1763
1763
|
}
|
|
1764
1764
|
const Rn = { install: Dn };
|
|
1765
1765
|
export {
|