@huyooo/ui 0.12.2 → 0.13.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.
- package/dist/CustomTable-BBcd4nNL.js +278 -0
- package/dist/PaySubscriptions-Dxg7GZJx.js +1194 -0
- package/dist/PricingPlans-CAKsTY8G.js +405 -0
- package/dist/{ReferrerReferees-DhS91Ulf.js → ReferrerReferees-Hh88qOrp.js} +1 -1
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-24U6PK1y.js +521 -0
- package/dist/{WidthContainer-ektCstwj.js → WidthContainer-B2cjwKvY.js} +2 -2
- package/dist/common/paymentReturn.d.ts +9 -0
- package/dist/common.js +2 -2
- package/dist/components/Pay/PaymentReturnPage.vue.d.ts +7 -0
- package/dist/components/UserMenu/parts/UserSubscriptionBaseInformation.vue.d.ts +2 -0
- package/dist/composables/Billing/useBillingPlans.d.ts +39 -0
- package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +52 -0
- package/dist/composables/Billing/usePaymentReturn.d.ts +33 -0
- package/dist/composables/UserMenu/useUserMenu.d.ts +1 -1
- package/dist/main.js +154 -147
- package/dist/pay.d.ts +3 -0
- package/dist/pay.js +15 -8
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/dist/utils/billingFetch.d.ts +1 -0
- package/package.json +1 -1
- package/dist/CustomTable-BUkwlbzN.js +0 -272
- package/dist/PaySubscriptions-DS4kJNb_.js +0 -531
- package/dist/PricingPlans-CfW_mv5_.js +0 -279
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-9cF5hBYc.js +0 -508
|
@@ -0,0 +1,278 @@
|
|
|
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 P, ref as N, computed as _, onMounted as Y, nextTick as V, watch as Z, onBeforeUnmount as I, openBlock as a, createElementBlock as d, normalizeStyle as x, normalizeClass as k, renderSlot as O, useModel as q, createVNode as z, unref as c, withCtx as S, createElementVNode as g, createBlock as K, createCommentVNode as m, Fragment as w, renderList as W, toDisplayString as E, createTextVNode as ee, mergeModels as A, useSlots as te } from "vue";
|
|
9
|
+
import { Spin as ne, Checkbox as L, Tooltip as ie, Empty as le, Pagination as oe } from "@arco-design/web-vue";
|
|
10
|
+
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
import { g as B, a as M } from "./index-D56hUMeD.js";
|
|
12
|
+
const ae = /* @__PURE__ */ P({
|
|
13
|
+
__name: "Ellipsis",
|
|
14
|
+
props: {
|
|
15
|
+
open: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
required: !1,
|
|
18
|
+
default: () => !0
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(v) {
|
|
22
|
+
const y = v, e = N(null), h = N(0), u = _(() => {
|
|
23
|
+
var C, b;
|
|
24
|
+
if (!y.open || h.value === 0)
|
|
25
|
+
return {};
|
|
26
|
+
const r = (b = (C = e.value) == null ? void 0 : C.parentElement) == null ? void 0 : b.style.width;
|
|
27
|
+
return r && r !== "auto" ? {
|
|
28
|
+
width: r
|
|
29
|
+
} : {
|
|
30
|
+
width: `${h.value}px`
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
function f() {
|
|
34
|
+
e.value && y.open && V(() => {
|
|
35
|
+
e.value && (h.value = e.value.clientWidth);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function p() {
|
|
39
|
+
f();
|
|
40
|
+
}
|
|
41
|
+
return Y(() => {
|
|
42
|
+
y.open && V(() => {
|
|
43
|
+
f(), window.addEventListener("resize", p);
|
|
44
|
+
});
|
|
45
|
+
}), Z(() => y.open, (r) => {
|
|
46
|
+
r ? (f(), window.addEventListener("resize", p)) : window.removeEventListener("resize", p);
|
|
47
|
+
}), I(() => {
|
|
48
|
+
window.removeEventListener("resize", p);
|
|
49
|
+
}), (r, C) => (a(), d("div", {
|
|
50
|
+
ref_key: "ellipsisContainer",
|
|
51
|
+
ref: e,
|
|
52
|
+
class: k({
|
|
53
|
+
ellipsis: v.open
|
|
54
|
+
}),
|
|
55
|
+
style: x(v.open ? u.value : {})
|
|
56
|
+
}, [O(r.$slots, "default", {}, void 0, !0)], 6));
|
|
57
|
+
}
|
|
58
|
+
}), se = /* @__PURE__ */ R(ae, [["__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
|
+
style: {
|
|
71
|
+
width: "100%",
|
|
72
|
+
overflow: "hidden"
|
|
73
|
+
}
|
|
74
|
+
}, ve = {
|
|
75
|
+
key: 0,
|
|
76
|
+
class: "contain"
|
|
77
|
+
}, ge = {
|
|
78
|
+
class: "pagination"
|
|
79
|
+
}, ye = /* @__PURE__ */ P({
|
|
80
|
+
__name: "CustomTable",
|
|
81
|
+
props: /* @__PURE__ */ A({
|
|
82
|
+
loading: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
required: !1,
|
|
85
|
+
default: () => !1
|
|
86
|
+
},
|
|
87
|
+
bordered: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
required: !1,
|
|
90
|
+
default: () => !0
|
|
91
|
+
},
|
|
92
|
+
data: {
|
|
93
|
+
type: Array,
|
|
94
|
+
required: !0
|
|
95
|
+
},
|
|
96
|
+
pagination: {
|
|
97
|
+
type: Object,
|
|
98
|
+
required: !1,
|
|
99
|
+
default: () => null
|
|
100
|
+
},
|
|
101
|
+
columns: {
|
|
102
|
+
type: Array,
|
|
103
|
+
required: !0
|
|
104
|
+
},
|
|
105
|
+
/** 行选择配置 */
|
|
106
|
+
rowSelection: {
|
|
107
|
+
type: Object,
|
|
108
|
+
required: !1,
|
|
109
|
+
default: void 0
|
|
110
|
+
},
|
|
111
|
+
/** 行数据的唯一标识字段,默认 'id' */
|
|
112
|
+
rowKey: {
|
|
113
|
+
type: String,
|
|
114
|
+
required: !1,
|
|
115
|
+
default: "id"
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
selectedKeys: {
|
|
119
|
+
default: () => []
|
|
120
|
+
},
|
|
121
|
+
selectedKeysModifiers: {},
|
|
122
|
+
activeKey: {
|
|
123
|
+
default: -1
|
|
124
|
+
},
|
|
125
|
+
activeKeyModifiers: {}
|
|
126
|
+
}),
|
|
127
|
+
emits: /* @__PURE__ */ A(["mouseenter", "mouseleave", "pageChange", "pageSizeChange"], ["update:selectedKeys", "update:activeKey"]),
|
|
128
|
+
setup(v, {
|
|
129
|
+
emit: y
|
|
130
|
+
}) {
|
|
131
|
+
const e = v, h = y, u = q(v, "selectedKeys"), f = q(v, "activeKey");
|
|
132
|
+
function p(t, i) {
|
|
133
|
+
return t[e.rowKey] ?? String(i);
|
|
134
|
+
}
|
|
135
|
+
function r(t, i) {
|
|
136
|
+
const s = p(t, i);
|
|
137
|
+
return u.value.includes(s);
|
|
138
|
+
}
|
|
139
|
+
const C = _(() => e.data.length === 0 ? !1 : e.data.every((t, i) => r(t, i))), b = _(() => {
|
|
140
|
+
if (e.data.length === 0) return !1;
|
|
141
|
+
const t = e.data.filter((i, s) => r(i, s)).length;
|
|
142
|
+
return t > 0 && t < e.data.length;
|
|
143
|
+
});
|
|
144
|
+
function j(t, i, s) {
|
|
145
|
+
const n = p(t, i);
|
|
146
|
+
s ? u.value.includes(n) || (u.value = [...u.value, n]) : u.value = u.value.filter((l) => l !== n);
|
|
147
|
+
}
|
|
148
|
+
function H(t) {
|
|
149
|
+
if (Array.isArray(t) ? t.length > 0 : t) {
|
|
150
|
+
const s = e.data.map((l, o) => p(l, o)), n = /* @__PURE__ */ new Set([...u.value, ...s]);
|
|
151
|
+
u.value = Array.from(n);
|
|
152
|
+
} else {
|
|
153
|
+
const s = new Set(e.data.map((n, l) => p(n, l)));
|
|
154
|
+
u.value = u.value.filter((n) => !s.has(n));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
const J = _(() => {
|
|
158
|
+
const t = e.columns.map((i) => i.width ? `${i.width}px` : i.minWidth ? `minmax(${i.minWidth}px, 1fr)` : "minmax(120px, 1fr)");
|
|
159
|
+
return e.rowSelection && t.unshift("48px"), t.join(" ");
|
|
160
|
+
}), U = _(() => `${e.columns.reduce((i, s) => {
|
|
161
|
+
const n = Number(s.width || s.minWidth || 120);
|
|
162
|
+
return i + n;
|
|
163
|
+
}, e.rowSelection ? 48 : 0)}px`);
|
|
164
|
+
function T(t) {
|
|
165
|
+
const i = {};
|
|
166
|
+
return t.maxWidth && (i.maxWidth = `${t.maxWidth}px`), i;
|
|
167
|
+
}
|
|
168
|
+
function D(t) {
|
|
169
|
+
h("pageChange", t);
|
|
170
|
+
}
|
|
171
|
+
function F(t) {
|
|
172
|
+
h("pageSizeChange", t);
|
|
173
|
+
}
|
|
174
|
+
function G(t) {
|
|
175
|
+
const i = te();
|
|
176
|
+
return t ? !!i[t] : !1;
|
|
177
|
+
}
|
|
178
|
+
function Q(t) {
|
|
179
|
+
f.value = t, h("mouseenter", t);
|
|
180
|
+
}
|
|
181
|
+
function X(t) {
|
|
182
|
+
f.value = -1, h("mouseleave", t);
|
|
183
|
+
}
|
|
184
|
+
return (t, i) => (a(), d("div", re, [z(c(ne), {
|
|
185
|
+
loading: e.loading,
|
|
186
|
+
tip: "数据加载中"
|
|
187
|
+
}, {
|
|
188
|
+
default: S(() => {
|
|
189
|
+
var s;
|
|
190
|
+
return [g("div", de, [g("div", {
|
|
191
|
+
class: "flex-table",
|
|
192
|
+
style: x({
|
|
193
|
+
"grid-template-columns": J.value,
|
|
194
|
+
"min-width": U.value
|
|
195
|
+
})
|
|
196
|
+
}, [g("div", ue, [e.rowSelection ? (a(), d("div", ce, [e.rowSelection.showCheckedAll !== !1 ? (a(), K(c(L), {
|
|
197
|
+
key: 0,
|
|
198
|
+
"model-value": C.value,
|
|
199
|
+
indeterminate: b.value,
|
|
200
|
+
onChange: H
|
|
201
|
+
}, null, 8, ["model-value", "indeterminate"])) : m("", !0)])) : m("", !0), (a(!0), d(w, null, W(e.columns, (n, l) => (a(), d("div", {
|
|
202
|
+
key: l,
|
|
203
|
+
class: k(["header-cell", {
|
|
204
|
+
fixed: n.fixed,
|
|
205
|
+
fixedBackground: n.fixed,
|
|
206
|
+
lastBorder: l === e.columns.length - 1
|
|
207
|
+
}]),
|
|
208
|
+
style: x(T(n))
|
|
209
|
+
}, E(n.title), 7))), 128))]), g("div", pe, [(a(!0), d(w, null, W(e.data, (n, l) => (a(), d("div", {
|
|
210
|
+
key: p(n, l),
|
|
211
|
+
class: k(["table-row", {
|
|
212
|
+
trListHover: l === f.value,
|
|
213
|
+
"row-selected": r(n, l)
|
|
214
|
+
}]),
|
|
215
|
+
onMouseenter: (o) => Q(l),
|
|
216
|
+
onMouseleave: (o) => X(l)
|
|
217
|
+
}, [e.rowSelection ? (a(), d("div", {
|
|
218
|
+
key: 0,
|
|
219
|
+
class: k(["body-cell checkbox-cell", {
|
|
220
|
+
trListHover: l === f.value,
|
|
221
|
+
"row-selected": r(n, l)
|
|
222
|
+
}])
|
|
223
|
+
}, [z(c(L), {
|
|
224
|
+
"model-value": r(n, l),
|
|
225
|
+
onChange: (o) => j(n, l, o)
|
|
226
|
+
}, null, 8, ["model-value", "onChange"])], 2)) : m("", !0), (a(!0), d(w, null, W(e.columns, (o, $) => (a(), d("div", {
|
|
227
|
+
key: $,
|
|
228
|
+
class: k(["body-cell", {
|
|
229
|
+
[o.cellClassName]: typeof o.cellClassName == "string",
|
|
230
|
+
fixed: o.fixed,
|
|
231
|
+
trListHover: l === f.value,
|
|
232
|
+
"row-selected": r(n, l),
|
|
233
|
+
lastBorder: $ === e.columns.length - 1
|
|
234
|
+
}]),
|
|
235
|
+
style: x(T(o))
|
|
236
|
+
}, [g("div", he, [z(se, {
|
|
237
|
+
open: o.ellipsis
|
|
238
|
+
}, {
|
|
239
|
+
default: S(() => [G(o.slotName) ? O(t.$slots, o.slotName, {
|
|
240
|
+
key: 0,
|
|
241
|
+
record: n
|
|
242
|
+
}, void 0, !0) : (a(), d(w, {
|
|
243
|
+
key: 1
|
|
244
|
+
}, [o.dataIndex ? (a(), d(w, {
|
|
245
|
+
key: 0
|
|
246
|
+
}, [o.tooltip ? (a(), K(c(ie), {
|
|
247
|
+
key: 0,
|
|
248
|
+
content: c(B)(c(M)(n, o.dataIndex)),
|
|
249
|
+
position: "bottom"
|
|
250
|
+
}, {
|
|
251
|
+
default: S(() => [g("span", null, E(c(B)(c(M)(n, o.dataIndex))), 1)]),
|
|
252
|
+
_: 2
|
|
253
|
+
}, 1032, ["content"])) : (a(), d(w, {
|
|
254
|
+
key: 1
|
|
255
|
+
}, [ee(E(c(B)(c(M)(n, o.dataIndex))), 1)], 64))], 64)) : m("", !0)], 64))]),
|
|
256
|
+
_: 2
|
|
257
|
+
}, 1032, ["open"])])], 6))), 128))], 42, fe))), 128))])], 4), e.data.length === 0 ? (a(), d("div", ve, [z(c(le))])) : m("", !0)]), g("div", ge, [e.pagination ? (a(), K(c(oe), {
|
|
258
|
+
key: 0,
|
|
259
|
+
modelValue: e.pagination.current,
|
|
260
|
+
"onUpdate:modelValue": i[0] || (i[0] = (n) => e.pagination.current = n),
|
|
261
|
+
total: ((s = e.pagination) == null ? void 0 : s.total) || 0,
|
|
262
|
+
pageSize: e.pagination.pageSize,
|
|
263
|
+
showTotal: e.pagination.showTotal ?? !0,
|
|
264
|
+
showJumper: e.pagination.showJumper ?? !1,
|
|
265
|
+
showPageSize: e.pagination.showPageSize ?? !0,
|
|
266
|
+
pageSizeOptions: e.pagination.pageSizeOptions ?? [10, 20, 50, 100],
|
|
267
|
+
onChange: D,
|
|
268
|
+
onPageSizeChange: F
|
|
269
|
+
}, null, 8, ["modelValue", "total", "pageSize", "showTotal", "showJumper", "showPageSize", "pageSizeOptions"])) : m("", !0)])];
|
|
270
|
+
}),
|
|
271
|
+
_: 3
|
|
272
|
+
}, 8, ["loading"])]));
|
|
273
|
+
}
|
|
274
|
+
}), Ee = /* @__PURE__ */ R(ye, [["__scopeId", "data-v-d435fdc7"]]);
|
|
275
|
+
export {
|
|
276
|
+
Ee as C,
|
|
277
|
+
se as E
|
|
278
|
+
};
|