@huyooo/ui 0.9.1 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ import { u as $e } from "./useUploadCos-D51-yXoX.js";
10
10
  import { _ as Ce, g as xe, i as qe } from "./plugin-vue_export-helper-LjDO2Zua.js";
11
11
  import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  import { a as Z, u as J } from "./useAuthkitUsersProfile-DkDg2EYG.js";
13
- import { M as Te } from "./Menu-H-LxepvQ.js";
13
+ import { M as Te } from "./Menu-DBM4qGP_.js";
14
14
  import { u as Re } from "./useAuthkitCreateAndUpdate-C7NaHnDj.js";
15
15
  import { u as se } from "./useAuthkitAppsAuthPageInfo-DZ53lPr0.js";
16
16
  import { Icon as Le } from "@iconify/vue";
@@ -10,7 +10,7 @@ import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { List as J, ListItem as T, ListItemMeta as L, Avatar as F, Button as P, Form as U, FormItem as b, Input as S, Link as M } from "@arco-design/web-vue";
11
11
  import { c as R } from "./apiClients-B0ARoiN3.js";
12
12
  import { u as Q, a as W } from "./useAuthkitUsersProfile-DkDg2EYG.js";
13
- import { S as B, g as X, h as Y } from "./AuthkitAuthModal-BJ_CtJU_.js";
13
+ import { S as B, g as X, h as Y } from "./AuthkitAuthModal-DTp9ezGF.js";
14
14
  const Z = {
15
15
  class: "header"
16
16
  }, ee = ["href"], te = {
@@ -10,7 +10,7 @@ import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  /* empty css */
11
11
  import { u as Z } from "./useUploadCos-D51-yXoX.js";
12
12
  import { g as A } from "./apiClients-B0ARoiN3.js";
13
- import "./FeedbackModal-BGsTCUvw.js";
13
+ import "./FeedbackModal-CVQQ2O8N.js";
14
14
  import { Icon as Y } from "@iconify/vue";
15
15
  const H = f({
16
16
  name: "IconDown",
@@ -3,7 +3,7 @@
3
3
  /* empty css */
4
4
  import { defineComponent as U, createElementBlock as _, openBlock as o, normalizeStyle as W, normalizeClass as ce, createElementVNode as F, computed as A, createBlock as g, unref as a, withCtx as r, createVNode as u, createCommentVNode as B, Fragment as z, createTextVNode as x, toDisplayString as L, ref as y, onUnmounted as Ie, h as ae, renderList as Q, nextTick as P } from "vue";
5
5
  import { Space as pe, Image as fe, Avatar as me, Descriptions as Re, DescriptionsItem as H, Tag as j, Spin as $e, Button as X, Form as Fe, FormItem as T, Input as Be, Select as le, Option as ne, Textarea as Le, Message as Ue, Breadcrumb as Ve, BreadcrumbItem as se, Modal as ze } from "@arco-design/web-vue";
6
- import { M as qe } from "./Menu-H-LxepvQ.js";
6
+ import { M as qe } from "./Menu-DBM4qGP_.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
@@ -0,0 +1,167 @@
1
+ import { defineComponent as $, createElementBlock as d, createCommentVNode as m, openBlock as u, normalizeClass as k, createBlock as h, createElementVNode as i, unref as y, toDisplayString as A, ref as D, watch as B, Fragment as g, renderList as M, createVNode as E, Transition as W, withCtx as z, withDirectives as F, vShow as G } from "vue";
2
+ import { Icon as C } from "@iconify/vue";
3
+ import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const L = {
5
+ class: "menu-item__name"
6
+ }, O = /* @__PURE__ */ $({
7
+ __name: "MenuItem",
8
+ props: {
9
+ hidden: {
10
+ type: Boolean,
11
+ default: !1
12
+ },
13
+ path: {
14
+ default: ""
15
+ },
16
+ icon: {
17
+ default: ""
18
+ },
19
+ name: {},
20
+ active: {
21
+ type: Boolean,
22
+ default: !1
23
+ }
24
+ },
25
+ emits: ["click"],
26
+ setup(f, {
27
+ emit: v
28
+ }) {
29
+ const t = f, p = v;
30
+ return (s, l) => t.hidden ? m("", !0) : (u(), d("div", {
31
+ key: 0,
32
+ class: k(["menu-item", {
33
+ "menu-item--active": t.active
34
+ }]),
35
+ onClick: l[0] || (l[0] = (w) => p("click"))
36
+ }, [t.icon ? (u(), h(y(C), {
37
+ key: 0,
38
+ class: "menu-item__icon",
39
+ icon: t.icon,
40
+ width: 16
41
+ }, null, 8, ["icon"])) : m("", !0), i("span", L, A(t.name), 1)], 2));
42
+ }
43
+ }), I = /* @__PURE__ */ N(O, [["__scopeId", "data-v-6d3265a2"]]), T = {
44
+ class: "menu"
45
+ }, j = ["onClick"], q = {
46
+ class: "menu-group__header-content"
47
+ }, H = {
48
+ class: "menu-group__title"
49
+ }, J = {
50
+ class: "menu-group__children"
51
+ }, P = /* @__PURE__ */ $({
52
+ __name: "Menu",
53
+ props: {
54
+ menus: {
55
+ default: () => []
56
+ },
57
+ selectedKeys: {
58
+ default: () => []
59
+ },
60
+ defaultExpandAll: {
61
+ type: Boolean,
62
+ default: !0
63
+ },
64
+ accordion: {
65
+ type: Boolean,
66
+ default: !1
67
+ }
68
+ },
69
+ emits: ["update:selectedKeys", "change"],
70
+ setup(f, {
71
+ emit: v
72
+ }) {
73
+ const t = f, p = v, s = D([]);
74
+ function l(n, a) {
75
+ var e, c;
76
+ return !!((e = n.children) != null && e.some((r) => a.includes(r.path)) || (c = n.children) != null && c.some((r) => a.some((_) => _.startsWith(r.path + "/"))) || n.path && a.some((r) => r.startsWith(n.path + "/")));
77
+ }
78
+ function w() {
79
+ if (t.defaultExpandAll && !t.accordion)
80
+ s.value = t.menus.filter((n) => n.children && n.children.length > 0).map((n, a) => n.path || a.toString());
81
+ else {
82
+ s.value = [];
83
+ for (let n = 0; n < t.menus.length; n++) {
84
+ const a = t.menus[n];
85
+ if (l(a, t.selectedKeys) && (s.value.push(a.path || n.toString()), t.accordion))
86
+ break;
87
+ }
88
+ }
89
+ }
90
+ function V(n) {
91
+ const a = s.value.indexOf(n);
92
+ a > -1 ? s.value.splice(a, 1) : t.accordion ? s.value = [n] : s.value.push(n);
93
+ }
94
+ function x(n) {
95
+ p("change", n), p("update:selectedKeys", [n.path]);
96
+ }
97
+ function b(n) {
98
+ return l(n, t.selectedKeys);
99
+ }
100
+ return B(() => t.menus, w, {
101
+ immediate: !0,
102
+ deep: !0
103
+ }), B(() => t.selectedKeys, (n) => {
104
+ for (let a = 0; a < t.menus.length; a++) {
105
+ const e = t.menus[a], c = e.path || a.toString();
106
+ if (l(e, n)) {
107
+ s.value.includes(c) || (t.accordion ? s.value = [c] : s.value.push(c));
108
+ break;
109
+ }
110
+ }
111
+ }, {
112
+ deep: !0
113
+ }), (n, a) => (u(), d("div", T, [(u(!0), d(g, null, M(t.menus, (e, c) => {
114
+ var r, _, K;
115
+ return u(), d("div", {
116
+ key: e.path || c,
117
+ class: "menu-group"
118
+ }, [e.children && e.children.length > 0 ? (u(), d(g, {
119
+ key: 0
120
+ }, [i("div", {
121
+ class: k(["menu-group__header", {
122
+ "menu-group__header--active": b(e)
123
+ }]),
124
+ onClick: (o) => V(e.path || c.toString())
125
+ }, [i("div", q, [(r = e == null ? void 0 : e.meta) != null && r.icon || e != null && e.icon ? (u(), h(y(C), {
126
+ key: 0,
127
+ class: "menu-group__icon",
128
+ icon: ((_ = e == null ? void 0 : e.meta) == null ? void 0 : _.icon) || (e == null ? void 0 : e.icon),
129
+ width: 16
130
+ }, null, 8, ["icon"])) : m("", !0), i("span", H, A(e.name), 1)]), E(y(C), {
131
+ class: k(["menu-group__arrow", {
132
+ "menu-group__arrow--expanded": s.value.includes(e.path || c.toString())
133
+ }]),
134
+ icon: "mingcute:down-line",
135
+ width: 14
136
+ }, null, 8, ["class"])], 10, j), E(W, {
137
+ name: "collapse"
138
+ }, {
139
+ default: z(() => [F(i("div", J, [(u(!0), d(g, null, M(e.children, (o) => {
140
+ var S;
141
+ return u(), h(I, {
142
+ key: o.path,
143
+ hidden: o == null ? void 0 : o.hidden,
144
+ path: o.path,
145
+ icon: ((S = o == null ? void 0 : o.meta) == null ? void 0 : S.icon) || (o == null ? void 0 : o.icon),
146
+ name: o.name,
147
+ active: t.selectedKeys.includes(o.path),
148
+ onClick: (Q) => x(o)
149
+ }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
150
+ }), 128))], 512), [[G, s.value.includes(e.path || c.toString())]])]),
151
+ _: 2
152
+ }, 1024)], 64)) : (u(), h(I, {
153
+ key: 1,
154
+ hidden: e == null ? void 0 : e.hidden,
155
+ path: e.path,
156
+ icon: ((K = e == null ? void 0 : e.meta) == null ? void 0 : K.icon) || (e == null ? void 0 : e.icon),
157
+ name: e.name,
158
+ active: t.selectedKeys.includes(e.path),
159
+ onClick: (o) => x(e)
160
+ }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
161
+ }), 128))]));
162
+ }
163
+ }), Y = /* @__PURE__ */ N(P, [["__scopeId", "data-v-5219228d"]]);
164
+ export {
165
+ Y as M,
166
+ I as a
167
+ };
@@ -11,7 +11,7 @@ import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  import { useIntersectionObserver as ue } from "@vueuse/core";
12
12
  import { Icon as de } from "@iconify/vue";
13
13
  import { u as ce } from "./useAuthkitCreateAndUpdate-C7NaHnDj.js";
14
- import { M as fe } from "./Menu-H-LxepvQ.js";
14
+ import { M as fe } from "./Menu-DBM4qGP_.js";
15
15
  function Z(s, l = {}) {
16
16
  const {
17
17
  pageSize: t = 10,
@@ -2,7 +2,7 @@ import { defineComponent as v, ref as p, createElementBlock as l, createCommentV
2
2
  import { Icon as D } from "@iconify/vue";
3
3
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { o as $ } from "./apiClients-B0ARoiN3.js";
5
- import { D as x } from "./MessageHandle-CPdHbaTw.js";
5
+ import { D as x } from "./MessageHandle-DpBexctb.js";
6
6
  const E = /* @__PURE__ */ v({
7
7
  __name: "MessageMenuItem",
8
8
  props: {
@@ -1,15 +1,15 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { c as De, A as Ve } from "./AuthkitAuthModal-BJ_CtJU_.js";
4
+ import { c as De, A as Ve } from "./AuthkitAuthModal-DTp9ezGF.js";
5
5
  import { defineComponent as C, createElementBlock as g, openBlock as s, normalizeStyle as ie, normalizeClass as se, createElementVNode as p, computed as P, createBlock as d, createCommentVNode as m, createVNode as c, unref as o, withCtx as l, createTextVNode as y, toDisplayString as S, mergeModels as D, useModel as re, renderSlot as ae, ref as f, Fragment as Re } from "vue";
6
6
  import { Tag as ze, Button as le, Avatar as ue, Dropdown as Ne, Divider as ce, Doption as h } from "@arco-design/web-vue";
7
7
  import { S as Le } from "./PaySubscriptions-BnV62kZT.js";
8
8
  import { R as je } from "./ReferrerReferees-B2rVAc7y.js";
9
9
  import { a as N, u as He } from "./useAuthkitUsersProfile-DkDg2EYG.js";
10
10
  import { u as Fe, g as oe } from "./apiClients-B0ARoiN3.js";
11
- import { d as qe } from "./FeedbackModal-BGsTCUvw.js";
12
- import { M as Ee } from "./MessageHandle-CPdHbaTw.js";
11
+ import { d as qe } from "./FeedbackModal-CVQQ2O8N.js";
12
+ import { M as Ee } from "./MessageHandle-DpBexctb.js";
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -10,12 +10,12 @@ import "./useUploadCos-D51-yXoX.js";
10
10
  import { useRouter as j, useRoute as J } from "vue-router";
11
11
  /* empty css */
12
12
  /* empty css */
13
- import { d as re, c as Q } from "./UserAccountMenu-Bzk__fTW.js";
13
+ import { d as re, c as Q } from "./UserAccountMenu-CAG_zxWb.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  /* empty css */
17
- import "./AuthkitAuthModal-BJ_CtJU_.js";
18
- import { M as ce } from "./Menu-H-LxepvQ.js";
17
+ import "./AuthkitAuthModal-DTp9ezGF.js";
18
+ import { M as ce } from "./Menu-DBM4qGP_.js";
19
19
  import "./CollapseItem-Cw1vcdLu.js";
20
20
  /* empty css */
21
21
  import "./CustomTable-BCOwLyRJ.js";
package/dist/authkit.js CHANGED
@@ -1,5 +1,5 @@
1
- import { A as i, a as u, c as s, b as h, n as A, E as e, k, l as o, _ as r, O as n, _ as d, O as p, f as m, o as P, P as f, j as l, R as S, S as g, i as O, m as c, d as w, e as U, g as I, h as b, p as x, u as C } from "./AuthkitAuthModal-BJ_CtJU_.js";
2
- import { A as y, a as B, c as R, d as V, b as v, b as L, f as M, e as _ } from "./AuthkitSignInPhone-Ba8aCNAE.js";
1
+ import { A as i, a as u, c as s, b as h, n as A, E as e, k, l as o, _ as r, O as n, _ as d, O as p, f as m, o as P, P as f, j as l, R as S, S as g, i as O, m as c, d as w, e as U, g as I, h as b, p as x, u as C } from "./AuthkitAuthModal-DTp9ezGF.js";
2
+ import { A as y, a as B, c as R, d as V, b as v, b as L, f as M, e as _ } from "./AuthkitSignInPhone-BtF8EKsU.js";
3
3
  import { u as z } from "./useAuthkitAppsAuthPageInfo-DZ53lPr0.js";
4
4
  import { u as T, a as q } from "./useAuthkitUsersProfile-DkDg2EYG.js";
5
5
  import { u as F } from "./apiClients-B0ARoiN3.js";
package/dist/common.js CHANGED
@@ -1,7 +1,7 @@
1
- import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-C5z0Afym.js";
1
+ import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-_vCYXka6.js";
2
2
  import { C as i, a as f } from "./CollapseItem-Cw1vcdLu.js";
3
3
  import { C as x, E as H } from "./CustomTable-BCOwLyRJ.js";
4
- import { M, a as g } from "./Menu-H-LxepvQ.js";
4
+ import { M, a as g } from "./Menu-DBM4qGP_.js";
5
5
  export {
6
6
  s as AppLayout,
7
7
  o as AppSidebar,
package/dist/feedback.js CHANGED
@@ -1,6 +1,6 @@
1
- import { B as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-BGsTCUvw.js";
1
+ import { B as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-CVQQ2O8N.js";
2
2
  import { C as r } from "./Clipboard-0N-MKzqm.js";
3
- import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-BKUCH2aW.js";
3
+ import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-Btw2or6g.js";
4
4
  export {
5
5
  r as Clipboard,
6
6
  b as FeedbackBubbleEnd,
package/dist/index.js CHANGED
@@ -9,23 +9,23 @@ import { u as b3 } from "./useTableHandle-DkqiT-qL.js";
9
9
  import { n as p2, h as I, U as f2, i as t2, V as h2, j as q, H as K, k as u2, v as _2 } from "./useSEO-DxAohN0h.js";
10
10
  import { b as D3, f as P3, g as T3, u as O3, a as B3, c as I3, e as $3, d as N3, w as W3 } from "./useSEO-DxAohN0h.js";
11
11
  import { u as z3 } from "./useUploadCos-D51-yXoX.js";
12
- import { A as q3, a as K3, c as J3, b as Q3, n as X3, E as Y3, k as e4, l as t4, _ as o4, O as s4, _ as a4, O as i4, f as n4, o as r4, P as c4, j as l4, R as C4, S as d4, i as p4, m as f4, d as h4, e as u4, g as _4, h as g4, p as m4, u as L4 } from "./AuthkitAuthModal-BJ_CtJU_.js";
13
- import { A as w4, a as F4, c as M4, d as k4, b as v4, b as x4, f as H4, e as Z4 } from "./AuthkitSignInPhone-Ba8aCNAE.js";
14
- import { I as E4, A as U4, C as A4, _ as S4, a as b4, D as G4, E as D4, b as P4, M as T4, c as O4, N as B4, d as I4, e as $4 } from "./MessageHandle-CPdHbaTw.js";
15
- import { M as W4, a as R4, _ as z4 } from "./MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DQyIH-Pz.js";
16
- import { B as q4, a as K4, F as J4, b as Q4, c as X4, d as Y4, R as e6 } from "./FeedbackModal-BGsTCUvw.js";
12
+ import { A as q3, a as K3, c as J3, b as Q3, n as X3, E as Y3, k as e4, l as t4, _ as o4, O as s4, _ as a4, O as i4, f as n4, o as r4, P as c4, j as l4, R as C4, S as d4, i as p4, m as f4, d as h4, e as u4, g as _4, h as g4, p as m4, u as L4 } from "./AuthkitAuthModal-DTp9ezGF.js";
13
+ import { A as w4, a as F4, c as M4, d as k4, b as v4, b as x4, f as H4, e as Z4 } from "./AuthkitSignInPhone-BtF8EKsU.js";
14
+ import { I as E4, A as U4, C as A4, _ as S4, a as b4, D as G4, E as D4, b as P4, M as T4, c as O4, N as B4, d as I4, e as $4 } from "./MessageHandle-DpBexctb.js";
15
+ import { M as W4, a as R4, _ as z4 } from "./MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DsBT6Bms.js";
16
+ import { B as q4, a as K4, F as J4, b as Q4, c as X4, d as Y4, R as e6 } from "./FeedbackModal-CVQQ2O8N.js";
17
17
  import { C as o6 } from "./Clipboard-0N-MKzqm.js";
18
- import { F as a6, a as i6, c as n6, b as r6, d as c6 } from "./FeedbackItem-BKUCH2aW.js";
18
+ import { F as a6, a as i6, c as n6, b as r6, d as c6 } from "./FeedbackItem-Btw2or6g.js";
19
19
  import { L as C6, a as d6, b as p6, c as f6, B as h6, C as u6, d as _6, e as g6, x as m6, y as L6, f as y6, g as w6, z as F6, h as M6, i as k6, j as v6, k as x6, l as H6, m as Z6, n as V6, D as E6, o as U6, p as A6, q as S6, r as b6, s as G6, T as D6, t as P6, A as T6, u as O6, v as B6, w as I6 } from "./LandingPageSectionTabs-DYNXKElT.js";
20
20
  import { L as N6, a as W6, b as R6, c as z6, D as j6, d as q6, e as K6, f as J6, g as Q6, h as X6, i as Y6, j as e7, k as t7, l as o7, m as s7, n as a7 } from "./LandingPageSectionHeader-BU7Qtxaj.js";
21
- import { A as n7, a as r7, C as c7, D as l7, G as C7, H as d7, b as p7, L as f7, S as h7, W as u7 } from "./WidthContainer-C5z0Afym.js";
21
+ import { A as n7, a as r7, C as c7, D as l7, G as C7, H as d7, b as p7, L as f7, S as h7, W as u7 } from "./WidthContainer-_vCYXka6.js";
22
22
  import { C as g7, a as m7 } from "./CollapseItem-Cw1vcdLu.js";
23
23
  import { C as y7, E as w7 } from "./CustomTable-BCOwLyRJ.js";
24
- import { M as M7, a as k7 } from "./Menu-H-LxepvQ.js";
24
+ import { M as M7, a as k7 } from "./Menu-DBM4qGP_.js";
25
25
  import { S as x7 } from "./PaySubscriptions-BnV62kZT.js";
26
26
  import { R as Z7 } from "./ReferrerReferees-B2rVAc7y.js";
27
27
  import { _ as E7 } from "./Upload.vue_vue_type_script_setup_true_lang-CzOKd9iz.js";
28
- import { d as A7, U as S7, a as b7, b as G7, c as D7, S as P7 } from "./UserAccountMenu-Bzk__fTW.js";
28
+ import { d as A7, U as S7, a as b7, b as G7, c as D7, S as P7 } from "./UserAccountMenu-CAG_zxWb.js";
29
29
  import { defineComponent as V, computed as U, createElementBlock as L, openBlock as g, normalizeStyle as g2, normalizeClass as o2, createElementVNode as d, createCommentVNode as x, toDisplayString as k, createVNode as Z, unref as H, createTextVNode as s2, withModifiers as a2, renderSlot as m2, withCtx as W, Fragment as T, renderList as O, createBlock as G, onMounted as i2, ref as $, watch as L2, onUnmounted as y2, withDirectives as w2, createStaticVNode as F2, vShow as M2 } from "vue";
30
30
  import { Icon as A } from "@iconify/vue";
31
31
  import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
package/dist/message.js CHANGED
@@ -1,5 +1,5 @@
1
- import { I as e, A as i, C as t, _ as o, a as g, D as M, E as n, b as f, M as c, c as N, N as l, d as r, e as m } from "./MessageHandle-CPdHbaTw.js";
2
- import { M as u, a as D, _ as C } from "./MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DQyIH-Pz.js";
1
+ import { I as e, A as i, C as t, _ as o, a as g, D as M, E as n, b as f, M as c, c as N, N as l, d as r, e as m } from "./MessageHandle-DpBexctb.js";
2
+ import { M as u, a as D, _ as C } from "./MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DsBT6Bms.js";
3
3
  import { u as d } from "./useMessageNotifications-BhTNNEib.js";
4
4
  export {
5
5
  e as InfiniteLoading,