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