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