x-prop-tree 0.4.5 → 0.4.7
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/colorPicker/index.vue.d.ts +2 -0
- 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/index.vue.d.ts +1 -5
- 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 +623 -427
- 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 Fe, createVNode as C, mergeProps as Ie, unref as T, ref as F, toRef as Ze, Text as Ke, resolveDirective as G, withDirectives as q, openBlock as x, createElementBlock as j, normalizeStyle as Me, withModifiers as Q, renderSlot as Je, resolveComponent as p, createBlock as I, 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
|
|
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(
|
|
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
|
|
81
|
+
return H.cache.set(e, n), n;
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
function
|
|
85
|
-
const n =
|
|
86
|
-
return
|
|
87
|
-
for (const
|
|
88
|
-
n[
|
|
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 y = (
|
|
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 y = (
|
|
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,
|
|
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,
|
|
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:
|
|
219
|
-
v:
|
|
218
|
+
s: i,
|
|
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 (
|
|
277
|
-
}),
|
|
278
|
-
get(
|
|
279
|
-
var y,
|
|
280
|
-
const
|
|
281
|
-
return
|
|
274
|
+
const a = _(() => {
|
|
275
|
+
var c;
|
|
276
|
+
return (c = t.value) == null ? void 0 : c[e._as ?? n];
|
|
277
|
+
}), r = new Proxy(e, {
|
|
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
294
|
function g() {
|
|
295
|
-
const
|
|
296
|
-
|
|
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
|
-
props:
|
|
299
|
+
props: r,
|
|
300
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
|
|
313
|
-
if (!
|
|
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:
|
|
315
|
+
props: i,
|
|
316
316
|
provideSubDefaults: g
|
|
317
|
-
} =
|
|
318
|
-
return 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 Fn(e, n) {
|
|
373
|
+
const t = _(() => ({
|
|
374
|
+
text: Fe(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], In = 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
|
+
}), Mn = 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, Ie(t, {
|
|
419
419
|
style: null
|
|
420
420
|
}), {
|
|
421
421
|
default: () => [C("svg", {
|
|
@@ -424,142 +424,325 @@ const Be = [String, Function, Object, Array], _n = 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(In);
|
|
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: Mn,
|
|
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
|
|
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
|
-
component: n.sets[
|
|
480
|
-
icon:
|
|
479
|
+
component: n.sets[r ?? n.defaultSet].component,
|
|
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 =
|
|
524
|
-
themeClasses:
|
|
525
|
-
} =
|
|
526
|
-
iconData:
|
|
527
|
-
} =
|
|
523
|
+
const a = F(), {
|
|
524
|
+
themeClasses: r
|
|
525
|
+
} = wn(e), {
|
|
526
|
+
iconData: i
|
|
527
|
+
} = Dn(_(() => a.value || e.icon)), {
|
|
528
528
|
sizeClasses: g
|
|
529
|
-
} =
|
|
530
|
-
textColorClasses:
|
|
531
|
-
textColorStyles:
|
|
532
|
-
} =
|
|
533
|
-
return
|
|
534
|
-
var
|
|
535
|
-
const
|
|
536
|
-
|
|
529
|
+
} = Pn(e), {
|
|
530
|
+
textColorClasses: c,
|
|
531
|
+
textColorStyles: o
|
|
532
|
+
} = Fn(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
537
|
const y = !!(t.onClick || t.onClickOnce);
|
|
538
|
-
return C(
|
|
538
|
+
return C(i.value.component, {
|
|
539
539
|
tag: e.tag,
|
|
540
|
-
icon:
|
|
541
|
-
class: ["v-icon", "notranslate",
|
|
540
|
+
icon: i.value.icon,
|
|
541
|
+
class: ["v-icon", "notranslate", r.value, g.value, c.value, {
|
|
542
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
547
|
style: [g.value ? void 0 : {
|
|
548
|
-
fontSize:
|
|
549
|
-
height:
|
|
550
|
-
width:
|
|
551
|
-
},
|
|
548
|
+
fontSize: U(e.size),
|
|
549
|
+
height: U(e.size),
|
|
550
|
+
width: U(e.size)
|
|
551
|
+
}, o.value, e.style],
|
|
552
552
|
role: y ? "button" : void 0,
|
|
553
553
|
"aria-hidden": !y,
|
|
554
554
|
tabindex: y ? e.disabled ? -1 : 0 : void 0
|
|
555
555
|
}, {
|
|
556
|
-
default: () => [
|
|
556
|
+
default: () => [f]
|
|
557
557
|
});
|
|
558
558
|
}), {};
|
|
559
559
|
}
|
|
560
|
-
}),
|
|
561
|
-
__name: "
|
|
562
|
-
props:
|
|
560
|
+
}), On = /* @__PURE__ */ B({
|
|
561
|
+
__name: "entry",
|
|
562
|
+
props: {
|
|
563
|
+
minHeight: {}
|
|
564
|
+
},
|
|
565
|
+
setup(e) {
|
|
566
|
+
const { backgroundColor2: n, highlightColor: t } = ue(), l = F(!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: Me(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 = F(0), l = F(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(), I(V, {
|
|
613
|
+
modelValue: T(c),
|
|
614
|
+
"onUpdate:modelValue": f[0] || (f[0] = ($) => Fe(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(), I(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 = F(!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: Me(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(), I(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(), I(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 = F("hexa");
|
|
713
|
+
return (a, r) => {
|
|
714
|
+
const i = p("v-btn"), g = p("v-color-picker"), c = p("v-menu");
|
|
715
|
+
return x(), I(c, { "close-on-content-click": !1 }, {
|
|
716
|
+
activator: P(({ props: o }) => [
|
|
717
|
+
C(i, Ie(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({
|
|
563
746
|
min: { default: () => -1 / 0 },
|
|
564
747
|
max: { default: () => 1 / 0 },
|
|
565
748
|
precision: { default: 4 },
|
|
@@ -571,13 +754,14 @@ const $n = F({
|
|
|
571
754
|
}),
|
|
572
755
|
emits: ["update:modelValue"],
|
|
573
756
|
setup(e) {
|
|
574
|
-
const n =
|
|
575
|
-
return (t,
|
|
576
|
-
const a =
|
|
577
|
-
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(), I(a, {
|
|
578
761
|
modelValue: n.value,
|
|
579
|
-
"onUpdate:modelValue":
|
|
762
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => n.value = i),
|
|
580
763
|
density: "compact",
|
|
764
|
+
"control-variant": "stacked",
|
|
581
765
|
min: t.min,
|
|
582
766
|
max: t.max,
|
|
583
767
|
precision: t.precision,
|
|
@@ -585,12 +769,19 @@ const $n = F({
|
|
|
585
769
|
"hide-details": "",
|
|
586
770
|
"single-line": "",
|
|
587
771
|
readonly: t.readonly
|
|
588
|
-
}, 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
|
+
]);
|
|
589
780
|
};
|
|
590
781
|
}
|
|
591
|
-
}),
|
|
592
|
-
__name: "
|
|
593
|
-
props: /* @__PURE__ */
|
|
782
|
+
}), Un = /* @__PURE__ */ B({
|
|
783
|
+
__name: "select",
|
|
784
|
+
props: /* @__PURE__ */ N({
|
|
594
785
|
readonly: { type: Boolean, default: !1 },
|
|
595
786
|
items: {}
|
|
596
787
|
}, {
|
|
@@ -599,91 +790,85 @@ const $n = F({
|
|
|
599
790
|
}),
|
|
600
791
|
emits: ["update:modelValue"],
|
|
601
792
|
setup(e) {
|
|
602
|
-
const n =
|
|
603
|
-
return (t,
|
|
604
|
-
const a =
|
|
605
|
-
return
|
|
793
|
+
const n = X(e, "modelValue");
|
|
794
|
+
return (t, l) => {
|
|
795
|
+
const a = p("v-select"), r = G("ripple");
|
|
796
|
+
return q((x(), I(a, {
|
|
606
797
|
modelValue: n.value,
|
|
607
|
-
"onUpdate:modelValue":
|
|
798
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => n.value = i),
|
|
608
799
|
density: "compact",
|
|
609
800
|
items: t.items,
|
|
610
801
|
"hide-details": "",
|
|
611
802
|
"single-line": "",
|
|
612
803
|
readonly: t.readonly
|
|
613
|
-
}, 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
|
+
]);
|
|
614
812
|
};
|
|
615
813
|
}
|
|
616
|
-
}),
|
|
617
|
-
__name: "
|
|
618
|
-
props: /* @__PURE__ */
|
|
814
|
+
}), Se = /* @__PURE__ */ B({
|
|
815
|
+
__name: "strInput",
|
|
816
|
+
props: /* @__PURE__ */ N({
|
|
619
817
|
readonly: { type: Boolean, default: !1 },
|
|
620
818
|
hasDelete: { type: Boolean, default: !1 }
|
|
621
819
|
}, {
|
|
622
820
|
modelValue: {},
|
|
623
821
|
modelModifiers: {}
|
|
624
822
|
}),
|
|
625
|
-
emits: /* @__PURE__ */
|
|
823
|
+
emits: /* @__PURE__ */ N(["delete"], ["update:modelValue"]),
|
|
626
824
|
setup(e, { emit: n }) {
|
|
627
|
-
const t =
|
|
628
|
-
return (a,
|
|
629
|
-
const
|
|
630
|
-
return
|
|
825
|
+
const t = X(e, "modelValue"), l = n;
|
|
826
|
+
return (a, r) => {
|
|
827
|
+
const i = p("v-text-field"), g = G("ripple");
|
|
828
|
+
return q((x(), I(i, {
|
|
631
829
|
modelValue: t.value,
|
|
632
|
-
"onUpdate:modelValue":
|
|
830
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => t.value = c),
|
|
633
831
|
density: "compact",
|
|
634
|
-
"append-inner-icon": a.hasDelete ?
|
|
832
|
+
"append-inner-icon": a.hasDelete ? T(Pe) : "",
|
|
635
833
|
"hide-details": "",
|
|
636
834
|
"single-line": "",
|
|
637
835
|
readonly: a.readonly,
|
|
638
|
-
"onClick:appendInner":
|
|
639
|
-
}, 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
|
+
]);
|
|
640
845
|
};
|
|
641
846
|
}
|
|
642
|
-
}),
|
|
643
|
-
__name: "
|
|
644
|
-
props: {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
class: "mr-1",
|
|
665
|
-
icon: t.collapse ? q(Xe) : q(Ze)
|
|
666
|
-
}, null, 8, ["icon"]),
|
|
667
|
-
We("span", null, Ue(t.title), 1),
|
|
668
|
-
C(o),
|
|
669
|
-
t.hasCreate ? (w(), D(g, {
|
|
670
|
-
key: 0,
|
|
671
|
-
class: "ml-3",
|
|
672
|
-
icon: "$plus",
|
|
673
|
-
onClick: u[0] || (u[0] = ne((h) => s("create"), ["stop"]))
|
|
674
|
-
})) : te("", !0),
|
|
675
|
-
t.hasDelete ? (w(), D(g, {
|
|
676
|
-
key: 1,
|
|
677
|
-
class: "ml-3",
|
|
678
|
-
icon: "$sub",
|
|
679
|
-
onClick: u[1] || (u[1] = ne((h) => s("delete", t.index), ["stop"]))
|
|
680
|
-
})) : te("", !0)
|
|
681
|
-
], 4)), [
|
|
682
|
-
[f]
|
|
683
|
-
]);
|
|
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(), I(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"]);
|
|
684
869
|
};
|
|
685
870
|
}
|
|
686
|
-
}),
|
|
871
|
+
}), Wn = /* @__PURE__ */ B({
|
|
687
872
|
__name: "index",
|
|
688
873
|
props: {
|
|
689
874
|
unique: {},
|
|
@@ -692,32 +877,32 @@ const $n = F({
|
|
|
692
877
|
},
|
|
693
878
|
emits: ["change"],
|
|
694
879
|
setup(e, { emit: n }) {
|
|
695
|
-
const { t } =
|
|
696
|
-
function y(
|
|
697
|
-
return
|
|
880
|
+
const { t } = Ae(), { backgroundColor1: l, backgroundColor2: a } = ue(), r = e, i = n, g = F("20px"), c = F("56px"), o = F("200px"), f = we({});
|
|
881
|
+
function y(d, s, u, m) {
|
|
882
|
+
return s.keyFlag || (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);
|
|
698
883
|
}
|
|
699
|
-
function
|
|
700
|
-
|
|
701
|
-
const
|
|
702
|
-
title: t(
|
|
703
|
-
collapse:
|
|
704
|
-
onCollapse: (
|
|
705
|
-
m.collapse =
|
|
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;
|
|
706
891
|
},
|
|
707
892
|
onCreate: () => {
|
|
708
|
-
|
|
893
|
+
u[s.key].push({}), i("change", d, u[s.key]);
|
|
709
894
|
}
|
|
710
895
|
}), v = k(
|
|
711
896
|
"div",
|
|
712
897
|
{
|
|
713
898
|
style: {
|
|
714
|
-
|
|
899
|
+
paddingLeft: g.value
|
|
715
900
|
}
|
|
716
901
|
},
|
|
717
902
|
(() => {
|
|
718
|
-
m[
|
|
719
|
-
for (let
|
|
720
|
-
typeof m[
|
|
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] = {
|
|
721
906
|
collapse: !0
|
|
722
907
|
});
|
|
723
908
|
return [];
|
|
@@ -727,89 +912,89 @@ const $n = F({
|
|
|
727
912
|
"div",
|
|
728
913
|
{
|
|
729
914
|
style: {
|
|
730
|
-
background:
|
|
915
|
+
background: a.value,
|
|
731
916
|
marginBottom: "1px"
|
|
732
917
|
}
|
|
733
918
|
},
|
|
734
919
|
(() => {
|
|
735
|
-
const
|
|
736
|
-
return
|
|
920
|
+
const h = [];
|
|
921
|
+
return h.push(b), m.collapse || h.push(v), h;
|
|
737
922
|
})()
|
|
738
923
|
);
|
|
739
924
|
}
|
|
740
|
-
function
|
|
741
|
-
const
|
|
742
|
-
title: t(
|
|
925
|
+
function w(d, s, u, m) {
|
|
926
|
+
const b = k(be, {
|
|
927
|
+
title: t(s.name),
|
|
743
928
|
collapse: !!m.collapse,
|
|
744
|
-
onCollapse: (
|
|
745
|
-
m.collapse =
|
|
929
|
+
onCollapse: (h) => {
|
|
930
|
+
m.collapse = h;
|
|
746
931
|
}
|
|
747
932
|
}), v = k(
|
|
748
933
|
"div",
|
|
749
934
|
{
|
|
750
935
|
style: {
|
|
751
|
-
|
|
936
|
+
background: l.value,
|
|
937
|
+
paddingLeft: g.value
|
|
752
938
|
}
|
|
753
939
|
},
|
|
754
940
|
(() => {
|
|
755
|
-
var
|
|
756
|
-
const
|
|
757
|
-
return (
|
|
758
|
-
typeof m[
|
|
941
|
+
var z;
|
|
942
|
+
const h = [];
|
|
943
|
+
return (z = s.children) == null || z.forEach((M) => {
|
|
944
|
+
typeof m[M.key] != "object" && (m[M.key] = {
|
|
759
945
|
collapse: !0
|
|
760
946
|
});
|
|
761
|
-
const
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
m[
|
|
947
|
+
const We = y(
|
|
948
|
+
d,
|
|
949
|
+
M,
|
|
950
|
+
s.keyFlag ? u : (typeof u[s.key] != "object" && (u[s.key] = {}, i("change", d, u[s.key])), u[s.key]),
|
|
951
|
+
m[M.key]
|
|
766
952
|
);
|
|
767
|
-
|
|
768
|
-
}),
|
|
953
|
+
h.push(We);
|
|
954
|
+
}), h;
|
|
769
955
|
})()
|
|
770
956
|
);
|
|
771
957
|
return k(
|
|
772
958
|
"div",
|
|
773
959
|
{
|
|
774
960
|
style: {
|
|
775
|
-
background: s.value,
|
|
776
961
|
marginBottom: "1px"
|
|
777
962
|
}
|
|
778
963
|
},
|
|
779
964
|
(() => {
|
|
780
|
-
const
|
|
781
|
-
return
|
|
965
|
+
const h = [];
|
|
966
|
+
return h.push(b), m.collapse || h.push(v), h;
|
|
782
967
|
})()
|
|
783
968
|
);
|
|
784
969
|
}
|
|
785
|
-
function
|
|
786
|
-
|
|
970
|
+
function V(d, s, u) {
|
|
971
|
+
u[s.key] instanceof Array || (u[s.key] = A(s), i("change", d, u[s.key]));
|
|
787
972
|
let m = () => [];
|
|
788
|
-
return
|
|
789
|
-
const
|
|
790
|
-
for (let
|
|
791
|
-
const
|
|
973
|
+
return s.ui === "strInput" ? m = () => {
|
|
974
|
+
const b = [];
|
|
975
|
+
for (let h = 0; h < u[s.key].length; h++) {
|
|
976
|
+
const z = k(
|
|
792
977
|
"div",
|
|
793
978
|
{
|
|
794
979
|
class: "d-flex align-center justify-center",
|
|
795
980
|
style: {
|
|
796
|
-
height:
|
|
981
|
+
height: c.value
|
|
797
982
|
}
|
|
798
983
|
},
|
|
799
984
|
[
|
|
800
|
-
k(
|
|
801
|
-
modelValue:
|
|
802
|
-
"onUpdate:modelValue": (
|
|
803
|
-
|
|
985
|
+
k(Se, {
|
|
986
|
+
modelValue: u[s.key][h],
|
|
987
|
+
"onUpdate:modelValue": (M) => {
|
|
988
|
+
u[s.key][h] = M, i("change", d, u[s.key]);
|
|
804
989
|
},
|
|
805
990
|
hasDelete: !0,
|
|
806
991
|
onDelete: () => {
|
|
807
|
-
|
|
992
|
+
u[s.key].splice(h, 1), i("change", d, u[s.key]);
|
|
808
993
|
}
|
|
809
994
|
})
|
|
810
995
|
]
|
|
811
996
|
);
|
|
812
|
-
|
|
997
|
+
b.push(z);
|
|
813
998
|
}
|
|
814
999
|
const v = k(
|
|
815
1000
|
"div",
|
|
@@ -825,85 +1010,96 @@ const $n = F({
|
|
|
825
1010
|
border: "thin dashed #bdbdbd"
|
|
826
1011
|
},
|
|
827
1012
|
onClick: () => {
|
|
828
|
-
|
|
1013
|
+
u[s.key].push(""), i("change", d, u[s.key]);
|
|
829
1014
|
}
|
|
830
1015
|
},
|
|
831
|
-
[k(
|
|
1016
|
+
[k(zn, { icon: Le })]
|
|
832
1017
|
);
|
|
833
|
-
return
|
|
834
|
-
} : 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());
|
|
835
1020
|
}
|
|
836
|
-
function
|
|
1021
|
+
function $(d, s, u) {
|
|
837
1022
|
let m = () => [];
|
|
838
|
-
return
|
|
839
|
-
modelValue:
|
|
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]),
|
|
840
1031
|
"onUpdate:modelValue": (v) => {
|
|
841
|
-
|
|
1032
|
+
v !== u[s.key] && (u[s.key] = v, i("change", d, v));
|
|
842
1033
|
},
|
|
843
|
-
readonly:
|
|
844
|
-
})] :
|
|
845
|
-
modelValue: (typeof
|
|
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]),
|
|
846
1037
|
"onUpdate:modelValue": (v) => {
|
|
847
|
-
v !==
|
|
1038
|
+
v !== u[s.key] && (u[s.key] = v, i("change", d, v));
|
|
848
1039
|
},
|
|
849
|
-
readonly:
|
|
850
|
-
})] :
|
|
851
|
-
modelValue: (typeof
|
|
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]),
|
|
852
1043
|
"onUpdate:modelValue": (v) => {
|
|
853
|
-
v !==
|
|
1044
|
+
v !== u[s.key] && (u[s.key] = v, i("change", d, v));
|
|
854
1045
|
},
|
|
855
1046
|
items: (() => {
|
|
856
|
-
var
|
|
1047
|
+
var h;
|
|
857
1048
|
const v = [];
|
|
858
|
-
return (
|
|
1049
|
+
return (h = s.items) == null || h.forEach(({ title: z, value: M }) => {
|
|
859
1050
|
v.push({
|
|
860
|
-
title: t(
|
|
861
|
-
value:
|
|
1051
|
+
title: t(z),
|
|
1052
|
+
value: M
|
|
862
1053
|
});
|
|
863
1054
|
}), v;
|
|
864
1055
|
})(),
|
|
865
|
-
readonly:
|
|
866
|
-
})] :
|
|
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());
|
|
867
1064
|
}
|
|
868
|
-
function
|
|
1065
|
+
function D(d, s) {
|
|
869
1066
|
return k(
|
|
870
|
-
|
|
1067
|
+
On,
|
|
871
1068
|
{
|
|
872
|
-
|
|
873
|
-
style: {
|
|
874
|
-
minHeight: g.value,
|
|
875
|
-
marginRight: o.value
|
|
876
|
-
}
|
|
1069
|
+
minHeight: c.value
|
|
877
1070
|
},
|
|
878
|
-
[
|
|
879
|
-
k("span", {
|
|
880
|
-
k("div", { style: { width:
|
|
1071
|
+
() => [
|
|
1072
|
+
k("span", { class: "ml-1", innerHTML: d }),
|
|
1073
|
+
k("div", { style: { width: o.value } }, s)
|
|
881
1074
|
]
|
|
882
1075
|
);
|
|
883
1076
|
}
|
|
884
|
-
const
|
|
1077
|
+
const Z = () => k(
|
|
885
1078
|
"div",
|
|
886
1079
|
{
|
|
887
1080
|
class: "text-body-2"
|
|
888
1081
|
},
|
|
889
1082
|
(() => {
|
|
890
|
-
const
|
|
891
|
-
if (
|
|
892
|
-
|
|
893
|
-
const
|
|
894
|
-
|
|
895
|
-
const m = y("",
|
|
896
|
-
|
|
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);
|
|
897
1090
|
});
|
|
898
1091
|
}
|
|
899
|
-
return
|
|
1092
|
+
return d;
|
|
900
1093
|
})()
|
|
901
1094
|
);
|
|
902
|
-
return (
|
|
1095
|
+
return (d, s) => (x(), j(ae, null, [
|
|
1096
|
+
C(Z),
|
|
1097
|
+
C(Hn)
|
|
1098
|
+
], 64));
|
|
903
1099
|
}
|
|
904
|
-
}),
|
|
905
|
-
e.component("XPropTree",
|
|
906
|
-
},
|
|
1100
|
+
}), Gn = (e) => {
|
|
1101
|
+
e.component("XPropTree", Wn);
|
|
1102
|
+
}, Kn = { install: Gn };
|
|
907
1103
|
export {
|
|
908
|
-
|
|
1104
|
+
Kn as default
|
|
909
1105
|
};
|