x-prop-tree 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/propTree/index.vue.d.ts +0 -1
- package/dist/i18n/index.d.ts +5 -0
- package/dist/index.js +379 -379
- package/package.json +6 -8
package/dist/index.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
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 {
|
|
4
|
-
import {
|
|
2
|
+
import { Fragment as Ie, reactive as he, computed as C, watchEffect as ve, toRefs as Ae, warn as De, getCurrentInstance as Te, inject as J, shallowRef as ze, provide as ke, defineComponent as z, isRef as Re, createVNode as k, mergeProps as Me, unref as Pe, ref as B, toRef as Ne, Text as Oe, mergeModels as K, useModel as Ce, resolveComponent as W, openBlock as _, createElementBlock as xe, normalizeStyle as be, createBlock as G, resolveDirective as Ee, withDirectives as Le, createElementVNode as He, toDisplayString as We, withModifiers as Q, createCommentVNode as j, h as y } from "vue";
|
|
3
|
+
import { useI18n as Ge } from "vue-i18n";
|
|
4
|
+
import { useColor as Ue } from "x-essential-lib";
|
|
5
|
+
import { getPropDefault as E } from "x-runtime-lib";
|
|
5
6
|
function w(e, t) {
|
|
6
|
-
return (
|
|
7
|
-
const
|
|
7
|
+
return (n) => Object.keys(e).reduce((s, a) => {
|
|
8
|
+
const u = typeof e[a] == "object" && e[a] != null && !Array.isArray(e[a]) ? e[a] : {
|
|
8
9
|
type: e[a]
|
|
9
10
|
};
|
|
10
|
-
return
|
|
11
|
-
...
|
|
12
|
-
default:
|
|
13
|
-
} :
|
|
11
|
+
return n && a in n ? s[a] = {
|
|
12
|
+
...u,
|
|
13
|
+
default: n[a]
|
|
14
|
+
} : s[a] = u, t && !s[a].source && (s[a].source = t), s;
|
|
14
15
|
}, {});
|
|
15
16
|
}
|
|
16
|
-
const
|
|
17
|
+
const qe = w({
|
|
17
18
|
class: [String, Array, Object],
|
|
18
19
|
style: {
|
|
19
20
|
type: [String, Array, Object],
|
|
@@ -25,51 +26,51 @@ function A(e) {
|
|
|
25
26
|
if (!(e == null || e === ""))
|
|
26
27
|
return isNaN(+e) ? String(e) : isFinite(+e) ? `${Number(e)}${t}` : void 0;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function ee(e) {
|
|
29
30
|
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
return t.every((
|
|
32
|
+
function Y(e, t) {
|
|
33
|
+
return t.every((n) => e.hasOwnProperty(n));
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
const
|
|
35
|
+
function Ye(e, t) {
|
|
36
|
+
const n = {}, s = new Set(Object.keys(e));
|
|
36
37
|
for (const a of t)
|
|
37
|
-
|
|
38
|
-
return
|
|
38
|
+
s.has(a) && (n[a] = e[a]);
|
|
39
|
+
return n;
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
-
let
|
|
42
|
-
return e +
|
|
41
|
+
function te(e, t) {
|
|
42
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "0";
|
|
43
|
+
return e + n.repeat(Math.max(0, t - e.length));
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function Ke(e) {
|
|
45
46
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
46
|
-
const
|
|
47
|
-
let
|
|
48
|
-
for (;
|
|
49
|
-
|
|
50
|
-
return
|
|
47
|
+
const n = [];
|
|
48
|
+
let s = 0;
|
|
49
|
+
for (; s < e.length; )
|
|
50
|
+
n.push(e.substr(s, t)), s += t;
|
|
51
|
+
return n;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
54
|
-
const
|
|
53
|
+
function Se() {
|
|
54
|
+
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;
|
|
55
|
+
const s = {};
|
|
55
56
|
for (const a in e)
|
|
56
|
-
|
|
57
|
+
s[a] = e[a];
|
|
57
58
|
for (const a in t) {
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
60
|
-
|
|
59
|
+
const r = e[a], u = t[a];
|
|
60
|
+
if (ee(r) && ee(u)) {
|
|
61
|
+
s[a] = Se(r, u, n);
|
|
61
62
|
continue;
|
|
62
63
|
}
|
|
63
|
-
if (Array.isArray(
|
|
64
|
-
|
|
64
|
+
if (Array.isArray(r) && Array.isArray(u) && n) {
|
|
65
|
+
s[a] = n(r, u);
|
|
65
66
|
continue;
|
|
66
67
|
}
|
|
67
|
-
|
|
68
|
+
s[a] = u;
|
|
68
69
|
}
|
|
69
|
-
return
|
|
70
|
+
return s;
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
-
return e.map((t) => t.type ===
|
|
72
|
+
function Ve(e) {
|
|
73
|
+
return e.map((t) => t.type === Ie ? Ve(t.children) : t).flat();
|
|
73
74
|
}
|
|
74
75
|
function F() {
|
|
75
76
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
@@ -79,79 +80,79 @@ function F() {
|
|
|
79
80
|
return F.cache.set(e, t), t;
|
|
80
81
|
}
|
|
81
82
|
F.cache = /* @__PURE__ */ new Map();
|
|
82
|
-
function
|
|
83
|
-
const t =
|
|
84
|
-
return
|
|
85
|
-
for (const
|
|
86
|
-
t[
|
|
83
|
+
function we(e) {
|
|
84
|
+
const t = he({}), n = C(e);
|
|
85
|
+
return ve(() => {
|
|
86
|
+
for (const s in n.value)
|
|
87
|
+
t[s] = n.value[s];
|
|
87
88
|
}, {
|
|
88
89
|
flush: "sync"
|
|
89
|
-
}),
|
|
90
|
+
}), Ae(t);
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function Xe(e, t) {
|
|
92
93
|
return e.includes(t);
|
|
93
94
|
}
|
|
94
|
-
const
|
|
95
|
-
function
|
|
96
|
-
const
|
|
97
|
-
let o =
|
|
98
|
-
if (o <=
|
|
95
|
+
const p = 2.4, ne = 0.2126729, se = 0.7151522, ae = 0.072175, Ze = 0.55, Je = 0.58, Qe = 0.57, je = 0.62, L = 0.03, le = 1.45, et = 5e-4, tt = 1.25, nt = 1.25, re = 0.078, ie = 12.82051282051282, H = 0.06, ue = 1e-3;
|
|
96
|
+
function oe(e, t) {
|
|
97
|
+
const n = (e.r / 255) ** p, s = (e.g / 255) ** p, a = (e.b / 255) ** p, r = (t.r / 255) ** p, u = (t.g / 255) ** p, m = (t.b / 255) ** p;
|
|
98
|
+
let o = n * ne + s * se + a * ae, f = r * ne + u * se + m * ae;
|
|
99
|
+
if (o <= L && (o += (L - o) ** le), f <= L && (f += (L - f) ** le), Math.abs(f - o) < et)
|
|
99
100
|
return 0;
|
|
100
|
-
let
|
|
101
|
+
let h;
|
|
101
102
|
if (f > o) {
|
|
102
|
-
const
|
|
103
|
-
|
|
103
|
+
const g = (f ** Ze - o ** Je) * tt;
|
|
104
|
+
h = g < ue ? 0 : g < re ? g - g * ie * H : g - H;
|
|
104
105
|
} else {
|
|
105
|
-
const
|
|
106
|
-
|
|
106
|
+
const g = (f ** je - o ** Qe) * nt;
|
|
107
|
+
h = g > -ue ? 0 : g > -re ? g - g * ie * H : g + H;
|
|
107
108
|
}
|
|
108
|
-
return
|
|
109
|
+
return h * 100;
|
|
109
110
|
}
|
|
110
111
|
function D(e) {
|
|
111
|
-
|
|
112
|
+
De(`Vuetify: ${e}`);
|
|
112
113
|
}
|
|
113
|
-
function
|
|
114
|
+
function X(e) {
|
|
114
115
|
return !!e && /^(#|var\(--|(rgb|hsl)a?\()/.test(e);
|
|
115
116
|
}
|
|
116
|
-
function
|
|
117
|
-
return
|
|
117
|
+
function st(e) {
|
|
118
|
+
return X(e) && !/^((rgb|hsl)a?\()?var\(--/.test(e);
|
|
118
119
|
}
|
|
119
|
-
const
|
|
120
|
-
rgb: (e, t,
|
|
120
|
+
const ce = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, at = {
|
|
121
|
+
rgb: (e, t, n, s) => ({
|
|
121
122
|
r: e,
|
|
122
123
|
g: t,
|
|
123
|
-
b:
|
|
124
|
-
a:
|
|
124
|
+
b: n,
|
|
125
|
+
a: s
|
|
125
126
|
}),
|
|
126
|
-
rgba: (e, t,
|
|
127
|
+
rgba: (e, t, n, s) => ({
|
|
127
128
|
r: e,
|
|
128
129
|
g: t,
|
|
129
|
-
b:
|
|
130
|
-
a:
|
|
130
|
+
b: n,
|
|
131
|
+
a: s
|
|
131
132
|
}),
|
|
132
|
-
hsl: (e, t,
|
|
133
|
+
hsl: (e, t, n, s) => fe({
|
|
133
134
|
h: e,
|
|
134
135
|
s: t,
|
|
135
|
-
l:
|
|
136
|
-
a:
|
|
136
|
+
l: n,
|
|
137
|
+
a: s
|
|
137
138
|
}),
|
|
138
|
-
hsla: (e, t,
|
|
139
|
+
hsla: (e, t, n, s) => fe({
|
|
139
140
|
h: e,
|
|
140
141
|
s: t,
|
|
141
|
-
l:
|
|
142
|
-
a:
|
|
142
|
+
l: n,
|
|
143
|
+
a: s
|
|
143
144
|
}),
|
|
144
|
-
hsv: (e, t,
|
|
145
|
+
hsv: (e, t, n, s) => T({
|
|
145
146
|
h: e,
|
|
146
147
|
s: t,
|
|
147
|
-
v:
|
|
148
|
-
a:
|
|
148
|
+
v: n,
|
|
149
|
+
a: s
|
|
149
150
|
}),
|
|
150
|
-
hsva: (e, t,
|
|
151
|
+
hsva: (e, t, n, s) => T({
|
|
151
152
|
h: e,
|
|
152
153
|
s: t,
|
|
153
|
-
v:
|
|
154
|
-
a:
|
|
154
|
+
v: n,
|
|
155
|
+
a: s
|
|
155
156
|
})
|
|
156
157
|
};
|
|
157
158
|
function I(e) {
|
|
@@ -161,25 +162,25 @@ function I(e) {
|
|
|
161
162
|
g: (e & 65280) >> 8,
|
|
162
163
|
b: e & 255
|
|
163
164
|
};
|
|
164
|
-
if (typeof e == "string" &&
|
|
165
|
+
if (typeof e == "string" && ce.test(e)) {
|
|
165
166
|
const {
|
|
166
167
|
groups: t
|
|
167
|
-
} = e.match(
|
|
168
|
-
fn:
|
|
169
|
-
values:
|
|
170
|
-
} = t, a =
|
|
171
|
-
return
|
|
168
|
+
} = e.match(ce), {
|
|
169
|
+
fn: n,
|
|
170
|
+
values: s
|
|
171
|
+
} = t, a = s.split(/,\s*/).map((r) => r.endsWith("%") && ["hsl", "hsla", "hsv", "hsva"].includes(n) ? parseFloat(r) / 100 : parseFloat(r));
|
|
172
|
+
return at[n](...a);
|
|
172
173
|
} else if (typeof e == "string") {
|
|
173
174
|
let t = e.startsWith("#") ? e.slice(1) : e;
|
|
174
|
-
[3, 4].includes(t.length) ? t = t.split("").map((
|
|
175
|
-
const
|
|
176
|
-
return (isNaN(
|
|
175
|
+
[3, 4].includes(t.length) ? t = t.split("").map((s) => s + s).join("") : [6, 8].includes(t.length) || D(`'${e}' is not a valid hex(a) color`);
|
|
176
|
+
const n = parseInt(t, 16);
|
|
177
|
+
return (isNaN(n) || n < 0 || n > 4294967295) && D(`'${e}' is not a valid hex(a) color`), lt(t);
|
|
177
178
|
} else if (typeof e == "object") {
|
|
178
|
-
if (
|
|
179
|
+
if (Y(e, ["r", "g", "b"]))
|
|
179
180
|
return e;
|
|
180
|
-
if (
|
|
181
|
-
return T(
|
|
182
|
-
if (
|
|
181
|
+
if (Y(e, ["h", "s", "l"]))
|
|
182
|
+
return T(pe(e));
|
|
183
|
+
if (Y(e, ["h", "s", "v"]))
|
|
183
184
|
return T(e);
|
|
184
185
|
}
|
|
185
186
|
throw new TypeError(`Invalid color: ${e == null ? e : String(e) || e.constructor.name}
|
|
@@ -188,236 +189,236 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`);
|
|
|
188
189
|
function T(e) {
|
|
189
190
|
const {
|
|
190
191
|
h: t,
|
|
191
|
-
s,
|
|
192
|
-
v:
|
|
192
|
+
s: n,
|
|
193
|
+
v: s,
|
|
193
194
|
a
|
|
194
|
-
} = e,
|
|
195
|
+
} = e, r = (m) => {
|
|
195
196
|
const o = (m + t / 60) % 6;
|
|
196
|
-
return
|
|
197
|
-
},
|
|
197
|
+
return s - s * n * Math.max(Math.min(o, 4 - o, 1), 0);
|
|
198
|
+
}, u = [r(5), r(3), r(1)].map((m) => Math.round(m * 255));
|
|
198
199
|
return {
|
|
199
|
-
r:
|
|
200
|
-
g:
|
|
201
|
-
b:
|
|
200
|
+
r: u[0],
|
|
201
|
+
g: u[1],
|
|
202
|
+
b: u[2],
|
|
202
203
|
a
|
|
203
204
|
};
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
-
return T(
|
|
206
|
+
function fe(e) {
|
|
207
|
+
return T(pe(e));
|
|
207
208
|
}
|
|
208
|
-
function
|
|
209
|
+
function pe(e) {
|
|
209
210
|
const {
|
|
210
211
|
h: t,
|
|
211
|
-
s,
|
|
212
|
-
l:
|
|
212
|
+
s: n,
|
|
213
|
+
l: s,
|
|
213
214
|
a
|
|
214
|
-
} = e,
|
|
215
|
+
} = e, r = s + n * Math.min(s, 1 - s), u = r === 0 ? 0 : 2 - 2 * s / r;
|
|
215
216
|
return {
|
|
216
217
|
h: t,
|
|
217
|
-
s:
|
|
218
|
-
v:
|
|
218
|
+
s: u,
|
|
219
|
+
v: r,
|
|
219
220
|
a
|
|
220
221
|
};
|
|
221
222
|
}
|
|
222
|
-
function
|
|
223
|
-
e =
|
|
224
|
-
let [t,
|
|
223
|
+
function lt(e) {
|
|
224
|
+
e = rt(e);
|
|
225
|
+
let [t, n, s, a] = Ke(e, 2).map((r) => parseInt(r, 16));
|
|
225
226
|
return a = a === void 0 ? a : a / 255, {
|
|
226
227
|
r: t,
|
|
227
|
-
g:
|
|
228
|
-
b:
|
|
228
|
+
g: n,
|
|
229
|
+
b: s,
|
|
229
230
|
a
|
|
230
231
|
};
|
|
231
232
|
}
|
|
232
|
-
function
|
|
233
|
-
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 =
|
|
233
|
+
function rt(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 = te(te(e, 6), 8, "F")), e;
|
|
234
235
|
}
|
|
235
|
-
function
|
|
236
|
-
const t = Math.abs(
|
|
237
|
-
return Math.abs(
|
|
236
|
+
function it(e) {
|
|
237
|
+
const t = Math.abs(oe(I(0), I(e)));
|
|
238
|
+
return Math.abs(oe(I(16777215), I(e))) > Math.min(t, 50) ? "#fff" : "#000";
|
|
238
239
|
}
|
|
239
240
|
function R(e, t) {
|
|
240
|
-
const
|
|
241
|
-
if (!
|
|
241
|
+
const n = Te();
|
|
242
|
+
if (!n)
|
|
242
243
|
throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);
|
|
243
|
-
return
|
|
244
|
+
return n;
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function ut() {
|
|
246
247
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "composables";
|
|
247
248
|
const t = R(e).type;
|
|
248
249
|
return F((t == null ? void 0 : t.aliasName) || (t == null ? void 0 : t.name));
|
|
249
250
|
}
|
|
250
|
-
function
|
|
251
|
+
function ot(e) {
|
|
251
252
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : R("injectSelf");
|
|
252
253
|
const {
|
|
253
|
-
provides:
|
|
254
|
+
provides: n
|
|
254
255
|
} = t;
|
|
255
|
-
if (
|
|
256
|
-
return
|
|
256
|
+
if (n && e in n)
|
|
257
|
+
return n[e];
|
|
257
258
|
}
|
|
258
|
-
const
|
|
259
|
+
const Z = Symbol.for("vuetify:defaults");
|
|
259
260
|
function _e() {
|
|
260
|
-
const e = Z
|
|
261
|
+
const e = J(Z);
|
|
261
262
|
if (!e)
|
|
262
263
|
throw new Error("[Vuetify] Could not find defaults instance");
|
|
263
264
|
return e;
|
|
264
265
|
}
|
|
265
|
-
function
|
|
266
|
-
var
|
|
267
|
-
return typeof ((
|
|
266
|
+
function ct(e, t) {
|
|
267
|
+
var n, s;
|
|
268
|
+
return typeof ((n = e.props) == null ? void 0 : n[t]) < "u" || typeof ((s = e.props) == null ? void 0 : s[F(t)]) < "u";
|
|
268
269
|
}
|
|
269
|
-
function
|
|
270
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0,
|
|
271
|
-
const
|
|
272
|
-
if (t = t ??
|
|
270
|
+
function ft() {
|
|
271
|
+
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] : _e();
|
|
272
|
+
const s = R("useDefaults");
|
|
273
|
+
if (t = t ?? s.type.name ?? s.type.__name, !t)
|
|
273
274
|
throw new Error("[Vuetify] Could not determine component name");
|
|
274
275
|
const a = C(() => {
|
|
275
276
|
var o;
|
|
276
|
-
return (o =
|
|
277
|
-
}),
|
|
277
|
+
return (o = n.value) == null ? void 0 : o[e._as ?? t];
|
|
278
|
+
}), r = new Proxy(e, {
|
|
278
279
|
get(o, f) {
|
|
279
|
-
var
|
|
280
|
-
const
|
|
281
|
-
return f === "class" || f === "style" ? [(
|
|
280
|
+
var g, S, V, b, M, P, d;
|
|
281
|
+
const h = Reflect.get(o, f);
|
|
282
|
+
return f === "class" || f === "style" ? [(g = a.value) == null ? void 0 : g[f], h].filter((l) => l != null) : typeof f == "string" && !ct(s.vnode, f) ? ((S = a.value) == null ? void 0 : S[f]) !== void 0 ? (V = a.value) == null ? void 0 : V[f] : ((M = (b = n.value) == null ? void 0 : b.global) == null ? void 0 : M[f]) !== void 0 ? (d = (P = n.value) == null ? void 0 : P.global) == null ? void 0 : d[f] : h : h;
|
|
282
283
|
}
|
|
283
|
-
}),
|
|
284
|
-
|
|
284
|
+
}), u = ze();
|
|
285
|
+
ve(() => {
|
|
285
286
|
if (a.value) {
|
|
286
287
|
const o = Object.entries(a.value).filter((f) => {
|
|
287
|
-
let [
|
|
288
|
-
return
|
|
288
|
+
let [h] = f;
|
|
289
|
+
return h.startsWith(h[0].toUpperCase());
|
|
289
290
|
});
|
|
290
|
-
|
|
291
|
+
u.value = o.length ? Object.fromEntries(o) : void 0;
|
|
291
292
|
} else
|
|
292
|
-
|
|
293
|
+
u.value = void 0;
|
|
293
294
|
});
|
|
294
295
|
function m() {
|
|
295
|
-
const o =
|
|
296
|
-
|
|
296
|
+
const o = ot(Z, s);
|
|
297
|
+
ke(Z, C(() => u.value ? Se((o == null ? void 0 : o.value) ?? {}, u.value) : o == null ? void 0 : o.value));
|
|
297
298
|
}
|
|
298
299
|
return {
|
|
299
|
-
props:
|
|
300
|
+
props: r,
|
|
300
301
|
provideSubDefaults: m
|
|
301
302
|
};
|
|
302
303
|
}
|
|
303
|
-
function
|
|
304
|
+
function U(e) {
|
|
304
305
|
if (e._setup = e._setup ?? e.setup, !e.name)
|
|
305
306
|
return D("The component is missing an explicit name, unable to generate default prop value"), e;
|
|
306
307
|
if (e._setup) {
|
|
307
308
|
e.props = w(e.props ?? {}, e.name)();
|
|
308
|
-
const t = Object.keys(e.props).filter((
|
|
309
|
-
e.filterProps = function(
|
|
310
|
-
return
|
|
311
|
-
}, e.props._as = String, e.setup = function(
|
|
312
|
-
const
|
|
313
|
-
if (!
|
|
314
|
-
return e._setup(
|
|
309
|
+
const t = Object.keys(e.props).filter((n) => n !== "class" && n !== "style");
|
|
310
|
+
e.filterProps = function(s) {
|
|
311
|
+
return Ye(s, t);
|
|
312
|
+
}, e.props._as = String, e.setup = function(s, a) {
|
|
313
|
+
const r = _e();
|
|
314
|
+
if (!r.value)
|
|
315
|
+
return e._setup(s, a);
|
|
315
316
|
const {
|
|
316
|
-
props:
|
|
317
|
+
props: u,
|
|
317
318
|
provideSubDefaults: m
|
|
318
|
-
} =
|
|
319
|
+
} = ft(s, s._as ?? e.name, r), o = e._setup(u, a);
|
|
319
320
|
return m(), o;
|
|
320
321
|
};
|
|
321
322
|
}
|
|
322
323
|
return e;
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
+
function Fe() {
|
|
325
326
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
326
|
-
return (t) => (e ?
|
|
327
|
+
return (t) => (e ? U : z)(t);
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
+
function dt(e) {
|
|
329
330
|
const t = R("useRender");
|
|
330
331
|
t.render = e;
|
|
331
332
|
}
|
|
332
|
-
const
|
|
333
|
+
const de = Symbol.for("vuetify:theme"), mt = w({
|
|
333
334
|
theme: String
|
|
334
335
|
}, "theme");
|
|
335
|
-
function
|
|
336
|
+
function gt(e) {
|
|
336
337
|
R("provideTheme");
|
|
337
|
-
const t =
|
|
338
|
+
const t = J(de, null);
|
|
338
339
|
if (!t)
|
|
339
340
|
throw new Error("Could not find Vuetify theme injection");
|
|
340
|
-
const
|
|
341
|
+
const n = C(() => e.theme ?? t.name.value), s = C(() => t.themes.value[n.value]), a = C(() => t.isDisabled ? void 0 : `v-theme--${n.value}`), r = {
|
|
341
342
|
...t,
|
|
342
|
-
name:
|
|
343
|
-
current:
|
|
343
|
+
name: n,
|
|
344
|
+
current: s,
|
|
344
345
|
themeClasses: a
|
|
345
346
|
};
|
|
346
|
-
return
|
|
347
|
+
return ke(de, r), r;
|
|
347
348
|
}
|
|
348
|
-
const
|
|
349
|
+
const yt = w({
|
|
349
350
|
tag: {
|
|
350
351
|
type: String,
|
|
351
352
|
default: "div"
|
|
352
353
|
}
|
|
353
354
|
}, "tag");
|
|
354
|
-
function
|
|
355
|
-
return
|
|
356
|
-
const t = [],
|
|
355
|
+
function ht(e) {
|
|
356
|
+
return we(() => {
|
|
357
|
+
const t = [], n = {};
|
|
357
358
|
if (e.value.background)
|
|
358
|
-
if (
|
|
359
|
-
if (
|
|
360
|
-
const
|
|
361
|
-
if (
|
|
362
|
-
const a =
|
|
363
|
-
|
|
359
|
+
if (X(e.value.background)) {
|
|
360
|
+
if (n.backgroundColor = e.value.background, !e.value.text && st(e.value.background)) {
|
|
361
|
+
const s = I(e.value.background);
|
|
362
|
+
if (s.a == null || s.a === 1) {
|
|
363
|
+
const a = it(s);
|
|
364
|
+
n.color = a, n.caretColor = a;
|
|
364
365
|
}
|
|
365
366
|
}
|
|
366
367
|
} else
|
|
367
368
|
t.push(`bg-${e.value.background}`);
|
|
368
|
-
return e.value.text && (
|
|
369
|
+
return e.value.text && (X(e.value.text) ? (n.color = e.value.text, n.caretColor = e.value.text) : t.push(`text-${e.value.text}`)), {
|
|
369
370
|
colorClasses: t,
|
|
370
|
-
colorStyles:
|
|
371
|
+
colorStyles: n
|
|
371
372
|
};
|
|
372
373
|
});
|
|
373
374
|
}
|
|
374
|
-
function
|
|
375
|
-
const
|
|
376
|
-
text:
|
|
375
|
+
function vt(e, t) {
|
|
376
|
+
const n = C(() => ({
|
|
377
|
+
text: Re(e) ? e.value : null
|
|
377
378
|
})), {
|
|
378
|
-
colorClasses:
|
|
379
|
+
colorClasses: s,
|
|
379
380
|
colorStyles: a
|
|
380
|
-
} =
|
|
381
|
+
} = ht(n);
|
|
381
382
|
return {
|
|
382
|
-
textColorClasses:
|
|
383
|
+
textColorClasses: s,
|
|
383
384
|
textColorStyles: a
|
|
384
385
|
};
|
|
385
386
|
}
|
|
386
|
-
const
|
|
387
|
+
const $e = [String, Function, Object, Array], kt = Symbol.for("vuetify:icons"), q = w({
|
|
387
388
|
icon: {
|
|
388
|
-
type:
|
|
389
|
+
type: $e
|
|
389
390
|
},
|
|
390
391
|
// Could not remove this and use makeTagProps, types complained because it is not required
|
|
391
392
|
tag: {
|
|
392
393
|
type: String,
|
|
393
394
|
required: !0
|
|
394
395
|
}
|
|
395
|
-
}, "icon"),
|
|
396
|
+
}, "icon"), me = Fe()({
|
|
396
397
|
name: "VComponentIcon",
|
|
397
|
-
props:
|
|
398
|
+
props: q(),
|
|
398
399
|
setup(e, t) {
|
|
399
400
|
let {
|
|
400
|
-
slots:
|
|
401
|
+
slots: n
|
|
401
402
|
} = t;
|
|
402
403
|
return () => {
|
|
403
|
-
const
|
|
404
|
+
const s = e.icon;
|
|
404
405
|
return k(e.tag, null, {
|
|
405
406
|
default: () => {
|
|
406
407
|
var a;
|
|
407
|
-
return [e.icon ? k(
|
|
408
|
+
return [e.icon ? k(s, null, null) : (a = n.default) == null ? void 0 : a.call(n)];
|
|
408
409
|
}
|
|
409
410
|
});
|
|
410
411
|
};
|
|
411
412
|
}
|
|
412
|
-
}),
|
|
413
|
+
}), Ct = U({
|
|
413
414
|
name: "VSvgIcon",
|
|
414
415
|
inheritAttrs: !1,
|
|
415
|
-
props:
|
|
416
|
+
props: q(),
|
|
416
417
|
setup(e, t) {
|
|
417
418
|
let {
|
|
418
|
-
attrs:
|
|
419
|
+
attrs: n
|
|
419
420
|
} = t;
|
|
420
|
-
return () => k(e.tag,
|
|
421
|
+
return () => k(e.tag, Me(n, {
|
|
421
422
|
style: null
|
|
422
423
|
}), {
|
|
423
424
|
default: () => [k("svg", {
|
|
@@ -426,124 +427,124 @@ const Fe = [String, Function, Object, Array], ht = Symbol.for("vuetify:icons"),
|
|
|
426
427
|
viewBox: "0 0 24 24",
|
|
427
428
|
role: "img",
|
|
428
429
|
"aria-hidden": "true"
|
|
429
|
-
}, [Array.isArray(e.icon) ? e.icon.map((
|
|
430
|
-
d:
|
|
431
|
-
"fill-opacity":
|
|
430
|
+
}, [Array.isArray(e.icon) ? e.icon.map((s) => Array.isArray(s) ? k("path", {
|
|
431
|
+
d: s[0],
|
|
432
|
+
"fill-opacity": s[1]
|
|
432
433
|
}, null) : k("path", {
|
|
433
|
-
d:
|
|
434
|
+
d: s
|
|
434
435
|
}, null)) : k("path", {
|
|
435
436
|
d: e.icon
|
|
436
437
|
}, null)])]
|
|
437
438
|
});
|
|
438
439
|
}
|
|
439
440
|
});
|
|
440
|
-
|
|
441
|
+
U({
|
|
441
442
|
name: "VLigatureIcon",
|
|
442
|
-
props:
|
|
443
|
+
props: q(),
|
|
443
444
|
setup(e) {
|
|
444
445
|
return () => k(e.tag, null, {
|
|
445
446
|
default: () => [e.icon]
|
|
446
447
|
});
|
|
447
448
|
}
|
|
448
449
|
});
|
|
449
|
-
|
|
450
|
+
U({
|
|
450
451
|
name: "VClassIcon",
|
|
451
|
-
props:
|
|
452
|
+
props: q(),
|
|
452
453
|
setup(e) {
|
|
453
454
|
return () => k(e.tag, {
|
|
454
455
|
class: e.icon
|
|
455
456
|
}, null);
|
|
456
457
|
}
|
|
457
458
|
});
|
|
458
|
-
const
|
|
459
|
-
const t =
|
|
459
|
+
const xt = (e) => {
|
|
460
|
+
const t = J(kt);
|
|
460
461
|
if (!t)
|
|
461
462
|
throw new Error("Missing Vuetify Icons provide!");
|
|
462
463
|
return {
|
|
463
464
|
iconData: C(() => {
|
|
464
465
|
var o;
|
|
465
|
-
const
|
|
466
|
-
if (!
|
|
466
|
+
const s = Pe(e);
|
|
467
|
+
if (!s)
|
|
467
468
|
return {
|
|
468
|
-
component:
|
|
469
|
+
component: me
|
|
469
470
|
};
|
|
470
|
-
let a =
|
|
471
|
-
if (typeof a == "string" && (a = a.trim(), a.startsWith("$") && (a = (o = t.aliases) == null ? void 0 : o[a.slice(1)])), a || D(`Could not find aliased icon "${
|
|
471
|
+
let a = s;
|
|
472
|
+
if (typeof a == "string" && (a = a.trim(), a.startsWith("$") && (a = (o = t.aliases) == null ? void 0 : o[a.slice(1)])), a || D(`Could not find aliased icon "${s}"`), Array.isArray(a))
|
|
472
473
|
return {
|
|
473
|
-
component:
|
|
474
|
+
component: Ct,
|
|
474
475
|
icon: a
|
|
475
476
|
};
|
|
476
477
|
if (typeof a != "string")
|
|
477
478
|
return {
|
|
478
|
-
component:
|
|
479
|
+
component: me,
|
|
479
480
|
icon: a
|
|
480
481
|
};
|
|
481
|
-
const
|
|
482
|
+
const r = Object.keys(t.sets).find((f) => typeof a == "string" && a.startsWith(`${f}:`)), u = r ? a.slice(r.length + 1) : a;
|
|
482
483
|
return {
|
|
483
|
-
component: t.sets[
|
|
484
|
-
icon:
|
|
484
|
+
component: t.sets[r ?? t.defaultSet].component,
|
|
485
|
+
icon: u
|
|
485
486
|
};
|
|
486
487
|
})
|
|
487
488
|
};
|
|
488
|
-
},
|
|
489
|
+
}, bt = ["x-small", "small", "default", "large", "x-large"], St = w({
|
|
489
490
|
size: {
|
|
490
491
|
type: [String, Number],
|
|
491
492
|
default: "default"
|
|
492
493
|
}
|
|
493
494
|
}, "size");
|
|
494
|
-
function
|
|
495
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
496
|
-
return
|
|
497
|
-
let
|
|
498
|
-
return
|
|
495
|
+
function Vt(e) {
|
|
496
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ut();
|
|
497
|
+
return we(() => {
|
|
498
|
+
let n, s;
|
|
499
|
+
return Xe(bt, e.size) ? n = `${t}--size-${e.size}` : e.size && (s = {
|
|
499
500
|
width: A(e.size),
|
|
500
501
|
height: A(e.size)
|
|
501
502
|
}), {
|
|
502
|
-
sizeClasses:
|
|
503
|
-
sizeStyles:
|
|
503
|
+
sizeClasses: n,
|
|
504
|
+
sizeStyles: s
|
|
504
505
|
};
|
|
505
506
|
});
|
|
506
507
|
}
|
|
507
|
-
const
|
|
508
|
+
const wt = w({
|
|
508
509
|
color: String,
|
|
509
510
|
disabled: Boolean,
|
|
510
511
|
start: Boolean,
|
|
511
512
|
end: Boolean,
|
|
512
|
-
icon:
|
|
513
|
-
...
|
|
514
|
-
...
|
|
515
|
-
...
|
|
513
|
+
icon: $e,
|
|
514
|
+
...qe(),
|
|
515
|
+
...St(),
|
|
516
|
+
...yt({
|
|
516
517
|
tag: "i"
|
|
517
518
|
}),
|
|
518
|
-
...
|
|
519
|
-
}, "VIcon"),
|
|
519
|
+
...mt()
|
|
520
|
+
}, "VIcon"), pt = Fe()({
|
|
520
521
|
name: "VIcon",
|
|
521
|
-
props:
|
|
522
|
+
props: wt(),
|
|
522
523
|
setup(e, t) {
|
|
523
524
|
let {
|
|
524
|
-
attrs:
|
|
525
|
-
slots:
|
|
525
|
+
attrs: n,
|
|
526
|
+
slots: s
|
|
526
527
|
} = t;
|
|
527
528
|
const a = B(), {
|
|
528
|
-
themeClasses:
|
|
529
|
-
} =
|
|
530
|
-
iconData:
|
|
531
|
-
} =
|
|
529
|
+
themeClasses: r
|
|
530
|
+
} = gt(e), {
|
|
531
|
+
iconData: u
|
|
532
|
+
} = xt(C(() => a.value || e.icon)), {
|
|
532
533
|
sizeClasses: m
|
|
533
|
-
} =
|
|
534
|
+
} = Vt(e), {
|
|
534
535
|
textColorClasses: o,
|
|
535
536
|
textColorStyles: f
|
|
536
|
-
} =
|
|
537
|
-
return
|
|
537
|
+
} = vt(Ne(e, "color"));
|
|
538
|
+
return dt(() => {
|
|
538
539
|
var S, V;
|
|
539
|
-
const
|
|
540
|
-
|
|
541
|
-
const
|
|
542
|
-
return k(
|
|
540
|
+
const h = (S = s.default) == null ? void 0 : S.call(s);
|
|
541
|
+
h && (a.value = (V = Ve(h).filter((b) => b.type === Oe && b.children && typeof b.children == "string")[0]) == null ? void 0 : V.children);
|
|
542
|
+
const g = !!(n.onClick || n.onClickOnce);
|
|
543
|
+
return k(u.value.component, {
|
|
543
544
|
tag: e.tag,
|
|
544
|
-
icon:
|
|
545
|
-
class: ["v-icon", "notranslate",
|
|
546
|
-
"v-icon--clickable":
|
|
545
|
+
icon: u.value.icon,
|
|
546
|
+
class: ["v-icon", "notranslate", r.value, m.value, o.value, {
|
|
547
|
+
"v-icon--clickable": g,
|
|
547
548
|
"v-icon--disabled": e.disabled,
|
|
548
549
|
"v-icon--start": e.start,
|
|
549
550
|
"v-icon--end": e.end
|
|
@@ -553,17 +554,17 @@ const St = w({
|
|
|
553
554
|
height: A(e.size),
|
|
554
555
|
width: A(e.size)
|
|
555
556
|
}, f.value, e.style],
|
|
556
|
-
role:
|
|
557
|
-
"aria-hidden": !
|
|
558
|
-
tabindex:
|
|
557
|
+
role: g ? "button" : void 0,
|
|
558
|
+
"aria-hidden": !g,
|
|
559
|
+
tabindex: g ? e.disabled ? -1 : 0 : void 0
|
|
559
560
|
}, {
|
|
560
|
-
default: () => [
|
|
561
|
+
default: () => [h]
|
|
561
562
|
});
|
|
562
563
|
}), {};
|
|
563
564
|
}
|
|
564
|
-
}),
|
|
565
|
+
}), _t = /* @__PURE__ */ z({
|
|
565
566
|
__name: "index",
|
|
566
|
-
props: /* @__PURE__ */
|
|
567
|
+
props: /* @__PURE__ */ K({
|
|
567
568
|
min: { default: -1 / 0 },
|
|
568
569
|
max: { default: 1 / 0 },
|
|
569
570
|
precision: { default: 4 },
|
|
@@ -575,53 +576,53 @@ const St = w({
|
|
|
575
576
|
}),
|
|
576
577
|
emits: ["update:modelValue"],
|
|
577
578
|
setup(e) {
|
|
578
|
-
const t =
|
|
579
|
+
const t = Ce(e, "modelValue"), n = e, s = C(() => ({
|
|
579
580
|
width: "250px"
|
|
580
581
|
}));
|
|
581
|
-
return (a,
|
|
582
|
-
const
|
|
583
|
-
return
|
|
584
|
-
style:
|
|
582
|
+
return (a, r) => {
|
|
583
|
+
const u = W("v-text-field");
|
|
584
|
+
return _(), xe("div", {
|
|
585
|
+
style: be(s.value)
|
|
585
586
|
}, [
|
|
586
|
-
k(
|
|
587
|
+
k(u, {
|
|
587
588
|
"model-value": t.value,
|
|
588
589
|
variant: "outlined",
|
|
589
590
|
density: "compact",
|
|
590
|
-
readonly:
|
|
591
|
+
readonly: n.readonly,
|
|
591
592
|
"hide-details": "",
|
|
592
593
|
"single-line": ""
|
|
593
594
|
}, null, 8, ["model-value", "readonly"])
|
|
594
595
|
], 4);
|
|
595
596
|
};
|
|
596
597
|
}
|
|
597
|
-
}),
|
|
598
|
+
}), ge = /* @__PURE__ */ z({
|
|
598
599
|
__name: "index",
|
|
599
|
-
props: /* @__PURE__ */
|
|
600
|
+
props: /* @__PURE__ */ K({
|
|
600
601
|
readonly: { type: Boolean, default: !1 },
|
|
601
602
|
hasDelete: { type: Boolean, default: !1 }
|
|
602
603
|
}, {
|
|
603
604
|
modelValue: {},
|
|
604
605
|
modelModifiers: {}
|
|
605
606
|
}),
|
|
606
|
-
emits: /* @__PURE__ */
|
|
607
|
+
emits: /* @__PURE__ */ K(["delete"], ["update:modelValue"]),
|
|
607
608
|
setup(e, { emit: t }) {
|
|
608
|
-
const
|
|
609
|
-
return (
|
|
610
|
-
const m =
|
|
611
|
-
return
|
|
612
|
-
modelValue:
|
|
613
|
-
"onUpdate:modelValue":
|
|
614
|
-
"onClick:appendInner":
|
|
609
|
+
const n = Ce(e, "modelValue"), s = e, a = t;
|
|
610
|
+
return (r, u) => {
|
|
611
|
+
const m = W("v-text-field");
|
|
612
|
+
return _(), G(m, {
|
|
613
|
+
modelValue: n.value,
|
|
614
|
+
"onUpdate:modelValue": u[0] || (u[0] = (o) => n.value = o),
|
|
615
|
+
"onClick:appendInner": u[1] || (u[1] = (o) => a("delete")),
|
|
615
616
|
variant: "outlined",
|
|
616
617
|
density: "compact",
|
|
617
|
-
"append-inner-icon":
|
|
618
|
-
readonly:
|
|
618
|
+
"append-inner-icon": s.hasDelete ? "$minus" : "",
|
|
619
|
+
readonly: s.readonly,
|
|
619
620
|
"hide-details": "",
|
|
620
621
|
"single-line": ""
|
|
621
622
|
}, null, 8, ["modelValue", "append-inner-icon", "readonly"]);
|
|
622
623
|
};
|
|
623
624
|
}
|
|
624
|
-
}),
|
|
625
|
+
}), ye = /* @__PURE__ */ z({
|
|
625
626
|
__name: "index",
|
|
626
627
|
props: {
|
|
627
628
|
title: {},
|
|
@@ -632,65 +633,64 @@ const St = w({
|
|
|
632
633
|
},
|
|
633
634
|
emits: ["collapse", "create", "delete"],
|
|
634
635
|
setup(e, { emit: t }) {
|
|
635
|
-
const
|
|
636
|
+
const n = e, s = t, a = C(() => ({
|
|
636
637
|
height: "36px"
|
|
637
638
|
}));
|
|
638
|
-
return (
|
|
639
|
-
const m =
|
|
640
|
-
return
|
|
641
|
-
onClick:
|
|
639
|
+
return (r, u) => {
|
|
640
|
+
const m = W("v-icon"), o = W("v-spacer"), f = Ee("ripple");
|
|
641
|
+
return Le((_(), xe("div", {
|
|
642
|
+
onClick: u[2] || (u[2] = (h) => s("collapse", !n.collapse)),
|
|
642
643
|
class: "d-flex align-center",
|
|
643
|
-
style:
|
|
644
|
+
style: be(a.value)
|
|
644
645
|
}, [
|
|
645
646
|
k(m, {
|
|
646
647
|
class: "mr-1",
|
|
647
|
-
icon:
|
|
648
|
+
icon: n.collapse ? "$chevronRight" : "$chevronDown"
|
|
648
649
|
}, null, 8, ["icon"]),
|
|
649
|
-
|
|
650
|
+
He("span", null, We(n.title), 1),
|
|
650
651
|
k(o),
|
|
651
|
-
|
|
652
|
+
n.hasCreate ? (_(), G(m, {
|
|
652
653
|
key: 0,
|
|
653
|
-
onClick:
|
|
654
|
+
onClick: u[0] || (u[0] = Q((h) => s("create"), ["stop"])),
|
|
654
655
|
class: "ml-3",
|
|
655
656
|
icon: "$plus"
|
|
656
|
-
})) :
|
|
657
|
-
|
|
657
|
+
})) : j("", !0),
|
|
658
|
+
n.hasDelete ? (_(), G(m, {
|
|
658
659
|
key: 1,
|
|
659
|
-
onClick:
|
|
660
|
+
onClick: u[1] || (u[1] = Q((h) => s("delete", n.index), ["stop"])),
|
|
660
661
|
class: "ml-3",
|
|
661
662
|
icon: "$sub"
|
|
662
|
-
})) :
|
|
663
|
+
})) : j("", !0)
|
|
663
664
|
], 4)), [
|
|
664
665
|
[f]
|
|
665
666
|
]);
|
|
666
667
|
};
|
|
667
668
|
}
|
|
668
|
-
}),
|
|
669
|
+
}), Ft = /* @__PURE__ */ z({
|
|
669
670
|
__name: "index",
|
|
670
671
|
props: {
|
|
671
|
-
i18n: {},
|
|
672
672
|
unique: {},
|
|
673
673
|
config: {},
|
|
674
674
|
object: {}
|
|
675
675
|
},
|
|
676
676
|
emits: ["change"],
|
|
677
677
|
setup(e, { emit: t }) {
|
|
678
|
-
const { backgroundColor2: s } =
|
|
679
|
-
function
|
|
680
|
-
return l.keyFlag || (d += l.key), l.children ? l.array ?
|
|
678
|
+
const { t: n } = Ge(), { backgroundColor2: s } = Ue(), a = e, r = t, u = B("20px"), m = B("56px"), o = B("10px"), f = B("250px"), h = he({});
|
|
679
|
+
function g(d, l, i, c) {
|
|
680
|
+
return l.keyFlag || (d += l.key), l.children ? l.array ? S(d, l, i, c) : V(d, l, i, c) : l.array ? b(d, l, i) : M(d, l, i);
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
i[l.key] instanceof Array || (i[l.key] = [],
|
|
684
|
-
const $ =
|
|
685
|
-
title: n
|
|
682
|
+
function S(d, l, i, c) {
|
|
683
|
+
i[l.key] instanceof Array || (i[l.key] = [], r("change", d, i[l.key]));
|
|
684
|
+
const $ = y(ye, {
|
|
685
|
+
title: n(l.name),
|
|
686
686
|
collapse: !!c.collapse,
|
|
687
|
-
onCollapse: (
|
|
688
|
-
c.collapse =
|
|
687
|
+
onCollapse: (v) => {
|
|
688
|
+
c.collapse = v;
|
|
689
689
|
},
|
|
690
690
|
onCreate: () => {
|
|
691
|
-
i[l.key].push({}),
|
|
691
|
+
i[l.key].push({}), r("change", d, i[l.key]);
|
|
692
692
|
}
|
|
693
|
-
}), x =
|
|
693
|
+
}), x = y(
|
|
694
694
|
"div",
|
|
695
695
|
{
|
|
696
696
|
style: {
|
|
@@ -699,14 +699,14 @@ const St = w({
|
|
|
699
699
|
},
|
|
700
700
|
(() => {
|
|
701
701
|
c[l.key] instanceof Array || (c[l.key] = []);
|
|
702
|
-
for (let
|
|
703
|
-
typeof c[l.key][
|
|
702
|
+
for (let v = 0; v < i[l.key].length; v++)
|
|
703
|
+
typeof c[l.key][v] != "object" && (c[l.key][v] = {
|
|
704
704
|
collapse: !0
|
|
705
705
|
});
|
|
706
706
|
return [];
|
|
707
707
|
})()
|
|
708
708
|
);
|
|
709
|
-
return
|
|
709
|
+
return y(
|
|
710
710
|
"div",
|
|
711
711
|
{
|
|
712
712
|
style: {
|
|
@@ -715,19 +715,19 @@ const St = w({
|
|
|
715
715
|
}
|
|
716
716
|
},
|
|
717
717
|
(() => {
|
|
718
|
-
const
|
|
719
|
-
return
|
|
718
|
+
const v = [];
|
|
719
|
+
return v.push($), c.collapse || v.push(x), v;
|
|
720
720
|
})()
|
|
721
721
|
);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
const $ =
|
|
725
|
-
title: n
|
|
723
|
+
function V(d, l, i, c) {
|
|
724
|
+
const $ = y(ye, {
|
|
725
|
+
title: n(l.name),
|
|
726
726
|
collapse: !!c.collapse,
|
|
727
|
-
onCollapse: (
|
|
728
|
-
c.collapse =
|
|
727
|
+
onCollapse: (v) => {
|
|
728
|
+
c.collapse = v;
|
|
729
729
|
}
|
|
730
|
-
}), x =
|
|
730
|
+
}), x = y(
|
|
731
731
|
"div",
|
|
732
732
|
{
|
|
733
733
|
style: {
|
|
@@ -735,23 +735,23 @@ const St = w({
|
|
|
735
735
|
}
|
|
736
736
|
},
|
|
737
737
|
(() => {
|
|
738
|
-
var
|
|
739
|
-
const
|
|
740
|
-
return (
|
|
741
|
-
typeof c[
|
|
738
|
+
var N;
|
|
739
|
+
const v = [];
|
|
740
|
+
return (N = l.children) == null || N.forEach((O) => {
|
|
741
|
+
typeof c[O.key] != "object" && (c[O.key] = {
|
|
742
742
|
collapse: !0
|
|
743
743
|
});
|
|
744
|
-
const
|
|
744
|
+
const Be = g(
|
|
745
745
|
d,
|
|
746
|
-
|
|
747
|
-
l.keyFlag ? i : (typeof i[l.key] != "object" && (i[l.key] = {},
|
|
748
|
-
c[
|
|
746
|
+
O,
|
|
747
|
+
l.keyFlag ? i : (typeof i[l.key] != "object" && (i[l.key] = {}, r("change", d, i[l.key])), i[l.key]),
|
|
748
|
+
c[O.key]
|
|
749
749
|
);
|
|
750
|
-
|
|
751
|
-
}),
|
|
750
|
+
v.push(Be);
|
|
751
|
+
}), v;
|
|
752
752
|
})()
|
|
753
753
|
);
|
|
754
|
-
return
|
|
754
|
+
return y(
|
|
755
755
|
"div",
|
|
756
756
|
{
|
|
757
757
|
style: {
|
|
@@ -760,14 +760,14 @@ const St = w({
|
|
|
760
760
|
}
|
|
761
761
|
},
|
|
762
762
|
(() => {
|
|
763
|
-
const
|
|
764
|
-
return
|
|
763
|
+
const v = [];
|
|
764
|
+
return v.push($), c.collapse || v.push(x), v;
|
|
765
765
|
})()
|
|
766
766
|
);
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
if (i[l.key] instanceof Array || (i[l.key] =
|
|
770
|
-
return
|
|
768
|
+
function b(d, l, i) {
|
|
769
|
+
if (i[l.key] instanceof Array || (i[l.key] = E(l), r("change", d, i[l.key])), l.ui === "strInput")
|
|
770
|
+
return y(
|
|
771
771
|
"div",
|
|
772
772
|
{
|
|
773
773
|
class: {
|
|
@@ -776,27 +776,27 @@ const St = w({
|
|
|
776
776
|
"align-center": !0
|
|
777
777
|
},
|
|
778
778
|
style: {
|
|
779
|
-
marginRight:
|
|
779
|
+
marginRight: o.value
|
|
780
780
|
}
|
|
781
781
|
},
|
|
782
782
|
[
|
|
783
|
-
|
|
783
|
+
y("span", {
|
|
784
784
|
style: {
|
|
785
785
|
marginLeft: "4px"
|
|
786
786
|
},
|
|
787
|
-
innerHTML: n
|
|
787
|
+
innerHTML: n(l.name)
|
|
788
788
|
}),
|
|
789
|
-
|
|
789
|
+
y(
|
|
790
790
|
"div",
|
|
791
791
|
{
|
|
792
792
|
style: {
|
|
793
|
-
width:
|
|
793
|
+
width: f.value
|
|
794
794
|
}
|
|
795
795
|
},
|
|
796
796
|
(() => {
|
|
797
797
|
const c = [];
|
|
798
798
|
for (let x = 0; x < i[l.key].length; x++) {
|
|
799
|
-
const
|
|
799
|
+
const v = y(
|
|
800
800
|
"div",
|
|
801
801
|
{
|
|
802
802
|
class: {
|
|
@@ -805,25 +805,25 @@ const St = w({
|
|
|
805
805
|
"justify-center": !0
|
|
806
806
|
},
|
|
807
807
|
style: {
|
|
808
|
-
height:
|
|
808
|
+
height: m.value
|
|
809
809
|
}
|
|
810
810
|
},
|
|
811
811
|
[
|
|
812
|
-
|
|
812
|
+
y(ge, {
|
|
813
813
|
modelValue: i[l.key][x],
|
|
814
|
-
"onUpdate:modelValue": (
|
|
815
|
-
i[l.key][x] =
|
|
814
|
+
"onUpdate:modelValue": (N) => {
|
|
815
|
+
i[l.key][x] = N, r("change", d, i[l.key]);
|
|
816
816
|
},
|
|
817
817
|
hasDelete: !0,
|
|
818
818
|
onDelete: () => {
|
|
819
|
-
i[l.key].splice(x, 1),
|
|
819
|
+
i[l.key].splice(x, 1), r("change", d, i[l.key]);
|
|
820
820
|
}
|
|
821
821
|
})
|
|
822
822
|
]
|
|
823
823
|
);
|
|
824
|
-
c.push(
|
|
824
|
+
c.push(v);
|
|
825
825
|
}
|
|
826
|
-
const $ =
|
|
826
|
+
const $ = y(
|
|
827
827
|
"div",
|
|
828
828
|
{
|
|
829
829
|
class: {
|
|
@@ -841,10 +841,10 @@ const St = w({
|
|
|
841
841
|
border: "thin dashed #bdbdbd"
|
|
842
842
|
},
|
|
843
843
|
onClick: () => {
|
|
844
|
-
i[l.key].push(""),
|
|
844
|
+
i[l.key].push(""), r("change", d, i[l.key]);
|
|
845
845
|
}
|
|
846
846
|
},
|
|
847
|
-
[
|
|
847
|
+
[y(pt, { icon: "$plus" })]
|
|
848
848
|
);
|
|
849
849
|
return c.push($), c;
|
|
850
850
|
})()
|
|
@@ -853,12 +853,12 @@ const St = w({
|
|
|
853
853
|
);
|
|
854
854
|
console.assert(!1);
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function M(d, l, i) {
|
|
857
857
|
if (l.ui === "void")
|
|
858
|
-
i[l.key] === void 0 && (console.assert(l.default !== void 0), i[l.key] =
|
|
858
|
+
i[l.key] === void 0 && (console.assert(l.default !== void 0), i[l.key] = E(l), r("change", d, i[l.key]));
|
|
859
859
|
else {
|
|
860
860
|
if (l.ui === "strInput")
|
|
861
|
-
return
|
|
861
|
+
return y(
|
|
862
862
|
"div",
|
|
863
863
|
{
|
|
864
864
|
class: {
|
|
@@ -867,29 +867,29 @@ const St = w({
|
|
|
867
867
|
"align-center": !0
|
|
868
868
|
},
|
|
869
869
|
style: {
|
|
870
|
-
height:
|
|
871
|
-
marginRight:
|
|
870
|
+
height: m.value,
|
|
871
|
+
marginRight: o.value
|
|
872
872
|
}
|
|
873
873
|
},
|
|
874
874
|
[
|
|
875
|
-
|
|
875
|
+
y("span", {
|
|
876
876
|
style: {
|
|
877
877
|
marginLeft: "4px"
|
|
878
878
|
},
|
|
879
|
-
innerHTML: n
|
|
879
|
+
innerHTML: n(l.name)
|
|
880
880
|
}),
|
|
881
|
-
|
|
881
|
+
y(
|
|
882
882
|
"div",
|
|
883
883
|
{
|
|
884
884
|
style: {
|
|
885
|
-
width:
|
|
885
|
+
width: f.value
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
[
|
|
889
|
-
|
|
890
|
-
modelValue: l.static ? l.value : (typeof i[l.key] != "string" && (i[l.key] =
|
|
889
|
+
y(ge, {
|
|
890
|
+
modelValue: l.static ? l.value : (typeof i[l.key] != "string" && (i[l.key] = E(l), r("change", d, i[l.key])), i[l.key]),
|
|
891
891
|
"onUpdate:modelValue": (c) => {
|
|
892
|
-
l.static || c !== i[l.key] && (i[l.key] = c,
|
|
892
|
+
l.static || c !== i[l.key] && (i[l.key] = c, r("change", d, c));
|
|
893
893
|
},
|
|
894
894
|
readonly: l.static || l.readonly
|
|
895
895
|
})
|
|
@@ -898,7 +898,7 @@ const St = w({
|
|
|
898
898
|
]
|
|
899
899
|
);
|
|
900
900
|
if (l.ui === "numInput")
|
|
901
|
-
return
|
|
901
|
+
return y(
|
|
902
902
|
"div",
|
|
903
903
|
{
|
|
904
904
|
class: {
|
|
@@ -907,29 +907,29 @@ const St = w({
|
|
|
907
907
|
"align-center": !0
|
|
908
908
|
},
|
|
909
909
|
style: {
|
|
910
|
-
height:
|
|
911
|
-
marginRight:
|
|
910
|
+
height: m.value,
|
|
911
|
+
marginRight: o.value
|
|
912
912
|
}
|
|
913
913
|
},
|
|
914
914
|
[
|
|
915
|
-
|
|
915
|
+
y("span", {
|
|
916
916
|
style: {
|
|
917
917
|
marginLeft: "4px"
|
|
918
918
|
},
|
|
919
|
-
innerHTML: n
|
|
919
|
+
innerHTML: n(l.name)
|
|
920
920
|
}),
|
|
921
|
-
|
|
921
|
+
y(
|
|
922
922
|
"div",
|
|
923
923
|
{
|
|
924
924
|
style: {
|
|
925
|
-
width:
|
|
925
|
+
width: f.value
|
|
926
926
|
}
|
|
927
927
|
},
|
|
928
928
|
[
|
|
929
|
-
|
|
930
|
-
modelValue: (typeof i[l.key] != "number" && (i[l.key] =
|
|
929
|
+
y(_t, {
|
|
930
|
+
modelValue: (typeof i[l.key] != "number" && (i[l.key] = E(l), r("change", d, i[l.key])), i[l.key]),
|
|
931
931
|
"onUpdate:modelValue": (c) => {
|
|
932
|
-
c !== i[l.key] && (i[l.key] = c,
|
|
932
|
+
c !== i[l.key] && (i[l.key] = c, r("change", d, c));
|
|
933
933
|
},
|
|
934
934
|
readonly: l.readonly
|
|
935
935
|
})
|
|
@@ -939,7 +939,7 @@ const St = w({
|
|
|
939
939
|
);
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
|
-
const
|
|
942
|
+
const P = () => y(
|
|
943
943
|
"div",
|
|
944
944
|
{
|
|
945
945
|
class: {
|
|
@@ -948,22 +948,22 @@ const St = w({
|
|
|
948
948
|
},
|
|
949
949
|
(() => {
|
|
950
950
|
const d = [];
|
|
951
|
-
if (
|
|
952
|
-
|
|
953
|
-
const l =
|
|
954
|
-
|
|
955
|
-
const c =
|
|
951
|
+
if (a.unique && a.config && a.object) {
|
|
952
|
+
h[a.unique] || (h[a.unique] = {});
|
|
953
|
+
const l = h[a.unique];
|
|
954
|
+
a.config.forEach((i) => {
|
|
955
|
+
const c = g("", i, a.object, l);
|
|
956
956
|
d.push(c);
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
959
|
return d;
|
|
960
960
|
})()
|
|
961
961
|
);
|
|
962
|
-
return (d, l) => (
|
|
962
|
+
return (d, l) => (_(), G(P));
|
|
963
963
|
}
|
|
964
|
-
}),
|
|
965
|
-
e.component("x-prop-tree",
|
|
966
|
-
},
|
|
964
|
+
}), $t = (e) => {
|
|
965
|
+
e.component("x-prop-tree", Ft);
|
|
966
|
+
}, Tt = { install: $t };
|
|
967
967
|
export {
|
|
968
|
-
|
|
968
|
+
Tt as default
|
|
969
969
|
};
|