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