@huyooo/ui 0.13.6 → 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.
Files changed (54) hide show
  1. package/dist/{AuthkitAppSetting-EL2ZvAVT.js → AuthkitAppSetting-Xe-QQSQ4.js} +405 -408
  2. package/dist/{AuthkitGithubBinding-Ba9sbNEh.js → AuthkitGithubBinding-CK6ijijV.js} +330 -331
  3. package/dist/{Clipboard-CdJtMvg6.js → Clipboard-C8ncjaAJ.js} +1 -1
  4. package/dist/{Contact-Z2VFVeKK.js → Contact-mb7deQOs.js} +2 -2
  5. package/dist/CustomTable-BT-cnhLR.js +280 -0
  6. package/dist/{FeedbackItem-B_MDdk4s.js → FeedbackItem-C9FQThXG.js} +3 -3
  7. package/dist/{FeedbackModal-qrcBDDQM.js → FeedbackModal-R3NKRxr7.js} +3 -3
  8. package/dist/{MessageHandle-Y96z-IXv.js → MessageHandle-CVueKPFG.js} +2 -2
  9. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CfmjFcay.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DL4qP8DA.js} +2 -2
  10. package/dist/{PaySubscriptions-C75OtmYw.js → PaySubscriptions-BkZaeTgv.js} +5 -5
  11. package/dist/{PricingPlans-DCYIVuuT.js → PricingPlans-B-GWpft_.js} +4 -4
  12. package/dist/{ReferrerReferees-8eSsuPfa.js → ReferrerReferees-DFCwvXJ6.js} +5 -5
  13. package/dist/{Upload.vue_vue_type_script_setup_true_lang-BAibfVEN.js → Upload.vue_vue_type_script_setup_true_lang-dLSky4Yx.js} +1 -1
  14. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BEVmBNlU.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Iwq1MOFa.js} +33 -34
  15. package/dist/WidthContainer-jOX17pDu.js +691 -0
  16. package/dist/api/billingSubscriptionApi.d.ts +3 -0
  17. package/dist/{apiClients-D56ALwwO.js → apiClients-CkI47p36.js} +11 -7
  18. package/dist/authkit.js +9 -9
  19. package/dist/common.js +2 -2
  20. package/dist/composables/Authkit/resolveRoutePermission.d.ts +4 -0
  21. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +1 -1
  22. package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +1 -1
  23. package/dist/composables/useMessageList.d.ts +2 -2
  24. package/dist/composables.js +13 -13
  25. package/dist/feedback.js +3 -3
  26. package/dist/main.js +32 -32
  27. package/dist/message.js +3 -3
  28. package/dist/pay.js +4 -4
  29. package/dist/privateCom.js +1 -1
  30. package/dist/referrer.js +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/types/api/ai.generated.d.ts +3248 -335
  33. package/dist/types/api/billing.generated.d.ts +2162 -500
  34. package/dist/upload.js +2 -2
  35. package/dist/{useAuthkitAppsAuthPageInfo-RMs8sOwk.js → useAuthkitAppsAuthPageInfo-nCjfAjiw.js} +17 -7
  36. package/dist/{useAuthkitAuth-B8aO6aMa.js → useAuthkitAuth-C--qS6UE.js} +1 -1
  37. package/dist/useAuthkitCreateAndUpdate-u-ceTc-m.js +25 -0
  38. package/dist/useAuthkitUsersProfile-BC5EsA2f.js +40 -0
  39. package/dist/useBillingStatusOptions-D5Ehwtbj.js +145 -0
  40. package/dist/{useDownloads-DqF1USJ7.js → useDownloads-BC0QyEFr.js} +10 -10
  41. package/dist/{useEnsureAuthenticated-D99GiwEk.js → useEnsureAuthenticated-C4tsSfv6.js} +2 -2
  42. package/dist/{useLegalLinks-DRTOYp3n.js → useLegalLinks-DeXLE-yv.js} +2 -2
  43. package/dist/{useMessageNotifications-CUpk6zCE.js → useMessageNotifications-BMUx5xfX.js} +1 -1
  44. package/dist/{useSEO-CUKPmGRx.js → useSEO-BWAREYk4.js} +238 -227
  45. package/dist/{useSubscriptionCheckout-CAgy1CFj.js → useSubscriptionCheckout-CHAF20s-.js} +102 -108
  46. package/dist/{useTableHandle-CCKjahT0.js → useTableHandle-9alnSWt0.js} +1 -1
  47. package/dist/{useUploadCos-Bxctd4E6.js → useUploadCos-DGPnLOC9.js} +1 -1
  48. package/dist/user.js +1 -1
  49. package/package.json +3 -2
  50. package/dist/CustomTable-BBcd4nNL.js +0 -278
  51. package/dist/WidthContainer-Dqf_-qGk.js +0 -694
  52. package/dist/useAuthkitCreateAndUpdate-DkiLs143.js +0 -25
  53. package/dist/useAuthkitUsersProfile-CWAr0CNv.js +0 -36
  54. package/dist/useBillingStatusOptions-CottFcAr.js +0 -127
@@ -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
- };