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