@huyooo/ui 0.13.8 → 0.13.9
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/{AuthkitAppSetting-u2kUUH6q.js → AuthkitAppSetting-Xe-QQSQ4.js} +403 -406
- package/dist/{AuthkitGithubBinding-B-YSWc50.js → AuthkitGithubBinding-CK6ijijV.js} +329 -330
- package/dist/{Contact-CIMfdt_b.js → Contact-mb7deQOs.js} +1 -1
- package/dist/CustomTable-BT-cnhLR.js +280 -0
- package/dist/{MessageHandle-D2dcvWVr.js → MessageHandle-CVueKPFG.js} +1 -1
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CSAIRPOj.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DL4qP8DA.js} +1 -1
- package/dist/{PaySubscriptions-BaUlQE-p.js → PaySubscriptions-BkZaeTgv.js} +2 -2
- package/dist/{PricingPlans-B0nt843Q.js → PricingPlans-B-GWpft_.js} +1 -1
- package/dist/{ReferrerReferees-B50_V69q.js → ReferrerReferees-DFCwvXJ6.js} +2 -2
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BHXLN2Tu.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Iwq1MOFa.js} +5 -5
- package/dist/WidthContainer-jOX17pDu.js +691 -0
- package/dist/authkit.js +6 -6
- package/dist/common.js +2 -2
- package/dist/composables/Authkit/resolveRoutePermission.d.ts +4 -0
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +1 -1
- package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +1 -1
- package/dist/composables.js +6 -6
- package/dist/main.js +19 -19
- package/dist/message.js +2 -2
- package/dist/pay.js +2 -2
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/ai.generated.d.ts +378 -247
- package/dist/types/api/billing.generated.d.ts +1105 -374
- package/dist/{useAuthkitAppsAuthPageInfo-CjPdpZ64.js → useAuthkitAppsAuthPageInfo-nCjfAjiw.js} +17 -7
- package/dist/useAuthkitCreateAndUpdate-u-ceTc-m.js +25 -0
- package/dist/useAuthkitUsersProfile-BC5EsA2f.js +40 -0
- package/dist/{useDownloads-CxoyuqyY.js → useDownloads-BC0QyEFr.js} +9 -9
- package/dist/{useLegalLinks-DHqsVvIK.js → useLegalLinks-DeXLE-yv.js} +1 -1
- package/dist/{useSEO-DypqLVfr.js → useSEO-BWAREYk4.js} +238 -227
- package/dist/user.js +1 -1
- package/package.json +2 -1
- package/dist/CustomTable-BBcd4nNL.js +0 -278
- package/dist/WidthContainer-BQIboxrg.js +0 -695
- package/dist/useAuthkitCreateAndUpdate-CsYn-oYu.js +0 -25
- package/dist/useAuthkitUsersProfile-CIFqG3gd.js +0 -36
package/dist/user.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Iwq1MOFa.js";
|
|
2
2
|
export {
|
|
3
3
|
a as UserAccountMenu,
|
|
4
4
|
n as UserAvatar,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huyooo/ui",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"sync:types": "npm run sync:auth && npm run sync:billing && npm run sync:ones && npm run sync:log && npm run sync:ai && npm run sync:webhook",
|
|
81
81
|
"sync:auth": "vafast sync --url http://localhost:9003 --endpoint /authRestfulApi/api-spec --out src/types/api/auth.generated.ts --strip-prefix /authRestfulApi",
|
|
82
82
|
"sync:billing": "vafast sync --url http://localhost:9004 --endpoint /billingRestfulApi/api-spec --out src/types/api/billing.generated.ts --strip-prefix /billingRestfulApi",
|
|
83
|
+
"sync:billing:local": "npm --prefix ../billing-server run sync:apiTypes",
|
|
83
84
|
"sync:ones": "vafast sync --url http://localhost:9002 --endpoint /onesRestfulApi/api-spec --out src/types/api/ones.generated.ts --strip-prefix /onesRestfulApi",
|
|
84
85
|
"sync:log": "vafast sync --url http://localhost:9005 --endpoint /logRestfulApi/api-spec --out src/types/api/log.generated.ts --strip-prefix /logRestfulApi",
|
|
85
86
|
"sync:ai": "vafast sync --url http://localhost:9007 --endpoint /aiRestfulApi/api-spec --out src/types/api/ai.generated.ts --strip-prefix /aiRestfulApi",
|
|
@@ -1,278 +0,0 @@
|
|
|
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
|
-
};
|