@huyooo/ui 0.13.2 → 0.13.4

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 (45) hide show
  1. package/dist/{AuthkitAppSetting-p_ZzaAK3.js → AuthkitAppSetting-EL2ZvAVT.js} +6 -6
  2. package/dist/{AuthkitGithubBinding-Cwly1un7.js → AuthkitGithubBinding-Ba9sbNEh.js} +6 -6
  3. package/dist/{Clipboard-k0jtK4CJ.js → Clipboard-CdJtMvg6.js} +1 -1
  4. package/dist/{Contact-BGZm3i5l.js → Contact-Z2VFVeKK.js} +2 -2
  5. package/dist/{FeedbackItem-opB6y-f2.js → FeedbackItem-B_MDdk4s.js} +3 -3
  6. package/dist/{FeedbackModal-9CNnFC6B.js → FeedbackModal-qrcBDDQM.js} +3 -3
  7. package/dist/{MessageHandle-BZBT7Ii1.js → MessageHandle-Y96z-IXv.js} +2 -2
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbKvsNKj.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CfmjFcay.js} +2 -2
  9. package/dist/{PaySubscriptions-Bxh35MKo.js → PaySubscriptions-C75OtmYw.js} +388 -425
  10. package/dist/{PricingPlans-BRJPtzFK.js → PricingPlans-DCYIVuuT.js} +4 -4
  11. package/dist/{ReferrerReferees-Hh88qOrp.js → ReferrerReferees-8eSsuPfa.js} +4 -4
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-DOHui-lA.js → Upload.vue_vue_type_script_setup_true_lang-BAibfVEN.js} +1 -1
  13. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-_BUbnxAH.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BEVmBNlU.js} +39 -39
  14. package/dist/{WidthContainer-CjKGJYG4.js → WidthContainer-Dqf_-qGk.js} +8 -8
  15. package/dist/{apiClients-B8bOvWw_.js → apiClients-D56ALwwO.js} +2 -2
  16. package/dist/authkit.js +9 -9
  17. package/dist/common.js +1 -1
  18. package/dist/composables/Billing/useBillingStatusOptions.d.ts +93 -0
  19. package/dist/composables.d.ts +1 -0
  20. package/dist/composables.js +44 -36
  21. package/dist/feedback.js +3 -3
  22. package/dist/main.js +248 -240
  23. package/dist/message.js +3 -3
  24. package/dist/pay.d.ts +1 -0
  25. package/dist/pay.js +21 -13
  26. package/dist/privateCom.js +1 -1
  27. package/dist/referrer.js +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/types/api/billing.generated.d.ts +2252 -649
  30. package/dist/upload.js +2 -2
  31. package/dist/{useAuthkitAppsAuthPageInfo-6ncIP9RT.js → useAuthkitAppsAuthPageInfo-RMs8sOwk.js} +1 -1
  32. package/dist/{useAuthkitAuth-Bj8XxPtO.js → useAuthkitAuth-B8aO6aMa.js} +1 -1
  33. package/dist/{useAuthkitCreateAndUpdate-CUf8HARI.js → useAuthkitCreateAndUpdate-DkiLs143.js} +1 -1
  34. package/dist/{useAuthkitUsersProfile-CoQceogN.js → useAuthkitUsersProfile-CWAr0CNv.js} +2 -2
  35. package/dist/useBillingStatusOptions-CottFcAr.js +127 -0
  36. package/dist/{useDownloads-Dj91-I6H.js → useDownloads-DqF1USJ7.js} +1 -1
  37. package/dist/{useEnsureAuthenticated-MpHmn2co.js → useEnsureAuthenticated-D99GiwEk.js} +2 -2
  38. package/dist/{useLegalLinks-CVHYmza0.js → useLegalLinks-DRTOYp3n.js} +2 -2
  39. package/dist/{useMessageNotifications-Bstn2qtG.js → useMessageNotifications-CUpk6zCE.js} +1 -1
  40. package/dist/{useSEO-DU86KCMJ.js → useSEO-CUKPmGRx.js} +2 -2
  41. package/dist/{useSubscriptionCheckout-DNLuRGmx.js → useSubscriptionCheckout-CAgy1CFj.js} +2 -2
  42. package/dist/{useTableHandle-B9aFmwYM.js → useTableHandle-CCKjahT0.js} +1 -1
  43. package/dist/{useUploadCos-DTMIoW7p.js → useUploadCos-Bxctd4E6.js} +1 -1
  44. package/dist/user.js +1 -1
  45. package/package.json +1 -1
package/dist/upload.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-DOHui-lA.js";
2
- import { u as s } from "./useUploadCos-DTMIoW7p.js";
1
+ import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-BAibfVEN.js";
2
+ import { u as s } from "./useUploadCos-Bxctd4E6.js";
3
3
  export {
4
4
  p as Upload,
5
5
  s as useUploadCos
@@ -1,5 +1,5 @@
1
1
  import { ref as n } from "vue";
2
- import { e as u } from "./apiClients-B8bOvWw_.js";
2
+ import { f as u } from "./apiClients-D56ALwwO.js";
3
3
  const a = n({
4
4
  id: "",
5
5
  appKey: "",
@@ -1,5 +1,5 @@
1
1
  import { ref as s, readonly as P } from "vue";
2
- import { e as c } from "./apiClients-B8bOvWw_.js";
2
+ import { f as c } from "./apiClients-D56ALwwO.js";
3
3
  const a = s("signIn"), m = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), t = s(null), p = "jwtToken";
4
4
  function k() {
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import "./apiClients-B8bOvWw_.js";
2
+ import "./apiClients-D56ALwwO.js";
3
3
  import { Message as u } from "@arco-design/web-vue";
4
4
  import { ref as e } from "vue";
5
5
  function h(s) {
@@ -1,6 +1,6 @@
1
1
  import { ref as l, computed as f } from "vue";
2
- import { e as c } from "./apiClients-B8bOvWw_.js";
3
- import { u as i } from "./useAuthkitAuth-Bj8XxPtO.js";
2
+ import { f as c } from "./apiClients-D56ALwwO.js";
3
+ import { u as i } from "./useAuthkitAuth-B8aO6aMa.js";
4
4
  const o = l(null), u = l(!1), t = l(!1), r = f(() => !!o.value);
5
5
  async function v() {
6
6
  const {
@@ -0,0 +1,127 @@
1
+ import { ref as y } from "vue";
2
+ import { e as u } from "./apiClients-D56ALwwO.js";
3
+ const b = [{
4
+ key: "pending",
5
+ label: "待支付",
6
+ color: "orange"
7
+ }, {
8
+ key: "paying",
9
+ label: "支付中",
10
+ color: "blue"
11
+ }, {
12
+ key: "paid",
13
+ label: "已支付",
14
+ color: "green"
15
+ }, {
16
+ key: "cancelled",
17
+ label: "已取消",
18
+ color: "gray"
19
+ }, {
20
+ key: "expired",
21
+ label: "已过期",
22
+ color: "red"
23
+ }, {
24
+ key: "refunded",
25
+ label: "已退款",
26
+ color: "purple"
27
+ }], f = [{
28
+ key: "pending",
29
+ label: "待审核",
30
+ color: "orange"
31
+ }, {
32
+ key: "approved",
33
+ label: "已通过",
34
+ color: "blue"
35
+ }, {
36
+ key: "rejected",
37
+ label: "已拒绝",
38
+ color: "gray"
39
+ }, {
40
+ key: "processing",
41
+ label: "退款中",
42
+ color: "blue"
43
+ }, {
44
+ key: "success",
45
+ label: "已退款",
46
+ color: "green"
47
+ }, {
48
+ key: "failed",
49
+ label: "退款失败",
50
+ color: "red"
51
+ }], d = [{
52
+ key: "draft",
53
+ label: "草稿",
54
+ color: "gray"
55
+ }, {
56
+ key: "open",
57
+ label: "待支付",
58
+ color: "orange"
59
+ }, {
60
+ key: "paid",
61
+ label: "已支付",
62
+ color: "green"
63
+ }, {
64
+ key: "void",
65
+ label: "已作废",
66
+ color: "gray"
67
+ }, {
68
+ key: "uncollectible",
69
+ label: "无法收款",
70
+ color: "red"
71
+ }];
72
+ function g(c, o, r, e) {
73
+ var t;
74
+ const i = ((t = o == null ? void 0 : o.toLowerCase) == null ? void 0 : t.call(o)) ?? o, n = c.find((a) => a.key === o || a.key === i);
75
+ return n != null && n[r] ? n[r] : e;
76
+ }
77
+ function p(c, o) {
78
+ const r = y(!1), e = y([]);
79
+ async function i() {
80
+ if (e.value.length > 0)
81
+ return e.value;
82
+ r.value = !0;
83
+ try {
84
+ const {
85
+ data: l,
86
+ error: s
87
+ } = await c();
88
+ return s || !(l != null && l.length) ? (s && console.error("获取状态选项失败:", s), e.value = o, e.value) : (e.value = l, e.value);
89
+ } finally {
90
+ r.value = !1;
91
+ }
92
+ }
93
+ function n() {
94
+ return e.value.length > 0 ? e.value : o;
95
+ }
96
+ function t(l) {
97
+ return g(n(), l, "label", l);
98
+ }
99
+ function a(l) {
100
+ return g(n(), l, "color", "gray");
101
+ }
102
+ return {
103
+ statusOptionsLoading: r,
104
+ statusOptionsList: e,
105
+ statusOptionsApi: i,
106
+ getStatusLabel: t,
107
+ getStatusColor: a
108
+ };
109
+ }
110
+ function S() {
111
+ return p(async () => u.pointsRecharge.statusOptions.post({}), b);
112
+ }
113
+ function O() {
114
+ return p(async () => u.refund.statusOptions.post({}), f);
115
+ }
116
+ function A() {
117
+ return p(async () => u.invoices.statusOptions.post({}), d);
118
+ }
119
+ export {
120
+ d as I,
121
+ b as P,
122
+ f as R,
123
+ S as a,
124
+ O as b,
125
+ p as c,
126
+ A as u
127
+ };
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import { g as f } from "./apiClients-B8bOvWw_.js";
2
+ import { g as f } from "./apiClients-D56ALwwO.js";
3
3
  import { Message as u } from "@arco-design/web-vue";
4
4
  import { ref as o } from "vue";
5
5
  function h(s) {
@@ -1,6 +1,6 @@
1
1
  import { computed as f } from "vue";
2
- import { u as r } from "./useAuthkitAuth-Bj8XxPtO.js";
3
- import { u as d } from "./apiClients-B8bOvWw_.js";
2
+ import { u as r } from "./useAuthkitAuth-B8aO6aMa.js";
3
+ import { u as d } from "./apiClients-D56ALwwO.js";
4
4
  const A = "jwtToken";
5
5
  let e = null, i = !1;
6
6
  async function h(n) {
@@ -1,6 +1,6 @@
1
1
  import { computed as c } from "vue";
2
- import { g as L } from "./apiClients-B8bOvWw_.js";
3
- import { u as m } from "./useAuthkitAppsAuthPageInfo-6ncIP9RT.js";
2
+ import { g as L } from "./apiClients-D56ALwwO.js";
3
+ import { u as m } from "./useAuthkitAppsAuthPageInfo-RMs8sOwk.js";
4
4
  const l = {
5
5
  userServiceAgreement: "用户服务协议",
6
6
  privacyPolicy: "隐私协议",
@@ -1,5 +1,5 @@
1
1
  import { ref as a, computed as L } from "vue";
2
- import { o as c } from "./apiClients-B8bOvWw_.js";
2
+ import { o as c } from "./apiClients-D56ALwwO.js";
3
3
  function S(f = "system") {
4
4
  const n = a(!0), d = a(""), i = a(!1), g = a(!1), o = a([]), t = a({
5
5
  total: 0,
@@ -1,7 +1,7 @@
1
1
  import { ref as I, computed as d, watch as _, isRef as G, toValue as B, hasInjectionContext as F, inject as J, watchEffect as Q, getCurrentInstance as Z, onBeforeUnmount as X, onDeactivated as Y, onActivated as ee } from "vue";
2
2
  import { useRouter as V, useRoute as K } from "vue-router";
3
- import { u as R } from "./useAuthkitAppsAuthPageInfo-6ncIP9RT.js";
4
- import { u as U } from "./useAuthkitUsersProfile-CoQceogN.js";
3
+ import { u as R } from "./useAuthkitAppsAuthPageInfo-RMs8sOwk.js";
4
+ import { u as U } from "./useAuthkitUsersProfile-CWAr0CNv.js";
5
5
  const v = I({
6
6
  key: "",
7
7
  name: ""
@@ -1,8 +1,8 @@
1
1
  import { ref as y, computed as q } from "vue";
2
- import { f as h } from "./apiClients-B8bOvWw_.js";
2
+ import { e as h } from "./apiClients-D56ALwwO.js";
3
3
  /* empty css */
4
4
  import { Message as g } from "@arco-design/web-vue";
5
- import { u as J } from "./useEnsureAuthenticated-MpHmn2co.js";
5
+ import { u as J } from "./useEnsureAuthenticated-D99GiwEk.js";
6
6
  function x(e) {
7
7
  var i;
8
8
  const n = (i = e == null ? void 0 : e.metadata) == null ? void 0 : i.originalPrice;
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import "./apiClients-B8bOvWw_.js";
2
+ import "./apiClients-D56ALwwO.js";
3
3
  import { Message as O } from "@arco-design/web-vue";
4
4
  import { ref as t } from "vue";
5
5
  function A(r) {
@@ -1,5 +1,5 @@
1
1
  import { c as Ft, g as Ut } from "./_commonjsHelpers-DaMA6jEr.js";
2
- import { o as mt } from "./apiClients-B8bOvWw_.js";
2
+ import { o as mt } from "./apiClients-D56ALwwO.js";
3
3
  var Pt = { exports: {} };
4
4
  (function(je, ot) {
5
5
  (function(se, E) {
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-_BUbnxAH.js";
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-BEVmBNlU.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.2",
3
+ "version": "0.13.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [