@vaebe/ccui 2.0.0-beta.0 → 2.0.1-beta.1

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 (83) hide show
  1. package/README.md +4 -0
  2. package/button/index.es.js +28 -22
  3. package/button/index.umd.js +1 -1
  4. package/calendar/index.es.js +445 -90
  5. package/calendar/index.umd.js +1 -1
  6. package/ccui-cli.css +1 -1
  7. package/check-box/index.es.js +8 -2
  8. package/check-box/index.umd.js +1 -1
  9. package/chunk-Ndeg2fpE.js +20 -0
  10. package/collapse/index.es.js +10 -7
  11. package/collapse/index.umd.js +1 -1
  12. package/config-provider/chunk-C_CI6nMA.js +13 -0
  13. package/config-provider/en-BG83iZ_P.js +24 -0
  14. package/config-provider/index.es.js +408 -53
  15. package/config-provider/index.umd.js +1 -1
  16. package/config-provider/ja-B-93MQG5.js +56 -0
  17. package/config-provider/ko-86th3uXt.js +56 -0
  18. package/config-provider/zh-cn-BQE-LNg1.js +59 -0
  19. package/date-picker/ccui-cli.css +1 -1
  20. package/date-picker/index.es.js +664 -482
  21. package/date-picker/index.umd.js +1 -1
  22. package/drawer/index.es.js +271 -279
  23. package/drawer/index.umd.js +1 -1
  24. package/dropdown/index.es.js +187 -171
  25. package/dropdown/index.umd.js +1 -1
  26. package/empty/index.es.js +341 -24
  27. package/empty/index.umd.js +1 -1
  28. package/en-BVwCvuzF.js +24 -0
  29. package/float-button/index.es.js +1134 -46
  30. package/float-button/index.umd.js +1 -1
  31. package/form/index.es.js +1357 -261
  32. package/form/index.umd.js +1 -1
  33. package/icon/index.es.js +93 -10
  34. package/icon/index.umd.js +1 -1
  35. package/image/index.es.js +353 -36
  36. package/image/index.umd.js +1 -1
  37. package/input/index.es.js +24 -15
  38. package/input/index.umd.js +1 -1
  39. package/input-number/index.es.js +45 -25
  40. package/input-number/index.umd.js +1 -1
  41. package/ja-B4U4rt8A.js +56 -0
  42. package/ko-BG35I8uK.js +56 -0
  43. package/menu/index.es.js +3 -1
  44. package/menu/index.umd.js +1 -1
  45. package/message/index.es.js +1179 -86
  46. package/message/index.umd.js +1 -1
  47. package/modal/index.es.js +735 -335
  48. package/modal/index.umd.js +1 -1
  49. package/notification/index.es.js +1176 -83
  50. package/notification/index.umd.js +1 -1
  51. package/package.json +9 -9
  52. package/pagination/index.es.js +381 -60
  53. package/pagination/index.umd.js +1 -1
  54. package/popconfirm/index.es.js +469 -143
  55. package/popconfirm/index.umd.js +1 -1
  56. package/popover/index.es.js +192 -175
  57. package/popover/index.umd.js +1 -1
  58. package/radio/index.es.js +8 -2
  59. package/radio/index.umd.js +1 -1
  60. package/rate/index.es.js +22 -12
  61. package/rate/index.umd.js +1 -1
  62. package/select/index.es.js +135 -53
  63. package/select/index.umd.js +1 -1
  64. package/slider/index.es.js +165 -155
  65. package/slider/index.umd.js +1 -1
  66. package/steps/index.es.js +1140 -49
  67. package/steps/index.umd.js +1 -1
  68. package/switch/index.es.js +2 -0
  69. package/switch/index.umd.js +1 -1
  70. package/tabs/index.es.js +31 -5
  71. package/tabs/index.umd.js +1 -1
  72. package/tag/index.es.js +53 -35
  73. package/tag/index.umd.js +1 -1
  74. package/tooltip/index.es.js +78 -77
  75. package/tooltip/index.umd.js +1 -1
  76. package/tree/ccui-cli.css +1 -1
  77. package/tree/index.es.js +1491 -276
  78. package/tree/index.umd.js +1 -1
  79. package/typography/index.es.js +1213 -125
  80. package/typography/index.umd.js +1 -1
  81. package/vue-ccui.es.js +8726 -7604
  82. package/vue-ccui.umd.js +1 -1
  83. package/zh-cn-C8nbfD5S.js +59 -0
package/tree/index.es.js CHANGED
@@ -1,70 +1,1275 @@
1
- import { computed as e, defineComponent as t, h as n, nextTick as r, onUnmounted as i, ref as a, shallowRef as o, toRef as s, watch as c } from "vue";
2
- //#region ../icons/dist/caret-right-outlined-RzTzenJQ.js
3
- function l(e) {
4
- if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : e;
5
- }
6
- function u(e) {
7
- let { name: t, viewBox: r = "0 0 1024 1024", path: i } = e, a = Array.isArray(i) ? i : [i], o = (e) => {
8
- let t = l(e.size), i = {
9
- display: "inline-flex",
10
- lineHeight: 0,
11
- verticalAlign: "-0.125em"
1
+ import { computed as e, defineComponent as t, h as n, inject as r, nextTick as i, onMounted as a, onUnmounted as o, ref as s, shallowRef as c, toRef as l, useAttrs as u, watch as d } from "vue";
2
+ //#region ../../node_modules/.pnpm/@iconify+vue@5.0.1_vue@3.5.33_typescript@5.9.3_/node_modules/@iconify/vue/dist/iconify.mjs
3
+ var f = /^[a-z0-9]+(-[a-z0-9]+)*$/, p = (e, t, n, r = "") => {
4
+ let i = e.split(":");
5
+ if (e.slice(0, 1) === "@") {
6
+ if (i.length < 2 || i.length > 3) return null;
7
+ r = i.shift().slice(1);
8
+ }
9
+ if (i.length > 3 || !i.length) return null;
10
+ if (i.length > 1) {
11
+ let e = i.pop(), n = i.pop(), a = {
12
+ provider: i.length > 0 ? i[0] : r,
13
+ prefix: n,
14
+ name: e
15
+ };
16
+ return t && !m(a) ? null : a;
17
+ }
18
+ let a = i[0], o = a.split("-");
19
+ if (o.length > 1) {
20
+ let e = {
21
+ provider: r,
22
+ prefix: o.shift(),
23
+ name: o.join("-")
24
+ };
25
+ return t && !m(e) ? null : e;
26
+ }
27
+ if (n && r === "") {
28
+ let e = {
29
+ provider: r,
30
+ prefix: "",
31
+ name: a
32
+ };
33
+ return t && !m(e, n) ? null : e;
34
+ }
35
+ return null;
36
+ }, m = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
37
+ function h(e, t) {
38
+ let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
39
+ function a(e) {
40
+ if (n[e]) return i[e] = [];
41
+ if (!(e in i)) {
42
+ i[e] = null;
43
+ let t = r[e] && r[e].parent, n = t && a(t);
44
+ n && (i[e] = [t].concat(n));
45
+ }
46
+ return i[e];
47
+ }
48
+ return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
49
+ }
50
+ var g = Object.freeze({
51
+ left: 0,
52
+ top: 0,
53
+ width: 16,
54
+ height: 16
55
+ }), _ = Object.freeze({
56
+ rotate: 0,
57
+ vFlip: !1,
58
+ hFlip: !1
59
+ }), v = Object.freeze({
60
+ ...g,
61
+ ..._
62
+ }), y = Object.freeze({
63
+ ...v,
64
+ body: "",
65
+ hidden: !1
66
+ });
67
+ function ee(e, t) {
68
+ let n = {};
69
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
70
+ let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
71
+ return r && (n.rotate = r), n;
72
+ }
73
+ function b(e, t) {
74
+ let n = ee(e, t);
75
+ for (let r in y) r in _ ? r in e && !(r in n) && (n[r] = _[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
76
+ return n;
77
+ }
78
+ function te(e, t, n) {
79
+ let r = e.icons, i = e.aliases || Object.create(null), a = {};
80
+ function o(e) {
81
+ a = b(r[e] || i[e], a);
82
+ }
83
+ return o(t), n.forEach(o), b(e, a);
84
+ }
85
+ function x(e, t) {
86
+ let n = [];
87
+ if (typeof e != "object" || typeof e.icons != "object") return n;
88
+ e.not_found instanceof Array && e.not_found.forEach((e) => {
89
+ t(e, null), n.push(e);
90
+ });
91
+ let r = h(e);
92
+ for (let i in r) {
93
+ let a = r[i];
94
+ a && (t(i, te(e, i, a)), n.push(i));
95
+ }
96
+ return n;
97
+ }
98
+ var ne = {
99
+ provider: "",
100
+ aliases: {},
101
+ not_found: {},
102
+ ...g
103
+ };
104
+ function S(e, t) {
105
+ for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
106
+ return !0;
107
+ }
108
+ function C(e) {
109
+ if (typeof e != "object" || !e) return null;
110
+ let t = e;
111
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !S(e, ne)) return null;
112
+ let n = t.icons;
113
+ for (let e in n) {
114
+ let t = n[e];
115
+ if (!e || typeof t.body != "string" || !S(t, y)) return null;
116
+ }
117
+ let r = t.aliases || Object.create(null);
118
+ for (let e in r) {
119
+ let t = r[e], i = t.parent;
120
+ if (!e || typeof i != "string" || !n[i] && !r[i] || !S(t, y)) return null;
121
+ }
122
+ return t;
123
+ }
124
+ var w = Object.create(null);
125
+ function T(e, t) {
126
+ return {
127
+ provider: e,
128
+ prefix: t,
129
+ icons: Object.create(null),
130
+ missing: /* @__PURE__ */ new Set()
131
+ };
132
+ }
133
+ function E(e, t) {
134
+ let n = w[e] || (w[e] = Object.create(null));
135
+ return n[t] || (n[t] = T(e, t));
136
+ }
137
+ function D(e, t) {
138
+ return C(t) ? x(t, (t, n) => {
139
+ n ? e.icons[t] = n : e.missing.add(t);
140
+ }) : [];
141
+ }
142
+ function O(e, t, n) {
143
+ try {
144
+ if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
145
+ } catch {}
146
+ return !1;
147
+ }
148
+ var k = !1;
149
+ function A(e) {
150
+ return typeof e == "boolean" && (k = e), k;
151
+ }
152
+ function j(e) {
153
+ let t = typeof e == "string" ? p(e, !0, k) : e;
154
+ if (t) {
155
+ let e = E(t.provider, t.prefix), n = t.name;
156
+ return e.icons[n] || (e.missing.has(n) ? null : void 0);
157
+ }
158
+ }
159
+ function M(e, t) {
160
+ let n = p(e, !0, k);
161
+ if (!n) return !1;
162
+ let r = E(n.provider, n.prefix);
163
+ return t ? O(r, n.name, t) : (r.missing.add(n.name), !0);
164
+ }
165
+ function N(e, t) {
166
+ if (typeof e != "object") return !1;
167
+ if (typeof t != "string" && (t = e.provider || ""), k && !t && !e.prefix) {
168
+ let t = !1;
169
+ return C(e) && (e.prefix = "", x(e, (e, n) => {
170
+ M(e, n) && (t = !0);
171
+ })), t;
172
+ }
173
+ let n = e.prefix;
174
+ return m({
175
+ prefix: n,
176
+ name: "a"
177
+ }) ? !!D(E(t, n), e) : !1;
178
+ }
179
+ var P = Object.freeze({
180
+ width: null,
181
+ height: null
182
+ }), F = Object.freeze({
183
+ ...P,
184
+ ..._
185
+ }), I = /(-?[0-9.]*[0-9]+[0-9.]*)/g, L = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
186
+ function R(e, t, n) {
187
+ if (t === 1) return e;
188
+ if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
189
+ if (typeof e != "string") return e;
190
+ let r = e.split(I);
191
+ if (r === null || !r.length) return e;
192
+ let i = [], a = r.shift(), o = L.test(a);
193
+ for (;;) {
194
+ if (o) {
195
+ let e = parseFloat(a);
196
+ isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
197
+ } else i.push(a);
198
+ if (a = r.shift(), a === void 0) return i.join("");
199
+ o = !o;
200
+ }
201
+ }
202
+ function re(e, t = "defs") {
203
+ let n = "", r = e.indexOf("<" + t);
204
+ for (; r >= 0;) {
205
+ let i = e.indexOf(">", r), a = e.indexOf("</" + t);
206
+ if (i === -1 || a === -1) break;
207
+ let o = e.indexOf(">", a);
208
+ if (o === -1) break;
209
+ n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
210
+ }
211
+ return {
212
+ defs: n,
213
+ content: e
214
+ };
215
+ }
216
+ function z(e, t) {
217
+ return e ? "<defs>" + e + "</defs>" + t : t;
218
+ }
219
+ function ie(e, t, n) {
220
+ let r = re(e);
221
+ return z(r.defs, t + r.content + n);
222
+ }
223
+ var B = (e) => e === "unset" || e === "undefined" || e === "none";
224
+ function ae(e, t) {
225
+ let n = {
226
+ ...v,
227
+ ...e
228
+ }, r = {
229
+ ...F,
230
+ ...t
231
+ }, i = {
232
+ left: n.left,
233
+ top: n.top,
234
+ width: n.width,
235
+ height: n.height
236
+ }, a = n.body;
237
+ [n, r].forEach((e) => {
238
+ let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
239
+ n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
240
+ let s;
241
+ switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
242
+ case 1:
243
+ s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
244
+ break;
245
+ case 2:
246
+ t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
247
+ break;
248
+ case 3:
249
+ s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
250
+ break;
251
+ }
252
+ o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = ie(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
253
+ });
254
+ let o = r.width, s = r.height, c = i.width, l = i.height, u, d;
255
+ o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = R(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? R(u, l / c) : s === "auto" ? l : s);
256
+ let f = {}, p = (e, t) => {
257
+ B(t) || (f[e] = t.toString());
258
+ };
259
+ p("width", u), p("height", d);
260
+ let m = [
261
+ i.left,
262
+ i.top,
263
+ c,
264
+ l
265
+ ];
266
+ return f.viewBox = m.join(" "), {
267
+ attributes: f,
268
+ viewBox: m,
269
+ body: a
270
+ };
271
+ }
272
+ var oe = /\sid="(\S+)"/g, V = /* @__PURE__ */ new Map();
273
+ function se(e) {
274
+ e = e.replace(/[0-9]+$/, "") || "a";
275
+ let t = V.get(e) || 0;
276
+ return V.set(e, t + 1), t ? `${e}${t}` : e;
277
+ }
278
+ function ce(e) {
279
+ let t = [], n;
280
+ for (; n = oe.exec(e);) t.push(n[1]);
281
+ if (!t.length) return e;
282
+ let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
283
+ return t.forEach((t) => {
284
+ let n = se(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
285
+ e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
286
+ }), e = e.replace(new RegExp(r, "g"), ""), e;
287
+ }
288
+ var H = Object.create(null);
289
+ function le(e, t) {
290
+ H[e] = t;
291
+ }
292
+ function U(e) {
293
+ return H[e] || H[""];
294
+ }
295
+ function W(e) {
296
+ let t;
297
+ if (typeof e.resources == "string") t = [e.resources];
298
+ else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
299
+ return {
300
+ resources: t,
301
+ path: e.path || "/",
302
+ maxURL: e.maxURL || 500,
303
+ rotate: e.rotate || 750,
304
+ timeout: e.timeout || 5e3,
305
+ random: e.random === !0,
306
+ index: e.index || 0,
307
+ dataAfterTimeout: e.dataAfterTimeout !== !1
308
+ };
309
+ }
310
+ for (var G = Object.create(null), K = ["https://api.simplesvg.com", "https://api.unisvg.com"], q = []; K.length > 0;) K.length === 1 || Math.random() > .5 ? q.push(K.shift()) : q.push(K.pop());
311
+ G[""] = W({ resources: ["https://api.iconify.design"].concat(q) });
312
+ function ue(e, t) {
313
+ let n = W(t);
314
+ return n === null ? !1 : (G[e] = n, !0);
315
+ }
316
+ function J(e) {
317
+ return G[e];
318
+ }
319
+ var de = (() => {
320
+ let e;
321
+ try {
322
+ if (e = fetch, typeof e == "function") return e;
323
+ } catch {}
324
+ })();
325
+ function fe(e, t) {
326
+ let n = J(e);
327
+ if (!n) return 0;
328
+ let r;
329
+ if (!n.maxURL) r = 0;
330
+ else {
331
+ let e = 0;
332
+ n.resources.forEach((t) => {
333
+ e = Math.max(e, t.length);
334
+ });
335
+ let i = t + ".json?icons=";
336
+ r = n.maxURL - e - n.path.length - i.length;
337
+ }
338
+ return r;
339
+ }
340
+ function pe(e) {
341
+ return e === 404;
342
+ }
343
+ var me = (e, t, n) => {
344
+ let r = [], i = fe(e, t), a = "icons", o = {
345
+ type: a,
346
+ provider: e,
347
+ prefix: t,
348
+ icons: []
349
+ }, s = 0;
350
+ return n.forEach((n, c) => {
351
+ s += n.length + 1, s >= i && c > 0 && (r.push(o), o = {
352
+ type: a,
353
+ provider: e,
354
+ prefix: t,
355
+ icons: []
356
+ }, s = n.length), o.icons.push(n);
357
+ }), r.push(o), r;
358
+ };
359
+ function he(e) {
360
+ if (typeof e == "string") {
361
+ let t = J(e);
362
+ if (t) return t.path;
363
+ }
364
+ return "/";
365
+ }
366
+ var ge = {
367
+ prepare: me,
368
+ send: (e, t, n) => {
369
+ if (!de) {
370
+ n("abort", 424);
371
+ return;
372
+ }
373
+ let r = he(t.provider);
374
+ switch (t.type) {
375
+ case "icons": {
376
+ let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
377
+ r += e + ".json?" + i.toString();
378
+ break;
379
+ }
380
+ case "custom": {
381
+ let e = t.uri;
382
+ r += e.slice(0, 1) === "/" ? e.slice(1) : e;
383
+ break;
384
+ }
385
+ default:
386
+ n("abort", 400);
387
+ return;
388
+ }
389
+ let i = 503;
390
+ de(e + r).then((e) => {
391
+ let t = e.status;
392
+ if (t !== 200) {
393
+ setTimeout(() => {
394
+ n(pe(t) ? "abort" : "next", t);
395
+ });
396
+ return;
397
+ }
398
+ return i = 501, e.json();
399
+ }).then((e) => {
400
+ if (typeof e != "object" || !e) {
401
+ setTimeout(() => {
402
+ e === 404 ? n("abort", e) : n("next", i);
403
+ });
404
+ return;
405
+ }
406
+ setTimeout(() => {
407
+ n("success", e);
408
+ });
409
+ }).catch(() => {
410
+ n("next", i);
411
+ });
412
+ }
413
+ };
414
+ function Y(e, t) {
415
+ e.forEach((e) => {
416
+ let n = e.loaderCallbacks;
417
+ n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
418
+ });
419
+ }
420
+ function _e(e) {
421
+ e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
422
+ e.pendingCallbacksFlag = !1;
423
+ let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
424
+ if (!t.length) return;
425
+ let n = !1, r = e.provider, i = e.prefix;
426
+ t.forEach((t) => {
427
+ let a = t.icons, o = a.pending.length;
428
+ a.pending = a.pending.filter((t) => {
429
+ if (t.prefix !== i) return !0;
430
+ let o = t.name;
431
+ if (e.icons[o]) a.loaded.push({
432
+ provider: r,
433
+ prefix: i,
434
+ name: o
435
+ });
436
+ else if (e.missing.has(o)) a.missing.push({
437
+ provider: r,
438
+ prefix: i,
439
+ name: o
440
+ });
441
+ else return n = !0, !0;
442
+ return !1;
443
+ }), a.pending.length !== o && (n || Y([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
444
+ });
445
+ }));
446
+ }
447
+ var ve = 0;
448
+ function X(e, t, n) {
449
+ let r = ve++, i = Y.bind(null, n, r);
450
+ if (!t.pending.length) return i;
451
+ let a = {
452
+ id: r,
453
+ icons: t,
454
+ callback: e,
455
+ abort: i
456
+ };
457
+ return n.forEach((e) => {
458
+ (e.loaderCallbacks ||= []).push(a);
459
+ }), i;
460
+ }
461
+ function ye(e) {
462
+ let t = {
463
+ loaded: [],
464
+ missing: [],
465
+ pending: []
466
+ }, n = Object.create(null);
467
+ e.sort((e, t) => e.provider === t.provider ? e.prefix === t.prefix ? e.name.localeCompare(t.name) : e.prefix.localeCompare(t.prefix) : e.provider.localeCompare(t.provider));
468
+ let r = {
469
+ provider: "",
470
+ prefix: "",
471
+ name: ""
472
+ };
473
+ return e.forEach((e) => {
474
+ if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
475
+ r = e;
476
+ let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = E(i, a)), l;
477
+ l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending;
478
+ let u = {
479
+ provider: i,
480
+ prefix: a,
481
+ name: o
482
+ };
483
+ l.push(u);
484
+ }), t;
485
+ }
486
+ function be(e, t = !0, n = !1) {
487
+ let r = [];
488
+ return e.forEach((e) => {
489
+ let i = typeof e == "string" ? p(e, t, n) : e;
490
+ i && r.push(i);
491
+ }), r;
492
+ }
493
+ var xe = {
494
+ resources: [],
495
+ index: 0,
496
+ timeout: 2e3,
497
+ rotate: 750,
498
+ random: !1,
499
+ dataAfterTimeout: !1
500
+ };
501
+ function Se(e, t, n, r) {
502
+ let i = e.resources.length, a = e.random ? Math.floor(Math.random() * i) : e.index, o;
503
+ if (e.random) {
504
+ let t = e.resources.slice(0);
505
+ for (o = []; t.length > 1;) {
506
+ let e = Math.floor(Math.random() * t.length);
507
+ o.push(t[e]), t = t.slice(0, e).concat(t.slice(e + 1));
508
+ }
509
+ o = o.concat(t);
510
+ } else o = e.resources.slice(a).concat(e.resources.slice(0, a));
511
+ let s = Date.now(), c = "pending", l = 0, u, d = null, f = [], p = [];
512
+ typeof r == "function" && p.push(r);
513
+ function m() {
514
+ d &&= (clearTimeout(d), null);
515
+ }
516
+ function h() {
517
+ c === "pending" && (c = "aborted"), m(), f.forEach((e) => {
518
+ e.status === "pending" && (e.status = "aborted");
519
+ }), f = [];
520
+ }
521
+ function g(e, t) {
522
+ t && (p = []), typeof e == "function" && p.push(e);
523
+ }
524
+ function _() {
525
+ return {
526
+ startTime: s,
527
+ payload: t,
528
+ status: c,
529
+ queriesSent: l,
530
+ queriesPending: f.length,
531
+ subscribe: g,
532
+ abort: h
533
+ };
534
+ }
535
+ function v() {
536
+ c = "failed", p.forEach((e) => {
537
+ e(void 0, u);
538
+ });
539
+ }
540
+ function y() {
541
+ f.forEach((e) => {
542
+ e.status === "pending" && (e.status = "aborted");
543
+ }), f = [];
544
+ }
545
+ function ee(t, n, r) {
546
+ let i = n !== "success";
547
+ switch (f = f.filter((e) => e !== t), c) {
548
+ case "pending": break;
549
+ case "failed":
550
+ if (i || !e.dataAfterTimeout) return;
551
+ break;
552
+ default: return;
553
+ }
554
+ if (n === "abort") {
555
+ u = r, v();
556
+ return;
557
+ }
558
+ if (i) {
559
+ u = r, f.length || (o.length ? b() : v());
560
+ return;
561
+ }
562
+ if (m(), y(), !e.random) {
563
+ let n = e.resources.indexOf(t.resource);
564
+ n !== -1 && n !== e.index && (e.index = n);
565
+ }
566
+ c = "completed", p.forEach((e) => {
567
+ e(r);
568
+ });
569
+ }
570
+ function b() {
571
+ if (c !== "pending") return;
572
+ m();
573
+ let r = o.shift();
574
+ if (r === void 0) {
575
+ if (f.length) {
576
+ d = setTimeout(() => {
577
+ m(), c === "pending" && (y(), v());
578
+ }, e.timeout);
579
+ return;
580
+ }
581
+ v();
582
+ return;
583
+ }
584
+ let i = {
585
+ status: "pending",
586
+ resource: r,
587
+ callback: (e, t) => {
588
+ ee(i, e, t);
589
+ }
12
590
  };
13
- t && (i.fontSize = t), e.color && (i.color = e.color);
14
- let o = e.rotate;
15
- o !== void 0 && o !== "" && (i.transform = `rotate(${typeof o == "number" ? `${o}deg` : o})`, i.transformOrigin = "center");
16
- let s = typeof e.style == "string" ? i : {
17
- ...i,
18
- ...e.style
591
+ f.push(i), l++, d = setTimeout(b, e.rotate), n(r, t, i.callback);
592
+ }
593
+ return setTimeout(b), _;
594
+ }
595
+ function Ce(e) {
596
+ let t = {
597
+ ...xe,
598
+ ...e
599
+ }, n = [];
600
+ function r() {
601
+ n = n.filter((e) => e().status === "pending");
602
+ }
603
+ function i(e, i, a) {
604
+ let o = Se(t, e, i, (e, t) => {
605
+ r(), a && a(e, t);
606
+ });
607
+ return n.push(o), o;
608
+ }
609
+ function a(e) {
610
+ return n.find((t) => e(t)) || null;
611
+ }
612
+ return {
613
+ query: i,
614
+ find: a,
615
+ setIndex: (e) => {
616
+ t.index = e;
617
+ },
618
+ getIndex: () => t.index,
619
+ cleanup: r
620
+ };
621
+ }
622
+ function we() {}
623
+ var Te = Object.create(null);
624
+ function Ee(e) {
625
+ if (!Te[e]) {
626
+ let t = J(e);
627
+ if (!t) return;
628
+ Te[e] = {
629
+ config: t,
630
+ redundancy: Ce(t)
19
631
  };
20
- return n("span", {
21
- class: [
22
- "ccui-icon",
23
- e.spin && "ccui-icon--spin",
24
- e.class
25
- ],
26
- style: s,
27
- "aria-hidden": "true"
28
- }, n("svg", {
29
- viewBox: r,
30
- width: "1em",
31
- height: "1em",
32
- fill: "currentColor"
33
- }, a.map((e) => n("path", { d: e }))));
632
+ }
633
+ return Te[e];
634
+ }
635
+ function De(e, t, n) {
636
+ let r, i;
637
+ if (typeof e == "string") {
638
+ let t = U(e);
639
+ if (!t) return n(void 0, 424), we;
640
+ i = t.send;
641
+ let a = Ee(e);
642
+ a && (r = a.redundancy);
643
+ } else {
644
+ let t = W(e);
645
+ if (t) {
646
+ r = Ce(t);
647
+ let n = U(e.resources ? e.resources[0] : "");
648
+ n && (i = n.send);
649
+ }
650
+ }
651
+ return !r || !i ? (n(void 0, 424), we) : r.query(t, i, n)().abort;
652
+ }
653
+ function Oe() {}
654
+ function ke(e) {
655
+ e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
656
+ e.iconsLoaderFlag = !1, _e(e);
657
+ }));
658
+ }
659
+ function Ae(e) {
660
+ let t = [], n = [];
661
+ return e.forEach((e) => {
662
+ (e.match(f) ? t : n).push(e);
663
+ }), {
664
+ valid: t,
665
+ invalid: n
34
666
  };
35
- return o.displayName = t, o.props = [
36
- "size",
667
+ }
668
+ function Z(e, t, n) {
669
+ function r() {
670
+ let n = e.pendingIcons;
671
+ t.forEach((t) => {
672
+ n && n.delete(t), e.icons[t] || e.missing.add(t);
673
+ });
674
+ }
675
+ if (n && typeof n == "object") try {
676
+ if (!D(e, n).length) {
677
+ r();
678
+ return;
679
+ }
680
+ } catch (e) {
681
+ console.error(e);
682
+ }
683
+ r(), ke(e);
684
+ }
685
+ function je(e, t) {
686
+ e instanceof Promise ? e.then((e) => {
687
+ t(e);
688
+ }).catch(() => {
689
+ t(null);
690
+ }) : t(e);
691
+ }
692
+ function Me(e, t) {
693
+ e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
694
+ e.iconsQueueFlag = !1;
695
+ let { provider: t, prefix: n } = e, r = e.iconsToLoad;
696
+ if (delete e.iconsToLoad, !r || !r.length) return;
697
+ let i = e.loadIcon;
698
+ if (e.loadIcons && (r.length > 1 || !i)) {
699
+ je(e.loadIcons(r, n, t), (t) => {
700
+ Z(e, r, t);
701
+ });
702
+ return;
703
+ }
704
+ if (i) {
705
+ r.forEach((r) => {
706
+ je(i(r, n, t), (t) => {
707
+ Z(e, [r], t ? {
708
+ prefix: n,
709
+ icons: { [r]: t }
710
+ } : null);
711
+ });
712
+ });
713
+ return;
714
+ }
715
+ let { valid: a, invalid: o } = Ae(r);
716
+ if (o.length && Z(e, o, null), !a.length) return;
717
+ let s = n.match(f) ? U(t) : null;
718
+ if (!s) {
719
+ Z(e, a, null);
720
+ return;
721
+ }
722
+ s.prepare(t, n, a).forEach((n) => {
723
+ De(t, n, (t) => {
724
+ Z(e, n.icons, t);
725
+ });
726
+ });
727
+ }));
728
+ }
729
+ var Ne = (e, t) => {
730
+ let n = ye(be(e, !0, A()));
731
+ if (!n.pending.length) {
732
+ let e = !0;
733
+ return t && setTimeout(() => {
734
+ e && t(n.loaded, n.missing, n.pending, Oe);
735
+ }), () => {
736
+ e = !1;
737
+ };
738
+ }
739
+ let r = Object.create(null), i = [], a, o;
740
+ return n.pending.forEach((e) => {
741
+ let { provider: t, prefix: n } = e;
742
+ if (n === o && t === a) return;
743
+ a = t, o = n, i.push(E(t, n));
744
+ let s = r[t] || (r[t] = Object.create(null));
745
+ s[n] || (s[n] = []);
746
+ }), n.pending.forEach((e) => {
747
+ let { provider: t, prefix: n, name: i } = e, a = E(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
748
+ o.has(i) || (o.add(i), r[t][n].push(i));
749
+ }), i.forEach((e) => {
750
+ let t = r[e.provider][e.prefix];
751
+ t.length && Me(e, t);
752
+ }), t ? X(t, n, i) : Oe;
753
+ };
754
+ function Pe(e, t) {
755
+ let n = { ...e };
756
+ for (let e in t) {
757
+ let r = t[e], i = typeof r;
758
+ e in P ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
759
+ }
760
+ return n;
761
+ }
762
+ var Fe = /[\s,]+/;
763
+ function Ie(e, t) {
764
+ t.split(Fe).forEach((t) => {
765
+ switch (t.trim()) {
766
+ case "horizontal":
767
+ e.hFlip = !0;
768
+ break;
769
+ case "vertical":
770
+ e.vFlip = !0;
771
+ break;
772
+ }
773
+ });
774
+ }
775
+ function Le(e, t = 0) {
776
+ let n = e.replace(/^-?[0-9.]*/, "");
777
+ function r(e) {
778
+ for (; e < 0;) e += 4;
779
+ return e % 4;
780
+ }
781
+ if (n === "") {
782
+ let t = parseInt(e);
783
+ return isNaN(t) ? 0 : r(t);
784
+ } else if (n !== e) {
785
+ let t = 0;
786
+ switch (n) {
787
+ case "%":
788
+ t = 25;
789
+ break;
790
+ case "deg": t = 90;
791
+ }
792
+ if (t) {
793
+ let i = parseFloat(e.slice(0, e.length - n.length));
794
+ return isNaN(i) ? 0 : (i /= t, i % 1 == 0 ? r(i) : 0);
795
+ }
796
+ }
797
+ return t;
798
+ }
799
+ function Re(e, t) {
800
+ let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
801
+ for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
802
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
803
+ }
804
+ function ze(e) {
805
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
806
+ }
807
+ function Be(e) {
808
+ return "data:image/svg+xml," + ze(e);
809
+ }
810
+ function Ve(e) {
811
+ return "url(\"" + Be(e) + "\")";
812
+ }
813
+ var He = {
814
+ ...F,
815
+ inline: !1
816
+ }, Ue = {
817
+ xmlns: "http://www.w3.org/2000/svg",
818
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
819
+ "aria-hidden": !0,
820
+ role: "img"
821
+ }, We = { display: "inline-block" }, Ge = { backgroundColor: "currentColor" }, Ke = { backgroundColor: "transparent" }, qe = {
822
+ Image: "var(--svg)",
823
+ Repeat: "no-repeat",
824
+ Size: "100% 100%"
825
+ }, Je = {
826
+ webkitMask: Ge,
827
+ mask: Ge,
828
+ background: Ke
829
+ };
830
+ for (let e in Je) {
831
+ let t = Je[e];
832
+ for (let n in qe) t[e + n] = qe[n];
833
+ }
834
+ var Q = {};
835
+ ["horizontal", "vertical"].forEach((e) => {
836
+ let t = e.slice(0, 1) + "Flip";
837
+ Q[e + "-flip"] = t, Q[e.slice(0, 1) + "-flip"] = t, Q[e + "Flip"] = t;
838
+ });
839
+ function Ye(e) {
840
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
841
+ }
842
+ var Xe = (e, t) => {
843
+ let r = Pe(He, t), i = { ...Ue }, a = t.mode || "svg", o = {}, s = t.style, c = typeof s == "object" && !(s instanceof Array) ? s : {};
844
+ for (let e in t) {
845
+ let n = t[e];
846
+ if (n !== void 0) switch (e) {
847
+ case "icon":
848
+ case "style":
849
+ case "onLoad":
850
+ case "mode":
851
+ case "ssr":
852
+ case "customise": break;
853
+ case "inline":
854
+ case "hFlip":
855
+ case "vFlip":
856
+ r[e] = n === !0 || n === "true" || n === 1;
857
+ break;
858
+ case "flip":
859
+ typeof n == "string" && Ie(r, n);
860
+ break;
861
+ case "color":
862
+ o.color = n;
863
+ break;
864
+ case "rotate":
865
+ typeof n == "string" ? r[e] = Le(n) : typeof n == "number" && (r[e] = n);
866
+ break;
867
+ case "ariaHidden":
868
+ case "aria-hidden":
869
+ n !== !0 && n !== "true" && delete i["aria-hidden"];
870
+ break;
871
+ default: {
872
+ let t = Q[e];
873
+ t ? (n === !0 || n === "true" || n === 1) && (r[t] = !0) : He[e] === void 0 && (i[e] = n);
874
+ }
875
+ }
876
+ }
877
+ let l = ae(e, r), u = l.attributes;
878
+ if (r.inline && (o.verticalAlign = "-0.125em"), a === "svg") return i.style = {
879
+ ...o,
880
+ ...c
881
+ }, Object.assign(i, u), i.innerHTML = ce(l.body), n("svg", i);
882
+ let { body: d, width: f, height: p } = e, m = a === "mask" || (a === "bg" ? !1 : d.indexOf("currentColor") !== -1), h = Re(d, {
883
+ ...u,
884
+ width: f + "",
885
+ height: p + ""
886
+ });
887
+ return i.style = {
888
+ ...o,
889
+ "--svg": Ve(h),
890
+ width: Ye(u.width),
891
+ height: Ye(u.height),
892
+ ...We,
893
+ ...m ? Ge : Ke,
894
+ ...c
895
+ }, n("span", i);
896
+ };
897
+ if (A(!0), le("", ge), typeof document < "u" && typeof window < "u") {
898
+ let e = window;
899
+ if (e.IconifyPreload !== void 0) {
900
+ let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
901
+ typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
902
+ try {
903
+ (typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !N(e)) && console.error(n);
904
+ } catch {
905
+ console.error(n);
906
+ }
907
+ });
908
+ }
909
+ if (e.IconifyProviders !== void 0) {
910
+ let t = e.IconifyProviders;
911
+ if (typeof t == "object" && t) for (let e in t) {
912
+ let n = "IconifyProviders[" + e + "] is invalid.";
913
+ try {
914
+ let r = t[e];
915
+ if (typeof r != "object" || !r || r.resources === void 0) continue;
916
+ ue(e, r) || console.error(n);
917
+ } catch {
918
+ console.error(n);
919
+ }
920
+ }
921
+ }
922
+ }
923
+ var Ze = {
924
+ ...v,
925
+ body: ""
926
+ }, Qe = t((e, { emit: t }) => {
927
+ let n = s(null);
928
+ function r() {
929
+ n.value &&= (n.value.abort?.(), null);
930
+ }
931
+ let l = s(!!e.ssr), u = s(""), f = c(null);
932
+ function m() {
933
+ let a = e.icon;
934
+ if (typeof a == "object" && a && typeof a.body == "string") return u.value = "", { data: a };
935
+ let o;
936
+ if (typeof a != "string" || (o = p(a, !1, !0)) === null) return null;
937
+ let s = j(o);
938
+ if (!s) {
939
+ let e = n.value;
940
+ return (!e || e.name !== a) && (s === null ? n.value = { name: a } : n.value = {
941
+ name: a,
942
+ abort: Ne([o], h)
943
+ }), null;
944
+ }
945
+ r(), u.value !== a && (u.value = a, i(() => {
946
+ t("load", a);
947
+ }));
948
+ let c = e.customise;
949
+ if (c) {
950
+ s = Object.assign({}, s);
951
+ let e = c(s.body, o.name, o.prefix, o.provider);
952
+ typeof e == "string" && (s.body = e);
953
+ }
954
+ let l = ["iconify"];
955
+ return o.prefix !== "" && l.push("iconify--" + o.prefix), o.provider !== "" && l.push("iconify--" + o.provider), {
956
+ data: s,
957
+ classes: l
958
+ };
959
+ }
960
+ function h() {
961
+ let e = m();
962
+ e ? e.data !== f.value?.data && (f.value = e) : f.value = null;
963
+ }
964
+ return l.value ? h() : a(() => {
965
+ l.value = !0, h();
966
+ }), d(() => e.icon, h), o(r), () => {
967
+ let t = f.value;
968
+ if (!t) return Xe(Ze, e);
969
+ let n = e;
970
+ return t.classes && (n = {
971
+ ...e,
972
+ class: t.classes.join(" ")
973
+ }), Xe({
974
+ ...v,
975
+ ...t.data
976
+ }, n);
977
+ };
978
+ }, {
979
+ props: [
980
+ "icon",
981
+ "mode",
982
+ "ssr",
983
+ "width",
984
+ "height",
985
+ "style",
37
986
  "color",
987
+ "inline",
38
988
  "rotate",
39
- "spin",
40
- "class",
41
- "style"
42
- ], o;
43
- }
44
- var d = u({
45
- name: "CaretRightOutlined",
46
- path: "M384 192v640l384-320.064z"
47
- });
989
+ "hFlip",
990
+ "horizontalFlip",
991
+ "vFlip",
992
+ "verticalFlip",
993
+ "flip",
994
+ "id",
995
+ "ariaHidden",
996
+ "customise",
997
+ "title"
998
+ ],
999
+ emits: ["load"]
1000
+ }), $e = Symbol("ccui-config");
48
1001
  //#endregion
49
1002
  //#region ../ccui/ui/shared/hooks/use-namespace.ts
50
- function f(e, t, n) {
1003
+ function et(e, t, n) {
51
1004
  let r = e;
52
1005
  return t && (r += `__${t}`), n && (r += `--${n}`), r;
53
1006
  }
54
- function ee(e, t = !1) {
1007
+ function tt(e, t = !1) {
55
1008
  let n = t ? `.ccui-${e}` : `ccui-${e}`;
56
1009
  return {
57
- b: () => f(n),
58
- e: (e) => e ? f(n, e) : "",
59
- m: (e) => e ? f(n, "", e) : "",
60
- em: (e, t) => e && t ? f(n, e, t) : "",
1010
+ b: () => et(n),
1011
+ e: (e) => e ? et(n, e) : "",
1012
+ m: (e) => e ? et(n, "", e) : "",
1013
+ em: (e, t) => e && t ? et(n, e, t) : "",
61
1014
  is: (e) => `is-${e}`
62
1015
  };
63
1016
  }
64
1017
  //#endregion
1018
+ //#region ../ccui/ui/icon/src/icon-registry.ts
1019
+ var nt = /* @__PURE__ */ new Map();
1020
+ function rt(e) {
1021
+ return e.trim();
1022
+ }
1023
+ function it(e) {
1024
+ if (e) return nt.get(rt(e));
1025
+ }
1026
+ //#endregion
1027
+ //#region ../ccui/ui/icon/src/icon-types.ts
1028
+ var at = {
1029
+ name: {
1030
+ type: String,
1031
+ default: ""
1032
+ },
1033
+ component: {
1034
+ type: Object,
1035
+ default: void 0
1036
+ },
1037
+ size: {
1038
+ type: [Number, String],
1039
+ default: void 0
1040
+ },
1041
+ color: {
1042
+ type: String,
1043
+ default: ""
1044
+ },
1045
+ twoToneColor: {
1046
+ type: String,
1047
+ default: ""
1048
+ },
1049
+ theme: {
1050
+ type: String,
1051
+ default: void 0
1052
+ },
1053
+ themePrefixMap: {
1054
+ type: Object,
1055
+ default: void 0
1056
+ },
1057
+ rotate: {
1058
+ type: Number,
1059
+ default: 0
1060
+ },
1061
+ spin: {
1062
+ type: Boolean,
1063
+ default: !1
1064
+ },
1065
+ spinDirection: {
1066
+ type: String,
1067
+ default: "cw"
1068
+ },
1069
+ loading: {
1070
+ type: Boolean,
1071
+ default: !1
1072
+ },
1073
+ clickable: {
1074
+ type: Boolean,
1075
+ default: !1
1076
+ },
1077
+ disabled: {
1078
+ type: Boolean,
1079
+ default: !1
1080
+ },
1081
+ iconifyPrefix: {
1082
+ type: String,
1083
+ default: ""
1084
+ },
1085
+ title: {
1086
+ type: String,
1087
+ default: ""
1088
+ },
1089
+ ariaLabel: {
1090
+ type: String,
1091
+ default: ""
1092
+ },
1093
+ prefixCls: {
1094
+ type: String,
1095
+ default: ""
1096
+ }
1097
+ }, ot = {
1098
+ prefix: "mdi",
1099
+ icons: {
1100
+ "alert-circle": {
1101
+ width: 24,
1102
+ height: 24,
1103
+ body: "<path fill=\"currentColor\" d=\"M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z\"/>"
1104
+ },
1105
+ "arrow-up": {
1106
+ width: 24,
1107
+ height: 24,
1108
+ body: "<path fill=\"currentColor\" d=\"M13 20h-2V8l-5.5 5.5l-1.42-1.42L12 4.16l7.92 7.92l-1.42 1.42L13 8v12Z\"/>"
1109
+ },
1110
+ "calendar-outline": {
1111
+ width: 24,
1112
+ height: 24,
1113
+ body: "<path fill=\"currentColor\" d=\"M12 12h5v5h-5v-5m7-9h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 2v2H5V5h14M5 19V9h14v10H5Z\"/>"
1114
+ },
1115
+ check: {
1116
+ width: 24,
1117
+ height: 24,
1118
+ body: "<path fill=\"currentColor\" d=\"M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z\"/>"
1119
+ },
1120
+ "check-circle": {
1121
+ width: 24,
1122
+ height: 24,
1123
+ body: "<path fill=\"currentColor\" d=\"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9Z\"/>"
1124
+ },
1125
+ "chevron-right": {
1126
+ width: 24,
1127
+ height: 24,
1128
+ body: "<path fill=\"currentColor\" d=\"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z\"/>"
1129
+ },
1130
+ "clock-outline": {
1131
+ width: 24,
1132
+ height: 24,
1133
+ body: "<path fill=\"currentColor\" d=\"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7h1.5Z\"/>"
1134
+ },
1135
+ close: {
1136
+ width: 24,
1137
+ height: 24,
1138
+ body: "<path fill=\"currentColor\" d=\"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z\"/>"
1139
+ },
1140
+ "close-circle": {
1141
+ width: 24,
1142
+ height: 24,
1143
+ body: "<path fill=\"currentColor\" d=\"M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12S6.47 2 12 2m3.59 5L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41L15.59 7Z\"/>"
1144
+ },
1145
+ "content-copy": {
1146
+ width: 24,
1147
+ height: 24,
1148
+ body: "<path fill=\"currentColor\" d=\"M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1Z\"/>"
1149
+ },
1150
+ loading: {
1151
+ width: 24,
1152
+ height: 24,
1153
+ body: "<path fill=\"currentColor\" d=\"M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8Z\"/>"
1154
+ },
1155
+ magnify: {
1156
+ width: 24,
1157
+ height: 24,
1158
+ body: "<path fill=\"currentColor\" d=\"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5Z\"/>"
1159
+ },
1160
+ "menu-down": {
1161
+ width: 24,
1162
+ height: 24,
1163
+ body: "<path fill=\"currentColor\" d=\"m7 10l5 5l5-5H7Z\"/>"
1164
+ },
1165
+ "menu-right": {
1166
+ width: 24,
1167
+ height: 24,
1168
+ body: "<path fill=\"currentColor\" d=\"m10 17l5-5l-5-5v10Z\"/>"
1169
+ }
1170
+ }
1171
+ }, st = !1;
1172
+ function ct() {
1173
+ st ||= (N(ot), !0);
1174
+ }
1175
+ //#endregion
1176
+ //#region ../icons/dist/install.js
1177
+ ct();
1178
+ //#endregion
1179
+ //#region ../ccui/ui/icon/src/icon.tsx
1180
+ var lt = {
1181
+ prefixCls: "ccui",
1182
+ componentSize: "middle",
1183
+ locale: void 0,
1184
+ direction: "ltr",
1185
+ theme: void 0,
1186
+ iconPrefixCls: "ccui-icon"
1187
+ }, ut = {
1188
+ small: 14,
1189
+ large: 20
1190
+ };
1191
+ function dt(e) {
1192
+ return !!e && e.includes(":");
1193
+ }
1194
+ function ft(e, t) {
1195
+ let n = e === void 0 ? t : e;
1196
+ if (!(n == null || n === "" || n === "default")) return typeof n == "number" ? `${n}px` : n in ut ? `${ut[n]}px` : n;
1197
+ }
1198
+ function pt(e) {
1199
+ return e === "middle" ? "default" : e;
1200
+ }
1201
+ var mt = /* @__PURE__ */ t({
1202
+ name: "CIcon",
1203
+ inheritAttrs: !1,
1204
+ props: at,
1205
+ emits: ["click"],
1206
+ setup(t, { slots: i, emit: a }) {
1207
+ let o = u(), s = tt("icon"), c = r($e, lt), l = e(() => t.prefixCls || c.iconPrefixCls || "ccui-icon"), d = e(() => {
1208
+ if (!(!t.theme || !t.themePrefixMap)) return t.themePrefixMap[t.theme];
1209
+ }), f = e(() => t.name ? t.name.includes(":") ? t.name : d.value ? `${d.value}:${t.name}` : t.iconifyPrefix ? `${t.iconifyPrefix}:${t.name}` : t.name : ""), p = e(() => dt(f.value) ? f.value : void 0), m = e(() => {
1210
+ if (t.component) return t.component;
1211
+ if (t.name && !p.value) return it(t.name);
1212
+ }), h = e(() => !!t.name && !p.value && !m.value && !t.component), g = e(() => {
1213
+ let e = {}, n = ft(t.size, pt(c.componentSize));
1214
+ return n && (e.fontSize = n), t.color && (e.color = t.color), t.twoToneColor && (e["--ccui-icon-two-tone-color"] = t.twoToneColor), t.rotate !== void 0 && (e["--ccui-icon-rotate"] = `${t.rotate}deg`), e;
1215
+ }), _ = e(() => ({
1216
+ [s.b()]: !0,
1217
+ [s.m("spin")]: t.spin || t.loading,
1218
+ [s.m("spin-ccw")]: (t.spin || t.loading) && t.spinDirection === "ccw",
1219
+ [s.m("font")]: h.value,
1220
+ [s.m("svg")]: !!m.value || !!p.value || !!i.default,
1221
+ [s.m("iconify")]: !!p.value,
1222
+ [s.m(t.theme)]: !!t.theme,
1223
+ [s.m("clickable")]: t.clickable && !t.disabled,
1224
+ [s.m("disabled")]: t.clickable && t.disabled,
1225
+ [s.m("loading")]: t.loading
1226
+ })), v = (e) => {
1227
+ if (t.clickable && t.disabled) {
1228
+ e.preventDefault(), e.stopPropagation();
1229
+ return;
1230
+ }
1231
+ a("click", e);
1232
+ }, y = (e) => {
1233
+ !t.clickable || t.disabled || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
1234
+ };
1235
+ return () => {
1236
+ let { class: e, style: r, ...a } = o, c;
1237
+ c = t.loading ? n("svg", {
1238
+ viewBox: "0 0 24 24",
1239
+ class: s.e("loading-spinner"),
1240
+ "aria-hidden": "true"
1241
+ }, n("circle", {
1242
+ cx: "12",
1243
+ cy: "12",
1244
+ r: "9",
1245
+ fill: "none",
1246
+ stroke: "currentColor",
1247
+ "stroke-width": "2.5",
1248
+ "stroke-linecap": "round",
1249
+ "stroke-dasharray": "40 18"
1250
+ })) : m.value ? n(m.value) : p.value ? n(Qe, { icon: p.value }) : h.value ? n("i", { class: [l.value, `${l.value}-${t.name}`] }) : i.default?.();
1251
+ let u = t.clickable, d = u ? "button" : t.title || t.ariaLabel ? "img" : void 0, f = u ? t.disabled ? -1 : 0 : void 0;
1252
+ return n("span", {
1253
+ ...a,
1254
+ class: [e, _.value],
1255
+ style: [r, g.value],
1256
+ role: d,
1257
+ tabindex: f,
1258
+ "aria-hidden": u || t.title || t.ariaLabel ? void 0 : "true",
1259
+ "aria-label": t.ariaLabel || t.title || void 0,
1260
+ "aria-disabled": u && t.disabled ? "true" : void 0,
1261
+ "aria-busy": t.loading ? "true" : void 0,
1262
+ title: t.title || void 0,
1263
+ onClick: v,
1264
+ onKeydown: y
1265
+ }, c);
1266
+ };
1267
+ }
1268
+ });
1269
+ //#endregion
65
1270
  //#region ../ccui/ui/shared/hooks/use-virtual-list.ts
66
- function te(t, n) {
67
- let r = a(0), i = n.buffer ?? 4, o = e(() => t.value.length * n.itemHeight), s = e(() => Math.min(n.maxHeight, o.value));
1271
+ function ht(t, n) {
1272
+ let r = s(0), i = n.buffer ?? 4, a = e(() => t.value.length * n.itemHeight), o = e(() => Math.min(n.maxHeight, a.value));
68
1273
  return {
69
1274
  scrollTop: r,
70
1275
  onScroll: (e) => {
@@ -73,7 +1278,7 @@ function te(t, n) {
73
1278
  visible: e(() => {
74
1279
  let e = t.value;
75
1280
  if (e.length === 0) return [];
76
- let a = Math.max(0, Math.floor(r.value / n.itemHeight) - i), o = Math.ceil(s.value / n.itemHeight) + i * 2, c = Math.min(e.length, a + o), l = [];
1281
+ let a = Math.max(0, Math.floor(r.value / n.itemHeight) - i), s = Math.ceil(o.value / n.itemHeight) + i * 2, c = Math.min(e.length, a + s), l = [];
77
1282
  for (let t = a; t < c; t += 1) l.push({
78
1283
  index: t,
79
1284
  data: e[t],
@@ -81,18 +1286,18 @@ function te(t, n) {
81
1286
  });
82
1287
  return l;
83
1288
  }),
84
- totalHeight: o,
85
- containerHeight: s,
1289
+ totalHeight: a,
1290
+ containerHeight: o,
86
1291
  scrollToIndex: (e, t) => {
87
1292
  if (!t) return;
88
1293
  let i = e * n.itemHeight;
89
- i < r.value ? t.scrollTop = i : i + n.itemHeight > r.value + s.value && (t.scrollTop = i - s.value + n.itemHeight);
1294
+ i < r.value ? t.scrollTop = i : i + n.itemHeight > r.value + o.value && (t.scrollTop = i - o.value + n.itemHeight);
90
1295
  }
91
1296
  };
92
1297
  }
93
1298
  //#endregion
94
1299
  //#region ../ccui/ui/tree/src/composables/use-tree-check.ts
95
- function ne(t, n, r) {
1300
+ function gt(t, n, r) {
96
1301
  return e(() => {
97
1302
  let { flatAll: e, byKey: i } = t.value;
98
1303
  if (r.value) return {
@@ -128,7 +1333,7 @@ function ne(t, n, r) {
128
1333
  };
129
1334
  });
130
1335
  }
131
- function re(e, t, n, r) {
1336
+ function _t(e, t, n, r) {
132
1337
  let i = e.byKey.get(n);
133
1338
  if (!i || i.disabled || i.disableCheckbox) return Array.from(t);
134
1339
  let a = t.has(n), o = new Set(t);
@@ -155,7 +1360,7 @@ function re(e, t, n, r) {
155
1360
  }
156
1361
  //#endregion
157
1362
  //#region ../ccui/ui/tree/src/composables/use-tree-flatten.ts
158
- var p = {
1363
+ var vt = {
159
1364
  key: "key",
160
1365
  title: "title",
161
1366
  children: "children",
@@ -164,21 +1369,21 @@ var p = {
164
1369
  isLeaf: "isLeaf",
165
1370
  selectable: "selectable"
166
1371
  };
167
- function ie(e) {
1372
+ function yt(e) {
168
1373
  return {
169
- ...p,
1374
+ ...vt,
170
1375
  ...e
171
1376
  };
172
1377
  }
173
- function m(e, t, n) {
1378
+ function bt(e, t, n) {
174
1379
  return e[t.key] ?? `__auto_${n}`;
175
1380
  }
176
- function h(e, t) {
1381
+ function xt(e, t) {
177
1382
  let n = e[t.children];
178
1383
  return Array.isArray(n) ? n : void 0;
179
1384
  }
180
- function g(e, t, n, r, i) {
181
- let a = h(e, t), o = e[t.isLeaf], s = !!a && a.length > 0, c = o === void 0 ? !s && !e.loadable : o, l = m(e, t, i);
1385
+ function St(e, t, n, r, i) {
1386
+ let a = xt(e, t), o = e[t.isLeaf], s = !!a && a.length > 0, c = o === void 0 ? !s && !e.loadable : o, l = bt(e, t, i);
182
1387
  return {
183
1388
  key: l,
184
1389
  raw: e,
@@ -190,21 +1395,21 @@ function g(e, t, n, r, i) {
190
1395
  disableCheckbox: !!e[t.disableCheckbox],
191
1396
  selectable: e[t.selectable] !== !1,
192
1397
  hasChildren: s,
193
- childKeys: s ? a.map((e, n) => m(e, t, i * 1e3 + n)) : []
1398
+ childKeys: s ? a.map((e, n) => bt(e, t, i * 1e3 + n)) : []
194
1399
  };
195
1400
  }
196
- function _(e) {
1401
+ function Ct(e) {
197
1402
  return e == null ? "" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
198
1403
  }
199
- function ae(t, n) {
1404
+ function wt(t, n) {
200
1405
  return e(() => {
201
1406
  let e = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = n.value, s = 0, c = (t, n, l) => {
202
1407
  let u = [];
203
1408
  for (let i of t) {
204
1409
  s += 1;
205
- let t = g(i, o, n, l, s);
1410
+ let t = St(i, o, n, l, s);
206
1411
  e.push(t), u.push(t), r.set(t.key, t);
207
- let a = h(i, o);
1412
+ let a = xt(i, o);
208
1413
  a && c(a, n + 1, [...l, t.key]);
209
1414
  }
210
1415
  l.length === 0 ? a.push(...u.map((e) => e.key)) : i.set(l[l.length - 1], u);
@@ -217,11 +1422,11 @@ function ae(t, n) {
217
1422
  };
218
1423
  });
219
1424
  }
220
- function oe(t, n, r, i) {
1425
+ function Tt(t, n, r, i) {
221
1426
  return e(() => {
222
1427
  let { flatAll: e } = t.value, a = n.value, o = r.value.trim(), s = i?.value, c = [], l = /* @__PURE__ */ new Set();
223
1428
  if (o || s) {
224
- for (let t of e) if (s ? s(t.raw, t.parentKeys) : o.length > 0 && _(t.title).toLowerCase().includes(o.toLowerCase())) {
1429
+ for (let t of e) if (s ? s(t.raw, t.parentKeys) : o.length > 0 && Ct(t.title).toLowerCase().includes(o.toLowerCase())) {
225
1430
  l.add(t.key);
226
1431
  for (let e of t.parentKeys) l.add(e);
227
1432
  }
@@ -232,22 +1437,22 @@ function oe(t, n, r, i) {
232
1437
  }
233
1438
  //#endregion
234
1439
  //#region ../ccui/ui/tree/src/composables/use-tree-state.ts
235
- function v(e) {
1440
+ function Et(e) {
236
1441
  return new Set(e ?? []);
237
1442
  }
238
- function y(t, n, r) {
239
- let i = a(v(n.value));
240
- return c(t, (e) => {
241
- e !== void 0 && (i.value = v(e));
1443
+ function Dt(t, n, r) {
1444
+ let i = s(Et(n.value));
1445
+ return d(t, (e) => {
1446
+ e !== void 0 && (i.value = Et(e));
242
1447
  }), {
243
- current: e(() => t.value === void 0 ? i.value : v(t.value)),
1448
+ current: e(() => t.value === void 0 ? i.value : Et(t.value)),
244
1449
  setKeys: (e) => {
245
- t.value === void 0 && (i.value = v(e)), r(e);
1450
+ t.value === void 0 && (i.value = Et(e)), r(e);
246
1451
  }
247
1452
  };
248
1453
  }
249
- function se(t, n, r) {
250
- let i = e(() => t.selectedKeys), a = e(() => t.defaultSelectedKeys ?? []), o = e(() => t.checkedKeys), s = e(() => t.defaultCheckedKeys ?? []), c = e(() => t.expandedKeys), l = e(() => t.expandedKeys ? t.expandedKeys : n.value.length > 0 ? n.value : t.defaultExpandedKeys ?? []), u = y(i, a, (e) => r("update:selectedKeys", e)), d = y(o, s, (e) => r("update:checkedKeys", e)), f = y(c, l, (e) => r("update:expandedKeys", e));
1454
+ function Ot(t, n, r) {
1455
+ let i = e(() => t.selectedKeys), a = e(() => t.defaultSelectedKeys ?? []), o = e(() => t.checkedKeys), s = e(() => t.defaultCheckedKeys ?? []), c = e(() => t.expandedKeys), l = e(() => t.expandedKeys ? t.expandedKeys : n.value.length > 0 ? n.value : t.defaultExpandedKeys ?? []), u = Dt(i, a, (e) => r("update:selectedKeys", e)), d = Dt(o, s, (e) => r("update:checkedKeys", e)), f = Dt(c, l, (e) => r("update:expandedKeys", e));
251
1456
  return {
252
1457
  selectedKeys: u.current,
253
1458
  setSelectedKeys: u.setKeys,
@@ -259,7 +1464,7 @@ function se(t, n, r) {
259
1464
  }
260
1465
  //#endregion
261
1466
  //#region ../ccui/ui/tree/src/tree-types.ts
262
- var b = {
1467
+ var kt = {
263
1468
  data: {
264
1469
  type: Array,
265
1470
  default: () => []
@@ -391,14 +1596,14 @@ var b = {
391
1596
  };
392
1597
  //#endregion
393
1598
  //#region ../ccui/ui/tree/src/tree.tsx
394
- function ce(e) {
1599
+ function At(e) {
395
1600
  return e.filter((e) => e.hasChildren).map((e) => e.key);
396
1601
  }
397
- function x(e) {
1602
+ function jt(e) {
398
1603
  return e == null ? "" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
399
1604
  }
400
- function le(e, t) {
401
- let r = x(e);
1605
+ function Mt(e, t) {
1606
+ let r = jt(e);
402
1607
  if (!t) return r;
403
1608
  let i = r.toLowerCase(), a = t.toLowerCase(), o = i.indexOf(a);
404
1609
  return o < 0 ? r : n("span", null, [
@@ -407,9 +1612,9 @@ function le(e, t) {
407
1612
  r.slice(o + t.length)
408
1613
  ]);
409
1614
  }
410
- var S = /* @__PURE__ */ t({
1615
+ var $ = /* @__PURE__ */ t({
411
1616
  name: "CTree",
412
- props: b,
1617
+ props: kt,
413
1618
  emits: [
414
1619
  "update:selectedKeys",
415
1620
  "update:checkedKeys",
@@ -427,335 +1632,341 @@ var S = /* @__PURE__ */ t({
427
1632
  "focus-change",
428
1633
  "load-error"
429
1634
  ],
430
- setup(t, { emit: l, expose: u, slots: f }) {
431
- let p = ee("tree"), m = e(() => ie(t.fieldNames)), h = s(t, "data"), g = s(t, "searchValue"), _ = e(() => t.filterTreeNode), v = ae(h, m), y = a([]);
432
- t.defaultExpandAll && t.expandedKeys === void 0 && (t.defaultExpandedKeys ?? []).length === 0 && (y.value = ce(v.value.flatAll));
433
- let { selectedKeys: b, setSelectedKeys: x, checkedKeys: S, setCheckedKeys: C, expandedKeys: w, setExpandedKeys: ue } = se(t, y, l), T = ne(v, S, e(() => t.checkStrictly)), E = oe(v, w, g, _), D = a(/* @__PURE__ */ new Set()), O = a(/* @__PURE__ */ new Set()), k = a(/* @__PURE__ */ new Set()), A = o(null), j = o(null), M = o(null), N = o(null), P = o(null), F = o(0), I = a(t.focusedKey), L = e(() => t.focusedKey === void 0 ? I.value : t.focusedKey), R = (e) => {
434
- t.focusedKey === void 0 && (I.value = e), l("update:focusedKey", e), l("focus-change", e);
435
- }, z = a(null), B = a(null), V = e(() => {
1635
+ setup(t, { emit: r, expose: a, slots: u }) {
1636
+ let f = tt("tree"), p = e(() => yt(t.fieldNames)), m = l(t, "data"), h = l(t, "searchValue"), g = e(() => t.filterTreeNode), _ = wt(m, p), v = s([]);
1637
+ t.defaultExpandAll && t.expandedKeys === void 0 && (t.defaultExpandedKeys ?? []).length === 0 && (v.value = At(_.value.flatAll));
1638
+ let { selectedKeys: y, setSelectedKeys: ee, checkedKeys: b, setCheckedKeys: te, expandedKeys: x, setExpandedKeys: ne } = Ot(t, v, r), S = gt(_, b, e(() => t.checkStrictly)), C = Tt(_, x, h, g), w = s(/* @__PURE__ */ new Set()), T = s(/* @__PURE__ */ new Set()), E = s(/* @__PURE__ */ new Set()), D = c(null), O = c(null), k = c(null), A = c(null), j = c(null), M = c(0), N = s(t.focusedKey), P = e(() => t.focusedKey === void 0 ? N.value : t.focusedKey), F = (e) => {
1639
+ t.focusedKey === void 0 && (N.value = e), r("update:focusedKey", e), r("focus-change", e);
1640
+ }, I = s(null), L = s(null), R = e(() => {
436
1641
  let e = /* @__PURE__ */ new Map();
437
- return E.value.forEach((t, n) => e.set(t.key, n)), e;
438
- }), H = e(() => t.virtualScroll && E.value.length > 0), U = te(E, {
1642
+ return C.value.forEach((t, n) => e.set(t.key, n)), e;
1643
+ }), re = e(() => t.virtualScroll && C.value.length > 0), z = ht(C, {
439
1644
  itemHeight: t.virtualItemHeight,
440
1645
  maxHeight: t.virtualMaxHeight
441
- }), W = async (e, n) => {
1646
+ }), ie = async (e, n) => {
442
1647
  if (t.loadData) {
443
- k.value.delete(e.key), k.value = new Set(k.value), D.value.add(e.key), D.value = new Set(D.value);
1648
+ E.value.delete(e.key), E.value = new Set(E.value), w.value.add(e.key), w.value = new Set(w.value);
444
1649
  try {
445
- await t.loadData(e.raw), O.value.add(e.key), O.value = new Set(O.value), l("load", Array.from(O.value), {
1650
+ await t.loadData(e.raw), T.value.add(e.key), T.value = new Set(T.value), r("load", Array.from(T.value), {
446
1651
  event: n,
447
1652
  node: e
448
1653
  });
449
1654
  } catch (t) {
450
- k.value.add(e.key), k.value = new Set(k.value), l("load-error", {
1655
+ E.value.add(e.key), E.value = new Set(E.value), r("load-error", {
451
1656
  error: t,
452
1657
  node: e
453
1658
  });
454
1659
  } finally {
455
- D.value.delete(e.key), D.value = new Set(D.value);
1660
+ w.value.delete(e.key), w.value = new Set(w.value);
456
1661
  }
457
1662
  }
458
- }, G = async (e, n) => {
1663
+ }, B = async (e, n) => {
459
1664
  if (t.disabled) return;
460
- let r = w.value.has(e.key), i = new Set(w.value);
461
- r ? i.delete(e.key) : (i.add(e.key), t.loadData && !e.hasChildren && !e.isLeaf && !O.value.has(e.key) && await W(e, n));
462
- let a = Array.from(i);
463
- ue(a), l("expand", a, {
464
- expanded: !r,
1665
+ let i = x.value.has(e.key), a = new Set(x.value);
1666
+ i ? a.delete(e.key) : (a.add(e.key), t.loadData && !e.hasChildren && !e.isLeaf && !T.value.has(e.key) && await ie(e, n));
1667
+ let o = Array.from(a);
1668
+ ne(o), r("expand", o, {
1669
+ expanded: !i,
465
1670
  node: e
466
1671
  });
467
- }, K = async (e) => {
468
- let n = v.value.byKey.get(e);
469
- !n || !t.loadData || await W(n);
470
- }, q = (e, n) => {
1672
+ }, ae = async (e) => {
1673
+ let n = _.value.byKey.get(e);
1674
+ !n || !t.loadData || await ie(n);
1675
+ }, oe = (e, n) => {
471
1676
  if (t.disabled || !t.selectable || !e.selectable || e.disabled) return;
472
- let r = b.value.has(e.key), i;
473
- i = t.multiple ? r ? Array.from(b.value).filter((t) => t !== e.key) : [...b.value, e.key] : r ? [] : [e.key], x(i), l("select", i, {
474
- selectedKeys: i,
475
- selected: !r,
1677
+ let i = y.value.has(e.key), a;
1678
+ a = t.multiple ? i ? Array.from(y.value).filter((t) => t !== e.key) : [...y.value, e.key] : i ? [] : [e.key], ee(a), r("select", a, {
1679
+ selectedKeys: a,
1680
+ selected: !i,
476
1681
  node: e,
477
1682
  event: n
478
1683
  });
479
- }, J = (e, n) => {
1684
+ }, V = (e, n) => {
480
1685
  if (t.disabled || !t.checkable || e.disableCheckbox || e.disabled) return;
481
- let r = T.value.checked.has(e.key), i = t.checkStrictly ? S.value : T.value.checked, a = re(v.value, i, e.key, t.checkStrictly);
482
- C(a), l("check", a, {
483
- checkedKeys: a,
484
- halfCheckedKeys: Array.from(T.value.halfChecked),
485
- checked: !r,
1686
+ let i = S.value.checked.has(e.key), a = t.checkStrictly ? b.value : S.value.checked, o = _t(_.value, a, e.key, t.checkStrictly);
1687
+ te(o), r("check", o, {
1688
+ checkedKeys: o,
1689
+ halfCheckedKeys: Array.from(S.value.halfChecked),
1690
+ checked: !i,
486
1691
  node: e,
487
1692
  event: n
488
1693
  });
489
- }, de = (e, n) => {
1694
+ }, se = (e, n) => {
490
1695
  if (!t.draggable || n.disabled) {
491
1696
  e.preventDefault();
492
1697
  return;
493
1698
  }
494
- j.value = n.key, e.dataTransfer?.setData("text/plain", String(n.key)), l("dragstart", {
1699
+ O.value = n.key, e.dataTransfer?.setData("text/plain", String(n.key)), r("dragstart", {
495
1700
  event: e,
496
1701
  node: n
497
1702
  });
498
- }, fe = (e, t) => {
1703
+ }, ce = (e, t) => {
499
1704
  let n = t.getBoundingClientRect();
500
1705
  if (!n.height) return "inside";
501
1706
  let r = (e.clientY - n.top) / n.height;
502
1707
  return r < .25 ? "before" : r > .75 ? "after" : "inside";
503
- }, Y = () => {
504
- M.value &&= (clearTimeout(M.value), null), N.value = null;
505
- }, pe = (e, n) => {
506
- !t.dragHoverExpandDelay || t.dragHoverExpandDelay <= 0 || !e.hasChildren && (!t.loadData || e.isLeaf) || w.value.has(e.key) || N.value !== e.key && (Y(), N.value = e.key, M.value = setTimeout(() => {
507
- j.value !== null && N.value === e.key && G(e, n), M.value = null;
1708
+ }, H = () => {
1709
+ k.value &&= (clearTimeout(k.value), null), A.value = null;
1710
+ }, le = (e, n) => {
1711
+ !t.dragHoverExpandDelay || t.dragHoverExpandDelay <= 0 || !e.hasChildren && (!t.loadData || e.isLeaf) || x.value.has(e.key) || A.value !== e.key && (H(), A.value = e.key, k.value = setTimeout(() => {
1712
+ O.value !== null && A.value === e.key && B(e, n), k.value = null;
508
1713
  }, t.dragHoverExpandDelay));
509
- }, X = () => {
510
- F.value = 0, P.value !== null && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(P.value), P.value = null;
511
- }, Z = () => {
512
- let e = B.value;
513
- if (!e || F.value === 0) {
514
- P.value = null;
1714
+ }, U = () => {
1715
+ M.value = 0, j.value !== null && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(j.value), j.value = null;
1716
+ }, W = () => {
1717
+ let e = L.value;
1718
+ if (!e || M.value === 0) {
1719
+ j.value = null;
515
1720
  return;
516
1721
  }
517
- e.scrollTop += F.value, typeof requestAnimationFrame == "function" ? P.value = requestAnimationFrame(Z) : P.value = null;
518
- }, me = (e) => {
1722
+ e.scrollTop += M.value, typeof requestAnimationFrame == "function" ? j.value = requestAnimationFrame(W) : j.value = null;
1723
+ }, G = (e) => {
519
1724
  if (!t.dragAutoScroll) return;
520
- let n = B.value;
1725
+ let n = L.value;
521
1726
  if (!n) return;
522
1727
  let r = n.getBoundingClientRect(), i = t.dragAutoScrollEdge, a = t.dragAutoScrollSpeed, o = e.clientY - r.top, s = r.bottom - e.clientY, c = 0;
523
1728
  o < i && o > 0 ? c = -a : s < i && s > 0 && (c = a);
524
- let l = F.value === 0;
525
- F.value = c, c !== 0 && l && typeof requestAnimationFrame == "function" ? P.value = requestAnimationFrame(Z) : c === 0 && X();
526
- }, he = (e, n) => {
527
- if (!t.draggable || j.value === null) return;
1729
+ let l = M.value === 0;
1730
+ M.value = c, c !== 0 && l && typeof requestAnimationFrame == "function" ? j.value = requestAnimationFrame(W) : c === 0 && U();
1731
+ }, K = (e, n) => {
1732
+ if (!t.draggable || O.value === null) return;
528
1733
  e.preventDefault();
529
- let r = fe(e, e.currentTarget);
530
- A.value = {
1734
+ let i = ce(e, e.currentTarget);
1735
+ D.value = {
531
1736
  key: n.key,
532
- position: r
533
- }, r === "inside" ? pe(n, e) : N.value !== null && Y(), me(e), l("dragover", {
1737
+ position: i
1738
+ }, i === "inside" ? le(n, e) : A.value !== null && H(), G(e), r("dragover", {
534
1739
  event: e,
535
1740
  node: n
536
1741
  });
537
- }, ge = (e, n) => {
538
- t.draggable && l("dragenter", {
1742
+ }, q = (e, n) => {
1743
+ t.draggable && r("dragenter", {
539
1744
  event: e,
540
1745
  node: n
541
1746
  });
542
- }, _e = (e, n) => {
543
- t.draggable && (N.value === n.key && Y(), l("dragleave", {
1747
+ }, ue = (e, n) => {
1748
+ t.draggable && (A.value === n.key && H(), r("dragleave", {
544
1749
  event: e,
545
1750
  node: n
546
1751
  }));
547
- }, ve = (e, n) => {
548
- if (!t.draggable || j.value === null) return;
549
- e.preventDefault(), Y(), X();
550
- let r = v.value.byKey.get(j.value);
551
- if (!r || r.key === n.key) {
552
- j.value = null, A.value = null;
1752
+ }, J = (e, n) => {
1753
+ if (!t.draggable || O.value === null) return;
1754
+ e.preventDefault(), H(), U();
1755
+ let i = _.value.byKey.get(O.value);
1756
+ if (!i || i.key === n.key) {
1757
+ O.value = null, D.value = null;
553
1758
  return;
554
1759
  }
555
- l("drop", {
1760
+ r("drop", {
556
1761
  event: e,
557
1762
  node: n,
558
- dragNode: r,
559
- dropPosition: A.value?.key === n.key ? A.value.position : "inside"
560
- }), j.value = null, A.value = null;
561
- }, ye = (e) => {
562
- if (f.switcher) return f.switcher({
563
- expanded: w.value.has(e.key),
1763
+ dragNode: i,
1764
+ dropPosition: D.value?.key === n.key ? D.value.position : "inside"
1765
+ }), O.value = null, D.value = null;
1766
+ }, de = (e) => {
1767
+ if (u.switcher) return u.switcher({
1768
+ expanded: x.value.has(e.key),
564
1769
  node: e,
565
- loading: D.value.has(e.key),
566
- loadFailed: k.value.has(e.key)
1770
+ loading: w.value.has(e.key),
1771
+ loadFailed: E.value.has(e.key)
567
1772
  });
568
- let r = w.value.has(e.key), i = D.value.has(e.key), a = k.value.has(e.key);
569
- return i ? n("span", { class: p.e("switcher-loading") }, "○") : a ? n("span", {
570
- class: p.e("switcher-error"),
1773
+ let r = x.value.has(e.key), i = w.value.has(e.key), a = E.value.has(e.key);
1774
+ return i ? n("span", { class: f.e("switcher-loading") }, "○") : a ? n("span", {
1775
+ class: f.e("switcher-error"),
571
1776
  role: "button",
572
1777
  title: "Click to retry",
573
1778
  onClick: (t) => {
574
- t.stopPropagation(), K(e.key);
1779
+ t.stopPropagation(), ae(e.key);
575
1780
  }
576
- }, "!") : e.isLeaf && !e.hasChildren ? n("span", { class: p.e("switcher-leaf") }) : n("span", {
1781
+ }, "!") : e.isLeaf && !e.hasChildren ? n("span", { class: f.e("switcher-leaf") }) : n("span", {
577
1782
  class: [
578
- p.e("switcher"),
579
- r && p.em("switcher", "open"),
1783
+ f.e("switcher"),
1784
+ r && f.em("switcher", "open"),
580
1785
  t.classNames?.switcher
581
1786
  ],
582
1787
  style: t.styles?.switcher
583
- }, n(d, { size: 12 }));
584
- }, be = (e) => {
1788
+ }, n(mt, {
1789
+ name: "mdi:menu-right",
1790
+ size: 12
1791
+ }));
1792
+ }, fe = (e) => {
585
1793
  if (!t.checkable) return null;
586
- let r = T.value.checked.has(e.key), i = T.value.halfChecked.has(e.key);
1794
+ let r = S.value.checked.has(e.key), i = S.value.halfChecked.has(e.key);
587
1795
  return n("span", {
588
1796
  class: [
589
- p.e("checkbox"),
590
- r && p.em("checkbox", "checked"),
591
- i && p.em("checkbox", "indeterminate"),
592
- (e.disabled || e.disableCheckbox) && p.em("checkbox", "disabled")
1797
+ f.e("checkbox"),
1798
+ r && f.em("checkbox", "checked"),
1799
+ i && f.em("checkbox", "indeterminate"),
1800
+ (e.disabled || e.disableCheckbox) && f.em("checkbox", "disabled")
593
1801
  ],
594
1802
  role: "checkbox",
595
1803
  "aria-checked": i ? "mixed" : r,
596
1804
  onClick: (t) => {
597
- t.stopPropagation(), J(e, t);
1805
+ t.stopPropagation(), V(e, t);
598
1806
  }
599
1807
  }, r ? "✓" : i ? "–" : "");
600
- }, xe = (e) => f.title ? f.title({
1808
+ }, pe = (e) => u.title ? u.title({
601
1809
  node: e,
602
1810
  data: e.raw,
603
- expanded: w.value.has(e.key)
604
- }) : le(e.title, g.value), Se = (e) => f.icon ? n("span", { class: p.e("icon") }, f.icon({
1811
+ expanded: x.value.has(e.key)
1812
+ }) : Mt(e.title, h.value), me = (e) => u.icon ? n("span", { class: f.e("icon") }, u.icon({
605
1813
  node: e,
606
- expanded: w.value.has(e.key)
607
- })) : e.raw.icon ? n("span", { class: p.e("icon") }, e.raw.icon) : null, Ce = (e) => {
1814
+ expanded: x.value.has(e.key)
1815
+ })) : e.raw.icon ? n("span", { class: f.e("icon") }, e.raw.icon) : null, he = (e) => {
608
1816
  if (!t.showLine || e.level === 0) return null;
609
1817
  let r = [];
610
- for (let i = 0; i < e.level; i += 1) f.connector ? r.push(n("span", {
1818
+ for (let i = 0; i < e.level; i += 1) u.connector ? r.push(n("span", {
611
1819
  key: `guide-${i}`,
612
- class: p.e("guide"),
1820
+ class: f.e("guide"),
613
1821
  style: { left: `${i * t.indentSize + t.indentSize / 2}px` }
614
- }, f.connector({
1822
+ }, u.connector({
615
1823
  depth: i,
616
1824
  node: e
617
1825
  }))) : r.push(n("span", {
618
1826
  key: `guide-${i}`,
619
- class: p.e("guide"),
1827
+ class: f.e("guide"),
620
1828
  style: { left: `${i * t.indentSize + t.indentSize / 2}px` }
621
1829
  }));
622
1830
  return r;
623
- }, we = () => {
624
- Y(), X(), j.value = null, A.value = null;
625
- }, Te = (e, r) => {
1831
+ }, ge = () => {
1832
+ H(), U(), O.value = null, D.value = null;
1833
+ }, Y = (e, r) => {
626
1834
  let i = {
627
1835
  paddingLeft: `${t.indentSize * e.level}px`,
628
1836
  ...r
629
- }, a = b.value.has(e.key), o = L.value === e.key, s = A.value?.key === e.key, c = s ? A.value.position : null, l = N.value === e.key;
1837
+ }, a = y.value.has(e.key), o = P.value === e.key, s = D.value?.key === e.key, c = s ? D.value.position : null, l = A.value === e.key;
630
1838
  return n("div", {
631
1839
  key: e.key,
632
1840
  class: [
633
- p.e("node"),
634
- a && p.em("node", "selected"),
635
- o && p.em("node", "focused"),
636
- e.disabled && p.em("node", "disabled"),
637
- s && c === "inside" && p.em("node", "drop-inside"),
638
- s && c === "before" && p.em("node", "drop-before"),
639
- s && c === "after" && p.em("node", "drop-after"),
640
- t.blockNode && p.em("node", "block"),
641
- l && p.em("node", "hover-expand"),
1841
+ f.e("node"),
1842
+ a && f.em("node", "selected"),
1843
+ o && f.em("node", "focused"),
1844
+ e.disabled && f.em("node", "disabled"),
1845
+ s && c === "inside" && f.em("node", "drop-inside"),
1846
+ s && c === "before" && f.em("node", "drop-before"),
1847
+ s && c === "after" && f.em("node", "drop-after"),
1848
+ t.blockNode && f.em("node", "block"),
1849
+ l && f.em("node", "hover-expand"),
642
1850
  t.classNames?.node
643
1851
  ],
644
1852
  role: "treeitem",
645
1853
  tabindex: o ? 0 : -1,
646
1854
  "aria-selected": a,
647
- "aria-expanded": e.hasChildren ? w.value.has(e.key) : void 0,
1855
+ "aria-expanded": e.hasChildren ? x.value.has(e.key) : void 0,
648
1856
  "aria-disabled": e.disabled || void 0,
1857
+ "aria-level": e.level + 1,
649
1858
  "data-key": e.key,
650
1859
  style: [i, t.styles?.node],
651
1860
  draggable: t.draggable && !e.disabled ? !0 : void 0,
652
- onDragstart: (t) => de(t, e),
653
- onDragover: (t) => he(t, e),
654
- onDragenter: (t) => ge(t, e),
655
- onDragleave: (t) => _e(t, e),
656
- onDrop: (t) => ve(t, e),
657
- onDragend: we,
1861
+ onDragstart: (t) => se(t, e),
1862
+ onDragover: (t) => K(t, e),
1863
+ onDragenter: (t) => q(t, e),
1864
+ onDragleave: (t) => ue(t, e),
1865
+ onDrop: (t) => J(t, e),
1866
+ onDragend: ge,
658
1867
  onFocus: () => {
659
- L.value !== e.key && R(e.key);
1868
+ P.value !== e.key && F(e.key);
660
1869
  }
661
1870
  }, [
662
- ...Ce(e) || [],
1871
+ ...he(e) || [],
663
1872
  n("span", {
664
- class: p.e("switcher-wrap"),
1873
+ class: f.e("switcher-wrap"),
665
1874
  onClick: (n) => {
666
- n.stopPropagation(), (e.hasChildren || t.loadData && !e.isLeaf) && G(e, n);
1875
+ n.stopPropagation(), (e.hasChildren || t.loadData && !e.isLeaf) && B(e, n);
667
1876
  }
668
- }, ye(e)),
669
- be(e),
1877
+ }, de(e)),
1878
+ fe(e),
670
1879
  n("span", {
671
- class: [p.e("content"), t.classNames?.label],
1880
+ class: [f.e("content"), t.classNames?.label],
672
1881
  style: t.styles?.label,
673
1882
  onClick: (n) => {
674
- q(e, n), t.expandAction === "click" && !t.disabled && !e.disabled && (e.hasChildren || t.loadData && !e.isLeaf) && G(e, n);
1883
+ oe(e, n), t.expandAction === "click" && !t.disabled && !e.disabled && (e.hasChildren || t.loadData && !e.isLeaf) && B(e, n);
675
1884
  }
676
- }, [Se(e), n("span", { class: p.e("title") }, xe(e))])
1885
+ }, [me(e), n("span", { class: f.e("title") }, pe(e))])
677
1886
  ]);
678
- }, Ee = (e) => {
679
- let t = E.value;
1887
+ }, _e = (e) => {
1888
+ let t = C.value;
680
1889
  if (t.length === 0) return;
681
- let n = L.value, r = n === void 0 ? -1 : V.value.get(n) ?? -1, i = Math.max(0, Math.min(t.length - 1, r + e));
1890
+ let n = P.value, r = n === void 0 ? -1 : R.value.get(n) ?? -1, i = Math.max(0, Math.min(t.length - 1, r + e));
682
1891
  if (r === i && n !== void 0) return;
683
1892
  let a = t[i].key;
684
- R(a);
685
- }, Q = (e) => {
686
- let t = E.value;
687
- t.length !== 0 && R(t[e === 1 ? t.length - 1 : 0].key);
688
- }, $ = (e) => {
1893
+ F(a);
1894
+ }, ve = (e) => {
1895
+ let t = C.value;
1896
+ t.length !== 0 && F(t[e === 1 ? t.length - 1 : 0].key);
1897
+ }, X = (e) => {
689
1898
  if (t.disabled) return;
690
- let n = E.value;
1899
+ let n = C.value;
691
1900
  if (n.length === 0) return;
692
- let r = L.value ?? n[0].key, i = V.value.get(r) ?? 0, a = n[i];
1901
+ let r = P.value ?? n[0].key, i = R.value.get(r) ?? 0, a = n[i];
693
1902
  switch (e.key) {
694
1903
  case "ArrowDown":
695
- e.preventDefault(), Ee(1);
1904
+ e.preventDefault(), _e(1);
696
1905
  break;
697
1906
  case "ArrowUp":
698
- e.preventDefault(), Ee(-1);
1907
+ e.preventDefault(), _e(-1);
699
1908
  break;
700
1909
  case "ArrowRight":
701
- if (e.preventDefault(), a.hasChildren && !w.value.has(a.key)) G(a, e);
1910
+ if (e.preventDefault(), a.hasChildren && !x.value.has(a.key)) B(a, e);
702
1911
  else if (a.hasChildren) {
703
1912
  let e = n[i + 1];
704
- e && e.parentKeys.includes(a.key) && R(e.key);
705
- } else t.loadData && !a.isLeaf && !O.value.has(a.key) && G(a, e);
1913
+ e && e.parentKeys.includes(a.key) && F(e.key);
1914
+ } else t.loadData && !a.isLeaf && !T.value.has(a.key) && B(a, e);
706
1915
  break;
707
1916
  case "ArrowLeft":
708
- if (e.preventDefault(), a.hasChildren && w.value.has(a.key)) G(a, e);
1917
+ if (e.preventDefault(), a.hasChildren && x.value.has(a.key)) B(a, e);
709
1918
  else if (a.parentKeys.length > 0) {
710
1919
  let e = a.parentKeys[a.parentKeys.length - 1];
711
- R(e);
1920
+ F(e);
712
1921
  }
713
1922
  break;
714
1923
  case "Home":
715
- e.preventDefault(), Q(-1);
1924
+ e.preventDefault(), ve(-1);
716
1925
  break;
717
1926
  case "End":
718
- e.preventDefault(), Q(1);
1927
+ e.preventDefault(), ve(1);
719
1928
  break;
720
1929
  case "Enter":
721
1930
  case " ": {
722
1931
  e.preventDefault();
723
1932
  let n = new MouseEvent("click");
724
- t.checkable ? J(a, n) : q(a, n);
1933
+ t.checkable ? V(a, n) : oe(a, n);
725
1934
  break;
726
1935
  }
727
1936
  }
728
- }, De = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/(["\\])/g, "\\$1"), Oe = () => {
729
- let e = L.value;
1937
+ }, ye = (e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/(["\\])/g, "\\$1"), be = () => {
1938
+ let e = P.value;
730
1939
  if (e === void 0) return;
731
- let t = V.value.get(e);
732
- t !== void 0 && (H.value ? U.scrollToIndex(t, B.value) : z.value && z.value.querySelector(`[data-key="${De(String(e))}"]`)?.focus({ preventScroll: !1 }));
1940
+ let t = R.value.get(e);
1941
+ t !== void 0 && (re.value ? z.scrollToIndex(t, L.value) : I.value && I.value.querySelector(`[data-key="${ye(String(e))}"]`)?.focus({ preventScroll: !1 }));
733
1942
  };
734
- return c(L, () => {
735
- r(Oe);
736
- }), i(() => {
737
- Y(), X();
738
- }), u({
739
- retryLoad: K,
740
- isNodeLoading: (e) => D.value.has(e),
741
- hasLoadError: (e) => k.value.has(e)
1943
+ return d(P, () => {
1944
+ i(be);
1945
+ }), o(() => {
1946
+ H(), U();
1947
+ }), a({
1948
+ retryLoad: ae,
1949
+ isNodeLoading: (e) => w.value.has(e),
1950
+ hasLoadError: (e) => E.value.has(e)
742
1951
  }), () => {
743
1952
  let e = [
744
- p.b(),
745
- t.disabled && p.m("disabled"),
746
- t.showLine && p.m("show-line"),
747
- t.draggable && p.m("draggable"),
1953
+ f.b(),
1954
+ t.disabled && f.m("disabled"),
1955
+ t.showLine && f.m("show-line"),
1956
+ t.draggable && f.m("draggable"),
748
1957
  t.classNames?.root
749
- ], r = t.styles?.root;
750
- if (E.value.length === 0) return n("div", {
751
- ref: z,
1958
+ ], r = t.styles?.root, i = t.multiple || t.checkable;
1959
+ if (C.value.length === 0) return n("div", {
1960
+ ref: I,
752
1961
  class: e,
753
1962
  style: r,
754
1963
  role: "tree",
755
- onKeydown: $
756
- }, n("div", { class: p.e("empty") }, "No data"));
757
- if (H.value) {
758
- let i = U.visible.value.map(({ data: e, top: n }) => Te(e, {
1964
+ "aria-multiselectable": i || void 0,
1965
+ "aria-disabled": t.disabled || void 0,
1966
+ onKeydown: X
1967
+ }, n("div", { class: f.e("empty") }, "No data"));
1968
+ if (re.value) {
1969
+ let a = z.visible.value.map(({ data: e, top: n }) => Y(e, {
759
1970
  position: "absolute",
760
1971
  top: `${n}px`,
761
1972
  left: 0,
@@ -763,48 +1974,52 @@ var S = /* @__PURE__ */ t({
763
1974
  height: `${t.virtualItemHeight}px`
764
1975
  }));
765
1976
  return n("div", {
766
- ref: z,
1977
+ ref: I,
767
1978
  class: e,
768
1979
  style: r,
769
1980
  role: "tree",
770
- onKeydown: $
1981
+ "aria-multiselectable": i || void 0,
1982
+ "aria-disabled": t.disabled || void 0,
1983
+ onKeydown: X
771
1984
  }, n("div", {
772
- ref: B,
773
- class: p.e("virtual"),
1985
+ ref: L,
1986
+ class: f.e("virtual"),
774
1987
  style: {
775
- height: `${U.containerHeight.value}px`,
1988
+ height: `${z.containerHeight.value}px`,
776
1989
  overflow: "auto",
777
1990
  position: "relative"
778
1991
  },
779
- onScroll: U.onScroll
1992
+ onScroll: z.onScroll
780
1993
  }, n("div", { style: {
781
- height: `${U.totalHeight.value}px`,
1994
+ height: `${z.totalHeight.value}px`,
782
1995
  position: "relative"
783
- } }, i)));
1996
+ } }, a)));
784
1997
  }
785
1998
  return n("div", {
786
- ref: z,
1999
+ ref: I,
787
2000
  class: e,
788
2001
  style: r,
789
2002
  role: "tree",
790
- onKeydown: $,
791
- tabindex: L.value === void 0 ? 0 : -1
792
- }, E.value.map((e) => Te(e)));
2003
+ "aria-multiselectable": i || void 0,
2004
+ "aria-disabled": t.disabled || void 0,
2005
+ onKeydown: X,
2006
+ tabindex: P.value === void 0 ? 0 : -1
2007
+ }, C.value.map((e) => Y(e)));
793
2008
  };
794
2009
  }
795
2010
  });
796
2011
  //#endregion
797
2012
  //#region ../ccui/ui/tree/index.ts
798
- S.install = function(e) {
799
- e.component(S.name, S);
2013
+ $.install = function(e) {
2014
+ e.component($.name, $);
800
2015
  };
801
- var C = {
2016
+ var Nt = {
802
2017
  title: "Tree 树",
803
2018
  category: "数据展示",
804
2019
  status: "100%",
805
2020
  install(e) {
806
- e.component(S.name, S);
2021
+ e.component($.name, $);
807
2022
  }
808
2023
  };
809
2024
  //#endregion
810
- export { S as Tree, C as default };
2025
+ export { $ as Tree, Nt as default };