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