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