@huyooo/ui 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,276 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ import "./index-D3Kp6R4z.js";
5
+ /* empty css */
6
+ /* empty css */
7
+ /* empty css */
8
+ import { defineComponent as j, ref as q, computed as _, onMounted as Y, nextTick as A, watch as Z, onBeforeUnmount as I, openBlock as o, createElementBlock as r, normalizeStyle as x, normalizeClass as w, renderSlot as P, useModel as L, createVNode as z, unref as u, withCtx as K, createElementVNode as v, createBlock as W, createCommentVNode as y, Fragment as m, renderList as E, toDisplayString as N, createTextVNode as ee, mergeModels as T, useSlots as te } from "vue";
9
+ import { Spin as ne, Checkbox as V, Tooltip as ie, Empty as le, Pagination as ae } from "@arco-design/web-vue";
10
+ import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ import { g as S, a as B } from "./index-D56hUMeD.js";
12
+ const oe = /* @__PURE__ */ j({
13
+ __name: "Ellipsis",
14
+ props: {
15
+ open: {
16
+ type: Boolean,
17
+ required: !1,
18
+ default: () => !0
19
+ }
20
+ },
21
+ setup(h) {
22
+ const g = h, t = q(null), f = q(0), d = _(() => {
23
+ var C, k;
24
+ if (!g.open || f.value === 0)
25
+ return {};
26
+ const s = (k = (C = t.value) == null ? void 0 : C.parentElement) == null ? void 0 : k.style.width;
27
+ return s && s !== "auto" ? {
28
+ width: s
29
+ } : {
30
+ width: `${f.value}px`
31
+ };
32
+ });
33
+ function p() {
34
+ t.value && g.open && A(() => {
35
+ t.value && (f.value = t.value.clientWidth);
36
+ });
37
+ }
38
+ function c() {
39
+ p();
40
+ }
41
+ return Y(() => {
42
+ g.open && A(() => {
43
+ p(), window.addEventListener("resize", c);
44
+ });
45
+ }), Z(() => g.open, (s) => {
46
+ s ? (p(), window.addEventListener("resize", c)) : window.removeEventListener("resize", c);
47
+ }), I(() => {
48
+ window.removeEventListener("resize", c);
49
+ }), (s, C) => (o(), r("div", {
50
+ ref_key: "ellipsisContainer",
51
+ ref: t,
52
+ class: w({
53
+ ellipsis: h.open
54
+ }),
55
+ style: x(h.open ? d.value : {})
56
+ }, [P(s.$slots, "default", {}, void 0, !0)], 6));
57
+ }
58
+ }), se = /* @__PURE__ */ R(oe, [["__scopeId", "data-v-4874d041"]]), re = {
59
+ class: "CubeTableCom"
60
+ }, de = {
61
+ class: "tableContain"
62
+ }, ue = {
63
+ class: "table-header"
64
+ }, ce = {
65
+ key: 0,
66
+ class: "header-cell checkbox-cell"
67
+ }, pe = {
68
+ class: "table-body"
69
+ }, fe = ["onMouseenter", "onMouseleave"], he = {
70
+ key: 0,
71
+ class: "contain"
72
+ }, ve = {
73
+ class: "pagination"
74
+ }, ge = /* @__PURE__ */ j({
75
+ __name: "CustomTable",
76
+ props: /* @__PURE__ */ T({
77
+ loading: {
78
+ type: Boolean,
79
+ required: !1,
80
+ default: () => !1
81
+ },
82
+ bordered: {
83
+ type: Boolean,
84
+ required: !1,
85
+ default: () => !0
86
+ },
87
+ data: {
88
+ type: Array,
89
+ required: !0
90
+ },
91
+ pagination: {
92
+ type: Object,
93
+ required: !1,
94
+ default: () => null
95
+ },
96
+ columns: {
97
+ type: Array,
98
+ required: !0
99
+ },
100
+ /** 行选择配置 */
101
+ rowSelection: {
102
+ type: Object,
103
+ required: !1,
104
+ default: void 0
105
+ },
106
+ /** 行数据的唯一标识字段,默认 'id' */
107
+ rowKey: {
108
+ type: String,
109
+ required: !1,
110
+ default: "id"
111
+ }
112
+ }, {
113
+ selectedKeys: {
114
+ default: () => []
115
+ },
116
+ selectedKeysModifiers: {},
117
+ activeKey: {
118
+ default: -1
119
+ },
120
+ activeKeyModifiers: {}
121
+ }),
122
+ emits: /* @__PURE__ */ T(["mouseenter", "mouseleave", "pageChange", "pageSizeChange"], ["update:selectedKeys", "update:activeKey"]),
123
+ setup(h, {
124
+ emit: g
125
+ }) {
126
+ const t = h, f = g, d = L(h, "selectedKeys"), p = L(h, "activeKey");
127
+ function c(e, a) {
128
+ return e[t.rowKey] ?? String(a);
129
+ }
130
+ function s(e, a) {
131
+ const n = c(e, a);
132
+ return d.value.includes(n);
133
+ }
134
+ const C = _(() => t.data.length === 0 ? !1 : t.data.every((e, a) => s(e, a))), k = _(() => {
135
+ if (t.data.length === 0) return !1;
136
+ const e = t.data.filter((a, n) => s(a, n)).length;
137
+ return e > 0 && e < t.data.length;
138
+ });
139
+ function H(e, a, n) {
140
+ const i = c(e, a);
141
+ n ? d.value.includes(i) || (d.value = [...d.value, i]) : d.value = d.value.filter((l) => l !== i);
142
+ }
143
+ function O(e) {
144
+ if (Array.isArray(e) ? e.length > 0 : e) {
145
+ const n = t.data.map((l, b) => c(l, b)), i = /* @__PURE__ */ new Set([...d.value, ...n]);
146
+ d.value = Array.from(i);
147
+ } else {
148
+ const n = new Set(t.data.map((i, l) => c(i, l)));
149
+ d.value = d.value.filter((i) => !n.has(i));
150
+ }
151
+ }
152
+ const D = _(() => {
153
+ const e = t.columns.map((a) => a.width ? `${a.width}px` : a.minWidth ? `minmax(${a.minWidth}px, 1fr)` : "minmax(120px, 1fr)");
154
+ return t.rowSelection && e.unshift("48px"), e.join(" ");
155
+ }), F = _(() => `${t.columns.reduce((a, n) => {
156
+ const i = Number(n.width || n.minWidth || 120);
157
+ return a + i;
158
+ }, t.rowSelection ? 48 : 0)}px`);
159
+ function M(e) {
160
+ const a = {};
161
+ return e.maxWidth && (a.maxWidth = `${e.maxWidth}px`), a;
162
+ }
163
+ function J(e) {
164
+ f("pageChange", e);
165
+ }
166
+ function U(e) {
167
+ f("pageSizeChange", e);
168
+ }
169
+ function G(e) {
170
+ const a = te();
171
+ return e ? !!a[e] : !1;
172
+ }
173
+ function $(e) {
174
+ return typeof e.cellClassName != "string" ? !1 : e.cellClassName.split(/\s+/).includes("catalog-cell-wrap");
175
+ }
176
+ function Q(e) {
177
+ p.value = e, f("mouseenter", e);
178
+ }
179
+ function X(e) {
180
+ p.value = -1, f("mouseleave", e);
181
+ }
182
+ return (e, a) => (o(), r("div", re, [z(u(ne), {
183
+ loading: t.loading,
184
+ tip: "数据加载中"
185
+ }, {
186
+ default: K(() => [v("div", de, [v("div", {
187
+ class: "flex-table",
188
+ style: x({
189
+ "grid-template-columns": D.value,
190
+ "min-width": F.value
191
+ })
192
+ }, [v("div", ue, [t.rowSelection ? (o(), r("div", ce, [t.rowSelection.showCheckedAll !== !1 ? (o(), W(u(V), {
193
+ key: 0,
194
+ "model-value": C.value,
195
+ indeterminate: k.value,
196
+ onChange: O
197
+ }, null, 8, ["model-value", "indeterminate"])) : y("", !0)])) : y("", !0), (o(!0), r(m, null, E(t.columns, (n, i) => (o(), r("div", {
198
+ key: i,
199
+ class: w(["header-cell", {
200
+ fixed: n.fixed,
201
+ fixedBackground: n.fixed,
202
+ lastBorder: i === t.columns.length - 1
203
+ }]),
204
+ style: x(M(n))
205
+ }, N(n.title), 7))), 128))]), v("div", pe, [(o(!0), r(m, null, E(t.data, (n, i) => (o(), r("div", {
206
+ key: c(n, i),
207
+ class: w(["table-row", {
208
+ trListHover: i === p.value,
209
+ "row-selected": s(n, i)
210
+ }]),
211
+ onMouseenter: (l) => Q(i),
212
+ onMouseleave: (l) => X(i)
213
+ }, [t.rowSelection ? (o(), r("div", {
214
+ key: 0,
215
+ class: w(["body-cell checkbox-cell", {
216
+ trListHover: i === p.value,
217
+ "row-selected": s(n, i)
218
+ }])
219
+ }, [z(u(V), {
220
+ "model-value": s(n, i),
221
+ onChange: (l) => H(n, i, l)
222
+ }, null, 8, ["model-value", "onChange"])], 2)) : y("", !0), (o(!0), r(m, null, E(t.columns, (l, b) => (o(), r("div", {
223
+ key: b,
224
+ class: w(["body-cell", {
225
+ [l.cellClassName]: typeof l.cellClassName == "string",
226
+ fixed: l.fixed,
227
+ trListHover: i === p.value,
228
+ "row-selected": s(n, i),
229
+ lastBorder: b === t.columns.length - 1
230
+ }]),
231
+ style: x(M(l))
232
+ }, [v("div", {
233
+ class: w(["body-cell-inner", {
234
+ "body-cell-inner--wrap": $(l)
235
+ }])
236
+ }, [z(se, {
237
+ open: !!l.ellipsis && !$(l)
238
+ }, {
239
+ default: K(() => [G(l.slotName) ? P(e.$slots, l.slotName, {
240
+ key: 0,
241
+ record: n
242
+ }, void 0, !0) : (o(), r(m, {
243
+ key: 1
244
+ }, [l.dataIndex ? (o(), r(m, {
245
+ key: 0
246
+ }, [l.tooltip ? (o(), W(u(ie), {
247
+ key: 0,
248
+ content: u(S)(u(B)(n, l.dataIndex)),
249
+ position: "bottom"
250
+ }, {
251
+ default: K(() => [v("span", null, N(u(S)(u(B)(n, l.dataIndex))), 1)]),
252
+ _: 2
253
+ }, 1032, ["content"])) : (o(), r(m, {
254
+ key: 1
255
+ }, [ee(N(u(S)(u(B)(n, l.dataIndex))), 1)], 64))], 64)) : y("", !0)], 64))]),
256
+ _: 2
257
+ }, 1032, ["open"])], 2)], 6))), 128))], 42, fe))), 128))])], 4), t.data.length === 0 ? (o(), r("div", he, [z(u(le))])) : y("", !0)]), v("div", ve, [t.pagination ? (o(), W(u(ae), {
258
+ key: 0,
259
+ current: t.pagination.current,
260
+ total: t.pagination.total,
261
+ "page-size": t.pagination.pageSize,
262
+ "show-total": t.pagination.showTotal,
263
+ "show-jumper": t.pagination.showJumper,
264
+ "show-page-size": t.pagination.showPageSize,
265
+ "page-size-options": t.pagination.pageSizeOptions,
266
+ onChange: J,
267
+ onPageSizeChange: U
268
+ }, null, 8, ["current", "total", "page-size", "show-total", "show-jumper", "show-page-size", "page-size-options"])) : y("", !0)])]),
269
+ _: 3
270
+ }, 8, ["loading"])]));
271
+ }
272
+ }), Ee = /* @__PURE__ */ R(ge, [["__scopeId", "data-v-66635fad"]]);
273
+ export {
274
+ Ee as C,
275
+ se as E
276
+ };
@@ -11,7 +11,7 @@ import { ref as g, computed as A, onUnmounted as Ae, defineComponent as It, open
11
11
  import { Message as S, Modal as We, Button as k, Popconfirm as ae, Tabs as Nt, TabPane as ne, Spin as me, Empty as Te, Progress as Ot, Tag as Q, Tooltip as Wt } from "@arco-design/web-vue";
12
12
  import { u as Tt, b as zt, a as At } from "./useBillingStatusOptions-B7xLU3fs.js";
13
13
  import { u as Et } from "./useAuthkitCreateAndUpdate-oo9517Gj.js";
14
- import { C as fe } from "./CustomTable-CCOQxfxr.js";
14
+ import { C as fe } from "./CustomTable-nsxN4Ja4.js";
15
15
  import { C as Lt } from "./Clipboard-Bo7gdpR6.js";
16
16
  import { _ as Rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  function ze() {
@@ -5,7 +5,7 @@ import "./apiClients-DrGX2iJy.js";
5
5
  import { defineComponent as z, computed as k, onMounted as te, onUnmounted as Pe, openBlock as t, createElementBlock as s, createElementVNode as i, unref as e, createBlock as H, toDisplayString as r, createVNode as v, withCtx as b, createTextVNode as L, resolveDirective as me, withDirectives as fe, normalizeClass as B, Fragment as I, renderList as w, createCommentVNode as p } from "vue";
6
6
  import { Spin as ne, Button as R, Message as Z } from "@arco-design/web-vue";
7
7
  import { useRoute as pe, useRouter as ve } from "vue-router";
8
- import { b as ye } from "./PaySubscriptions-C3KiTsQS.js";
8
+ import { b as ye } from "./PaySubscriptions-lWnEioX5.js";
9
9
  import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { L as he, a as ke } from "./LandingPageFAQ-CZJXvor9.js";
11
11
  import { L as be } from "./LandingPageSectionHeader-D_74W4My.js";
@@ -5,7 +5,7 @@ import { defineComponent as w, ref as p, openBlock as d, createBlock as v, unref
5
5
  import { Modal as D } from "@arco-design/web-vue";
6
6
  import { e as T } from "./apiClients-DrGX2iJy.js";
7
7
  import { u as V } from "./useTableHandle-BdujaiNX.js";
8
- import { C as y } from "./CustomTable-CCOQxfxr.js";
8
+ import { C as y } from "./CustomTable-nsxN4Ja4.js";
9
9
  import { C as E } from "./Clipboard-Bo7gdpR6.js";
10
10
  import { u as M } from "./useAuthkitUsersProfile-BZDk21c8.js";
11
11
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -9,13 +9,13 @@ import { u as y } from "./useUserMenu-ClPBlvaM.js";
9
9
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  /* empty css */
11
11
  import { u as W } from "./apiClients-DrGX2iJy.js";
12
- import { u as Z, o as ee, P as ne } from "./PaySubscriptions-C3KiTsQS.js";
12
+ import { u as Z, o as ee, P as ne } from "./PaySubscriptions-lWnEioX5.js";
13
13
  import { d as te } from "./useBillingStatusOptions-B7xLU3fs.js";
14
14
  import { C as se } from "./Clipboard-Bo7gdpR6.js";
15
15
  import { A as ae } from "./AuthkitAppSetting-C-0uuLSg.js";
16
16
  import { c as oe } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js";
17
17
  import { M as ie } from "./MessageHandle-BG12aX0i.js";
18
- import { R as re } from "./ReferrerReferees-Zb5Bd-_e.js";
18
+ import { R as re } from "./ReferrerReferees-Cn7KaO8z.js";
19
19
  import { Icon as F } from "@iconify/vue";
20
20
  const le = {
21
21
  class: "UserAvatar"
@@ -12,7 +12,7 @@ import { useRouter as ee, useRoute as te } from "vue-router";
12
12
  import "@unhead/vue";
13
13
  import "./useUserMenu-ClPBlvaM.js";
14
14
  import "./useBillingStatusOptions-B7xLU3fs.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-QWUNRjGh.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-P0X1Exyu.js";
16
16
  /* empty css */
17
17
  import { Icon as R } from "@iconify/vue";
18
18
  import "./Clipboard-Bo7gdpR6.js";
@@ -24,7 +24,7 @@ import "./CollapseItem-DUzZA6tx.js";
24
24
  /* empty css */
25
25
  /* empty css */
26
26
  /* empty css */
27
- import "./CustomTable-CCOQxfxr.js";
27
+ import "./CustomTable-nsxN4Ja4.js";
28
28
  import "./index-D56hUMeD.js";
29
29
  import { L as ce } from "./Logo-D7fyXyB-.js";
30
30
  import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
package/dist/common.js CHANGED
@@ -1,6 +1,6 @@
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-BVBk0kJN.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-CF3qOLWW.js";
2
2
  import { C as d, a as f } from "./CollapseItem-DUzZA6tx.js";
3
- import { C as x, E as b } from "./CustomTable-CCOQxfxr.js";
3
+ import { C as x, E as b } from "./CustomTable-nsxN4Ja4.js";
4
4
  import { L } from "./Logo-D7fyXyB-.js";
5
5
  import { M as g, a as A } from "./Menu-Cy2ZPeaz.js";
6
6
  export {
package/dist/main.js CHANGED
@@ -29,15 +29,15 @@ import { L as K6, a as Q6 } from "./LandingPageFAQ-CZJXvor9.js";
29
29
  import { L as J6, a as X6, b as e7, c as t7, D as o7, d as a7, e as s7, f as i7, g as n7, h as r7, i as c7, j as C7, k as l7 } from "./LandingPageLinkGroup-DDNRivMt.js";
30
30
  import { D as p7, L as f7 } from "./LandingPageSectionHeader-D_74W4My.js";
31
31
  import { L as h7, L as _7 } from "./Logo-D7fyXyB-.js";
32
- import { A as L7, a as m7, C as F7, D as w7, G as y7, H as M7, b as x7, S as v7, W as Z7 } from "./WidthContainer-BVBk0kJN.js";
32
+ import { A as L7, a as m7, C as F7, D as w7, G as y7, H as M7, b as x7, S as v7, W as Z7 } from "./WidthContainer-CF3qOLWW.js";
33
33
  import { C as U7, a as H7 } from "./CollapseItem-DUzZA6tx.js";
34
- import { C as k7, E as S7 } from "./CustomTable-CCOQxfxr.js";
34
+ import { C as k7, E as S7 } from "./CustomTable-nsxN4Ja4.js";
35
35
  import { M as G7, a as b7 } from "./Menu-Cy2ZPeaz.js";
36
- import { P as P7, u as B7, a as O7, b as T7, v as I7 } from "./PaySubscriptions-C3KiTsQS.js";
37
- import { P as N7, a as R7, b as j7, c as z7, p as W7, r as q7 } from "./PricingPlans-uwlFiiJx.js";
38
- import { R as Q7 } from "./ReferrerReferees-Zb5Bd-_e.js";
36
+ import { P as P7, u as B7, a as O7, b as T7, v as I7 } from "./PaySubscriptions-lWnEioX5.js";
37
+ import { P as N7, a as R7, b as j7, c as z7, p as W7, r as q7 } from "./PricingPlans-DFcjOMWS.js";
38
+ import { R as Q7 } from "./ReferrerReferees-Cn7KaO8z.js";
39
39
  import { _ as J7 } from "./Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js";
40
- import { U as e5, a as t5, b as o5, c as a5, d as s5, _ as i5, e as n5, f as r5, g as c5, h as C5, i as l5, j as d5, k as p5, l as f5, m as u5 } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-QWUNRjGh.js";
40
+ import { U as e5, a as t5, b as o5, c as a5, d as s5, _ as i5, e as n5, f as r5, g as c5, h as C5, i as l5, j as d5, k as p5, l as f5, m as u5 } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-P0X1Exyu.js";
41
41
  import { defineComponent as x, computed as Z, openBlock as s, createElementBlock as n, normalizeStyle as X, normalizeClass as j, createElementVNode as t, toDisplayString as f, createCommentVNode as L, createVNode as F, unref as m, createTextVNode as z, withModifiers as W, renderSlot as e2, withCtx as P, Fragment as S, renderList as A, createBlock as H, onMounted as q, ref as D, watch as t2, onUnmounted as o2, withDirectives as a2, createStaticVNode as s2, vShow as i2 } from "vue";
42
42
  import { Icon as V } from "@iconify/vue";
43
43
  import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
package/dist/pay.js CHANGED
@@ -1,5 +1,5 @@
1
- import { P as e, u as t, a as n, b as u, v as r } from "./PaySubscriptions-C3KiTsQS.js";
2
- import { P, a as o, b as S, c as p, p as A, r as m } from "./PricingPlans-uwlFiiJx.js";
1
+ import { P as e, u as t, a as n, b as u, v as r } from "./PaySubscriptions-lWnEioX5.js";
2
+ import { P, a as o, b as S, c as p, p as A, r as m } from "./PricingPlans-DFcjOMWS.js";
3
3
  import { u as c, a as l } from "./useSubscriptionCheckout-BRk5h9aC.js";
4
4
  import { I as g, P as y, R as _, c as b, u as f, a as B, b as C } from "./useBillingStatusOptions-B7xLU3fs.js";
5
5
  export {
package/dist/referrer.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as f } from "./ReferrerReferees-Zb5Bd-_e.js";
1
+ import { R as f } from "./ReferrerReferees-Cn7KaO8z.js";
2
2
  export {
3
3
  f as ReferrerReferees
4
4
  };