x-prop-tree 0.4.6 → 0.4.8
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/entry.vue.d.ts +19 -0
- package/dist/components/propTree/keyValue/index.vue.d.ts +16 -0
- package/dist/components/propTree/menu.vue.d.ts +2 -0
- package/dist/components/propTree/switch/index.vue.d.ts +13 -0
- package/dist/components/propTree/title.vue.d.ts +17 -0
- package/dist/components/propTree/values/colorPicker.vue.d.ts +13 -0
- package/dist/components/propTree/values/numInput.vue.d.ts +17 -0
- package/dist/components/propTree/values/select.vue.d.ts +17 -0
- package/dist/components/propTree/values/strInput.vue.d.ts +14 -0
- package/dist/components/propTree/values/switch.vue.d.ts +13 -0
- package/dist/index.js +639 -469
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,421 +1,421 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.id="x-prop-tree",e.appendChild(document.createTextNode('.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useColor as
|
|
5
|
-
import { getPropDefault as
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
return (t) => Object.keys(e).reduce((
|
|
9
|
-
const
|
|
2
|
+
import { Fragment as ae, reactive as we, computed as _, watchEffect as Be, toRefs as Ge, warn as qe, getCurrentInstance as Xe, inject as re, shallowRef as Ye, provide as $e, defineComponent as B, isRef as Ie, createVNode as C, mergeProps as Me, unref as T, ref as I, toRef as Ze, Text as Ke, resolveDirective as G, withDirectives as q, openBlock as x, createElementBlock as j, normalizeStyle as Fe, withModifiers as Q, renderSlot as Je, resolveComponent as p, createBlock as M, withCtx as P, renderList as Qe, createTextVNode as De, toDisplayString as ie, createElementVNode as je, createCommentVNode as oe, mergeModels as N, useModel as X, h as k } from "vue";
|
|
3
|
+
import { useI18n as Ae } from "vue-i18n";
|
|
4
|
+
import { useColor as ue, eventBus as Te, useViewStack as en } from "x-essential-lib";
|
|
5
|
+
import { getPropDefault as A } from "x-runtime-lib";
|
|
6
|
+
var nn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", tn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", Pe = "M19,13H5V11H19V13Z", Le = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
7
|
+
function L(e, n) {
|
|
8
|
+
return (t) => Object.keys(e).reduce((l, a) => {
|
|
9
|
+
const i = typeof e[a] == "object" && e[a] != null && !Array.isArray(e[a]) ? e[a] : {
|
|
10
10
|
type: e[a]
|
|
11
11
|
};
|
|
12
|
-
return t && a in t ?
|
|
13
|
-
...
|
|
12
|
+
return t && a in t ? l[a] = {
|
|
13
|
+
...i,
|
|
14
14
|
default: t[a]
|
|
15
|
-
} :
|
|
15
|
+
} : l[a] = i, n && !l[a].source && (l[a].source = n), l;
|
|
16
16
|
}, {});
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const ln = L({
|
|
19
19
|
class: [String, Array, Object],
|
|
20
20
|
style: {
|
|
21
21
|
type: [String, Array, Object],
|
|
22
22
|
default: null
|
|
23
23
|
}
|
|
24
24
|
}, "component");
|
|
25
|
-
function
|
|
25
|
+
function U(e) {
|
|
26
26
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "px";
|
|
27
27
|
if (!(e == null || e === ""))
|
|
28
28
|
return isNaN(+e) ? String(e) : isFinite(+e) ? `${Number(e)}${n}` : void 0;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function ce(e) {
|
|
31
31
|
let n;
|
|
32
32
|
return e !== null && typeof e == "object" && ((n = Object.getPrototypeOf(e)) === Object.prototype || n === null);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function te(e, n) {
|
|
35
35
|
return n.every((t) => e.hasOwnProperty(t));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const t = {},
|
|
37
|
+
function sn(e, n) {
|
|
38
|
+
const t = {}, l = new Set(Object.keys(e));
|
|
39
39
|
for (const a of n)
|
|
40
|
-
|
|
40
|
+
l.has(a) && (t[a] = e[a]);
|
|
41
41
|
return t;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function de(e, n) {
|
|
44
44
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "0";
|
|
45
45
|
return e + t.repeat(Math.max(0, n - e.length));
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function an(e) {
|
|
48
48
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
49
49
|
const t = [];
|
|
50
|
-
let
|
|
51
|
-
for (;
|
|
52
|
-
t.push(e.substr(
|
|
50
|
+
let l = 0;
|
|
51
|
+
for (; l < e.length; )
|
|
52
|
+
t.push(e.substr(l, n)), l += n;
|
|
53
53
|
return t;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ze() {
|
|
56
56
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = arguments.length > 2 ? arguments[2] : void 0;
|
|
57
|
-
const
|
|
57
|
+
const l = {};
|
|
58
58
|
for (const a in e)
|
|
59
|
-
|
|
59
|
+
l[a] = e[a];
|
|
60
60
|
for (const a in n) {
|
|
61
|
-
const r = e[a],
|
|
62
|
-
if (
|
|
63
|
-
|
|
61
|
+
const r = e[a], i = n[a];
|
|
62
|
+
if (ce(r) && ce(i)) {
|
|
63
|
+
l[a] = ze(r, i, t);
|
|
64
64
|
continue;
|
|
65
65
|
}
|
|
66
|
-
if (t && Array.isArray(r) && Array.isArray(
|
|
67
|
-
|
|
66
|
+
if (t && Array.isArray(r) && Array.isArray(i)) {
|
|
67
|
+
l[a] = t(r, i);
|
|
68
68
|
continue;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
l[a] = i;
|
|
71
71
|
}
|
|
72
|
-
return
|
|
72
|
+
return l;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return e.map((n) => n.type ===
|
|
74
|
+
function Oe(e) {
|
|
75
|
+
return e.map((n) => n.type === ae ? Oe(n.children) : n).flat();
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function H() {
|
|
78
78
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
79
|
-
if (
|
|
79
|
+
if (H.cache.has(e)) return H.cache.get(e);
|
|
80
80
|
const n = e.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
|
|
81
|
-
return
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function
|
|
85
|
-
const n =
|
|
86
|
-
return
|
|
87
|
-
for (const
|
|
88
|
-
n[
|
|
81
|
+
return H.cache.set(e, n), n;
|
|
82
|
+
}
|
|
83
|
+
H.cache = /* @__PURE__ */ new Map();
|
|
84
|
+
function He(e) {
|
|
85
|
+
const n = we({}), t = _(e);
|
|
86
|
+
return Be(() => {
|
|
87
|
+
for (const l in t.value)
|
|
88
|
+
n[l] = t.value[l];
|
|
89
89
|
}, {
|
|
90
90
|
flush: "sync"
|
|
91
|
-
}),
|
|
91
|
+
}), Ge(n);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function rn(e, n) {
|
|
94
94
|
return e.includes(n);
|
|
95
95
|
}
|
|
96
|
-
const
|
|
97
|
-
function
|
|
98
|
-
const t = (e.r / 255) **
|
|
99
|
-
let
|
|
100
|
-
if (
|
|
101
|
-
let
|
|
102
|
-
if (
|
|
103
|
-
const
|
|
104
|
-
|
|
96
|
+
const O = 2.4, fe = 0.2126729, me = 0.7151522, ge = 0.072175, un = 0.55, on = 0.58, cn = 0.57, dn = 0.62, K = 0.03, ye = 1.45, fn = 5e-4, mn = 1.25, gn = 1.25, ve = 0.078, he = 12.82051282051282, J = 0.06, ke = 1e-3;
|
|
97
|
+
function Ce(e, n) {
|
|
98
|
+
const t = (e.r / 255) ** O, l = (e.g / 255) ** O, a = (e.b / 255) ** O, r = (n.r / 255) ** O, i = (n.g / 255) ** O, g = (n.b / 255) ** O;
|
|
99
|
+
let c = t * fe + l * me + a * ge, o = r * fe + i * me + g * ge;
|
|
100
|
+
if (c <= K && (c += (K - c) ** ye), o <= K && (o += (K - o) ** ye), Math.abs(o - c) < fn) return 0;
|
|
101
|
+
let f;
|
|
102
|
+
if (o > c) {
|
|
103
|
+
const y = (o ** un - c ** on) * mn;
|
|
104
|
+
f = y < ke ? 0 : y < ve ? y - y * he * J : y - J;
|
|
105
105
|
} else {
|
|
106
|
-
const
|
|
107
|
-
|
|
106
|
+
const y = (o ** dn - c ** cn) * gn;
|
|
107
|
+
f = y > -ke ? 0 : y > -ve ? y - y * he * J : y + J;
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return f * 100;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
111
|
+
function E(e) {
|
|
112
|
+
qe(`Vuetify: ${e}`);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function le(e) {
|
|
115
115
|
return !!e && /^(#|var\(--|(rgb|hsl)a?\()/.test(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
return
|
|
117
|
+
function yn(e) {
|
|
118
|
+
return le(e) && !/^((rgb|hsl)a?\()?var\(--/.test(e);
|
|
119
119
|
}
|
|
120
|
-
const
|
|
121
|
-
rgb: (e, n, t,
|
|
120
|
+
const Ve = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, vn = {
|
|
121
|
+
rgb: (e, n, t, l) => ({
|
|
122
122
|
r: e,
|
|
123
123
|
g: n,
|
|
124
124
|
b: t,
|
|
125
|
-
a:
|
|
125
|
+
a: l
|
|
126
126
|
}),
|
|
127
|
-
rgba: (e, n, t,
|
|
127
|
+
rgba: (e, n, t, l) => ({
|
|
128
128
|
r: e,
|
|
129
129
|
g: n,
|
|
130
130
|
b: t,
|
|
131
|
-
a:
|
|
131
|
+
a: l
|
|
132
132
|
}),
|
|
133
|
-
hsl: (e, n, t,
|
|
133
|
+
hsl: (e, n, t, l) => _e({
|
|
134
134
|
h: e,
|
|
135
135
|
s: n,
|
|
136
136
|
l: t,
|
|
137
|
-
a:
|
|
137
|
+
a: l
|
|
138
138
|
}),
|
|
139
|
-
hsla: (e, n, t,
|
|
139
|
+
hsla: (e, n, t, l) => _e({
|
|
140
140
|
h: e,
|
|
141
141
|
s: n,
|
|
142
142
|
l: t,
|
|
143
|
-
a:
|
|
143
|
+
a: l
|
|
144
144
|
}),
|
|
145
|
-
hsv: (e, n, t,
|
|
145
|
+
hsv: (e, n, t, l) => W({
|
|
146
146
|
h: e,
|
|
147
147
|
s: n,
|
|
148
148
|
v: t,
|
|
149
|
-
a:
|
|
149
|
+
a: l
|
|
150
150
|
}),
|
|
151
|
-
hsva: (e, n, t,
|
|
151
|
+
hsva: (e, n, t, l) => W({
|
|
152
152
|
h: e,
|
|
153
153
|
s: n,
|
|
154
154
|
v: t,
|
|
155
|
-
a:
|
|
155
|
+
a: l
|
|
156
156
|
})
|
|
157
157
|
};
|
|
158
|
-
function
|
|
158
|
+
function R(e) {
|
|
159
159
|
if (typeof e == "number")
|
|
160
|
-
return (isNaN(e) || e < 0 || e > 16777215) &&
|
|
160
|
+
return (isNaN(e) || e < 0 || e > 16777215) && E(`'${e}' is not a valid hex color`), {
|
|
161
161
|
r: (e & 16711680) >> 16,
|
|
162
162
|
g: (e & 65280) >> 8,
|
|
163
163
|
b: e & 255
|
|
164
164
|
};
|
|
165
|
-
if (typeof e == "string" &&
|
|
165
|
+
if (typeof e == "string" && Ve.test(e)) {
|
|
166
166
|
const {
|
|
167
167
|
groups: n
|
|
168
|
-
} = e.match(
|
|
168
|
+
} = e.match(Ve), {
|
|
169
169
|
fn: t,
|
|
170
|
-
values:
|
|
171
|
-
} = n, a =
|
|
172
|
-
return
|
|
170
|
+
values: l
|
|
171
|
+
} = n, a = l.split(/,\s*/).map((r) => r.endsWith("%") && ["hsl", "hsla", "hsv", "hsva"].includes(t) ? parseFloat(r) / 100 : parseFloat(r));
|
|
172
|
+
return vn[t](...a);
|
|
173
173
|
} else if (typeof e == "string") {
|
|
174
174
|
let n = e.startsWith("#") ? e.slice(1) : e;
|
|
175
|
-
[3, 4].includes(n.length) ? n = n.split("").map((
|
|
175
|
+
[3, 4].includes(n.length) ? n = n.split("").map((l) => l + l).join("") : [6, 8].includes(n.length) || E(`'${e}' is not a valid hex(a) color`);
|
|
176
176
|
const t = parseInt(n, 16);
|
|
177
|
-
return (isNaN(t) || t < 0 || t > 4294967295) &&
|
|
177
|
+
return (isNaN(t) || t < 0 || t > 4294967295) && E(`'${e}' is not a valid hex(a) color`), hn(n);
|
|
178
178
|
} else if (typeof e == "object") {
|
|
179
|
-
if (
|
|
179
|
+
if (te(e, ["r", "g", "b"]))
|
|
180
180
|
return e;
|
|
181
|
-
if (
|
|
182
|
-
return
|
|
183
|
-
if (
|
|
184
|
-
return
|
|
181
|
+
if (te(e, ["h", "s", "l"]))
|
|
182
|
+
return W(Ne(e));
|
|
183
|
+
if (te(e, ["h", "s", "v"]))
|
|
184
|
+
return W(e);
|
|
185
185
|
}
|
|
186
186
|
throw new TypeError(`Invalid color: ${e == null ? e : String(e) || e.constructor.name}
|
|
187
187
|
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function W(e) {
|
|
190
190
|
const {
|
|
191
191
|
h: n,
|
|
192
192
|
s: t,
|
|
193
|
-
v:
|
|
193
|
+
v: l,
|
|
194
194
|
a
|
|
195
|
-
} = e, r = (
|
|
196
|
-
const
|
|
197
|
-
return
|
|
198
|
-
},
|
|
195
|
+
} = e, r = (g) => {
|
|
196
|
+
const c = (g + n / 60) % 6;
|
|
197
|
+
return l - l * t * Math.max(Math.min(c, 4 - c, 1), 0);
|
|
198
|
+
}, i = [r(5), r(3), r(1)].map((g) => Math.round(g * 255));
|
|
199
199
|
return {
|
|
200
|
-
r:
|
|
201
|
-
g:
|
|
202
|
-
b:
|
|
200
|
+
r: i[0],
|
|
201
|
+
g: i[1],
|
|
202
|
+
b: i[2],
|
|
203
203
|
a
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
return
|
|
206
|
+
function _e(e) {
|
|
207
|
+
return W(Ne(e));
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Ne(e) {
|
|
210
210
|
const {
|
|
211
211
|
h: n,
|
|
212
212
|
s: t,
|
|
213
|
-
l
|
|
213
|
+
l,
|
|
214
214
|
a
|
|
215
|
-
} = e, r =
|
|
215
|
+
} = e, r = l + t * Math.min(l, 1 - l), i = r === 0 ? 0 : 2 - 2 * l / r;
|
|
216
216
|
return {
|
|
217
217
|
h: n,
|
|
218
|
-
s:
|
|
218
|
+
s: i,
|
|
219
219
|
v: r,
|
|
220
220
|
a
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
e =
|
|
225
|
-
let [n, t,
|
|
223
|
+
function hn(e) {
|
|
224
|
+
e = kn(e);
|
|
225
|
+
let [n, t, l, a] = an(e, 2).map((r) => parseInt(r, 16));
|
|
226
226
|
return a = a === void 0 ? a : a / 255, {
|
|
227
227
|
r: n,
|
|
228
228
|
g: t,
|
|
229
|
-
b:
|
|
229
|
+
b: l,
|
|
230
230
|
a
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
return e.startsWith("#") && (e = e.slice(1)), e = e.replace(/([^0-9a-f])/gi, "F"), (e.length === 3 || e.length === 4) && (e = e.split("").map((n) => n + n).join("")), e.length !== 6 && (e =
|
|
233
|
+
function kn(e) {
|
|
234
|
+
return e.startsWith("#") && (e = e.slice(1)), e = e.replace(/([^0-9a-f])/gi, "F"), (e.length === 3 || e.length === 4) && (e = e.split("").map((n) => n + n).join("")), e.length !== 6 && (e = de(de(e, 6), 8, "F")), e;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
const n = Math.abs(
|
|
238
|
-
return Math.abs(
|
|
236
|
+
function Cn(e) {
|
|
237
|
+
const n = Math.abs(Ce(R(0), R(e)));
|
|
238
|
+
return Math.abs(Ce(R(16777215), R(e))) > Math.min(n, 50) ? "#fff" : "#000";
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
const t =
|
|
240
|
+
function Y(e, n) {
|
|
241
|
+
const t = Xe();
|
|
242
242
|
if (!t)
|
|
243
243
|
throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);
|
|
244
244
|
return t;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Vn() {
|
|
247
247
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "composables";
|
|
248
|
-
const n =
|
|
249
|
-
return
|
|
248
|
+
const n = Y(e).type;
|
|
249
|
+
return H((n == null ? void 0 : n.aliasName) || (n == null ? void 0 : n.name));
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
251
|
+
function _n(e) {
|
|
252
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Y("injectSelf");
|
|
253
253
|
const {
|
|
254
254
|
provides: t
|
|
255
255
|
} = n;
|
|
256
256
|
if (t && e in t)
|
|
257
257
|
return t[e];
|
|
258
258
|
}
|
|
259
|
-
const
|
|
260
|
-
function
|
|
261
|
-
const e =
|
|
259
|
+
const se = Symbol.for("vuetify:defaults");
|
|
260
|
+
function Re() {
|
|
261
|
+
const e = re(se);
|
|
262
262
|
if (!e) throw new Error("[Vuetify] Could not find defaults instance");
|
|
263
263
|
return e;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
var t,
|
|
267
|
-
return typeof ((t = e.props) == null ? void 0 : t[n]) < "u" || typeof ((
|
|
265
|
+
function pn(e, n) {
|
|
266
|
+
var t, l;
|
|
267
|
+
return typeof ((t = e.props) == null ? void 0 : t[n]) < "u" || typeof ((l = e.props) == null ? void 0 : l[H(n)]) < "u";
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
271
|
-
const
|
|
272
|
-
if (n = n ??
|
|
269
|
+
function xn() {
|
|
270
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Re();
|
|
271
|
+
const l = Y("useDefaults");
|
|
272
|
+
if (n = n ?? l.type.name ?? l.type.__name, !n)
|
|
273
273
|
throw new Error("[Vuetify] Could not determine component name");
|
|
274
|
-
const a =
|
|
275
|
-
var
|
|
276
|
-
return (
|
|
274
|
+
const a = _(() => {
|
|
275
|
+
var c;
|
|
276
|
+
return (c = t.value) == null ? void 0 : c[e._as ?? n];
|
|
277
277
|
}), r = new Proxy(e, {
|
|
278
|
-
get(
|
|
279
|
-
var
|
|
280
|
-
const
|
|
281
|
-
return
|
|
278
|
+
get(c, o) {
|
|
279
|
+
var y, S, w, V, $, D, Z;
|
|
280
|
+
const f = Reflect.get(c, o);
|
|
281
|
+
return o === "class" || o === "style" ? [(y = a.value) == null ? void 0 : y[o], f].filter((d) => d != null) : typeof o == "string" && !pn(l.vnode, o) ? ((S = a.value) == null ? void 0 : S[o]) !== void 0 ? (w = a.value) == null ? void 0 : w[o] : (($ = (V = t.value) == null ? void 0 : V.global) == null ? void 0 : $[o]) !== void 0 ? (Z = (D = t.value) == null ? void 0 : D.global) == null ? void 0 : Z[o] : f : f;
|
|
282
282
|
}
|
|
283
|
-
}),
|
|
284
|
-
|
|
283
|
+
}), i = Ye();
|
|
284
|
+
Be(() => {
|
|
285
285
|
if (a.value) {
|
|
286
|
-
const
|
|
287
|
-
let [
|
|
288
|
-
return
|
|
286
|
+
const c = Object.entries(a.value).filter((o) => {
|
|
287
|
+
let [f] = o;
|
|
288
|
+
return f.startsWith(f[0].toUpperCase());
|
|
289
289
|
});
|
|
290
|
-
|
|
290
|
+
i.value = c.length ? Object.fromEntries(c) : void 0;
|
|
291
291
|
} else
|
|
292
|
-
|
|
292
|
+
i.value = void 0;
|
|
293
293
|
});
|
|
294
|
-
function
|
|
295
|
-
const
|
|
296
|
-
|
|
294
|
+
function g() {
|
|
295
|
+
const c = _n(se, l);
|
|
296
|
+
$e(se, _(() => i.value ? ze((c == null ? void 0 : c.value) ?? {}, i.value) : c == null ? void 0 : c.value));
|
|
297
297
|
}
|
|
298
298
|
return {
|
|
299
299
|
props: r,
|
|
300
|
-
provideSubDefaults:
|
|
300
|
+
provideSubDefaults: g
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function ee(e) {
|
|
304
304
|
if (e._setup = e._setup ?? e.setup, !e.name)
|
|
305
|
-
return
|
|
305
|
+
return E("The component is missing an explicit name, unable to generate default prop value"), e;
|
|
306
306
|
if (e._setup) {
|
|
307
|
-
e.props =
|
|
307
|
+
e.props = L(e.props ?? {}, e.name)();
|
|
308
308
|
const n = Object.keys(e.props).filter((t) => t !== "class" && t !== "style");
|
|
309
|
-
e.filterProps = function(
|
|
310
|
-
return
|
|
311
|
-
}, e.props._as = String, e.setup = function(
|
|
312
|
-
const r =
|
|
313
|
-
if (!r.value) return e._setup(
|
|
309
|
+
e.filterProps = function(l) {
|
|
310
|
+
return sn(l, n);
|
|
311
|
+
}, e.props._as = String, e.setup = function(l, a) {
|
|
312
|
+
const r = Re();
|
|
313
|
+
if (!r.value) return e._setup(l, a);
|
|
314
314
|
const {
|
|
315
|
-
props:
|
|
316
|
-
provideSubDefaults:
|
|
317
|
-
} =
|
|
318
|
-
return
|
|
315
|
+
props: i,
|
|
316
|
+
provideSubDefaults: g
|
|
317
|
+
} = xn(l, l._as ?? e.name, r), c = e._setup(i, a);
|
|
318
|
+
return g(), c;
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
return e;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Ue() {
|
|
324
324
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
325
|
-
return (n) => (e ?
|
|
325
|
+
return (n) => (e ? ee : B)(n);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
const n =
|
|
327
|
+
function bn(e) {
|
|
328
|
+
const n = Y("useRender");
|
|
329
329
|
n.render = e;
|
|
330
330
|
}
|
|
331
|
-
const
|
|
331
|
+
const pe = Symbol.for("vuetify:theme"), Sn = L({
|
|
332
332
|
theme: String
|
|
333
333
|
}, "theme");
|
|
334
|
-
function
|
|
335
|
-
|
|
336
|
-
const n =
|
|
334
|
+
function wn(e) {
|
|
335
|
+
Y("provideTheme");
|
|
336
|
+
const n = re(pe, null);
|
|
337
337
|
if (!n) throw new Error("Could not find Vuetify theme injection");
|
|
338
|
-
const t =
|
|
338
|
+
const t = _(() => e.theme ?? n.name.value), l = _(() => n.themes.value[t.value]), a = _(() => n.isDisabled ? void 0 : `v-theme--${t.value}`), r = {
|
|
339
339
|
...n,
|
|
340
340
|
name: t,
|
|
341
|
-
current:
|
|
341
|
+
current: l,
|
|
342
342
|
themeClasses: a
|
|
343
343
|
};
|
|
344
|
-
return
|
|
344
|
+
return $e(pe, r), r;
|
|
345
345
|
}
|
|
346
|
-
const
|
|
346
|
+
const Bn = L({
|
|
347
347
|
tag: {
|
|
348
348
|
type: String,
|
|
349
349
|
default: "div"
|
|
350
350
|
}
|
|
351
351
|
}, "tag");
|
|
352
|
-
function
|
|
353
|
-
return
|
|
352
|
+
function $n(e) {
|
|
353
|
+
return He(() => {
|
|
354
354
|
const n = [], t = {};
|
|
355
355
|
if (e.value.background)
|
|
356
|
-
if (
|
|
357
|
-
if (t.backgroundColor = e.value.background, !e.value.text &&
|
|
358
|
-
const
|
|
359
|
-
if (
|
|
360
|
-
const a =
|
|
356
|
+
if (le(e.value.background)) {
|
|
357
|
+
if (t.backgroundColor = e.value.background, !e.value.text && yn(e.value.background)) {
|
|
358
|
+
const l = R(e.value.background);
|
|
359
|
+
if (l.a == null || l.a === 1) {
|
|
360
|
+
const a = Cn(l);
|
|
361
361
|
t.color = a, t.caretColor = a;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
} else
|
|
365
365
|
n.push(`bg-${e.value.background}`);
|
|
366
|
-
return e.value.text && (
|
|
366
|
+
return e.value.text && (le(e.value.text) ? (t.color = e.value.text, t.caretColor = e.value.text) : n.push(`text-${e.value.text}`)), {
|
|
367
367
|
colorClasses: n,
|
|
368
368
|
colorStyles: t
|
|
369
369
|
};
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
const t =
|
|
374
|
-
text:
|
|
372
|
+
function In(e, n) {
|
|
373
|
+
const t = _(() => ({
|
|
374
|
+
text: Ie(e) ? e.value : null
|
|
375
375
|
})), {
|
|
376
|
-
colorClasses:
|
|
376
|
+
colorClasses: l,
|
|
377
377
|
colorStyles: a
|
|
378
|
-
} =
|
|
378
|
+
} = $n(t);
|
|
379
379
|
return {
|
|
380
|
-
textColorClasses:
|
|
380
|
+
textColorClasses: l,
|
|
381
381
|
textColorStyles: a
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
const
|
|
384
|
+
const Ee = [String, Function, Object, Array], Mn = Symbol.for("vuetify:icons"), ne = L({
|
|
385
385
|
icon: {
|
|
386
|
-
type:
|
|
386
|
+
type: Ee
|
|
387
387
|
},
|
|
388
388
|
// Could not remove this and use makeTagProps, types complained because it is not required
|
|
389
389
|
tag: {
|
|
390
390
|
type: String,
|
|
391
391
|
required: !0
|
|
392
392
|
}
|
|
393
|
-
}, "icon"),
|
|
393
|
+
}, "icon"), xe = Ue()({
|
|
394
394
|
name: "VComponentIcon",
|
|
395
|
-
props:
|
|
395
|
+
props: ne(),
|
|
396
396
|
setup(e, n) {
|
|
397
397
|
let {
|
|
398
398
|
slots: t
|
|
399
399
|
} = n;
|
|
400
400
|
return () => {
|
|
401
|
-
const
|
|
401
|
+
const l = e.icon;
|
|
402
402
|
return C(e.tag, null, {
|
|
403
403
|
default: () => {
|
|
404
404
|
var a;
|
|
405
|
-
return [e.icon ? C(
|
|
405
|
+
return [e.icon ? C(l, null, null) : (a = t.default) == null ? void 0 : a.call(t)];
|
|
406
406
|
}
|
|
407
407
|
});
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
|
-
}),
|
|
410
|
+
}), Fn = ee({
|
|
411
411
|
name: "VSvgIcon",
|
|
412
412
|
inheritAttrs: !1,
|
|
413
|
-
props:
|
|
413
|
+
props: ne(),
|
|
414
414
|
setup(e, n) {
|
|
415
415
|
let {
|
|
416
416
|
attrs: t
|
|
417
417
|
} = n;
|
|
418
|
-
return () => C(e.tag,
|
|
418
|
+
return () => C(e.tag, Me(t, {
|
|
419
419
|
style: null
|
|
420
420
|
}), {
|
|
421
421
|
default: () => [C("svg", {
|
|
@@ -424,167 +424,325 @@ const $e = [String, Function, Object, Array], Sn = Symbol.for("vuetify:icons"),
|
|
|
424
424
|
viewBox: "0 0 24 24",
|
|
425
425
|
role: "img",
|
|
426
426
|
"aria-hidden": "true"
|
|
427
|
-
}, [Array.isArray(e.icon) ? e.icon.map((
|
|
428
|
-
d:
|
|
429
|
-
"fill-opacity":
|
|
427
|
+
}, [Array.isArray(e.icon) ? e.icon.map((l) => Array.isArray(l) ? C("path", {
|
|
428
|
+
d: l[0],
|
|
429
|
+
"fill-opacity": l[1]
|
|
430
430
|
}, null) : C("path", {
|
|
431
|
-
d:
|
|
431
|
+
d: l
|
|
432
432
|
}, null)) : C("path", {
|
|
433
433
|
d: e.icon
|
|
434
434
|
}, null)])]
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
|
-
|
|
438
|
+
ee({
|
|
439
439
|
name: "VLigatureIcon",
|
|
440
|
-
props:
|
|
440
|
+
props: ne(),
|
|
441
441
|
setup(e) {
|
|
442
442
|
return () => C(e.tag, null, {
|
|
443
443
|
default: () => [e.icon]
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
|
-
|
|
447
|
+
ee({
|
|
448
448
|
name: "VClassIcon",
|
|
449
|
-
props:
|
|
449
|
+
props: ne(),
|
|
450
450
|
setup(e) {
|
|
451
451
|
return () => C(e.tag, {
|
|
452
452
|
class: e.icon
|
|
453
453
|
}, null);
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
|
-
const
|
|
457
|
-
const n =
|
|
456
|
+
const Dn = (e) => {
|
|
457
|
+
const n = re(Mn);
|
|
458
458
|
if (!n) throw new Error("Missing Vuetify Icons provide!");
|
|
459
459
|
return {
|
|
460
|
-
iconData:
|
|
461
|
-
var
|
|
462
|
-
const
|
|
463
|
-
if (!
|
|
464
|
-
component:
|
|
460
|
+
iconData: _(() => {
|
|
461
|
+
var c;
|
|
462
|
+
const l = T(e);
|
|
463
|
+
if (!l) return {
|
|
464
|
+
component: xe
|
|
465
465
|
};
|
|
466
|
-
let a =
|
|
467
|
-
if (typeof a == "string" && (a = a.trim(), a.startsWith("$") && (a = (
|
|
466
|
+
let a = l;
|
|
467
|
+
if (typeof a == "string" && (a = a.trim(), a.startsWith("$") && (a = (c = n.aliases) == null ? void 0 : c[a.slice(1)])), a || E(`Could not find aliased icon "${l}"`), Array.isArray(a))
|
|
468
468
|
return {
|
|
469
|
-
component:
|
|
469
|
+
component: Fn,
|
|
470
470
|
icon: a
|
|
471
471
|
};
|
|
472
472
|
if (typeof a != "string")
|
|
473
473
|
return {
|
|
474
|
-
component:
|
|
474
|
+
component: xe,
|
|
475
475
|
icon: a
|
|
476
476
|
};
|
|
477
|
-
const r = Object.keys(n.sets).find((
|
|
477
|
+
const r = Object.keys(n.sets).find((o) => typeof a == "string" && a.startsWith(`${o}:`)), i = r ? a.slice(r.length + 1) : a;
|
|
478
478
|
return {
|
|
479
479
|
component: n.sets[r ?? n.defaultSet].component,
|
|
480
|
-
icon:
|
|
480
|
+
icon: i
|
|
481
481
|
};
|
|
482
482
|
})
|
|
483
483
|
};
|
|
484
|
-
},
|
|
484
|
+
}, An = ["x-small", "small", "default", "large", "x-large"], Tn = L({
|
|
485
485
|
size: {
|
|
486
486
|
type: [String, Number],
|
|
487
487
|
default: "default"
|
|
488
488
|
}
|
|
489
489
|
}, "size");
|
|
490
|
-
function
|
|
491
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
492
|
-
return
|
|
493
|
-
let t,
|
|
494
|
-
return
|
|
495
|
-
width:
|
|
496
|
-
height:
|
|
490
|
+
function Pn(e) {
|
|
491
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Vn();
|
|
492
|
+
return He(() => {
|
|
493
|
+
let t, l;
|
|
494
|
+
return rn(An, e.size) ? t = `${n}--size-${e.size}` : e.size && (l = {
|
|
495
|
+
width: U(e.size),
|
|
496
|
+
height: U(e.size)
|
|
497
497
|
}), {
|
|
498
498
|
sizeClasses: t,
|
|
499
|
-
sizeStyles:
|
|
499
|
+
sizeStyles: l
|
|
500
500
|
};
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
|
-
const
|
|
503
|
+
const Ln = L({
|
|
504
504
|
color: String,
|
|
505
505
|
disabled: Boolean,
|
|
506
506
|
start: Boolean,
|
|
507
507
|
end: Boolean,
|
|
508
|
-
icon:
|
|
509
|
-
...
|
|
510
|
-
...
|
|
511
|
-
...
|
|
508
|
+
icon: Ee,
|
|
509
|
+
...ln(),
|
|
510
|
+
...Tn(),
|
|
511
|
+
...Bn({
|
|
512
512
|
tag: "i"
|
|
513
513
|
}),
|
|
514
|
-
...
|
|
515
|
-
}, "VIcon"),
|
|
514
|
+
...Sn()
|
|
515
|
+
}, "VIcon"), zn = Ue()({
|
|
516
516
|
name: "VIcon",
|
|
517
|
-
props:
|
|
517
|
+
props: Ln(),
|
|
518
518
|
setup(e, n) {
|
|
519
519
|
let {
|
|
520
520
|
attrs: t,
|
|
521
|
-
slots:
|
|
521
|
+
slots: l
|
|
522
522
|
} = n;
|
|
523
|
-
const a =
|
|
523
|
+
const a = I(), {
|
|
524
524
|
themeClasses: r
|
|
525
|
-
} =
|
|
526
|
-
iconData:
|
|
527
|
-
} =
|
|
528
|
-
sizeClasses:
|
|
529
|
-
} =
|
|
530
|
-
textColorClasses:
|
|
531
|
-
textColorStyles:
|
|
532
|
-
} =
|
|
533
|
-
return
|
|
534
|
-
var
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
const
|
|
538
|
-
return C(
|
|
525
|
+
} = wn(e), {
|
|
526
|
+
iconData: i
|
|
527
|
+
} = Dn(_(() => a.value || e.icon)), {
|
|
528
|
+
sizeClasses: g
|
|
529
|
+
} = Pn(e), {
|
|
530
|
+
textColorClasses: c,
|
|
531
|
+
textColorStyles: o
|
|
532
|
+
} = In(Ze(e, "color"));
|
|
533
|
+
return bn(() => {
|
|
534
|
+
var S, w;
|
|
535
|
+
const f = (S = l.default) == null ? void 0 : S.call(l);
|
|
536
|
+
f && (a.value = (w = Oe(f).filter((V) => V.type === Ke && V.children && typeof V.children == "string")[0]) == null ? void 0 : w.children);
|
|
537
|
+
const y = !!(t.onClick || t.onClickOnce);
|
|
538
|
+
return C(i.value.component, {
|
|
539
539
|
tag: e.tag,
|
|
540
|
-
icon:
|
|
541
|
-
class: ["v-icon", "notranslate", r.value,
|
|
542
|
-
"v-icon--clickable":
|
|
540
|
+
icon: i.value.icon,
|
|
541
|
+
class: ["v-icon", "notranslate", r.value, g.value, c.value, {
|
|
542
|
+
"v-icon--clickable": y,
|
|
543
543
|
"v-icon--disabled": e.disabled,
|
|
544
544
|
"v-icon--start": e.start,
|
|
545
545
|
"v-icon--end": e.end
|
|
546
546
|
}, e.class],
|
|
547
|
-
style: [
|
|
548
|
-
fontSize:
|
|
549
|
-
height:
|
|
550
|
-
width:
|
|
551
|
-
},
|
|
552
|
-
role:
|
|
553
|
-
"aria-hidden": !
|
|
554
|
-
tabindex:
|
|
547
|
+
style: [g.value ? void 0 : {
|
|
548
|
+
fontSize: U(e.size),
|
|
549
|
+
height: U(e.size),
|
|
550
|
+
width: U(e.size)
|
|
551
|
+
}, o.value, e.style],
|
|
552
|
+
role: y ? "button" : void 0,
|
|
553
|
+
"aria-hidden": !y,
|
|
554
|
+
tabindex: y ? e.disabled ? -1 : 0 : void 0
|
|
555
555
|
}, {
|
|
556
|
-
default: () => [
|
|
556
|
+
default: () => [f]
|
|
557
557
|
});
|
|
558
558
|
}), {};
|
|
559
559
|
}
|
|
560
|
-
}),
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
560
|
+
}), On = /* @__PURE__ */ B({
|
|
561
|
+
__name: "entry",
|
|
562
|
+
props: {
|
|
563
|
+
minHeight: {}
|
|
564
|
+
},
|
|
565
|
+
setup(e) {
|
|
566
|
+
const { backgroundColor2: n, highlightColor: t } = ue(), l = I(!1), a = _(() => ({
|
|
567
|
+
background: l.value ? t.value : n.value,
|
|
568
|
+
minHeight: e.minHeight,
|
|
569
|
+
paddingRight: "4px",
|
|
570
|
+
marginBottom: "1px",
|
|
571
|
+
userSelect: "none"
|
|
572
|
+
})), r = (i) => {
|
|
573
|
+
Te.emit("propTreeMenu", {
|
|
574
|
+
x: i.clientX,
|
|
575
|
+
y: i.clientY
|
|
576
|
+
});
|
|
577
|
+
};
|
|
578
|
+
return (i, g) => {
|
|
579
|
+
const c = G("ripple");
|
|
580
|
+
return q((x(), j("div", {
|
|
581
|
+
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
582
|
+
style: Fe(a.value),
|
|
583
|
+
onContextmenu: Q(r, ["prevent"]),
|
|
584
|
+
onMouseover: g[0] || (g[0] = (o) => l.value = !0),
|
|
585
|
+
onMouseout: g[1] || (g[1] = (o) => l.value = !1)
|
|
586
|
+
}, [
|
|
587
|
+
Je(i.$slots, "default")
|
|
588
|
+
], 36)), [
|
|
589
|
+
[c]
|
|
590
|
+
]);
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
}), Hn = /* @__PURE__ */ B({
|
|
594
|
+
__name: "menu",
|
|
595
|
+
setup(e) {
|
|
596
|
+
const { t: n } = Ae(), t = I(0), l = I(0), a = _(() => [t.value, l.value]), r = (o) => {
|
|
597
|
+
const f = () => {
|
|
598
|
+
console.log("reset");
|
|
599
|
+
};
|
|
600
|
+
o.push({
|
|
601
|
+
title: n("x-prop-tree.reset"),
|
|
602
|
+
func: f
|
|
603
|
+
});
|
|
604
|
+
}, i = _(() => {
|
|
605
|
+
const o = [];
|
|
606
|
+
return r(o), o;
|
|
607
|
+
}), g = (o) => {
|
|
608
|
+
t.value = o.x, l.value = o.y;
|
|
609
|
+
}, { open: c } = en("propTreeMenu", g);
|
|
610
|
+
return (o, f) => {
|
|
611
|
+
const y = p("v-list-item-title"), S = p("v-list-item"), w = p("v-list"), V = p("v-menu");
|
|
612
|
+
return x(), M(V, {
|
|
613
|
+
modelValue: T(c),
|
|
614
|
+
"onUpdate:modelValue": f[0] || (f[0] = ($) => Ie(c) ? c.value = $ : null),
|
|
615
|
+
"location-strategy": "connected",
|
|
616
|
+
target: a.value,
|
|
617
|
+
scrim: "transparent"
|
|
618
|
+
}, {
|
|
619
|
+
default: P(() => [
|
|
620
|
+
C(w, null, {
|
|
621
|
+
default: P(() => [
|
|
622
|
+
(x(!0), j(ae, null, Qe(i.value, ($, D) => (x(), M(S, {
|
|
623
|
+
key: D,
|
|
624
|
+
link: "",
|
|
625
|
+
onClick: $.func
|
|
626
|
+
}, {
|
|
627
|
+
default: P(() => [
|
|
628
|
+
C(y, null, {
|
|
629
|
+
default: P(() => [
|
|
630
|
+
De(ie($.title), 1)
|
|
631
|
+
]),
|
|
632
|
+
_: 2
|
|
633
|
+
}, 1024)
|
|
634
|
+
]),
|
|
635
|
+
_: 2
|
|
636
|
+
}, 1032, ["onClick"]))), 128))
|
|
637
|
+
]),
|
|
638
|
+
_: 1
|
|
639
|
+
})
|
|
640
|
+
]),
|
|
641
|
+
_: 1
|
|
642
|
+
}, 8, ["modelValue", "target"]);
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
}), be = /* @__PURE__ */ B({
|
|
646
|
+
__name: "title",
|
|
647
|
+
props: {
|
|
648
|
+
title: {},
|
|
649
|
+
collapse: { type: Boolean },
|
|
650
|
+
hasCreate: { type: Boolean, default: !1 },
|
|
651
|
+
hasDelete: { type: Boolean, default: !1 },
|
|
652
|
+
index: { default: 0 }
|
|
653
|
+
},
|
|
654
|
+
emits: ["collapse", "create", "delete"],
|
|
655
|
+
setup(e, { emit: n }) {
|
|
656
|
+
const { backgroundColor2: t, highlightColor: l } = ue(), a = n, r = I(!1), i = _(() => ({
|
|
657
|
+
background: r.value ? l.value : t.value,
|
|
658
|
+
height: "36px",
|
|
659
|
+
marginBottom: "1px",
|
|
660
|
+
userSelect: "none"
|
|
661
|
+
})), g = () => {
|
|
662
|
+
a("collapse", !e.collapse);
|
|
663
|
+
}, c = (o) => {
|
|
664
|
+
Te.emit("propTreeMenu", {
|
|
665
|
+
x: o.clientX,
|
|
666
|
+
y: o.clientY
|
|
667
|
+
});
|
|
668
|
+
};
|
|
669
|
+
return (o, f) => {
|
|
670
|
+
const y = p("v-icon"), S = p("v-spacer"), w = G("ripple");
|
|
671
|
+
return q((x(), j("div", {
|
|
672
|
+
class: "d-flex align-center cursor-pointer",
|
|
673
|
+
style: Fe(i.value),
|
|
674
|
+
onClick: g,
|
|
675
|
+
onContextmenu: Q(c, ["prevent"]),
|
|
676
|
+
onMouseover: f[2] || (f[2] = (V) => r.value = !0),
|
|
677
|
+
onMouseout: f[3] || (f[3] = (V) => r.value = !1)
|
|
678
|
+
}, [
|
|
679
|
+
C(y, {
|
|
680
|
+
class: "mr-1",
|
|
681
|
+
icon: o.collapse ? T(tn) : T(nn)
|
|
682
|
+
}, null, 8, ["icon"]),
|
|
683
|
+
je("span", null, ie(o.title), 1),
|
|
684
|
+
C(S),
|
|
685
|
+
o.hasCreate ? (x(), M(y, {
|
|
686
|
+
key: 0,
|
|
687
|
+
class: "ml-3",
|
|
688
|
+
icon: T(Le),
|
|
689
|
+
onClick: f[0] || (f[0] = Q((V) => a("create"), ["stop"]))
|
|
690
|
+
}, null, 8, ["icon"])) : oe("", !0),
|
|
691
|
+
o.hasDelete ? (x(), M(y, {
|
|
692
|
+
key: 1,
|
|
693
|
+
class: "ml-3",
|
|
694
|
+
icon: T(Pe),
|
|
695
|
+
onClick: f[1] || (f[1] = Q((V) => a("delete", o.index), ["stop"]))
|
|
696
|
+
}, null, 8, ["icon"])) : oe("", !0)
|
|
697
|
+
], 36)), [
|
|
698
|
+
[w]
|
|
699
|
+
]);
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
}), Nn = /* @__PURE__ */ B({
|
|
703
|
+
__name: "colorPicker",
|
|
704
|
+
props: /* @__PURE__ */ N({
|
|
705
|
+
readonly: { type: Boolean, default: !1 }
|
|
706
|
+
}, {
|
|
707
|
+
modelValue: {},
|
|
708
|
+
modelModifiers: {}
|
|
709
|
+
}),
|
|
710
|
+
emits: ["update:modelValue"],
|
|
711
|
+
setup(e) {
|
|
712
|
+
const n = X(e, "modelValue"), t = _(() => e.readonly), l = I("hexa");
|
|
713
|
+
return (a, r) => {
|
|
714
|
+
const i = p("v-btn"), g = p("v-color-picker"), c = p("v-menu");
|
|
715
|
+
return x(), M(c, { "close-on-content-click": !1 }, {
|
|
716
|
+
activator: P(({ props: o }) => [
|
|
717
|
+
C(i, Me(o, {
|
|
718
|
+
density: "comfortable",
|
|
719
|
+
color: n.value,
|
|
720
|
+
block: "",
|
|
721
|
+
disabled: t.value
|
|
722
|
+
}), {
|
|
723
|
+
default: P(() => [
|
|
724
|
+
De(ie(n.value), 1)
|
|
725
|
+
]),
|
|
726
|
+
_: 2
|
|
727
|
+
}, 1040, ["color", "disabled"])
|
|
728
|
+
]),
|
|
729
|
+
default: P(() => [
|
|
730
|
+
C(g, {
|
|
731
|
+
modelValue: n.value,
|
|
732
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o),
|
|
733
|
+
mode: l.value,
|
|
734
|
+
"onUpdate:mode": r[1] || (r[1] = (o) => l.value = o),
|
|
735
|
+
"show-swatches": "",
|
|
736
|
+
"swatches-max-height": "150px"
|
|
737
|
+
}, null, 8, ["modelValue", "mode"])
|
|
738
|
+
]),
|
|
739
|
+
_: 1
|
|
740
|
+
});
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
}), Rn = /* @__PURE__ */ B({
|
|
744
|
+
__name: "numInput",
|
|
745
|
+
props: /* @__PURE__ */ N({
|
|
588
746
|
min: { default: () => -1 / 0 },
|
|
589
747
|
max: { default: () => 1 / 0 },
|
|
590
748
|
precision: { default: 4 },
|
|
@@ -596,12 +754,12 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
|
|
|
596
754
|
}),
|
|
597
755
|
emits: ["update:modelValue"],
|
|
598
756
|
setup(e) {
|
|
599
|
-
const n =
|
|
600
|
-
return (t,
|
|
601
|
-
const a = p("v-number-input");
|
|
602
|
-
return
|
|
757
|
+
const n = X(e, "modelValue");
|
|
758
|
+
return (t, l) => {
|
|
759
|
+
const a = p("v-number-input"), r = G("ripple");
|
|
760
|
+
return q((x(), M(a, {
|
|
603
761
|
modelValue: n.value,
|
|
604
|
-
"onUpdate:modelValue":
|
|
762
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => n.value = i),
|
|
605
763
|
density: "compact",
|
|
606
764
|
"control-variant": "stacked",
|
|
607
765
|
min: t.min,
|
|
@@ -611,12 +769,19 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
|
|
|
611
769
|
"hide-details": "",
|
|
612
770
|
"single-line": "",
|
|
613
771
|
readonly: t.readonly
|
|
614
|
-
}, null, 8, ["modelValue", "min", "max", "precision", "step", "readonly"])
|
|
772
|
+
}, null, 8, ["modelValue", "min", "max", "precision", "step", "readonly"])), [
|
|
773
|
+
[
|
|
774
|
+
r,
|
|
775
|
+
void 0,
|
|
776
|
+
void 0,
|
|
777
|
+
{ stop: !0 }
|
|
778
|
+
]
|
|
779
|
+
]);
|
|
615
780
|
};
|
|
616
781
|
}
|
|
617
|
-
}),
|
|
618
|
-
__name: "
|
|
619
|
-
props: /* @__PURE__ */
|
|
782
|
+
}), Un = /* @__PURE__ */ B({
|
|
783
|
+
__name: "select",
|
|
784
|
+
props: /* @__PURE__ */ N({
|
|
620
785
|
readonly: { type: Boolean, default: !1 },
|
|
621
786
|
items: {}
|
|
622
787
|
}, {
|
|
@@ -625,91 +790,85 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
|
|
|
625
790
|
}),
|
|
626
791
|
emits: ["update:modelValue"],
|
|
627
792
|
setup(e) {
|
|
628
|
-
const n =
|
|
629
|
-
return (t,
|
|
630
|
-
const a = p("v-select");
|
|
631
|
-
return
|
|
793
|
+
const n = X(e, "modelValue");
|
|
794
|
+
return (t, l) => {
|
|
795
|
+
const a = p("v-select"), r = G("ripple");
|
|
796
|
+
return q((x(), M(a, {
|
|
632
797
|
modelValue: n.value,
|
|
633
|
-
"onUpdate:modelValue":
|
|
798
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => n.value = i),
|
|
634
799
|
density: "compact",
|
|
635
800
|
items: t.items,
|
|
636
801
|
"hide-details": "",
|
|
637
802
|
"single-line": "",
|
|
638
803
|
readonly: t.readonly
|
|
639
|
-
}, null, 8, ["modelValue", "items", "readonly"])
|
|
804
|
+
}, null, 8, ["modelValue", "items", "readonly"])), [
|
|
805
|
+
[
|
|
806
|
+
r,
|
|
807
|
+
void 0,
|
|
808
|
+
void 0,
|
|
809
|
+
{ stop: !0 }
|
|
810
|
+
]
|
|
811
|
+
]);
|
|
640
812
|
};
|
|
641
813
|
}
|
|
642
|
-
}),
|
|
643
|
-
__name: "
|
|
644
|
-
props: /* @__PURE__ */
|
|
814
|
+
}), Se = /* @__PURE__ */ B({
|
|
815
|
+
__name: "strInput",
|
|
816
|
+
props: /* @__PURE__ */ N({
|
|
645
817
|
readonly: { type: Boolean, default: !1 },
|
|
646
818
|
hasDelete: { type: Boolean, default: !1 }
|
|
647
819
|
}, {
|
|
648
820
|
modelValue: {},
|
|
649
821
|
modelModifiers: {}
|
|
650
822
|
}),
|
|
651
|
-
emits: /* @__PURE__ */
|
|
823
|
+
emits: /* @__PURE__ */ N(["delete"], ["update:modelValue"]),
|
|
652
824
|
setup(e, { emit: n }) {
|
|
653
|
-
const t =
|
|
825
|
+
const t = X(e, "modelValue"), l = n;
|
|
654
826
|
return (a, r) => {
|
|
655
|
-
const
|
|
656
|
-
return
|
|
827
|
+
const i = p("v-text-field"), g = G("ripple");
|
|
828
|
+
return q((x(), M(i, {
|
|
657
829
|
modelValue: t.value,
|
|
658
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
830
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => t.value = c),
|
|
659
831
|
density: "compact",
|
|
660
|
-
"append-inner-icon": a.hasDelete ?
|
|
832
|
+
"append-inner-icon": a.hasDelete ? T(Pe) : "",
|
|
661
833
|
"hide-details": "",
|
|
662
834
|
"single-line": "",
|
|
663
835
|
readonly: a.readonly,
|
|
664
|
-
"onClick:appendInner": r[1] || (r[1] = (
|
|
665
|
-
}, null, 8, ["modelValue", "append-inner-icon", "readonly"])
|
|
836
|
+
"onClick:appendInner": r[1] || (r[1] = (c) => l("delete"))
|
|
837
|
+
}, null, 8, ["modelValue", "append-inner-icon", "readonly"])), [
|
|
838
|
+
[
|
|
839
|
+
g,
|
|
840
|
+
void 0,
|
|
841
|
+
void 0,
|
|
842
|
+
{ stop: !0 }
|
|
843
|
+
]
|
|
844
|
+
]);
|
|
666
845
|
};
|
|
667
846
|
}
|
|
668
|
-
}),
|
|
669
|
-
__name: "
|
|
670
|
-
props: {
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
class: "mr-1",
|
|
691
|
-
icon: a.collapse ? q(Ye) : q(Xe)
|
|
692
|
-
}, null, 8, ["icon"]),
|
|
693
|
-
Ue("span", null, Ge(a.title), 1),
|
|
694
|
-
C(y),
|
|
695
|
-
a.hasCreate ? (S(), B(u, {
|
|
696
|
-
key: 0,
|
|
697
|
-
class: "ml-3",
|
|
698
|
-
icon: "$plus",
|
|
699
|
-
onClick: r[0] || (r[0] = te((f) => t("create"), ["stop"]))
|
|
700
|
-
})) : se("", !0),
|
|
701
|
-
a.hasDelete ? (S(), B(u, {
|
|
702
|
-
key: 1,
|
|
703
|
-
class: "ml-3",
|
|
704
|
-
icon: "$sub",
|
|
705
|
-
onClick: r[1] || (r[1] = te((f) => t("delete", a.index), ["stop"]))
|
|
706
|
-
})) : se("", !0)
|
|
707
|
-
], 4)), [
|
|
708
|
-
[o]
|
|
709
|
-
]);
|
|
847
|
+
}), En = /* @__PURE__ */ B({
|
|
848
|
+
__name: "switch",
|
|
849
|
+
props: /* @__PURE__ */ N({
|
|
850
|
+
readonly: { type: Boolean, default: !1 }
|
|
851
|
+
}, {
|
|
852
|
+
modelValue: { type: Boolean },
|
|
853
|
+
modelModifiers: {}
|
|
854
|
+
}),
|
|
855
|
+
emits: ["update:modelValue"],
|
|
856
|
+
setup(e) {
|
|
857
|
+
const n = X(e, "modelValue");
|
|
858
|
+
return (t, l) => {
|
|
859
|
+
const a = p("v-switch");
|
|
860
|
+
return x(), M(a, {
|
|
861
|
+
modelValue: n.value,
|
|
862
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => n.value = r),
|
|
863
|
+
class: "ml-1",
|
|
864
|
+
density: "compact",
|
|
865
|
+
color: "primary",
|
|
866
|
+
"hide-details": "",
|
|
867
|
+
readonly: t.readonly
|
|
868
|
+
}, null, 8, ["modelValue", "readonly"]);
|
|
710
869
|
};
|
|
711
870
|
}
|
|
712
|
-
}),
|
|
871
|
+
}), Wn = /* @__PURE__ */ B({
|
|
713
872
|
__name: "index",
|
|
714
873
|
props: {
|
|
715
874
|
unique: {},
|
|
@@ -718,32 +877,32 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
|
|
|
718
877
|
},
|
|
719
878
|
emits: ["change"],
|
|
720
879
|
setup(e, { emit: n }) {
|
|
721
|
-
const { t } =
|
|
722
|
-
function
|
|
723
|
-
return
|
|
880
|
+
const { t } = Ae(), { backgroundColor1: l, backgroundColor2: a } = ue(), r = e, i = n, g = I("20px"), c = I("56px"), o = I("200px"), f = we({});
|
|
881
|
+
function y(d, s, u, m) {
|
|
882
|
+
return d !== "" && (d += "."), d += s.key, s.children ? s.array ? S(d, s, u, m) : w(d, s, u, m) : s.array ? V(d, s, u) : $(d, s, u);
|
|
724
883
|
}
|
|
725
|
-
function
|
|
726
|
-
|
|
727
|
-
const
|
|
728
|
-
title: t(
|
|
729
|
-
collapse:
|
|
730
|
-
onCollapse: (
|
|
731
|
-
|
|
884
|
+
function S(d, s, u, m) {
|
|
885
|
+
u[s.key] instanceof Array || (u[s.key] = [], i("change", d, u[s.key]));
|
|
886
|
+
const b = k(be, {
|
|
887
|
+
title: t(s.name),
|
|
888
|
+
collapse: (typeof m.collapse != "boolean" && (m.collapse = !0), m.collapse),
|
|
889
|
+
onCollapse: (h) => {
|
|
890
|
+
m.collapse = h;
|
|
732
891
|
},
|
|
733
892
|
onCreate: () => {
|
|
734
|
-
|
|
893
|
+
u[s.key].push({}), i("change", d, u[s.key]);
|
|
735
894
|
}
|
|
736
|
-
}),
|
|
895
|
+
}), v = k(
|
|
737
896
|
"div",
|
|
738
897
|
{
|
|
739
898
|
style: {
|
|
740
|
-
|
|
899
|
+
paddingLeft: g.value
|
|
741
900
|
}
|
|
742
901
|
},
|
|
743
902
|
(() => {
|
|
744
|
-
|
|
745
|
-
for (let
|
|
746
|
-
typeof
|
|
903
|
+
m[s.key] instanceof Array || (m[s.key] = []);
|
|
904
|
+
for (let h = 0; h < u[s.key].length; h++)
|
|
905
|
+
typeof m[s.key][h] != "object" && (m[s.key][h] = {
|
|
747
906
|
collapse: !0
|
|
748
907
|
});
|
|
749
908
|
return [];
|
|
@@ -753,91 +912,91 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
|
|
|
753
912
|
"div",
|
|
754
913
|
{
|
|
755
914
|
style: {
|
|
756
|
-
background:
|
|
915
|
+
background: a.value,
|
|
757
916
|
marginBottom: "1px"
|
|
758
917
|
}
|
|
759
918
|
},
|
|
760
919
|
(() => {
|
|
761
|
-
const
|
|
762
|
-
return
|
|
920
|
+
const h = [];
|
|
921
|
+
return h.push(b), m.collapse || h.push(v), h;
|
|
763
922
|
})()
|
|
764
923
|
);
|
|
765
924
|
}
|
|
766
|
-
function
|
|
767
|
-
const
|
|
768
|
-
title: t(
|
|
769
|
-
collapse: !!
|
|
770
|
-
onCollapse: (
|
|
771
|
-
|
|
925
|
+
function w(d, s, u, m) {
|
|
926
|
+
const b = k(be, {
|
|
927
|
+
title: t(s.name),
|
|
928
|
+
collapse: !!m.collapse,
|
|
929
|
+
onCollapse: (h) => {
|
|
930
|
+
m.collapse = h;
|
|
772
931
|
}
|
|
773
|
-
}),
|
|
932
|
+
}), v = k(
|
|
774
933
|
"div",
|
|
775
934
|
{
|
|
776
935
|
style: {
|
|
777
|
-
|
|
936
|
+
background: l.value,
|
|
937
|
+
paddingLeft: g.value
|
|
778
938
|
}
|
|
779
939
|
},
|
|
780
940
|
(() => {
|
|
781
|
-
var
|
|
782
|
-
const
|
|
783
|
-
return (
|
|
784
|
-
typeof
|
|
941
|
+
var z;
|
|
942
|
+
const h = [];
|
|
943
|
+
return (z = s.children) == null || z.forEach((F) => {
|
|
944
|
+
typeof m[F.key] != "object" && (m[F.key] = {
|
|
785
945
|
collapse: !0
|
|
786
946
|
});
|
|
787
|
-
const
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
947
|
+
const We = y(
|
|
948
|
+
d,
|
|
949
|
+
F,
|
|
950
|
+
(typeof u[s.key] != "object" && (u[s.key] = {}, i("change", d, u[s.key])), u[s.key]),
|
|
951
|
+
m[F.key]
|
|
792
952
|
);
|
|
793
|
-
|
|
794
|
-
}),
|
|
953
|
+
h.push(We);
|
|
954
|
+
}), h;
|
|
795
955
|
})()
|
|
796
956
|
);
|
|
797
957
|
return k(
|
|
798
958
|
"div",
|
|
799
959
|
{
|
|
800
960
|
style: {
|
|
801
|
-
background: s.value,
|
|
802
961
|
marginBottom: "1px"
|
|
803
962
|
}
|
|
804
963
|
},
|
|
805
964
|
(() => {
|
|
806
|
-
const
|
|
807
|
-
return
|
|
965
|
+
const h = [];
|
|
966
|
+
return h.push(b), m.collapse || h.push(v), h;
|
|
808
967
|
})()
|
|
809
968
|
);
|
|
810
969
|
}
|
|
811
|
-
function
|
|
812
|
-
|
|
813
|
-
let
|
|
814
|
-
return
|
|
815
|
-
const
|
|
816
|
-
for (let
|
|
817
|
-
const
|
|
970
|
+
function V(d, s, u) {
|
|
971
|
+
u[s.key] instanceof Array || (u[s.key] = A(s), i("change", d, u[s.key]));
|
|
972
|
+
let m = () => [];
|
|
973
|
+
return s.ui === "strInput" ? m = () => {
|
|
974
|
+
const b = [];
|
|
975
|
+
for (let h = 0; h < u[s.key].length; h++) {
|
|
976
|
+
const z = k(
|
|
818
977
|
"div",
|
|
819
978
|
{
|
|
820
979
|
class: "d-flex align-center justify-center",
|
|
821
980
|
style: {
|
|
822
|
-
height:
|
|
981
|
+
height: c.value
|
|
823
982
|
}
|
|
824
983
|
},
|
|
825
984
|
[
|
|
826
|
-
k(
|
|
827
|
-
modelValue:
|
|
828
|
-
"onUpdate:modelValue": (
|
|
829
|
-
|
|
985
|
+
k(Se, {
|
|
986
|
+
modelValue: u[s.key][h],
|
|
987
|
+
"onUpdate:modelValue": (F) => {
|
|
988
|
+
u[s.key][h] = F, i("change", d, u[s.key]);
|
|
830
989
|
},
|
|
831
990
|
hasDelete: !0,
|
|
832
991
|
onDelete: () => {
|
|
833
|
-
|
|
992
|
+
u[s.key].splice(h, 1), i("change", d, u[s.key]);
|
|
834
993
|
}
|
|
835
994
|
})
|
|
836
995
|
]
|
|
837
996
|
);
|
|
838
|
-
|
|
997
|
+
b.push(z);
|
|
839
998
|
}
|
|
840
|
-
const
|
|
999
|
+
const v = k(
|
|
841
1000
|
"div",
|
|
842
1001
|
{
|
|
843
1002
|
class: "d-flex align-center justify-center",
|
|
@@ -851,85 +1010,96 @@ const Tn = /* @__PURE__ */ Mn(Pn, [["render", Ln]]), zn = /* @__PURE__ */ M({
|
|
|
851
1010
|
border: "thin dashed #bdbdbd"
|
|
852
1011
|
},
|
|
853
1012
|
onClick: () => {
|
|
854
|
-
|
|
1013
|
+
u[s.key].push(""), i("change", d, u[s.key]);
|
|
855
1014
|
}
|
|
856
1015
|
},
|
|
857
|
-
[k(
|
|
1016
|
+
[k(zn, { icon: Le })]
|
|
858
1017
|
);
|
|
859
|
-
return
|
|
860
|
-
} : console.assert(!1, "invalid prop ui",
|
|
1018
|
+
return b.push(v), b;
|
|
1019
|
+
} : console.assert(!1, "invalid prop ui", s.ui), D(t(s.name), m());
|
|
861
1020
|
}
|
|
862
|
-
function
|
|
863
|
-
let
|
|
864
|
-
return
|
|
865
|
-
modelValue:
|
|
866
|
-
"onUpdate:modelValue": (
|
|
867
|
-
|
|
1021
|
+
function $(d, s, u) {
|
|
1022
|
+
let m = () => [];
|
|
1023
|
+
return s.ui === "void" ? u[s.key] === void 0 && (console.assert(s.default !== void 0), u[s.key] = A(s), i("change", d, u[s.key])) : s.ui === "strInput" ? m = () => [k(Se, {
|
|
1024
|
+
modelValue: s.static ? s.value : (typeof u[s.key] != "string" && (u[s.key] = A(s), i("change", d, u[s.key])), u[s.key]),
|
|
1025
|
+
"onUpdate:modelValue": (v) => {
|
|
1026
|
+
s.static || v !== u[s.key] && (u[s.key] = v, i("change", d, v));
|
|
1027
|
+
},
|
|
1028
|
+
readonly: s.static || s.readonly
|
|
1029
|
+
})] : s.ui === "numInput" ? m = () => [k(Rn, {
|
|
1030
|
+
modelValue: (typeof u[s.key] != "number" && (u[s.key] = A(s), i("change", d, u[s.key])), u[s.key]),
|
|
1031
|
+
"onUpdate:modelValue": (v) => {
|
|
1032
|
+
v !== u[s.key] && (u[s.key] = v, i("change", d, v));
|
|
868
1033
|
},
|
|
869
|
-
readonly:
|
|
870
|
-
})] :
|
|
871
|
-
modelValue: (typeof
|
|
872
|
-
"onUpdate:modelValue": (
|
|
873
|
-
|
|
1034
|
+
readonly: s.readonly
|
|
1035
|
+
})] : s.ui === "switch" ? m = () => [k(En, {
|
|
1036
|
+
modelValue: (typeof u[s.key] != "boolean" && (u[s.key] = A(s), i("change", d, u[s.key])), u[s.key]),
|
|
1037
|
+
"onUpdate:modelValue": (v) => {
|
|
1038
|
+
v !== u[s.key] && (u[s.key] = v, i("change", d, v));
|
|
874
1039
|
},
|
|
875
|
-
readonly:
|
|
876
|
-
})] :
|
|
877
|
-
modelValue: (typeof
|
|
878
|
-
"onUpdate:modelValue": (
|
|
879
|
-
|
|
1040
|
+
readonly: s.readonly
|
|
1041
|
+
})] : s.ui === "select" ? m = () => [k(Un, {
|
|
1042
|
+
modelValue: (typeof u[s.key] != "string" && (u[s.key] = A(s), i("change", d, u[s.key])), u[s.key]),
|
|
1043
|
+
"onUpdate:modelValue": (v) => {
|
|
1044
|
+
v !== u[s.key] && (u[s.key] = v, i("change", d, v));
|
|
880
1045
|
},
|
|
881
1046
|
items: (() => {
|
|
882
|
-
var
|
|
883
|
-
const
|
|
884
|
-
return (
|
|
885
|
-
|
|
886
|
-
title: t(
|
|
887
|
-
value:
|
|
1047
|
+
var h;
|
|
1048
|
+
const v = [];
|
|
1049
|
+
return (h = s.items) == null || h.forEach(({ title: z, value: F }) => {
|
|
1050
|
+
v.push({
|
|
1051
|
+
title: t(z),
|
|
1052
|
+
value: F
|
|
888
1053
|
});
|
|
889
|
-
}),
|
|
1054
|
+
}), v;
|
|
890
1055
|
})(),
|
|
891
|
-
readonly:
|
|
892
|
-
})] :
|
|
1056
|
+
readonly: s.readonly
|
|
1057
|
+
})] : s.ui === "colorPicker" ? m = () => [k(Nn, {
|
|
1058
|
+
modelValue: (typeof u[s.key] != "string" && (u[s.key] = A(s), i("change", d, u[s.key])), u[s.key]),
|
|
1059
|
+
"onUpdate:modelValue": (v) => {
|
|
1060
|
+
v !== u[s.key] && (u[s.key] = v, i("change", d, v));
|
|
1061
|
+
},
|
|
1062
|
+
readonly: s.readonly
|
|
1063
|
+
})] : console.assert(!1, "invalid prop ui", s.ui), D(t(s.name), m());
|
|
893
1064
|
}
|
|
894
|
-
function
|
|
1065
|
+
function D(d, s) {
|
|
895
1066
|
return k(
|
|
896
|
-
|
|
1067
|
+
On,
|
|
897
1068
|
{
|
|
898
|
-
|
|
899
|
-
style: {
|
|
900
|
-
minHeight: y.value,
|
|
901
|
-
marginRight: o.value
|
|
902
|
-
}
|
|
1069
|
+
minHeight: c.value
|
|
903
1070
|
},
|
|
904
|
-
[
|
|
905
|
-
k("span", {
|
|
906
|
-
k("div", { style: { width:
|
|
1071
|
+
() => [
|
|
1072
|
+
k("span", { class: "ml-1", innerHTML: d }),
|
|
1073
|
+
k("div", { style: { width: o.value } }, s)
|
|
907
1074
|
]
|
|
908
1075
|
);
|
|
909
1076
|
}
|
|
910
|
-
const
|
|
1077
|
+
const Z = () => k(
|
|
911
1078
|
"div",
|
|
912
1079
|
{
|
|
913
1080
|
class: "text-body-2"
|
|
914
1081
|
},
|
|
915
1082
|
(() => {
|
|
916
|
-
const
|
|
917
|
-
if (
|
|
918
|
-
|
|
919
|
-
const
|
|
920
|
-
|
|
921
|
-
const
|
|
922
|
-
|
|
1083
|
+
const d = [];
|
|
1084
|
+
if (r.unique && r.config && r.object) {
|
|
1085
|
+
f[r.unique] || (f[r.unique] = {});
|
|
1086
|
+
const s = f[r.unique];
|
|
1087
|
+
r.config.forEach((u) => {
|
|
1088
|
+
const m = y("", u, r.object, s);
|
|
1089
|
+
d.push(m);
|
|
923
1090
|
});
|
|
924
1091
|
}
|
|
925
|
-
return
|
|
1092
|
+
return d;
|
|
926
1093
|
})()
|
|
927
1094
|
);
|
|
928
|
-
return (
|
|
1095
|
+
return (d, s) => (x(), j(ae, null, [
|
|
1096
|
+
C(Z),
|
|
1097
|
+
C(Hn)
|
|
1098
|
+
], 64));
|
|
929
1099
|
}
|
|
930
|
-
}),
|
|
931
|
-
e.component("XPropTree",
|
|
932
|
-
},
|
|
1100
|
+
}), Gn = (e) => {
|
|
1101
|
+
e.component("XPropTree", Wn);
|
|
1102
|
+
}, Kn = { install: Gn };
|
|
933
1103
|
export {
|
|
934
|
-
|
|
1104
|
+
Kn as default
|
|
935
1105
|
};
|