halo-pc 1.0.20 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. package/dist/Article-C_3LULzy.js +200 -0
  2. package/dist/{ArticleFooter-CsCnjrJ1.js → ArticleFooter-Do6I1mma.js} +24 -18
  3. package/dist/{Autocomplete-BGkHGSX_.js → Autocomplete-BLOOqTTn.js} +1 -1
  4. package/dist/Autocomplete-BLrbt1wN.js +53 -0
  5. package/dist/Autocomplete-C27XN8Sp.js +54 -0
  6. package/dist/{CSharp-NuDfWEq7.js → CSharp-BGn9jf2B.js} +1 -1
  7. package/dist/{Calender-C2YaNTHk.js → Calender-4bSMqUzx.js} +4 -4
  8. package/dist/Callback-BHYDtogL.js +26 -0
  9. package/dist/Cascader-D3y3WjFF.js +87 -0
  10. package/dist/Cascader-D9Y8L7X2.js +47 -0
  11. package/dist/{Checkbox-BAcK--1U.js → Checkbox-DnTLeLjt.js} +1 -1
  12. package/dist/Checkbox-dDfYBhhc.js +76 -0
  13. package/dist/{Code-CbsVyhOv.js → Code-Af5URLnL.js} +1 -1
  14. package/dist/Code-Bi9Y45vV.js +42 -0
  15. package/dist/Code-CWsSgkJq.js +60 -0
  16. package/dist/{Code-BHEes80c.js → Code-QYs-sjcG.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-CI6sLXKy.js +65 -0
  18. package/dist/Column-wzxM_-Vp.js +74 -0
  19. package/dist/Comment-BF8L1umD.js +104 -0
  20. package/dist/Compare-CjSQcnd3.js +43 -0
  21. package/dist/{Compare-gEOPuGLB.js → Compare-Cj_CPjIV.js} +25 -19
  22. package/dist/Copy-BNt-Dwoo.js +49 -0
  23. package/dist/Custom-CYPkAqpf.js +57 -0
  24. package/dist/{DataExport-hwoZoZUN.js → DataExport-CHQtRKzA.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dkq4fSkZ.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +41 -36
  26. package/dist/{DataImport-CQYeF50z.js → DataImport-CDcmH3Du.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js +176 -0
  28. package/dist/{Date-a3T1YbHN.js → Date-BStpsA7n.js} +1 -1
  29. package/dist/Date-U1py5NaK.js +43 -0
  30. package/dist/DateRange-DxAx2gxI.js +63 -0
  31. package/dist/DateTime-B3609Ct6.js +44 -0
  32. package/dist/{DateTime-BUYojCOY.js → DateTime-CmJw1-WA.js} +1 -1
  33. package/dist/{DateTimeRange-D9K4am0p.js → DateTimeRange-aDw57sTG.js} +17 -11
  34. package/dist/Daterange-C48t6usd.js +63 -0
  35. package/dist/{Decimal-CNhxJUZg.js → Decimal-Ca0K6NoZ.js} +1 -1
  36. package/dist/Delete-FhIvONUV.js +62 -0
  37. package/dist/{Detail-BXkTd6Wh.js → Detail-qqW0J946.js} +21 -15
  38. package/dist/Dictionary-CaXytFmK.js +59 -0
  39. package/dist/Email-H2DHJhMe.js +54 -0
  40. package/dist/{File-CAnAcqJX.js → File-CjXewuui.js} +33 -27
  41. package/dist/Image-BSuCHshD.js +9 -0
  42. package/dist/Index-9KImKLrj.js +4 -0
  43. package/dist/Index-BIbR8SAU.js +178 -0
  44. package/dist/Index-BaoxkF9F.js +4 -0
  45. package/dist/{Index-DJvB04cS.js → Index-BrI9x7i7.js} +1 -1
  46. package/dist/Index-CXR5RC6-.js +4 -0
  47. package/dist/{Index-RZT6JXBO.js → Index-CpGonJ_m.js} +1 -1
  48. package/dist/{Index-CseSUp2Z.js → Index-DUgprnVp.js} +1 -1
  49. package/dist/{Index-BqjKndKz.js → Index-icEhc88J.js} +25 -20
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DtNDN8Ex.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -15
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +22 -16
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-T12lwRy6.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
  53. package/dist/{Install-DWWpscrR.js → Install-FwXpJIWk.js} +26 -20
  54. package/dist/Int-CXl1QpEL.js +44 -0
  55. package/dist/Int-DAxz3ETu.js +46 -0
  56. package/dist/List-CV9bkdrq.js +79 -0
  57. package/dist/Maintaince-DZNq9aHX.js +20 -0
  58. package/dist/{Markdown-d8PCfAFf.js → Markdown-BhwqDlwa.js} +1 -1
  59. package/dist/{Month-COEkKDL_.js → Month-BEmnA7zU.js} +1 -1
  60. package/dist/Month-DXQBHoJU.js +43 -0
  61. package/dist/Month-bgEd_K7_.js +44 -0
  62. package/dist/{Normal-BD7sNr-b.js → Normal-Dya4aqc7.js} +56 -51
  63. package/dist/Paging-JXDzxoM0.js +99 -0
  64. package/dist/{PagingHeader-CznmI0kr.js → PagingHeader-BETGBySb.js} +31 -25
  65. package/dist/{PagingRow-BJ-VLpfV.js → PagingRow-BLqp1c9E.js} +28 -22
  66. package/dist/QueryApi-B5jI3sBl.js +20 -0
  67. package/dist/{Racebar-BkwhD-rw.js → Racebar-CozeXwLJ.js} +42 -37
  68. package/dist/{Radio-CS12bajp.js → Radio-CuAxYw7j.js} +1 -1
  69. package/dist/{Register-l_X4fDPP.js → Register-B11jE2Ox.js} +78 -73
  70. package/dist/RichText-CxBE_cVg.js +47 -0
  71. package/dist/{SearchFooter-C8N9ku25.js → SearchFooter-agTqPUGE.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-6WvYHIn1.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
  73. package/dist/{SearchForm-DX0mN20A.js → SearchForm-DNKmE8W0.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +40 -35
  75. package/dist/Select-BPa5rx_H.js +86 -0
  76. package/dist/Select-CRfEAtba.js +117 -0
  77. package/dist/{Select-DYjvtHyi.js → Select-MqDjnB-C.js} +1 -1
  78. package/dist/{Single-DErvX9y_.js → Single-C5Kkr9SY.js} +112 -107
  79. package/dist/{Statistic-CQxXdu-V.js → Statistic-Ce_FMw5O.js} +36 -31
  80. package/dist/{Stock-CsoHCwV6.js → Stock-BTjhpaxv.js} +1 -1
  81. package/dist/{Stock-DXLdfC3r.js → Stock-D8AJmsvb.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +28 -23
  83. package/dist/{Switch-BCgZXfWo.js → Switch-gwGbi34o.js} +1 -1
  84. package/dist/{Table-CAVxyUTD.js → Table-C03eUBYm.js} +69 -63
  85. package/dist/{Table-DkJYgLFt.js → Table-DA8aGGEH.js} +74 -70
  86. package/dist/{Text-Cn0cOTli.js → Text-B5uPrGof.js} +18 -12
  87. package/dist/Text-D-VS-lCk.js +59 -0
  88. package/dist/Text-NRww74M3.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-Fsbur1tJ.js +59 -0
  90. package/dist/TextLink-B_Qg6CnF.js +65 -0
  91. package/dist/{Textarea-Pc4TfoC3.js → Textarea-gtXLL6Qe.js} +1 -1
  92. package/dist/Time-DYOIZ2Rv.js +43 -0
  93. package/dist/Timeline-B4AYezYA.js +59 -0
  94. package/dist/{Tree-01Sb-9zi.js → Tree-CRDb0vS5.js} +67 -62
  95. package/dist/Tree-CTmXjN1O.js +122 -0
  96. package/dist/TreeNode-HFcGpAOb.js +42 -0
  97. package/dist/{Update-Cy1lFPVv.js → Update-EHyhYK5k.js} +18 -12
  98. package/dist/{UpdateChild-DV_8KV9G.js → UpdateChild-CC3b9evd.js} +23 -17
  99. package/dist/Upload-CkQ-5tVg.js +72 -0
  100. package/dist/Upload-um4BYzwO.js +150 -0
  101. package/dist/UploadApi-BmdGJGjh.js +20 -0
  102. package/dist/Year-DKBG5ihv.js +47 -0
  103. package/dist/{Year-BFZPXXq0.js → Year-Lhvyb9Vk.js} +1 -1
  104. package/dist/assets/@intlify-BISCQg1h.js +2189 -0
  105. package/dist/assets/@vue-aVYGocXp.js +93 -0
  106. package/dist/assets/clone-BZn0cTAu.js +134 -0
  107. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  108. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  109. package/dist/assets/moment-h96o7c8I.js +2578 -0
  110. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  111. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  112. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  113. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  114. package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
  115. package/dist/main-C1iALE1f.js +8947 -0
  116. package/dist/main.js +42 -41
  117. package/package.json +2 -2
  118. package/dist/Article-aps_F4Uq.js +0 -194
  119. package/dist/Autocomplete-CGoxGIM2.js +0 -48
  120. package/dist/Autocomplete-XdLV4jzi.js +0 -49
  121. package/dist/Callback-Czdr_dVp.js +0 -20
  122. package/dist/Cascader-D3Kr80fH.js +0 -81
  123. package/dist/Cascader-DRvnD4Xc.js +0 -41
  124. package/dist/Checkbox-5pSKww4M.js +0 -70
  125. package/dist/Code-BxQxsVD8.js +0 -54
  126. package/dist/Code-CtDTGfBy.js +0 -36
  127. package/dist/Code.vue_vue_type_style_index_0_lang-CPZKY3vQ.js +0 -59
  128. package/dist/Column-D3PMyaiE.js +0 -68
  129. package/dist/Comment-B3fvVYJF.js +0 -98
  130. package/dist/Compare-BXxJuIXf.js +0 -37
  131. package/dist/Copy-1znXP-dt.js +0 -43
  132. package/dist/Custom-C_15ZImX.js +0 -51
  133. package/dist/DataImport.vue_vue_type_script_setup_true_lang-ChWRjj2W.js +0 -172
  134. package/dist/Date-0bIUTNCs.js +0 -37
  135. package/dist/DateRange-Cxu9FXTE.js +0 -57
  136. package/dist/DateTime-IlsYZL-l.js +0 -38
  137. package/dist/Daterange-CX0Klog4.js +0 -57
  138. package/dist/Delete-DFl8Tr27.js +0 -56
  139. package/dist/Dictionary-DmarNVsi.js +0 -55
  140. package/dist/Email-BBjDCCOK.js +0 -48
  141. package/dist/Image-pufFvop2.js +0 -9
  142. package/dist/Index-C4D5pwwu.js +0 -173
  143. package/dist/Index-CD_KS2lO.js +0 -4
  144. package/dist/Index-CEh3KlPE.js +0 -4
  145. package/dist/Index-XmvSiC1h.js +0 -4
  146. package/dist/Int-Bi3P8XeV.js +0 -41
  147. package/dist/Int-Bn2p1DqA.js +0 -38
  148. package/dist/List-CeQRwXop.js +0 -73
  149. package/dist/Maintaince-CVMjhqSO.js +0 -14
  150. package/dist/Month-BfUSQ3xa.js +0 -38
  151. package/dist/Month-DQKfNQzN.js +0 -37
  152. package/dist/Paging-d_-VefNv.js +0 -94
  153. package/dist/QueryApi-Cdniq3mZ.js +0 -13
  154. package/dist/RichText-9MwwjuZi.js +0 -41
  155. package/dist/Select-CQE5kY-n.js +0 -111
  156. package/dist/Select-DaEqum3a.js +0 -80
  157. package/dist/Text-Dk5tNNZo.js +0 -53
  158. package/dist/Text-DvVWvaMO.js +0 -4
  159. package/dist/Text.vue_vue_type_style_index_0_lang-I01JEYAx.js +0 -53
  160. package/dist/TextLink-D3nvnLHn.js +0 -59
  161. package/dist/Time-CToG3p0T.js +0 -37
  162. package/dist/Timeline-DphvhX0U.js +0 -53
  163. package/dist/Tree-CH1RoUqu.js +0 -117
  164. package/dist/TreeNode-C54d29V-.js +0 -37
  165. package/dist/Upload-BalaO4wz.js +0 -146
  166. package/dist/Upload-DQVaPUdG.js +0 -67
  167. package/dist/UploadApi-Cfm5DM_x.js +0 -13
  168. package/dist/Year-Swm3VSzj.js +0 -41
  169. package/dist/main-BYJVoHlf.js +0 -19457
@@ -0,0 +1,62 @@
1
+ import { defineComponent as x, toRefs as g, ref as y, resolveComponent as B, openBlock as D, createElementBlock as N, createElementVNode as i, toDisplayString as o, unref as e, createVNode as a, withCtx as m, createTextVNode as d } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { t as l, h as V, m as w, r as E } from "./main-C1iALE1f.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const S = { class: "delete" }, q = { class: "delete-title" }, R = { class: "delete-buttons" }, J = /* @__PURE__ */ x({
10
+ __name: "Delete",
11
+ props: {
12
+ base: {},
13
+ route: {},
14
+ url: {},
15
+ win: {}
16
+ },
17
+ emits: ["navigate", "succeed", "close"],
18
+ setup(u, { emit: p }) {
19
+ let n = p, _ = u, { base: f, route: v } = g(_), s = y(), h = (t) => {
20
+ s.value = t.next;
21
+ };
22
+ (() => {
23
+ h(f.value.data);
24
+ })();
25
+ let k = () => {
26
+ let t = [v.value.query.id];
27
+ V.post(s.value.delete.route, t).then((c) => {
28
+ w.success(c.message), C();
29
+ });
30
+ }, C = () => {
31
+ E.toBackUrl(), n("succeed", "delete");
32
+ }, b = () => {
33
+ n("close");
34
+ };
35
+ return (t, c) => {
36
+ const r = B("el-button");
37
+ return D(), N("div", S, [
38
+ i("div", q, o(e(l)("common.confirm_delete")), 1),
39
+ i("div", R, [
40
+ a(r, {
41
+ type: "danger",
42
+ onClick: e(k)
43
+ }, {
44
+ default: m(() => [
45
+ d(o(e(l)("common.confirm")), 1)
46
+ ]),
47
+ _: 1
48
+ }, 8, ["onClick"]),
49
+ a(r, { onClick: e(b) }, {
50
+ default: m(() => [
51
+ d(o(e(l)("common.cancel")), 1)
52
+ ]),
53
+ _: 1
54
+ }, 8, ["onClick"])
55
+ ])
56
+ ]);
57
+ };
58
+ }
59
+ });
60
+ export {
61
+ J as default
62
+ };
@@ -1,8 +1,14 @@
1
- import { defineComponent as C, toRefs as h, resolveComponent as v, openBlock as x, createBlock as b, unref as e, withCtx as t, createVNode as c, createTextVNode as a, toDisplayString as i, createElementVNode as m } from "vue";
2
- import { E as N, P as s } from "./main-BYJVoHlf.js";
1
+ import { defineComponent as C, toRefs as h, resolveComponent as v, openBlock as x, createBlock as b, unref as e, withCtx as t, createVNode as l, createTextVNode as c, toDisplayString as a, createElementVNode as r } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { N, t as m } from "./main-C1iALE1f.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
3
9
  import "vue-router";
4
10
  import "./assets/intro.js-DxWjEdp_.js";
5
- const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__PURE__ */ m("i", { class: "fa fa-copy" }, null, -1), B = /* @__PURE__ */ m("i", { class: "fa fa-chevron-left" }, null, -1), $ = /* @__PURE__ */ C({
11
+ const V = /* @__PURE__ */ r("i", { class: "fa fa-edit" }, null, -1), g = /* @__PURE__ */ r("i", { class: "fa fa-copy" }, null, -1), B = /* @__PURE__ */ r("i", { class: "fa fa-chevron-left" }, null, -1), H = /* @__PURE__ */ C({
6
12
  __name: "Detail",
7
13
  props: {
8
14
  route: {},
@@ -12,18 +18,18 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
12
18
  },
13
19
  emits: ["copy", "edit", "close"],
14
20
  setup(_, { emit: f }) {
15
- let n = f, u = _, { route: D, table: r, set: p, next: E } = h(u), d = (o) => {
16
- n("copy", p.value[r.value.name][0], o);
21
+ let n = f, u = _, { route: D, table: p, set: s, next: w } = h(u), d = (o) => {
22
+ n("copy", s.value[p.value.name][0], o);
17
23
  }, y = (o) => {
18
- n("edit", p.value[r.value.name][0], o);
24
+ n("edit", s.value[p.value.name][0], o);
19
25
  }, k = () => {
20
26
  n("close");
21
27
  };
22
- return (o, P) => {
23
- const l = v("el-button");
28
+ return (o, E) => {
29
+ const i = v("el-button");
24
30
  return x(), b(e(N), { padding: 5 }, {
25
31
  default: t(() => [
26
- c(l, {
32
+ l(i, {
27
33
  type: "primary",
28
34
  onClick: e(y)
29
35
  }, {
@@ -31,11 +37,11 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
31
37
  V
32
38
  ]),
33
39
  default: t(() => [
34
- a(" " + i(e(s)("common.modify")), 1)
40
+ c(" " + a(e(m)("common.modify")), 1)
35
41
  ]),
36
42
  _: 1
37
43
  }, 8, ["onClick"]),
38
- c(l, {
44
+ l(i, {
39
45
  type: "primary",
40
46
  plain: "",
41
47
  onClick: e(d)
@@ -44,16 +50,16 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
44
50
  g
45
51
  ]),
46
52
  default: t(() => [
47
- a(" " + i(e(s)("common.copy")), 1)
53
+ c(" " + a(e(m)("common.copy")), 1)
48
54
  ]),
49
55
  _: 1
50
56
  }, 8, ["onClick"]),
51
- c(l, { onClick: e(k) }, {
57
+ l(i, { onClick: e(k) }, {
52
58
  icon: t(() => [
53
59
  B
54
60
  ]),
55
61
  default: t(() => [
56
- a(" " + i(e(s)("common.back")), 1)
62
+ c(" " + a(e(m)("common.back")), 1)
57
63
  ]),
58
64
  _: 1
59
65
  }, 8, ["onClick"])
@@ -64,5 +70,5 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
64
70
  }
65
71
  });
66
72
  export {
67
- $ as default
73
+ H as default
68
74
  };
@@ -0,0 +1,59 @@
1
+ import { defineComponent as g, toRefs as x, computed as o, resolveComponent as h, openBlock as r, createElementBlock as a, Fragment as V, renderList as S, unref as b, createBlock as k, normalizeStyle as B, withCtx as C, createTextVNode as N, toDisplayString as u, createCommentVNode as H } from "vue";
2
+ import { v as s, S as w, A } from "./main-C1iALE1f.js";
3
+ import "./assets/clone-BZn0cTAu.js";
4
+ import "./assets/file-saver-CwlpTZSc.js";
5
+ import "./assets/moment-h96o7c8I.js";
6
+ import "./assets/liquidjs-C-LVcoaY.js";
7
+ const D = { class: "text-dictionary" }, E = {
8
+ key: 0,
9
+ class: "suffix"
10
+ }, J = /* @__PURE__ */ g({
11
+ __name: "Dictionary",
12
+ props: {
13
+ schema: {},
14
+ table: {},
15
+ field: {},
16
+ set: {},
17
+ row: {},
18
+ modelValue: { type: [String, Number, Boolean] }
19
+ },
20
+ emits: ["submit", "change", "update:modelValue"],
21
+ setup(i, { emit: m }) {
22
+ let n = m, p = i, { table: T, field: c, set: z, modelValue: d } = x(p), t = o({
23
+ get() {
24
+ return d.value;
25
+ },
26
+ set(e) {
27
+ n("update:modelValue", e), n("change", e);
28
+ }
29
+ }), f = o(() => {
30
+ if (t.value == null)
31
+ return [];
32
+ if (s.isNumber(t.value))
33
+ return [t.value];
34
+ if (s.isBoolean(t.value))
35
+ return [t.value];
36
+ let e = t.value.toString();
37
+ return w.isEmpty(e) ? [] : e.split(",");
38
+ }), v = o(() => A.fromValues(f.value, c.value.control.data.data, "value", "text"));
39
+ return (e, F) => {
40
+ const _ = h("el-tag");
41
+ return r(), a("div", D, [
42
+ (r(!0), a(V, null, S(b(v), (l, y) => (r(), k(_, {
43
+ type: "info",
44
+ style: B({ color: l.color }),
45
+ key: y
46
+ }, {
47
+ default: C(() => [
48
+ N(u(l.text) + " ", 1),
49
+ l.suffix ? (r(), a("span", E, "(" + u(l.suffix) + ")", 1)) : H("", !0)
50
+ ]),
51
+ _: 2
52
+ }, 1032, ["style"]))), 128))
53
+ ]);
54
+ };
55
+ }
56
+ });
57
+ export {
58
+ J as default
59
+ };
@@ -0,0 +1,54 @@
1
+ import { defineComponent as f, toRefs as _, computed as V, resolveComponent as b, openBlock as h, createBlock as y, unref as e, withKeys as x, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as C } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { g as K } from "./main-C1iALE1f.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const q = /* @__PURE__ */ f({
10
+ __name: "Email",
11
+ props: {
12
+ schema: {},
13
+ table: {},
14
+ field: {},
15
+ set: {},
16
+ row: {},
17
+ modelValue: {}
18
+ },
19
+ emits: ["submit", "change", "update:modelValue"],
20
+ setup(p, { emit: n }) {
21
+ let l = n, r = p, { table: d, field: t, set: B, modelValue: u } = _(r), s = () => {
22
+ l("submit");
23
+ }, o = V({
24
+ get() {
25
+ return u.value;
26
+ },
27
+ set(a) {
28
+ l("update:modelValue", a), l("change", a);
29
+ }
30
+ });
31
+ return (a, m) => {
32
+ const c = b("el-input");
33
+ return h(), y(c, {
34
+ type: "email",
35
+ disabled: e(t).control.readonly,
36
+ placeholder: e(K)(e(d).name, e(t).name),
37
+ onKeyup: x(e(s), ["enter", "native"]),
38
+ modelValue: e(o),
39
+ "onUpdate:modelValue": m[0] || (m[0] = (i) => g(o) ? o.value = i : o = i)
40
+ }, k({ _: 2 }, [
41
+ e(t).suffix ? {
42
+ name: "append",
43
+ fn: v(() => [
44
+ w(C(e(t).suffix), 1)
45
+ ]),
46
+ key: "0"
47
+ } : void 0
48
+ ]), 1032, ["disabled", "placeholder", "onKeyup", "modelValue"]);
49
+ };
50
+ }
51
+ });
52
+ export {
53
+ q as default
54
+ };
@@ -1,10 +1,16 @@
1
- import { defineComponent as j, toRefs as A, ref as K, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as h, unref as e, withCtx as r, createElementVNode as s, normalizeClass as $, Fragment as x, renderList as q, createBlock as g, toDisplayString as _, createTextVNode as w, createCommentVNode as S } from "vue";
2
- import { useRoute as T, useRouter as Y } from "vue-router";
3
- import { A as G, c as H, Y as c, P as I, L as J, d as M } from "./main-BYJVoHlf.js";
1
+ import { defineComponent as J, toRefs as P, ref as T, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as h, unref as e, withCtx as r, createElementVNode as s, normalizeClass as x, Fragment as L, renderList as q, createBlock as g, toDisplayString as _, createTextVNode as w, createCommentVNode as S } from "vue";
2
+ import { useRoute as A, useRouter as G } from "vue-router";
3
+ import "./assets/underscore-B0BCaBxV.js";
4
+ import "./assets/underscore.string-DVXD2SZo.js";
5
+ import "./assets/clone-BZn0cTAu.js";
6
+ import "./assets/file-saver-CwlpTZSc.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import { J as H, b as I, C as c, t as K, h as M, c as O } from "./main-C1iALE1f.js";
9
+ import "./assets/liquidjs-C-LVcoaY.js";
4
10
  import "./assets/intro.js-DxWjEdp_.js";
5
- import { _ as O } from "./SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js";
6
- const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ */ s("i", { class: "fa fa-list" }, null, -1), X = [
7
- W
11
+ import { _ as Q } from "./SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js";
12
+ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ */ s("i", { class: "fa fa-list" }, null, -1), Y = [
13
+ X
8
14
  ], Z = /* @__PURE__ */ s("i", { class: "fa fa-image" }, null, -1), ee = [
9
15
  Z
10
16
  ], te = {
@@ -13,7 +19,7 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
13
19
  }, oe = { class: "file-image" }, ae = ["src"], le = { class: "file-title" }, se = { class: "file-name" }, ne = ["src", "alt"], re = { class: "file-title" }, ie = {
14
20
  key: 2,
15
21
  class: "not-support"
16
- }, fe = /* @__PURE__ */ j({
22
+ }, ke = /* @__PURE__ */ J({
17
23
  __name: "File",
18
24
  props: {
19
25
  searchData: {},
@@ -25,9 +31,9 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
25
31
  set: {}
26
32
  },
27
33
  setup(z) {
28
- let F = z, { schema: N, table: n, layout: i, next: d, set: b, searchData: ue } = A(F), f = T(), v = Y(), k = K(), C = (o) => {
34
+ let F = z, { schema: N, table: n, layout: i, next: d, set: b, searchData: ue } = P(F), f = A(), v = G(), k = T(), C = (o) => {
29
35
  let a = { type: "fileLayout", value: o };
30
- J.post("/user/config", a).then((y) => {
36
+ M.post("/user/config", a).then((y) => {
31
37
  c.fileLayout = o;
32
38
  });
33
39
  }, V = (o) => {
@@ -35,34 +41,34 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
35
41
  a.page = o, v.push({ path: d.value.paging.route, query: a });
36
42
  }, B = () => {
37
43
  let o = { ...f.query };
38
- o.page = "1", o.condition = M.encode(k.value);
44
+ o.page = "1", o.condition = O.encode(k.value);
39
45
  let a = { path: d.value.paging.route, query: o };
40
46
  v.push(a);
41
47
  };
42
48
  return (o, a) => {
43
- const y = p("router-link"), D = p("el-table-column"), P = p("el-table"), R = p("el-button"), E = p("el-pagination");
44
- return l(), u("div", Q, [
45
- h(e(G), {
46
- title: e(H)(o.module.type, o.module.name)
49
+ const y = p("router-link"), D = p("el-table-column"), R = p("el-table"), E = p("el-button"), j = p("el-pagination");
50
+ return l(), u("div", U, [
51
+ h(e(H), {
52
+ title: e(I)(o.module.type, o.module.name)
47
53
  }, {
48
54
  operation: r(() => [
49
- s("div", U, [
55
+ s("div", W, [
50
56
  s("a", {
51
- class: $({ active: e(c).fileLayout == "list" }),
57
+ class: x({ active: e(c).fileLayout == "list" }),
52
58
  onClick: a[0] || (a[0] = (t) => e(C)("list"))
53
- }, X, 2),
59
+ }, Y, 2),
54
60
  s("a", {
55
- class: $({ active: e(c).fileLayout == "image" }),
61
+ class: x({ active: e(c).fileLayout == "image" }),
56
62
  onClick: a[1] || (a[1] = (t) => e(C)("image"))
57
63
  }, ee, 2)
58
64
  ])
59
65
  ]),
60
66
  append: r(() => [
61
67
  e(c).fileLayout == "image" ? (l(), u("div", te, [
62
- (l(!0), u(x, null, q(e(b)[e(n).name], (t, L) => (l(), g(y, {
68
+ (l(!0), u(L, null, q(e(b)[e(n).name], (t, $) => (l(), g(y, {
63
69
  class: "file",
64
70
  to: { path: e(d).detail.route, query: { id: t[e(n).key.name], m: e(f).query.m } },
65
- key: L
71
+ key: $
66
72
  }, {
67
73
  default: r(() => [
68
74
  s("div", oe, [
@@ -75,17 +81,17 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
75
81
  ]),
76
82
  _: 2
77
83
  }, 1032, ["to"]))), 128))
78
- ])) : e(c).fileLayout == "list" ? (l(), g(P, {
84
+ ])) : e(c).fileLayout == "list" ? (l(), g(R, {
79
85
  key: 1,
80
86
  class: "files-list",
81
87
  border: "",
82
88
  data: e(b)[e(n).name]
83
89
  }, {
84
90
  empty: r(() => [
85
- w(_(e(I)("common.no_data")), 1)
91
+ w(_(e(K)("common.no_data")), 1)
86
92
  ]),
87
93
  default: r(() => [
88
- (l(!0), u(x, null, q(e(n).show, (t, L) => (l(), g(D, {
94
+ (l(!0), u(L, null, q(e(n).show, (t, $) => (l(), g(D, {
89
95
  "show-overflow-tooltip": "",
90
96
  sortable: e(n) ? "custom" : !1,
91
97
  "min-width": "180",
@@ -112,7 +118,7 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
112
118
  }, 8, ["data"])) : (l(), u("div", ie, "未支持的文件布局:" + _(e(c).fileLayout), 1))
113
119
  ]),
114
120
  default: r(() => [
115
- e(n).search.length > 0 ? (l(), g(O, {
121
+ e(n).search.length > 0 ? (l(), g(Q, {
116
122
  key: 0,
117
123
  schema: e(N),
118
124
  table: e(n),
@@ -122,7 +128,7 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
122
128
  ]),
123
129
  _: 1
124
130
  }, 8, ["title"]),
125
- h(R, {
131
+ h(E, {
126
132
  type: "primary",
127
133
  icon: "el-icon-plus"
128
134
  }, {
@@ -138,7 +144,7 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
138
144
  ]),
139
145
  _: 1
140
146
  }),
141
- h(E, {
147
+ h(j, {
142
148
  background: "",
143
149
  layout: "total, prev, pager, next, jumper",
144
150
  "current-page": e(i).page,
@@ -151,5 +157,5 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
151
157
  }
152
158
  });
153
159
  export {
154
- fe as default
160
+ ke as default
155
161
  };
@@ -0,0 +1,9 @@
1
+ import { o as e } from "./main-C1iALE1f.js";
2
+ const r = {};
3
+ function c(n, t) {
4
+ return null;
5
+ }
6
+ const _ = /* @__PURE__ */ e(r, [["render", c]]);
7
+ export {
8
+ _ as default
9
+ };
@@ -0,0 +1,4 @@
1
+ import { Z as f } from "./main-C1iALE1f.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,178 @@
1
+ import { defineComponent as I, ref as u, onMounted as j, computed as D, watch as P, resolveComponent as c, openBlock as d, createElementBlock as R, createVNode as g, unref as o, withCtx as m, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as U, isRef as L, withKeys as T, normalizeClass as Q, withModifiers as W, createTextVNode as $, Fragment as Z, renderList as G, nextTick as S } from "vue";
2
+ import { useRoute as J } from "vue-router";
3
+ import "./assets/underscore-B0BCaBxV.js";
4
+ import { i as X, z as w, W as Y, t as i, S as ee, R as F, U as te, r as K, x as oe } from "./main-C1iALE1f.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/clone-BZn0cTAu.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const le = { class: "login-container" }, re = { class: "title-container" }, se = { class: "title" }, ne = /* @__PURE__ */ n("span", { class: "svg-container" }, [
10
+ /* @__PURE__ */ n("i", { class: "fa fa-user" })
11
+ ], -1), ae = /* @__PURE__ */ n("span", { class: "svg-container" }, [
12
+ /* @__PURE__ */ n("i", { class: "fa fa-key" })
13
+ ], -1), ie = { class: "btn-others" }, ue = ["href"], de = ["innerHTML"], we = /* @__PURE__ */ I({
14
+ __name: "Index",
15
+ setup(pe) {
16
+ let a = u({ id: "", secret: "" }), p = u("password"), s = u(!1), _ = u(!1), C = u(), V = u(), h = u(), x = J(), H = {
17
+ id: [{
18
+ required: !0,
19
+ trigger: "blur",
20
+ validator: (t, e, r) => {
21
+ e ? e.indexOf("@") > -1 ? ee.isEmail(e) ? r() : r(new Error("邮箱格式不正确")) : r() : r(new Error(i("common.username_or_email") + " " + i("common.should_not_null")));
22
+ }
23
+ }]
24
+ // secret: [{required: true, trigger: 'blur', validator: validateSecret}]
25
+ }, M = (t) => {
26
+ t.key && t.key.length == 1 && (t.shiftKey && t.key >= "a" && t.key <= "z" || !t.shiftKey && t.key >= "A" && t.key <= "Z" ? s.value = !0 : s.value = !1), t.key == "CapsLock" && s.value == !0 && (s.value = !1);
27
+ }, B = () => {
28
+ p.value == "password" ? p.value = "" : p.value = "password", S(() => {
29
+ h.value.focus();
30
+ });
31
+ }, E = async (t) => {
32
+ _.value = !0, C.value.validate(async (e) => {
33
+ if (!e)
34
+ return _.value = !1, !1;
35
+ (await F.sso.create(t)).login(a.value).then(({ data: f }) => {
36
+ te.getBackUrl() ? K.toBackUrl() : K.to("/");
37
+ }).finally(() => {
38
+ S(() => {
39
+ _.value = !1;
40
+ });
41
+ });
42
+ });
43
+ }, N = async (t) => {
44
+ let e = await F.sso.create(t), r = x.query.return_url, f = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${r}`;
45
+ return e.loginUrl(oe.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(f));
46
+ }, O = (t) => Object.keys(t).reduce((e, r) => (e[r] = t[r], e), {});
47
+ j(async () => {
48
+ X.setI18nTitle("common.login");
49
+ for (let t = 0; t < w.ssos.length; t++) {
50
+ let e = w.ssos[t];
51
+ e.loginUrl = await N(e.type);
52
+ }
53
+ y.value != null && (a.value.id == "" ? V.value.focus() : a.value.secret == "" && h.value.focus());
54
+ });
55
+ let y = D(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
56
+ return P(() => x, (t) => {
57
+ debugger;
58
+ const e = t.query;
59
+ e && O(e);
60
+ }), (t, e) => {
61
+ const r = c("el-input"), f = c("el-form-item"), b = c("el-tooltip"), q = c("el-button"), z = c("router-link"), A = c("el-form");
62
+ return d(), R("div", le, [
63
+ g(A, {
64
+ ref_key: "loginFormRef",
65
+ ref: C,
66
+ autocomplete: "on",
67
+ "label-position": "left",
68
+ model: o(a),
69
+ rules: o(H)
70
+ }, {
71
+ default: m(() => [
72
+ n("div", re, [
73
+ n("h3", se, k(o(Y)("title")), 1)
74
+ ]),
75
+ o(y) ? (d(), v(f, {
76
+ key: 0,
77
+ prop: "id"
78
+ }, {
79
+ default: m(() => [
80
+ ne,
81
+ g(r, {
82
+ ref_key: "idRef",
83
+ ref: V,
84
+ placeholder: o(i)("common.username_or_email"),
85
+ name: "id",
86
+ type: "text",
87
+ tabindex: "1",
88
+ autocomplete: "on",
89
+ modelValue: o(a).id,
90
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => o(a).id = l)
91
+ }, null, 8, ["placeholder", "modelValue"])
92
+ ]),
93
+ _: 1
94
+ })) : U("", !0),
95
+ o(y) ? (d(), v(b, {
96
+ key: 1,
97
+ content: "Caps lock is On",
98
+ placement: "right",
99
+ manual: "",
100
+ modelValue: o(s),
101
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => L(s) ? s.value = l : s = l)
102
+ }, {
103
+ default: m(() => [
104
+ g(f, { prop: "secret" }, {
105
+ default: m(() => [
106
+ ae,
107
+ (d(), v(r, {
108
+ ref_key: "secretRef",
109
+ ref: h,
110
+ key: o(p),
111
+ type: o(p),
112
+ placeholder: o(i)("common.password"),
113
+ name: "secret",
114
+ tabindex: "2",
115
+ autocomplete: "on",
116
+ onKeyup: [
117
+ T(o(M), ["native"]),
118
+ e[2] || (e[2] = T((l) => o(E)("Bearer"), ["enter", "native"]))
119
+ ],
120
+ onBlur: e[1] || (e[1] = (l) => L(s) ? s.value = !1 : s = !1),
121
+ modelValue: o(a).secret,
122
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => o(a).secret = l)
123
+ }, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
124
+ n("span", {
125
+ class: "btn-pwd",
126
+ onClick: e[4] || (e[4] = //@ts-ignore
127
+ (...l) => o(B) && o(B)(...l))
128
+ }, [
129
+ n("i", {
130
+ class: Q(o(p) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
131
+ }, null, 2)
132
+ ])
133
+ ]),
134
+ _: 1
135
+ })
136
+ ]),
137
+ _: 1
138
+ }, 8, ["modelValue"])) : U("", !0),
139
+ o(y) ? (d(), v(q, {
140
+ key: 2,
141
+ type: "primary",
142
+ class: "btn-login",
143
+ loading: o(_),
144
+ onClick: e[6] || (e[6] = W((l) => o(E)("Bearer"), ["prevent"]))
145
+ }, {
146
+ default: m(() => [
147
+ $(k(o(i)("common.login")), 1)
148
+ ]),
149
+ _: 1
150
+ }, 8, ["loading"])) : U("", !0),
151
+ n("div", ie, [
152
+ (d(!0), R(Z, null, G(o(w).ssos.filter((l) => l.type.toUpperCase() != "BEARER"), (l) => (d(), R("a", {
153
+ href: l.loginUrl
154
+ }, k(o(i)(l.text)), 9, ue))), 256)),
155
+ g(z, {
156
+ class: "btn-register",
157
+ to: "/register"
158
+ }, {
159
+ default: m(() => [
160
+ $(k(o(i)("common.register")), 1)
161
+ ]),
162
+ _: 1
163
+ })
164
+ ])
165
+ ]),
166
+ _: 1
167
+ }, 8, ["model", "rules"]),
168
+ n("div", {
169
+ class: "powered-by",
170
+ innerHTML: o(i)("sys.powered_by")
171
+ }, null, 8, de)
172
+ ]);
173
+ };
174
+ }
175
+ });
176
+ export {
177
+ we as default
178
+ };
@@ -0,0 +1,4 @@
1
+ import { E as f } from "./main-C1iALE1f.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js";
1
+ import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { a as f } from "./main-C1iALE1f.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_style_index_0_lang-T12lwRy6.js";
1
+ import { _ as f } from "./Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-DtNDN8Ex.js";
1
+ import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js";
2
2
  export {
3
3
  f as default
4
4
  };