@huyooo/ui 0.14.4 → 0.14.8

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.
@@ -0,0 +1,688 @@
1
+ /* empty css */
2
+ import "./index-D3Kp6R4z.js";
3
+ import { defineComponent as P, ref as U, watch as V, openBlock as n, createElementBlock as o, createElementVNode as r, createVNode as a, unref as i, withCtx as x, createTextVNode as z, renderSlot as G, toDisplayString as I, createCommentVNode as $, onMounted as j, onUnmounted as me, normalizeClass as S, Fragment as L, renderList as D, createBlock as he, computed as B, onBeforeUnmount as pe, normalizeStyle as W } from "vue";
4
+ import { Spin as q } from "@arco-design/web-vue";
5
+ import { u as F } from "./useAuthkitAuth-C--qS6UE.js";
6
+ import { d as fe, b as _e } from "./apiClients-CkI47p36.js";
7
+ import { u as N } from "./useAuthkitAppsAuthPageInfo-nCjfAjiw.js";
8
+ import { u as J } from "./useAuthkitUsersProfile-BC5EsA2f.js";
9
+ import { b as Q, f as X, w as O, a as Y, c as Z } from "./useRoutePermission-CxRJlooW.js";
10
+ import "./useUploadCos-DGPnLOC9.js";
11
+ import { useRouter as ee, useRoute as te } from "vue-router";
12
+ import "@unhead/vue";
13
+ import "./useUserMenu-ClPBlvaM.js";
14
+ import "./useBillingStatusOptions-D5Ehwtbj.js";
15
+ import { U as ve, c as ne, h as oe, k as se, _ as ae, f as re, j as ie, d as ue, g as K, i as le } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-f2mzNg6i.js";
16
+ /* empty css */
17
+ import { Icon as R } from "@iconify/vue";
18
+ import "./Clipboard-C8ncjaAJ.js";
19
+ /* empty css */
20
+ import { M as ge } from "./Menu-Cy2ZPeaz.js";
21
+ import "./CollapseItem-DUzZA6tx.js";
22
+ /* empty css */
23
+ /* empty css */
24
+ /* empty css */
25
+ /* empty css */
26
+ /* empty css */
27
+ import "./CustomTable-BT-cnhLR.js";
28
+ import "./index-D56hUMeD.js";
29
+ import { L as ce } from "./Logo-D7fyXyB-.js";
30
+ import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
31
+ const ye = {
32
+ class: "SidebarCom"
33
+ }, ke = {
34
+ class: "LogoContent"
35
+ }, be = {
36
+ class: "MenuContent"
37
+ }, we = {
38
+ class: "sidebar-footer"
39
+ }, $e = /* @__PURE__ */ P({
40
+ __name: "AppSidebar",
41
+ props: {
42
+ menuType: {
43
+ default: "system"
44
+ },
45
+ showUserPanel: {
46
+ type: Boolean,
47
+ default: !0
48
+ }
49
+ },
50
+ setup(m) {
51
+ const e = m, {
52
+ appsData: c
53
+ } = N(), {
54
+ clearAuth: h
55
+ } = F(), {
56
+ clearUserProfile: p
57
+ } = J(), {
58
+ menus: d
59
+ } = Q(e.menuType), f = ee();
60
+ function y() {
61
+ f.push({
62
+ path: "/"
63
+ });
64
+ }
65
+ function C() {
66
+ p(), h(), y();
67
+ }
68
+ const v = te(), k = U([""]);
69
+ function M(t) {
70
+ const s = t.path;
71
+ O(() => {
72
+ f.push({
73
+ path: s,
74
+ query: v.query
75
+ }), k.value = [s], window.scrollTo({
76
+ top: 0,
77
+ behavior: "smooth"
78
+ });
79
+ });
80
+ }
81
+ return V(() => [v.path, d.value], () => {
82
+ const t = X(d.value, v.path, {
83
+ // Sidebar 中,子路由应该选中子菜单项
84
+ returnParentOnChildMatch: !1,
85
+ // 后备查找函数
86
+ fallback: (s) => Y(v.matched, e.menuType, s)
87
+ });
88
+ t && (k.value = [t]);
89
+ }, {
90
+ immediate: !0,
91
+ deep: !0
92
+ }), (t, s) => (n(), o("div", ye, [r("div", ke, [a(i(ce), {
93
+ icon: i(c).applicationLogoUrl,
94
+ name: i(c).name,
95
+ onTo: y
96
+ }, null, 8, ["icon", "name"])]), r("div", be, [a(ge, {
97
+ "selected-keys": k.value,
98
+ "onUpdate:selectedKeys": s[0] || (s[0] = (u) => k.value = u),
99
+ menus: i(d),
100
+ onChange: M
101
+ }, null, 8, ["selected-keys", "menus"])]), r("div", we, [a(i(ve), null, {
102
+ avatar: x(() => [a(i(ne), {
103
+ position: "tr",
104
+ "dropdown-offset-y": "30px"
105
+ }, {
106
+ items: x(() => [a(i(oe)), a(i(se)), a(i(ae)), a(i(re)), a(i(ie)), a(i(ue)), a(i(K), {
107
+ icon: "lucide:home",
108
+ onClick: y
109
+ }, {
110
+ default: x(() => [...s[1] || (s[1] = [z("主页", -1)])]),
111
+ _: 1
112
+ }), a(i(K), {
113
+ icon: "lucide:log-out",
114
+ danger: "",
115
+ onClick: C
116
+ }, {
117
+ default: x(() => [...s[2] || (s[2] = [z("退出登陆", -1)])]),
118
+ _: 1
119
+ })]),
120
+ _: 1
121
+ })]),
122
+ _: 1
123
+ }), a(i(le))])]));
124
+ }
125
+ }), Ce = /* @__PURE__ */ T($e, [["__scopeId", "data-v-f465af61"]]), Me = {
126
+ class: "layout"
127
+ }, Se = {
128
+ class: "leftContent"
129
+ }, Ie = {
130
+ class: "content"
131
+ }, Te = {
132
+ class: "contentCenter"
133
+ }, Pe = {
134
+ class: "pages"
135
+ }, Ae = {
136
+ key: 0,
137
+ class: "loading"
138
+ }, xe = /* @__PURE__ */ P({
139
+ __name: "AppLayout",
140
+ props: {
141
+ menuType: {
142
+ default: "system"
143
+ },
144
+ showUserPanel: {
145
+ type: Boolean,
146
+ default: !0
147
+ }
148
+ },
149
+ setup(m) {
150
+ const e = m, {
151
+ isChecking: c
152
+ } = Z();
153
+ return (h, p) => (n(), o("div", Me, [r("div", Se, [a(Ce, {
154
+ "menu-type": e.menuType,
155
+ "show-user-panel": e.showUserPanel
156
+ }, null, 8, ["menu-type", "show-user-panel"])]), r("div", Ie, [r("div", Te, [r("div", Pe, [i(c) ? (n(), o("div", Ae, [a(i(q), {
157
+ size: 40
158
+ })])) : G(h.$slots, "default", {
159
+ key: 1
160
+ }, void 0, !0)])])])]));
161
+ }
162
+ }), Xt = /* @__PURE__ */ T(xe, [["__scopeId", "data-v-410ad52b"]]), Ue = {
163
+ class: "ContentHead"
164
+ }, Le = {
165
+ class: "title"
166
+ }, Be = {
167
+ key: 0,
168
+ class: "description"
169
+ }, He = /* @__PURE__ */ P({
170
+ __name: "ContentHead",
171
+ props: {
172
+ title: {
173
+ type: String,
174
+ required: !0,
175
+ default: () => ""
176
+ },
177
+ description: {
178
+ type: String,
179
+ required: !0,
180
+ default: () => ""
181
+ }
182
+ },
183
+ setup(m) {
184
+ const e = m;
185
+ return (c, h) => (n(), o("div", Ue, [r("h1", Le, I(e.title), 1), e.description ? (n(), o("p", Be, I(e.description), 1)) : $("", !0)]));
186
+ }
187
+ }), Yt = /* @__PURE__ */ T(He, [["__scopeId", "data-v-209a7bef"]]), ze = {
188
+ key: 0,
189
+ class: "desktop-menus"
190
+ }, De = {
191
+ key: 0,
192
+ class: "header-menu-item"
193
+ }, Ke = {
194
+ class: "submenu-popup"
195
+ }, Ee = {
196
+ class: "submenu-content"
197
+ }, Re = ["onClick"], We = {
198
+ key: 0,
199
+ class: "submenu-item-icon"
200
+ }, Oe = {
201
+ class: "submenu-item-content"
202
+ }, Ve = {
203
+ class: "submenu-item-title"
204
+ }, Ge = {
205
+ key: 0,
206
+ class: "submenu-item-description"
207
+ }, Ne = ["onClick"], je = {
208
+ key: 3,
209
+ class: "mobile-menu"
210
+ }, qe = {
211
+ class: "mobile-menu-content"
212
+ }, Fe = ["onClick"], Je = {
213
+ key: 0,
214
+ class: "mobile-submenu"
215
+ }, Qe = ["onClick"], Xe = ["onClick"], Ye = /* @__PURE__ */ P({
216
+ __name: "HeaderMenus",
217
+ props: {
218
+ menus: {
219
+ type: Array,
220
+ required: !0
221
+ },
222
+ activateKey: {
223
+ type: String,
224
+ required: !0
225
+ },
226
+ theme: {
227
+ type: String,
228
+ default: "light"
229
+ }
230
+ },
231
+ emits: ["change"],
232
+ setup(m, {
233
+ emit: e
234
+ }) {
235
+ const c = m, h = e, p = U(!1), d = U(!1), f = U({});
236
+ function y() {
237
+ d.value = window.innerWidth <= 1024;
238
+ }
239
+ function C() {
240
+ p.value = !p.value;
241
+ }
242
+ function v() {
243
+ p.value = !1;
244
+ }
245
+ function k(_) {
246
+ h("change", _);
247
+ }
248
+ function M(_) {
249
+ h("change", _), v();
250
+ }
251
+ function t(_) {
252
+ f.value[_] = !f.value[_];
253
+ }
254
+ function s(_) {
255
+ const b = c.activateKey, l = _.path;
256
+ if (b === l || b.startsWith(l + "/"))
257
+ return !0;
258
+ if (_.children && _.children.length > 0) {
259
+ for (const w of _.children)
260
+ if (b === w.path || b.startsWith(w.path + "/"))
261
+ return !0;
262
+ }
263
+ return !1;
264
+ }
265
+ function u(_) {
266
+ const b = c.activateKey, l = _.path;
267
+ return !!(b === l || b.startsWith(l + "/"));
268
+ }
269
+ function A(_) {
270
+ h("change", _);
271
+ }
272
+ function H() {
273
+ y(), d.value || v();
274
+ }
275
+ return j(() => {
276
+ y(), window.addEventListener("resize", H);
277
+ }), me(() => {
278
+ window.removeEventListener("resize", H);
279
+ }), (_, b) => (n(), o("div", {
280
+ class: S(["HeaderMenus", {
281
+ "HeaderMenus--dark": c.theme === "dark"
282
+ }])
283
+ }, [d.value ? $("", !0) : (n(), o("div", ze, [(n(!0), o(L, null, D(c.menus, (l, w) => (n(), o(L, {
284
+ key: w
285
+ }, [l.children && l.children.length > 0 ? (n(), o("div", De, [r("div", {
286
+ class: S(["headerLink hasChildren", {
287
+ activate: s(l)
288
+ }])
289
+ }, [z(I(l.name) + " ", 1), a(i(R), {
290
+ icon: "mingcute:down-line",
291
+ class: "dropdown-arrow"
292
+ })], 2), r("div", Ke, [r("div", Ee, [(n(!0), o(L, null, D(l.children, (g, E) => (n(), o("div", {
293
+ key: E,
294
+ class: S(["submenu-item", {
295
+ active: u(g)
296
+ }]),
297
+ onClick: (de) => k(g)
298
+ }, [g.icon ? (n(), o("div", We, [a(i(R), {
299
+ icon: g.icon
300
+ }, null, 8, ["icon"])])) : $("", !0), r("div", Oe, [r("div", Ve, I(g.name), 1), g.description ? (n(), o("div", Ge, I(g.description), 1)) : $("", !0)])], 10, Re))), 128))])])])) : (n(), o("div", {
301
+ key: 1,
302
+ class: S(["headerLink", {
303
+ activate: s(l)
304
+ }]),
305
+ onClick: (g) => A(l)
306
+ }, I(l.name), 11, Ne))], 64))), 128))])), d.value ? (n(), o("button", {
307
+ key: 1,
308
+ class: S(["mobile-menu-toggle", {
309
+ active: p.value
310
+ }]),
311
+ "aria-label": "切换菜单",
312
+ onClick: C
313
+ }, [...b[0] || (b[0] = [r("span", {
314
+ class: "hamburger-line"
315
+ }, null, -1), r("span", {
316
+ class: "hamburger-line"
317
+ }, null, -1), r("span", {
318
+ class: "hamburger-line"
319
+ }, null, -1)])], 2)) : $("", !0), p.value ? (n(), o("div", {
320
+ key: 2,
321
+ class: "mobile-menu-overlay",
322
+ onClick: v
323
+ })) : $("", !0), p.value ? (n(), o("div", je, [r("div", qe, [(n(!0), o(L, null, D(c.menus, (l, w) => (n(), o(L, {
324
+ key: w
325
+ }, [l.children && l.children.length > 0 ? (n(), o("div", {
326
+ key: 0,
327
+ class: S(["mobile-menu-item has-children", {
328
+ activate: s(l),
329
+ expanded: f.value[w]
330
+ }])
331
+ }, [r("div", {
332
+ class: "mobile-menu-item-header",
333
+ onClick: (g) => t(w)
334
+ }, [r("span", null, I(l.name), 1), a(i(R), {
335
+ icon: f.value[w] ? "mingcute:up-line" : "mingcute:down-line",
336
+ class: "mobile-submenu-arrow"
337
+ }, null, 8, ["icon"])], 8, Fe), f.value[w] ? (n(), o("div", Je, [(n(!0), o(L, null, D(l.children, (g, E) => (n(), o("div", {
338
+ key: E,
339
+ class: S(["mobile-submenu-item", {
340
+ active: u(g)
341
+ }]),
342
+ onClick: (de) => M(g)
343
+ }, I(g.name), 11, Qe))), 128))])) : $("", !0)], 2)) : (n(), o("div", {
344
+ key: 1,
345
+ class: S(["mobile-menu-item", {
346
+ activate: s(l)
347
+ }]),
348
+ onClick: (g) => M(l)
349
+ }, I(l.name), 11, Xe))], 64))), 128))])])) : $("", !0)], 2));
350
+ }
351
+ }), Ze = /* @__PURE__ */ T(Ye, [["__scopeId", "data-v-42f528ac"]]), et = {
352
+ class: "HeaderCom"
353
+ }, tt = {
354
+ class: "HeaderCom-inner"
355
+ }, nt = {
356
+ class: "left"
357
+ }, ot = {
358
+ class: "right"
359
+ }, st = ["aria-label"], at = {
360
+ key: 0,
361
+ class: "theme-icon",
362
+ "aria-hidden": "true"
363
+ }, rt = {
364
+ key: 1,
365
+ class: "theme-icon",
366
+ "aria-hidden": "true"
367
+ }, it = /* @__PURE__ */ P({
368
+ __name: "Header",
369
+ props: {
370
+ menuType: {
371
+ default: "header"
372
+ },
373
+ showUserPanel: {
374
+ type: Boolean,
375
+ default: !0
376
+ },
377
+ showThemeToggle: {
378
+ type: Boolean,
379
+ default: !0
380
+ },
381
+ theme: {
382
+ default: "light"
383
+ }
384
+ },
385
+ setup(m) {
386
+ const e = m, {
387
+ appsData: c
388
+ } = N(), {
389
+ clearAuth: h
390
+ } = F(), {
391
+ clearUserProfile: p
392
+ } = J(), {
393
+ menus: d
394
+ } = Q(e.menuType), f = U(""), y = ee(), C = te();
395
+ function v() {
396
+ O(() => {
397
+ y.push({
398
+ path: "/"
399
+ }), window.scrollTo({
400
+ top: 0,
401
+ behavior: "smooth"
402
+ });
403
+ });
404
+ }
405
+ function k() {
406
+ p(), h(), v();
407
+ }
408
+ function M(s) {
409
+ const u = s.path;
410
+ O(() => {
411
+ y.push(u), f.value = u, window.scrollTo({
412
+ top: 0,
413
+ behavior: "smooth"
414
+ });
415
+ });
416
+ }
417
+ function t() {
418
+ fe(e.theme === "dark" ? "light" : "dark");
419
+ }
420
+ return V(() => [C.path, d.value], () => {
421
+ f.value = X(d.value, C.path, {
422
+ // Header 中,子菜单匹配时返回父菜单路径
423
+ returnParentOnChildMatch: !0,
424
+ // 后备查找函数
425
+ fallback: (s) => Y(C.matched, e.menuType, s)
426
+ });
427
+ }, {
428
+ immediate: !0,
429
+ deep: !0
430
+ }), (s, u) => (n(), o("header", et, [r("div", tt, [r("div", nt, [a(ce, {
431
+ icon: i(c).applicationLogoUrl,
432
+ name: i(c).name,
433
+ onTo: v
434
+ }, null, 8, ["icon", "name"])]), r("div", ot, [a(Ze, {
435
+ menus: i(d),
436
+ activateKey: f.value,
437
+ theme: e.theme,
438
+ onChange: M
439
+ }, null, 8, ["menus", "activateKey", "theme"]), e.showThemeToggle ? (n(), o("button", {
440
+ key: 0,
441
+ type: "button",
442
+ class: "theme-toggle",
443
+ "aria-label": e.theme === "dark" ? "切换为浅色" : "切换为深色",
444
+ onClick: t
445
+ }, [e.theme === "dark" ? (n(), o("span", at, [...u[0] || (u[0] = [r("svg", {
446
+ xmlns: "http://www.w3.org/2000/svg",
447
+ width: "20",
448
+ height: "20",
449
+ viewBox: "0 0 24 24",
450
+ fill: "none",
451
+ stroke: "currentColor",
452
+ "stroke-width": "2",
453
+ "stroke-linecap": "round",
454
+ "stroke-linejoin": "round"
455
+ }, [r("circle", {
456
+ cx: "12",
457
+ cy: "12",
458
+ r: "4"
459
+ }), r("path", {
460
+ d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"
461
+ })], -1)])])) : (n(), o("span", rt, [...u[1] || (u[1] = [r("svg", {
462
+ xmlns: "http://www.w3.org/2000/svg",
463
+ width: "20",
464
+ height: "20",
465
+ viewBox: "0 0 24 24",
466
+ fill: "none",
467
+ stroke: "currentColor",
468
+ "stroke-width": "2",
469
+ "stroke-linecap": "round",
470
+ "stroke-linejoin": "round"
471
+ }, [r("path", {
472
+ d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"
473
+ })], -1)])]))], 8, st)) : $("", !0), e.showUserPanel ? (n(), he(ne, {
474
+ key: 1
475
+ }, {
476
+ items: x(() => [a(oe), a(se), a(ae), a(re), a(ie), a(ue), a(K, {
477
+ icon: "lucide:home",
478
+ onClick: v
479
+ }, {
480
+ default: x(() => [...u[2] || (u[2] = [z("主页", -1)])]),
481
+ _: 1
482
+ }), a(K, {
483
+ icon: "lucide:log-out",
484
+ danger: "",
485
+ onClick: k
486
+ }, {
487
+ default: x(() => [...u[3] || (u[3] = [z("退出登陆", -1)])]),
488
+ _: 1
489
+ })]),
490
+ _: 1
491
+ })) : $("", !0), a(le)])])]));
492
+ }
493
+ }), ut = /* @__PURE__ */ T(it, [["__scopeId", "data-v-ce7108a0"]]), lt = {
494
+ class: "layout-inner"
495
+ }, ct = {
496
+ key: 0,
497
+ class: "loading"
498
+ }, dt = "none", mt = "var(--huyooo-layout-dark-background)", ht = /* @__PURE__ */ P({
499
+ __name: "DefaultLayout",
500
+ props: {
501
+ menuType: {
502
+ default: "header"
503
+ },
504
+ showUserPanel: {
505
+ type: Boolean,
506
+ default: !0
507
+ },
508
+ showThemeToggle: {
509
+ type: Boolean,
510
+ default: !0
511
+ },
512
+ enableRoutePermission: {
513
+ type: Boolean,
514
+ default: !0
515
+ },
516
+ backgroundImage: {
517
+ default: ""
518
+ },
519
+ theme: {
520
+ default: void 0
521
+ }
522
+ },
523
+ setup(m) {
524
+ var k, M;
525
+ const e = m, {
526
+ appsData: c
527
+ } = N(), h = U(typeof window < "u" && ((M = (k = window.matchMedia) == null ? void 0 : k.call(window, "(prefers-color-scheme: dark)")) == null ? void 0 : M.matches));
528
+ function p() {
529
+ var t, s;
530
+ typeof window > "u" || (h.value = ((s = (t = window.matchMedia) == null ? void 0 : t.call(window, "(prefers-color-scheme: dark)")) == null ? void 0 : s.matches) ?? !1);
531
+ }
532
+ let d;
533
+ j(() => {
534
+ var s, u;
535
+ p();
536
+ const t = (s = window.matchMedia) == null ? void 0 : s.call(window, "(prefers-color-scheme: dark)");
537
+ (u = t == null ? void 0 : t.addEventListener) == null || u.call(t, "change", p), d = () => {
538
+ var A;
539
+ return (A = t == null ? void 0 : t.removeEventListener) == null ? void 0 : A.call(t, "change", p);
540
+ };
541
+ });
542
+ const f = B(() => {
543
+ var A, H;
544
+ const t = e.theme;
545
+ if (t && t !== "system") return t;
546
+ if (t === "system") return h.value ? "dark" : "light";
547
+ const s = _e.value;
548
+ if (s === "dark" || s === "light") return s;
549
+ if (s === "system") return h.value ? "dark" : "light";
550
+ const u = (H = (A = c.value) == null ? void 0 : A.brand) == null ? void 0 : H.theme;
551
+ return u === "dark" || u === "light" ? u : "light";
552
+ }), y = B(() => e.backgroundImage ? e.backgroundImage : f.value === "dark" ? mt : dt), C = B(() => {
553
+ const t = y.value;
554
+ return !t || t === "none" ? {
555
+ backgroundImage: "none",
556
+ backgroundColor: "transparent"
557
+ } : {
558
+ backgroundImage: t,
559
+ backgroundAttachment: "fixed"
560
+ };
561
+ });
562
+ V(f, (t) => {
563
+ typeof document > "u" || (t === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
564
+ }, {
565
+ immediate: !0
566
+ }), pe(() => {
567
+ d == null || d();
568
+ });
569
+ const v = e.enableRoutePermission ? Z().isChecking : U(!1);
570
+ return (t, s) => (n(), o("div", {
571
+ class: S(["layout", {
572
+ "layout--dark": f.value === "dark"
573
+ }]),
574
+ style: W(C.value)
575
+ }, [a(ut, {
576
+ "menu-type": e.menuType,
577
+ "show-user-panel": e.showUserPanel,
578
+ "show-theme-toggle": e.showThemeToggle,
579
+ theme: f.value
580
+ }, null, 8, ["menu-type", "show-user-panel", "show-theme-toggle", "theme"]), r("main", lt, [i(v) ? (n(), o("div", ct, [a(i(q), {
581
+ size: 40
582
+ })])) : G(t.$slots, "default", {
583
+ key: 1
584
+ }, void 0, !0)])], 6));
585
+ }
586
+ }), Zt = /* @__PURE__ */ T(ht, [["__scopeId", "data-v-692eaec7"]]), pt = /* @__PURE__ */ P({
587
+ __name: "Gradientbackground",
588
+ props: {
589
+ width: {
590
+ type: String,
591
+ default: "100%"
592
+ },
593
+ height: {
594
+ type: String,
595
+ default: "100%"
596
+ },
597
+ zIndex: {
598
+ type: String,
599
+ default: "-1"
600
+ },
601
+ top: {
602
+ type: String,
603
+ default: "10%"
604
+ },
605
+ left: {
606
+ type: String,
607
+ default: "0%"
608
+ },
609
+ right: {
610
+ type: String,
611
+ default: "auto"
612
+ },
613
+ blur: {
614
+ type: String,
615
+ default: "0px"
616
+ },
617
+ background: {
618
+ type: String,
619
+ required: !1,
620
+ default: () => "var(--huyooo-gradient-background)"
621
+ }
622
+ },
623
+ setup(m) {
624
+ const e = m, c = B(() => ({
625
+ pointerEvents: "none",
626
+ position: "absolute",
627
+ zIndex: e.zIndex,
628
+ width: e.width,
629
+ height: e.height,
630
+ filter: `blur(${e.blur})`
631
+ })), h = B(() => ({
632
+ width: "100%",
633
+ height: "100%",
634
+ background: e.background
635
+ }));
636
+ return (p, d) => (n(), o("div", {
637
+ class: "ellipsis",
638
+ style: W(c.value)
639
+ }, [r("div", {
640
+ class: "ellipsis-item",
641
+ style: W(h.value)
642
+ }, null, 4)], 4));
643
+ }
644
+ }), en = /* @__PURE__ */ T(pt, [["__scopeId", "data-v-64c41f65"]]), ft = {
645
+ class: "SvgIcon"
646
+ }, _t = ["href", "fill"], vt = /* @__PURE__ */ P({
647
+ __name: "SvgIcon",
648
+ props: {
649
+ prefix: {
650
+ type: String,
651
+ required: !1,
652
+ default: "icon"
653
+ },
654
+ name: {
655
+ type: String,
656
+ required: !0
657
+ },
658
+ color: {
659
+ type: String,
660
+ required: !1,
661
+ default: "currentColor"
662
+ }
663
+ },
664
+ setup(m) {
665
+ const e = m, c = B(() => `#${e.prefix ?? "icon"}-${e.name}`);
666
+ return (h, p) => (n(), o("svg", ft, [r("use", {
667
+ href: c.value,
668
+ fill: e.color
669
+ }, null, 8, _t)]));
670
+ }
671
+ }), tn = /* @__PURE__ */ T(vt, [["__scopeId", "data-v-9d0b08a0"]]), gt = {}, yt = {
672
+ class: "WidthContainer"
673
+ };
674
+ function kt(m, e) {
675
+ return n(), o("div", yt, [G(m.$slots, "default", {}, void 0, !0)]);
676
+ }
677
+ const nn = /* @__PURE__ */ T(gt, [["render", kt], ["__scopeId", "data-v-d06aac1f"]]);
678
+ export {
679
+ Xt as A,
680
+ Yt as C,
681
+ Zt as D,
682
+ en as G,
683
+ ut as H,
684
+ tn as S,
685
+ nn as W,
686
+ Ce as a,
687
+ Ze as b
688
+ };
@@ -0,0 +1 @@
1
+ export * from '@huyooo/analytics';
@@ -0,0 +1 @@
1
+ export * from "@huyooo/analytics";
package/dist/common.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, a as o, C as r, D as t, G as p, H as n, b as l, S as m, W as u } from "./WidthContainer-B5gW9ACv.js";
1
+ import { A as s, a as o, C as r, D as t, G as p, H as n, b as l, S as m, W as u } from "./WidthContainer-DSxG-FRN.js";
2
2
  import { C as d, a as f } from "./CollapseItem-DUzZA6tx.js";
3
3
  import { C as x, E as b } from "./CustomTable-BT-cnhLR.js";
4
4
  import { L } from "./Logo-D7fyXyB-.js";