iking-web-ui-pro 0.0.2 → 0.0.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/IKApprovalProcess/index.es.js +1 -1
- package/dist/IKApprovalProcess/index.umd.js +1 -1
- package/dist/IKApprovalProcess/style.css +1 -1
- package/dist/IKApprovalProcessDetail/style.css +1 -1
- package/dist/IKCalendar/index.es.js +1 -1
- package/dist/IKCalendar/index.umd.js +1 -1
- package/dist/IKCalendar/style.css +1 -1
- package/dist/IKDetailPreviewFiles/index.es.js +244 -1424
- package/dist/IKDetailPreviewFiles/index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/index.es.js +143 -1323
- package/dist/IKExpandCollapse/index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKSearch/index.es.js +1 -1
- package/dist/IKSearch/index.umd.js +1 -1
- package/dist/IKSearch/style.css +1 -1
- package/dist/IKVerticalStepBar/index.es.js +190 -1370
- package/dist/IKVerticalStepBar/index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkBaseDialog/index.es.js +234 -0
- package/dist/IkBaseDialog/index.umd.js +1 -0
- package/dist/IkBaseDialog/style.css +1 -0
- package/dist/IkBtnSetting/index.es.js +336 -1517
- package/dist/IkBtnSetting/index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkIconPicker/index.es.js +2885 -1449
- package/dist/IkIconPicker/index.umd.js +5 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkPageFull/index.es.js +1678 -2859
- package/dist/IkPageFull/index.umd.js +3 -3
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPicker/index.es.js +1 -1
- package/dist/IkPicker/index.umd.js +1 -1
- package/dist/IkPicker/style.css +1 -1
- package/dist/IkPickerUser/index.es.js +255 -237
- package/dist/IkPickerUser/index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkSchedule/index.es.js +2181 -3362
- package/dist/IkSchedule/index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSvgIcon/index.es.js +125 -1310
- package/dist/IkSvgIcon/index.umd.js +1 -1
- package/dist/IkUploadFile/index.es.js +955 -596
- package/dist/IkUploadFile/index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/index.es.js +113 -110
- package/dist/IkUploadImage/index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +12914 -11169
- package/dist/index.umd.js +10 -6
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/IkSvgIcon/style.css +0 -1
|
@@ -1,1241 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
if (
|
|
6
|
-
for (const
|
|
7
|
-
t.component(
|
|
8
|
-
},
|
|
9
|
-
for (const [t,
|
|
10
|
-
|
|
11
|
-
return
|
|
1
|
+
import { defineComponent as E, openBlock as u, createElementBlock as v, createElementVNode as _, computed as T, resolveComponent as V, normalizeClass as B, normalizeStyle as D, createCommentVNode as N, createBlock as x, withCtx as y, ref as $, watch as Q, unref as b, createVNode as C, Transition as ne, renderSlot as Y, createTextVNode as z, toDisplayString as L, mergeModels as q, useModel as se, resolveDirective as ie, Fragment as R, withDirectives as G, mergeProps as J, createSlots as re, renderList as ue, pushScopeId as ce, popScopeId as de } from "vue";
|
|
2
|
+
import { ikColor as fe, _ as w, ikStore as P } from "iking-utils";
|
|
3
|
+
import pe from "vuedraggable";
|
|
4
|
+
const W = (l, a) => {
|
|
5
|
+
if (l.install = (t) => {
|
|
6
|
+
for (const d of [l, ...Object.values(a ?? {})])
|
|
7
|
+
t.component(d.name, d);
|
|
8
|
+
}, a)
|
|
9
|
+
for (const [t, d] of Object.entries(a))
|
|
10
|
+
l[t] = d;
|
|
11
|
+
return l;
|
|
12
12
|
};
|
|
13
13
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
14
|
-
var
|
|
14
|
+
var me = /* @__PURE__ */ E({
|
|
15
15
|
name: "DCaret",
|
|
16
16
|
__name: "d-caret",
|
|
17
|
-
setup(
|
|
18
|
-
return (
|
|
17
|
+
setup(l) {
|
|
18
|
+
return (a, t) => (u(), v("svg", {
|
|
19
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
20
|
viewBox: "0 0 1024 1024"
|
|
21
21
|
}, [
|
|
22
|
-
|
|
22
|
+
_("path", {
|
|
23
23
|
fill: "currentColor",
|
|
24
24
|
d: "m512 128 288 320H224zM224 576h576L512 896z"
|
|
25
25
|
})
|
|
26
26
|
]));
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
29
|
-
const
|
|
30
|
-
const t =
|
|
31
|
-
for (const [
|
|
32
|
-
t[
|
|
28
|
+
}), ge = me;
|
|
29
|
+
const Z = (l, a) => {
|
|
30
|
+
const t = l.__vccOpts || l;
|
|
31
|
+
for (const [d, e] of a)
|
|
32
|
+
t[d] = e;
|
|
33
33
|
return t;
|
|
34
|
-
},
|
|
35
|
-
const o = e.split(":");
|
|
36
|
-
if (e.slice(0, 1) === "@") {
|
|
37
|
-
if (o.length < 2 || o.length > 3)
|
|
38
|
-
return null;
|
|
39
|
-
s = o.shift().slice(1);
|
|
40
|
-
}
|
|
41
|
-
if (o.length > 3 || !o.length)
|
|
42
|
-
return null;
|
|
43
|
-
if (o.length > 1) {
|
|
44
|
-
const l = o.pop(), c = o.pop(), a = {
|
|
45
|
-
// Allow provider without '@': "provider:prefix:name"
|
|
46
|
-
provider: o.length > 0 ? o[0] : s,
|
|
47
|
-
prefix: c,
|
|
48
|
-
name: l
|
|
49
|
-
};
|
|
50
|
-
return n && !Y(a) ? null : a;
|
|
51
|
-
}
|
|
52
|
-
const i = o[0], r = i.split("-");
|
|
53
|
-
if (r.length > 1) {
|
|
54
|
-
const l = {
|
|
55
|
-
provider: s,
|
|
56
|
-
prefix: r.shift(),
|
|
57
|
-
name: r.join("-")
|
|
58
|
-
};
|
|
59
|
-
return n && !Y(l) ? null : l;
|
|
60
|
-
}
|
|
61
|
-
if (t && s === "") {
|
|
62
|
-
const l = {
|
|
63
|
-
provider: s,
|
|
64
|
-
prefix: "",
|
|
65
|
-
name: i
|
|
66
|
-
};
|
|
67
|
-
return n && !Y(l, t) ? null : l;
|
|
68
|
-
}
|
|
69
|
-
return null;
|
|
70
|
-
}, Y = (e, n) => e ? !!((e.provider === "" || e.provider.match(Q)) && (n && e.prefix === "" || e.prefix.match(Q)) && e.name.match(Q)) : !1, Ke = Object.freeze(
|
|
71
|
-
{
|
|
72
|
-
left: 0,
|
|
73
|
-
top: 0,
|
|
74
|
-
width: 16,
|
|
75
|
-
height: 16
|
|
76
|
-
}
|
|
77
|
-
), ne = Object.freeze({
|
|
78
|
-
rotate: 0,
|
|
79
|
-
vFlip: !1,
|
|
80
|
-
hFlip: !1
|
|
81
|
-
}), ie = Object.freeze({
|
|
82
|
-
...Ke,
|
|
83
|
-
...ne
|
|
84
|
-
}), ue = Object.freeze({
|
|
85
|
-
...ie,
|
|
86
|
-
body: "",
|
|
87
|
-
hidden: !1
|
|
88
|
-
});
|
|
89
|
-
function kt(e, n) {
|
|
90
|
-
const t = {};
|
|
91
|
-
!e.hFlip != !n.hFlip && (t.hFlip = !0), !e.vFlip != !n.vFlip && (t.vFlip = !0);
|
|
92
|
-
const s = ((e.rotate || 0) + (n.rotate || 0)) % 4;
|
|
93
|
-
return s && (t.rotate = s), t;
|
|
94
|
-
}
|
|
95
|
-
function Me(e, n) {
|
|
96
|
-
const t = kt(e, n);
|
|
97
|
-
for (const s in ue)
|
|
98
|
-
s in ne ? s in e && !(s in t) && (t[s] = ne[s]) : s in n ? t[s] = n[s] : s in e && (t[s] = e[s]);
|
|
99
|
-
return t;
|
|
100
|
-
}
|
|
101
|
-
function wt(e, n) {
|
|
102
|
-
const t = e.icons, s = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
103
|
-
function i(r) {
|
|
104
|
-
if (t[r])
|
|
105
|
-
return o[r] = [];
|
|
106
|
-
if (!(r in o)) {
|
|
107
|
-
o[r] = null;
|
|
108
|
-
const l = s[r] && s[r].parent, c = l && i(l);
|
|
109
|
-
c && (o[r] = [l].concat(c));
|
|
110
|
-
}
|
|
111
|
-
return o[r];
|
|
112
|
-
}
|
|
113
|
-
return (n || Object.keys(t).concat(Object.keys(s))).forEach(i), o;
|
|
114
|
-
}
|
|
115
|
-
function St(e, n, t) {
|
|
116
|
-
const s = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
117
|
-
let i = {};
|
|
118
|
-
function r(l) {
|
|
119
|
-
i = Me(
|
|
120
|
-
s[l] || o[l],
|
|
121
|
-
i
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
return r(n), t.forEach(r), Me(e, i);
|
|
125
|
-
}
|
|
126
|
-
function Ge(e, n) {
|
|
127
|
-
const t = [];
|
|
128
|
-
if (typeof e != "object" || typeof e.icons != "object")
|
|
129
|
-
return t;
|
|
130
|
-
e.not_found instanceof Array && e.not_found.forEach((o) => {
|
|
131
|
-
n(o, null), t.push(o);
|
|
132
|
-
});
|
|
133
|
-
const s = wt(e);
|
|
134
|
-
for (const o in s) {
|
|
135
|
-
const i = s[o];
|
|
136
|
-
i && (n(o, St(e, o, i)), t.push(o));
|
|
137
|
-
}
|
|
138
|
-
return t;
|
|
139
|
-
}
|
|
140
|
-
const It = {
|
|
141
|
-
provider: "",
|
|
142
|
-
aliases: {},
|
|
143
|
-
not_found: {},
|
|
144
|
-
...Ke
|
|
145
|
-
};
|
|
146
|
-
function le(e, n) {
|
|
147
|
-
for (const t in n)
|
|
148
|
-
if (t in e && typeof e[t] != typeof n[t])
|
|
149
|
-
return !1;
|
|
150
|
-
return !0;
|
|
151
|
-
}
|
|
152
|
-
function Je(e) {
|
|
153
|
-
if (typeof e != "object" || e === null)
|
|
154
|
-
return null;
|
|
155
|
-
const n = e;
|
|
156
|
-
if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !le(e, It))
|
|
157
|
-
return null;
|
|
158
|
-
const t = n.icons;
|
|
159
|
-
for (const o in t) {
|
|
160
|
-
const i = t[o];
|
|
161
|
-
if (!o.match(Q) || typeof i.body != "string" || !le(
|
|
162
|
-
i,
|
|
163
|
-
ue
|
|
164
|
-
))
|
|
165
|
-
return null;
|
|
166
|
-
}
|
|
167
|
-
const s = n.aliases || /* @__PURE__ */ Object.create(null);
|
|
168
|
-
for (const o in s) {
|
|
169
|
-
const i = s[o], r = i.parent;
|
|
170
|
-
if (!o.match(Q) || typeof r != "string" || !t[r] && !s[r] || !le(
|
|
171
|
-
i,
|
|
172
|
-
ue
|
|
173
|
-
))
|
|
174
|
-
return null;
|
|
175
|
-
}
|
|
176
|
-
return n;
|
|
177
|
-
}
|
|
178
|
-
const Oe = /* @__PURE__ */ Object.create(null);
|
|
179
|
-
function xt(e, n) {
|
|
180
|
-
return {
|
|
181
|
-
provider: e,
|
|
182
|
-
prefix: n,
|
|
183
|
-
icons: /* @__PURE__ */ Object.create(null),
|
|
184
|
-
missing: /* @__PURE__ */ new Set()
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
function D(e, n) {
|
|
188
|
-
const t = Oe[e] || (Oe[e] = /* @__PURE__ */ Object.create(null));
|
|
189
|
-
return t[n] || (t[n] = xt(e, n));
|
|
190
|
-
}
|
|
191
|
-
function ke(e, n) {
|
|
192
|
-
return Je(n) ? Ge(n, (t, s) => {
|
|
193
|
-
s ? e.icons[t] = s : e.missing.add(t);
|
|
194
|
-
}) : [];
|
|
195
|
-
}
|
|
196
|
-
function _t(e, n, t) {
|
|
197
|
-
try {
|
|
198
|
-
if (typeof t.body == "string")
|
|
199
|
-
return e.icons[n] = { ...t }, !0;
|
|
200
|
-
} catch {
|
|
201
|
-
}
|
|
202
|
-
return !1;
|
|
203
|
-
}
|
|
204
|
-
let W = !1;
|
|
205
|
-
function Xe(e) {
|
|
206
|
-
return typeof e == "boolean" && (W = e), W;
|
|
207
|
-
}
|
|
208
|
-
function Ct(e) {
|
|
209
|
-
const n = typeof e == "string" ? oe(e, !0, W) : e;
|
|
210
|
-
if (n) {
|
|
211
|
-
const t = D(n.provider, n.prefix), s = n.name;
|
|
212
|
-
return t.icons[s] || (t.missing.has(s) ? null : void 0);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
function Tt(e, n) {
|
|
216
|
-
const t = oe(e, !0, W);
|
|
217
|
-
if (!t)
|
|
218
|
-
return !1;
|
|
219
|
-
const s = D(t.provider, t.prefix);
|
|
220
|
-
return _t(s, t.name, n);
|
|
221
|
-
}
|
|
222
|
-
function jt(e, n) {
|
|
223
|
-
if (typeof e != "object")
|
|
224
|
-
return !1;
|
|
225
|
-
if (typeof n != "string" && (n = e.provider || ""), W && !n && !e.prefix) {
|
|
226
|
-
let o = !1;
|
|
227
|
-
return Je(e) && (e.prefix = "", Ge(e, (i, r) => {
|
|
228
|
-
r && Tt(i, r) && (o = !0);
|
|
229
|
-
})), o;
|
|
230
|
-
}
|
|
231
|
-
const t = e.prefix;
|
|
232
|
-
if (!Y({
|
|
233
|
-
provider: n,
|
|
234
|
-
prefix: t,
|
|
235
|
-
name: "a"
|
|
236
|
-
}))
|
|
237
|
-
return !1;
|
|
238
|
-
const s = D(n, t);
|
|
239
|
-
return !!ke(s, e);
|
|
240
|
-
}
|
|
241
|
-
const Ye = Object.freeze({
|
|
242
|
-
width: null,
|
|
243
|
-
height: null
|
|
244
|
-
}), Ze = Object.freeze({
|
|
245
|
-
// Dimensions
|
|
246
|
-
...Ye,
|
|
247
|
-
// Transformations
|
|
248
|
-
...ne
|
|
249
|
-
}), Et = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Lt = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
250
|
-
function Pe(e, n, t) {
|
|
251
|
-
if (n === 1)
|
|
252
|
-
return e;
|
|
253
|
-
if (t = t || 100, typeof e == "number")
|
|
254
|
-
return Math.ceil(e * n * t) / t;
|
|
255
|
-
if (typeof e != "string")
|
|
256
|
-
return e;
|
|
257
|
-
const s = e.split(Et);
|
|
258
|
-
if (s === null || !s.length)
|
|
259
|
-
return e;
|
|
260
|
-
const o = [];
|
|
261
|
-
let i = s.shift(), r = Lt.test(i);
|
|
262
|
-
for (; ; ) {
|
|
263
|
-
if (r) {
|
|
264
|
-
const l = parseFloat(i);
|
|
265
|
-
isNaN(l) ? o.push(i) : o.push(Math.ceil(l * n * t) / t);
|
|
266
|
-
} else
|
|
267
|
-
o.push(i);
|
|
268
|
-
if (i = s.shift(), i === void 0)
|
|
269
|
-
return o.join("");
|
|
270
|
-
r = !r;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
const Mt = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
274
|
-
function Ot(e, n) {
|
|
275
|
-
const t = {
|
|
276
|
-
...ie,
|
|
277
|
-
...e
|
|
278
|
-
}, s = {
|
|
279
|
-
...Ze,
|
|
280
|
-
...n
|
|
281
|
-
}, o = {
|
|
282
|
-
left: t.left,
|
|
283
|
-
top: t.top,
|
|
284
|
-
width: t.width,
|
|
285
|
-
height: t.height
|
|
286
|
-
};
|
|
287
|
-
let i = t.body;
|
|
288
|
-
[t, s].forEach((x) => {
|
|
289
|
-
const y = [], m = x.hFlip, L = x.vFlip;
|
|
290
|
-
let S = x.rotate;
|
|
291
|
-
m ? L ? S += 2 : (y.push(
|
|
292
|
-
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
293
|
-
), y.push("scale(-1 1)"), o.top = o.left = 0) : L && (y.push(
|
|
294
|
-
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
295
|
-
), y.push("scale(1 -1)"), o.top = o.left = 0);
|
|
296
|
-
let k;
|
|
297
|
-
switch (S < 0 && (S -= Math.floor(S / 4) * 4), S = S % 4, S) {
|
|
298
|
-
case 1:
|
|
299
|
-
k = o.height / 2 + o.top, y.unshift(
|
|
300
|
-
"rotate(90 " + k.toString() + " " + k.toString() + ")"
|
|
301
|
-
);
|
|
302
|
-
break;
|
|
303
|
-
case 2:
|
|
304
|
-
y.unshift(
|
|
305
|
-
"rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
|
|
306
|
-
);
|
|
307
|
-
break;
|
|
308
|
-
case 3:
|
|
309
|
-
k = o.width / 2 + o.left, y.unshift(
|
|
310
|
-
"rotate(-90 " + k.toString() + " " + k.toString() + ")"
|
|
311
|
-
);
|
|
312
|
-
break;
|
|
313
|
-
}
|
|
314
|
-
S % 2 === 1 && (o.left !== o.top && (k = o.left, o.left = o.top, o.top = k), o.width !== o.height && (k = o.width, o.width = o.height, o.height = k)), y.length && (i = '<g transform="' + y.join(" ") + '">' + i + "</g>");
|
|
315
|
-
});
|
|
316
|
-
const r = s.width, l = s.height, c = o.width, a = o.height;
|
|
317
|
-
let u, d;
|
|
318
|
-
r === null ? (d = l === null ? "1em" : l === "auto" ? a : l, u = Pe(d, c / a)) : (u = r === "auto" ? c : r, d = l === null ? Pe(u, a / c) : l === "auto" ? a : l);
|
|
319
|
-
const f = {}, w = (x, y) => {
|
|
320
|
-
Mt(y) || (f[x] = y.toString());
|
|
321
|
-
};
|
|
322
|
-
return w("width", u), w("height", d), f.viewBox = o.left.toString() + " " + o.top.toString() + " " + c.toString() + " " + a.toString(), {
|
|
323
|
-
attributes: f,
|
|
324
|
-
body: i
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
const Pt = /\sid="(\S+)"/g, Ft = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
328
|
-
let Bt = 0;
|
|
329
|
-
function $t(e, n = Ft) {
|
|
330
|
-
const t = [];
|
|
331
|
-
let s;
|
|
332
|
-
for (; s = Pt.exec(e); )
|
|
333
|
-
t.push(s[1]);
|
|
334
|
-
if (!t.length)
|
|
335
|
-
return e;
|
|
336
|
-
const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
337
|
-
return t.forEach((i) => {
|
|
338
|
-
const r = typeof n == "function" ? n(i) : n + (Bt++).toString(), l = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
339
|
-
e = e.replace(
|
|
340
|
-
// Allowed characters before id: [#;"]
|
|
341
|
-
// Allowed characters after id: [)"], .[a-z]
|
|
342
|
-
new RegExp('([#;"])(' + l + ')([")]|\\.[a-z])', "g"),
|
|
343
|
-
"$1" + r + o + "$3"
|
|
344
|
-
);
|
|
345
|
-
}), e = e.replace(new RegExp(o, "g"), ""), e;
|
|
346
|
-
}
|
|
347
|
-
const fe = /* @__PURE__ */ Object.create(null);
|
|
348
|
-
function At(e, n) {
|
|
349
|
-
fe[e] = n;
|
|
350
|
-
}
|
|
351
|
-
function de(e) {
|
|
352
|
-
return fe[e] || fe[""];
|
|
353
|
-
}
|
|
354
|
-
function we(e) {
|
|
355
|
-
let n;
|
|
356
|
-
if (typeof e.resources == "string")
|
|
357
|
-
n = [e.resources];
|
|
358
|
-
else if (n = e.resources, !(n instanceof Array) || !n.length)
|
|
359
|
-
return null;
|
|
360
|
-
return {
|
|
361
|
-
// API hosts
|
|
362
|
-
resources: n,
|
|
363
|
-
// Root path
|
|
364
|
-
path: e.path || "/",
|
|
365
|
-
// URL length limit
|
|
366
|
-
maxURL: e.maxURL || 500,
|
|
367
|
-
// Timeout before next host is used.
|
|
368
|
-
rotate: e.rotate || 750,
|
|
369
|
-
// Timeout before failing query.
|
|
370
|
-
timeout: e.timeout || 5e3,
|
|
371
|
-
// Randomise default API end point.
|
|
372
|
-
random: e.random === !0,
|
|
373
|
-
// Start index
|
|
374
|
-
index: e.index || 0,
|
|
375
|
-
// Receive data after time out (used if time out kicks in first, then API module sends data anyway).
|
|
376
|
-
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
const Se = /* @__PURE__ */ Object.create(null), U = [
|
|
380
|
-
"https://api.simplesvg.com",
|
|
381
|
-
"https://api.unisvg.com"
|
|
382
|
-
], Z = [];
|
|
383
|
-
for (; U.length > 0; )
|
|
384
|
-
U.length === 1 || Math.random() > 0.5 ? Z.push(U.shift()) : Z.push(U.pop());
|
|
385
|
-
Se[""] = we({
|
|
386
|
-
resources: ["https://api.iconify.design"].concat(Z)
|
|
387
|
-
});
|
|
388
|
-
function Dt(e, n) {
|
|
389
|
-
const t = we(n);
|
|
390
|
-
return t === null ? !1 : (Se[e] = t, !0);
|
|
391
|
-
}
|
|
392
|
-
function Ie(e) {
|
|
393
|
-
return Se[e];
|
|
394
|
-
}
|
|
395
|
-
const Nt = () => {
|
|
396
|
-
let e;
|
|
397
|
-
try {
|
|
398
|
-
if (e = fetch, typeof e == "function")
|
|
399
|
-
return e;
|
|
400
|
-
} catch {
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
let Fe = Nt();
|
|
404
|
-
function zt(e, n) {
|
|
405
|
-
const t = Ie(e);
|
|
406
|
-
if (!t)
|
|
407
|
-
return 0;
|
|
408
|
-
let s;
|
|
409
|
-
if (!t.maxURL)
|
|
410
|
-
s = 0;
|
|
411
|
-
else {
|
|
412
|
-
let o = 0;
|
|
413
|
-
t.resources.forEach((r) => {
|
|
414
|
-
o = Math.max(o, r.length);
|
|
415
|
-
});
|
|
416
|
-
const i = n + ".json?icons=";
|
|
417
|
-
s = t.maxURL - o - t.path.length - i.length;
|
|
418
|
-
}
|
|
419
|
-
return s;
|
|
420
|
-
}
|
|
421
|
-
function Vt(e) {
|
|
422
|
-
return e === 404;
|
|
423
|
-
}
|
|
424
|
-
const Ht = (e, n, t) => {
|
|
425
|
-
const s = [], o = zt(e, n), i = "icons";
|
|
426
|
-
let r = {
|
|
427
|
-
type: i,
|
|
428
|
-
provider: e,
|
|
429
|
-
prefix: n,
|
|
430
|
-
icons: []
|
|
431
|
-
}, l = 0;
|
|
432
|
-
return t.forEach((c, a) => {
|
|
433
|
-
l += c.length + 1, l >= o && a > 0 && (s.push(r), r = {
|
|
434
|
-
type: i,
|
|
435
|
-
provider: e,
|
|
436
|
-
prefix: n,
|
|
437
|
-
icons: []
|
|
438
|
-
}, l = c.length), r.icons.push(c);
|
|
439
|
-
}), s.push(r), s;
|
|
440
|
-
};
|
|
441
|
-
function Rt(e) {
|
|
442
|
-
if (typeof e == "string") {
|
|
443
|
-
const n = Ie(e);
|
|
444
|
-
if (n)
|
|
445
|
-
return n.path;
|
|
446
|
-
}
|
|
447
|
-
return "/";
|
|
448
|
-
}
|
|
449
|
-
const Ut = (e, n, t) => {
|
|
450
|
-
if (!Fe) {
|
|
451
|
-
t("abort", 424);
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
let s = Rt(n.provider);
|
|
455
|
-
switch (n.type) {
|
|
456
|
-
case "icons": {
|
|
457
|
-
const i = n.prefix, l = n.icons.join(","), c = new URLSearchParams({
|
|
458
|
-
icons: l
|
|
459
|
-
});
|
|
460
|
-
s += i + ".json?" + c.toString();
|
|
461
|
-
break;
|
|
462
|
-
}
|
|
463
|
-
case "custom": {
|
|
464
|
-
const i = n.uri;
|
|
465
|
-
s += i.slice(0, 1) === "/" ? i.slice(1) : i;
|
|
466
|
-
break;
|
|
467
|
-
}
|
|
468
|
-
default:
|
|
469
|
-
t("abort", 400);
|
|
470
|
-
return;
|
|
471
|
-
}
|
|
472
|
-
let o = 503;
|
|
473
|
-
Fe(e + s).then((i) => {
|
|
474
|
-
const r = i.status;
|
|
475
|
-
if (r !== 200) {
|
|
476
|
-
setTimeout(() => {
|
|
477
|
-
t(Vt(r) ? "abort" : "next", r);
|
|
478
|
-
});
|
|
479
|
-
return;
|
|
480
|
-
}
|
|
481
|
-
return o = 501, i.json();
|
|
482
|
-
}).then((i) => {
|
|
483
|
-
if (typeof i != "object" || i === null) {
|
|
484
|
-
setTimeout(() => {
|
|
485
|
-
i === 404 ? t("abort", i) : t("next", o);
|
|
486
|
-
});
|
|
487
|
-
return;
|
|
488
|
-
}
|
|
489
|
-
setTimeout(() => {
|
|
490
|
-
t("success", i);
|
|
491
|
-
});
|
|
492
|
-
}).catch(() => {
|
|
493
|
-
t("next", o);
|
|
494
|
-
});
|
|
495
|
-
}, qt = {
|
|
496
|
-
prepare: Ht,
|
|
497
|
-
send: Ut
|
|
498
|
-
};
|
|
499
|
-
function Qt(e) {
|
|
500
|
-
const n = {
|
|
501
|
-
loaded: [],
|
|
502
|
-
missing: [],
|
|
503
|
-
pending: []
|
|
504
|
-
}, t = /* @__PURE__ */ Object.create(null);
|
|
505
|
-
e.sort((o, i) => o.provider !== i.provider ? o.provider.localeCompare(i.provider) : o.prefix !== i.prefix ? o.prefix.localeCompare(i.prefix) : o.name.localeCompare(i.name));
|
|
506
|
-
let s = {
|
|
507
|
-
provider: "",
|
|
508
|
-
prefix: "",
|
|
509
|
-
name: ""
|
|
510
|
-
};
|
|
511
|
-
return e.forEach((o) => {
|
|
512
|
-
if (s.name === o.name && s.prefix === o.prefix && s.provider === o.provider)
|
|
513
|
-
return;
|
|
514
|
-
s = o;
|
|
515
|
-
const i = o.provider, r = o.prefix, l = o.name, c = t[i] || (t[i] = /* @__PURE__ */ Object.create(null)), a = c[r] || (c[r] = D(i, r));
|
|
516
|
-
let u;
|
|
517
|
-
l in a.icons ? u = n.loaded : r === "" || a.missing.has(l) ? u = n.missing : u = n.pending;
|
|
518
|
-
const d = {
|
|
519
|
-
provider: i,
|
|
520
|
-
prefix: r,
|
|
521
|
-
name: l
|
|
522
|
-
};
|
|
523
|
-
u.push(d);
|
|
524
|
-
}), n;
|
|
525
|
-
}
|
|
526
|
-
function et(e, n) {
|
|
527
|
-
e.forEach((t) => {
|
|
528
|
-
const s = t.loaderCallbacks;
|
|
529
|
-
s && (t.loaderCallbacks = s.filter((o) => o.id !== n));
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
function Wt(e) {
|
|
533
|
-
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
534
|
-
e.pendingCallbacksFlag = !1;
|
|
535
|
-
const n = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
536
|
-
if (!n.length)
|
|
537
|
-
return;
|
|
538
|
-
let t = !1;
|
|
539
|
-
const s = e.provider, o = e.prefix;
|
|
540
|
-
n.forEach((i) => {
|
|
541
|
-
const r = i.icons, l = r.pending.length;
|
|
542
|
-
r.pending = r.pending.filter((c) => {
|
|
543
|
-
if (c.prefix !== o)
|
|
544
|
-
return !0;
|
|
545
|
-
const a = c.name;
|
|
546
|
-
if (e.icons[a])
|
|
547
|
-
r.loaded.push({
|
|
548
|
-
provider: s,
|
|
549
|
-
prefix: o,
|
|
550
|
-
name: a
|
|
551
|
-
});
|
|
552
|
-
else if (e.missing.has(a))
|
|
553
|
-
r.missing.push({
|
|
554
|
-
provider: s,
|
|
555
|
-
prefix: o,
|
|
556
|
-
name: a
|
|
557
|
-
});
|
|
558
|
-
else
|
|
559
|
-
return t = !0, !0;
|
|
560
|
-
return !1;
|
|
561
|
-
}), r.pending.length !== l && (t || et([e], i.id), i.callback(
|
|
562
|
-
r.loaded.slice(0),
|
|
563
|
-
r.missing.slice(0),
|
|
564
|
-
r.pending.slice(0),
|
|
565
|
-
i.abort
|
|
566
|
-
));
|
|
567
|
-
});
|
|
568
|
-
}));
|
|
569
|
-
}
|
|
570
|
-
let Kt = 0;
|
|
571
|
-
function Gt(e, n, t) {
|
|
572
|
-
const s = Kt++, o = et.bind(null, t, s);
|
|
573
|
-
if (!n.pending.length)
|
|
574
|
-
return o;
|
|
575
|
-
const i = {
|
|
576
|
-
id: s,
|
|
577
|
-
icons: n,
|
|
578
|
-
callback: e,
|
|
579
|
-
abort: o
|
|
580
|
-
};
|
|
581
|
-
return t.forEach((r) => {
|
|
582
|
-
(r.loaderCallbacks || (r.loaderCallbacks = [])).push(i);
|
|
583
|
-
}), o;
|
|
584
|
-
}
|
|
585
|
-
function Jt(e, n = !0, t = !1) {
|
|
586
|
-
const s = [];
|
|
587
|
-
return e.forEach((o) => {
|
|
588
|
-
const i = typeof o == "string" ? oe(o, n, t) : o;
|
|
589
|
-
i && s.push(i);
|
|
590
|
-
}), s;
|
|
591
|
-
}
|
|
592
|
-
var Xt = {
|
|
593
|
-
resources: [],
|
|
594
|
-
index: 0,
|
|
595
|
-
timeout: 2e3,
|
|
596
|
-
rotate: 750,
|
|
597
|
-
random: !1,
|
|
598
|
-
dataAfterTimeout: !1
|
|
599
|
-
};
|
|
600
|
-
function Yt(e, n, t, s) {
|
|
601
|
-
const o = e.resources.length, i = e.random ? Math.floor(Math.random() * o) : e.index;
|
|
602
|
-
let r;
|
|
603
|
-
if (e.random) {
|
|
604
|
-
let b = e.resources.slice(0);
|
|
605
|
-
for (r = []; b.length > 1; ) {
|
|
606
|
-
const p = Math.floor(Math.random() * b.length);
|
|
607
|
-
r.push(b[p]), b = b.slice(0, p).concat(b.slice(p + 1));
|
|
608
|
-
}
|
|
609
|
-
r = r.concat(b);
|
|
610
|
-
} else
|
|
611
|
-
r = e.resources.slice(i).concat(e.resources.slice(0, i));
|
|
612
|
-
const l = Date.now();
|
|
613
|
-
let c = "pending", a = 0, u, d = null, f = [], w = [];
|
|
614
|
-
typeof s == "function" && w.push(s);
|
|
615
|
-
function x() {
|
|
616
|
-
d && (clearTimeout(d), d = null);
|
|
617
|
-
}
|
|
618
|
-
function y() {
|
|
619
|
-
c === "pending" && (c = "aborted"), x(), f.forEach((b) => {
|
|
620
|
-
b.status === "pending" && (b.status = "aborted");
|
|
621
|
-
}), f = [];
|
|
622
|
-
}
|
|
623
|
-
function m(b, p) {
|
|
624
|
-
p && (w = []), typeof b == "function" && w.push(b);
|
|
625
|
-
}
|
|
626
|
-
function L() {
|
|
627
|
-
return {
|
|
628
|
-
startTime: l,
|
|
629
|
-
payload: n,
|
|
630
|
-
status: c,
|
|
631
|
-
queriesSent: a,
|
|
632
|
-
queriesPending: f.length,
|
|
633
|
-
subscribe: m,
|
|
634
|
-
abort: y
|
|
635
|
-
};
|
|
636
|
-
}
|
|
637
|
-
function S() {
|
|
638
|
-
c = "failed", w.forEach((b) => {
|
|
639
|
-
b(void 0, u);
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
function k() {
|
|
643
|
-
f.forEach((b) => {
|
|
644
|
-
b.status === "pending" && (b.status = "aborted");
|
|
645
|
-
}), f = [];
|
|
646
|
-
}
|
|
647
|
-
function J(b, p, g) {
|
|
648
|
-
const v = p !== "success";
|
|
649
|
-
switch (f = f.filter((h) => h !== b), c) {
|
|
650
|
-
case "pending":
|
|
651
|
-
break;
|
|
652
|
-
case "failed":
|
|
653
|
-
if (v || !e.dataAfterTimeout)
|
|
654
|
-
return;
|
|
655
|
-
break;
|
|
656
|
-
default:
|
|
657
|
-
return;
|
|
658
|
-
}
|
|
659
|
-
if (p === "abort") {
|
|
660
|
-
u = g, S();
|
|
661
|
-
return;
|
|
662
|
-
}
|
|
663
|
-
if (v) {
|
|
664
|
-
u = g, f.length || (r.length ? R() : S());
|
|
665
|
-
return;
|
|
666
|
-
}
|
|
667
|
-
if (x(), k(), !e.random) {
|
|
668
|
-
const h = e.resources.indexOf(b.resource);
|
|
669
|
-
h !== -1 && h !== e.index && (e.index = h);
|
|
670
|
-
}
|
|
671
|
-
c = "completed", w.forEach((h) => {
|
|
672
|
-
h(g);
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
function R() {
|
|
676
|
-
if (c !== "pending")
|
|
677
|
-
return;
|
|
678
|
-
x();
|
|
679
|
-
const b = r.shift();
|
|
680
|
-
if (b === void 0) {
|
|
681
|
-
if (f.length) {
|
|
682
|
-
d = setTimeout(() => {
|
|
683
|
-
x(), c === "pending" && (k(), S());
|
|
684
|
-
}, e.timeout);
|
|
685
|
-
return;
|
|
686
|
-
}
|
|
687
|
-
S();
|
|
688
|
-
return;
|
|
689
|
-
}
|
|
690
|
-
const p = {
|
|
691
|
-
status: "pending",
|
|
692
|
-
resource: b,
|
|
693
|
-
callback: (g, v) => {
|
|
694
|
-
J(p, g, v);
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
|
-
f.push(p), a++, d = setTimeout(R, e.rotate), t(b, n, p.callback);
|
|
698
|
-
}
|
|
699
|
-
return setTimeout(R), L;
|
|
700
|
-
}
|
|
701
|
-
function tt(e) {
|
|
702
|
-
const n = {
|
|
703
|
-
...Xt,
|
|
704
|
-
...e
|
|
705
|
-
};
|
|
706
|
-
let t = [];
|
|
707
|
-
function s() {
|
|
708
|
-
t = t.filter((l) => l().status === "pending");
|
|
709
|
-
}
|
|
710
|
-
function o(l, c, a) {
|
|
711
|
-
const u = Yt(
|
|
712
|
-
n,
|
|
713
|
-
l,
|
|
714
|
-
c,
|
|
715
|
-
(d, f) => {
|
|
716
|
-
s(), a && a(d, f);
|
|
717
|
-
}
|
|
718
|
-
);
|
|
719
|
-
return t.push(u), u;
|
|
720
|
-
}
|
|
721
|
-
function i(l) {
|
|
722
|
-
return t.find((c) => l(c)) || null;
|
|
723
|
-
}
|
|
724
|
-
return {
|
|
725
|
-
query: o,
|
|
726
|
-
find: i,
|
|
727
|
-
setIndex: (l) => {
|
|
728
|
-
n.index = l;
|
|
729
|
-
},
|
|
730
|
-
getIndex: () => n.index,
|
|
731
|
-
cleanup: s
|
|
732
|
-
};
|
|
733
|
-
}
|
|
734
|
-
function Be() {
|
|
735
|
-
}
|
|
736
|
-
const ae = /* @__PURE__ */ Object.create(null);
|
|
737
|
-
function Zt(e) {
|
|
738
|
-
if (!ae[e]) {
|
|
739
|
-
const n = Ie(e);
|
|
740
|
-
if (!n)
|
|
741
|
-
return;
|
|
742
|
-
const t = tt(n), s = {
|
|
743
|
-
config: n,
|
|
744
|
-
redundancy: t
|
|
745
|
-
};
|
|
746
|
-
ae[e] = s;
|
|
747
|
-
}
|
|
748
|
-
return ae[e];
|
|
749
|
-
}
|
|
750
|
-
function en(e, n, t) {
|
|
751
|
-
let s, o;
|
|
752
|
-
if (typeof e == "string") {
|
|
753
|
-
const i = de(e);
|
|
754
|
-
if (!i)
|
|
755
|
-
return t(void 0, 424), Be;
|
|
756
|
-
o = i.send;
|
|
757
|
-
const r = Zt(e);
|
|
758
|
-
r && (s = r.redundancy);
|
|
759
|
-
} else {
|
|
760
|
-
const i = we(e);
|
|
761
|
-
if (i) {
|
|
762
|
-
s = tt(i);
|
|
763
|
-
const r = e.resources ? e.resources[0] : "", l = de(r);
|
|
764
|
-
l && (o = l.send);
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
return !s || !o ? (t(void 0, 424), Be) : s.query(n, o, t)().abort;
|
|
768
|
-
}
|
|
769
|
-
const $e = "iconify2", K = "iconify", nt = K + "-count", Ae = K + "-version", ot = 36e5, tn = 168;
|
|
770
|
-
function pe(e, n) {
|
|
771
|
-
try {
|
|
772
|
-
return e.getItem(n);
|
|
773
|
-
} catch {
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
function xe(e, n, t) {
|
|
777
|
-
try {
|
|
778
|
-
return e.setItem(n, t), !0;
|
|
779
|
-
} catch {
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
function De(e, n) {
|
|
783
|
-
try {
|
|
784
|
-
e.removeItem(n);
|
|
785
|
-
} catch {
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
function he(e, n) {
|
|
789
|
-
return xe(e, nt, n.toString());
|
|
790
|
-
}
|
|
791
|
-
function ge(e) {
|
|
792
|
-
return parseInt(pe(e, nt)) || 0;
|
|
793
|
-
}
|
|
794
|
-
const se = {
|
|
795
|
-
local: !0,
|
|
796
|
-
session: !0
|
|
797
|
-
}, it = {
|
|
798
|
-
local: /* @__PURE__ */ new Set(),
|
|
799
|
-
session: /* @__PURE__ */ new Set()
|
|
800
|
-
};
|
|
801
|
-
let _e = !1;
|
|
802
|
-
function nn(e) {
|
|
803
|
-
_e = e;
|
|
804
|
-
}
|
|
805
|
-
let X = typeof window > "u" ? {} : window;
|
|
806
|
-
function st(e) {
|
|
807
|
-
const n = e + "Storage";
|
|
808
|
-
try {
|
|
809
|
-
if (X && X[n] && typeof X[n].length == "number")
|
|
810
|
-
return X[n];
|
|
811
|
-
} catch {
|
|
812
|
-
}
|
|
813
|
-
se[e] = !1;
|
|
814
|
-
}
|
|
815
|
-
function rt(e, n) {
|
|
816
|
-
const t = st(e);
|
|
817
|
-
if (!t)
|
|
818
|
-
return;
|
|
819
|
-
const s = pe(t, Ae);
|
|
820
|
-
if (s !== $e) {
|
|
821
|
-
if (s) {
|
|
822
|
-
const l = ge(t);
|
|
823
|
-
for (let c = 0; c < l; c++)
|
|
824
|
-
De(t, K + c.toString());
|
|
825
|
-
}
|
|
826
|
-
xe(t, Ae, $e), he(t, 0);
|
|
827
|
-
return;
|
|
828
|
-
}
|
|
829
|
-
const o = Math.floor(Date.now() / ot) - tn, i = (l) => {
|
|
830
|
-
const c = K + l.toString(), a = pe(t, c);
|
|
831
|
-
if (typeof a == "string") {
|
|
832
|
-
try {
|
|
833
|
-
const u = JSON.parse(a);
|
|
834
|
-
if (typeof u == "object" && typeof u.cached == "number" && u.cached > o && typeof u.provider == "string" && typeof u.data == "object" && typeof u.data.prefix == "string" && // Valid item: run callback
|
|
835
|
-
n(u, l))
|
|
836
|
-
return !0;
|
|
837
|
-
} catch {
|
|
838
|
-
}
|
|
839
|
-
De(t, c);
|
|
840
|
-
}
|
|
841
|
-
};
|
|
842
|
-
let r = ge(t);
|
|
843
|
-
for (let l = r - 1; l >= 0; l--)
|
|
844
|
-
i(l) || (l === r - 1 ? (r--, he(t, r)) : it[e].add(l));
|
|
845
|
-
}
|
|
846
|
-
function lt() {
|
|
847
|
-
if (!_e) {
|
|
848
|
-
nn(!0);
|
|
849
|
-
for (const e in se)
|
|
850
|
-
rt(e, (n) => {
|
|
851
|
-
const t = n.data, s = n.provider, o = t.prefix, i = D(
|
|
852
|
-
s,
|
|
853
|
-
o
|
|
854
|
-
);
|
|
855
|
-
if (!ke(i, t).length)
|
|
856
|
-
return !1;
|
|
857
|
-
const r = t.lastModified || -1;
|
|
858
|
-
return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, r) : r, !0;
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
function on(e, n) {
|
|
863
|
-
const t = e.lastModifiedCached;
|
|
864
|
-
if (
|
|
865
|
-
// Matches or newer
|
|
866
|
-
t && t >= n
|
|
867
|
-
)
|
|
868
|
-
return t === n;
|
|
869
|
-
if (e.lastModifiedCached = n, t)
|
|
870
|
-
for (const s in se)
|
|
871
|
-
rt(s, (o) => {
|
|
872
|
-
const i = o.data;
|
|
873
|
-
return o.provider !== e.provider || i.prefix !== e.prefix || i.lastModified === n;
|
|
874
|
-
});
|
|
875
|
-
return !0;
|
|
876
|
-
}
|
|
877
|
-
function sn(e, n) {
|
|
878
|
-
_e || lt();
|
|
879
|
-
function t(s) {
|
|
880
|
-
let o;
|
|
881
|
-
if (!se[s] || !(o = st(s)))
|
|
882
|
-
return;
|
|
883
|
-
const i = it[s];
|
|
884
|
-
let r;
|
|
885
|
-
if (i.size)
|
|
886
|
-
i.delete(r = Array.from(i).shift());
|
|
887
|
-
else if (r = ge(o), !he(o, r + 1))
|
|
888
|
-
return;
|
|
889
|
-
const l = {
|
|
890
|
-
cached: Math.floor(Date.now() / ot),
|
|
891
|
-
provider: e.provider,
|
|
892
|
-
data: n
|
|
893
|
-
};
|
|
894
|
-
return xe(
|
|
895
|
-
o,
|
|
896
|
-
K + r.toString(),
|
|
897
|
-
JSON.stringify(l)
|
|
898
|
-
);
|
|
899
|
-
}
|
|
900
|
-
n.lastModified && !on(e, n.lastModified) || Object.keys(n.icons).length && (n.not_found && (n = Object.assign({}, n), delete n.not_found), t("local") || t("session"));
|
|
901
|
-
}
|
|
902
|
-
function Ne() {
|
|
903
|
-
}
|
|
904
|
-
function rn(e) {
|
|
905
|
-
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
906
|
-
e.iconsLoaderFlag = !1, Wt(e);
|
|
907
|
-
}));
|
|
908
|
-
}
|
|
909
|
-
function ln(e, n) {
|
|
910
|
-
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(n).sort() : e.iconsToLoad = n, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
911
|
-
e.iconsQueueFlag = !1;
|
|
912
|
-
const { provider: t, prefix: s } = e, o = e.iconsToLoad;
|
|
913
|
-
delete e.iconsToLoad;
|
|
914
|
-
let i;
|
|
915
|
-
if (!o || !(i = de(t)))
|
|
916
|
-
return;
|
|
917
|
-
i.prepare(t, s, o).forEach((l) => {
|
|
918
|
-
en(t, l, (c) => {
|
|
919
|
-
if (typeof c != "object")
|
|
920
|
-
l.icons.forEach((a) => {
|
|
921
|
-
e.missing.add(a);
|
|
922
|
-
});
|
|
923
|
-
else
|
|
924
|
-
try {
|
|
925
|
-
const a = ke(
|
|
926
|
-
e,
|
|
927
|
-
c
|
|
928
|
-
);
|
|
929
|
-
if (!a.length)
|
|
930
|
-
return;
|
|
931
|
-
const u = e.pendingIcons;
|
|
932
|
-
u && a.forEach((d) => {
|
|
933
|
-
u.delete(d);
|
|
934
|
-
}), sn(e, c);
|
|
935
|
-
} catch (a) {
|
|
936
|
-
console.error(a);
|
|
937
|
-
}
|
|
938
|
-
rn(e);
|
|
939
|
-
});
|
|
940
|
-
});
|
|
941
|
-
}));
|
|
942
|
-
}
|
|
943
|
-
const an = (e, n) => {
|
|
944
|
-
const t = Jt(e, !0, Xe()), s = Qt(t);
|
|
945
|
-
if (!s.pending.length) {
|
|
946
|
-
let c = !0;
|
|
947
|
-
return n && setTimeout(() => {
|
|
948
|
-
c && n(
|
|
949
|
-
s.loaded,
|
|
950
|
-
s.missing,
|
|
951
|
-
s.pending,
|
|
952
|
-
Ne
|
|
953
|
-
);
|
|
954
|
-
}), () => {
|
|
955
|
-
c = !1;
|
|
956
|
-
};
|
|
957
|
-
}
|
|
958
|
-
const o = /* @__PURE__ */ Object.create(null), i = [];
|
|
959
|
-
let r, l;
|
|
960
|
-
return s.pending.forEach((c) => {
|
|
961
|
-
const { provider: a, prefix: u } = c;
|
|
962
|
-
if (u === l && a === r)
|
|
963
|
-
return;
|
|
964
|
-
r = a, l = u, i.push(D(a, u));
|
|
965
|
-
const d = o[a] || (o[a] = /* @__PURE__ */ Object.create(null));
|
|
966
|
-
d[u] || (d[u] = []);
|
|
967
|
-
}), s.pending.forEach((c) => {
|
|
968
|
-
const { provider: a, prefix: u, name: d } = c, f = D(a, u), w = f.pendingIcons || (f.pendingIcons = /* @__PURE__ */ new Set());
|
|
969
|
-
w.has(d) || (w.add(d), o[a][u].push(d));
|
|
970
|
-
}), i.forEach((c) => {
|
|
971
|
-
const { provider: a, prefix: u } = c;
|
|
972
|
-
o[a][u].length && ln(c, o[a][u]);
|
|
973
|
-
}), n ? Gt(n, s, i) : Ne;
|
|
974
|
-
};
|
|
975
|
-
function cn(e, n) {
|
|
976
|
-
const t = {
|
|
977
|
-
...e
|
|
978
|
-
};
|
|
979
|
-
for (const s in n) {
|
|
980
|
-
const o = n[s], i = typeof o;
|
|
981
|
-
s in Ye ? (o === null || o && (i === "string" || i === "number")) && (t[s] = o) : i === typeof t[s] && (t[s] = s === "rotate" ? o % 4 : o);
|
|
982
|
-
}
|
|
983
|
-
return t;
|
|
984
|
-
}
|
|
985
|
-
const un = /[\s,]+/;
|
|
986
|
-
function fn(e, n) {
|
|
987
|
-
n.split(un).forEach((t) => {
|
|
988
|
-
switch (t.trim()) {
|
|
989
|
-
case "horizontal":
|
|
990
|
-
e.hFlip = !0;
|
|
991
|
-
break;
|
|
992
|
-
case "vertical":
|
|
993
|
-
e.vFlip = !0;
|
|
994
|
-
break;
|
|
995
|
-
}
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
function dn(e, n = 0) {
|
|
999
|
-
const t = e.replace(/^-?[0-9.]*/, "");
|
|
1000
|
-
function s(o) {
|
|
1001
|
-
for (; o < 0; )
|
|
1002
|
-
o += 4;
|
|
1003
|
-
return o % 4;
|
|
1004
|
-
}
|
|
1005
|
-
if (t === "") {
|
|
1006
|
-
const o = parseInt(e);
|
|
1007
|
-
return isNaN(o) ? 0 : s(o);
|
|
1008
|
-
} else if (t !== e) {
|
|
1009
|
-
let o = 0;
|
|
1010
|
-
switch (t) {
|
|
1011
|
-
case "%":
|
|
1012
|
-
o = 25;
|
|
1013
|
-
break;
|
|
1014
|
-
case "deg":
|
|
1015
|
-
o = 90;
|
|
1016
|
-
}
|
|
1017
|
-
if (o) {
|
|
1018
|
-
let i = parseFloat(e.slice(0, e.length - t.length));
|
|
1019
|
-
return isNaN(i) ? 0 : (i = i / o, i % 1 === 0 ? s(i) : 0);
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
return n;
|
|
1023
|
-
}
|
|
1024
|
-
function pn(e, n) {
|
|
1025
|
-
let t = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
1026
|
-
for (const s in n)
|
|
1027
|
-
t += " " + s + '="' + n[s] + '"';
|
|
1028
|
-
return '<svg xmlns="http://www.w3.org/2000/svg"' + t + ">" + e + "</svg>";
|
|
1029
|
-
}
|
|
1030
|
-
function hn(e) {
|
|
1031
|
-
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1032
|
-
}
|
|
1033
|
-
function gn(e) {
|
|
1034
|
-
return "data:image/svg+xml," + hn(e);
|
|
1035
|
-
}
|
|
1036
|
-
function mn(e) {
|
|
1037
|
-
return 'url("' + gn(e) + '")';
|
|
1038
|
-
}
|
|
1039
|
-
const ze = {
|
|
1040
|
-
...Ze,
|
|
1041
|
-
inline: !1
|
|
1042
|
-
}, yn = {
|
|
1043
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1044
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1045
|
-
"aria-hidden": !0,
|
|
1046
|
-
role: "img"
|
|
1047
|
-
}, bn = {
|
|
1048
|
-
display: "inline-block"
|
|
1049
|
-
}, me = {
|
|
1050
|
-
backgroundColor: "currentColor"
|
|
1051
|
-
}, at = {
|
|
1052
|
-
backgroundColor: "transparent"
|
|
1053
|
-
}, Ve = {
|
|
1054
|
-
Image: "var(--svg)",
|
|
1055
|
-
Repeat: "no-repeat",
|
|
1056
|
-
Size: "100% 100%"
|
|
1057
|
-
}, He = {
|
|
1058
|
-
webkitMask: me,
|
|
1059
|
-
mask: me,
|
|
1060
|
-
background: at
|
|
1061
|
-
};
|
|
1062
|
-
for (const e in He) {
|
|
1063
|
-
const n = He[e];
|
|
1064
|
-
for (const t in Ve)
|
|
1065
|
-
n[e + t] = Ve[t];
|
|
1066
|
-
}
|
|
1067
|
-
const ee = {};
|
|
1068
|
-
["horizontal", "vertical"].forEach((e) => {
|
|
1069
|
-
const n = e.slice(0, 1) + "Flip";
|
|
1070
|
-
ee[e + "-flip"] = n, ee[e.slice(0, 1) + "-flip"] = n, ee[e + "Flip"] = n;
|
|
1071
|
-
});
|
|
1072
|
-
function Re(e) {
|
|
1073
|
-
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1074
|
-
}
|
|
1075
|
-
const Ue = (e, n) => {
|
|
1076
|
-
const t = cn(ze, n), s = { ...yn }, o = n.mode || "svg", i = {}, r = n.style, l = typeof r == "object" && !(r instanceof Array) ? r : {};
|
|
1077
|
-
for (let y in n) {
|
|
1078
|
-
const m = n[y];
|
|
1079
|
-
if (m !== void 0)
|
|
1080
|
-
switch (y) {
|
|
1081
|
-
case "icon":
|
|
1082
|
-
case "style":
|
|
1083
|
-
case "onLoad":
|
|
1084
|
-
case "mode":
|
|
1085
|
-
break;
|
|
1086
|
-
case "inline":
|
|
1087
|
-
case "hFlip":
|
|
1088
|
-
case "vFlip":
|
|
1089
|
-
t[y] = m === !0 || m === "true" || m === 1;
|
|
1090
|
-
break;
|
|
1091
|
-
case "flip":
|
|
1092
|
-
typeof m == "string" && fn(t, m);
|
|
1093
|
-
break;
|
|
1094
|
-
case "color":
|
|
1095
|
-
i.color = m;
|
|
1096
|
-
break;
|
|
1097
|
-
case "rotate":
|
|
1098
|
-
typeof m == "string" ? t[y] = dn(m) : typeof m == "number" && (t[y] = m);
|
|
1099
|
-
break;
|
|
1100
|
-
case "ariaHidden":
|
|
1101
|
-
case "aria-hidden":
|
|
1102
|
-
m !== !0 && m !== "true" && delete s["aria-hidden"];
|
|
1103
|
-
break;
|
|
1104
|
-
default: {
|
|
1105
|
-
const L = ee[y];
|
|
1106
|
-
L ? (m === !0 || m === "true" || m === 1) && (t[L] = !0) : ze[y] === void 0 && (s[y] = m);
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
const c = Ot(e, t), a = c.attributes;
|
|
1111
|
-
if (t.inline && (i.verticalAlign = "-0.125em"), o === "svg") {
|
|
1112
|
-
s.style = {
|
|
1113
|
-
...i,
|
|
1114
|
-
...l
|
|
1115
|
-
}, Object.assign(s, a);
|
|
1116
|
-
let y = 0, m = n.id;
|
|
1117
|
-
return typeof m == "string" && (m = m.replace(/-/g, "_")), s.innerHTML = $t(c.body, m ? () => m + "ID" + y++ : "iconifyVue"), Ce("svg", s);
|
|
1118
|
-
}
|
|
1119
|
-
const { body: u, width: d, height: f } = e, w = o === "mask" || (o === "bg" ? !1 : u.indexOf("currentColor") !== -1), x = pn(u, {
|
|
1120
|
-
...a,
|
|
1121
|
-
width: d + "",
|
|
1122
|
-
height: f + ""
|
|
1123
|
-
});
|
|
1124
|
-
return s.style = {
|
|
1125
|
-
...i,
|
|
1126
|
-
"--svg": mn(x),
|
|
1127
|
-
width: Re(a.width),
|
|
1128
|
-
height: Re(a.height),
|
|
1129
|
-
...bn,
|
|
1130
|
-
...w ? me : at,
|
|
1131
|
-
...l
|
|
1132
|
-
}, Ce("span", s);
|
|
1133
|
-
};
|
|
1134
|
-
Xe(!0);
|
|
1135
|
-
At("", qt);
|
|
1136
|
-
if (typeof document < "u" && typeof window < "u") {
|
|
1137
|
-
lt();
|
|
1138
|
-
const e = window;
|
|
1139
|
-
if (e.IconifyPreload !== void 0) {
|
|
1140
|
-
const n = e.IconifyPreload, t = "Invalid IconifyPreload syntax.";
|
|
1141
|
-
typeof n == "object" && n !== null && (n instanceof Array ? n : [n]).forEach((s) => {
|
|
1142
|
-
try {
|
|
1143
|
-
// Check if item is an object and not null/array
|
|
1144
|
-
(typeof s != "object" || s === null || s instanceof Array || // Check for 'icons' and 'prefix'
|
|
1145
|
-
typeof s.icons != "object" || typeof s.prefix != "string" || // Add icon set
|
|
1146
|
-
!jt(s)) && console.error(t);
|
|
1147
|
-
} catch {
|
|
1148
|
-
console.error(t);
|
|
1149
|
-
}
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
if (e.IconifyProviders !== void 0) {
|
|
1153
|
-
const n = e.IconifyProviders;
|
|
1154
|
-
if (typeof n == "object" && n !== null)
|
|
1155
|
-
for (let t in n) {
|
|
1156
|
-
const s = "IconifyProviders[" + t + "] is invalid.";
|
|
1157
|
-
try {
|
|
1158
|
-
const o = n[t];
|
|
1159
|
-
if (typeof o != "object" || !o || o.resources === void 0)
|
|
1160
|
-
continue;
|
|
1161
|
-
Dt(t, o) || console.error(s);
|
|
1162
|
-
} catch {
|
|
1163
|
-
console.error(s);
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
const vn = {
|
|
1169
|
-
...ie,
|
|
1170
|
-
body: ""
|
|
1171
|
-
}, qe = G({
|
|
1172
|
-
// Do not inherit other attributes: it is handled by render()
|
|
1173
|
-
inheritAttrs: !1,
|
|
1174
|
-
// Set initial data
|
|
1175
|
-
data() {
|
|
1176
|
-
return {
|
|
1177
|
-
// Mounted status
|
|
1178
|
-
iconMounted: !1,
|
|
1179
|
-
// Callback counter to trigger re-render
|
|
1180
|
-
counter: 0
|
|
1181
|
-
};
|
|
1182
|
-
},
|
|
1183
|
-
mounted() {
|
|
1184
|
-
this._name = "", this._loadingIcon = null, this.iconMounted = !0;
|
|
1185
|
-
},
|
|
1186
|
-
unmounted() {
|
|
1187
|
-
this.abortLoading();
|
|
1188
|
-
},
|
|
1189
|
-
methods: {
|
|
1190
|
-
abortLoading() {
|
|
1191
|
-
this._loadingIcon && (this._loadingIcon.abort(), this._loadingIcon = null);
|
|
1192
|
-
},
|
|
1193
|
-
// Get data for icon to render or null
|
|
1194
|
-
getIcon(e, n) {
|
|
1195
|
-
if (typeof e == "object" && e !== null && typeof e.body == "string")
|
|
1196
|
-
return this._name = "", this.abortLoading(), {
|
|
1197
|
-
data: e
|
|
1198
|
-
};
|
|
1199
|
-
let t;
|
|
1200
|
-
if (typeof e != "string" || (t = oe(e, !1, !0)) === null)
|
|
1201
|
-
return this.abortLoading(), null;
|
|
1202
|
-
const s = Ct(t);
|
|
1203
|
-
if (!s)
|
|
1204
|
-
return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", s !== null && (this._loadingIcon = {
|
|
1205
|
-
name: e,
|
|
1206
|
-
abort: an([t], () => {
|
|
1207
|
-
this.counter++;
|
|
1208
|
-
})
|
|
1209
|
-
})), null;
|
|
1210
|
-
this.abortLoading(), this._name !== e && (this._name = e, n && n(e));
|
|
1211
|
-
const o = ["iconify"];
|
|
1212
|
-
return t.prefix !== "" && o.push("iconify--" + t.prefix), t.provider !== "" && o.push("iconify--" + t.provider), { data: s, classes: o };
|
|
1213
|
-
}
|
|
1214
|
-
},
|
|
1215
|
-
// Render icon
|
|
1216
|
-
render() {
|
|
1217
|
-
this.counter;
|
|
1218
|
-
const e = this.$attrs, n = this.iconMounted ? this.getIcon(e.icon, e.onLoad) : null;
|
|
1219
|
-
if (!n)
|
|
1220
|
-
return Ue(vn, e);
|
|
1221
|
-
let t = e;
|
|
1222
|
-
return n.classes && (t = {
|
|
1223
|
-
...e,
|
|
1224
|
-
class: (typeof e.class == "string" ? e.class + " " : "") + n.classes.join(" ")
|
|
1225
|
-
}), Ue({
|
|
1226
|
-
...ie,
|
|
1227
|
-
...n.data
|
|
1228
|
-
}, t);
|
|
1229
|
-
}
|
|
1230
|
-
}), kn = {
|
|
34
|
+
}, ye = { class: "inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center" }, ve = {
|
|
1231
35
|
key: 1,
|
|
1232
|
-
class: "
|
|
36
|
+
class: "h-[1em] w-[1em]",
|
|
1233
37
|
"aria-hidden": "true"
|
|
1234
|
-
},
|
|
38
|
+
}, he = ["xlink:href"], ke = ["src"], be = {
|
|
1235
39
|
key: 1,
|
|
1236
|
-
class: "
|
|
40
|
+
class: "h-[1em] w-[1em]",
|
|
1237
41
|
"aria-hidden": "true"
|
|
1238
|
-
},
|
|
42
|
+
}, _e = ["xlink:href"], Se = ["src"], we = /* @__PURE__ */ E({
|
|
1239
43
|
name: "IkSvgIcon",
|
|
1240
44
|
__name: "index",
|
|
1241
45
|
props: {
|
|
@@ -1243,6 +47,7 @@ const vn = {
|
|
|
1243
47
|
flip: {},
|
|
1244
48
|
rotate: {},
|
|
1245
49
|
color: {},
|
|
50
|
+
opacity: { default: 0.5 },
|
|
1246
51
|
size: { default: "" },
|
|
1247
52
|
bg: { type: Boolean, default: !1 },
|
|
1248
53
|
showBg: { type: Boolean, default: !1 },
|
|
@@ -1251,111 +56,125 @@ const vn = {
|
|
|
1251
56
|
notip: { type: Boolean, default: !1 },
|
|
1252
57
|
title: {}
|
|
1253
58
|
},
|
|
1254
|
-
setup(
|
|
1255
|
-
const
|
|
1256
|
-
var
|
|
1257
|
-
return /^http?:\/\//.test(
|
|
1258
|
-
}),
|
|
1259
|
-
const
|
|
1260
|
-
if (
|
|
1261
|
-
switch (
|
|
59
|
+
setup(l) {
|
|
60
|
+
const a = l, t = T(() => {
|
|
61
|
+
var e;
|
|
62
|
+
return /^http?:\/\//.test(a.name) ? "img" : /i-[^:]+:[^:]+/.test(a.name) ? "unocss" : a.name.startsWith("iksig") ? "iksig" : (e = a.name) != null && e.includes(":") ? "iconify" : "svg";
|
|
63
|
+
}), d = T(() => {
|
|
64
|
+
const e = [];
|
|
65
|
+
if (a.flip)
|
|
66
|
+
switch (a.flip) {
|
|
1262
67
|
case "horizontal":
|
|
1263
|
-
|
|
68
|
+
e.push("rotateY(180deg)");
|
|
1264
69
|
break;
|
|
1265
70
|
case "vertical":
|
|
1266
|
-
|
|
71
|
+
e.push("rotateX(180deg)");
|
|
1267
72
|
break;
|
|
1268
73
|
case "both":
|
|
1269
|
-
|
|
74
|
+
e.push("rotateX(180deg)"), e.push("rotateY(180deg)");
|
|
1270
75
|
break;
|
|
1271
76
|
}
|
|
1272
|
-
return
|
|
1273
|
-
...
|
|
1274
|
-
...
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
...
|
|
1278
|
-
|
|
77
|
+
return a.rotate && e.push(`rotate(${a.rotate % 360}deg)`), {
|
|
78
|
+
...a.color && { color: a.color },
|
|
79
|
+
...a.size && { fontSize: typeof a.size == "number" ? `${a.size}px` : a.size },
|
|
80
|
+
...e.length && { transform: e.join(" ") },
|
|
81
|
+
padding: a.padding,
|
|
82
|
+
...a.color && t.value !== "iksig" ? {
|
|
83
|
+
"--ik-color-icon-dark": a.color,
|
|
84
|
+
"--ik-color-icon-light": fe.setOpacity(a.color, a.opacity || 0.4)
|
|
85
|
+
} : {}
|
|
1279
86
|
};
|
|
1280
|
-
})
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
{
|
|
1288
|
-
key: 0,
|
|
1289
|
-
class: te(["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition", {
|
|
1290
|
-
[i.name]: t.value === "unocss",
|
|
1291
|
-
"show-bg": i.showBg || i.bg,
|
|
1292
|
-
default: i.size === "default",
|
|
1293
|
-
small: i.size === "small",
|
|
1294
|
-
big: i.size === "big",
|
|
1295
|
-
warning: i.warning
|
|
1296
|
-
}]),
|
|
1297
|
-
style: ye(s.value)
|
|
1298
|
-
},
|
|
1299
|
-
[
|
|
1300
|
-
t.value === "iconify" ? (I(), $(E(qe), {
|
|
87
|
+
});
|
|
88
|
+
return (e, c) => {
|
|
89
|
+
const I = V("el-tooltip");
|
|
90
|
+
return u(), v("span", ye, [
|
|
91
|
+
e.notip || !e.title ? (u(), v(
|
|
92
|
+
"i",
|
|
93
|
+
{
|
|
1301
94
|
key: 0,
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
},
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
key: 1,
|
|
1317
|
-
effect: o.value ? "dark" : "light",
|
|
1318
|
-
content: i.title
|
|
1319
|
-
}, {
|
|
1320
|
-
default: T(() => [
|
|
1321
|
-
P(
|
|
1322
|
-
"i",
|
|
1323
|
-
ce({
|
|
1324
|
-
class: ["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition", {
|
|
1325
|
-
[i.name]: t.value === "unocss",
|
|
1326
|
-
"show-bg": i.showBg || i.bg,
|
|
1327
|
-
default: i.size === "default",
|
|
1328
|
-
small: i.size === "small",
|
|
1329
|
-
big: i.size === "big",
|
|
1330
|
-
warning: i.warning
|
|
1331
|
-
}],
|
|
1332
|
-
style: s.value
|
|
1333
|
-
}, i.$attrs),
|
|
1334
|
-
[
|
|
1335
|
-
t.value === "iconify" ? (I(), $(E(qe), {
|
|
95
|
+
class: B(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition", {
|
|
96
|
+
[e.name]: t.value === "unocss",
|
|
97
|
+
"show-bg": e.showBg || e.bg,
|
|
98
|
+
default: e.size === "default",
|
|
99
|
+
small: e.size === "small",
|
|
100
|
+
big: e.size === "big",
|
|
101
|
+
warning: e.warning
|
|
102
|
+
}]),
|
|
103
|
+
style: D(d.value)
|
|
104
|
+
},
|
|
105
|
+
[
|
|
106
|
+
t.value === "iksig" ? (u(), v(
|
|
107
|
+
"i",
|
|
108
|
+
{
|
|
1336
109
|
key: 0,
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
}, null, 8,
|
|
1347
|
-
],
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
110
|
+
class: B(`iksig ${e.name}`),
|
|
111
|
+
style: D(d.value)
|
|
112
|
+
},
|
|
113
|
+
null,
|
|
114
|
+
6
|
|
115
|
+
/* CLASS, STYLE */
|
|
116
|
+
)) : t.value === "svg" ? (u(), v("svg", ve, [
|
|
117
|
+
_("use", {
|
|
118
|
+
"xlink:href": `#${e.name}`
|
|
119
|
+
}, null, 8, he)
|
|
120
|
+
])) : t.value === "img" ? (u(), v("img", {
|
|
121
|
+
key: 2,
|
|
122
|
+
src: e.name,
|
|
123
|
+
class: "h-[1em] w-[1em]"
|
|
124
|
+
}, null, 8, ke)) : N("v-if", !0)
|
|
125
|
+
],
|
|
126
|
+
6
|
|
127
|
+
/* CLASS, STYLE */
|
|
128
|
+
)) : (u(), x(I, {
|
|
129
|
+
key: 1,
|
|
130
|
+
content: e.title
|
|
131
|
+
}, {
|
|
132
|
+
default: y(() => [
|
|
133
|
+
_(
|
|
134
|
+
"i",
|
|
135
|
+
{
|
|
136
|
+
class: B(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition", {
|
|
137
|
+
[e.name]: t.value === "unocss",
|
|
138
|
+
"show-bg": e.showBg || e.bg,
|
|
139
|
+
default: e.size === "default",
|
|
140
|
+
small: e.size === "small",
|
|
141
|
+
big: e.size === "big",
|
|
142
|
+
warning: e.warning
|
|
143
|
+
}]),
|
|
144
|
+
style: D(d.value)
|
|
145
|
+
},
|
|
146
|
+
[
|
|
147
|
+
t.value === "iksig" ? (u(), v(
|
|
148
|
+
"i",
|
|
149
|
+
{
|
|
150
|
+
key: 0,
|
|
151
|
+
class: B(`iksig ${e.name}`),
|
|
152
|
+
style: D(d.value)
|
|
153
|
+
},
|
|
154
|
+
null,
|
|
155
|
+
6
|
|
156
|
+
/* CLASS, STYLE */
|
|
157
|
+
)) : t.value === "svg" ? (u(), v("svg", be, [
|
|
158
|
+
_("use", {
|
|
159
|
+
"xlink:href": `#${e.name}`
|
|
160
|
+
}, null, 8, _e)
|
|
161
|
+
])) : t.value === "img" ? (u(), v("img", {
|
|
162
|
+
key: 2,
|
|
163
|
+
src: e.name,
|
|
164
|
+
class: "h-[1em] w-[1em]"
|
|
165
|
+
}, null, 8, Se)) : N("v-if", !0)
|
|
166
|
+
],
|
|
167
|
+
6
|
|
168
|
+
/* CLASS, STYLE */
|
|
169
|
+
)
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
/* STABLE */
|
|
173
|
+
}, 8, ["content"]))
|
|
174
|
+
]);
|
|
1355
175
|
};
|
|
1356
176
|
}
|
|
1357
|
-
})
|
|
1358
|
-
const Tn = /* @__PURE__ */ ve(Cn, [["__scopeId", "data-v-1957ff53"]]), jn = be(Tn), Qe = {
|
|
177
|
+
}), Ce = W(we), K = {
|
|
1359
178
|
animation: 200,
|
|
1360
179
|
group: "gl",
|
|
1361
180
|
disabled: !1,
|
|
@@ -1368,7 +187,7 @@ const Tn = /* @__PURE__ */ ve(Cn, [["__scopeId", "data-v-1957ff53"]]), jn = be(T
|
|
|
1368
187
|
bottom: 8,
|
|
1369
188
|
background: "var(--ik-sub-sidebar-menu-bg)"
|
|
1370
189
|
}
|
|
1371
|
-
},
|
|
190
|
+
}, Ie = {
|
|
1372
191
|
list: {
|
|
1373
192
|
required: !0,
|
|
1374
193
|
type: Array,
|
|
@@ -1506,90 +325,90 @@ const Tn = /* @__PURE__ */ ve(Cn, [["__scopeId", "data-v-1957ff53"]]), jn = be(T
|
|
|
1506
325
|
}
|
|
1507
326
|
})
|
|
1508
327
|
}
|
|
1509
|
-
},
|
|
328
|
+
}, $e = /* @__PURE__ */ E({
|
|
1510
329
|
__name: "IkDragList",
|
|
1511
|
-
props:
|
|
330
|
+
props: Ie,
|
|
1512
331
|
emits: ["change"],
|
|
1513
|
-
setup(
|
|
1514
|
-
const t =
|
|
1515
|
-
|
|
332
|
+
setup(l, { emit: a }) {
|
|
333
|
+
const t = l, d = a, e = $([]);
|
|
334
|
+
Q(
|
|
1516
335
|
() => t.list,
|
|
1517
|
-
(
|
|
1518
|
-
|
|
336
|
+
(p) => {
|
|
337
|
+
e.value = w.cloneDeep(p);
|
|
1519
338
|
},
|
|
1520
339
|
{
|
|
1521
340
|
immediate: !0,
|
|
1522
341
|
deep: !0
|
|
1523
342
|
}
|
|
1524
343
|
);
|
|
1525
|
-
const
|
|
1526
|
-
...
|
|
344
|
+
const c = T(() => ({
|
|
345
|
+
...K,
|
|
1527
346
|
...t,
|
|
1528
347
|
itemStyle: {
|
|
1529
|
-
...
|
|
348
|
+
...K.itemStyle,
|
|
1530
349
|
...t.itemStyle
|
|
1531
350
|
}
|
|
1532
|
-
})),
|
|
1533
|
-
|
|
1534
|
-
},
|
|
1535
|
-
|
|
1536
|
-
const
|
|
1537
|
-
|
|
1538
|
-
...
|
|
1539
|
-
oldIndex:
|
|
1540
|
-
newIndex:
|
|
351
|
+
})), I = $(!1), F = () => {
|
|
352
|
+
I.value = !0;
|
|
353
|
+
}, O = (p) => {
|
|
354
|
+
I.value = !1;
|
|
355
|
+
const S = t.list[p.oldIndex];
|
|
356
|
+
d("change", e.value, {
|
|
357
|
+
...S,
|
|
358
|
+
oldIndex: p.oldIndex,
|
|
359
|
+
newIndex: p.newIndex
|
|
1541
360
|
});
|
|
1542
361
|
};
|
|
1543
|
-
return (
|
|
1544
|
-
const
|
|
1545
|
-
return
|
|
1546
|
-
modelValue:
|
|
1547
|
-
"onUpdate:modelValue":
|
|
1548
|
-
class:
|
|
362
|
+
return (p, S) => {
|
|
363
|
+
const m = V("el-icon");
|
|
364
|
+
return u(), x(b(pe), {
|
|
365
|
+
modelValue: e.value,
|
|
366
|
+
"onUpdate:modelValue": S[0] || (S[0] = (s) => e.value = s),
|
|
367
|
+
class: B(["list-group", [c.value.groupClass]]),
|
|
1549
368
|
tag: "ul",
|
|
1550
|
-
attrs:
|
|
1551
|
-
animation:
|
|
1552
|
-
group:
|
|
1553
|
-
disabled:
|
|
1554
|
-
"ghost-class":
|
|
1555
|
-
"force-fallback":
|
|
369
|
+
attrs: c.value,
|
|
370
|
+
animation: c.value.animation,
|
|
371
|
+
group: c.value.group,
|
|
372
|
+
disabled: c.value.disabled,
|
|
373
|
+
"ghost-class": c.value.ghostClass,
|
|
374
|
+
"force-fallback": c.value.ghostClass,
|
|
1556
375
|
"item-key": "order",
|
|
1557
|
-
onStart:
|
|
1558
|
-
onEnd:
|
|
376
|
+
onStart: F,
|
|
377
|
+
onEnd: O
|
|
1559
378
|
}, {
|
|
1560
|
-
item:
|
|
1561
|
-
|
|
1562
|
-
|
|
379
|
+
item: y(({ element: s }) => [
|
|
380
|
+
C(
|
|
381
|
+
ne,
|
|
1563
382
|
{
|
|
1564
383
|
type: "transition",
|
|
1565
384
|
name: "flip-list"
|
|
1566
385
|
},
|
|
1567
386
|
{
|
|
1568
|
-
default:
|
|
1569
|
-
|
|
387
|
+
default: y(() => [
|
|
388
|
+
p.$slots.item ? Y(p.$slots, "item", {
|
|
1570
389
|
key: 0,
|
|
1571
|
-
item:
|
|
1572
|
-
}, void 0, !0) : (
|
|
390
|
+
item: s
|
|
391
|
+
}, void 0, !0) : (u(), v(
|
|
1573
392
|
"li",
|
|
1574
393
|
{
|
|
1575
394
|
key: 1,
|
|
1576
|
-
class:
|
|
1577
|
-
style:
|
|
1578
|
-
borderRadius: `${
|
|
1579
|
-
marginBottom: `${
|
|
1580
|
-
backgroundColor: `${
|
|
395
|
+
class: B(["list-group-item", [c.value.itemClass]]),
|
|
396
|
+
style: D({
|
|
397
|
+
borderRadius: `${c.value.itemStyle.radius}px`,
|
|
398
|
+
marginBottom: `${c.value.itemStyle.bottom}px`,
|
|
399
|
+
backgroundColor: `${c.value.itemStyle.background}`
|
|
1581
400
|
})
|
|
1582
401
|
},
|
|
1583
402
|
[
|
|
1584
|
-
|
|
1585
|
-
default:
|
|
1586
|
-
|
|
403
|
+
c.value.showIcon && !p.$slots.icon ? (u(), x(m, { key: 0 }, {
|
|
404
|
+
default: y(() => [
|
|
405
|
+
C(b(ge))
|
|
1587
406
|
]),
|
|
1588
407
|
_: 1
|
|
1589
408
|
/* STABLE */
|
|
1590
|
-
})) :
|
|
1591
|
-
|
|
1592
|
-
" " +
|
|
409
|
+
})) : Y(p.$slots, "icon", { key: 1 }, void 0, !0),
|
|
410
|
+
z(
|
|
411
|
+
" " + L(s.label),
|
|
1593
412
|
1
|
|
1594
413
|
/* TEXT */
|
|
1595
414
|
)
|
|
@@ -1611,15 +430,15 @@ const Tn = /* @__PURE__ */ ve(Cn, [["__scopeId", "data-v-1957ff53"]]), jn = be(T
|
|
|
1611
430
|
};
|
|
1612
431
|
}
|
|
1613
432
|
});
|
|
1614
|
-
const
|
|
433
|
+
const Be = /* @__PURE__ */ Z($e, [["__scopeId", "data-v-d2a34939"]]), ze = W(Be), Ve = (l) => (ce("data-v-b848b0c7"), l = l(), de(), l), De = /* @__PURE__ */ Ve(() => /* @__PURE__ */ _(
|
|
1615
434
|
"i",
|
|
1616
435
|
{ class: "ik ik-shezhi" },
|
|
1617
436
|
null,
|
|
1618
437
|
-1
|
|
1619
438
|
/* HOISTED */
|
|
1620
|
-
)),
|
|
439
|
+
)), Ne = { class: "check-right" }, xe = { class: "dialog-footer" }, Oe = /* @__PURE__ */ E({
|
|
1621
440
|
__name: "IkBtnSetting",
|
|
1622
|
-
props: /* @__PURE__ */
|
|
441
|
+
props: /* @__PURE__ */ q({
|
|
1623
442
|
list: {
|
|
1624
443
|
type: Array,
|
|
1625
444
|
default: () => []
|
|
@@ -1657,7 +476,7 @@ const Mn = /* @__PURE__ */ ve(Ln, [["__scopeId", "data-v-d2a34939"]]), On = be(M
|
|
|
1657
476
|
config: {
|
|
1658
477
|
type: Object,
|
|
1659
478
|
default: () => ({
|
|
1660
|
-
t: (
|
|
479
|
+
t: (l) => l,
|
|
1661
480
|
dialog: {
|
|
1662
481
|
l: "700px",
|
|
1663
482
|
sl: "600px"
|
|
@@ -1675,114 +494,114 @@ const Mn = /* @__PURE__ */ ve(Ln, [["__scopeId", "data-v-d2a34939"]]), On = be(M
|
|
|
1675
494
|
},
|
|
1676
495
|
modelModifiers: {}
|
|
1677
496
|
}),
|
|
1678
|
-
emits: /* @__PURE__ */
|
|
1679
|
-
setup(
|
|
1680
|
-
const t =
|
|
1681
|
-
const
|
|
1682
|
-
return !
|
|
1683
|
-
}),
|
|
1684
|
-
var
|
|
1685
|
-
const
|
|
1686
|
-
|
|
1687
|
-
var
|
|
1688
|
-
if (!
|
|
1689
|
-
|
|
1690
|
-
else if (!
|
|
1691
|
-
const
|
|
1692
|
-
|
|
497
|
+
emits: /* @__PURE__ */ q(["sort"], ["update:modelValue"]),
|
|
498
|
+
setup(l, { emit: a }) {
|
|
499
|
+
const t = l, d = a, e = se(l, "modelValue"), { t: c, dialog: I, path: F, user: O } = t.config, p = T(() => `${O == null ? void 0 : O.id}_${F}${t.tab !== "" ? `_${t.tab}` : ""}`), S = $([]), m = $([]), s = $([]), M = /* @__PURE__ */ new Map(), A = $(!1), ee = T(() => {
|
|
500
|
+
const i = m.value.length && m.value.length !== t.list.length;
|
|
501
|
+
return !i && m.value.length && (A.value = !0), !!i;
|
|
502
|
+
}), U = (i) => {
|
|
503
|
+
var r;
|
|
504
|
+
const o = w.cloneDeep(s.value);
|
|
505
|
+
o == null || o.forEach((n) => {
|
|
506
|
+
var k;
|
|
507
|
+
if (!m.value.length)
|
|
508
|
+
s.value = [];
|
|
509
|
+
else if (!m.value.includes(n == null ? void 0 : n.key)) {
|
|
510
|
+
const h = (k = s.value) == null ? void 0 : k.findIndex((f) => f.key === n.key);
|
|
511
|
+
h !== -1 && s.value.splice(h, 1), n.show = !1, M.set(n.key, n);
|
|
1693
512
|
}
|
|
1694
|
-
}),
|
|
1695
|
-
var
|
|
1696
|
-
if (((
|
|
1697
|
-
const
|
|
1698
|
-
|
|
513
|
+
}), m.value.forEach((n) => {
|
|
514
|
+
var h;
|
|
515
|
+
if (((h = s.value) == null ? void 0 : h.findIndex((f) => (f == null ? void 0 : f.key) === n)) === -1) {
|
|
516
|
+
const f = M.get(n);
|
|
517
|
+
f && (f.show = !0, s.value.push(f));
|
|
1699
518
|
}
|
|
1700
|
-
}), (
|
|
1701
|
-
},
|
|
1702
|
-
if (
|
|
1703
|
-
|
|
519
|
+
}), (r = s.value) != null && r.length || (s.value = w.cloneDeep(t.list)), i === !0 && (d("sort", w.cloneDeep(s.value)), e.value = w.cloneDeep(s.value));
|
|
520
|
+
}, te = (i) => {
|
|
521
|
+
if (i)
|
|
522
|
+
m.value = t.list.map((o) => o.key);
|
|
1704
523
|
else {
|
|
1705
|
-
const
|
|
1706
|
-
|
|
524
|
+
const o = t.list.find((r) => !r.key || r.label === "操作");
|
|
525
|
+
m.value = o ? [o.key] : [];
|
|
1707
526
|
}
|
|
1708
|
-
|
|
1709
|
-
},
|
|
1710
|
-
const
|
|
527
|
+
U();
|
|
528
|
+
}, H = () => {
|
|
529
|
+
const i = P.local.getItem(p.value);
|
|
1711
530
|
try {
|
|
1712
|
-
const
|
|
1713
|
-
if ((!
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
show:
|
|
1717
|
-
key:
|
|
1718
|
-
type:
|
|
1719
|
-
label:
|
|
1720
|
-
width:
|
|
1721
|
-
minWidth:
|
|
1722
|
-
align:
|
|
531
|
+
const o = w.cloneDeep(t == null ? void 0 : t.list);
|
|
532
|
+
if ((!i || !(i != null && i.length)) && P.local.setItem(
|
|
533
|
+
p.value,
|
|
534
|
+
o.map(({ show: r, type: n, key: k, label: h, width: f, minWidth: g, align: oe }) => ({
|
|
535
|
+
show: r,
|
|
536
|
+
key: k,
|
|
537
|
+
type: n,
|
|
538
|
+
label: h,
|
|
539
|
+
width: f,
|
|
540
|
+
minWidth: g,
|
|
541
|
+
align: oe
|
|
1723
542
|
}))
|
|
1724
|
-
),
|
|
1725
|
-
...(
|
|
1726
|
-
...
|
|
1727
|
-
show:
|
|
543
|
+
), S.value = [
|
|
544
|
+
...(o == null ? void 0 : o.map((r) => (M.set(r.key, r), {
|
|
545
|
+
...r,
|
|
546
|
+
show: r.show || !1
|
|
1728
547
|
}))) || []
|
|
1729
|
-
],
|
|
1730
|
-
const
|
|
1731
|
-
|
|
548
|
+
], i) {
|
|
549
|
+
const r = i.filter((n) => n.show).map((n) => n.key);
|
|
550
|
+
m.value = [...r];
|
|
1732
551
|
} else {
|
|
1733
|
-
const
|
|
1734
|
-
|
|
552
|
+
const r = S.value.filter((n) => n.show);
|
|
553
|
+
m.value = r.map((n) => n.key);
|
|
1735
554
|
}
|
|
1736
|
-
|
|
1737
|
-
} catch (
|
|
1738
|
-
console.info("error: ",
|
|
555
|
+
U(!0);
|
|
556
|
+
} catch (o) {
|
|
557
|
+
console.info("error: ", o);
|
|
1739
558
|
}
|
|
1740
559
|
};
|
|
1741
|
-
|
|
1742
|
-
|
|
560
|
+
H(), Q(() => t.list, () => {
|
|
561
|
+
H();
|
|
1743
562
|
}, { deep: !0 });
|
|
1744
|
-
const
|
|
1745
|
-
|
|
1746
|
-
},
|
|
1747
|
-
|
|
1748
|
-
},
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
show:
|
|
1753
|
-
key:
|
|
1754
|
-
label:
|
|
1755
|
-
value:
|
|
1756
|
-
width:
|
|
1757
|
-
minWidth:
|
|
1758
|
-
align:
|
|
563
|
+
const j = $(!1), X = () => {
|
|
564
|
+
j.value = !0;
|
|
565
|
+
}, le = (i) => {
|
|
566
|
+
s.value = i;
|
|
567
|
+
}, ae = () => {
|
|
568
|
+
j.value = !1, P.local.setItem(
|
|
569
|
+
p.value,
|
|
570
|
+
s.value.map(({ show: i, key: o, label: r, value: n, width: k, minWidth: h, align: f }) => ({
|
|
571
|
+
show: i,
|
|
572
|
+
key: o,
|
|
573
|
+
label: r,
|
|
574
|
+
value: n,
|
|
575
|
+
width: k,
|
|
576
|
+
minWidth: h,
|
|
577
|
+
align: f
|
|
1759
578
|
}))
|
|
1760
|
-
), console.log("sortList ",
|
|
579
|
+
), console.log("sortList ", s), d("sort", w.cloneDeep(s.value)), e.value = w.cloneDeep(s.value);
|
|
1761
580
|
};
|
|
1762
|
-
return (
|
|
1763
|
-
const
|
|
1764
|
-
return
|
|
1765
|
-
|
|
581
|
+
return (i, o) => {
|
|
582
|
+
const r = V("el-button"), n = V("el-checkbox"), k = V("el-checkbox-group"), h = V("el-dialog"), f = ie("role");
|
|
583
|
+
return u(), v(
|
|
584
|
+
R,
|
|
1766
585
|
null,
|
|
1767
586
|
[
|
|
1768
|
-
|
|
1769
|
-
circle:
|
|
1770
|
-
type:
|
|
1771
|
-
style: { minWidth:
|
|
1772
|
-
onClick:
|
|
1773
|
-
}),
|
|
1774
|
-
icon:
|
|
1775
|
-
|
|
587
|
+
l.btnType === "button" ? G((u(), x(r, J({ key: 0 }, i.$attrs, {
|
|
588
|
+
circle: l.circle,
|
|
589
|
+
type: l.type,
|
|
590
|
+
style: { minWidth: l.circle ? "40px" : "", minHeight: l.circle ? "40px" : "" },
|
|
591
|
+
onClick: X
|
|
592
|
+
}), re({
|
|
593
|
+
icon: y(() => [
|
|
594
|
+
De
|
|
1776
595
|
]),
|
|
1777
596
|
_: 2
|
|
1778
597
|
/* DYNAMIC */
|
|
1779
598
|
}, [
|
|
1780
|
-
|
|
599
|
+
l.circle ? void 0 : {
|
|
1781
600
|
name: "default",
|
|
1782
|
-
fn:
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
" " +
|
|
601
|
+
fn: y(() => [
|
|
602
|
+
N(' {{ t("action.setting") }} '),
|
|
603
|
+
z(
|
|
604
|
+
" " + L(b(c)("设置")),
|
|
1786
605
|
1
|
|
1787
606
|
/* TEXT */
|
|
1788
607
|
)
|
|
@@ -1790,57 +609,57 @@ const Mn = /* @__PURE__ */ ve(Ln, [["__scopeId", "data-v-d2a34939"]]), On = be(M
|
|
|
1790
609
|
key: "0"
|
|
1791
610
|
}
|
|
1792
611
|
]), 1040, ["circle", "type", "style"])), [
|
|
1793
|
-
[
|
|
1794
|
-
]) :
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
612
|
+
[f, i.$props.role]
|
|
613
|
+
]) : N("v-if", !0),
|
|
614
|
+
l.btnType === "icon" ? G((u(), x(
|
|
615
|
+
b(Ce),
|
|
616
|
+
J({
|
|
1798
617
|
key: 1,
|
|
1799
618
|
name: "iksvg_shezhi-daohang",
|
|
1800
619
|
"show-bg": "",
|
|
1801
620
|
size: "default"
|
|
1802
|
-
},
|
|
621
|
+
}, i.$attrs, { onClick: X }),
|
|
1803
622
|
null,
|
|
1804
623
|
16
|
|
1805
624
|
/* FULL_PROPS */
|
|
1806
625
|
)), [
|
|
1807
|
-
[
|
|
1808
|
-
]) :
|
|
1809
|
-
|
|
1810
|
-
modelValue:
|
|
1811
|
-
"onUpdate:modelValue":
|
|
626
|
+
[f, i.$props.role]
|
|
627
|
+
]) : N("v-if", !0),
|
|
628
|
+
C(h, {
|
|
629
|
+
modelValue: j.value,
|
|
630
|
+
"onUpdate:modelValue": o[3] || (o[3] = (g) => j.value = g),
|
|
1812
631
|
draggable: "",
|
|
1813
|
-
width:
|
|
632
|
+
width: l.inline ? b(I).l : b(I).sl,
|
|
1814
633
|
"close-on-click-modal": !1,
|
|
1815
634
|
"close-on-press-escape": !1,
|
|
1816
635
|
title: "显示字段",
|
|
1817
636
|
"append-to-body": "",
|
|
1818
|
-
onOpen:
|
|
637
|
+
onOpen: H
|
|
1819
638
|
}, {
|
|
1820
|
-
footer:
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
onClick:
|
|
639
|
+
footer: y(() => [
|
|
640
|
+
_("div", xe, [
|
|
641
|
+
C(r, {
|
|
642
|
+
onClick: o[2] || (o[2] = (g) => j.value = !1)
|
|
1824
643
|
}, {
|
|
1825
|
-
default:
|
|
1826
|
-
|
|
1827
|
-
|
|
644
|
+
default: y(() => [
|
|
645
|
+
z(
|
|
646
|
+
L(b(c)("关闭")) + " ",
|
|
1828
647
|
1
|
|
1829
648
|
/* TEXT */
|
|
1830
649
|
),
|
|
1831
|
-
|
|
650
|
+
N(' {{ t("action.close") }} ')
|
|
1832
651
|
]),
|
|
1833
652
|
_: 1
|
|
1834
653
|
/* STABLE */
|
|
1835
654
|
}),
|
|
1836
|
-
|
|
655
|
+
C(r, {
|
|
1837
656
|
type: "primary",
|
|
1838
|
-
disabled:
|
|
1839
|
-
onClick:
|
|
657
|
+
disabled: s.value.length < 2,
|
|
658
|
+
onClick: ae
|
|
1840
659
|
}, {
|
|
1841
|
-
default:
|
|
1842
|
-
|
|
1843
|
-
|
|
660
|
+
default: y(() => [
|
|
661
|
+
z(
|
|
662
|
+
L(s.value.length < 2 ? "至少选择一个字段" : b(c)("确定")),
|
|
1844
663
|
1
|
|
1845
664
|
/* TEXT */
|
|
1846
665
|
)
|
|
@@ -1850,49 +669,49 @@ const Mn = /* @__PURE__ */ ve(Ln, [["__scopeId", "data-v-d2a34939"]]), On = be(M
|
|
|
1850
669
|
}, 8, ["disabled"])
|
|
1851
670
|
])
|
|
1852
671
|
]),
|
|
1853
|
-
default:
|
|
1854
|
-
|
|
672
|
+
default: y(() => [
|
|
673
|
+
_(
|
|
1855
674
|
"div",
|
|
1856
675
|
{
|
|
1857
|
-
class:
|
|
676
|
+
class: B(["view-fields", [l.inline ? null : "un-inline"]])
|
|
1858
677
|
},
|
|
1859
678
|
[
|
|
1860
|
-
|
|
679
|
+
_(
|
|
1861
680
|
"div",
|
|
1862
681
|
{
|
|
1863
|
-
style:
|
|
682
|
+
style: D({ flex: l.inline ? 2 : 1 })
|
|
1864
683
|
},
|
|
1865
684
|
[
|
|
1866
|
-
|
|
1867
|
-
modelValue:
|
|
1868
|
-
"onUpdate:modelValue":
|
|
685
|
+
C(n, {
|
|
686
|
+
modelValue: A.value,
|
|
687
|
+
"onUpdate:modelValue": o[0] || (o[0] = (g) => A.value = g),
|
|
1869
688
|
class: "single-line",
|
|
1870
|
-
indeterminate:
|
|
1871
|
-
onChange:
|
|
689
|
+
indeterminate: ee.value,
|
|
690
|
+
onChange: te
|
|
1872
691
|
}, {
|
|
1873
|
-
default:
|
|
1874
|
-
|
|
692
|
+
default: y(() => [
|
|
693
|
+
z(" 全选 ")
|
|
1875
694
|
]),
|
|
1876
695
|
_: 1
|
|
1877
696
|
/* STABLE */
|
|
1878
697
|
}, 8, ["modelValue", "indeterminate"]),
|
|
1879
|
-
|
|
1880
|
-
modelValue:
|
|
1881
|
-
"onUpdate:modelValue":
|
|
1882
|
-
onChange:
|
|
698
|
+
C(k, {
|
|
699
|
+
modelValue: m.value,
|
|
700
|
+
"onUpdate:modelValue": o[1] || (o[1] = (g) => m.value = g),
|
|
701
|
+
onChange: U
|
|
1883
702
|
}, {
|
|
1884
|
-
default:
|
|
1885
|
-
(
|
|
1886
|
-
|
|
703
|
+
default: y(() => [
|
|
704
|
+
(u(!0), v(
|
|
705
|
+
R,
|
|
1887
706
|
null,
|
|
1888
|
-
|
|
1889
|
-
key:
|
|
1890
|
-
disabled: !
|
|
1891
|
-
label:
|
|
707
|
+
ue(S.value, (g) => (u(), x(n, {
|
|
708
|
+
key: g.key,
|
|
709
|
+
disabled: !g.key,
|
|
710
|
+
label: g.key
|
|
1892
711
|
}, {
|
|
1893
|
-
default:
|
|
1894
|
-
|
|
1895
|
-
|
|
712
|
+
default: y(() => [
|
|
713
|
+
z(
|
|
714
|
+
L(g.label),
|
|
1896
715
|
1
|
|
1897
716
|
/* TEXT */
|
|
1898
717
|
)
|
|
@@ -1911,11 +730,11 @@ const Mn = /* @__PURE__ */ ve(Ln, [["__scopeId", "data-v-d2a34939"]]), On = be(M
|
|
|
1911
730
|
4
|
|
1912
731
|
/* STYLE */
|
|
1913
732
|
),
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
list:
|
|
733
|
+
_("div", Ne, [
|
|
734
|
+
C(b(ze), {
|
|
735
|
+
list: s.value,
|
|
1917
736
|
"item-style": { bottom: 4 },
|
|
1918
|
-
onChange:
|
|
737
|
+
onChange: le
|
|
1919
738
|
}, null, 8, ["list"])
|
|
1920
739
|
])
|
|
1921
740
|
],
|
|
@@ -1933,8 +752,8 @@ const Mn = /* @__PURE__ */ ve(Ln, [["__scopeId", "data-v-d2a34939"]]), On = be(M
|
|
|
1933
752
|
};
|
|
1934
753
|
}
|
|
1935
754
|
});
|
|
1936
|
-
const
|
|
755
|
+
const je = /* @__PURE__ */ Z(Oe, [["__scopeId", "data-v-b848b0c7"]]), Fe = W(je);
|
|
1937
756
|
export {
|
|
1938
|
-
|
|
1939
|
-
|
|
757
|
+
Fe as IkBtnSetting,
|
|
758
|
+
Fe as default
|
|
1940
759
|
};
|