x-prop-tree 0.8.15 → 0.8.16
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/{i18n-en.lvwojc1f.js → i18n-en.ckhf41nr.js} +1 -1
- package/dist/{i18n-zhHans.u8lopwp1.js → i18n-zhHans.lj81m5nl.js} +1 -1
- package/dist/index.js +676 -660
- package/dist/vendor.cs922lli.js +1098 -0
- package/package.json +3 -3
- package/dist/vendor.jothdq5o.js +0 -877
- /package/dist/{rolldown-runtime.msh1uh5g.js → rolldown-runtime.onx11qnb.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as e, i as t, n, r,
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import { getElement as
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "./vendor.cs922lli.js";
|
|
2
|
+
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, h, inject as g, isRef as _, mergeModels as v, mergeProps as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, onUnmounted as C, openBlock as w, provide as T, ref as E, renderList as D, renderSlot as ee, resolveComponent as O, resolveDirective as k, toDisplayString as A, unref as j, useId as M, useModel as N, useTemplateRef as te, watch as P, watchEffect as F, withCtx as I, withDirectives as L, withKeys as R, withModifiers as z } from "vue";
|
|
3
|
+
import { getElement as ne, getItems as re, getPropertyDefault as B, getPropertyDefaultArray as V, getTag as ie, getTypes as ae, isHexColor as oe, isThemeColor as se, makeSlotId as ce, parseNumberUnit as le, pkgs as ue, rules as de, themeColors as fe } from "x-runtime-lib";
|
|
4
4
|
import { useI18n as H } from "vue-i18n";
|
|
5
|
-
import { eventBus as U, globalObjects as
|
|
6
|
-
import { globalState as
|
|
7
|
-
import { useDisplay as
|
|
8
|
-
import { XBlockly as
|
|
5
|
+
import { eventBus as U, globalObjects as pe, injectDark as me, injectLocale as he, openNumberDlg as ge, openPromptDlg as _e, useColor as W, useSystem as G, useViewStack as K } from "x-essential-lib";
|
|
6
|
+
import { globalState as ve } from "x-state-lib";
|
|
7
|
+
import { useDisplay as ye } from "vuetify";
|
|
8
|
+
import { XBlockly as be } from "x-block-lib";
|
|
9
9
|
//#region src/utils/common.ts
|
|
10
|
-
function
|
|
10
|
+
function xe(e, t) {
|
|
11
11
|
let n = {
|
|
12
12
|
key: "",
|
|
13
13
|
name: "",
|
|
@@ -20,7 +20,7 @@ function q(e, t) {
|
|
|
20
20
|
}
|
|
21
21
|
return n;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function q(e, t) {
|
|
24
24
|
let n = e;
|
|
25
25
|
for (let e of t) {
|
|
26
26
|
if (!n) throw Error("target must be valid");
|
|
@@ -28,42 +28,42 @@ function J(e, t) {
|
|
|
28
28
|
}
|
|
29
29
|
return n;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Se(t, n, r, i, a, o) {
|
|
32
32
|
if (i !== void 0 && !a) {
|
|
33
33
|
if (!(r[i] instanceof Array)) {
|
|
34
34
|
let a = V(n);
|
|
35
|
-
|
|
35
|
+
e(a, r[i]) || (r[i] = a, o(t, r[i]));
|
|
36
36
|
}
|
|
37
37
|
return r[i];
|
|
38
38
|
} else {
|
|
39
39
|
if (!(r[n.key] instanceof Array)) {
|
|
40
40
|
let i = V(n);
|
|
41
|
-
|
|
41
|
+
e(i, r[n.key]) || (r[n.key] = i, o(t, r[n.key]));
|
|
42
42
|
}
|
|
43
43
|
return r[n.key];
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function J(t, n, r, i, a, o) {
|
|
47
47
|
if (i !== void 0 && !a) {
|
|
48
48
|
if (r[i] === void 0) {
|
|
49
49
|
let a = B(n);
|
|
50
|
-
|
|
50
|
+
e(a, r[i]) || (r[i] = a, o(t, r[i]));
|
|
51
51
|
}
|
|
52
52
|
return r[i];
|
|
53
53
|
} else {
|
|
54
54
|
if (r[n.key] === void 0) {
|
|
55
55
|
let i = B(n);
|
|
56
|
-
|
|
56
|
+
e(i, r[n.key]) || (r[n.key] = i, o(t, r[n.key]));
|
|
57
57
|
}
|
|
58
58
|
return r[n.key];
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Y(e, t, n, r, i, a, o) {
|
|
62
62
|
i !== void 0 && !a ? r !== n[i] && (n[i] = r, o(e, n[i])) : r !== n[t.key] && (n[t.key] = r, o(e, n[t.key]));
|
|
63
63
|
}
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region src/utils/collapseState.ts
|
|
66
|
-
function
|
|
66
|
+
function X(e, t) {
|
|
67
67
|
let n = e.value;
|
|
68
68
|
for (let e of t) {
|
|
69
69
|
if (!n.children[e]) return !0;
|
|
@@ -71,7 +71,7 @@ function Z(e, t) {
|
|
|
71
71
|
}
|
|
72
72
|
return n.collapse;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ce(e, t, n) {
|
|
75
75
|
let r = e.value;
|
|
76
76
|
for (let e of t) r.children[e] || (r.children[e] = {
|
|
77
77
|
collapse: !0,
|
|
@@ -81,29 +81,35 @@ function xe(e, t, n) {
|
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/utils/copyPaste.ts
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
var we = [
|
|
85
|
+
"key",
|
|
86
|
+
"name",
|
|
87
|
+
"children",
|
|
88
|
+
"default",
|
|
89
|
+
"arrayDefault"
|
|
90
|
+
], Te = (n, r) => {
|
|
91
|
+
function i(n, r) {
|
|
92
|
+
if (!e(t(n, we), t(r, we))) return !1;
|
|
93
|
+
if (n.ui || r.ui) return !0;
|
|
94
|
+
if (n.children.length !== r.children.length) return !1;
|
|
95
|
+
for (let e = 0; e < n.children.length; e++) if (!i(n.children[e], r.children[e])) return !1;
|
|
90
96
|
return !0;
|
|
91
|
-
}
|
|
92
|
-
return n
|
|
93
|
-
},
|
|
94
|
-
function
|
|
95
|
-
return
|
|
97
|
+
}
|
|
98
|
+
return i(n, r);
|
|
99
|
+
}, Ee = [["basic", "id"], ["basic", "name"]];
|
|
100
|
+
function De(t) {
|
|
101
|
+
return Ee.find((n) => e(t, n));
|
|
96
102
|
}
|
|
97
|
-
function
|
|
98
|
-
return
|
|
103
|
+
function Oe(e, t, n, i, a, o, s) {
|
|
104
|
+
return e = r(e), a === void 0 ? e.push(t.key) : (e.push(a), o && e.push(t.key)), e?.[0] === "runtime" ? {
|
|
99
105
|
change: !1,
|
|
100
106
|
warning: !1
|
|
101
|
-
} :
|
|
107
|
+
} : De(e) ? (i.change = !1, i.warning = !1, {
|
|
102
108
|
change: i.change,
|
|
103
109
|
warning: i.warning
|
|
104
|
-
}) :
|
|
110
|
+
}) : t.ui ? t.array && !s ? je(e, t, n, i, a, o) : Me(t, n, i, a, o) : t.array ? ke(e, t, n, i, a, o) : Ae(e, t, n, i, a, o);
|
|
105
111
|
}
|
|
106
|
-
function
|
|
112
|
+
function ke(t, n, r, i, a, o) {
|
|
107
113
|
if (n.ui) throw Error("execPropertyBranchArray property ui must be invalid");
|
|
108
114
|
if (!n.array) throw Error("execPropertyBranchArray property array must be valid");
|
|
109
115
|
let s;
|
|
@@ -111,29 +117,29 @@ function Ee(e, n, r, i, a, o) {
|
|
|
111
117
|
change: !1,
|
|
112
118
|
warning: !1
|
|
113
119
|
};
|
|
114
|
-
for (let
|
|
115
|
-
i.children[
|
|
120
|
+
for (let e = 0; e < s.length; e++) {
|
|
121
|
+
i.children[e] = {
|
|
116
122
|
change: !1,
|
|
117
123
|
warning: !1,
|
|
118
124
|
children: {}
|
|
119
125
|
};
|
|
120
|
-
let r = i.children[
|
|
126
|
+
let r = i.children[e];
|
|
121
127
|
for (let a of n.children) {
|
|
122
128
|
r.children[a.key] = {
|
|
123
129
|
change: !1,
|
|
124
130
|
warning: !1,
|
|
125
131
|
children: {}
|
|
126
132
|
};
|
|
127
|
-
let { change: n, warning: o } =
|
|
133
|
+
let { change: n, warning: o } = Oe(t, a, s[e], r.children[a.key], e, !0);
|
|
128
134
|
!r.change && n && (r.change = n), !r.change && o && (r.warning = o), !i.change && r.change && (i.change = r.change), !i.warning && r.warning && (i.warning = r.warning);
|
|
129
135
|
}
|
|
130
136
|
}
|
|
131
|
-
return i.change ||= !
|
|
137
|
+
return i.change ||= !e(s, V(n)), {
|
|
132
138
|
change: i.change,
|
|
133
139
|
warning: i.warning
|
|
134
140
|
};
|
|
135
141
|
}
|
|
136
|
-
function
|
|
142
|
+
function Ae(e, t, n, r, i, a) {
|
|
137
143
|
if (t.ui) throw Error("execPropertyBranchScalar property ui must be invalid");
|
|
138
144
|
if (t.array) throw Error("execPropertyBranchScalar property array must be invalid");
|
|
139
145
|
let o;
|
|
@@ -148,7 +154,7 @@ function De(e, t, n, r, i, a) {
|
|
|
148
154
|
warning: !1,
|
|
149
155
|
children: {}
|
|
150
156
|
};
|
|
151
|
-
let { change: a, warning: s } =
|
|
157
|
+
let { change: a, warning: s } = Oe(e, i, o, r.children[i.key], void 0, !1);
|
|
152
158
|
!r.change && a && (r.change = a), !r.warning && s && (r.warning = s);
|
|
153
159
|
}
|
|
154
160
|
return {
|
|
@@ -156,7 +162,7 @@ function De(e, t, n, r, i, a) {
|
|
|
156
162
|
warning: r.change
|
|
157
163
|
};
|
|
158
164
|
}
|
|
159
|
-
function
|
|
165
|
+
function je(t, n, r, i, a, o) {
|
|
160
166
|
if (!n.ui) throw Error("execPropertyLeafArray property ui must be valid");
|
|
161
167
|
if (!n.array) throw Error("execPropertyLeafArray property aray must be valid");
|
|
162
168
|
let s;
|
|
@@ -164,29 +170,29 @@ function Oe(e, n, r, i, a, o) {
|
|
|
164
170
|
change: !1,
|
|
165
171
|
warning: !1
|
|
166
172
|
};
|
|
167
|
-
for (let
|
|
168
|
-
i.children[
|
|
173
|
+
for (let e = 0; e < s.length; e++) {
|
|
174
|
+
i.children[e] = {
|
|
169
175
|
change: !1,
|
|
170
176
|
warning: !1,
|
|
171
177
|
children: {}
|
|
172
178
|
};
|
|
173
|
-
let { change: r, warning: a } =
|
|
179
|
+
let { change: r, warning: a } = Oe(t, n, s, i.children[e], e, !1, !0);
|
|
174
180
|
!i.change && r && (i.change = r), !i.warning && a && (i.warning = a);
|
|
175
181
|
}
|
|
176
|
-
return i.change ||= !
|
|
182
|
+
return i.change ||= !e(s, V(n)), {
|
|
177
183
|
change: i.change,
|
|
178
184
|
warning: i.warning
|
|
179
185
|
};
|
|
180
186
|
}
|
|
181
|
-
function
|
|
182
|
-
if (!
|
|
187
|
+
function Me(t, n, r, i, a) {
|
|
188
|
+
if (!t.ui) throw Error("execPropertyLeafScalar property ui must be valid");
|
|
183
189
|
let o;
|
|
184
|
-
return o = i !== void 0 && !a ? n[i] : n[
|
|
190
|
+
return o = i !== void 0 && !a ? n[i] : n[t.key], r.change = !e(o, B(t)), {
|
|
185
191
|
change: r.change,
|
|
186
192
|
warning: r.warning
|
|
187
193
|
};
|
|
188
194
|
}
|
|
189
|
-
function
|
|
195
|
+
function Ne(e, t, n) {
|
|
190
196
|
if (t.length <= 0 || !n) {
|
|
191
197
|
e.value = {
|
|
192
198
|
change: !1,
|
|
@@ -206,11 +212,11 @@ function Ae(e, t, n) {
|
|
|
206
212
|
warning: !1,
|
|
207
213
|
children: {}
|
|
208
214
|
};
|
|
209
|
-
r.children[e.key] = t,
|
|
215
|
+
r.children[e.key] = t, Oe([], e, n, t, void 0, !1);
|
|
210
216
|
}
|
|
211
217
|
e.value = r;
|
|
212
218
|
}
|
|
213
|
-
function
|
|
219
|
+
function Z(e, t) {
|
|
214
220
|
let n = e;
|
|
215
221
|
for (let e of t) {
|
|
216
222
|
if (!n.children[e]) return !1;
|
|
@@ -220,142 +226,142 @@ function Q(e, t) {
|
|
|
220
226
|
}
|
|
221
227
|
//#endregion
|
|
222
228
|
//#region src/utils/provideInject.ts
|
|
223
|
-
var
|
|
224
|
-
function
|
|
225
|
-
|
|
229
|
+
var Pe = Symbol(), Fe = Symbol(), Ie = Symbol(), Le = Symbol(), Re = Symbol(), ze = Symbol(), Be = Symbol(), Ve = Symbol(), He = Symbol(), Ue = Symbol(), We = Symbol();
|
|
230
|
+
function Ge(e) {
|
|
231
|
+
T(Pe, e);
|
|
226
232
|
}
|
|
227
|
-
function
|
|
228
|
-
return
|
|
233
|
+
function Ke() {
|
|
234
|
+
return g(Pe);
|
|
229
235
|
}
|
|
230
|
-
function
|
|
231
|
-
|
|
236
|
+
function qe(e) {
|
|
237
|
+
T(Fe, e);
|
|
232
238
|
}
|
|
233
|
-
function
|
|
234
|
-
return
|
|
239
|
+
function Je() {
|
|
240
|
+
return g(Fe);
|
|
235
241
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
242
|
+
function Ye(e) {
|
|
243
|
+
T(Ie, e);
|
|
238
244
|
}
|
|
239
|
-
function
|
|
240
|
-
return
|
|
245
|
+
function Xe() {
|
|
246
|
+
return g(Ie);
|
|
241
247
|
}
|
|
242
|
-
function
|
|
243
|
-
|
|
248
|
+
function Ze(e) {
|
|
249
|
+
T(Le, e);
|
|
244
250
|
}
|
|
245
|
-
function
|
|
246
|
-
return
|
|
251
|
+
function Qe() {
|
|
252
|
+
return g(Le);
|
|
247
253
|
}
|
|
248
|
-
function
|
|
249
|
-
|
|
254
|
+
function $e(e) {
|
|
255
|
+
T(Re, e);
|
|
250
256
|
}
|
|
251
|
-
function
|
|
252
|
-
return
|
|
257
|
+
function et() {
|
|
258
|
+
return g(Re);
|
|
253
259
|
}
|
|
254
|
-
function
|
|
255
|
-
|
|
260
|
+
function tt(e) {
|
|
261
|
+
T(ze, e);
|
|
256
262
|
}
|
|
257
|
-
function
|
|
258
|
-
return
|
|
263
|
+
function nt() {
|
|
264
|
+
return g(ze);
|
|
259
265
|
}
|
|
260
|
-
function
|
|
261
|
-
|
|
266
|
+
function rt(e) {
|
|
267
|
+
T(Be, e);
|
|
262
268
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
269
|
+
function it() {
|
|
270
|
+
return g(Be);
|
|
265
271
|
}
|
|
266
|
-
function
|
|
267
|
-
|
|
272
|
+
function at(e) {
|
|
273
|
+
T(Ve, e);
|
|
268
274
|
}
|
|
269
|
-
function
|
|
270
|
-
return
|
|
275
|
+
function Q() {
|
|
276
|
+
return g(Ve);
|
|
271
277
|
}
|
|
272
|
-
function
|
|
273
|
-
|
|
278
|
+
function ot(e) {
|
|
279
|
+
T(He, e);
|
|
274
280
|
}
|
|
275
|
-
function
|
|
276
|
-
return
|
|
281
|
+
function st() {
|
|
282
|
+
return g(He);
|
|
277
283
|
}
|
|
278
|
-
function
|
|
279
|
-
|
|
284
|
+
function ct(e) {
|
|
285
|
+
T(Ue, e);
|
|
280
286
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
287
|
+
function lt() {
|
|
288
|
+
return g(Ue);
|
|
283
289
|
}
|
|
284
|
-
function
|
|
285
|
-
|
|
290
|
+
function ut(e) {
|
|
291
|
+
T(We, e);
|
|
286
292
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
293
|
+
function dt() {
|
|
294
|
+
return g(We);
|
|
289
295
|
}
|
|
290
296
|
//#endregion
|
|
291
297
|
//#region src/utils/reset.ts
|
|
292
|
-
function
|
|
298
|
+
function ft(t, n, r, i) {
|
|
293
299
|
if (n.ui) if (n.array) {
|
|
294
|
-
let a =
|
|
295
|
-
|
|
300
|
+
let a = t[n.key], o = V(n);
|
|
301
|
+
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
296
302
|
} else {
|
|
297
|
-
let a =
|
|
298
|
-
|
|
303
|
+
let a = t[n.key], o = B(n);
|
|
304
|
+
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
299
305
|
}
|
|
300
306
|
else if (n.array) {
|
|
301
|
-
let a =
|
|
302
|
-
|
|
303
|
-
} else for (let
|
|
307
|
+
let a = t[n.key], o = V(n);
|
|
308
|
+
e(o, a) || (t[n.key] = o, i([...r, n.key], o));
|
|
309
|
+
} else for (let e of n.children) ft(t[n.key], e, [...r, n.key], i);
|
|
304
310
|
}
|
|
305
|
-
function
|
|
311
|
+
function pt(t, n, r, i) {
|
|
306
312
|
let a = r.at(-1);
|
|
307
313
|
if (a === void 0) return;
|
|
308
|
-
let o =
|
|
314
|
+
let o = xe(n, r);
|
|
309
315
|
if (o) if (o.ui) if (o.array) if (typeof a == "string") {
|
|
310
|
-
let n =
|
|
316
|
+
let n = q(t, r.slice(0, -1));
|
|
311
317
|
if (!n) return;
|
|
312
318
|
let s = n[a], c = V(o);
|
|
313
|
-
|
|
319
|
+
e(c, s) || (n[a] = c, i(r, c));
|
|
314
320
|
} else {
|
|
315
|
-
let n =
|
|
321
|
+
let n = q(t, r.slice(0, -1));
|
|
316
322
|
if (!n) return;
|
|
317
323
|
let s = n[a], c = B(o);
|
|
318
|
-
|
|
324
|
+
e(c, s) || (n[a] = c, i(r, c));
|
|
319
325
|
}
|
|
320
326
|
else {
|
|
321
|
-
let n =
|
|
327
|
+
let n = q(t, r.slice(0, -1));
|
|
322
328
|
if (!n) return;
|
|
323
329
|
let s = n[a], c = B(o);
|
|
324
|
-
|
|
330
|
+
e(c, s) || (n[a] = c, i(r, c));
|
|
325
331
|
}
|
|
326
332
|
else if (o.array) if (typeof a == "string") {
|
|
327
|
-
let n =
|
|
333
|
+
let n = q(t, r.slice(0, -1));
|
|
328
334
|
if (!n) return;
|
|
329
335
|
let s = n[a], c = V(o);
|
|
330
|
-
|
|
336
|
+
e(c, s) || (n[a] = c, i(r, c));
|
|
331
337
|
} else {
|
|
332
|
-
let
|
|
333
|
-
if (!
|
|
334
|
-
for (let
|
|
338
|
+
let e = q(t, r);
|
|
339
|
+
if (!e) return;
|
|
340
|
+
for (let t of o.children) ft(e, t, r, i);
|
|
335
341
|
}
|
|
336
342
|
else {
|
|
337
|
-
let
|
|
338
|
-
if (!
|
|
339
|
-
for (let
|
|
343
|
+
let e = q(t, r);
|
|
344
|
+
if (!e) return;
|
|
345
|
+
for (let t of o.children) ft(e, t, r, i);
|
|
340
346
|
}
|
|
341
347
|
}
|
|
342
348
|
//#endregion
|
|
343
349
|
//#region src/components/menu/index.vue
|
|
344
|
-
var
|
|
350
|
+
var mt = /* @__PURE__ */ m({
|
|
345
351
|
__name: "index",
|
|
346
352
|
setup(e) {
|
|
347
|
-
let { t } = H(), n =
|
|
348
|
-
!(m.value.length <= 0 || !
|
|
353
|
+
let { t } = H(), n = Qe(), r = et(), i = it(), a = Q(), l = E(0), d = E(0), m = E([]), h = s(() => [l.value, d.value]), g = (e) => {
|
|
354
|
+
!(m.value.length <= 0 || !Z(i.value, m.value)) && e.push({
|
|
349
355
|
title: t("x-prop-tree.reset"),
|
|
350
356
|
func: () => {
|
|
351
|
-
|
|
357
|
+
pt(r.value, n.value, m.value, a);
|
|
352
358
|
}
|
|
353
359
|
});
|
|
354
360
|
}, v = (e) => {
|
|
355
361
|
e.push({
|
|
356
362
|
title: t("x-prop-tree.copy"),
|
|
357
363
|
func: () => {
|
|
358
|
-
let e =
|
|
364
|
+
let e = xe(n.value, m.value), t = q(r.value, m.value);
|
|
359
365
|
localStorage.setItem("propTreeCopy", JSON.stringify({
|
|
360
366
|
property: e,
|
|
361
367
|
object: t
|
|
@@ -369,8 +375,8 @@ var dt = /* @__PURE__ */ p({
|
|
|
369
375
|
try {
|
|
370
376
|
let { property: t } = JSON.parse(e);
|
|
371
377
|
if (!t) return !1;
|
|
372
|
-
let r =
|
|
373
|
-
return r ?
|
|
378
|
+
let r = xe(n.value, m.value);
|
|
379
|
+
return r ? Te(t, r) : !1;
|
|
374
380
|
} catch (e) {
|
|
375
381
|
console.error(e);
|
|
376
382
|
}
|
|
@@ -382,36 +388,36 @@ var dt = /* @__PURE__ */ p({
|
|
|
382
388
|
if (!r()) return;
|
|
383
389
|
let e = localStorage.getItem("propTreeCopy");
|
|
384
390
|
if (e) try {
|
|
385
|
-
let { object: t } = JSON.parse(e), r =
|
|
391
|
+
let { object: t } = JSON.parse(e), r = xe(n.value, m.value);
|
|
386
392
|
console.log(t, r);
|
|
387
393
|
} catch (e) {
|
|
388
394
|
console.error(e);
|
|
389
395
|
}
|
|
390
396
|
}
|
|
391
397
|
});
|
|
392
|
-
}, b =
|
|
398
|
+
}, b = s(() => {
|
|
393
399
|
let e = [];
|
|
394
|
-
return
|
|
400
|
+
return g(e), v(e), y(e), e;
|
|
395
401
|
}), { open: x } = K("propTreeMenu", (e) => {
|
|
396
|
-
|
|
402
|
+
l.value = e.x, d.value = e.y, m.value = e.keys;
|
|
397
403
|
});
|
|
398
404
|
return (e, t) => {
|
|
399
|
-
let n = O("v-list-item-title"), r = O("v-list-item"), i = O("v-list"),
|
|
400
|
-
return
|
|
405
|
+
let n = O("v-list-item-title"), r = O("v-list-item"), i = O("v-list"), a = O("v-menu");
|
|
406
|
+
return w(), c(a, {
|
|
401
407
|
modelValue: j(x),
|
|
402
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
408
|
+
"onUpdate:modelValue": t[0] ||= (e) => _(x) ? x.value = e : null,
|
|
403
409
|
"location-strategy": "connected",
|
|
404
410
|
scrim: "transparent",
|
|
405
411
|
target: h.value
|
|
406
412
|
}, {
|
|
407
|
-
default: I(() => [
|
|
408
|
-
default: I(() => [(
|
|
413
|
+
default: I(() => [p(i, null, {
|
|
414
|
+
default: I(() => [(w(!0), u(o, null, D(b.value, (e, t) => (w(), c(r, {
|
|
409
415
|
key: t,
|
|
410
416
|
link: "",
|
|
411
417
|
onClick: e.func
|
|
412
418
|
}, {
|
|
413
|
-
default: I(() => [
|
|
414
|
-
default: I(() => [
|
|
419
|
+
default: I(() => [p(n, null, {
|
|
420
|
+
default: I(() => [f(A(e.title), 1)]),
|
|
415
421
|
_: 2
|
|
416
422
|
}, 1024)]),
|
|
417
423
|
_: 2
|
|
@@ -422,7 +428,7 @@ var dt = /* @__PURE__ */ p({
|
|
|
422
428
|
}, 8, ["modelValue", "target"]);
|
|
423
429
|
};
|
|
424
430
|
}
|
|
425
|
-
}),
|
|
431
|
+
}), ht = { style: { pointerEvents: "none" } }, gt = /* @__PURE__ */ m({
|
|
426
432
|
__name: "index",
|
|
427
433
|
props: {
|
|
428
434
|
title: {},
|
|
@@ -444,103 +450,103 @@ var dt = /* @__PURE__ */ p({
|
|
|
444
450
|
"delete"
|
|
445
451
|
],
|
|
446
452
|
setup(e, { emit: t }) {
|
|
447
|
-
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a =
|
|
453
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = E(!1), o = s(() => ({
|
|
448
454
|
background: a.value ? r.value : n.value,
|
|
449
455
|
height: "36px",
|
|
450
456
|
marginBottom: "1px",
|
|
451
457
|
userSelect: "none"
|
|
452
|
-
})),
|
|
458
|
+
})), f = () => {
|
|
453
459
|
i("collapse", !e.collapse);
|
|
454
460
|
}, m = (e) => {
|
|
455
461
|
i("menu", e.clientX, e.clientY);
|
|
456
462
|
};
|
|
457
463
|
return (t, n) => {
|
|
458
|
-
let r = O("v-icon"),
|
|
459
|
-
return L((
|
|
464
|
+
let r = O("v-icon"), s = O("v-spacer"), h = O("v-btn"), g = k("ripple");
|
|
465
|
+
return L((w(), u("div", {
|
|
460
466
|
class: "d-flex align-center cursor-pointer",
|
|
461
|
-
style:
|
|
462
|
-
onClick:
|
|
467
|
+
style: b(o.value),
|
|
468
|
+
onClick: f,
|
|
463
469
|
onContextmenu: z(m, ["self", "prevent"]),
|
|
464
470
|
onMouseout: n[2] ||= (e) => a.value = !1,
|
|
465
471
|
onMouseover: n[3] ||= (e) => a.value = !0
|
|
466
472
|
}, [
|
|
467
|
-
|
|
473
|
+
p(r, {
|
|
468
474
|
class: "mr-1",
|
|
469
475
|
icon: e.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
|
|
470
476
|
}, null, 8, ["icon"]),
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
e.hasCreate ? (
|
|
477
|
+
d("span", ht, A(e.title), 1),
|
|
478
|
+
p(s),
|
|
479
|
+
e.hasCreate ? (w(), c(h, {
|
|
474
480
|
key: 0,
|
|
475
481
|
class: "mx-3",
|
|
476
482
|
density: "compact",
|
|
477
483
|
icon: "mdi-plus",
|
|
478
484
|
variant: "text",
|
|
479
485
|
onClick: n[0] ||= z((e) => i("create"), ["stop"])
|
|
480
|
-
})) :
|
|
481
|
-
e.hasDelete ? (
|
|
486
|
+
})) : l("", !0),
|
|
487
|
+
e.hasDelete ? (w(), c(h, {
|
|
482
488
|
key: 1,
|
|
483
489
|
class: "mx-3",
|
|
484
490
|
density: "compact",
|
|
485
491
|
icon: "mdi-minus",
|
|
486
492
|
variant: "text",
|
|
487
493
|
onClick: n[1] ||= z((t) => i("delete", e.index), ["stop"])
|
|
488
|
-
})) :
|
|
494
|
+
})) : l("", !0)
|
|
489
495
|
], 36)), [[g]]);
|
|
490
496
|
};
|
|
491
497
|
}
|
|
492
498
|
});
|
|
493
499
|
//#endregion
|
|
494
500
|
//#region src/composables/adaptSlotList/index.ts
|
|
495
|
-
function
|
|
496
|
-
let e =
|
|
497
|
-
|
|
501
|
+
function _t() {
|
|
502
|
+
let e = Ke(), t = Je(), n = Xe(), { i18n: r } = pe, o = E([]);
|
|
503
|
+
ut(o);
|
|
498
504
|
let s = () => {
|
|
499
505
|
if (!e.value || !t.value || !n.value) return [];
|
|
500
|
-
let s =
|
|
506
|
+
let s = ue[e.value];
|
|
501
507
|
if (!s) return console.assert(!1, `invalid version=${e.value}`), [];
|
|
502
|
-
let c =
|
|
508
|
+
let c = ie(t.value, n.value), l = [];
|
|
503
509
|
for (let e = 0; e < s.groups[c].length; e++) {
|
|
504
|
-
let t = s.groups[c][e], n =
|
|
510
|
+
let t = s.groups[c][e], n = i(o, t.key);
|
|
505
511
|
l.push({
|
|
506
512
|
id: t.key,
|
|
507
513
|
type: 0,
|
|
508
|
-
name:
|
|
514
|
+
name: r.global.t(t.name),
|
|
509
515
|
position: e,
|
|
510
516
|
collapse: n?.collapse ?? !0,
|
|
511
517
|
count: 0
|
|
512
518
|
});
|
|
513
|
-
let
|
|
519
|
+
let a = 0;
|
|
514
520
|
for (let e of t.items) {
|
|
515
|
-
let n =
|
|
521
|
+
let n = ne(e);
|
|
516
522
|
if (n && !n.internal && n.slots) for (let e of n.slots) {
|
|
517
|
-
let
|
|
523
|
+
let i = ce("elementSlot", n.key, e.key), o = `${r.global.t(n.name)} / ${r.global.t(e.name)}`;
|
|
518
524
|
l.push({
|
|
519
|
-
id:
|
|
525
|
+
id: i,
|
|
520
526
|
type: 1,
|
|
521
527
|
name: o,
|
|
522
|
-
position:
|
|
528
|
+
position: a++,
|
|
523
529
|
group: t.key
|
|
524
530
|
});
|
|
525
531
|
}
|
|
526
532
|
}
|
|
527
533
|
}
|
|
528
|
-
let { activeApp: u, depends: d } =
|
|
534
|
+
let { activeApp: u, depends: d } = ve.app;
|
|
529
535
|
for (let { id: e, name: t, position: n } of u.compGroups) {
|
|
530
|
-
let
|
|
536
|
+
let r = i(o, e);
|
|
531
537
|
l.push({
|
|
532
538
|
id: e,
|
|
533
539
|
type: 0,
|
|
534
540
|
name: t,
|
|
535
541
|
position: n,
|
|
536
|
-
collapse:
|
|
542
|
+
collapse: r?.collapse ?? !0
|
|
537
543
|
});
|
|
538
544
|
}
|
|
539
545
|
let f = 0;
|
|
540
546
|
for (let e of u.comps) {
|
|
541
547
|
let t = d[e.id];
|
|
542
548
|
if (t && t.meta.slots) for (let n of t.meta.slots) {
|
|
543
|
-
let t =
|
|
549
|
+
let t = ce("customSlot", e.id, n.id), r = `${e.name} / ${n.name}`;
|
|
544
550
|
l.push({
|
|
545
551
|
id: t,
|
|
546
552
|
type: 1,
|
|
@@ -550,7 +556,7 @@ function mt() {
|
|
|
550
556
|
});
|
|
551
557
|
}
|
|
552
558
|
}
|
|
553
|
-
return
|
|
559
|
+
return a(l, !0);
|
|
554
560
|
}, c = () => {
|
|
555
561
|
o.value = s();
|
|
556
562
|
}, l, u = () => {
|
|
@@ -560,9 +566,9 @@ function mt() {
|
|
|
560
566
|
}, d = () => {
|
|
561
567
|
clearTimeout(l), l = void 0;
|
|
562
568
|
};
|
|
563
|
-
|
|
569
|
+
S(() => {
|
|
564
570
|
u();
|
|
565
|
-
}),
|
|
571
|
+
}), x(() => {
|
|
566
572
|
d();
|
|
567
573
|
}), P([
|
|
568
574
|
e,
|
|
@@ -574,11 +580,11 @@ function mt() {
|
|
|
574
580
|
}
|
|
575
581
|
//#endregion
|
|
576
582
|
//#region src/composables/compList/index.ts
|
|
577
|
-
function
|
|
578
|
-
let e =
|
|
579
|
-
|
|
583
|
+
function vt() {
|
|
584
|
+
let e = E([]);
|
|
585
|
+
ot(e);
|
|
580
586
|
let t = () => {
|
|
581
|
-
let { activeApp: t, depends: n } =
|
|
587
|
+
let { activeApp: t, depends: n } = ve.app, r = [];
|
|
582
588
|
for (let { id: n, name: i, position: a } of t.compGroups) {
|
|
583
589
|
let t = e.value.find((e) => e.id === n);
|
|
584
590
|
r.push({
|
|
@@ -596,27 +602,27 @@ function ht() {
|
|
|
596
602
|
position: o,
|
|
597
603
|
group: i
|
|
598
604
|
});
|
|
599
|
-
e.value =
|
|
605
|
+
e.value = a(r, !0);
|
|
600
606
|
}, n, r = () => {
|
|
601
607
|
clearTimeout(n), n = window.setTimeout(() => {
|
|
602
608
|
t(), n && r();
|
|
603
609
|
}, 1e3);
|
|
604
|
-
},
|
|
610
|
+
}, i = () => {
|
|
605
611
|
clearTimeout(n), n = void 0;
|
|
606
612
|
};
|
|
607
|
-
|
|
613
|
+
S(() => {
|
|
608
614
|
r();
|
|
609
|
-
}),
|
|
610
|
-
|
|
615
|
+
}), x(() => {
|
|
616
|
+
i();
|
|
611
617
|
});
|
|
612
618
|
}
|
|
613
619
|
//#endregion
|
|
614
620
|
//#region src/composables/slotList/index.ts
|
|
615
|
-
function
|
|
616
|
-
let e =
|
|
617
|
-
|
|
621
|
+
function yt() {
|
|
622
|
+
let e = E([]);
|
|
623
|
+
ct(e);
|
|
618
624
|
let t = () => {
|
|
619
|
-
let { activeObject: e, activeComp: t } =
|
|
625
|
+
let { activeObject: e, activeComp: t } = ve.app;
|
|
620
626
|
if (e.type !== "comp" || !t.meta.slots) return [];
|
|
621
627
|
let n = [];
|
|
622
628
|
for (let { id: e, name: r } of t.meta.slots) n.push({
|
|
@@ -633,15 +639,15 @@ function gt() {
|
|
|
633
639
|
}, a = () => {
|
|
634
640
|
clearTimeout(r), r = void 0;
|
|
635
641
|
};
|
|
636
|
-
|
|
642
|
+
S(() => {
|
|
637
643
|
i();
|
|
638
|
-
}),
|
|
644
|
+
}), x(() => {
|
|
639
645
|
a();
|
|
640
646
|
});
|
|
641
647
|
}
|
|
642
648
|
//#endregion
|
|
643
649
|
//#region src/components/values/adaptSlot/adaptSlotList/group.vue?vue&type=script&setup=true&lang.ts
|
|
644
|
-
var
|
|
650
|
+
var bt = { class: "text-label-large ml-1" }, xt = { class: "text-body-small text-grey ml-1" }, St = /* @__PURE__ */ m({
|
|
645
651
|
__name: "group",
|
|
646
652
|
props: {
|
|
647
653
|
id: {},
|
|
@@ -651,31 +657,31 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
651
657
|
},
|
|
652
658
|
emits: ["x-click"],
|
|
653
659
|
setup(e, { emit: t }) {
|
|
654
|
-
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t,
|
|
655
|
-
background:
|
|
660
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, o = E(!1), c = s(() => ({
|
|
661
|
+
background: o.value ? r.value : n.value,
|
|
656
662
|
height: "30px",
|
|
657
663
|
marginTop: "1px",
|
|
658
664
|
userSelect: "none"
|
|
659
665
|
}));
|
|
660
666
|
return (e, t) => {
|
|
661
667
|
let n = O("v-icon"), r = k("ripple");
|
|
662
|
-
return L((
|
|
668
|
+
return L((w(), u("div", {
|
|
663
669
|
class: "d-flex align-center cursor-pointer",
|
|
664
|
-
style:
|
|
670
|
+
style: b(c.value),
|
|
665
671
|
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
666
|
-
onMouseout: t[1] ||= (e) =>
|
|
667
|
-
onMouseover: t[2] ||= (e) =>
|
|
672
|
+
onMouseout: t[1] ||= (e) => o.value = !1,
|
|
673
|
+
onMouseover: t[2] ||= (e) => o.value = !0
|
|
668
674
|
}, [
|
|
669
|
-
|
|
675
|
+
p(n, {
|
|
670
676
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
671
677
|
size: "small"
|
|
672
678
|
}, null, 8, ["icon"]),
|
|
673
|
-
|
|
674
|
-
|
|
679
|
+
d("span", bt, A(i.title), 1),
|
|
680
|
+
d("span", xt, A(i.count), 1)
|
|
675
681
|
], 36)), [[r]]);
|
|
676
682
|
};
|
|
677
683
|
}
|
|
678
|
-
}),
|
|
684
|
+
}), Ct = { class: "text-body-large ml-6" }, wt = /* @__PURE__ */ m({
|
|
679
685
|
__name: "item",
|
|
680
686
|
props: {
|
|
681
687
|
id: {},
|
|
@@ -683,7 +689,7 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
683
689
|
},
|
|
684
690
|
emits: ["x-click"],
|
|
685
691
|
setup(e, { emit: t }) {
|
|
686
|
-
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a =
|
|
692
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = E(!1), o = s(() => ({
|
|
687
693
|
background: a.value ? r.value : n.value,
|
|
688
694
|
height: "48px",
|
|
689
695
|
marginTop: "1px",
|
|
@@ -691,19 +697,19 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
691
697
|
}));
|
|
692
698
|
return (t, n) => {
|
|
693
699
|
let r = k("ripple");
|
|
694
|
-
return L((
|
|
700
|
+
return L((w(), u("div", {
|
|
695
701
|
class: "d-flex align-center cursor-pointer",
|
|
696
|
-
style:
|
|
702
|
+
style: b(o.value),
|
|
697
703
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
698
704
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
699
705
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
700
|
-
}, [
|
|
706
|
+
}, [d("span", Ct, A(e.title), 1)], 36)), [[r]]);
|
|
701
707
|
};
|
|
702
708
|
}
|
|
703
|
-
}),
|
|
709
|
+
}), Tt = { key: 0 }, Et = {
|
|
704
710
|
key: 1,
|
|
705
711
|
class: "text-body-medium text-grey ml-3"
|
|
706
|
-
},
|
|
712
|
+
}, Dt = /* @__PURE__ */ m({
|
|
707
713
|
__name: "index",
|
|
708
714
|
props: {
|
|
709
715
|
modelValue: {},
|
|
@@ -716,13 +722,13 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
716
722
|
},
|
|
717
723
|
emits: ["update:modelValue", "update:open"],
|
|
718
724
|
setup(e) {
|
|
719
|
-
let { nameList: t } = G(),
|
|
720
|
-
let t =
|
|
721
|
-
t && n(
|
|
725
|
+
let { nameList: t } = G(), r = N(e, "modelValue"), a = N(e, "open"), s = dt(), d = (e) => {
|
|
726
|
+
let t = i(s, e);
|
|
727
|
+
t && n(s, e, !t.collapse);
|
|
722
728
|
}, f = (e) => {
|
|
723
|
-
|
|
729
|
+
r.value = e, a.value = !1;
|
|
724
730
|
};
|
|
725
|
-
return (e, n) => j(
|
|
731
|
+
return (e, n) => j(s).length > 0 ? (w(), u("div", Tt, [(w(!0), u(o, null, D(j(s), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(St, {
|
|
726
732
|
key: 0,
|
|
727
733
|
id: e.id,
|
|
728
734
|
collapse: e.collapse,
|
|
@@ -734,20 +740,20 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
734
740
|
"collapse",
|
|
735
741
|
"count",
|
|
736
742
|
"title"
|
|
737
|
-
])) :
|
|
743
|
+
])) : l("", !0), e.type === 1 && e.show ? (w(), c(wt, {
|
|
738
744
|
key: 1,
|
|
739
745
|
id: e.id,
|
|
740
746
|
title: e.name,
|
|
741
747
|
onXClick: f
|
|
742
|
-
}, null, 8, ["id", "title"])) :
|
|
748
|
+
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", Et, A(j(t)([
|
|
743
749
|
"x-prop-tree.no",
|
|
744
750
|
"x-prop-tree.adapt",
|
|
745
751
|
"x-prop-tree.slot"
|
|
746
752
|
])), 1));
|
|
747
753
|
}
|
|
748
|
-
}),
|
|
754
|
+
}), Ot = { class: "text-body-large" }, kt = /* @__PURE__ */ m({
|
|
749
755
|
__name: "index",
|
|
750
|
-
props: /* @__PURE__ */
|
|
756
|
+
props: /* @__PURE__ */ v({
|
|
751
757
|
hasDelete: {
|
|
752
758
|
type: Boolean,
|
|
753
759
|
default: !1
|
|
@@ -760,99 +766,99 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
760
766
|
modelValue: {},
|
|
761
767
|
modelModifiers: {}
|
|
762
768
|
}),
|
|
763
|
-
emits: /* @__PURE__ */
|
|
769
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
764
770
|
setup(e, { emit: t }) {
|
|
765
|
-
let { t: n } = H(),
|
|
771
|
+
let { t: n } = H(), r = ye(), { sysBarAvail: a, nameList: o } = G(), { backgroundColor1: u } = W(), m = N(e, "modelValue"), h = t, g = dt(), v = s(() => {
|
|
766
772
|
let e = "100%";
|
|
767
|
-
return
|
|
768
|
-
background:
|
|
773
|
+
return r.mdAndUp.value && (e = "400px"), {
|
|
774
|
+
background: u.value,
|
|
769
775
|
width: e,
|
|
770
776
|
height: "100%"
|
|
771
777
|
};
|
|
772
|
-
}), x =
|
|
778
|
+
}), x = s(() => {
|
|
773
779
|
let e = 48;
|
|
774
780
|
return a.value && (e += 24), {
|
|
775
781
|
position: "relative",
|
|
776
782
|
height: `calc(100% - ${e}px)`
|
|
777
783
|
};
|
|
778
|
-
}),
|
|
784
|
+
}), S = s(() => ({ height: "60px" })), T = s(() => {
|
|
779
785
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
780
|
-
let e =
|
|
786
|
+
let e = i(g, m.value);
|
|
781
787
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
782
788
|
}), { open: E } = K(`propTreeAdaptSlotSelectDlg${M()}`);
|
|
783
|
-
return
|
|
789
|
+
return C(() => {
|
|
784
790
|
E.value = !1;
|
|
785
791
|
}), (t, n) => {
|
|
786
|
-
let r = O("v-btn"), i = O("v-sheet"),
|
|
787
|
-
return
|
|
792
|
+
let r = O("v-btn"), i = O("v-sheet"), s = O("v-dialog");
|
|
793
|
+
return w(), c(s, {
|
|
788
794
|
modelValue: j(E),
|
|
789
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
795
|
+
"onUpdate:modelValue": n[6] ||= (e) => _(E) ? E.value = e : null,
|
|
790
796
|
fullscreen: "",
|
|
791
797
|
"no-click-animation": "",
|
|
792
798
|
persistent: "",
|
|
793
799
|
transition: "scroll-x-reverse-transition",
|
|
794
800
|
onKeydown: n[7] ||= R(z((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
795
801
|
}, {
|
|
796
|
-
activator: I(({ props: t }) => [
|
|
802
|
+
activator: I(({ props: t }) => [p(r, y(t, {
|
|
797
803
|
block: "",
|
|
798
804
|
density: "comfortable",
|
|
799
805
|
readonly: e.readonly
|
|
800
806
|
}), {
|
|
801
|
-
default: I(() => [
|
|
807
|
+
default: I(() => [f(A(T.value), 1)]),
|
|
802
808
|
_: 1
|
|
803
|
-
}, 16, ["readonly"]), e.hasDelete ? (
|
|
809
|
+
}, 16, ["readonly"]), e.hasDelete ? (w(), c(r, {
|
|
804
810
|
key: 0,
|
|
805
811
|
class: "mx-2",
|
|
806
812
|
density: "compact",
|
|
807
813
|
icon: "mdi-minus",
|
|
808
814
|
variant: "text",
|
|
809
815
|
onClick: n[0] ||= z((e) => h("delete"), ["stop"])
|
|
810
|
-
})) :
|
|
811
|
-
default: I(() => [
|
|
816
|
+
})) : l("", !0)]),
|
|
817
|
+
default: I(() => [d("div", {
|
|
812
818
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
813
819
|
onClick: n[4] ||= z((e) => E.value = !1, ["self"]),
|
|
814
820
|
onContextmenu: n[5] ||= z((e) => E.value = !1, ["self", "prevent"])
|
|
815
|
-
}, [
|
|
821
|
+
}, [d("div", {
|
|
816
822
|
class: "elevation-2",
|
|
817
|
-
style:
|
|
823
|
+
style: b(v.value)
|
|
818
824
|
}, [
|
|
819
|
-
j(a) ? (
|
|
825
|
+
j(a) ? (w(), c(i, {
|
|
820
826
|
key: 0,
|
|
821
827
|
color: "transparent",
|
|
822
828
|
height: 24
|
|
823
|
-
})) :
|
|
824
|
-
|
|
829
|
+
})) : l("", !0),
|
|
830
|
+
p(i, {
|
|
825
831
|
class: "d-flex align-center px-3",
|
|
826
832
|
color: "transparent",
|
|
827
833
|
height: 48
|
|
828
834
|
}, {
|
|
829
|
-
default: I(() => [
|
|
835
|
+
default: I(() => [p(r, {
|
|
830
836
|
density: "comfortable",
|
|
831
837
|
icon: "mdi-close",
|
|
832
838
|
variant: "text",
|
|
833
839
|
onClick: n[1] ||= (e) => E.value = !1
|
|
834
|
-
}),
|
|
840
|
+
}), d("span", Ot, A(j(o)([
|
|
835
841
|
"x-prop-tree.select",
|
|
836
842
|
"x-prop-tree.adapt",
|
|
837
843
|
"x-prop-tree.slot"
|
|
838
844
|
])), 1)]),
|
|
839
845
|
_: 1
|
|
840
846
|
}),
|
|
841
|
-
|
|
847
|
+
d("div", {
|
|
842
848
|
class: "overflow-y-auto",
|
|
843
|
-
style:
|
|
844
|
-
}, [
|
|
849
|
+
style: b(x.value)
|
|
850
|
+
}, [p(Dt, {
|
|
845
851
|
modelValue: m.value,
|
|
846
852
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
847
853
|
open: j(E),
|
|
848
|
-
"onUpdate:open": n[3] ||= (e) =>
|
|
849
|
-
}, null, 8, ["modelValue", "open"]),
|
|
854
|
+
"onUpdate:open": n[3] ||= (e) => _(E) ? E.value = e : null
|
|
855
|
+
}, null, 8, ["modelValue", "open"]), d("div", { style: b(S.value) }, null, 4)], 4)
|
|
850
856
|
], 4)], 32)]),
|
|
851
857
|
_: 1
|
|
852
858
|
}, 8, ["modelValue"]);
|
|
853
859
|
};
|
|
854
860
|
}
|
|
855
|
-
}),
|
|
861
|
+
}), At = { class: "text-label-large ml-1" }, jt = { class: "text-body-small text-grey ml-1" }, Mt = /* @__PURE__ */ m({
|
|
856
862
|
__name: "group",
|
|
857
863
|
props: {
|
|
858
864
|
id: {},
|
|
@@ -862,31 +868,31 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
862
868
|
},
|
|
863
869
|
emits: ["x-click"],
|
|
864
870
|
setup(e, { emit: t }) {
|
|
865
|
-
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t,
|
|
866
|
-
background:
|
|
871
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, o = E(!1), c = s(() => ({
|
|
872
|
+
background: o.value ? r.value : n.value,
|
|
867
873
|
height: "30px",
|
|
868
874
|
marginTop: "1px",
|
|
869
875
|
userSelect: "none"
|
|
870
876
|
}));
|
|
871
877
|
return (e, t) => {
|
|
872
878
|
let n = O("v-icon"), r = k("ripple");
|
|
873
|
-
return L((
|
|
879
|
+
return L((w(), u("div", {
|
|
874
880
|
class: "d-flex align-center cursor-pointer",
|
|
875
|
-
style:
|
|
881
|
+
style: b(c.value),
|
|
876
882
|
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
877
|
-
onMouseout: t[1] ||= (e) =>
|
|
878
|
-
onMouseover: t[2] ||= (e) =>
|
|
883
|
+
onMouseout: t[1] ||= (e) => o.value = !1,
|
|
884
|
+
onMouseover: t[2] ||= (e) => o.value = !0
|
|
879
885
|
}, [
|
|
880
|
-
|
|
886
|
+
p(n, {
|
|
881
887
|
icon: i.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
|
|
882
888
|
size: "small"
|
|
883
889
|
}, null, 8, ["icon"]),
|
|
884
|
-
|
|
885
|
-
|
|
890
|
+
d("span", At, A(i.title), 1),
|
|
891
|
+
d("span", jt, A(i.count), 1)
|
|
886
892
|
], 36)), [[r]]);
|
|
887
893
|
};
|
|
888
894
|
}
|
|
889
|
-
}),
|
|
895
|
+
}), Nt = { class: "text-body-large ml-6" }, Pt = /* @__PURE__ */ m({
|
|
890
896
|
__name: "item",
|
|
891
897
|
props: {
|
|
892
898
|
id: {},
|
|
@@ -894,27 +900,27 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
894
900
|
},
|
|
895
901
|
emits: ["x-click"],
|
|
896
902
|
setup(e, { emit: t }) {
|
|
897
|
-
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t,
|
|
898
|
-
background:
|
|
903
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = e, a = t, o = E(!1), c = s(() => ({
|
|
904
|
+
background: o.value ? r.value : n.value,
|
|
899
905
|
height: "48px",
|
|
900
906
|
marginTop: "1px",
|
|
901
907
|
userSelect: "none"
|
|
902
908
|
}));
|
|
903
909
|
return (e, t) => {
|
|
904
910
|
let n = k("ripple");
|
|
905
|
-
return L((
|
|
911
|
+
return L((w(), u("div", {
|
|
906
912
|
class: "d-flex align-center cursor-pointer",
|
|
907
|
-
style:
|
|
913
|
+
style: b(c.value),
|
|
908
914
|
onClick: t[0] ||= (e) => a("x-click", i.id),
|
|
909
|
-
onMouseout: t[1] ||= (e) =>
|
|
910
|
-
onMouseover: t[2] ||= (e) =>
|
|
911
|
-
}, [
|
|
915
|
+
onMouseout: t[1] ||= (e) => o.value = !1,
|
|
916
|
+
onMouseover: t[2] ||= (e) => o.value = !0
|
|
917
|
+
}, [d("span", Nt, A(i.title), 1)], 36)), [[n]]);
|
|
912
918
|
};
|
|
913
919
|
}
|
|
914
|
-
}),
|
|
920
|
+
}), Ft = { key: 0 }, It = {
|
|
915
921
|
key: 1,
|
|
916
922
|
class: "text-body-medium text-grey ml-3"
|
|
917
|
-
},
|
|
923
|
+
}, Lt = /* @__PURE__ */ m({
|
|
918
924
|
__name: "index",
|
|
919
925
|
props: {
|
|
920
926
|
modelValue: {},
|
|
@@ -927,13 +933,13 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
927
933
|
},
|
|
928
934
|
emits: ["update:modelValue", "update:open"],
|
|
929
935
|
setup(e) {
|
|
930
|
-
let { nameList: t } = G(),
|
|
931
|
-
let t =
|
|
932
|
-
t && n(
|
|
936
|
+
let { nameList: t } = G(), r = N(e, "modelValue"), a = N(e, "open"), s = st(), d = (e) => {
|
|
937
|
+
let t = i(s, e);
|
|
938
|
+
t && n(s, e, !t.collapse);
|
|
933
939
|
}, f = (e) => {
|
|
934
|
-
|
|
940
|
+
r.value = e, a.value = !1, U.emit("refreshDepends");
|
|
935
941
|
};
|
|
936
|
-
return (e, n) => j(
|
|
942
|
+
return (e, n) => j(s).length > 0 ? (w(), u("div", Ft, [(w(!0), u(o, null, D(j(s), (e) => (w(), u(o, { key: e.id }, [e.type === 0 ? (w(), c(Mt, {
|
|
937
943
|
key: 0,
|
|
938
944
|
id: e.id,
|
|
939
945
|
collapse: e.collapse,
|
|
@@ -945,16 +951,16 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
945
951
|
"collapse",
|
|
946
952
|
"count",
|
|
947
953
|
"title"
|
|
948
|
-
])) :
|
|
954
|
+
])) : l("", !0), e.type === 1 && e.show ? (w(), c(Pt, {
|
|
949
955
|
key: 1,
|
|
950
956
|
id: e.id,
|
|
951
957
|
title: e.name,
|
|
952
958
|
onXClick: f
|
|
953
|
-
}, null, 8, ["id", "title"])) :
|
|
959
|
+
}, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", It, A(j(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
|
|
954
960
|
}
|
|
955
|
-
}),
|
|
961
|
+
}), Rt = { class: "text-body-large" }, zt = /* @__PURE__ */ m({
|
|
956
962
|
__name: "index",
|
|
957
|
-
props: /* @__PURE__ */
|
|
963
|
+
props: /* @__PURE__ */ v({
|
|
958
964
|
hasDelete: {
|
|
959
965
|
type: Boolean,
|
|
960
966
|
default: !1
|
|
@@ -967,97 +973,97 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
967
973
|
modelValue: {},
|
|
968
974
|
modelModifiers: {}
|
|
969
975
|
}),
|
|
970
|
-
emits: /* @__PURE__ */
|
|
976
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
971
977
|
setup(e, { emit: t }) {
|
|
972
|
-
let { t: n } = H(),
|
|
978
|
+
let { t: n } = H(), r = ye(), { sysBarAvail: a, nameList: o } = G(), { backgroundColor1: u } = W(), m = N(e, "modelValue"), h = t, g = st(), v = s(() => {
|
|
973
979
|
let e = "100%";
|
|
974
|
-
return
|
|
975
|
-
background:
|
|
980
|
+
return r.mdAndUp.value && (e = "400px"), {
|
|
981
|
+
background: u.value,
|
|
976
982
|
width: e,
|
|
977
983
|
height: "100%"
|
|
978
984
|
};
|
|
979
|
-
}), x =
|
|
985
|
+
}), x = s(() => {
|
|
980
986
|
let e = 48;
|
|
981
987
|
return a.value && (e += 24), {
|
|
982
988
|
position: "relative",
|
|
983
989
|
height: `calc(100% - ${e}px)`
|
|
984
990
|
};
|
|
985
|
-
}),
|
|
991
|
+
}), S = s(() => ({ height: "60px" })), T = s(() => {
|
|
986
992
|
if (!m.value) return n("x-runtime-lib.notSet");
|
|
987
|
-
let e =
|
|
993
|
+
let e = i(g, m.value);
|
|
988
994
|
return e ? e.name : n("x-runtime-lib.compNotAvail");
|
|
989
995
|
}), { open: E } = K(`propTreeCompSelectDlg${M()}`);
|
|
990
|
-
return
|
|
996
|
+
return C(() => {
|
|
991
997
|
E.value = !1;
|
|
992
998
|
}), (t, n) => {
|
|
993
|
-
let r = O("v-btn"), i = O("v-sheet"),
|
|
994
|
-
return
|
|
999
|
+
let r = O("v-btn"), i = O("v-sheet"), s = O("v-dialog");
|
|
1000
|
+
return w(), c(s, {
|
|
995
1001
|
modelValue: j(E),
|
|
996
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
1002
|
+
"onUpdate:modelValue": n[6] ||= (e) => _(E) ? E.value = e : null,
|
|
997
1003
|
fullscreen: "",
|
|
998
1004
|
"no-click-animation": "",
|
|
999
1005
|
persistent: "",
|
|
1000
1006
|
transition: "scroll-x-reverse-transition",
|
|
1001
1007
|
onKeydown: n[7] ||= R(z((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1002
1008
|
}, {
|
|
1003
|
-
activator: I(({ props: t }) => [
|
|
1009
|
+
activator: I(({ props: t }) => [p(r, y(t, {
|
|
1004
1010
|
block: "",
|
|
1005
1011
|
density: "comfortable",
|
|
1006
1012
|
readonly: e.readonly
|
|
1007
1013
|
}), {
|
|
1008
|
-
default: I(() => [
|
|
1014
|
+
default: I(() => [f(A(T.value), 1)]),
|
|
1009
1015
|
_: 1
|
|
1010
|
-
}, 16, ["readonly"]), e.hasDelete ? (
|
|
1016
|
+
}, 16, ["readonly"]), e.hasDelete ? (w(), c(r, {
|
|
1011
1017
|
key: 0,
|
|
1012
1018
|
class: "mx-2",
|
|
1013
1019
|
density: "compact",
|
|
1014
1020
|
icon: "mdi-minus",
|
|
1015
1021
|
variant: "text",
|
|
1016
1022
|
onClick: n[0] ||= z((e) => h("delete"), ["stop"])
|
|
1017
|
-
})) :
|
|
1018
|
-
default: I(() => [
|
|
1023
|
+
})) : l("", !0)]),
|
|
1024
|
+
default: I(() => [d("div", {
|
|
1019
1025
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1020
1026
|
onClick: n[4] ||= z((e) => E.value = !1, ["self"]),
|
|
1021
1027
|
onContextmenu: n[5] ||= z((e) => E.value = !1, ["self", "prevent"])
|
|
1022
|
-
}, [
|
|
1028
|
+
}, [d("div", {
|
|
1023
1029
|
class: "elevation-2",
|
|
1024
|
-
style:
|
|
1030
|
+
style: b(v.value)
|
|
1025
1031
|
}, [
|
|
1026
|
-
j(a) ? (
|
|
1032
|
+
j(a) ? (w(), c(i, {
|
|
1027
1033
|
key: 0,
|
|
1028
1034
|
color: "transparent",
|
|
1029
1035
|
height: 24
|
|
1030
|
-
})) :
|
|
1031
|
-
|
|
1036
|
+
})) : l("", !0),
|
|
1037
|
+
p(i, {
|
|
1032
1038
|
class: "d-flex align-center px-3",
|
|
1033
1039
|
color: "transparent",
|
|
1034
1040
|
height: 48
|
|
1035
1041
|
}, {
|
|
1036
|
-
default: I(() => [
|
|
1042
|
+
default: I(() => [p(r, {
|
|
1037
1043
|
density: "comfortable",
|
|
1038
1044
|
icon: "mdi-close",
|
|
1039
1045
|
variant: "text",
|
|
1040
1046
|
onClick: n[1] ||= (e) => E.value = !1
|
|
1041
|
-
}),
|
|
1047
|
+
}), d("span", Rt, A(j(o)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
|
|
1042
1048
|
_: 1
|
|
1043
1049
|
}),
|
|
1044
|
-
|
|
1050
|
+
d("div", {
|
|
1045
1051
|
class: "overflow-y-auto",
|
|
1046
|
-
style:
|
|
1047
|
-
}, [
|
|
1052
|
+
style: b(x.value)
|
|
1053
|
+
}, [p(Lt, {
|
|
1048
1054
|
modelValue: m.value,
|
|
1049
1055
|
"onUpdate:modelValue": n[2] ||= (e) => m.value = e,
|
|
1050
1056
|
open: j(E),
|
|
1051
|
-
"onUpdate:open": n[3] ||= (e) =>
|
|
1052
|
-
}, null, 8, ["modelValue", "open"]),
|
|
1057
|
+
"onUpdate:open": n[3] ||= (e) => _(E) ? E.value = e : null
|
|
1058
|
+
}, null, 8, ["modelValue", "open"]), d("div", { style: b(S.value) }, null, 4)], 4)
|
|
1053
1059
|
], 4)], 32)]),
|
|
1054
1060
|
_: 1
|
|
1055
1061
|
}, 8, ["modelValue"]);
|
|
1056
1062
|
};
|
|
1057
1063
|
}
|
|
1058
|
-
}),
|
|
1064
|
+
}), Bt = { class: "d-flex justify-space-between align-center" }, Vt = /* @__PURE__ */ m({
|
|
1059
1065
|
__name: "index",
|
|
1060
|
-
props: /* @__PURE__ */
|
|
1066
|
+
props: /* @__PURE__ */ v({
|
|
1061
1067
|
hasDelete: {
|
|
1062
1068
|
type: Boolean,
|
|
1063
1069
|
default: !1
|
|
@@ -1070,19 +1076,19 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1070
1076
|
modelValue: { required: !0 },
|
|
1071
1077
|
modelModifiers: {}
|
|
1072
1078
|
}),
|
|
1073
|
-
emits: /* @__PURE__ */
|
|
1079
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1074
1080
|
setup(e, { emit: t }) {
|
|
1075
1081
|
let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1076
1082
|
if (!t || e.readonly || !n()) return;
|
|
1077
|
-
let i = await
|
|
1083
|
+
let i = await _e({
|
|
1078
1084
|
title: "",
|
|
1079
1085
|
value: r.value
|
|
1080
1086
|
});
|
|
1081
1087
|
i !== void 0 && (r.value = i);
|
|
1082
1088
|
};
|
|
1083
1089
|
return (t, n) => {
|
|
1084
|
-
let o = O("v-text-field"),
|
|
1085
|
-
return
|
|
1090
|
+
let o = O("v-text-field"), s = O("v-btn"), d = k("ripple");
|
|
1091
|
+
return w(), u("div", Bt, [L(p(o, {
|
|
1086
1092
|
modelValue: r.value,
|
|
1087
1093
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1088
1094
|
density: "compact",
|
|
@@ -1095,17 +1101,17 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1095
1101
|
void 0,
|
|
1096
1102
|
void 0,
|
|
1097
1103
|
{ stop: !0 }
|
|
1098
|
-
]]), e.hasDelete ? (
|
|
1104
|
+
]]), e.hasDelete ? (w(), c(s, {
|
|
1099
1105
|
key: 0,
|
|
1100
1106
|
class: "mx-2",
|
|
1101
1107
|
density: "compact",
|
|
1102
1108
|
icon: "mdi-minus",
|
|
1103
1109
|
variant: "text",
|
|
1104
1110
|
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1105
|
-
})) :
|
|
1111
|
+
})) : l("", !0)]);
|
|
1106
1112
|
};
|
|
1107
1113
|
}
|
|
1108
|
-
}),
|
|
1114
|
+
}), Ht = /* @__PURE__ */ m({
|
|
1109
1115
|
__name: "editor",
|
|
1110
1116
|
props: {
|
|
1111
1117
|
modelValue: { required: !0 },
|
|
@@ -1124,14 +1130,14 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1124
1130
|
"update:scale"
|
|
1125
1131
|
],
|
|
1126
1132
|
setup(e, { expose: t }) {
|
|
1127
|
-
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a =
|
|
1133
|
+
let n = N(e, "modelValue"), r = N(e, "lock"), i = N(e, "scale"), a = me(), o = he(), s = Ke(), l = te("target"), u = () => {
|
|
1128
1134
|
let e = JSON.parse(n.value);
|
|
1129
1135
|
l.value?.load(e);
|
|
1130
1136
|
};
|
|
1131
1137
|
return t({ save: () => {
|
|
1132
1138
|
let e = l.value.save();
|
|
1133
1139
|
n.value = JSON.stringify(e, null, 2);
|
|
1134
|
-
} }), (e, t) => (
|
|
1140
|
+
} }), (e, t) => (w(), c(j(be), {
|
|
1135
1141
|
ref_key: "target",
|
|
1136
1142
|
ref: l,
|
|
1137
1143
|
lock: r.value,
|
|
@@ -1141,7 +1147,7 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1141
1147
|
dark: j(a),
|
|
1142
1148
|
locale: j(o),
|
|
1143
1149
|
type: "json",
|
|
1144
|
-
version: j(
|
|
1150
|
+
version: j(s),
|
|
1145
1151
|
onReady: u
|
|
1146
1152
|
}, null, 8, [
|
|
1147
1153
|
"lock",
|
|
@@ -1151,9 +1157,9 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1151
1157
|
"version"
|
|
1152
1158
|
]));
|
|
1153
1159
|
}
|
|
1154
|
-
}),
|
|
1160
|
+
}), Ut = { class: "text-body-large" }, Wt = /* @__PURE__ */ m({
|
|
1155
1161
|
__name: "index",
|
|
1156
|
-
props: /* @__PURE__ */
|
|
1162
|
+
props: /* @__PURE__ */ v({
|
|
1157
1163
|
hasDelete: {
|
|
1158
1164
|
type: Boolean,
|
|
1159
1165
|
default: !1
|
|
@@ -1166,86 +1172,86 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1166
1172
|
modelValue: { required: !0 },
|
|
1167
1173
|
modelModifiers: {}
|
|
1168
1174
|
}),
|
|
1169
|
-
emits: /* @__PURE__ */
|
|
1175
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1170
1176
|
setup(e, { emit: t }) {
|
|
1171
|
-
let { t: n } = H(), { sysBarAvail: r } = G(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2:
|
|
1177
|
+
let { t: n } = H(), { sysBarAvail: r } = G(), { backgroundColor0: i, backgroundColor1: a, backgroundColor2: o } = W(), u = N(e, "modelValue"), m = t, h = E(!1), g = E(1), v = s(() => {
|
|
1172
1178
|
let e = 48;
|
|
1173
1179
|
return r.value && (e += 24), {
|
|
1174
1180
|
position: "relative",
|
|
1175
1181
|
background: a.value,
|
|
1176
1182
|
height: `calc(100% - ${e}px)`
|
|
1177
1183
|
};
|
|
1178
|
-
}), x =
|
|
1179
|
-
|
|
1180
|
-
|
|
1184
|
+
}), x = s(() => n("x-prop-tree.jsonEditor")), { open: S } = K(`propTreejsonEditorDlg${M()}`);
|
|
1185
|
+
C(() => {
|
|
1186
|
+
S.value = !1;
|
|
1181
1187
|
});
|
|
1182
|
-
let
|
|
1183
|
-
return P(
|
|
1184
|
-
e ||
|
|
1188
|
+
let T = te("editor");
|
|
1189
|
+
return P(S, (e) => {
|
|
1190
|
+
e || T.value?.save();
|
|
1185
1191
|
}), (t, n) => {
|
|
1186
|
-
let a = O("v-btn"),
|
|
1187
|
-
return
|
|
1188
|
-
modelValue: j(
|
|
1189
|
-
"onUpdate:modelValue": n[5] ||= (e) =>
|
|
1192
|
+
let a = O("v-btn"), s = O("v-sheet"), C = O("v-spacer"), E = O("v-dialog");
|
|
1193
|
+
return w(), c(E, {
|
|
1194
|
+
modelValue: j(S),
|
|
1195
|
+
"onUpdate:modelValue": n[5] ||= (e) => _(S) ? S.value = e : null,
|
|
1190
1196
|
attach: "",
|
|
1191
1197
|
fullscreen: "",
|
|
1192
1198
|
"no-click-animation": "",
|
|
1193
1199
|
persistent: "",
|
|
1194
1200
|
transition: "dialog-bottom-transition",
|
|
1195
|
-
onKeydown: n[6] ||= R(z((e) =>
|
|
1201
|
+
onKeydown: n[6] ||= R(z((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1196
1202
|
}, {
|
|
1197
|
-
activator: I(({ props: t }) => [
|
|
1203
|
+
activator: I(({ props: t }) => [p(a, y(t, {
|
|
1198
1204
|
block: "",
|
|
1199
1205
|
density: "comfortable",
|
|
1200
1206
|
readonly: e.readonly
|
|
1201
1207
|
}), {
|
|
1202
|
-
default: I(() => [
|
|
1208
|
+
default: I(() => [f(A(x.value), 1)]),
|
|
1203
1209
|
_: 1
|
|
1204
|
-
}, 16, ["readonly"]), e.hasDelete ? (
|
|
1210
|
+
}, 16, ["readonly"]), e.hasDelete ? (w(), c(a, {
|
|
1205
1211
|
key: 0,
|
|
1206
1212
|
class: "mx-2",
|
|
1207
1213
|
density: "compact",
|
|
1208
1214
|
icon: "mdi-minus",
|
|
1209
1215
|
variant: "text",
|
|
1210
1216
|
onClick: n[0] ||= z((e) => m("delete"), ["stop"])
|
|
1211
|
-
})) :
|
|
1212
|
-
default: I(() => [
|
|
1217
|
+
})) : l("", !0)]),
|
|
1218
|
+
default: I(() => [p(s, {
|
|
1213
1219
|
color: j(i),
|
|
1214
1220
|
height: "100%",
|
|
1215
1221
|
width: "100%"
|
|
1216
1222
|
}, {
|
|
1217
1223
|
default: I(() => [
|
|
1218
|
-
j(r) ? (
|
|
1224
|
+
j(r) ? (w(), c(s, {
|
|
1219
1225
|
key: 0,
|
|
1220
|
-
color: j(
|
|
1226
|
+
color: j(o),
|
|
1221
1227
|
height: 24
|
|
1222
|
-
}, null, 8, ["color"])) :
|
|
1223
|
-
|
|
1228
|
+
}, null, 8, ["color"])) : l("", !0),
|
|
1229
|
+
p(s, {
|
|
1224
1230
|
class: "d-flex align-center px-2",
|
|
1225
|
-
color: j(
|
|
1231
|
+
color: j(o),
|
|
1226
1232
|
height: 48
|
|
1227
1233
|
}, {
|
|
1228
1234
|
default: I(() => [
|
|
1229
|
-
|
|
1235
|
+
p(a, {
|
|
1230
1236
|
density: "comfortable",
|
|
1231
1237
|
icon: "mdi-close",
|
|
1232
1238
|
variant: "text",
|
|
1233
|
-
onClick: n[1] ||= (e) =>
|
|
1239
|
+
onClick: n[1] ||= (e) => S.value = !1
|
|
1234
1240
|
}),
|
|
1235
|
-
|
|
1236
|
-
|
|
1241
|
+
d("span", Ut, A(x.value), 1),
|
|
1242
|
+
p(C)
|
|
1237
1243
|
]),
|
|
1238
1244
|
_: 1
|
|
1239
1245
|
}, 8, ["color"]),
|
|
1240
|
-
|
|
1246
|
+
d("div", { style: b(v.value) }, [p(Ht, {
|
|
1241
1247
|
ref_key: "editor",
|
|
1242
|
-
ref:
|
|
1243
|
-
modelValue:
|
|
1244
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
1248
|
+
ref: T,
|
|
1249
|
+
modelValue: u.value,
|
|
1250
|
+
"onUpdate:modelValue": n[2] ||= (e) => u.value = e,
|
|
1245
1251
|
lock: h.value,
|
|
1246
1252
|
"onUpdate:lock": n[3] ||= (e) => h.value = e,
|
|
1247
|
-
scale:
|
|
1248
|
-
"onUpdate:scale": n[4] ||= (e) =>
|
|
1253
|
+
scale: g.value,
|
|
1254
|
+
"onUpdate:scale": n[4] ||= (e) => g.value = e
|
|
1249
1255
|
}, null, 8, [
|
|
1250
1256
|
"modelValue",
|
|
1251
1257
|
"lock",
|
|
@@ -1258,9 +1264,9 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1258
1264
|
}, 8, ["modelValue"]);
|
|
1259
1265
|
};
|
|
1260
1266
|
}
|
|
1261
|
-
}),
|
|
1267
|
+
}), Gt = { class: "d-flex justify-space-between align-center" }, Kt = /* @__PURE__ */ m({
|
|
1262
1268
|
__name: "color",
|
|
1263
|
-
props: /* @__PURE__ */
|
|
1269
|
+
props: /* @__PURE__ */ v({
|
|
1264
1270
|
hasDelete: {
|
|
1265
1271
|
type: Boolean,
|
|
1266
1272
|
default: !1
|
|
@@ -1273,44 +1279,44 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1273
1279
|
modelValue: {},
|
|
1274
1280
|
modelModifiers: {}
|
|
1275
1281
|
}),
|
|
1276
|
-
emits: /* @__PURE__ */
|
|
1282
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1277
1283
|
setup(e, { emit: t }) {
|
|
1278
|
-
let { t: n } = H(), r = N(e, "modelValue"), i = t, a =
|
|
1284
|
+
let { t: n } = H(), r = N(e, "modelValue"), i = t, a = s(() => {
|
|
1279
1285
|
let t = "100%";
|
|
1280
1286
|
return e.hasDelete && (t = "calc(100% - 37px)"), { width: t };
|
|
1281
|
-
}),
|
|
1282
|
-
return
|
|
1283
|
-
|
|
1284
|
-
}), (t,
|
|
1285
|
-
let m = O("v-btn"), h = O("v-color-picker"),
|
|
1286
|
-
return
|
|
1287
|
-
modelValue: j(
|
|
1288
|
-
"onUpdate:modelValue":
|
|
1287
|
+
}), o = s(() => e.readonly), { open: u } = K(`propTreeColorPickerMenu${M()}`);
|
|
1288
|
+
return C(() => {
|
|
1289
|
+
u.value = !1;
|
|
1290
|
+
}), (t, s) => {
|
|
1291
|
+
let m = O("v-btn"), h = O("v-color-picker"), g = O("v-menu");
|
|
1292
|
+
return w(), c(g, {
|
|
1293
|
+
modelValue: j(u),
|
|
1294
|
+
"onUpdate:modelValue": s[2] ||= (e) => _(u) ? u.value = e : null,
|
|
1289
1295
|
"close-on-content-click": !1,
|
|
1290
1296
|
scrim: "transparent"
|
|
1291
1297
|
}, {
|
|
1292
|
-
activator: I(({ props: t }) => [
|
|
1298
|
+
activator: I(({ props: t }) => [d("div", Gt, [d("div", {
|
|
1293
1299
|
class: "flex-grow-1",
|
|
1294
|
-
style:
|
|
1295
|
-
}, [
|
|
1300
|
+
style: b(a.value)
|
|
1301
|
+
}, [p(m, y(t, {
|
|
1296
1302
|
block: "",
|
|
1297
1303
|
color: r.value,
|
|
1298
1304
|
density: "comfortable",
|
|
1299
|
-
disabled:
|
|
1305
|
+
disabled: o.value
|
|
1300
1306
|
}), {
|
|
1301
|
-
default: I(() => [
|
|
1307
|
+
default: I(() => [f(A(r.value ? r.value : j(n)("x-runtime-lib.notSet")), 1)]),
|
|
1302
1308
|
_: 1
|
|
1303
|
-
}, 16, ["color", "disabled"])], 4), e.hasDelete ? (
|
|
1309
|
+
}, 16, ["color", "disabled"])], 4), e.hasDelete ? (w(), c(m, {
|
|
1304
1310
|
key: 0,
|
|
1305
1311
|
class: "mx-2",
|
|
1306
1312
|
density: "compact",
|
|
1307
1313
|
icon: "mdi-minus",
|
|
1308
1314
|
variant: "text",
|
|
1309
|
-
onClick:
|
|
1310
|
-
})) :
|
|
1311
|
-
default: I(() => [
|
|
1315
|
+
onClick: s[0] ||= z((e) => i("delete"), ["stop"])
|
|
1316
|
+
})) : l("", !0)])]),
|
|
1317
|
+
default: I(() => [p(h, {
|
|
1312
1318
|
modelValue: r.value,
|
|
1313
|
-
"onUpdate:modelValue":
|
|
1319
|
+
"onUpdate:modelValue": s[1] ||= (e) => r.value = e,
|
|
1314
1320
|
mode: "hexa",
|
|
1315
1321
|
"show-swatches": "",
|
|
1316
1322
|
"swatches-max-height": "150px"
|
|
@@ -1319,9 +1325,9 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1319
1325
|
}, 8, ["modelValue"]);
|
|
1320
1326
|
};
|
|
1321
1327
|
}
|
|
1322
|
-
}),
|
|
1328
|
+
}), qt = { class: "d-flex justify-space-between align-center my-2" }, Jt = { class: "flex-grow-1" }, Yt = /* @__PURE__ */ m({
|
|
1323
1329
|
__name: "index",
|
|
1324
|
-
props: /* @__PURE__ */
|
|
1330
|
+
props: /* @__PURE__ */ v({
|
|
1325
1331
|
hasDelete: {
|
|
1326
1332
|
type: Boolean,
|
|
1327
1333
|
default: !1
|
|
@@ -1335,33 +1341,33 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1335
1341
|
modelValue: {},
|
|
1336
1342
|
modelModifiers: {}
|
|
1337
1343
|
}),
|
|
1338
|
-
emits: /* @__PURE__ */
|
|
1344
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1339
1345
|
setup(e, { emit: t }) {
|
|
1340
|
-
let { t: n } = H(), { isMobile: r } = G(), i = N(e, "modelValue"), a = t,
|
|
1346
|
+
let { t: n } = H(), { isMobile: r } = G(), i = N(e, "modelValue"), a = t, o = s(() => ae(e.types)), f = E(""), m = s(() => {
|
|
1341
1347
|
let e = [];
|
|
1342
|
-
for (let { value: t, title: r } of
|
|
1348
|
+
for (let { value: t, title: r } of o.value) e.push({
|
|
1343
1349
|
value: t,
|
|
1344
1350
|
title: n(r)
|
|
1345
1351
|
});
|
|
1346
1352
|
return e;
|
|
1347
1353
|
});
|
|
1348
1354
|
F(() => {
|
|
1349
|
-
for (let { value: e, validator: t } of
|
|
1350
|
-
|
|
1355
|
+
for (let { value: e, validator: t } of o.value) if (t(i.value)) {
|
|
1356
|
+
f.value = e;
|
|
1351
1357
|
return;
|
|
1352
1358
|
}
|
|
1353
1359
|
_();
|
|
1354
1360
|
});
|
|
1355
|
-
let h =
|
|
1361
|
+
let h = s(() => o.value.find((e) => e.value === f.value));
|
|
1356
1362
|
function g() {
|
|
1357
1363
|
i.value = h.value?.default;
|
|
1358
1364
|
}
|
|
1359
1365
|
function _() {
|
|
1360
|
-
|
|
1366
|
+
f.value = o.value[0].value, g();
|
|
1361
1367
|
}
|
|
1362
|
-
let v =
|
|
1368
|
+
let v = E(0), y = async (e) => {
|
|
1363
1369
|
if (!e || !r() || !h.value || h.value.trait !== "number" && h.value.trait !== "numberUnit") return;
|
|
1364
|
-
let t = await
|
|
1370
|
+
let t = await ge({
|
|
1365
1371
|
title: "",
|
|
1366
1372
|
value: v.value,
|
|
1367
1373
|
precision: h.value.precision,
|
|
@@ -1372,34 +1378,34 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1372
1378
|
t !== void 0 && (v.value = t);
|
|
1373
1379
|
};
|
|
1374
1380
|
F(() => {
|
|
1375
|
-
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value =
|
|
1381
|
+
h.value?.trait === "number" ? v.value = i.value : h.value?.trait === "numberUnit" && (v.value = le(i.value, h.value.unit));
|
|
1376
1382
|
}), P(v, (e) => {
|
|
1377
1383
|
h.value?.trait === "number" ? i.value = e : h.value?.trait === "numberUnit" && (i.value = e + h.value.unit);
|
|
1378
1384
|
});
|
|
1379
|
-
let b =
|
|
1385
|
+
let b = E("#ff00ff");
|
|
1380
1386
|
F(() => {
|
|
1381
|
-
h.value?.trait === "hexColor" &&
|
|
1387
|
+
h.value?.trait === "hexColor" && oe(i.value) && (b.value = i.value);
|
|
1382
1388
|
}), P(b, (e) => {
|
|
1383
1389
|
h.value?.trait === "hexColor" && (i.value = e);
|
|
1384
1390
|
});
|
|
1385
|
-
let x =
|
|
1391
|
+
let x = E("primary"), S = s(() => {
|
|
1386
1392
|
let e = [];
|
|
1387
|
-
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of
|
|
1393
|
+
if (h.value?.trait === "themeColor") for (let { value: t, title: r } of fe) e.push({
|
|
1388
1394
|
value: t,
|
|
1389
1395
|
title: n(r)
|
|
1390
1396
|
});
|
|
1391
1397
|
return e;
|
|
1392
1398
|
});
|
|
1393
1399
|
return F(() => {
|
|
1394
|
-
h.value?.trait === "themeColor" &&
|
|
1400
|
+
h.value?.trait === "themeColor" && se(i.value) && (x.value = i.value);
|
|
1395
1401
|
}), P(x, (e) => {
|
|
1396
1402
|
h.value?.trait === "themeColor" && (i.value = e);
|
|
1397
1403
|
}), (t, n) => {
|
|
1398
|
-
let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"),
|
|
1399
|
-
return
|
|
1400
|
-
L(
|
|
1401
|
-
modelValue:
|
|
1402
|
-
"onUpdate:modelValue": [n[0] ||= (e) =>
|
|
1404
|
+
let r = O("v-select"), i = O("v-number-input"), o = O("v-btn"), s = k("ripple");
|
|
1405
|
+
return w(), u("div", qt, [d("div", Jt, [
|
|
1406
|
+
L(p(r, {
|
|
1407
|
+
modelValue: f.value,
|
|
1408
|
+
"onUpdate:modelValue": [n[0] ||= (e) => f.value = e, g],
|
|
1403
1409
|
density: "compact",
|
|
1404
1410
|
"hide-details": "",
|
|
1405
1411
|
items: m.value,
|
|
@@ -1410,12 +1416,12 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1410
1416
|
"items",
|
|
1411
1417
|
"readonly"
|
|
1412
1418
|
]), [[
|
|
1413
|
-
|
|
1419
|
+
s,
|
|
1414
1420
|
void 0,
|
|
1415
1421
|
void 0,
|
|
1416
1422
|
{ stop: !0 }
|
|
1417
1423
|
]]),
|
|
1418
|
-
h.value?.trait === "number" || h.value?.trait === "numberUnit" ? L((
|
|
1424
|
+
h.value?.trait === "number" || h.value?.trait === "numberUnit" ? L((w(), c(i, {
|
|
1419
1425
|
key: 0,
|
|
1420
1426
|
modelValue: v.value,
|
|
1421
1427
|
"onUpdate:modelValue": n[1] ||= (e) => v.value = e,
|
|
@@ -1437,17 +1443,17 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1437
1443
|
"readonly",
|
|
1438
1444
|
"step"
|
|
1439
1445
|
])), [[
|
|
1440
|
-
|
|
1446
|
+
s,
|
|
1441
1447
|
void 0,
|
|
1442
1448
|
void 0,
|
|
1443
1449
|
{ stop: !0 }
|
|
1444
|
-
]]) :
|
|
1445
|
-
h.value?.trait === "hexColor" ? (
|
|
1450
|
+
]]) : l("", !0),
|
|
1451
|
+
h.value?.trait === "hexColor" ? (w(), c(Kt, {
|
|
1446
1452
|
key: 1,
|
|
1447
1453
|
modelValue: b.value,
|
|
1448
1454
|
"onUpdate:modelValue": n[2] ||= (e) => b.value = e
|
|
1449
|
-
}, null, 8, ["modelValue"])) :
|
|
1450
|
-
h.value?.trait === "themeColor" ? L((
|
|
1455
|
+
}, null, 8, ["modelValue"])) : l("", !0),
|
|
1456
|
+
h.value?.trait === "themeColor" ? L((w(), c(r, {
|
|
1451
1457
|
key: 2,
|
|
1452
1458
|
modelValue: x.value,
|
|
1453
1459
|
"onUpdate:modelValue": n[3] ||= (e) => x.value = e,
|
|
@@ -1456,24 +1462,24 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1456
1462
|
items: S.value,
|
|
1457
1463
|
"single-line": ""
|
|
1458
1464
|
}, null, 8, ["modelValue", "items"])), [[
|
|
1459
|
-
|
|
1465
|
+
s,
|
|
1460
1466
|
void 0,
|
|
1461
1467
|
void 0,
|
|
1462
1468
|
{ stop: !0 }
|
|
1463
|
-
]]) :
|
|
1464
|
-
]), e.hasDelete ? (
|
|
1469
|
+
]]) : l("", !0)
|
|
1470
|
+
]), e.hasDelete ? (w(), c(o, {
|
|
1465
1471
|
key: 0,
|
|
1466
1472
|
class: "mx-2",
|
|
1467
1473
|
density: "compact",
|
|
1468
1474
|
icon: "mdi-minus",
|
|
1469
1475
|
variant: "text",
|
|
1470
1476
|
onClick: n[4] ||= z((e) => a("delete"), ["stop"])
|
|
1471
|
-
})) :
|
|
1477
|
+
})) : l("", !0)]);
|
|
1472
1478
|
};
|
|
1473
1479
|
}
|
|
1474
|
-
}),
|
|
1480
|
+
}), Xt = { class: "d-flex justify-space-between align-center" }, Zt = /* @__PURE__ */ m({
|
|
1475
1481
|
__name: "index",
|
|
1476
|
-
props: /* @__PURE__ */
|
|
1482
|
+
props: /* @__PURE__ */ v({
|
|
1477
1483
|
hasDelete: {
|
|
1478
1484
|
type: Boolean,
|
|
1479
1485
|
default: !1
|
|
@@ -1490,11 +1496,11 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1490
1496
|
modelValue: { required: !0 },
|
|
1491
1497
|
modelModifiers: {}
|
|
1492
1498
|
}),
|
|
1493
|
-
emits: /* @__PURE__ */
|
|
1499
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1494
1500
|
setup(e, { emit: t }) {
|
|
1495
1501
|
let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1496
1502
|
if (!t || e.readonly || !n()) return;
|
|
1497
|
-
let i = await
|
|
1503
|
+
let i = await ge({
|
|
1498
1504
|
title: "",
|
|
1499
1505
|
value: r.value,
|
|
1500
1506
|
precision: e.precision,
|
|
@@ -1505,8 +1511,8 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1505
1511
|
i !== void 0 && (r.value = i);
|
|
1506
1512
|
};
|
|
1507
1513
|
return (t, n) => {
|
|
1508
|
-
let o = O("v-number-input"),
|
|
1509
|
-
return
|
|
1514
|
+
let o = O("v-number-input"), s = O("v-btn"), d = k("ripple");
|
|
1515
|
+
return w(), u("div", Xt, [L(p(o, {
|
|
1510
1516
|
modelValue: r.value,
|
|
1511
1517
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1512
1518
|
"control-variant": "stacked",
|
|
@@ -1531,19 +1537,19 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1531
1537
|
void 0,
|
|
1532
1538
|
void 0,
|
|
1533
1539
|
{ stop: !0 }
|
|
1534
|
-
]]), e.hasDelete ? (
|
|
1540
|
+
]]), e.hasDelete ? (w(), c(s, {
|
|
1535
1541
|
key: 0,
|
|
1536
1542
|
class: "mx-2",
|
|
1537
1543
|
density: "compact",
|
|
1538
1544
|
icon: "mdi-minus",
|
|
1539
1545
|
variant: "text",
|
|
1540
1546
|
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1541
|
-
})) :
|
|
1547
|
+
})) : l("", !0)]);
|
|
1542
1548
|
};
|
|
1543
1549
|
}
|
|
1544
|
-
}),
|
|
1550
|
+
}), Qt = { class: "d-flex justify-space-between align-center my-2" }, $t = { class: "flex-grow-1" }, en = /* @__PURE__ */ m({
|
|
1545
1551
|
__name: "index",
|
|
1546
|
-
props: /* @__PURE__ */
|
|
1552
|
+
props: /* @__PURE__ */ v({
|
|
1547
1553
|
hasDelete: {
|
|
1548
1554
|
type: Boolean,
|
|
1549
1555
|
default: !1
|
|
@@ -1556,54 +1562,54 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1556
1562
|
modelValue: { required: !0 },
|
|
1557
1563
|
modelModifiers: {}
|
|
1558
1564
|
}),
|
|
1559
|
-
emits: /* @__PURE__ */
|
|
1565
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1560
1566
|
setup(e, { emit: t }) {
|
|
1561
|
-
let { t: n } = H(), { isMobile: r } = G(), i = N(e, "modelValue"), a = t,
|
|
1567
|
+
let { t: n } = H(), { isMobile: r } = G(), i = N(e, "modelValue"), a = t, o = E(""), f = E(0);
|
|
1562
1568
|
F(() => {
|
|
1563
1569
|
let e = i.value.split(",");
|
|
1564
|
-
e.length < 1 || (
|
|
1570
|
+
e.length < 1 || (o.value = e[0], (e[0] === "minLength" || e[1] === "maxLength" || e[2] === "length") && (e.length > 1 ? f.value = parseInt(e[1]) : f.value = 0));
|
|
1565
1571
|
});
|
|
1566
1572
|
function m() {
|
|
1567
|
-
|
|
1573
|
+
o.value === "minLength" || o.value === "maxLength" || o.value === "length" ? i.value = `${o.value},${f.value}` : i.value = o.value;
|
|
1568
1574
|
}
|
|
1569
|
-
let h =
|
|
1575
|
+
let h = s(() => {
|
|
1570
1576
|
let e = [{
|
|
1571
1577
|
value: "",
|
|
1572
1578
|
title: n("x-runtime-lib.notSet")
|
|
1573
1579
|
}];
|
|
1574
|
-
for (let t of
|
|
1580
|
+
for (let t of de) e.push({
|
|
1575
1581
|
value: t,
|
|
1576
1582
|
title: n(`x-runtime-lib.${t}`)
|
|
1577
1583
|
});
|
|
1578
1584
|
return e;
|
|
1579
1585
|
});
|
|
1580
1586
|
function g() {
|
|
1581
|
-
|
|
1587
|
+
f.value = 0, m();
|
|
1582
1588
|
}
|
|
1583
1589
|
F(() => {
|
|
1584
1590
|
let e = i.value.split(",");
|
|
1585
|
-
e.length > 1 && (
|
|
1591
|
+
e.length > 1 && (f.value = parseInt(e[1]));
|
|
1586
1592
|
});
|
|
1587
1593
|
async function _(e) {
|
|
1588
1594
|
if (!e || !r()) return;
|
|
1589
|
-
let t = await
|
|
1595
|
+
let t = await ge({
|
|
1590
1596
|
title: "",
|
|
1591
|
-
value:
|
|
1597
|
+
value: f.value,
|
|
1592
1598
|
precision: 0,
|
|
1593
1599
|
min: 0,
|
|
1594
1600
|
max: Infinity,
|
|
1595
1601
|
step: 1
|
|
1596
1602
|
});
|
|
1597
|
-
t !== void 0 && (
|
|
1603
|
+
t !== void 0 && (f.value = t, m());
|
|
1598
1604
|
}
|
|
1599
1605
|
function v() {
|
|
1600
1606
|
m();
|
|
1601
1607
|
}
|
|
1602
1608
|
return (t, n) => {
|
|
1603
|
-
let r = O("v-select"), i = O("v-number-input"),
|
|
1604
|
-
return
|
|
1605
|
-
modelValue:
|
|
1606
|
-
"onUpdate:modelValue": [n[0] ||= (e) =>
|
|
1609
|
+
let r = O("v-select"), i = O("v-number-input"), s = O("v-btn"), m = k("ripple");
|
|
1610
|
+
return w(), u("div", Qt, [d("div", $t, [L(p(r, {
|
|
1611
|
+
modelValue: o.value,
|
|
1612
|
+
"onUpdate:modelValue": [n[0] ||= (e) => o.value = e, g],
|
|
1607
1613
|
density: "compact",
|
|
1608
1614
|
"hide-details": "",
|
|
1609
1615
|
items: h.value,
|
|
@@ -1618,10 +1624,10 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1618
1624
|
void 0,
|
|
1619
1625
|
void 0,
|
|
1620
1626
|
{ stop: !0 }
|
|
1621
|
-
]]),
|
|
1627
|
+
]]), o.value === "minLength" || o.value === "maxLength" || o.value === "length" ? L((w(), c(i, {
|
|
1622
1628
|
key: 0,
|
|
1623
|
-
modelValue:
|
|
1624
|
-
"onUpdate:modelValue": [n[1] ||= (e) =>
|
|
1629
|
+
modelValue: f.value,
|
|
1630
|
+
"onUpdate:modelValue": [n[1] ||= (e) => f.value = e, v],
|
|
1625
1631
|
"control-variant": "stacked",
|
|
1626
1632
|
density: "compact",
|
|
1627
1633
|
"hide-details": "",
|
|
@@ -1637,19 +1643,19 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1637
1643
|
void 0,
|
|
1638
1644
|
void 0,
|
|
1639
1645
|
{ stop: !0 }
|
|
1640
|
-
]]) :
|
|
1646
|
+
]]) : l("", !0)]), e.hasDelete ? (w(), c(s, {
|
|
1641
1647
|
key: 0,
|
|
1642
1648
|
class: "mx-2",
|
|
1643
1649
|
density: "compact",
|
|
1644
1650
|
icon: "mdi-minus",
|
|
1645
1651
|
variant: "text",
|
|
1646
1652
|
onClick: n[2] ||= z((e) => a("delete"), ["stop"])
|
|
1647
|
-
})) :
|
|
1653
|
+
})) : l("", !0)]);
|
|
1648
1654
|
};
|
|
1649
1655
|
}
|
|
1650
|
-
}),
|
|
1656
|
+
}), tn = { class: "d-flex justify-space-between align-center" }, nn = /* @__PURE__ */ m({
|
|
1651
1657
|
__name: "index",
|
|
1652
|
-
props: /* @__PURE__ */
|
|
1658
|
+
props: /* @__PURE__ */ v({
|
|
1653
1659
|
hasDelete: {
|
|
1654
1660
|
type: Boolean,
|
|
1655
1661
|
default: !1
|
|
@@ -1663,11 +1669,11 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1663
1669
|
modelValue: {},
|
|
1664
1670
|
modelModifiers: {}
|
|
1665
1671
|
}),
|
|
1666
|
-
emits: /* @__PURE__ */
|
|
1672
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1667
1673
|
setup(e, { emit: t }) {
|
|
1668
|
-
let { t: n } = H(), r = N(e, "modelValue"), i = t, a =
|
|
1674
|
+
let { t: n } = H(), r = N(e, "modelValue"), i = t, a = s(() => {
|
|
1669
1675
|
let t = [];
|
|
1670
|
-
return
|
|
1676
|
+
return re(e.items)?.forEach(({ value: e, title: r }) => {
|
|
1671
1677
|
let i = e;
|
|
1672
1678
|
r && (i = n(r)), t.push({
|
|
1673
1679
|
value: e,
|
|
@@ -1676,8 +1682,8 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1676
1682
|
}), t;
|
|
1677
1683
|
});
|
|
1678
1684
|
return (t, n) => {
|
|
1679
|
-
let o = O("v-select"),
|
|
1680
|
-
return
|
|
1685
|
+
let o = O("v-select"), s = O("v-btn"), d = k("ripple");
|
|
1686
|
+
return w(), u("div", tn, [L(p(o, {
|
|
1681
1687
|
modelValue: r.value,
|
|
1682
1688
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1683
1689
|
density: "compact",
|
|
@@ -1694,17 +1700,17 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1694
1700
|
void 0,
|
|
1695
1701
|
void 0,
|
|
1696
1702
|
{ stop: !0 }
|
|
1697
|
-
]]), e.hasDelete ? (
|
|
1703
|
+
]]), e.hasDelete ? (w(), c(s, {
|
|
1698
1704
|
key: 0,
|
|
1699
1705
|
class: "mx-2",
|
|
1700
1706
|
density: "compact",
|
|
1701
1707
|
icon: "mdi-minus",
|
|
1702
1708
|
variant: "text",
|
|
1703
1709
|
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1704
|
-
})) :
|
|
1710
|
+
})) : l("", !0)]);
|
|
1705
1711
|
};
|
|
1706
1712
|
}
|
|
1707
|
-
}),
|
|
1713
|
+
}), rn = { class: "text-body-large ml-6" }, an = /* @__PURE__ */ m({
|
|
1708
1714
|
__name: "item",
|
|
1709
1715
|
props: {
|
|
1710
1716
|
id: {},
|
|
@@ -1712,7 +1718,7 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1712
1718
|
},
|
|
1713
1719
|
emits: ["x-click"],
|
|
1714
1720
|
setup(e, { emit: t }) {
|
|
1715
|
-
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a =
|
|
1721
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = E(!1), o = s(() => ({
|
|
1716
1722
|
background: a.value ? r.value : n.value,
|
|
1717
1723
|
height: "48px",
|
|
1718
1724
|
marginTop: "1px",
|
|
@@ -1720,19 +1726,19 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1720
1726
|
}));
|
|
1721
1727
|
return (t, n) => {
|
|
1722
1728
|
let r = k("ripple");
|
|
1723
|
-
return L((
|
|
1729
|
+
return L((w(), u("div", {
|
|
1724
1730
|
class: "d-flex align-center cursor-pointer",
|
|
1725
|
-
style:
|
|
1731
|
+
style: b(o.value),
|
|
1726
1732
|
onClick: n[0] ||= (t) => i("x-click", e.id),
|
|
1727
1733
|
onMouseout: n[1] ||= (e) => a.value = !1,
|
|
1728
1734
|
onMouseover: n[2] ||= (e) => a.value = !0
|
|
1729
|
-
}, [
|
|
1735
|
+
}, [d("span", rn, A(e.title), 1)], 36)), [[r]]);
|
|
1730
1736
|
};
|
|
1731
1737
|
}
|
|
1732
|
-
}),
|
|
1738
|
+
}), on = { key: 0 }, sn = {
|
|
1733
1739
|
key: 1,
|
|
1734
1740
|
class: "text-body-medium text-grey ml-3"
|
|
1735
|
-
},
|
|
1741
|
+
}, cn = /* @__PURE__ */ m({
|
|
1736
1742
|
__name: "index",
|
|
1737
1743
|
props: {
|
|
1738
1744
|
modelValue: {},
|
|
@@ -1745,19 +1751,19 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1745
1751
|
},
|
|
1746
1752
|
emits: ["update:modelValue", "update:open"],
|
|
1747
1753
|
setup(e) {
|
|
1748
|
-
let { nameList: t } = G(), n = N(e, "modelValue"), r = N(e, "open"), i =
|
|
1754
|
+
let { nameList: t } = G(), n = N(e, "modelValue"), r = N(e, "open"), i = lt(), a = (e) => {
|
|
1749
1755
|
n.value = e, r.value = !1;
|
|
1750
1756
|
};
|
|
1751
|
-
return (e, n) => j(i).length > 0 ? (
|
|
1757
|
+
return (e, n) => j(i).length > 0 ? (w(), u("div", on, [(w(!0), u(o, null, D(j(i), (e) => (w(), c(an, {
|
|
1752
1758
|
key: e.id,
|
|
1753
1759
|
id: e.id,
|
|
1754
1760
|
title: e.name,
|
|
1755
|
-
onXClick:
|
|
1756
|
-
}, null, 8, ["id", "title"]))), 128))])) : (
|
|
1761
|
+
onXClick: a
|
|
1762
|
+
}, null, 8, ["id", "title"]))), 128))])) : (w(), u("div", sn, A(j(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
|
|
1757
1763
|
}
|
|
1758
|
-
}),
|
|
1764
|
+
}), ln = { class: "text-body-large" }, un = /* @__PURE__ */ m({
|
|
1759
1765
|
__name: "index",
|
|
1760
|
-
props: /* @__PURE__ */
|
|
1766
|
+
props: /* @__PURE__ */ v({
|
|
1761
1767
|
hasDelete: {
|
|
1762
1768
|
type: Boolean,
|
|
1763
1769
|
default: !1
|
|
@@ -1770,97 +1776,97 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1770
1776
|
modelValue: {},
|
|
1771
1777
|
modelModifiers: {}
|
|
1772
1778
|
}),
|
|
1773
|
-
emits: /* @__PURE__ */
|
|
1779
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1774
1780
|
setup(e, { emit: t }) {
|
|
1775
|
-
let { t: n } = H(), r =
|
|
1781
|
+
let { t: n } = H(), r = ye(), { sysBarAvail: i, nameList: a } = G(), { backgroundColor1: o } = W(), u = N(e, "modelValue"), m = t, h = lt(), g = s(() => {
|
|
1776
1782
|
let e = "100%";
|
|
1777
1783
|
return r.mdAndUp.value && (e = "400px"), {
|
|
1778
|
-
background:
|
|
1784
|
+
background: o.value,
|
|
1779
1785
|
width: e,
|
|
1780
1786
|
height: "100%"
|
|
1781
1787
|
};
|
|
1782
|
-
}),
|
|
1788
|
+
}), v = s(() => {
|
|
1783
1789
|
let e = 48;
|
|
1784
1790
|
return i.value && (e += 24), {
|
|
1785
1791
|
position: "relative",
|
|
1786
1792
|
height: `calc(100% - ${e}px)`
|
|
1787
1793
|
};
|
|
1788
|
-
}), x =
|
|
1789
|
-
if (!
|
|
1790
|
-
let e = h.value.find((e) => e.id ===
|
|
1794
|
+
}), x = s(() => ({ height: "60px" })), S = s(() => {
|
|
1795
|
+
if (!u.value) return n("x-runtime-lib.notSet");
|
|
1796
|
+
let e = h.value.find((e) => e.id === u.value);
|
|
1791
1797
|
return e ? e.name : n("x-runtime-lib.slotNotAvail");
|
|
1792
1798
|
}), { open: T } = K(`propTreeSlotSelectDlg${M()}`);
|
|
1793
|
-
return
|
|
1799
|
+
return C(() => {
|
|
1794
1800
|
T.value = !1;
|
|
1795
1801
|
}), (t, n) => {
|
|
1796
|
-
let r = O("v-btn"), o = O("v-sheet"),
|
|
1797
|
-
return
|
|
1802
|
+
let r = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
|
|
1803
|
+
return w(), c(s, {
|
|
1798
1804
|
modelValue: j(T),
|
|
1799
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
1805
|
+
"onUpdate:modelValue": n[6] ||= (e) => _(T) ? T.value = e : null,
|
|
1800
1806
|
fullscreen: "",
|
|
1801
1807
|
"no-click-animation": "",
|
|
1802
1808
|
persistent: "",
|
|
1803
1809
|
transition: "scroll-x-reverse-transition",
|
|
1804
1810
|
onKeydown: n[7] ||= R(z((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
|
|
1805
1811
|
}, {
|
|
1806
|
-
activator: I(({ props: t }) => [
|
|
1812
|
+
activator: I(({ props: t }) => [p(r, y(t, {
|
|
1807
1813
|
block: "",
|
|
1808
1814
|
density: "comfortable",
|
|
1809
1815
|
readonly: e.readonly
|
|
1810
1816
|
}), {
|
|
1811
|
-
default: I(() => [
|
|
1817
|
+
default: I(() => [f(A(S.value), 1)]),
|
|
1812
1818
|
_: 1
|
|
1813
|
-
}, 16, ["readonly"]), e.hasDelete ? (
|
|
1819
|
+
}, 16, ["readonly"]), e.hasDelete ? (w(), c(r, {
|
|
1814
1820
|
key: 0,
|
|
1815
1821
|
class: "mx-2",
|
|
1816
1822
|
density: "compact",
|
|
1817
1823
|
icon: "mdi-minus",
|
|
1818
1824
|
variant: "text",
|
|
1819
1825
|
onClick: n[0] ||= z((e) => m("delete"), ["stop"])
|
|
1820
|
-
})) :
|
|
1821
|
-
default: I(() => [
|
|
1826
|
+
})) : l("", !0)]),
|
|
1827
|
+
default: I(() => [d("div", {
|
|
1822
1828
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1823
1829
|
onClick: n[4] ||= z((e) => T.value = !1, ["self"]),
|
|
1824
1830
|
onContextmenu: n[5] ||= z((e) => T.value = !1, ["self", "prevent"])
|
|
1825
|
-
}, [
|
|
1831
|
+
}, [d("div", {
|
|
1826
1832
|
class: "elevation-2",
|
|
1827
|
-
style:
|
|
1833
|
+
style: b(g.value)
|
|
1828
1834
|
}, [
|
|
1829
|
-
j(i) ? (
|
|
1835
|
+
j(i) ? (w(), c(o, {
|
|
1830
1836
|
key: 0,
|
|
1831
1837
|
color: "transparent",
|
|
1832
1838
|
height: 24
|
|
1833
|
-
})) :
|
|
1834
|
-
|
|
1839
|
+
})) : l("", !0),
|
|
1840
|
+
p(o, {
|
|
1835
1841
|
class: "d-flex align-center px-3",
|
|
1836
1842
|
color: "transparent",
|
|
1837
1843
|
height: 48
|
|
1838
1844
|
}, {
|
|
1839
|
-
default: I(() => [
|
|
1845
|
+
default: I(() => [p(r, {
|
|
1840
1846
|
density: "comfortable",
|
|
1841
1847
|
icon: "mdi-close",
|
|
1842
1848
|
variant: "text",
|
|
1843
1849
|
onClick: n[1] ||= (e) => T.value = !1
|
|
1844
|
-
}),
|
|
1850
|
+
}), d("span", ln, A(j(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
|
|
1845
1851
|
_: 1
|
|
1846
1852
|
}),
|
|
1847
|
-
|
|
1853
|
+
d("div", {
|
|
1848
1854
|
class: "overflow-y-auto",
|
|
1849
|
-
style:
|
|
1850
|
-
}, [
|
|
1851
|
-
modelValue:
|
|
1852
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
1855
|
+
style: b(v.value)
|
|
1856
|
+
}, [p(cn, {
|
|
1857
|
+
modelValue: u.value,
|
|
1858
|
+
"onUpdate:modelValue": n[2] ||= (e) => u.value = e,
|
|
1853
1859
|
open: j(T),
|
|
1854
|
-
"onUpdate:open": n[3] ||= (e) =>
|
|
1855
|
-
}, null, 8, ["modelValue", "open"]),
|
|
1860
|
+
"onUpdate:open": n[3] ||= (e) => _(T) ? T.value = e : null
|
|
1861
|
+
}, null, 8, ["modelValue", "open"]), d("div", { style: b(x.value) }, null, 4)], 4)
|
|
1856
1862
|
], 4)], 32)]),
|
|
1857
1863
|
_: 1
|
|
1858
1864
|
}, 8, ["modelValue"]);
|
|
1859
1865
|
};
|
|
1860
1866
|
}
|
|
1861
|
-
}),
|
|
1867
|
+
}), dn = { class: "d-flex justify-space-between align-center" }, fn = /* @__PURE__ */ m({
|
|
1862
1868
|
__name: "index",
|
|
1863
|
-
props: /* @__PURE__ */
|
|
1869
|
+
props: /* @__PURE__ */ v({
|
|
1864
1870
|
hasDelete: {
|
|
1865
1871
|
type: Boolean,
|
|
1866
1872
|
default: !1
|
|
@@ -1873,12 +1879,12 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1873
1879
|
modelValue: { type: Boolean },
|
|
1874
1880
|
modelModifiers: {}
|
|
1875
1881
|
}),
|
|
1876
|
-
emits: /* @__PURE__ */
|
|
1882
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1877
1883
|
setup(e, { emit: t }) {
|
|
1878
1884
|
let n = N(e, "modelValue"), r = t;
|
|
1879
1885
|
return (t, i) => {
|
|
1880
1886
|
let a = O("v-switch"), o = O("v-btn");
|
|
1881
|
-
return
|
|
1887
|
+
return w(), u("div", dn, [p(a, {
|
|
1882
1888
|
modelValue: n.value,
|
|
1883
1889
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
1884
1890
|
class: "ml-1",
|
|
@@ -1886,19 +1892,19 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1886
1892
|
density: "compact",
|
|
1887
1893
|
"hide-details": "",
|
|
1888
1894
|
readonly: e.readonly
|
|
1889
|
-
}, null, 8, ["modelValue", "readonly"]), e.hasDelete ? (
|
|
1895
|
+
}, null, 8, ["modelValue", "readonly"]), e.hasDelete ? (w(), c(o, {
|
|
1890
1896
|
key: 0,
|
|
1891
1897
|
class: "mx-2",
|
|
1892
1898
|
density: "compact",
|
|
1893
1899
|
icon: "mdi-minus",
|
|
1894
1900
|
variant: "text",
|
|
1895
1901
|
onClick: i[1] ||= z((e) => r("delete"), ["stop"])
|
|
1896
|
-
})) :
|
|
1902
|
+
})) : l("", !0)]);
|
|
1897
1903
|
};
|
|
1898
1904
|
}
|
|
1899
|
-
}),
|
|
1905
|
+
}), pn = { class: "d-flex justify-space-between align-center" }, mn = /* @__PURE__ */ m({
|
|
1900
1906
|
__name: "index",
|
|
1901
|
-
props: /* @__PURE__ */
|
|
1907
|
+
props: /* @__PURE__ */ v({
|
|
1902
1908
|
hasDelete: {
|
|
1903
1909
|
type: Boolean,
|
|
1904
1910
|
default: !1
|
|
@@ -1911,19 +1917,19 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1911
1917
|
modelValue: { required: !0 },
|
|
1912
1918
|
modelModifiers: {}
|
|
1913
1919
|
}),
|
|
1914
|
-
emits: /* @__PURE__ */
|
|
1920
|
+
emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
|
|
1915
1921
|
setup(e, { emit: t }) {
|
|
1916
1922
|
let { isMobile: n } = G(), r = N(e, "modelValue"), i = t, a = async (t) => {
|
|
1917
1923
|
if (!t || e.readonly || !n()) return;
|
|
1918
|
-
let i = await
|
|
1924
|
+
let i = await _e({
|
|
1919
1925
|
title: "",
|
|
1920
1926
|
value: r.value
|
|
1921
1927
|
});
|
|
1922
1928
|
i !== void 0 && (r.value = i);
|
|
1923
1929
|
};
|
|
1924
1930
|
return (t, n) => {
|
|
1925
|
-
let o = O("v-text-field"),
|
|
1926
|
-
return
|
|
1931
|
+
let o = O("v-text-field"), s = O("v-btn"), d = k("ripple");
|
|
1932
|
+
return w(), u("div", pn, [L(p(o, {
|
|
1927
1933
|
modelValue: r.value,
|
|
1928
1934
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
1929
1935
|
density: "compact",
|
|
@@ -1936,27 +1942,27 @@ var _t = { class: "text-label-large ml-1" }, vt = { class: "text-body-small text
|
|
|
1936
1942
|
void 0,
|
|
1937
1943
|
void 0,
|
|
1938
1944
|
{ stop: !0 }
|
|
1939
|
-
]]), e.hasDelete ? (
|
|
1945
|
+
]]), e.hasDelete ? (w(), c(s, {
|
|
1940
1946
|
key: 0,
|
|
1941
1947
|
class: "mx-2",
|
|
1942
1948
|
density: "compact",
|
|
1943
1949
|
icon: "mdi-minus",
|
|
1944
1950
|
variant: "text",
|
|
1945
1951
|
onClick: n[1] ||= z((e) => i("delete"), ["stop"])
|
|
1946
|
-
})) :
|
|
1952
|
+
})) : l("", !0)]);
|
|
1947
1953
|
};
|
|
1948
1954
|
}
|
|
1949
1955
|
});
|
|
1950
1956
|
//#endregion
|
|
1951
1957
|
//#region src/composables/uis/uiAdaptSlot.ts
|
|
1952
|
-
function
|
|
1953
|
-
let e =
|
|
1958
|
+
function hn() {
|
|
1959
|
+
let e = Q();
|
|
1954
1960
|
return { renderUiAdaptSlot: (t, n, r, i, a) => {
|
|
1955
1961
|
if (n.ui !== "adaptSlot") throw Error("useUiAdaptSlot property ui must be adaptSlot");
|
|
1956
|
-
return
|
|
1957
|
-
modelValue:
|
|
1962
|
+
return h(kt, {
|
|
1963
|
+
modelValue: J(t, n, r, i, a, e),
|
|
1958
1964
|
"onUpdate:modelValue": (o) => {
|
|
1959
|
-
|
|
1965
|
+
Y(t, n, r, o, i, a, e);
|
|
1960
1966
|
},
|
|
1961
1967
|
hasDelete: i !== void 0 && !a,
|
|
1962
1968
|
onDelete: () => {
|
|
@@ -1968,14 +1974,14 @@ function fn() {
|
|
|
1968
1974
|
}
|
|
1969
1975
|
//#endregion
|
|
1970
1976
|
//#region src/composables/uis/uiComp.ts
|
|
1971
|
-
function
|
|
1972
|
-
let e =
|
|
1977
|
+
function gn() {
|
|
1978
|
+
let e = Q();
|
|
1973
1979
|
return { renderUiComp: (t, n, r, i, a) => {
|
|
1974
1980
|
if (n.ui !== "comp") throw Error("renderUiComp property ui must be comp");
|
|
1975
|
-
return
|
|
1976
|
-
modelValue:
|
|
1981
|
+
return h(zt, {
|
|
1982
|
+
modelValue: J(t, n, r, i, a, e),
|
|
1977
1983
|
"onUpdate:modelValue": (o) => {
|
|
1978
|
-
|
|
1984
|
+
Y(t, n, r, o, i, a, e);
|
|
1979
1985
|
},
|
|
1980
1986
|
hasDelete: i !== void 0 && !a,
|
|
1981
1987
|
onDelete: () => {
|
|
@@ -1987,23 +1993,23 @@ function pn() {
|
|
|
1987
1993
|
}
|
|
1988
1994
|
//#endregion
|
|
1989
1995
|
//#region src/composables/uis/uiDummy.ts
|
|
1990
|
-
function
|
|
1991
|
-
let e =
|
|
1996
|
+
function _n() {
|
|
1997
|
+
let e = Q();
|
|
1992
1998
|
return { renderUiDummy: (t, n, r, i, a) => {
|
|
1993
1999
|
if (n.ui !== "dummy") throw Error("renderUiDummy property ui must be dummy");
|
|
1994
|
-
|
|
2000
|
+
J(t, n, r, i, a, e);
|
|
1995
2001
|
} };
|
|
1996
2002
|
}
|
|
1997
2003
|
//#endregion
|
|
1998
2004
|
//#region src/composables/uis/uiIcon.ts
|
|
1999
|
-
function
|
|
2000
|
-
let e =
|
|
2005
|
+
function vn() {
|
|
2006
|
+
let e = Q();
|
|
2001
2007
|
return { renderUiIcon: (t, n, r, i, a) => {
|
|
2002
2008
|
if (n.ui !== "icon") throw Error("renderUiIcon property ui must be icon");
|
|
2003
|
-
return
|
|
2004
|
-
modelValue: n.static ? n.value :
|
|
2009
|
+
return h(Vt, {
|
|
2010
|
+
modelValue: n.static ? n.value : J(t, n, r, i, a, e),
|
|
2005
2011
|
"onUpdate:modelValue": (o) => {
|
|
2006
|
-
n.static ||
|
|
2012
|
+
n.static || Y(t, n, r, o, i, a, e);
|
|
2007
2013
|
},
|
|
2008
2014
|
hasDelete: i !== void 0 && !a,
|
|
2009
2015
|
onDelete: () => {
|
|
@@ -2015,14 +2021,14 @@ function hn() {
|
|
|
2015
2021
|
}
|
|
2016
2022
|
//#endregion
|
|
2017
2023
|
//#region src/composables/uis/uiJson.ts
|
|
2018
|
-
function
|
|
2019
|
-
let e =
|
|
2024
|
+
function yn() {
|
|
2025
|
+
let e = Q();
|
|
2020
2026
|
return { renderUiJson: (t, n, r, i, a) => {
|
|
2021
2027
|
if (n.ui !== "json") throw Error("renderUiJson property ui must be json");
|
|
2022
|
-
return
|
|
2023
|
-
modelValue:
|
|
2028
|
+
return h(Wt, {
|
|
2029
|
+
modelValue: J(t, n, r, i, a, e) ?? "{}",
|
|
2024
2030
|
"onUpdate:modelValue": (o) => {
|
|
2025
|
-
|
|
2031
|
+
Y(t, n, r, o, i, a, e);
|
|
2026
2032
|
},
|
|
2027
2033
|
hasDelete: i !== void 0 && !a,
|
|
2028
2034
|
onDelete: () => {
|
|
@@ -2034,14 +2040,14 @@ function gn() {
|
|
|
2034
2040
|
}
|
|
2035
2041
|
//#endregion
|
|
2036
2042
|
//#region src/composables/uis/uiMultiTypes.ts
|
|
2037
|
-
function
|
|
2038
|
-
let e =
|
|
2043
|
+
function bn() {
|
|
2044
|
+
let e = Q();
|
|
2039
2045
|
return { renderUiMultiTypes: (t, n, r, i, a) => {
|
|
2040
2046
|
if (n.ui !== "multiTypes") throw Error("renderUiMultiTypes property ui must be multiTypes");
|
|
2041
|
-
return
|
|
2042
|
-
modelValue:
|
|
2047
|
+
return h(Yt, {
|
|
2048
|
+
modelValue: J(t, n, r, i, a, e),
|
|
2043
2049
|
"onUpdate:modelValue": (o) => {
|
|
2044
|
-
|
|
2050
|
+
Y(t, n, r, o, i, a, e);
|
|
2045
2051
|
},
|
|
2046
2052
|
hasDelete: i !== void 0 && !a,
|
|
2047
2053
|
onDelete: () => {
|
|
@@ -2053,14 +2059,14 @@ function _n() {
|
|
|
2053
2059
|
}
|
|
2054
2060
|
//#endregion
|
|
2055
2061
|
//#region src/composables/uis/uiNumber.ts
|
|
2056
|
-
function
|
|
2057
|
-
let e =
|
|
2062
|
+
function xn() {
|
|
2063
|
+
let e = Q();
|
|
2058
2064
|
return { renderUiNumber: (t, n, r, i, a) => {
|
|
2059
2065
|
if (n.ui !== "number") throw Error("renderUiNumber property ui must be number");
|
|
2060
|
-
return
|
|
2061
|
-
modelValue:
|
|
2066
|
+
return h(Zt, {
|
|
2067
|
+
modelValue: J(t, n, r, i, a, e),
|
|
2062
2068
|
"onUpdate:modelValue": (o) => {
|
|
2063
|
-
|
|
2069
|
+
Y(t, n, r, o, i, a, e);
|
|
2064
2070
|
},
|
|
2065
2071
|
hasDelete: i !== void 0 && !a,
|
|
2066
2072
|
onDelete: () => {
|
|
@@ -2076,12 +2082,12 @@ function vn() {
|
|
|
2076
2082
|
}
|
|
2077
2083
|
//#endregion
|
|
2078
2084
|
//#region src/components/entry/index.vue
|
|
2079
|
-
var
|
|
2085
|
+
var Sn = /* @__PURE__ */ m({
|
|
2080
2086
|
__name: "index",
|
|
2081
2087
|
props: { minHeight: {} },
|
|
2082
2088
|
emits: ["menu"],
|
|
2083
2089
|
setup(e, { emit: t }) {
|
|
2084
|
-
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a =
|
|
2090
|
+
let { backgroundColor2: n, highlightColor: r } = W(), i = t, a = E(!1), o = s(() => ({
|
|
2085
2091
|
background: a.value ? r.value : n.value,
|
|
2086
2092
|
minHeight: e.minHeight,
|
|
2087
2093
|
paddingRight: "4px",
|
|
@@ -2092,23 +2098,23 @@ var yn = /* @__PURE__ */ p({
|
|
|
2092
2098
|
};
|
|
2093
2099
|
return (e, t) => {
|
|
2094
2100
|
let n = k("ripple");
|
|
2095
|
-
return L((
|
|
2101
|
+
return L((w(), u("div", {
|
|
2096
2102
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
2097
|
-
style:
|
|
2103
|
+
style: b(o.value),
|
|
2098
2104
|
onContextmenu: z(c, ["self", "prevent"]),
|
|
2099
2105
|
onMouseout: t[0] ||= (e) => a.value = !1,
|
|
2100
2106
|
onMouseover: t[1] ||= (e) => a.value = !0
|
|
2101
|
-
}, [
|
|
2107
|
+
}, [ee(e.$slots, "default")], 36)), [[n]]);
|
|
2102
2108
|
};
|
|
2103
2109
|
}
|
|
2104
2110
|
});
|
|
2105
2111
|
//#endregion
|
|
2106
2112
|
//#region src/composables/uis/uiProperty.ts
|
|
2107
|
-
function
|
|
2108
|
-
let { t: e } = H(), t =
|
|
2113
|
+
function Cn() {
|
|
2114
|
+
let { t: e } = H(), t = it();
|
|
2109
2115
|
return { renderProperty: (n, r, i) => {
|
|
2110
2116
|
let a = n[n.length - 1], o = typeof a == "number" ? `[${a + 1}]` : e(r.name);
|
|
2111
|
-
return
|
|
2117
|
+
return Z(t.value, n) && (o += " *"), h(Sn, {
|
|
2112
2118
|
minHeight: "56px",
|
|
2113
2119
|
onMenu: (e, t) => {
|
|
2114
2120
|
U.emit("propTreeMenu", {
|
|
@@ -2117,25 +2123,25 @@ function bn() {
|
|
|
2117
2123
|
keys: n
|
|
2118
2124
|
});
|
|
2119
2125
|
}
|
|
2120
|
-
}, () => [
|
|
2126
|
+
}, () => [h("span", {
|
|
2121
2127
|
style: {
|
|
2122
2128
|
marginLeft: "4px",
|
|
2123
2129
|
pointerEvents: "none"
|
|
2124
2130
|
},
|
|
2125
2131
|
innerHTML: o
|
|
2126
|
-
}),
|
|
2132
|
+
}), h("div", { style: { width: "200px" } }, i)]);
|
|
2127
2133
|
} };
|
|
2128
2134
|
}
|
|
2129
2135
|
//#endregion
|
|
2130
2136
|
//#region src/composables/uis/uiRule.ts
|
|
2131
|
-
function
|
|
2132
|
-
let e =
|
|
2137
|
+
function wn() {
|
|
2138
|
+
let e = Q();
|
|
2133
2139
|
function t(t, n, r, i, a) {
|
|
2134
2140
|
if (n.ui !== "rule") throw Error("renderUiRule property ui must be rule");
|
|
2135
|
-
return
|
|
2136
|
-
modelValue:
|
|
2141
|
+
return h(en, {
|
|
2142
|
+
modelValue: J(t, n, r, i, a, e),
|
|
2137
2143
|
"onUpdate:modelValue": (o) => {
|
|
2138
|
-
|
|
2144
|
+
Y(t, n, r, o, i, a, e);
|
|
2139
2145
|
},
|
|
2140
2146
|
hasDelete: i !== void 0 && !a,
|
|
2141
2147
|
onDelete: () => {
|
|
@@ -2147,14 +2153,14 @@ function xn() {
|
|
|
2147
2153
|
}
|
|
2148
2154
|
//#endregion
|
|
2149
2155
|
//#region src/composables/uis/uiSelect.ts
|
|
2150
|
-
function
|
|
2151
|
-
let e =
|
|
2156
|
+
function Tn() {
|
|
2157
|
+
let e = Q();
|
|
2152
2158
|
return { renderUiSelect: (t, n, r, i, a) => {
|
|
2153
2159
|
if (n.ui !== "select") throw Error("renderUiSelect property ui must be select");
|
|
2154
|
-
return
|
|
2155
|
-
modelValue:
|
|
2160
|
+
return h(nn, {
|
|
2161
|
+
modelValue: J(t, n, r, i, a, e),
|
|
2156
2162
|
"onUpdate:modelValue": (o) => {
|
|
2157
|
-
|
|
2163
|
+
Y(t, n, r, o, i, a, e);
|
|
2158
2164
|
},
|
|
2159
2165
|
hasDelete: i !== void 0 && !a,
|
|
2160
2166
|
onDelete: () => {
|
|
@@ -2167,14 +2173,14 @@ function Sn() {
|
|
|
2167
2173
|
}
|
|
2168
2174
|
//#endregion
|
|
2169
2175
|
//#region src/composables/uis/uiSlot.ts
|
|
2170
|
-
function
|
|
2171
|
-
let e =
|
|
2176
|
+
function En() {
|
|
2177
|
+
let e = Q();
|
|
2172
2178
|
return { renderUiSlot: (t, n, r, i, a) => {
|
|
2173
2179
|
if (n.ui !== "slot") throw Error("renderUiSlot property ui must be slot");
|
|
2174
|
-
return
|
|
2175
|
-
modelValue:
|
|
2180
|
+
return h(un, {
|
|
2181
|
+
modelValue: J(t, n, r, i, a, e),
|
|
2176
2182
|
"onUpdate:modelValue": (o) => {
|
|
2177
|
-
|
|
2183
|
+
Y(t, n, r, o, i, a, e);
|
|
2178
2184
|
},
|
|
2179
2185
|
hasDelete: i !== void 0 && !a,
|
|
2180
2186
|
onDelete: () => {
|
|
@@ -2186,14 +2192,14 @@ function Cn() {
|
|
|
2186
2192
|
}
|
|
2187
2193
|
//#endregion
|
|
2188
2194
|
//#region src/composables/uis/uiSwitch.ts
|
|
2189
|
-
function
|
|
2190
|
-
let e =
|
|
2195
|
+
function Dn() {
|
|
2196
|
+
let e = Q();
|
|
2191
2197
|
return { renderUiSwitch: (t, n, r, i, a) => {
|
|
2192
2198
|
if (n.ui !== "switch") throw Error("renderUiSwitch property ui must be switch");
|
|
2193
|
-
return
|
|
2194
|
-
modelValue:
|
|
2199
|
+
return h(fn, {
|
|
2200
|
+
modelValue: J(t, n, r, i, a, e),
|
|
2195
2201
|
"onUpdate:modelValue": (o) => {
|
|
2196
|
-
|
|
2202
|
+
Y(t, n, r, o, i, a, e);
|
|
2197
2203
|
},
|
|
2198
2204
|
hasDelete: i !== void 0 && !a,
|
|
2199
2205
|
onDelete: () => {
|
|
@@ -2205,14 +2211,14 @@ function wn() {
|
|
|
2205
2211
|
}
|
|
2206
2212
|
//#endregion
|
|
2207
2213
|
//#region src/composables/uis/uiText.ts
|
|
2208
|
-
function
|
|
2209
|
-
let e =
|
|
2214
|
+
function On() {
|
|
2215
|
+
let e = Q();
|
|
2210
2216
|
return { renderUiText: (t, n, r, i, a) => {
|
|
2211
2217
|
if (n.ui !== "text") throw Error("renderUiText property ui must be text");
|
|
2212
|
-
return
|
|
2213
|
-
modelValue: n.static ? n.value :
|
|
2218
|
+
return h(mn, {
|
|
2219
|
+
modelValue: n.static ? n.value : J(t, n, r, i, a, e),
|
|
2214
2220
|
"onUpdate:modelValue": (o) => {
|
|
2215
|
-
n.static ||
|
|
2221
|
+
n.static || Y(t, n, r, o, i, a, e);
|
|
2216
2222
|
},
|
|
2217
2223
|
hasDelete: i !== void 0 && !a,
|
|
2218
2224
|
onDelete: () => {
|
|
@@ -2224,24 +2230,24 @@ function Tn() {
|
|
|
2224
2230
|
}
|
|
2225
2231
|
//#endregion
|
|
2226
2232
|
//#region src/components/propTree/main.vue?vue&type=script&setup=true&lang.ts
|
|
2227
|
-
var
|
|
2233
|
+
var $ = "20px", kn = /* @__PURE__ */ m({
|
|
2228
2234
|
__name: "main",
|
|
2229
|
-
setup(
|
|
2230
|
-
let { t
|
|
2231
|
-
|
|
2232
|
-
let { renderProperty: d } =
|
|
2233
|
-
if (
|
|
2234
|
-
},
|
|
2235
|
-
if (
|
|
2236
|
-
if (!
|
|
2237
|
-
let o =
|
|
2238
|
-
|
|
2239
|
-
let d =
|
|
2240
|
-
title:
|
|
2241
|
-
collapse:
|
|
2235
|
+
setup(e) {
|
|
2236
|
+
let { t } = H(), { backgroundColor1: n } = W(), i = Qe(), a = et(), s = nt(), c = it(), l = Q();
|
|
2237
|
+
vt(), yt(), _t();
|
|
2238
|
+
let { renderProperty: d } = Cn(), { renderUiDummy: f } = _n(), { renderUiText: m } = On(), { renderUiNumber: g } = xn(), { renderUiSwitch: _ } = Dn(), { renderUiSelect: v } = Tn(), { renderUiJson: y } = yn(), { renderUiIcon: b } = vn(), { renderUiComp: x } = gn(), { renderUiSlot: S } = En(), { renderUiAdaptSlot: C } = hn(), { renderUiRule: T } = wn(), { renderUiMultiTypes: E } = bn(), D = (e, t, n, i, a, o) => {
|
|
2239
|
+
if (e = r(e), i === void 0 ? e.push(t.key) : (e.push(i), a && e.push(t.key)), e?.[0] !== "runtime") return t.ui ? t.array && !o ? k(e, t, n, i, a) : A(e, t, n, i, a) : t.array ? ee(e, t, n, i, a) : O(e, t, n, i, a);
|
|
2240
|
+
}, ee = (e, n, r, i, a) => {
|
|
2241
|
+
if (n.ui) throw Error("renderBranchArray property ui must be invalid");
|
|
2242
|
+
if (!n.array) throw Error("renderBranchArray property array must be valid");
|
|
2243
|
+
let o = Se(e, n, r, i, a, l), u = t(n.name);
|
|
2244
|
+
X(s, e) && Z(c.value, e) && (u += " *");
|
|
2245
|
+
let d = h(gt, {
|
|
2246
|
+
title: u,
|
|
2247
|
+
collapse: X(s, e),
|
|
2242
2248
|
hasCreate: !0,
|
|
2243
2249
|
onCollapse: (t) => {
|
|
2244
|
-
|
|
2250
|
+
Ce(s, e, t);
|
|
2245
2251
|
},
|
|
2246
2252
|
onMenu: (t, n) => {
|
|
2247
2253
|
U.emit("propTreeMenu", {
|
|
@@ -2251,20 +2257,20 @@ var En = "20px", Dn = /* @__PURE__ */ p({
|
|
|
2251
2257
|
});
|
|
2252
2258
|
},
|
|
2253
2259
|
onCreate: () => {
|
|
2254
|
-
o.push({}),
|
|
2260
|
+
o.push({}), l(e, o);
|
|
2255
2261
|
}
|
|
2256
|
-
}), f =
|
|
2257
|
-
let
|
|
2262
|
+
}), f = h("div", { style: { paddingLeft: $ } }, (() => {
|
|
2263
|
+
let t = [];
|
|
2258
2264
|
for (let r = 0; r < o.length; r++) {
|
|
2259
2265
|
let i = [...e, r], a = `[${r + 1}]`;
|
|
2260
|
-
|
|
2261
|
-
let
|
|
2266
|
+
X(s, [...e, r]) && Z(c.value, i) && (a += " *");
|
|
2267
|
+
let u = h(gt, {
|
|
2262
2268
|
title: a,
|
|
2263
|
-
collapse:
|
|
2269
|
+
collapse: X(s, [...e, r]),
|
|
2264
2270
|
hasDelete: !0,
|
|
2265
2271
|
index: r,
|
|
2266
2272
|
onCollapse: (t) => {
|
|
2267
|
-
|
|
2273
|
+
Ce(s, [...e, r], t);
|
|
2268
2274
|
},
|
|
2269
2275
|
onMenu: (e, t) => {
|
|
2270
2276
|
U.emit("propTreeMenu", {
|
|
@@ -2274,34 +2280,34 @@ var En = "20px", Dn = /* @__PURE__ */ p({
|
|
|
2274
2280
|
});
|
|
2275
2281
|
},
|
|
2276
2282
|
onDelete: (t) => {
|
|
2277
|
-
o.splice(t, 1),
|
|
2283
|
+
o.splice(t, 1), l(e, o);
|
|
2278
2284
|
}
|
|
2279
2285
|
});
|
|
2280
|
-
|
|
2281
|
-
let d =
|
|
2282
|
-
let
|
|
2283
|
-
for (let i of
|
|
2284
|
-
return
|
|
2286
|
+
t.push(u);
|
|
2287
|
+
let d = h("div", { style: { paddingLeft: $ } }, (() => {
|
|
2288
|
+
let t = [];
|
|
2289
|
+
for (let i of n.children) t.push(D(e, i, o[r], r, !0));
|
|
2290
|
+
return t;
|
|
2285
2291
|
})());
|
|
2286
|
-
|
|
2292
|
+
X(s, [...e, r]) || t.push(d);
|
|
2287
2293
|
}
|
|
2288
|
-
return
|
|
2294
|
+
return t;
|
|
2289
2295
|
})());
|
|
2290
|
-
return
|
|
2296
|
+
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2291
2297
|
let t = [];
|
|
2292
|
-
return t.push(d),
|
|
2298
|
+
return t.push(d), X(s, e) || t.push(f), t;
|
|
2293
2299
|
})());
|
|
2294
|
-
},
|
|
2295
|
-
if (
|
|
2296
|
-
if (
|
|
2297
|
-
let o = n
|
|
2298
|
-
|
|
2299
|
-
let
|
|
2300
|
+
}, O = (e, n, r, i, a) => {
|
|
2301
|
+
if (n.ui) throw Error("renderBranchScalar property ui must be invalid");
|
|
2302
|
+
if (n.array) throw Error("renderBranchScalar property array must be invalid");
|
|
2303
|
+
let o = t(n.name);
|
|
2304
|
+
X(s, e) && Z(c.value, e) && (o += " *");
|
|
2305
|
+
let u = h(gt, {
|
|
2300
2306
|
title: o,
|
|
2301
|
-
collapse:
|
|
2307
|
+
collapse: X(s, e),
|
|
2302
2308
|
hasDelete: i !== void 0 && !a,
|
|
2303
2309
|
onCollapse: (t) => {
|
|
2304
|
-
|
|
2310
|
+
Ce(s, e, t);
|
|
2305
2311
|
},
|
|
2306
2312
|
onMenu: (t, n) => {
|
|
2307
2313
|
U.emit("propTreeMenu", {
|
|
@@ -2311,28 +2317,28 @@ var En = "20px", Dn = /* @__PURE__ */ p({
|
|
|
2311
2317
|
});
|
|
2312
2318
|
},
|
|
2313
2319
|
onDelete: () => {
|
|
2314
|
-
i === void 0 || a || (r.splice(i, 1),
|
|
2320
|
+
i === void 0 || a || (r.splice(i, 1), l(e.slice(0, -1), r));
|
|
2315
2321
|
}
|
|
2316
|
-
}), d =
|
|
2317
|
-
let
|
|
2318
|
-
for (let i of
|
|
2319
|
-
return
|
|
2322
|
+
}), d = h("div", { style: { paddingLeft: $ } }, (() => {
|
|
2323
|
+
let t = [];
|
|
2324
|
+
for (let i of n.children) t.push(D(e, i, (typeof r[n.key] != "object" && (r[n.key] = {}, l(e, r[n.key])), r[n.key]), void 0, !1));
|
|
2325
|
+
return t;
|
|
2320
2326
|
})());
|
|
2321
|
-
return
|
|
2327
|
+
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2322
2328
|
let t = [];
|
|
2323
|
-
return t.push(
|
|
2329
|
+
return t.push(u), X(s, e) || t.push(d), t;
|
|
2324
2330
|
})());
|
|
2325
|
-
},
|
|
2326
|
-
if (!
|
|
2327
|
-
if (!
|
|
2328
|
-
let o =
|
|
2329
|
-
|
|
2330
|
-
let d =
|
|
2331
|
-
title:
|
|
2332
|
-
collapse:
|
|
2331
|
+
}, k = (e, n, r, i, a) => {
|
|
2332
|
+
if (!n.ui) throw Error("renderLeafArray property ui must be valid");
|
|
2333
|
+
if (!n.array) throw Error("renderLeafArray property array must be valid");
|
|
2334
|
+
let o = Se(e, n, r, i, a, l), u = t(n.name);
|
|
2335
|
+
X(s, e) && Z(c.value, e) && (u += " *");
|
|
2336
|
+
let d = h(gt, {
|
|
2337
|
+
title: u,
|
|
2338
|
+
collapse: X(s, e),
|
|
2333
2339
|
hasCreate: !0,
|
|
2334
2340
|
onCollapse: (t) => {
|
|
2335
|
-
|
|
2341
|
+
Ce(s, e, t);
|
|
2336
2342
|
},
|
|
2337
2343
|
onMenu: (t, n) => {
|
|
2338
2344
|
U.emit("propTreeMenu", {
|
|
@@ -2342,32 +2348,32 @@ var En = "20px", Dn = /* @__PURE__ */ p({
|
|
|
2342
2348
|
});
|
|
2343
2349
|
},
|
|
2344
2350
|
onCreate: () => {
|
|
2345
|
-
o.push(B(
|
|
2351
|
+
o.push(B(n)), l(e, o);
|
|
2346
2352
|
}
|
|
2347
|
-
}), f =
|
|
2348
|
-
let
|
|
2349
|
-
for (let r = 0; r < o.length; r++)
|
|
2350
|
-
return
|
|
2353
|
+
}), f = h("div", { style: { paddingLeft: $ } }, (() => {
|
|
2354
|
+
let t = [];
|
|
2355
|
+
for (let r = 0; r < o.length; r++) t.push(D(e, n, o, r, !1, !0));
|
|
2356
|
+
return t;
|
|
2351
2357
|
})());
|
|
2352
|
-
return
|
|
2358
|
+
return h("div", { style: { marginTop: "1px" } }, (() => {
|
|
2353
2359
|
let t = [];
|
|
2354
|
-
return t.push(d),
|
|
2360
|
+
return t.push(d), X(s, e) || t.push(f), t;
|
|
2355
2361
|
})());
|
|
2356
|
-
},
|
|
2362
|
+
}, A = (e, t, n, r, i) => {
|
|
2357
2363
|
if (!t.ui) throw Error("renderLeafScalar property ui must be valid");
|
|
2358
2364
|
let a;
|
|
2359
|
-
return t.ui === "dummy" ? a =
|
|
2360
|
-
},
|
|
2365
|
+
return t.ui === "dummy" ? a = f(e, t, n, r, i) : t.ui === "text" ? a = m(e, t, n, r, i) : t.ui === "number" ? a = g(e, t, n, r, i) : t.ui === "switch" ? a = _(e, t, n, r, i) : t.ui === "select" ? a = v(e, t, n, r, i) : t.ui === "json" ? a = y(e, t, n, r, i) : t.ui === "icon" ? a = b(e, t, n, r, i) : t.ui === "comp" ? a = x(e, t, n, r, i) : t.ui === "slot" ? a = S(e, t, n, r, i) : t.ui === "adaptSlot" ? a = C(e, t, n, r, i) : t.ui === "rule" ? a = T(e, t, n, r, i) : t.ui === "multiTypes" ? a = E(e, t, n, r, i) : console.assert(!1, "renderLeafScalar not implemented"), a ? d(e, t, a) : h("div");
|
|
2366
|
+
}, j = () => h("div", {
|
|
2361
2367
|
class: "text-body-medium",
|
|
2362
|
-
style: { background:
|
|
2368
|
+
style: { background: n.value }
|
|
2363
2369
|
}, (() => {
|
|
2364
2370
|
let e = [];
|
|
2365
|
-
if (i.value.length > 0 &&
|
|
2371
|
+
if (i.value.length > 0 && a.value) for (let t of i.value) e.push(D([], t, a.value, void 0, !1));
|
|
2366
2372
|
return e;
|
|
2367
2373
|
})());
|
|
2368
|
-
return (e, t) => (
|
|
2374
|
+
return (e, t) => (w(), u(o, null, [p(j), p(mt)], 64));
|
|
2369
2375
|
}
|
|
2370
|
-
}),
|
|
2376
|
+
}), An = /* @__PURE__ */ m({
|
|
2371
2377
|
__name: "index",
|
|
2372
2378
|
props: {
|
|
2373
2379
|
config: {},
|
|
@@ -2378,43 +2384,53 @@ var En = "20px", Dn = /* @__PURE__ */ p({
|
|
|
2378
2384
|
},
|
|
2379
2385
|
emits: ["change"],
|
|
2380
2386
|
setup(e, { emit: t }) {
|
|
2381
|
-
let n = t, r =
|
|
2382
|
-
|
|
2387
|
+
let n = t, r = E([]);
|
|
2388
|
+
Ze(r), F(() => {
|
|
2383
2389
|
r.value = e.config;
|
|
2384
2390
|
});
|
|
2385
|
-
let i =
|
|
2386
|
-
|
|
2391
|
+
let i = E();
|
|
2392
|
+
$e(i), F(() => {
|
|
2387
2393
|
i.value = e.object;
|
|
2388
2394
|
});
|
|
2389
|
-
let a =
|
|
2390
|
-
|
|
2395
|
+
let a = E("");
|
|
2396
|
+
Ge(a), F(() => {
|
|
2391
2397
|
a.value = e.version;
|
|
2392
2398
|
});
|
|
2393
|
-
let o =
|
|
2394
|
-
|
|
2399
|
+
let o = E(e.type);
|
|
2400
|
+
qe(o), F(() => {
|
|
2395
2401
|
o.value = e.type;
|
|
2396
2402
|
});
|
|
2397
|
-
let
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
}),
|
|
2403
|
+
let s = E("");
|
|
2404
|
+
Ye(s), F(() => {
|
|
2405
|
+
s.value = e.subtype;
|
|
2406
|
+
}), tt(E({
|
|
2401
2407
|
collapse: !0,
|
|
2402
2408
|
children: {}
|
|
2403
2409
|
}));
|
|
2404
|
-
let l =
|
|
2410
|
+
let l = E({
|
|
2405
2411
|
change: !1,
|
|
2406
2412
|
warning: !1,
|
|
2407
2413
|
children: {}
|
|
2408
2414
|
});
|
|
2409
|
-
|
|
2410
|
-
|
|
2415
|
+
rt(l);
|
|
2416
|
+
function u(t, r) {
|
|
2417
|
+
Ne(l, e.config, e.object), n("change", t, r);
|
|
2418
|
+
}
|
|
2419
|
+
at(u);
|
|
2420
|
+
function d() {
|
|
2421
|
+
Ne(l, e.config, e.object);
|
|
2422
|
+
}
|
|
2423
|
+
return S(() => {
|
|
2424
|
+
U.on("refreshPropertyState", d);
|
|
2425
|
+
}), x(() => {
|
|
2426
|
+
U.off("refreshPropertyState", d);
|
|
2411
2427
|
}), P([() => e.config, () => e.object], () => {
|
|
2412
|
-
|
|
2413
|
-
}, { immediate: !0 }), (e, t) => (
|
|
2428
|
+
Ne(l, e.config, e.object);
|
|
2429
|
+
}, { immediate: !0 }), (e, t) => (w(), c(kn));
|
|
2414
2430
|
}
|
|
2415
|
-
}),
|
|
2416
|
-
e.component("XPropTree",
|
|
2417
|
-
},
|
|
2431
|
+
}), jn = (e) => {
|
|
2432
|
+
e.component("XPropTree", An);
|
|
2433
|
+
}, Mn = (e, t, n) => {
|
|
2418
2434
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
2419
2435
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
2420
2436
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
|
|
@@ -2422,14 +2438,14 @@ var En = "20px", Dn = /* @__PURE__ */ p({
|
|
|
2422
2438
|
};
|
|
2423
2439
|
//#endregion
|
|
2424
2440
|
//#region src/i18n/index.ts
|
|
2425
|
-
async function
|
|
2426
|
-
return (await
|
|
2427
|
-
"./locales/en/index.ts": () => import("./i18n-en.
|
|
2428
|
-
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.
|
|
2441
|
+
async function Nn(e) {
|
|
2442
|
+
return (await Mn(/* @__PURE__ */ Object.assign({
|
|
2443
|
+
"./locales/en/index.ts": () => import("./i18n-en.ckhf41nr.js").then((e) => e.t),
|
|
2444
|
+
"./locales/zhHans/index.ts": () => import("./i18n-zhHans.lj81m5nl.js").then((e) => e.t)
|
|
2429
2445
|
}), `./locales/${e}/index.ts`, 4)).default;
|
|
2430
2446
|
}
|
|
2431
2447
|
//#endregion
|
|
2432
2448
|
//#region src/index.ts
|
|
2433
|
-
var
|
|
2449
|
+
var Pn = { install: jn };
|
|
2434
2450
|
//#endregion
|
|
2435
|
-
export {
|
|
2451
|
+
export { Pn as default, Nn as loadLocaleMessagePropTree };
|