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.
Files changed (53) hide show
  1. package/dist/IKApprovalProcess/index.es.js +1 -1
  2. package/dist/IKApprovalProcess/index.umd.js +1 -1
  3. package/dist/IKApprovalProcess/style.css +1 -1
  4. package/dist/IKApprovalProcessDetail/style.css +1 -1
  5. package/dist/IKCalendar/index.es.js +1 -1
  6. package/dist/IKCalendar/index.umd.js +1 -1
  7. package/dist/IKCalendar/style.css +1 -1
  8. package/dist/IKDetailPreviewFiles/index.es.js +244 -1424
  9. package/dist/IKDetailPreviewFiles/index.umd.js +1 -1
  10. package/dist/IKDetailPreviewFiles/style.css +1 -1
  11. package/dist/IKExpandCollapse/index.es.js +143 -1323
  12. package/dist/IKExpandCollapse/index.umd.js +1 -1
  13. package/dist/IKExpandCollapse/style.css +1 -1
  14. package/dist/IKSearch/index.es.js +1 -1
  15. package/dist/IKSearch/index.umd.js +1 -1
  16. package/dist/IKSearch/style.css +1 -1
  17. package/dist/IKVerticalStepBar/index.es.js +190 -1370
  18. package/dist/IKVerticalStepBar/index.umd.js +3 -3
  19. package/dist/IKVerticalStepBar/style.css +1 -1
  20. package/dist/IkBaseDialog/index.es.js +234 -0
  21. package/dist/IkBaseDialog/index.umd.js +1 -0
  22. package/dist/IkBaseDialog/style.css +1 -0
  23. package/dist/IkBtnSetting/index.es.js +336 -1517
  24. package/dist/IkBtnSetting/index.umd.js +1 -1
  25. package/dist/IkBtnSetting/style.css +1 -1
  26. package/dist/IkIconPicker/index.es.js +2885 -1449
  27. package/dist/IkIconPicker/index.umd.js +5 -1
  28. package/dist/IkIconPicker/style.css +1 -1
  29. package/dist/IkPageFull/index.es.js +1678 -2859
  30. package/dist/IkPageFull/index.umd.js +3 -3
  31. package/dist/IkPageFull/style.css +1 -1
  32. package/dist/IkPicker/index.es.js +1 -1
  33. package/dist/IkPicker/index.umd.js +1 -1
  34. package/dist/IkPicker/style.css +1 -1
  35. package/dist/IkPickerUser/index.es.js +255 -237
  36. package/dist/IkPickerUser/index.umd.js +1 -1
  37. package/dist/IkPickerUser/style.css +1 -1
  38. package/dist/IkSchedule/index.es.js +2181 -3362
  39. package/dist/IkSchedule/index.umd.js +1 -1
  40. package/dist/IkSchedule/style.css +1 -1
  41. package/dist/IkSvgIcon/index.es.js +125 -1310
  42. package/dist/IkSvgIcon/index.umd.js +1 -1
  43. package/dist/IkUploadFile/index.es.js +955 -596
  44. package/dist/IkUploadFile/index.umd.js +1 -1
  45. package/dist/IkUploadFile/style.css +1 -1
  46. package/dist/IkUploadImage/index.es.js +113 -110
  47. package/dist/IkUploadImage/index.umd.js +1 -1
  48. package/dist/IkUploadImage/style.css +1 -1
  49. package/dist/index.es.js +12914 -11169
  50. package/dist/index.umd.js +10 -6
  51. package/dist/style.css +1 -1
  52. package/package.json +3 -3
  53. package/dist/IkSvgIcon/style.css +0 -1
@@ -1,1223 +1,28 @@
1
- import { defineComponent as te, h as le, computed as V, resolveComponent as Re, openBlock as I, createElementBlock as k, normalizeClass as Ve, normalizeStyle as qe, createBlock as L, unref as W, createElementVNode as q, createCommentVNode as N, withCtx as Qe, mergeProps as Ue, toDisplayString as We } from "vue";
2
- const ke = (e, t) => {
3
- if (e.install = (n) => {
4
- for (const i of [e, ...Object.values(t ?? {})])
5
- n.component(i.name, i);
6
- }, t)
7
- for (const [n, i] of Object.entries(t))
8
- e[n] = i;
9
- return e;
1
+ import { defineComponent as p, computed as m, resolveComponent as k, openBlock as i, createElementBlock as l, normalizeClass as r, normalizeStyle as c, createElementVNode as d, createCommentVNode as u, createBlock as f, withCtx as y, toDisplayString as v, unref as w } from "vue";
2
+ import { ikColor as b } from "iking-utils";
3
+ const g = (s, n) => {
4
+ if (s.install = (t) => {
5
+ for (const o of [s, ...Object.values(n ?? {})])
6
+ t.component(o.name, o);
7
+ }, n)
8
+ for (const [t, o] of Object.entries(n))
9
+ s[t] = o;
10
+ return s;
10
11
  };
11
- const Ce = (e, t) => {
12
- const n = e.__vccOpts || e;
13
- for (const [i, o] of t)
14
- n[i] = o;
15
- return n;
16
- }, _ = /^[a-z0-9]+(-[a-z0-9]+)*$/, D = (e, t, n, i = "") => {
17
- const o = e.split(":");
18
- if (e.slice(0, 1) === "@") {
19
- if (o.length < 2 || o.length > 3)
20
- return null;
21
- i = o.shift().slice(1);
22
- }
23
- if (o.length > 3 || !o.length)
24
- return null;
25
- if (o.length > 1) {
26
- const c = o.pop(), l = o.pop(), a = {
27
- // Allow provider without '@': "provider:prefix:name"
28
- provider: o.length > 0 ? o[0] : i,
29
- prefix: l,
30
- name: c
31
- };
32
- return t && !F(a) ? null : a;
33
- }
34
- const r = o[0], s = r.split("-");
35
- if (s.length > 1) {
36
- const c = {
37
- provider: i,
38
- prefix: s.shift(),
39
- name: s.join("-")
40
- };
41
- return t && !F(c) ? null : c;
42
- }
43
- if (n && i === "") {
44
- const c = {
45
- provider: i,
46
- prefix: "",
47
- name: r
48
- };
49
- return t && !F(c, n) ? null : c;
50
- }
51
- return null;
52
- }, F = (e, t) => e ? !!((e.provider === "" || e.provider.match(_)) && (t && e.prefix === "" || e.prefix.match(_)) && e.name.match(_)) : !1, Te = Object.freeze(
53
- {
54
- left: 0,
55
- top: 0,
56
- width: 16,
57
- height: 16
58
- }
59
- ), B = Object.freeze({
60
- rotate: 0,
61
- vFlip: !1,
62
- hFlip: !1
63
- }), $ = Object.freeze({
64
- ...Te,
65
- ...B
66
- }), K = Object.freeze({
67
- ...$,
68
- body: "",
69
- hidden: !1
70
- });
71
- function Ke(e, t) {
72
- const n = {};
73
- !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
74
- const i = ((e.rotate || 0) + (t.rotate || 0)) % 4;
75
- return i && (n.rotate = i), n;
76
- }
77
- function ae(e, t) {
78
- const n = Ke(e, t);
79
- for (const i in K)
80
- i in B ? i in e && !(i in n) && (n[i] = B[i]) : i in t ? n[i] = t[i] : i in e && (n[i] = e[i]);
81
- return n;
82
- }
83
- function Ge(e, t) {
84
- const n = e.icons, i = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
85
- function r(s) {
86
- if (n[s])
87
- return o[s] = [];
88
- if (!(s in o)) {
89
- o[s] = null;
90
- const c = i[s] && i[s].parent, l = c && r(c);
91
- l && (o[s] = [c].concat(l));
92
- }
93
- return o[s];
94
- }
95
- return (t || Object.keys(n).concat(Object.keys(i))).forEach(r), o;
96
- }
97
- function Je(e, t, n) {
98
- const i = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
99
- let r = {};
100
- function s(c) {
101
- r = ae(
102
- i[c] || o[c],
103
- r
104
- );
105
- }
106
- return s(t), n.forEach(s), ae(e, r);
107
- }
108
- function je(e, t) {
109
- const n = [];
110
- if (typeof e != "object" || typeof e.icons != "object")
111
- return n;
112
- e.not_found instanceof Array && e.not_found.forEach((o) => {
113
- t(o, null), n.push(o);
114
- });
115
- const i = Ge(e);
116
- for (const o in i) {
117
- const r = i[o];
118
- r && (t(o, Je(e, o, r)), n.push(o));
119
- }
120
- return n;
121
- }
122
- const Xe = {
123
- provider: "",
124
- aliases: {},
125
- not_found: {},
126
- ...Te
127
- };
128
- function Q(e, t) {
129
- for (const n in t)
130
- if (n in e && typeof e[n] != typeof t[n])
131
- return !1;
132
- return !0;
133
- }
134
- function _e(e) {
135
- if (typeof e != "object" || e === null)
136
- return null;
137
- const t = e;
138
- if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !Q(e, Xe))
139
- return null;
140
- const n = t.icons;
141
- for (const o in n) {
142
- const r = n[o];
143
- if (!o.match(_) || typeof r.body != "string" || !Q(
144
- r,
145
- K
146
- ))
147
- return null;
148
- }
149
- const i = t.aliases || /* @__PURE__ */ Object.create(null);
150
- for (const o in i) {
151
- const r = i[o], s = r.parent;
152
- if (!o.match(_) || typeof s != "string" || !n[s] && !i[s] || !Q(
153
- r,
154
- K
155
- ))
156
- return null;
157
- }
158
- return t;
159
- }
160
- const ue = /* @__PURE__ */ Object.create(null);
161
- function Ye(e, t) {
162
- return {
163
- provider: e,
164
- prefix: t,
165
- icons: /* @__PURE__ */ Object.create(null),
166
- missing: /* @__PURE__ */ new Set()
167
- };
168
- }
169
- function C(e, t) {
170
- const n = ue[e] || (ue[e] = /* @__PURE__ */ Object.create(null));
171
- return n[t] || (n[t] = Ye(e, t));
172
- }
173
- function ne(e, t) {
174
- return _e(t) ? je(t, (n, i) => {
175
- i ? e.icons[n] = i : e.missing.add(n);
176
- }) : [];
177
- }
178
- function Ze(e, t, n) {
179
- try {
180
- if (typeof n.body == "string")
181
- return e.icons[t] = { ...n }, !0;
182
- } catch {
183
- }
184
- return !1;
185
- }
186
- let E = !1;
187
- function Ee(e) {
188
- return typeof e == "boolean" && (E = e), E;
189
- }
190
- function et(e) {
191
- const t = typeof e == "string" ? D(e, !0, E) : e;
192
- if (t) {
193
- const n = C(t.provider, t.prefix), i = t.name;
194
- return n.icons[i] || (n.missing.has(i) ? null : void 0);
195
- }
196
- }
197
- function tt(e, t) {
198
- const n = D(e, !0, E);
199
- if (!n)
200
- return !1;
201
- const i = C(n.provider, n.prefix);
202
- return Ze(i, n.name, t);
203
- }
204
- function nt(e, t) {
205
- if (typeof e != "object")
206
- return !1;
207
- if (typeof t != "string" && (t = e.provider || ""), E && !t && !e.prefix) {
208
- let o = !1;
209
- return _e(e) && (e.prefix = "", je(e, (r, s) => {
210
- s && tt(r, s) && (o = !0);
211
- })), o;
212
- }
213
- const n = e.prefix;
214
- if (!F({
215
- provider: t,
216
- prefix: n,
217
- name: "a"
218
- }))
219
- return !1;
220
- const i = C(t, n);
221
- return !!ne(i, e);
222
- }
223
- const Pe = Object.freeze({
224
- width: null,
225
- height: null
226
- }), Me = Object.freeze({
227
- // Dimensions
228
- ...Pe,
229
- // Transformations
230
- ...B
231
- }), ot = /(-?[0-9.]*[0-9]+[0-9.]*)/g, it = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
232
- function fe(e, t, n) {
233
- if (t === 1)
234
- return e;
235
- if (n = n || 100, typeof e == "number")
236
- return Math.ceil(e * t * n) / n;
237
- if (typeof e != "string")
238
- return e;
239
- const i = e.split(ot);
240
- if (i === null || !i.length)
241
- return e;
242
- const o = [];
243
- let r = i.shift(), s = it.test(r);
244
- for (; ; ) {
245
- if (s) {
246
- const c = parseFloat(r);
247
- isNaN(c) ? o.push(r) : o.push(Math.ceil(c * t * n) / n);
248
- } else
249
- o.push(r);
250
- if (r = i.shift(), r === void 0)
251
- return o.join("");
252
- s = !s;
253
- }
254
- }
255
- const rt = (e) => e === "unset" || e === "undefined" || e === "none";
256
- function st(e, t) {
257
- const n = {
258
- ...$,
259
- ...e
260
- }, i = {
261
- ...Me,
262
- ...t
263
- }, o = {
264
- left: n.left,
265
- top: n.top,
266
- width: n.width,
267
- height: n.height
268
- };
269
- let r = n.body;
270
- [n, i].forEach((w) => {
271
- const h = [], f = w.hFlip, S = w.vFlip;
272
- let y = w.rotate;
273
- f ? S ? y += 2 : (h.push(
274
- "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
275
- ), h.push("scale(-1 1)"), o.top = o.left = 0) : S && (h.push(
276
- "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
277
- ), h.push("scale(1 -1)"), o.top = o.left = 0);
278
- let b;
279
- switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
280
- case 1:
281
- b = o.height / 2 + o.top, h.unshift(
282
- "rotate(90 " + b.toString() + " " + b.toString() + ")"
283
- );
284
- break;
285
- case 2:
286
- h.unshift(
287
- "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
288
- );
289
- break;
290
- case 3:
291
- b = o.width / 2 + o.left, h.unshift(
292
- "rotate(-90 " + b.toString() + " " + b.toString() + ")"
293
- );
294
- break;
295
- }
296
- y % 2 === 1 && (o.left !== o.top && (b = o.left, o.left = o.top, o.top = b), o.width !== o.height && (b = o.width, o.width = o.height, o.height = b)), h.length && (r = '<g transform="' + h.join(" ") + '">' + r + "</g>");
297
- });
298
- const s = i.width, c = i.height, l = o.width, a = o.height;
299
- let u, d;
300
- s === null ? (d = c === null ? "1em" : c === "auto" ? a : c, u = fe(d, l / a)) : (u = s === "auto" ? l : s, d = c === null ? fe(u, a / l) : c === "auto" ? a : c);
301
- const g = {}, m = (w, h) => {
302
- rt(h) || (g[w] = h.toString());
303
- };
304
- return m("width", u), m("height", d), g.viewBox = o.left.toString() + " " + o.top.toString() + " " + l.toString() + " " + a.toString(), {
305
- attributes: g,
306
- body: r
307
- };
308
- }
309
- const ct = /\sid="(\S+)"/g, lt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
310
- let at = 0;
311
- function ut(e, t = lt) {
312
- const n = [];
313
- let i;
314
- for (; i = ct.exec(e); )
315
- n.push(i[1]);
316
- if (!n.length)
317
- return e;
318
- const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
319
- return n.forEach((r) => {
320
- const s = typeof t == "function" ? t(r) : t + (at++).toString(), c = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
321
- e = e.replace(
322
- // Allowed characters before id: [#;"]
323
- // Allowed characters after id: [)"], .[a-z]
324
- new RegExp('([#;"])(' + c + ')([")]|\\.[a-z])', "g"),
325
- "$1" + s + o + "$3"
326
- );
327
- }), e = e.replace(new RegExp(o, "g"), ""), e;
328
- }
329
- const G = /* @__PURE__ */ Object.create(null);
330
- function ft(e, t) {
331
- G[e] = t;
332
- }
333
- function J(e) {
334
- return G[e] || G[""];
335
- }
336
- function oe(e) {
337
- let t;
338
- if (typeof e.resources == "string")
339
- t = [e.resources];
340
- else if (t = e.resources, !(t instanceof Array) || !t.length)
341
- return null;
342
- return {
343
- // API hosts
344
- resources: t,
345
- // Root path
346
- path: e.path || "/",
347
- // URL length limit
348
- maxURL: e.maxURL || 500,
349
- // Timeout before next host is used.
350
- rotate: e.rotate || 750,
351
- // Timeout before failing query.
352
- timeout: e.timeout || 5e3,
353
- // Randomise default API end point.
354
- random: e.random === !0,
355
- // Start index
356
- index: e.index || 0,
357
- // Receive data after time out (used if time out kicks in first, then API module sends data anyway).
358
- dataAfterTimeout: e.dataAfterTimeout !== !1
359
- };
360
- }
361
- const ie = /* @__PURE__ */ Object.create(null), j = [
362
- "https://api.simplesvg.com",
363
- "https://api.unisvg.com"
364
- ], A = [];
365
- for (; j.length > 0; )
366
- j.length === 1 || Math.random() > 0.5 ? A.push(j.shift()) : A.push(j.pop());
367
- ie[""] = oe({
368
- resources: ["https://api.iconify.design"].concat(A)
369
- });
370
- function dt(e, t) {
371
- const n = oe(t);
372
- return n === null ? !1 : (ie[e] = n, !0);
373
- }
374
- function re(e) {
375
- return ie[e];
376
- }
377
- const ht = () => {
378
- let e;
379
- try {
380
- if (e = fetch, typeof e == "function")
381
- return e;
382
- } catch {
383
- }
384
- };
385
- let de = ht();
386
- function pt(e, t) {
387
- const n = re(e);
388
- if (!n)
389
- return 0;
390
- let i;
391
- if (!n.maxURL)
392
- i = 0;
393
- else {
394
- let o = 0;
395
- n.resources.forEach((s) => {
396
- o = Math.max(o, s.length);
397
- });
398
- const r = t + ".json?icons=";
399
- i = n.maxURL - o - n.path.length - r.length;
400
- }
401
- return i;
402
- }
403
- function gt(e) {
404
- return e === 404;
405
- }
406
- const mt = (e, t, n) => {
407
- const i = [], o = pt(e, t), r = "icons";
408
- let s = {
409
- type: r,
410
- provider: e,
411
- prefix: t,
412
- icons: []
413
- }, c = 0;
414
- return n.forEach((l, a) => {
415
- c += l.length + 1, c >= o && a > 0 && (i.push(s), s = {
416
- type: r,
417
- provider: e,
418
- prefix: t,
419
- icons: []
420
- }, c = l.length), s.icons.push(l);
421
- }), i.push(s), i;
422
- };
423
- function yt(e) {
424
- if (typeof e == "string") {
425
- const t = re(e);
426
- if (t)
427
- return t.path;
428
- }
429
- return "/";
430
- }
431
- const bt = (e, t, n) => {
432
- if (!de) {
433
- n("abort", 424);
434
- return;
435
- }
436
- let i = yt(t.provider);
437
- switch (t.type) {
438
- case "icons": {
439
- const r = t.prefix, c = t.icons.join(","), l = new URLSearchParams({
440
- icons: c
441
- });
442
- i += r + ".json?" + l.toString();
443
- break;
444
- }
445
- case "custom": {
446
- const r = t.uri;
447
- i += r.slice(0, 1) === "/" ? r.slice(1) : r;
448
- break;
449
- }
450
- default:
451
- n("abort", 400);
452
- return;
453
- }
454
- let o = 503;
455
- de(e + i).then((r) => {
456
- const s = r.status;
457
- if (s !== 200) {
458
- setTimeout(() => {
459
- n(gt(s) ? "abort" : "next", s);
460
- });
461
- return;
462
- }
463
- return o = 501, r.json();
464
- }).then((r) => {
465
- if (typeof r != "object" || r === null) {
466
- setTimeout(() => {
467
- r === 404 ? n("abort", r) : n("next", o);
468
- });
469
- return;
470
- }
471
- setTimeout(() => {
472
- n("success", r);
473
- });
474
- }).catch(() => {
475
- n("next", o);
476
- });
477
- }, wt = {
478
- prepare: mt,
479
- send: bt
480
- };
481
- function vt(e) {
482
- const t = {
483
- loaded: [],
484
- missing: [],
485
- pending: []
486
- }, n = /* @__PURE__ */ Object.create(null);
487
- e.sort((o, r) => o.provider !== r.provider ? o.provider.localeCompare(r.provider) : o.prefix !== r.prefix ? o.prefix.localeCompare(r.prefix) : o.name.localeCompare(r.name));
488
- let i = {
489
- provider: "",
490
- prefix: "",
491
- name: ""
492
- };
493
- return e.forEach((o) => {
494
- if (i.name === o.name && i.prefix === o.prefix && i.provider === o.provider)
495
- return;
496
- i = o;
497
- const r = o.provider, s = o.prefix, c = o.name, l = n[r] || (n[r] = /* @__PURE__ */ Object.create(null)), a = l[s] || (l[s] = C(r, s));
498
- let u;
499
- c in a.icons ? u = t.loaded : s === "" || a.missing.has(c) ? u = t.missing : u = t.pending;
500
- const d = {
501
- provider: r,
502
- prefix: s,
503
- name: c
504
- };
505
- u.push(d);
506
- }), t;
507
- }
508
- function Oe(e, t) {
509
- e.forEach((n) => {
510
- const i = n.loaderCallbacks;
511
- i && (n.loaderCallbacks = i.filter((o) => o.id !== t));
512
- });
513
- }
514
- function It(e) {
515
- e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
516
- e.pendingCallbacksFlag = !1;
517
- const t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
518
- if (!t.length)
519
- return;
520
- let n = !1;
521
- const i = e.provider, o = e.prefix;
522
- t.forEach((r) => {
523
- const s = r.icons, c = s.pending.length;
524
- s.pending = s.pending.filter((l) => {
525
- if (l.prefix !== o)
526
- return !0;
527
- const a = l.name;
528
- if (e.icons[a])
529
- s.loaded.push({
530
- provider: i,
531
- prefix: o,
532
- name: a
533
- });
534
- else if (e.missing.has(a))
535
- s.missing.push({
536
- provider: i,
537
- prefix: o,
538
- name: a
539
- });
540
- else
541
- return n = !0, !0;
542
- return !1;
543
- }), s.pending.length !== c && (n || Oe([e], r.id), r.callback(
544
- s.loaded.slice(0),
545
- s.missing.slice(0),
546
- s.pending.slice(0),
547
- r.abort
548
- ));
549
- });
550
- }));
551
- }
552
- let St = 0;
553
- function xt(e, t, n) {
554
- const i = St++, o = Oe.bind(null, n, i);
555
- if (!t.pending.length)
556
- return o;
557
- const r = {
558
- id: i,
559
- icons: t,
560
- callback: e,
561
- abort: o
562
- };
563
- return n.forEach((s) => {
564
- (s.loaderCallbacks || (s.loaderCallbacks = [])).push(r);
565
- }), o;
566
- }
567
- function kt(e, t = !0, n = !1) {
568
- const i = [];
569
- return e.forEach((o) => {
570
- const r = typeof o == "string" ? D(o, t, n) : o;
571
- r && i.push(r);
572
- }), i;
573
- }
574
- var Ct = {
575
- resources: [],
576
- index: 0,
577
- timeout: 2e3,
578
- rotate: 750,
579
- random: !1,
580
- dataAfterTimeout: !1
581
- };
582
- function Tt(e, t, n, i) {
583
- const o = e.resources.length, r = e.random ? Math.floor(Math.random() * o) : e.index;
584
- let s;
585
- if (e.random) {
586
- let p = e.resources.slice(0);
587
- for (s = []; p.length > 1; ) {
588
- const v = Math.floor(Math.random() * p.length);
589
- s.push(p[v]), p = p.slice(0, v).concat(p.slice(v + 1));
590
- }
591
- s = s.concat(p);
592
- } else
593
- s = e.resources.slice(r).concat(e.resources.slice(0, r));
594
- const c = Date.now();
595
- let l = "pending", a = 0, u, d = null, g = [], m = [];
596
- typeof i == "function" && m.push(i);
597
- function w() {
598
- d && (clearTimeout(d), d = null);
599
- }
600
- function h() {
601
- l === "pending" && (l = "aborted"), w(), g.forEach((p) => {
602
- p.status === "pending" && (p.status = "aborted");
603
- }), g = [];
604
- }
605
- function f(p, v) {
606
- v && (m = []), typeof p == "function" && m.push(p);
607
- }
608
- function S() {
609
- return {
610
- startTime: c,
611
- payload: t,
612
- status: l,
613
- queriesSent: a,
614
- queriesPending: g.length,
615
- subscribe: f,
616
- abort: h
617
- };
618
- }
619
- function y() {
620
- l = "failed", m.forEach((p) => {
621
- p(void 0, u);
622
- });
623
- }
624
- function b() {
625
- g.forEach((p) => {
626
- p.status === "pending" && (p.status = "aborted");
627
- }), g = [];
628
- }
629
- function He(p, v, T) {
630
- const M = v !== "success";
631
- switch (g = g.filter((x) => x !== p), l) {
632
- case "pending":
633
- break;
634
- case "failed":
635
- if (M || !e.dataAfterTimeout)
636
- return;
637
- break;
638
- default:
639
- return;
640
- }
641
- if (v === "abort") {
642
- u = T, y();
643
- return;
644
- }
645
- if (M) {
646
- u = T, g.length || (s.length ? R() : y());
647
- return;
648
- }
649
- if (w(), b(), !e.random) {
650
- const x = e.resources.indexOf(p.resource);
651
- x !== -1 && x !== e.index && (e.index = x);
652
- }
653
- l = "completed", m.forEach((x) => {
654
- x(T);
655
- });
656
- }
657
- function R() {
658
- if (l !== "pending")
659
- return;
660
- w();
661
- const p = s.shift();
662
- if (p === void 0) {
663
- if (g.length) {
664
- d = setTimeout(() => {
665
- w(), l === "pending" && (b(), y());
666
- }, e.timeout);
667
- return;
668
- }
669
- y();
670
- return;
671
- }
672
- const v = {
673
- status: "pending",
674
- resource: p,
675
- callback: (T, M) => {
676
- He(v, T, M);
677
- }
678
- };
679
- g.push(v), a++, d = setTimeout(R, e.rotate), n(p, t, v.callback);
680
- }
681
- return setTimeout(R), S;
682
- }
683
- function Le(e) {
684
- const t = {
685
- ...Ct,
686
- ...e
687
- };
688
- let n = [];
689
- function i() {
690
- n = n.filter((c) => c().status === "pending");
691
- }
692
- function o(c, l, a) {
693
- const u = Tt(
694
- t,
695
- c,
696
- l,
697
- (d, g) => {
698
- i(), a && a(d, g);
699
- }
700
- );
701
- return n.push(u), u;
702
- }
703
- function r(c) {
704
- return n.find((l) => c(l)) || null;
705
- }
706
- return {
707
- query: o,
708
- find: r,
709
- setIndex: (c) => {
710
- t.index = c;
711
- },
712
- getIndex: () => t.index,
713
- cleanup: i
714
- };
715
- }
716
- function he() {
717
- }
718
- const U = /* @__PURE__ */ Object.create(null);
719
- function jt(e) {
720
- if (!U[e]) {
721
- const t = re(e);
722
- if (!t)
723
- return;
724
- const n = Le(t), i = {
725
- config: t,
726
- redundancy: n
727
- };
728
- U[e] = i;
729
- }
730
- return U[e];
731
- }
732
- function _t(e, t, n) {
733
- let i, o;
734
- if (typeof e == "string") {
735
- const r = J(e);
736
- if (!r)
737
- return n(void 0, 424), he;
738
- o = r.send;
739
- const s = jt(e);
740
- s && (i = s.redundancy);
741
- } else {
742
- const r = oe(e);
743
- if (r) {
744
- i = Le(r);
745
- const s = e.resources ? e.resources[0] : "", c = J(s);
746
- c && (o = c.send);
747
- }
748
- }
749
- return !i || !o ? (n(void 0, 424), he) : i.query(t, o, n)().abort;
750
- }
751
- const pe = "iconify2", P = "iconify", Fe = P + "-count", ge = P + "-version", Ae = 36e5, Et = 168;
752
- function X(e, t) {
753
- try {
754
- return e.getItem(t);
755
- } catch {
756
- }
757
- }
758
- function se(e, t, n) {
759
- try {
760
- return e.setItem(t, n), !0;
761
- } catch {
762
- }
763
- }
764
- function me(e, t) {
765
- try {
766
- e.removeItem(t);
767
- } catch {
768
- }
769
- }
770
- function Y(e, t) {
771
- return se(e, Fe, t.toString());
772
- }
773
- function Z(e) {
774
- return parseInt(X(e, Fe)) || 0;
775
- }
776
- const H = {
777
- local: !0,
778
- session: !0
779
- }, ze = {
780
- local: /* @__PURE__ */ new Set(),
781
- session: /* @__PURE__ */ new Set()
782
- };
783
- let ce = !1;
784
- function Pt(e) {
785
- ce = e;
786
- }
787
- let O = typeof window > "u" ? {} : window;
788
- function Ne(e) {
789
- const t = e + "Storage";
790
- try {
791
- if (O && O[t] && typeof O[t].length == "number")
792
- return O[t];
793
- } catch {
794
- }
795
- H[e] = !1;
796
- }
797
- function Be(e, t) {
798
- const n = Ne(e);
799
- if (!n)
800
- return;
801
- const i = X(n, ge);
802
- if (i !== pe) {
803
- if (i) {
804
- const c = Z(n);
805
- for (let l = 0; l < c; l++)
806
- me(n, P + l.toString());
807
- }
808
- se(n, ge, pe), Y(n, 0);
809
- return;
810
- }
811
- const o = Math.floor(Date.now() / Ae) - Et, r = (c) => {
812
- const l = P + c.toString(), a = X(n, l);
813
- if (typeof a == "string") {
814
- try {
815
- const u = JSON.parse(a);
816
- 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
817
- t(u, c))
818
- return !0;
819
- } catch {
820
- }
821
- me(n, l);
822
- }
823
- };
824
- let s = Z(n);
825
- for (let c = s - 1; c >= 0; c--)
826
- r(c) || (c === s - 1 ? (s--, Y(n, s)) : ze[e].add(c));
827
- }
828
- function De() {
829
- if (!ce) {
830
- Pt(!0);
831
- for (const e in H)
832
- Be(e, (t) => {
833
- const n = t.data, i = t.provider, o = n.prefix, r = C(
834
- i,
835
- o
836
- );
837
- if (!ne(r, n).length)
838
- return !1;
839
- const s = n.lastModified || -1;
840
- return r.lastModifiedCached = r.lastModifiedCached ? Math.min(r.lastModifiedCached, s) : s, !0;
841
- });
842
- }
843
- }
844
- function Mt(e, t) {
845
- const n = e.lastModifiedCached;
846
- if (
847
- // Matches or newer
848
- n && n >= t
849
- )
850
- return n === t;
851
- if (e.lastModifiedCached = t, n)
852
- for (const i in H)
853
- Be(i, (o) => {
854
- const r = o.data;
855
- return o.provider !== e.provider || r.prefix !== e.prefix || r.lastModified === t;
856
- });
857
- return !0;
858
- }
859
- function Ot(e, t) {
860
- ce || De();
861
- function n(i) {
862
- let o;
863
- if (!H[i] || !(o = Ne(i)))
864
- return;
865
- const r = ze[i];
866
- let s;
867
- if (r.size)
868
- r.delete(s = Array.from(r).shift());
869
- else if (s = Z(o), !Y(o, s + 1))
870
- return;
871
- const c = {
872
- cached: Math.floor(Date.now() / Ae),
873
- provider: e.provider,
874
- data: t
875
- };
876
- return se(
877
- o,
878
- P + s.toString(),
879
- JSON.stringify(c)
880
- );
881
- }
882
- t.lastModified && !Mt(e, t.lastModified) || Object.keys(t.icons).length && (t.not_found && (t = Object.assign({}, t), delete t.not_found), n("local") || n("session"));
883
- }
884
- function ye() {
885
- }
886
- function Lt(e) {
887
- e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
888
- e.iconsLoaderFlag = !1, It(e);
889
- }));
890
- }
891
- function Ft(e, t) {
892
- e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
893
- e.iconsQueueFlag = !1;
894
- const { provider: n, prefix: i } = e, o = e.iconsToLoad;
895
- delete e.iconsToLoad;
896
- let r;
897
- if (!o || !(r = J(n)))
898
- return;
899
- r.prepare(n, i, o).forEach((c) => {
900
- _t(n, c, (l) => {
901
- if (typeof l != "object")
902
- c.icons.forEach((a) => {
903
- e.missing.add(a);
904
- });
905
- else
906
- try {
907
- const a = ne(
908
- e,
909
- l
910
- );
911
- if (!a.length)
912
- return;
913
- const u = e.pendingIcons;
914
- u && a.forEach((d) => {
915
- u.delete(d);
916
- }), Ot(e, l);
917
- } catch (a) {
918
- console.error(a);
919
- }
920
- Lt(e);
921
- });
922
- });
923
- }));
924
- }
925
- const At = (e, t) => {
926
- const n = kt(e, !0, Ee()), i = vt(n);
927
- if (!i.pending.length) {
928
- let l = !0;
929
- return t && setTimeout(() => {
930
- l && t(
931
- i.loaded,
932
- i.missing,
933
- i.pending,
934
- ye
935
- );
936
- }), () => {
937
- l = !1;
938
- };
939
- }
940
- const o = /* @__PURE__ */ Object.create(null), r = [];
941
- let s, c;
942
- return i.pending.forEach((l) => {
943
- const { provider: a, prefix: u } = l;
944
- if (u === c && a === s)
945
- return;
946
- s = a, c = u, r.push(C(a, u));
947
- const d = o[a] || (o[a] = /* @__PURE__ */ Object.create(null));
948
- d[u] || (d[u] = []);
949
- }), i.pending.forEach((l) => {
950
- const { provider: a, prefix: u, name: d } = l, g = C(a, u), m = g.pendingIcons || (g.pendingIcons = /* @__PURE__ */ new Set());
951
- m.has(d) || (m.add(d), o[a][u].push(d));
952
- }), r.forEach((l) => {
953
- const { provider: a, prefix: u } = l;
954
- o[a][u].length && Ft(l, o[a][u]);
955
- }), t ? xt(t, i, r) : ye;
956
- };
957
- function zt(e, t) {
958
- const n = {
959
- ...e
960
- };
961
- for (const i in t) {
962
- const o = t[i], r = typeof o;
963
- i in Pe ? (o === null || o && (r === "string" || r === "number")) && (n[i] = o) : r === typeof n[i] && (n[i] = i === "rotate" ? o % 4 : o);
964
- }
965
- return n;
966
- }
967
- const Nt = /[\s,]+/;
968
- function Bt(e, t) {
969
- t.split(Nt).forEach((n) => {
970
- switch (n.trim()) {
971
- case "horizontal":
972
- e.hFlip = !0;
973
- break;
974
- case "vertical":
975
- e.vFlip = !0;
976
- break;
977
- }
978
- });
979
- }
980
- function Dt(e, t = 0) {
981
- const n = e.replace(/^-?[0-9.]*/, "");
982
- function i(o) {
983
- for (; o < 0; )
984
- o += 4;
985
- return o % 4;
986
- }
987
- if (n === "") {
988
- const o = parseInt(e);
989
- return isNaN(o) ? 0 : i(o);
990
- } else if (n !== e) {
991
- let o = 0;
992
- switch (n) {
993
- case "%":
994
- o = 25;
995
- break;
996
- case "deg":
997
- o = 90;
998
- }
999
- if (o) {
1000
- let r = parseFloat(e.slice(0, e.length - n.length));
1001
- return isNaN(r) ? 0 : (r = r / o, r % 1 === 0 ? i(r) : 0);
1002
- }
1003
- }
12
+ const z = (s, n) => {
13
+ const t = s.__vccOpts || s;
14
+ for (const [o, e] of n)
15
+ t[o] = e;
1004
16
  return t;
1005
- }
1006
- function $t(e, t) {
1007
- let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1008
- for (const i in t)
1009
- n += " " + i + '="' + t[i] + '"';
1010
- return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
1011
- }
1012
- function Ht(e) {
1013
- return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1014
- }
1015
- function Rt(e) {
1016
- return "data:image/svg+xml," + Ht(e);
1017
- }
1018
- function Vt(e) {
1019
- return 'url("' + Rt(e) + '")';
1020
- }
1021
- const be = {
1022
- ...Me,
1023
- inline: !1
1024
- }, qt = {
1025
- xmlns: "http://www.w3.org/2000/svg",
1026
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
1027
- "aria-hidden": !0,
1028
- role: "img"
1029
- }, Qt = {
1030
- display: "inline-block"
1031
- }, ee = {
1032
- backgroundColor: "currentColor"
1033
- }, $e = {
1034
- backgroundColor: "transparent"
1035
- }, we = {
1036
- Image: "var(--svg)",
1037
- Repeat: "no-repeat",
1038
- Size: "100% 100%"
1039
- }, ve = {
1040
- webkitMask: ee,
1041
- mask: ee,
1042
- background: $e
1043
- };
1044
- for (const e in ve) {
1045
- const t = ve[e];
1046
- for (const n in we)
1047
- t[e + n] = we[n];
1048
- }
1049
- const z = {};
1050
- ["horizontal", "vertical"].forEach((e) => {
1051
- const t = e.slice(0, 1) + "Flip";
1052
- z[e + "-flip"] = t, z[e.slice(0, 1) + "-flip"] = t, z[e + "Flip"] = t;
1053
- });
1054
- function Ie(e) {
1055
- return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1056
- }
1057
- const Se = (e, t) => {
1058
- const n = zt(be, t), i = { ...qt }, o = t.mode || "svg", r = {}, s = t.style, c = typeof s == "object" && !(s instanceof Array) ? s : {};
1059
- for (let h in t) {
1060
- const f = t[h];
1061
- if (f !== void 0)
1062
- switch (h) {
1063
- case "icon":
1064
- case "style":
1065
- case "onLoad":
1066
- case "mode":
1067
- break;
1068
- case "inline":
1069
- case "hFlip":
1070
- case "vFlip":
1071
- n[h] = f === !0 || f === "true" || f === 1;
1072
- break;
1073
- case "flip":
1074
- typeof f == "string" && Bt(n, f);
1075
- break;
1076
- case "color":
1077
- r.color = f;
1078
- break;
1079
- case "rotate":
1080
- typeof f == "string" ? n[h] = Dt(f) : typeof f == "number" && (n[h] = f);
1081
- break;
1082
- case "ariaHidden":
1083
- case "aria-hidden":
1084
- f !== !0 && f !== "true" && delete i["aria-hidden"];
1085
- break;
1086
- default: {
1087
- const S = z[h];
1088
- S ? (f === !0 || f === "true" || f === 1) && (n[S] = !0) : be[h] === void 0 && (i[h] = f);
1089
- }
1090
- }
1091
- }
1092
- const l = st(e, n), a = l.attributes;
1093
- if (n.inline && (r.verticalAlign = "-0.125em"), o === "svg") {
1094
- i.style = {
1095
- ...r,
1096
- ...c
1097
- }, Object.assign(i, a);
1098
- let h = 0, f = t.id;
1099
- return typeof f == "string" && (f = f.replace(/-/g, "_")), i.innerHTML = ut(l.body, f ? () => f + "ID" + h++ : "iconifyVue"), le("svg", i);
1100
- }
1101
- const { body: u, width: d, height: g } = e, m = o === "mask" || (o === "bg" ? !1 : u.indexOf("currentColor") !== -1), w = $t(u, {
1102
- ...a,
1103
- width: d + "",
1104
- height: g + ""
1105
- });
1106
- return i.style = {
1107
- ...r,
1108
- "--svg": Vt(w),
1109
- width: Ie(a.width),
1110
- height: Ie(a.height),
1111
- ...Qt,
1112
- ...m ? ee : $e,
1113
- ...c
1114
- }, le("span", i);
1115
- };
1116
- Ee(!0);
1117
- ft("", wt);
1118
- if (typeof document < "u" && typeof window < "u") {
1119
- De();
1120
- const e = window;
1121
- if (e.IconifyPreload !== void 0) {
1122
- const t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
1123
- typeof t == "object" && t !== null && (t instanceof Array ? t : [t]).forEach((i) => {
1124
- try {
1125
- // Check if item is an object and not null/array
1126
- (typeof i != "object" || i === null || i instanceof Array || // Check for 'icons' and 'prefix'
1127
- typeof i.icons != "object" || typeof i.prefix != "string" || // Add icon set
1128
- !nt(i)) && console.error(n);
1129
- } catch {
1130
- console.error(n);
1131
- }
1132
- });
1133
- }
1134
- if (e.IconifyProviders !== void 0) {
1135
- const t = e.IconifyProviders;
1136
- if (typeof t == "object" && t !== null)
1137
- for (let n in t) {
1138
- const i = "IconifyProviders[" + n + "] is invalid.";
1139
- try {
1140
- const o = t[n];
1141
- if (typeof o != "object" || !o || o.resources === void 0)
1142
- continue;
1143
- dt(n, o) || console.error(i);
1144
- } catch {
1145
- console.error(i);
1146
- }
1147
- }
1148
- }
1149
- }
1150
- const Ut = {
1151
- ...$,
1152
- body: ""
1153
- }, xe = te({
1154
- // Do not inherit other attributes: it is handled by render()
1155
- inheritAttrs: !1,
1156
- // Set initial data
1157
- data() {
1158
- return {
1159
- // Mounted status
1160
- iconMounted: !1,
1161
- // Callback counter to trigger re-render
1162
- counter: 0
1163
- };
1164
- },
1165
- mounted() {
1166
- this._name = "", this._loadingIcon = null, this.iconMounted = !0;
1167
- },
1168
- unmounted() {
1169
- this.abortLoading();
1170
- },
1171
- methods: {
1172
- abortLoading() {
1173
- this._loadingIcon && (this._loadingIcon.abort(), this._loadingIcon = null);
1174
- },
1175
- // Get data for icon to render or null
1176
- getIcon(e, t) {
1177
- if (typeof e == "object" && e !== null && typeof e.body == "string")
1178
- return this._name = "", this.abortLoading(), {
1179
- data: e
1180
- };
1181
- let n;
1182
- if (typeof e != "string" || (n = D(e, !1, !0)) === null)
1183
- return this.abortLoading(), null;
1184
- const i = et(n);
1185
- if (!i)
1186
- return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", i !== null && (this._loadingIcon = {
1187
- name: e,
1188
- abort: At([n], () => {
1189
- this.counter++;
1190
- })
1191
- })), null;
1192
- this.abortLoading(), this._name !== e && (this._name = e, t && t(e));
1193
- const o = ["iconify"];
1194
- return n.prefix !== "" && o.push("iconify--" + n.prefix), n.provider !== "" && o.push("iconify--" + n.provider), { data: i, classes: o };
1195
- }
1196
- },
1197
- // Render icon
1198
- render() {
1199
- this.counter;
1200
- const e = this.$attrs, t = this.iconMounted ? this.getIcon(e.icon, e.onLoad) : null;
1201
- if (!t)
1202
- return Se(Ut, e);
1203
- let n = e;
1204
- return t.classes && (n = {
1205
- ...e,
1206
- class: (typeof e.class == "string" ? e.class + " " : "") + t.classes.join(" ")
1207
- }), Se({
1208
- ...$,
1209
- ...t.data
1210
- }, n);
1211
- }
1212
- }), Wt = {
17
+ }, _ = { class: "inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center" }, C = {
1213
18
  key: 1,
1214
- class: "basicHeight basicWidth",
19
+ class: "h-[1em] w-[1em]",
1215
20
  "aria-hidden": "true"
1216
- }, Kt = ["xlink:href"], Gt = ["src"], Jt = {
21
+ }, B = ["xlink:href"], I = ["src"], S = {
1217
22
  key: 1,
1218
- class: "basicHeight basicWidth",
23
+ class: "h-[1em] w-[1em]",
1219
24
  "aria-hidden": "true"
1220
- }, Xt = ["xlink:href"], Yt = ["src"], Zt = /* @__PURE__ */ te({
25
+ }, $ = ["xlink:href"], E = ["src"], j = /* @__PURE__ */ p({
1221
26
  name: "IkSvgIcon",
1222
27
  __name: "index",
1223
28
  props: {
@@ -1225,6 +30,7 @@ const Ut = {
1225
30
  flip: {},
1226
31
  rotate: {},
1227
32
  color: {},
33
+ opacity: { default: 0.5 },
1228
34
  size: { default: "" },
1229
35
  bg: { type: Boolean, default: !1 },
1230
36
  showBg: { type: Boolean, default: !1 },
@@ -1233,114 +39,128 @@ const Ut = {
1233
39
  notip: { type: Boolean, default: !1 },
1234
40
  title: {}
1235
41
  },
1236
- setup(e) {
1237
- const t = e, n = V(() => {
1238
- var r;
1239
- return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (r = t.name) != null && r.includes(":") ? "iconify" : "svg";
1240
- }), i = V(() => {
1241
- const r = [];
1242
- if (t.flip)
1243
- switch (t.flip) {
42
+ setup(s) {
43
+ const n = s, t = m(() => {
44
+ var e;
45
+ return /^http?:\/\//.test(n.name) ? "img" : /i-[^:]+:[^:]+/.test(n.name) ? "unocss" : n.name.startsWith("iksig") ? "iksig" : (e = n.name) != null && e.includes(":") ? "iconify" : "svg";
46
+ }), o = m(() => {
47
+ const e = [];
48
+ if (n.flip)
49
+ switch (n.flip) {
1244
50
  case "horizontal":
1245
- r.push("rotateY(180deg)");
51
+ e.push("rotateY(180deg)");
1246
52
  break;
1247
53
  case "vertical":
1248
- r.push("rotateX(180deg)");
54
+ e.push("rotateX(180deg)");
1249
55
  break;
1250
56
  case "both":
1251
- r.push("rotateX(180deg)"), r.push("rotateY(180deg)");
57
+ e.push("rotateX(180deg)"), e.push("rotateY(180deg)");
1252
58
  break;
1253
59
  }
1254
- return t.rotate && r.push(`rotate(${t.rotate % 360}deg)`), {
1255
- ...t.color && { color: t.color },
1256
- ...t.size && {
1257
- fontSize: typeof t.size == "number" ? `${t.size}px` : t.size
1258
- },
1259
- ...r.length && { transform: r.join(" ") },
1260
- padding: t.padding
60
+ return n.rotate && e.push(`rotate(${n.rotate % 360}deg)`), {
61
+ ...n.color && { color: n.color },
62
+ ...n.size && { fontSize: typeof n.size == "number" ? `${n.size}px` : n.size },
63
+ ...e.length && { transform: e.join(" ") },
64
+ padding: n.padding,
65
+ ...n.color && t.value !== "iksig" ? {
66
+ "--ik-color-icon-dark": n.color,
67
+ "--ik-color-icon-light": b.setOpacity(n.color, n.opacity || 0.4)
68
+ } : {}
1261
69
  };
1262
- }), o = V(
1263
- () => document.body.getAttribute("data-theme") === "dark"
1264
- );
1265
- return (r, s) => {
1266
- const c = Re("el-tooltip");
1267
- return r.notip || !r.title ? (I(), k(
1268
- "i",
1269
- {
1270
- key: 0,
1271
- class: Ve(["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition", {
1272
- [r.name]: n.value === "unocss",
1273
- "show-bg": r.showBg || r.bg,
1274
- default: r.size === "default",
1275
- small: r.size === "small",
1276
- big: r.size === "big",
1277
- warning: r.warning
1278
- }]),
1279
- style: qe(i.value)
1280
- },
1281
- [
1282
- n.value === "iconify" ? (I(), L(W(xe), {
70
+ });
71
+ return (e, h) => {
72
+ const a = k("el-tooltip");
73
+ return i(), l("span", _, [
74
+ e.notip || !e.title ? (i(), l(
75
+ "i",
76
+ {
1283
77
  key: 0,
1284
- icon: r.name
1285
- }, null, 8, ["icon"])) : n.value === "svg" ? (I(), k("svg", Wt, [
1286
- q("use", {
1287
- "xlink:href": `#${r.name}`
1288
- }, null, 8, Kt)
1289
- ])) : n.value === "img" ? (I(), k("img", {
1290
- key: 2,
1291
- src: r.name,
1292
- class: "basicHeight basicWidth"
1293
- }, null, 8, Gt)) : N("v-if", !0)
1294
- ],
1295
- 6
1296
- /* CLASS, STYLE */
1297
- )) : (I(), L(c, {
1298
- key: 1,
1299
- effect: o.value ? "dark" : "light",
1300
- content: r.title
1301
- }, {
1302
- default: Qe(() => [
1303
- q(
1304
- "i",
1305
- Ue({
1306
- class: ["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition", {
1307
- [r.name]: n.value === "unocss",
1308
- "show-bg": r.showBg || r.bg,
1309
- default: r.size === "default",
1310
- small: r.size === "small",
1311
- big: r.size === "big",
1312
- warning: r.warning
1313
- }],
1314
- style: i.value
1315
- }, r.$attrs),
1316
- [
1317
- n.value === "iconify" ? (I(), L(W(xe), {
78
+ class: r(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition", {
79
+ [e.name]: t.value === "unocss",
80
+ "show-bg": e.showBg || e.bg,
81
+ default: e.size === "default",
82
+ small: e.size === "small",
83
+ big: e.size === "big",
84
+ warning: e.warning
85
+ }]),
86
+ style: c(o.value)
87
+ },
88
+ [
89
+ t.value === "iksig" ? (i(), l(
90
+ "i",
91
+ {
1318
92
  key: 0,
1319
- icon: r.name
1320
- }, null, 8, ["icon"])) : n.value === "svg" ? (I(), k("svg", Jt, [
1321
- q("use", {
1322
- "xlink:href": `#${r.name}`
1323
- }, null, 8, Xt)
1324
- ])) : n.value === "img" ? (I(), k("img", {
1325
- key: 2,
1326
- src: r.name,
1327
- class: "basicHeight basicWidth"
1328
- }, null, 8, Yt)) : N("v-if", !0)
1329
- ],
1330
- 16
1331
- /* FULL_PROPS */
1332
- )
1333
- ]),
1334
- _: 1
1335
- /* STABLE */
1336
- }, 8, ["effect", "content"]));
93
+ class: r(`iksig ${e.name}`),
94
+ style: c(o.value)
95
+ },
96
+ null,
97
+ 6
98
+ /* CLASS, STYLE */
99
+ )) : t.value === "svg" ? (i(), l("svg", C, [
100
+ d("use", {
101
+ "xlink:href": `#${e.name}`
102
+ }, null, 8, B)
103
+ ])) : t.value === "img" ? (i(), l("img", {
104
+ key: 2,
105
+ src: e.name,
106
+ class: "h-[1em] w-[1em]"
107
+ }, null, 8, I)) : u("v-if", !0)
108
+ ],
109
+ 6
110
+ /* CLASS, STYLE */
111
+ )) : (i(), f(a, {
112
+ key: 1,
113
+ content: e.title
114
+ }, {
115
+ default: y(() => [
116
+ d(
117
+ "i",
118
+ {
119
+ class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition", {
120
+ [e.name]: t.value === "unocss",
121
+ "show-bg": e.showBg || e.bg,
122
+ default: e.size === "default",
123
+ small: e.size === "small",
124
+ big: e.size === "big",
125
+ warning: e.warning
126
+ }]),
127
+ style: c(o.value)
128
+ },
129
+ [
130
+ t.value === "iksig" ? (i(), l(
131
+ "i",
132
+ {
133
+ key: 0,
134
+ class: r(`iksig ${e.name}`),
135
+ style: c(o.value)
136
+ },
137
+ null,
138
+ 6
139
+ /* CLASS, STYLE */
140
+ )) : t.value === "svg" ? (i(), l("svg", S, [
141
+ d("use", {
142
+ "xlink:href": `#${e.name}`
143
+ }, null, 8, $)
144
+ ])) : t.value === "img" ? (i(), l("img", {
145
+ key: 2,
146
+ src: e.name,
147
+ class: "h-[1em] w-[1em]"
148
+ }, null, 8, E)) : u("v-if", !0)
149
+ ],
150
+ 6
151
+ /* CLASS, STYLE */
152
+ )
153
+ ]),
154
+ _: 1
155
+ /* STABLE */
156
+ }, 8, ["content"]))
157
+ ]);
1337
158
  };
1338
159
  }
1339
- });
1340
- const en = /* @__PURE__ */ Ce(Zt, [["__scopeId", "data-v-1957ff53"]]), tn = ke(en), nn = {
160
+ }), T = g(j), N = {
1341
161
  key: 0,
1342
162
  class: ""
1343
- }, on = /* @__PURE__ */ te({
163
+ }, O = /* @__PURE__ */ p({
1344
164
  __name: "IKExpandCollapse",
1345
165
  props: {
1346
166
  // 展示形式 图标(icon),文字(word),图标和文字(wordIcon)
@@ -1359,30 +179,30 @@ const en = /* @__PURE__ */ Ce(Zt, [["__scopeId", "data-v-1957ff53"]]), tn = ke(e
1359
179
  }
1360
180
  },
1361
181
  emits: ["handleChangStatus"],
1362
- setup(e, { emit: t }) {
1363
- const n = e, i = t, o = () => {
1364
- i("handleChangStatus");
182
+ setup(s, { emit: n }) {
183
+ const t = s, o = n, e = () => {
184
+ o("handleChangStatus");
1365
185
  };
1366
- return (r, s) => (I(), k("div", {
186
+ return (h, a) => (i(), l("div", {
1367
187
  class: "words-color",
1368
- onClick: s[0] || (s[0] = (c) => o())
188
+ onClick: a[0] || (a[0] = (V) => e())
1369
189
  }, [
1370
- n.showType === "word" || n.showType === "wordIcon" ? (I(), k(
190
+ t.showType === "word" || t.showType === "wordIcon" ? (i(), l(
1371
191
  "span",
1372
- nn,
1373
- We(e.isExpand ? e.wordName || "收起" : e.wordName || "展开"),
192
+ N,
193
+ v(s.isExpand ? s.wordName || "收起" : s.wordName || "展开"),
1374
194
  1
1375
195
  /* TEXT */
1376
- )) : N("v-if", !0),
1377
- n.showType === "icon" || n.showType === "wordIcon" ? (I(), L(W(tn), {
196
+ )) : u("v-if", !0),
197
+ t.showType === "icon" || t.showType === "wordIcon" ? (i(), f(w(T), {
1378
198
  key: 1,
1379
- name: e.isExpand ? "iksvg_zhankai" : "iksvg_shouqi"
1380
- }, null, 8, ["name"])) : N("v-if", !0)
199
+ name: s.isExpand ? "iksvg_zhankai" : "iksvg_shouqi"
200
+ }, null, 8, ["name"])) : u("v-if", !0)
1381
201
  ]));
1382
202
  }
1383
203
  });
1384
- const rn = /* @__PURE__ */ Ce(on, [["__scopeId", "data-v-0b9b46e8"]]), cn = ke(rn);
204
+ const K = /* @__PURE__ */ z(O, [["__scopeId", "data-v-0b9b46e8"]]), q = g(K);
1385
205
  export {
1386
- cn as IKExpandCollapse,
1387
- cn as default
206
+ q as IKExpandCollapse,
207
+ q as default
1388
208
  };