x-prop-tree 0.3.1 → 0.3.3
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 +394 -392
- 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 {
|
|
2
|
+
import { Fragment as Ae, reactive as ve, computed as k, watchEffect as Ce, toRefs as De, warn as Le, getCurrentInstance as Me, inject as Q, shallowRef as Te, provide as ke, defineComponent as M, isRef as ze, createVNode as C, mergeProps as Re, unref as W, ref as I, toRef as Pe, Text as Ne, mergeModels as K, useModel as xe, resolveComponent as G, openBlock as _, createElementBlock as be, normalizeStyle as Se, createBlock as U, resolveDirective as Oe, withDirectives as Ee, createElementVNode as He, toDisplayString as We, withModifiers as j, createCommentVNode as ee, h as y } from "vue";
|
|
3
|
+
import { useI18n as Ge } from "vue-i18n";
|
|
4
|
+
import { useColor as Ue } from "x-essential-lib";
|
|
4
5
|
import { getPropDefault as O } 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 te(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 Ze(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 ne(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 Ye(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 Ve() {
|
|
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 (te(r) && te(u)) {
|
|
61
|
+
s[a] = Ve(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 we(e) {
|
|
73
|
+
return e.map((t) => t.type === Ae ? we(t.children) : t).flat();
|
|
73
74
|
}
|
|
74
75
|
function F() {
|
|
75
76
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
@@ -79,471 +80,471 @@ 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 pe(e) {
|
|
84
|
+
const t = ve({}), n = k(e);
|
|
85
|
+
return Ce(() => {
|
|
86
|
+
for (const s in n.value)
|
|
87
|
+
t[s] = n.value[s];
|
|
87
88
|
}, {
|
|
88
89
|
flush: "sync"
|
|
89
|
-
}),
|
|
90
|
+
}), De(t);
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function Ke(e, t) {
|
|
92
93
|
return e.includes(t);
|
|
93
94
|
}
|
|
94
|
-
const
|
|
95
|
-
function
|
|
96
|
-
const
|
|
97
|
-
let o =
|
|
98
|
-
if (o <= E && (o += (E - o) **
|
|
95
|
+
const p = 2.4, se = 0.2126729, ae = 0.7151522, le = 0.072175, Xe = 0.55, Je = 0.58, Qe = 0.57, je = 0.62, E = 0.03, re = 1.45, et = 5e-4, tt = 1.25, nt = 1.25, ie = 0.078, ue = 12.82051282051282, H = 0.06, oe = 1e-3;
|
|
96
|
+
function ce(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 * se + s * ae + a * le, f = r * se + u * ae + m * le;
|
|
99
|
+
if (o <= E && (o += (E - o) ** re), f <= E && (f += (E - f) ** re), 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 ** Xe - o ** Je) * tt;
|
|
104
|
+
h = g < oe ? 0 : g < ie ? g - g * ue * H : g - H;
|
|
104
105
|
} else {
|
|
105
|
-
const
|
|
106
|
-
|
|
106
|
+
const g = (f ** je - o ** Qe) * nt;
|
|
107
|
+
h = g > -oe ? 0 : g > -ie ? g - g * ue * H : g + H;
|
|
107
108
|
}
|
|
108
|
-
return
|
|
109
|
+
return h * 100;
|
|
109
110
|
}
|
|
110
111
|
function D(e) {
|
|
111
|
-
|
|
112
|
+
Le(`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 fe = /^(?<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) => de({
|
|
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) => de({
|
|
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) => L({
|
|
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) => L({
|
|
151
152
|
h: e,
|
|
152
153
|
s: t,
|
|
153
|
-
v:
|
|
154
|
-
a:
|
|
154
|
+
v: n,
|
|
155
|
+
a: s
|
|
155
156
|
})
|
|
156
157
|
};
|
|
157
|
-
function
|
|
158
|
+
function $(e) {
|
|
158
159
|
if (typeof e == "number")
|
|
159
160
|
return (isNaN(e) || e < 0 || e > 16777215) && D(`'${e}' is not a valid hex color`), {
|
|
160
161
|
r: (e & 16711680) >> 16,
|
|
161
162
|
g: (e & 65280) >> 8,
|
|
162
163
|
b: e & 255
|
|
163
164
|
};
|
|
164
|
-
if (typeof e == "string" &&
|
|
165
|
+
if (typeof e == "string" && fe.test(e)) {
|
|
165
166
|
const {
|
|
166
167
|
groups: t
|
|
167
|
-
} = e.match(
|
|
168
|
-
fn:
|
|
169
|
-
values:
|
|
170
|
-
} = t, a =
|
|
171
|
-
return
|
|
168
|
+
} = e.match(fe), {
|
|
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
|
|
182
|
-
if (
|
|
183
|
-
return
|
|
181
|
+
if (Y(e, ["h", "s", "l"]))
|
|
182
|
+
return L(_e(e));
|
|
183
|
+
if (Y(e, ["h", "s", "v"]))
|
|
184
|
+
return L(e);
|
|
184
185
|
}
|
|
185
186
|
throw new TypeError(`Invalid color: ${e == null ? e : String(e) || e.constructor.name}
|
|
186
187
|
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`);
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
+
function L(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
|
|
206
|
+
function de(e) {
|
|
207
|
+
return L(_e(e));
|
|
207
208
|
}
|
|
208
|
-
function
|
|
209
|
+
function _e(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] = Ye(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 = ne(ne(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(ce($(0), $(e)));
|
|
238
|
+
return Math.abs(ce($(16777215), $(e))) > Math.min(t, 50) ? "#fff" : "#000";
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
-
const
|
|
241
|
-
if (!
|
|
240
|
+
function T(e, t) {
|
|
241
|
+
const n = Me();
|
|
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
|
-
const t =
|
|
248
|
+
const t = T(e).type;
|
|
248
249
|
return F((t == null ? void 0 : t.aliasName) || (t == null ? void 0 : t.name));
|
|
249
250
|
}
|
|
250
|
-
function
|
|
251
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
251
|
+
function ot(e) {
|
|
252
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : T("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
|
-
function
|
|
260
|
-
const e =
|
|
259
|
+
const J = Symbol.for("vuetify:defaults");
|
|
260
|
+
function Fe() {
|
|
261
|
+
const e = Q(J);
|
|
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] : Fe();
|
|
272
|
+
const s = T("useDefaults");
|
|
273
|
+
if (t = t ?? s.type.name ?? s.type.__name, !t)
|
|
273
274
|
throw new Error("[Vuetify] Could not determine component name");
|
|
274
|
-
const a =
|
|
275
|
+
const a = k(() => {
|
|
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, z, R, 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] : ((z = (b = n.value) == null ? void 0 : b.global) == null ? void 0 : z[f]) !== void 0 ? (d = (R = n.value) == null ? void 0 : R.global) == null ? void 0 : d[f] : h : h;
|
|
282
283
|
}
|
|
283
|
-
}),
|
|
284
|
-
|
|
284
|
+
}), u = Te();
|
|
285
|
+
Ce(() => {
|
|
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(J, s);
|
|
297
|
+
ke(J, k(() => u.value ? Ve((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 q(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 Ze(s, t);
|
|
312
|
+
}, e.props._as = String, e.setup = function(s, a) {
|
|
313
|
+
const r = Fe();
|
|
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 Be() {
|
|
325
326
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
326
|
-
return (t) => (e ?
|
|
327
|
+
return (t) => (e ? q : M)(t);
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
-
const t =
|
|
329
|
+
function dt(e) {
|
|
330
|
+
const t = T("useRender");
|
|
330
331
|
t.render = e;
|
|
331
332
|
}
|
|
332
|
-
const
|
|
333
|
+
const me = Symbol.for("vuetify:theme"), mt = w({
|
|
333
334
|
theme: String
|
|
334
335
|
}, "theme");
|
|
335
|
-
function
|
|
336
|
-
|
|
337
|
-
const t =
|
|
336
|
+
function gt(e) {
|
|
337
|
+
T("provideTheme");
|
|
338
|
+
const t = Q(me, null);
|
|
338
339
|
if (!t)
|
|
339
340
|
throw new Error("Could not find Vuetify theme injection");
|
|
340
|
-
const
|
|
341
|
+
const n = k(() => e.theme ?? t.name.value), s = k(() => t.themes.value[n.value]), a = k(() => 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(me, 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 pe(() => {
|
|
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 = $(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
|
|
375
|
+
function vt(e, t) {
|
|
376
|
+
const n = k(() => ({
|
|
376
377
|
text: ze(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 Ie = [String, Function, Object, Array], Ct = Symbol.for("vuetify:icons"), Z = w({
|
|
387
388
|
icon: {
|
|
388
|
-
type:
|
|
389
|
+
type: Ie
|
|
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"), ge = Be()({
|
|
396
397
|
name: "VComponentIcon",
|
|
397
|
-
props:
|
|
398
|
+
props: Z(),
|
|
398
399
|
setup(e, t) {
|
|
399
400
|
let {
|
|
400
|
-
slots:
|
|
401
|
+
slots: n
|
|
401
402
|
} = t;
|
|
402
403
|
return () => {
|
|
403
|
-
const
|
|
404
|
-
return
|
|
404
|
+
const s = e.icon;
|
|
405
|
+
return C(e.tag, null, {
|
|
405
406
|
default: () => {
|
|
406
407
|
var a;
|
|
407
|
-
return [e.icon ?
|
|
408
|
+
return [e.icon ? C(s, null, null) : (a = n.default) == null ? void 0 : a.call(n)];
|
|
408
409
|
}
|
|
409
410
|
});
|
|
410
411
|
};
|
|
411
412
|
}
|
|
412
|
-
}),
|
|
413
|
+
}), kt = q({
|
|
413
414
|
name: "VSvgIcon",
|
|
414
415
|
inheritAttrs: !1,
|
|
415
|
-
props:
|
|
416
|
+
props: Z(),
|
|
416
417
|
setup(e, t) {
|
|
417
418
|
let {
|
|
418
|
-
attrs:
|
|
419
|
+
attrs: n
|
|
419
420
|
} = t;
|
|
420
|
-
return () =>
|
|
421
|
+
return () => C(e.tag, Re(n, {
|
|
421
422
|
style: null
|
|
422
423
|
}), {
|
|
423
|
-
default: () => [
|
|
424
|
+
default: () => [C("svg", {
|
|
424
425
|
class: "v-icon__svg",
|
|
425
426
|
xmlns: "http://www.w3.org/2000/svg",
|
|
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":
|
|
432
|
-
}, null) :
|
|
433
|
-
d:
|
|
434
|
-
}, null)) :
|
|
430
|
+
}, [Array.isArray(e.icon) ? e.icon.map((s) => Array.isArray(s) ? C("path", {
|
|
431
|
+
d: s[0],
|
|
432
|
+
"fill-opacity": s[1]
|
|
433
|
+
}, null) : C("path", {
|
|
434
|
+
d: s
|
|
435
|
+
}, null)) : C("path", {
|
|
435
436
|
d: e.icon
|
|
436
437
|
}, null)])]
|
|
437
438
|
});
|
|
438
439
|
}
|
|
439
440
|
});
|
|
440
|
-
|
|
441
|
+
q({
|
|
441
442
|
name: "VLigatureIcon",
|
|
442
|
-
props:
|
|
443
|
+
props: Z(),
|
|
443
444
|
setup(e) {
|
|
444
|
-
return () =>
|
|
445
|
+
return () => C(e.tag, null, {
|
|
445
446
|
default: () => [e.icon]
|
|
446
447
|
});
|
|
447
448
|
}
|
|
448
449
|
});
|
|
449
|
-
|
|
450
|
+
q({
|
|
450
451
|
name: "VClassIcon",
|
|
451
|
-
props:
|
|
452
|
+
props: Z(),
|
|
452
453
|
setup(e) {
|
|
453
|
-
return () =>
|
|
454
|
+
return () => C(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 = Q(Ct);
|
|
460
461
|
if (!t)
|
|
461
462
|
throw new Error("Missing Vuetify Icons provide!");
|
|
462
463
|
return {
|
|
463
|
-
iconData:
|
|
464
|
+
iconData: k(() => {
|
|
464
465
|
var o;
|
|
465
|
-
const
|
|
466
|
-
if (!
|
|
466
|
+
const s = W(e);
|
|
467
|
+
if (!s)
|
|
467
468
|
return {
|
|
468
|
-
component:
|
|
469
|
+
component: ge
|
|
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: kt,
|
|
474
475
|
icon: a
|
|
475
476
|
};
|
|
476
477
|
if (typeof a != "string")
|
|
477
478
|
return {
|
|
478
|
-
component:
|
|
479
|
+
component: ge,
|
|
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 pe(() => {
|
|
498
|
+
let n, s;
|
|
499
|
+
return Ke(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: Ie,
|
|
514
|
+
...qe(),
|
|
515
|
+
...St(),
|
|
516
|
+
...yt({
|
|
516
517
|
tag: "i"
|
|
517
518
|
}),
|
|
518
|
-
...
|
|
519
|
-
}, "VIcon"),
|
|
519
|
+
...mt()
|
|
520
|
+
}, "VIcon"), pt = Be()({
|
|
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
|
-
const a =
|
|
528
|
-
themeClasses:
|
|
529
|
-
} =
|
|
530
|
-
iconData:
|
|
531
|
-
} =
|
|
528
|
+
const a = I(), {
|
|
529
|
+
themeClasses: r
|
|
530
|
+
} = gt(e), {
|
|
531
|
+
iconData: u
|
|
532
|
+
} = xt(k(() => 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(Pe(e, "color"));
|
|
538
|
+
return dt(() => {
|
|
538
539
|
var S, V;
|
|
539
|
-
const
|
|
540
|
-
|
|
541
|
-
const
|
|
542
|
-
return
|
|
540
|
+
const h = (S = s.default) == null ? void 0 : S.call(s);
|
|
541
|
+
h && (a.value = (V = we(h).filter((b) => b.type === Ne && b.children && typeof b.children == "string")[0]) == null ? void 0 : V.children);
|
|
542
|
+
const g = !!(n.onClick || n.onClickOnce);
|
|
543
|
+
return C(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__ */ M({
|
|
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,55 @@ const St = w({
|
|
|
575
576
|
}),
|
|
576
577
|
emits: ["update:modelValue"],
|
|
577
578
|
setup(e) {
|
|
578
|
-
const t =
|
|
579
|
+
const t = xe(e, "modelValue"), n = e, s = k(() => ({
|
|
579
580
|
width: "250px"
|
|
580
581
|
}));
|
|
581
|
-
return (a,
|
|
582
|
-
const
|
|
583
|
-
return
|
|
584
|
-
style:
|
|
582
|
+
return (a, r) => {
|
|
583
|
+
const u = G("v-text-field");
|
|
584
|
+
return _(), be("div", {
|
|
585
|
+
style: Se(s.value)
|
|
585
586
|
}, [
|
|
586
|
-
|
|
587
|
+
C(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
|
+
});
|
|
599
|
+
var Ft = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Bt = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", It = "M19,13H5V11H19V13Z";
|
|
600
|
+
const ye = /* @__PURE__ */ M({
|
|
598
601
|
__name: "index",
|
|
599
|
-
props: /* @__PURE__ */
|
|
602
|
+
props: /* @__PURE__ */ K({
|
|
600
603
|
readonly: { type: Boolean, default: !1 },
|
|
601
604
|
hasDelete: { type: Boolean, default: !1 }
|
|
602
605
|
}, {
|
|
603
606
|
modelValue: {},
|
|
604
607
|
modelModifiers: {}
|
|
605
608
|
}),
|
|
606
|
-
emits: /* @__PURE__ */
|
|
609
|
+
emits: /* @__PURE__ */ K(["delete"], ["update:modelValue"]),
|
|
607
610
|
setup(e, { emit: t }) {
|
|
608
|
-
const
|
|
609
|
-
return (
|
|
610
|
-
const m =
|
|
611
|
-
return
|
|
612
|
-
modelValue:
|
|
613
|
-
"onUpdate:modelValue":
|
|
614
|
-
"onClick:appendInner":
|
|
611
|
+
const n = xe(e, "modelValue"), s = e, a = t;
|
|
612
|
+
return (r, u) => {
|
|
613
|
+
const m = G("v-text-field");
|
|
614
|
+
return _(), U(m, {
|
|
615
|
+
modelValue: n.value,
|
|
616
|
+
"onUpdate:modelValue": u[0] || (u[0] = (o) => n.value = o),
|
|
617
|
+
"onClick:appendInner": u[1] || (u[1] = (o) => a("delete")),
|
|
615
618
|
variant: "outlined",
|
|
616
619
|
density: "compact",
|
|
617
|
-
"append-inner-icon":
|
|
618
|
-
readonly:
|
|
620
|
+
"append-inner-icon": s.hasDelete ? W(It) : "",
|
|
621
|
+
readonly: s.readonly,
|
|
619
622
|
"hide-details": "",
|
|
620
623
|
"single-line": ""
|
|
621
624
|
}, null, 8, ["modelValue", "append-inner-icon", "readonly"]);
|
|
622
625
|
};
|
|
623
626
|
}
|
|
624
|
-
}),
|
|
627
|
+
}), he = /* @__PURE__ */ M({
|
|
625
628
|
__name: "index",
|
|
626
629
|
props: {
|
|
627
630
|
title: {},
|
|
@@ -632,65 +635,64 @@ const St = w({
|
|
|
632
635
|
},
|
|
633
636
|
emits: ["collapse", "create", "delete"],
|
|
634
637
|
setup(e, { emit: t }) {
|
|
635
|
-
const
|
|
638
|
+
const n = e, s = t, a = k(() => ({
|
|
636
639
|
height: "36px"
|
|
637
640
|
}));
|
|
638
|
-
return (
|
|
639
|
-
const m =
|
|
640
|
-
return Ee((
|
|
641
|
-
onClick:
|
|
641
|
+
return (r, u) => {
|
|
642
|
+
const m = G("v-icon"), o = G("v-spacer"), f = Oe("ripple");
|
|
643
|
+
return Ee((_(), be("div", {
|
|
644
|
+
onClick: u[2] || (u[2] = (h) => s("collapse", !n.collapse)),
|
|
642
645
|
class: "d-flex align-center",
|
|
643
|
-
style:
|
|
646
|
+
style: Se(a.value)
|
|
644
647
|
}, [
|
|
645
|
-
|
|
648
|
+
C(m, {
|
|
646
649
|
class: "mr-1",
|
|
647
|
-
icon:
|
|
650
|
+
icon: n.collapse ? W(Bt) : W(Ft)
|
|
648
651
|
}, null, 8, ["icon"]),
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
+
He("span", null, We(n.title), 1),
|
|
653
|
+
C(o),
|
|
654
|
+
n.hasCreate ? (_(), U(m, {
|
|
652
655
|
key: 0,
|
|
653
|
-
onClick:
|
|
656
|
+
onClick: u[0] || (u[0] = j((h) => s("create"), ["stop"])),
|
|
654
657
|
class: "ml-3",
|
|
655
658
|
icon: "$plus"
|
|
656
|
-
})) :
|
|
657
|
-
|
|
659
|
+
})) : ee("", !0),
|
|
660
|
+
n.hasDelete ? (_(), U(m, {
|
|
658
661
|
key: 1,
|
|
659
|
-
onClick:
|
|
662
|
+
onClick: u[1] || (u[1] = j((h) => s("delete", n.index), ["stop"])),
|
|
660
663
|
class: "ml-3",
|
|
661
664
|
icon: "$sub"
|
|
662
|
-
})) :
|
|
665
|
+
})) : ee("", !0)
|
|
663
666
|
], 4)), [
|
|
664
667
|
[f]
|
|
665
668
|
]);
|
|
666
669
|
};
|
|
667
670
|
}
|
|
668
|
-
}),
|
|
671
|
+
}), $t = /* @__PURE__ */ M({
|
|
669
672
|
__name: "index",
|
|
670
673
|
props: {
|
|
671
|
-
i18n: {},
|
|
672
674
|
unique: {},
|
|
673
675
|
config: {},
|
|
674
676
|
object: {}
|
|
675
677
|
},
|
|
676
678
|
emits: ["change"],
|
|
677
679
|
setup(e, { emit: t }) {
|
|
678
|
-
const { backgroundColor2: s } =
|
|
679
|
-
function
|
|
680
|
-
return l.keyFlag || (d += l.key), l.children ? l.array ?
|
|
680
|
+
const { t: n } = Ge(), { backgroundColor2: s } = Ue(), a = e, r = t, u = I("20px"), m = I("56px"), o = I("10px"), f = I("250px"), h = ve({});
|
|
681
|
+
function g(d, l, i, c) {
|
|
682
|
+
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) : z(d, l, i);
|
|
681
683
|
}
|
|
682
|
-
function
|
|
683
|
-
i[l.key] instanceof Array || (i[l.key] = [],
|
|
684
|
-
const
|
|
685
|
-
title: n
|
|
684
|
+
function S(d, l, i, c) {
|
|
685
|
+
i[l.key] instanceof Array || (i[l.key] = [], r("change", d, i[l.key]));
|
|
686
|
+
const B = y(he, {
|
|
687
|
+
title: n(l.name),
|
|
686
688
|
collapse: !!c.collapse,
|
|
687
|
-
onCollapse: (
|
|
688
|
-
c.collapse =
|
|
689
|
+
onCollapse: (v) => {
|
|
690
|
+
c.collapse = v;
|
|
689
691
|
},
|
|
690
692
|
onCreate: () => {
|
|
691
|
-
i[l.key].push({}),
|
|
693
|
+
i[l.key].push({}), r("change", d, i[l.key]);
|
|
692
694
|
}
|
|
693
|
-
}), x =
|
|
695
|
+
}), x = y(
|
|
694
696
|
"div",
|
|
695
697
|
{
|
|
696
698
|
style: {
|
|
@@ -699,14 +701,14 @@ const St = w({
|
|
|
699
701
|
},
|
|
700
702
|
(() => {
|
|
701
703
|
c[l.key] instanceof Array || (c[l.key] = []);
|
|
702
|
-
for (let
|
|
703
|
-
typeof c[l.key][
|
|
704
|
+
for (let v = 0; v < i[l.key].length; v++)
|
|
705
|
+
typeof c[l.key][v] != "object" && (c[l.key][v] = {
|
|
704
706
|
collapse: !0
|
|
705
707
|
});
|
|
706
708
|
return [];
|
|
707
709
|
})()
|
|
708
710
|
);
|
|
709
|
-
return
|
|
711
|
+
return y(
|
|
710
712
|
"div",
|
|
711
713
|
{
|
|
712
714
|
style: {
|
|
@@ -715,19 +717,19 @@ const St = w({
|
|
|
715
717
|
}
|
|
716
718
|
},
|
|
717
719
|
(() => {
|
|
718
|
-
const
|
|
719
|
-
return
|
|
720
|
+
const v = [];
|
|
721
|
+
return v.push(B), c.collapse || v.push(x), v;
|
|
720
722
|
})()
|
|
721
723
|
);
|
|
722
724
|
}
|
|
723
|
-
function
|
|
724
|
-
const
|
|
725
|
-
title: n
|
|
725
|
+
function V(d, l, i, c) {
|
|
726
|
+
const B = y(he, {
|
|
727
|
+
title: n(l.name),
|
|
726
728
|
collapse: !!c.collapse,
|
|
727
|
-
onCollapse: (
|
|
728
|
-
c.collapse =
|
|
729
|
+
onCollapse: (v) => {
|
|
730
|
+
c.collapse = v;
|
|
729
731
|
}
|
|
730
|
-
}), x =
|
|
732
|
+
}), x = y(
|
|
731
733
|
"div",
|
|
732
734
|
{
|
|
733
735
|
style: {
|
|
@@ -736,22 +738,22 @@ const St = w({
|
|
|
736
738
|
},
|
|
737
739
|
(() => {
|
|
738
740
|
var P;
|
|
739
|
-
const
|
|
741
|
+
const v = [];
|
|
740
742
|
return (P = l.children) == null || P.forEach((N) => {
|
|
741
743
|
typeof c[N.key] != "object" && (c[N.key] = {
|
|
742
744
|
collapse: !0
|
|
743
745
|
});
|
|
744
|
-
const $e =
|
|
746
|
+
const $e = g(
|
|
745
747
|
d,
|
|
746
748
|
N,
|
|
747
|
-
l.keyFlag ? i : (typeof i[l.key] != "object" && (i[l.key] = {},
|
|
749
|
+
l.keyFlag ? i : (typeof i[l.key] != "object" && (i[l.key] = {}, r("change", d, i[l.key])), i[l.key]),
|
|
748
750
|
c[N.key]
|
|
749
751
|
);
|
|
750
|
-
|
|
751
|
-
}),
|
|
752
|
+
v.push($e);
|
|
753
|
+
}), v;
|
|
752
754
|
})()
|
|
753
755
|
);
|
|
754
|
-
return
|
|
756
|
+
return y(
|
|
755
757
|
"div",
|
|
756
758
|
{
|
|
757
759
|
style: {
|
|
@@ -760,14 +762,14 @@ const St = w({
|
|
|
760
762
|
}
|
|
761
763
|
},
|
|
762
764
|
(() => {
|
|
763
|
-
const
|
|
764
|
-
return
|
|
765
|
+
const v = [];
|
|
766
|
+
return v.push(B), c.collapse || v.push(x), v;
|
|
765
767
|
})()
|
|
766
768
|
);
|
|
767
769
|
}
|
|
768
|
-
function
|
|
769
|
-
if (i[l.key] instanceof Array || (i[l.key] = O(l),
|
|
770
|
-
return
|
|
770
|
+
function b(d, l, i) {
|
|
771
|
+
if (i[l.key] instanceof Array || (i[l.key] = O(l), r("change", d, i[l.key])), l.ui === "strInput")
|
|
772
|
+
return y(
|
|
771
773
|
"div",
|
|
772
774
|
{
|
|
773
775
|
class: {
|
|
@@ -776,27 +778,27 @@ const St = w({
|
|
|
776
778
|
"align-center": !0
|
|
777
779
|
},
|
|
778
780
|
style: {
|
|
779
|
-
marginRight:
|
|
781
|
+
marginRight: o.value
|
|
780
782
|
}
|
|
781
783
|
},
|
|
782
784
|
[
|
|
783
|
-
|
|
785
|
+
y("span", {
|
|
784
786
|
style: {
|
|
785
787
|
marginLeft: "4px"
|
|
786
788
|
},
|
|
787
|
-
innerHTML: n
|
|
789
|
+
innerHTML: n(l.name)
|
|
788
790
|
}),
|
|
789
|
-
|
|
791
|
+
y(
|
|
790
792
|
"div",
|
|
791
793
|
{
|
|
792
794
|
style: {
|
|
793
|
-
width:
|
|
795
|
+
width: f.value
|
|
794
796
|
}
|
|
795
797
|
},
|
|
796
798
|
(() => {
|
|
797
799
|
const c = [];
|
|
798
800
|
for (let x = 0; x < i[l.key].length; x++) {
|
|
799
|
-
const
|
|
801
|
+
const v = y(
|
|
800
802
|
"div",
|
|
801
803
|
{
|
|
802
804
|
class: {
|
|
@@ -805,25 +807,25 @@ const St = w({
|
|
|
805
807
|
"justify-center": !0
|
|
806
808
|
},
|
|
807
809
|
style: {
|
|
808
|
-
height:
|
|
810
|
+
height: m.value
|
|
809
811
|
}
|
|
810
812
|
},
|
|
811
813
|
[
|
|
812
|
-
|
|
814
|
+
y(ye, {
|
|
813
815
|
modelValue: i[l.key][x],
|
|
814
816
|
"onUpdate:modelValue": (P) => {
|
|
815
|
-
i[l.key][x] = P,
|
|
817
|
+
i[l.key][x] = P, r("change", d, i[l.key]);
|
|
816
818
|
},
|
|
817
819
|
hasDelete: !0,
|
|
818
820
|
onDelete: () => {
|
|
819
|
-
i[l.key].splice(x, 1),
|
|
821
|
+
i[l.key].splice(x, 1), r("change", d, i[l.key]);
|
|
820
822
|
}
|
|
821
823
|
})
|
|
822
824
|
]
|
|
823
825
|
);
|
|
824
|
-
c.push(
|
|
826
|
+
c.push(v);
|
|
825
827
|
}
|
|
826
|
-
const
|
|
828
|
+
const B = y(
|
|
827
829
|
"div",
|
|
828
830
|
{
|
|
829
831
|
class: {
|
|
@@ -841,24 +843,24 @@ const St = w({
|
|
|
841
843
|
border: "thin dashed #bdbdbd"
|
|
842
844
|
},
|
|
843
845
|
onClick: () => {
|
|
844
|
-
i[l.key].push(""),
|
|
846
|
+
i[l.key].push(""), r("change", d, i[l.key]);
|
|
845
847
|
}
|
|
846
848
|
},
|
|
847
|
-
[
|
|
849
|
+
[y(pt, { icon: "$plus" })]
|
|
848
850
|
);
|
|
849
|
-
return c.push(
|
|
851
|
+
return c.push(B), c;
|
|
850
852
|
})()
|
|
851
853
|
)
|
|
852
854
|
]
|
|
853
855
|
);
|
|
854
856
|
console.assert(!1);
|
|
855
857
|
}
|
|
856
|
-
function
|
|
858
|
+
function z(d, l, i) {
|
|
857
859
|
if (l.ui === "void")
|
|
858
|
-
i[l.key] === void 0 && (console.assert(l.default !== void 0), i[l.key] = O(l),
|
|
860
|
+
i[l.key] === void 0 && (console.assert(l.default !== void 0), i[l.key] = O(l), r("change", d, i[l.key]));
|
|
859
861
|
else {
|
|
860
862
|
if (l.ui === "strInput")
|
|
861
|
-
return
|
|
863
|
+
return y(
|
|
862
864
|
"div",
|
|
863
865
|
{
|
|
864
866
|
class: {
|
|
@@ -867,29 +869,29 @@ const St = w({
|
|
|
867
869
|
"align-center": !0
|
|
868
870
|
},
|
|
869
871
|
style: {
|
|
870
|
-
height:
|
|
871
|
-
marginRight:
|
|
872
|
+
height: m.value,
|
|
873
|
+
marginRight: o.value
|
|
872
874
|
}
|
|
873
875
|
},
|
|
874
876
|
[
|
|
875
|
-
|
|
877
|
+
y("span", {
|
|
876
878
|
style: {
|
|
877
879
|
marginLeft: "4px"
|
|
878
880
|
},
|
|
879
|
-
innerHTML: n
|
|
881
|
+
innerHTML: n(l.name)
|
|
880
882
|
}),
|
|
881
|
-
|
|
883
|
+
y(
|
|
882
884
|
"div",
|
|
883
885
|
{
|
|
884
886
|
style: {
|
|
885
|
-
width:
|
|
887
|
+
width: f.value
|
|
886
888
|
}
|
|
887
889
|
},
|
|
888
890
|
[
|
|
889
|
-
|
|
890
|
-
modelValue: l.static ? l.value : (typeof i[l.key] != "string" && (i[l.key] = O(l),
|
|
891
|
+
y(ye, {
|
|
892
|
+
modelValue: l.static ? l.value : (typeof i[l.key] != "string" && (i[l.key] = O(l), r("change", d, i[l.key])), i[l.key]),
|
|
891
893
|
"onUpdate:modelValue": (c) => {
|
|
892
|
-
l.static || c !== i[l.key] && (i[l.key] = c,
|
|
894
|
+
l.static || c !== i[l.key] && (i[l.key] = c, r("change", d, c));
|
|
893
895
|
},
|
|
894
896
|
readonly: l.static || l.readonly
|
|
895
897
|
})
|
|
@@ -898,7 +900,7 @@ const St = w({
|
|
|
898
900
|
]
|
|
899
901
|
);
|
|
900
902
|
if (l.ui === "numInput")
|
|
901
|
-
return
|
|
903
|
+
return y(
|
|
902
904
|
"div",
|
|
903
905
|
{
|
|
904
906
|
class: {
|
|
@@ -907,29 +909,29 @@ const St = w({
|
|
|
907
909
|
"align-center": !0
|
|
908
910
|
},
|
|
909
911
|
style: {
|
|
910
|
-
height:
|
|
911
|
-
marginRight:
|
|
912
|
+
height: m.value,
|
|
913
|
+
marginRight: o.value
|
|
912
914
|
}
|
|
913
915
|
},
|
|
914
916
|
[
|
|
915
|
-
|
|
917
|
+
y("span", {
|
|
916
918
|
style: {
|
|
917
919
|
marginLeft: "4px"
|
|
918
920
|
},
|
|
919
|
-
innerHTML: n
|
|
921
|
+
innerHTML: n(l.name)
|
|
920
922
|
}),
|
|
921
|
-
|
|
923
|
+
y(
|
|
922
924
|
"div",
|
|
923
925
|
{
|
|
924
926
|
style: {
|
|
925
|
-
width:
|
|
927
|
+
width: f.value
|
|
926
928
|
}
|
|
927
929
|
},
|
|
928
930
|
[
|
|
929
|
-
|
|
930
|
-
modelValue: (typeof i[l.key] != "number" && (i[l.key] = O(l),
|
|
931
|
+
y(_t, {
|
|
932
|
+
modelValue: (typeof i[l.key] != "number" && (i[l.key] = O(l), r("change", d, i[l.key])), i[l.key]),
|
|
931
933
|
"onUpdate:modelValue": (c) => {
|
|
932
|
-
c !== i[l.key] && (i[l.key] = c,
|
|
934
|
+
c !== i[l.key] && (i[l.key] = c, r("change", d, c));
|
|
933
935
|
},
|
|
934
936
|
readonly: l.readonly
|
|
935
937
|
})
|
|
@@ -939,7 +941,7 @@ const St = w({
|
|
|
939
941
|
);
|
|
940
942
|
}
|
|
941
943
|
}
|
|
942
|
-
const
|
|
944
|
+
const R = () => y(
|
|
943
945
|
"div",
|
|
944
946
|
{
|
|
945
947
|
class: {
|
|
@@ -948,22 +950,22 @@ const St = w({
|
|
|
948
950
|
},
|
|
949
951
|
(() => {
|
|
950
952
|
const d = [];
|
|
951
|
-
if (
|
|
952
|
-
|
|
953
|
-
const l =
|
|
954
|
-
|
|
955
|
-
const c =
|
|
953
|
+
if (a.unique && a.config && a.object) {
|
|
954
|
+
h[a.unique] || (h[a.unique] = {});
|
|
955
|
+
const l = h[a.unique];
|
|
956
|
+
a.config.forEach((i) => {
|
|
957
|
+
const c = g("", i, a.object, l);
|
|
956
958
|
d.push(c);
|
|
957
959
|
});
|
|
958
960
|
}
|
|
959
961
|
return d;
|
|
960
962
|
})()
|
|
961
963
|
);
|
|
962
|
-
return (d, l) => (
|
|
964
|
+
return (d, l) => (_(), U(R));
|
|
963
965
|
}
|
|
964
|
-
}),
|
|
965
|
-
e.component("x-prop-tree",
|
|
966
|
-
},
|
|
966
|
+
}), At = (e) => {
|
|
967
|
+
e.component("x-prop-tree", $t);
|
|
968
|
+
}, zt = { install: At };
|
|
967
969
|
export {
|
|
968
|
-
|
|
970
|
+
zt as default
|
|
969
971
|
};
|