@huyooo/ui 0.5.17 → 0.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuthkitAuthModal-CPyOF0SH.js → AuthkitAuthModal-BRKkQ2Px.js} +1 -1
- package/dist/{FeedbackItem-DGAsK3HZ.js → FeedbackItem-DJDUUJbB.js} +1 -1
- package/dist/{FeedbackModal-5C17AhkV.js → FeedbackModal-Df1Wiclk.js} +1 -1
- package/dist/Menu-ejsosUdV.js +118 -0
- package/dist/{MessageHandle-thVNUp0p.js → MessageHandle-De7eLBi_.js} +1 -1
- package/dist/UserAccountMenu-BNCGS_KR.js +613 -0
- package/dist/WidthContainer-chsOpHxt.js +528 -0
- package/dist/authkit.js +1 -1
- package/dist/common.d.ts +2 -0
- package/dist/common.js +17 -15
- package/dist/components/AppLayout.vue.d.ts +9 -0
- package/dist/components/AppSidebar.vue.d.ts +9 -0
- package/dist/components/Menu.vue.d.ts +8 -1
- package/dist/components/MenuItem.vue.d.ts +15 -1
- package/dist/feedback.js +2 -2
- package/dist/index.js +44 -43
- package/dist/message.js +1 -1
- package/dist/style.css +1 -1
- package/dist/user.js +6 -7
- package/package.json +1 -1
- package/dist/Menu-Cxo8Rpu3.js +0 -115
- package/dist/UserAccountMenu-DHozw36C.js +0 -40
- package/dist/UserPanel-B-gZUacS.js +0 -579
- package/dist/WidthContainer-zVThjFve.js +0 -389
package/dist/user.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { U as c } from "./UserAccountMenu-DHozw36C.js";
|
|
1
|
+
import { d as r, U as e, a as n, b as o, c as t, S as U } from "./UserAccountMenu-BNCGS_KR.js";
|
|
3
2
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
r as UserAccountMenu,
|
|
4
|
+
e as UserAvatar,
|
|
5
|
+
n as UserBasicInformation,
|
|
7
6
|
o as UserButton,
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
t as UserPanel,
|
|
8
|
+
U as UserSubscriptionBaseInformation
|
|
10
9
|
};
|
package/package.json
CHANGED
package/dist/Menu-Cxo8Rpu3.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, ref as L, createElementBlock as a, createCommentVNode as _, openBlock as n, normalizeClass as $, createBlock as s, createElementVNode as u, unref as I, toDisplayString as K, Fragment as h, renderList as C } from "vue";
|
|
2
|
-
import { Icon as S } from "@iconify/vue";
|
|
3
|
-
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const x = /* @__PURE__ */ B({
|
|
5
|
-
__name: "MenuItem",
|
|
6
|
-
props: {
|
|
7
|
-
hidden: {
|
|
8
|
-
type: Boolean,
|
|
9
|
-
required: !0
|
|
10
|
-
},
|
|
11
|
-
path: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: !0
|
|
14
|
-
},
|
|
15
|
-
icon: {
|
|
16
|
-
type: String,
|
|
17
|
-
required: !0
|
|
18
|
-
},
|
|
19
|
-
name: {
|
|
20
|
-
type: String,
|
|
21
|
-
required: !0
|
|
22
|
-
},
|
|
23
|
-
active: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
required: !0
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
setup(i) {
|
|
29
|
-
const t = i, c = L(!1);
|
|
30
|
-
function l() {
|
|
31
|
-
c.value = !0;
|
|
32
|
-
}
|
|
33
|
-
function r() {
|
|
34
|
-
c.value = !1;
|
|
35
|
-
}
|
|
36
|
-
return (d, p) => t.hidden ? _("", !0) : (n(), a("div", {
|
|
37
|
-
key: 0,
|
|
38
|
-
class: $(["List", {
|
|
39
|
-
Active: t.active,
|
|
40
|
-
Hover: c.value && !t.active
|
|
41
|
-
}]),
|
|
42
|
-
onMouseover: l,
|
|
43
|
-
onMouseout: r
|
|
44
|
-
}, [t.icon ? (n(), s(I(S), {
|
|
45
|
-
key: 0,
|
|
46
|
-
class: "icon",
|
|
47
|
-
icon: t.icon
|
|
48
|
-
}, null, 8, ["icon"])) : _("", !0), u("span", null, K(t.name), 1)], 34));
|
|
49
|
-
}
|
|
50
|
-
}), q = /* @__PURE__ */ A(x, [["__scopeId", "data-v-8c58ac0e"]]), E = {
|
|
51
|
-
class: "Menu"
|
|
52
|
-
}, H = {
|
|
53
|
-
class: "TitleContent"
|
|
54
|
-
}, N = {
|
|
55
|
-
class: "Title"
|
|
56
|
-
}, T = {
|
|
57
|
-
class: "MenuItem2"
|
|
58
|
-
}, V = /* @__PURE__ */ B({
|
|
59
|
-
__name: "Menu",
|
|
60
|
-
props: {
|
|
61
|
-
menus: {
|
|
62
|
-
type: Array,
|
|
63
|
-
required: !0
|
|
64
|
-
},
|
|
65
|
-
selectedKeys: {
|
|
66
|
-
type: Array,
|
|
67
|
-
required: !0
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
emits: ["update:selectedKeys", "change"],
|
|
71
|
-
setup(i, {
|
|
72
|
-
emit: t
|
|
73
|
-
}) {
|
|
74
|
-
const c = i, l = t;
|
|
75
|
-
function r(d, p) {
|
|
76
|
-
l("change", d, p);
|
|
77
|
-
}
|
|
78
|
-
return (d, p) => (n(), a("div", E, [(n(!0), a(h, null, C(c.menus, (e, v) => {
|
|
79
|
-
var y, m, f;
|
|
80
|
-
return n(), a("div", {
|
|
81
|
-
key: v,
|
|
82
|
-
class: "MenuList"
|
|
83
|
-
}, [e.children && e.children.length !== 0 ? (n(), a(h, {
|
|
84
|
-
key: 0
|
|
85
|
-
}, [u("span", H, [(y = e == null ? void 0 : e.meta) != null && y.icon ? (n(), s(I(S), {
|
|
86
|
-
key: 0,
|
|
87
|
-
class: "icon",
|
|
88
|
-
icon: e.meta.icon
|
|
89
|
-
}, null, 8, ["icon"])) : _("", !0), u("span", N, K(e.name), 1)]), u("span", T, [(n(!0), a(h, null, C(e.children, (o, k) => {
|
|
90
|
-
var M, g;
|
|
91
|
-
return n(), s(q, {
|
|
92
|
-
key: k,
|
|
93
|
-
hidden: ((M = o.meta) == null ? void 0 : M.hidden) || !1,
|
|
94
|
-
path: o.path,
|
|
95
|
-
icon: (g = o.meta) == null ? void 0 : g.icon,
|
|
96
|
-
name: o.name,
|
|
97
|
-
active: c.selectedKeys.includes(o.path),
|
|
98
|
-
onClick: (z) => r(o, k)
|
|
99
|
-
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
|
|
100
|
-
}), 128))])], 64)) : (n(), s(q, {
|
|
101
|
-
key: 1,
|
|
102
|
-
hidden: ((m = e.meta) == null ? void 0 : m.hidden) || !1,
|
|
103
|
-
path: e.path,
|
|
104
|
-
icon: (f = e.meta) == null ? void 0 : f.icon,
|
|
105
|
-
name: e.name,
|
|
106
|
-
active: c.selectedKeys.includes(e.path),
|
|
107
|
-
onClick: (o) => r(e, v)
|
|
108
|
-
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
|
|
109
|
-
}), 128))]));
|
|
110
|
-
}
|
|
111
|
-
}), j = /* @__PURE__ */ A(V, [["__scopeId", "data-v-d8d71d3e"]]);
|
|
112
|
-
export {
|
|
113
|
-
j as M,
|
|
114
|
-
q as a
|
|
115
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, createElementBlock as d, openBlock as m, createElementVNode as e, renderSlot as u, toDisplayString as r, unref as o, createVNode as p } from "vue";
|
|
2
|
-
import { Icon as f } from "@iconify/vue";
|
|
3
|
-
import { a as v } from "./useAuthkitUsersProfile-zbKT0W_h.js";
|
|
4
|
-
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const k = {
|
|
6
|
-
class: "UserAccountMenu"
|
|
7
|
-
}, w = {
|
|
8
|
-
class: "avatar"
|
|
9
|
-
}, A = {
|
|
10
|
-
class: "meta"
|
|
11
|
-
}, C = {
|
|
12
|
-
class: "name"
|
|
13
|
-
}, U = {
|
|
14
|
-
class: "email"
|
|
15
|
-
}, M = /* @__PURE__ */ _({
|
|
16
|
-
__name: "UserAccountMenu",
|
|
17
|
-
emits: ["arrowClick"],
|
|
18
|
-
setup(x, {
|
|
19
|
-
emit: n
|
|
20
|
-
}) {
|
|
21
|
-
const {
|
|
22
|
-
userProfile: t
|
|
23
|
-
} = v(), i = n;
|
|
24
|
-
function a() {
|
|
25
|
-
i("arrowClick");
|
|
26
|
-
}
|
|
27
|
-
return (l, B) => {
|
|
28
|
-
var s, c;
|
|
29
|
-
return m(), d("div", k, [e("div", w, [u(l.$slots, "avatar", {}, void 0, !0)]), e("div", A, [e("div", C, r(((s = o(t)) == null ? void 0 : s.nickname) || ""), 1), e("div", U, r(((c = o(t)) == null ? void 0 : c.email) || ""), 1)]), e("div", {
|
|
30
|
-
class: "arrow",
|
|
31
|
-
onClick: a
|
|
32
|
-
}, [p(o(f), {
|
|
33
|
-
icon: "lucide:chevrons-up-down"
|
|
34
|
-
})])]);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
}), S = /* @__PURE__ */ h(M, [["__scopeId", "data-v-b801e222"]]);
|
|
38
|
-
export {
|
|
39
|
-
S as U
|
|
40
|
-
};
|