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