halo-pc 1.0.27 → 1.0.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. package/dist/{Article-CTqryR4L.js → Article-N3ZaJaLc.js} +75 -70
  2. package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-sspAOJuS.js} +23 -17
  3. package/dist/Autocomplete-CD6CsF2X.js +54 -0
  4. package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-DY6OaWAK.js} +1 -1
  5. package/dist/Autocomplete-DkkUx0lx.js +53 -0
  6. package/dist/{CSharp-Dt6H75E9.js → CSharp-BwNnAf8e.js} +1 -1
  7. package/dist/{Calender-DhKZyJri.js → Calender-VwwIDi3Q.js} +1 -1
  8. package/dist/Callback-BRrShVCU.js +26 -0
  9. package/dist/Cascader-CurlPJsQ.js +87 -0
  10. package/dist/Cascader-i3KkCfFF.js +47 -0
  11. package/dist/{Checkbox-C-iEGB0k.js → Checkbox-Bk98RtL7.js} +1 -1
  12. package/dist/Checkbox-CNMzO79X.js +76 -0
  13. package/dist/Code-BdDjNSqs.js +42 -0
  14. package/dist/{Code-Q_6THgGl.js → Code-C4XPPKO8.js} +1 -1
  15. package/dist/{Code-JtSSnUWC.js → Code-CRH4WNXz.js} +1 -1
  16. package/dist/Code-CqA6bVSZ.js +60 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-Dkdu_fcm.js +65 -0
  18. package/dist/Column-BCz-Xp-3.js +75 -0
  19. package/dist/Comment-BoOQfrxv.js +104 -0
  20. package/dist/Compare-ChJu8LUo.js +44 -0
  21. package/dist/{Compare-DZVrBYEh.js → Compare-DxOXRPzs.js} +25 -19
  22. package/dist/Copy-DBUSr3OW.js +49 -0
  23. package/dist/Custom-CNQIPMHT.js +57 -0
  24. package/dist/{DataExport-DSz5371s.js → DataExport-B-0vVYMT.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-BvyBbSLP.js} +41 -36
  26. package/dist/{DataImport-CX7G70a7.js → DataImport-ApAPTQcq.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-CKd0CAf_.js +176 -0
  28. package/dist/Date-BnRTPDSJ.js +43 -0
  29. package/dist/{Date-ytWe2gz8.js → Date-gMmfQ3pA.js} +1 -1
  30. package/dist/DateRange-BPQ2TOXk.js +63 -0
  31. package/dist/DateTime-CsZdXjmB.js +44 -0
  32. package/dist/{DateTime-p6YgmtGd.js → DateTime-Cz09I2-B.js} +1 -1
  33. package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-DPjTS-A2.js} +17 -11
  34. package/dist/Daterange-DCyMLI8G.js +63 -0
  35. package/dist/{Decimal-BvyzJq1c.js → Decimal-Cpz-_Ef3.js} +1 -1
  36. package/dist/Delete-Di56R5Tf.js +62 -0
  37. package/dist/{Detail-DZJ0aUFr.js → Detail-DP1ReSaw.js} +22 -17
  38. package/dist/Dictionary-B8OMis9G.js +59 -0
  39. package/dist/Email-CCZH8SDT.js +54 -0
  40. package/dist/{File-BEBElTSS.js → File-BUw6o5UN.js} +32 -27
  41. package/dist/{Image-DDK05SW7.js → Image-DBjqi76B.js} +1 -1
  42. package/dist/Index-B6sevgc6.js +4 -0
  43. package/dist/{Index-DPwdcUO4.js → Index-BDVj7Dy2.js} +1 -1
  44. package/dist/Index-CZYVZtFI.js +178 -0
  45. package/dist/Index-Cch9emdC.js +4 -0
  46. package/dist/Index-CfpZf8By.js +4 -0
  47. package/dist/Index-Cn3HXkPm.js +4 -0
  48. package/dist/{Index-CuEyzMd0.js → Index-DuKtMNgH.js} +25 -20
  49. package/dist/{Index-BiF8qEWf.js → Index-Z8dMl0cU.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BJJPNo3Y.js} +20 -15
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-DCxwPrIZ.js} +17 -12
  52. package/dist/{Install-CxuoWpHC.js → Install-CNE0J2Q9.js} +27 -22
  53. package/dist/Int-C5AxmjK0.js +46 -0
  54. package/dist/Int-RoCJiPje.js +44 -0
  55. package/dist/List-DJuE2QHL.js +79 -0
  56. package/dist/Maintaince-CdqWSHAZ.js +20 -0
  57. package/dist/{Markdown-x1hASyA-.js → Markdown-DKyCVBYy.js} +1 -1
  58. package/dist/{Month-Bb0tgF-k.js → Month-BfSG37wf.js} +1 -1
  59. package/dist/Month-OH6snasK.js +43 -0
  60. package/dist/Month-iU9F-vQ5.js +44 -0
  61. package/dist/{Normal-CYmy5sN7.js → Normal-DPJQ_Ds5.js} +70 -66
  62. package/dist/Paging-CYU3sSbD.js +99 -0
  63. package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-CgWbC7R1.js} +30 -24
  64. package/dist/{PagingRow-CR2N1vgm.js → PagingRow-Y8lG-1cI.js} +26 -20
  65. package/dist/QueryApi-C3h4tWd0.js +20 -0
  66. package/dist/{Racebar-BsgDK6Zf.js → Racebar-CtFYJKrh.js} +42 -37
  67. package/dist/{Radio-B3Af-uZE.js → Radio-Bz2SE_FO.js} +1 -1
  68. package/dist/{Register-Cwr3iIZm.js → Register-CiK44o2W.js} +44 -40
  69. package/dist/RichText-BkhW8muI.js +47 -0
  70. package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-D6O_c5DS.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-BDe_uXW2.js} +1 -1
  72. package/dist/{SearchForm-BOw_kHs2.js → SearchForm-CZjHSE1s.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CVeFjNjG.js} +40 -36
  74. package/dist/Select-BEgPZsaR.js +117 -0
  75. package/dist/Select-CY1CA4pv.js +86 -0
  76. package/dist/{Select-BdYG1KQE.js → Select-FFqI2hOh.js} +1 -1
  77. package/dist/{Single-DqCIZBIB.js → Single-BQRWqAOH.js} +103 -99
  78. package/dist/{Statistic-B9ZcUUk1.js → Statistic-CyqoTZZj.js} +37 -33
  79. package/dist/{Stock-BnBNtuo7.js → Stock-N57DPrDl.js} +1 -1
  80. package/dist/{Stock-BiSr7zAF.js → Stock-negSF4zD.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-BuxuI7Wg.js} +31 -26
  82. package/dist/{Switch-BE4dQcja.js → Switch-g5K9zh4g.js} +1 -1
  83. package/dist/{Table-CaH_zu8W.js → Table-CHKHAajT.js} +77 -74
  84. package/dist/{Table-e0uLPRLG.js → Table-nB7wA6gP.js} +78 -73
  85. package/dist/{Text-BAw88r5O.js → Text-7oaEmWun.js} +19 -13
  86. package/dist/Text-BefOYKkr.js +4 -0
  87. package/dist/{Text-BDAob4mp.js → Text-KKwYRpSW.js} +21 -15
  88. package/dist/Text.vue_vue_type_style_index_0_lang-BrmC8Xhc.js +59 -0
  89. package/dist/TextLink-DoArgh5L.js +65 -0
  90. package/dist/{Textarea-CU5PjIoa.js → Textarea-DEvxrKMK.js} +1 -1
  91. package/dist/Time-D8Ikb-KB.js +43 -0
  92. package/dist/Timeline-BEt6ygzA.js +59 -0
  93. package/dist/{Tree-D-v632h1.js → Tree-caBJzrZQ.js} +105 -101
  94. package/dist/Tree-ftxBqmRQ.js +122 -0
  95. package/dist/TreeNode-XITOvihe.js +42 -0
  96. package/dist/{Update-DRAFce7_.js → Update-JgTiZCDi.js} +20 -15
  97. package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-y0OPiT92.js} +23 -17
  98. package/dist/Upload-BlnOvJFg.js +150 -0
  99. package/dist/Upload-kUYBfIS2.js +72 -0
  100. package/dist/UploadApi-RRAsIVG7.js +20 -0
  101. package/dist/{Year-CpcMBvQ7.js → Year-C2_kuiZX.js} +1 -1
  102. package/dist/Year-Cre43mQI.js +47 -0
  103. package/dist/assets/clone-BZn0cTAu.js +134 -0
  104. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  105. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  106. package/dist/assets/moment-h96o7c8I.js +2578 -0
  107. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  108. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  109. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  110. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  111. package/dist/main-KTzfgTac.js +9105 -0
  112. package/dist/main.js +139 -140
  113. package/dist/style.css +1 -1
  114. package/package.json +1 -1
  115. package/dist/Autocomplete-C9RS9-qw.js +0 -48
  116. package/dist/Autocomplete-DIucpEpj.js +0 -49
  117. package/dist/Callback-D6G_933H.js +0 -20
  118. package/dist/Cascader-C6t8Q18c.js +0 -41
  119. package/dist/Cascader-F_XWwXKY.js +0 -81
  120. package/dist/Checkbox-ipHs0O-8.js +0 -70
  121. package/dist/Code-DKtqow6y.js +0 -36
  122. package/dist/Code-LeguA9RL.js +0 -54
  123. package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
  124. package/dist/Column-BeQwafyN.js +0 -70
  125. package/dist/Comment-DIcCHP9F.js +0 -98
  126. package/dist/Compare-Dzqm7kPE.js +0 -38
  127. package/dist/Copy-iLieXx22.js +0 -43
  128. package/dist/Custom-BGtEDHlD.js +0 -51
  129. package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
  130. package/dist/Date-CNOCOcNz.js +0 -37
  131. package/dist/DateRange-CaIiObxN.js +0 -57
  132. package/dist/DateTime-CH6J1GoP.js +0 -38
  133. package/dist/Daterange-BUSKAGlK.js +0 -57
  134. package/dist/Delete-BeFC0gjD.js +0 -57
  135. package/dist/Dictionary-CsBiv-CI.js +0 -55
  136. package/dist/Email-Dwa6x3jW.js +0 -48
  137. package/dist/Index-Bpe7pY2Z.js +0 -4
  138. package/dist/Index-CUYQxzNd.js +0 -174
  139. package/dist/Index-DMnL8F7Y.js +0 -4
  140. package/dist/Index-DNG25ox2.js +0 -4
  141. package/dist/Index-DqUNI6MV.js +0 -4
  142. package/dist/Int-BFv18KXi.js +0 -38
  143. package/dist/Int-C0ijmdYS.js +0 -41
  144. package/dist/List-CfQzWq_5.js +0 -74
  145. package/dist/Maintaince-BzDEwQcU.js +0 -14
  146. package/dist/Month-Bp_Pfi_b.js +0 -37
  147. package/dist/Month-CKkjwzza.js +0 -38
  148. package/dist/Paging-DpoBp7x_.js +0 -95
  149. package/dist/QueryApi-VwISnk96.js +0 -13
  150. package/dist/RichText-CNahMrfb.js +0 -41
  151. package/dist/Select-BeNZqAP1.js +0 -112
  152. package/dist/Select-CqOE6uI8.js +0 -80
  153. package/dist/Text-5803XWI6.js +0 -4
  154. package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
  155. package/dist/TextLink-TYXcDAlo.js +0 -59
  156. package/dist/Time-Dd-Trib4.js +0 -37
  157. package/dist/Timeline-D6LCIkQp.js +0 -53
  158. package/dist/Tree-BKmFZrK3.js +0 -118
  159. package/dist/TreeNode-L_A5ZKy0.js +0 -37
  160. package/dist/Upload-DJRh4a7g.js +0 -68
  161. package/dist/Upload-Ozg_nOpI.js +0 -147
  162. package/dist/UploadApi-DVx69g-F.js +0 -13
  163. package/dist/Year-D7XGe2So.js +0 -41
  164. package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
  165. package/dist/main-DB_sVyZe.js +0 -3620
@@ -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-KTzfgTac.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,10 +1,15 @@
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 s } from "./assets/halo-fe-B-NiIGas.js";
3
- import { j as N } from "./main-DB_sVyZe.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-KTzfgTac.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
4
9
  import "element-plus";
5
10
  import "vue-router";
6
11
  import "./assets/intro.js-DxWjEdp_.js";
7
- 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), z = /* @__PURE__ */ C({
12
+ 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), I = /* @__PURE__ */ C({
8
13
  __name: "Detail",
9
14
  props: {
10
15
  route: {},
@@ -13,19 +18,19 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
13
18
  set: {}
14
19
  },
15
20
  emits: ["copy", "edit", "close"],
16
- setup(f, { emit: _ }) {
17
- let l = _, u = f, { route: D, table: r, set: p, next: j } = h(u), d = (o) => {
18
- l("copy", p.value[r.value.name][0], o);
21
+ setup(_, { emit: f }) {
22
+ let i = f, u = _, { route: D, table: p, set: s, next: w } = h(u), d = (o) => {
23
+ i("copy", s.value[p.value.name][0], o);
19
24
  }, y = (o) => {
20
- l("edit", p.value[r.value.name][0], o);
25
+ i("edit", s.value[p.value.name][0], o);
21
26
  }, k = () => {
22
- l("close");
27
+ i("close");
23
28
  };
24
- return (o, w) => {
29
+ return (o, E) => {
25
30
  const n = v("el-button");
26
31
  return x(), b(e(N), { padding: 5 }, {
27
32
  default: t(() => [
28
- c(n, {
33
+ l(n, {
29
34
  type: "primary",
30
35
  onClick: e(y)
31
36
  }, {
@@ -33,11 +38,11 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
33
38
  V
34
39
  ]),
35
40
  default: t(() => [
36
- a(" " + i(e(s)("common.modify")), 1)
41
+ c(" " + a(e(m)("common.modify")), 1)
37
42
  ]),
38
43
  _: 1
39
44
  }, 8, ["onClick"]),
40
- c(n, {
45
+ l(n, {
41
46
  type: "primary",
42
47
  plain: "",
43
48
  onClick: e(d)
@@ -46,16 +51,16 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
46
51
  g
47
52
  ]),
48
53
  default: t(() => [
49
- a(" " + i(e(s)("common.copy")), 1)
54
+ c(" " + a(e(m)("common.copy")), 1)
50
55
  ]),
51
56
  _: 1
52
57
  }, 8, ["onClick"]),
53
- c(n, { onClick: e(k) }, {
58
+ l(n, { onClick: e(k) }, {
54
59
  icon: t(() => [
55
60
  B
56
61
  ]),
57
62
  default: t(() => [
58
- a(" " + i(e(s)("common.back")), 1)
63
+ c(" " + a(e(m)("common.back")), 1)
59
64
  ]),
60
65
  _: 1
61
66
  }, 8, ["onClick"])
@@ -66,5 +71,5 @@ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
66
71
  }
67
72
  });
68
73
  export {
69
- z as default
74
+ I as default
70
75
  };
@@ -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 w } from "vue";
2
+ import { w as s, S as H, A } from "./main-KTzfgTac.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 H.isEmpty(e) ? [] : e.split(",");
38
+ }), _ = o(() => A.fromValues(f.value, c.value.control.data.data, "value", "text"));
39
+ return (e, F) => {
40
+ const v = h("el-tag");
41
+ return r(), a("div", D, [
42
+ (r(!0), a(V, null, S(b(_), (l, y) => (r(), k(v, {
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)) : w("", !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 { j as K } from "./main-KTzfgTac.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,12 +1,17 @@
1
- import { defineComponent as Y, toRefs as j, ref as H, 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 P, useRouter as A } from "vue-router";
3
- import { o as G, H as c, e as I, T as J, Y as K } from "./assets/halo-fe-B-NiIGas.js";
4
- import { h as M } from "./main-DB_sVyZe.js";
1
+ import { defineComponent as K, 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 { K as H, b as I, D as c, t as J, h as M, c as O } from "./main-KTzfgTac.js";
9
+ import "./assets/liquidjs-C-LVcoaY.js";
5
10
  import "element-plus";
6
11
  import "./assets/intro.js-DxWjEdp_.js";
7
- import { _ as O } from "./SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js";
8
- const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ */ s("i", { class: "fa fa-list" }, null, -1), X = [
9
- W
12
+ import { _ as Q } from "./SearchForm.vue_vue_type_style_index_0_lang-CVeFjNjG.js";
13
+ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ */ s("i", { class: "fa fa-list" }, null, -1), Y = [
14
+ X
10
15
  ], Z = /* @__PURE__ */ s("i", { class: "fa fa-image" }, null, -1), ee = [
11
16
  Z
12
17
  ], te = {
@@ -15,7 +20,7 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
15
20
  }, oe = { class: "file-image" }, ae = ["src"], le = { class: "file-title" }, se = { class: "file-name" }, ne = ["src", "alt"], re = { class: "file-title" }, ie = {
16
21
  key: 2,
17
22
  class: "not-support"
18
- }, ge = /* @__PURE__ */ Y({
23
+ }, Ce = /* @__PURE__ */ K({
19
24
  __name: "File",
20
25
  props: {
21
26
  searchData: {},
@@ -27,32 +32,32 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
27
32
  set: {}
28
33
  },
29
34
  setup(z) {
30
- let F = z, { schema: N, table: n, layout: i, next: d, set: b, searchData: ue } = j(F), f = P(), v = A(), k = H(), C = (o) => {
35
+ let D = z, { schema: F, table: n, layout: i, next: d, set: b, searchData: ue } = P(D), f = A(), v = G(), k = T(), C = (o) => {
31
36
  let a = { type: "fileLayout", value: o };
32
- J.post("/user/config", a).then((y) => {
37
+ M.post("/user/config", a).then((y) => {
33
38
  c.fileLayout = o;
34
39
  });
35
- }, V = (o) => {
40
+ }, N = (o) => {
36
41
  let a = { ...f.query };
37
42
  a.page = o, v.push({ path: d.value.paging.route, query: a });
38
- }, B = () => {
43
+ }, V = () => {
39
44
  let o = { ...f.query };
40
- o.page = "1", o.condition = K.encode(k.value);
45
+ o.page = "1", o.condition = O.encode(k.value);
41
46
  let a = { path: d.value.paging.route, query: o };
42
47
  v.push(a);
43
48
  };
44
49
  return (o, a) => {
45
- const y = p("router-link"), D = p("el-table-column"), R = p("el-table"), E = p("el-button"), T = p("el-pagination");
46
- return l(), u("div", Q, [
47
- h(e(M), {
48
- title: e(G)(o.module.type, o.module.name)
50
+ const y = p("router-link"), B = p("el-table-column"), R = p("el-table"), E = p("el-button"), j = p("el-pagination");
51
+ return l(), u("div", U, [
52
+ h(e(H), {
53
+ title: e(I)(o.module.type, o.module.name)
49
54
  }, {
50
55
  operation: r(() => [
51
- s("div", U, [
56
+ s("div", W, [
52
57
  s("a", {
53
58
  class: x({ active: e(c).fileLayout == "list" }),
54
59
  onClick: a[0] || (a[0] = (t) => e(C)("list"))
55
- }, X, 2),
60
+ }, Y, 2),
56
61
  s("a", {
57
62
  class: x({ active: e(c).fileLayout == "image" }),
58
63
  onClick: a[1] || (a[1] = (t) => e(C)("image"))
@@ -84,10 +89,10 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
84
89
  data: e(b)[e(n).name]
85
90
  }, {
86
91
  empty: r(() => [
87
- w(_(e(I)("common.no_data")), 1)
92
+ w(_(e(J)("common.no_data")), 1)
88
93
  ]),
89
94
  default: r(() => [
90
- (l(!0), u(L, null, q(e(n).show, (t, $) => (l(), g(D, {
95
+ (l(!0), u(L, null, q(e(n).show, (t, $) => (l(), g(B, {
91
96
  "show-overflow-tooltip": "",
92
97
  sortable: e(n) ? "custom" : !1,
93
98
  "min-width": "180",
@@ -114,12 +119,12 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
114
119
  }, 8, ["data"])) : (l(), u("div", ie, "未支持的文件布局:" + _(e(c).fileLayout), 1))
115
120
  ]),
116
121
  default: r(() => [
117
- e(n).search.length > 0 ? (l(), g(O, {
122
+ e(n).search.length > 0 ? (l(), g(Q, {
118
123
  key: 0,
119
- schema: e(N),
124
+ schema: e(F),
120
125
  table: e(n),
121
126
  search: e(k),
122
- onSubmit: e(B)
127
+ onSubmit: e(V)
123
128
  }, null, 8, ["schema", "table", "search", "onSubmit"])) : S("", !0)
124
129
  ]),
125
130
  _: 1
@@ -140,18 +145,18 @@ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = /* @__PURE__ *
140
145
  ]),
141
146
  _: 1
142
147
  }),
143
- h(T, {
148
+ h(j, {
144
149
  background: "",
145
150
  layout: "total, prev, pager, next, jumper",
146
151
  "current-page": e(i).page,
147
152
  "page-size": e(i).pageSize,
148
153
  total: e(i).count,
149
- onCurrentChange: e(V)
154
+ onCurrentChange: e(N)
150
155
  }, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
151
156
  ]);
152
157
  };
153
158
  }
154
159
  });
155
160
  export {
156
- ge as default
161
+ Ce as default
157
162
  };
@@ -1,4 +1,4 @@
1
- import { b as e } from "./main-DB_sVyZe.js";
1
+ import { p as e } from "./main-KTzfgTac.js";
2
2
  const r = {};
3
3
  function c(n, t) {
4
4
  return null;
@@ -0,0 +1,4 @@
1
+ import { a0 as f } from "./main-KTzfgTac.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-Bp091zxs.js";
1
+ import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-BJJPNo3Y.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,178 @@
1
+ import { defineComponent as z, ref as u, onMounted as j, computed as D, watch as P, resolveComponent as c, openBlock as d, createElementBlock as U, createVNode as g, unref as o, withCtx as m, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as C, isRef as L, withKeys as T, normalizeClass as Q, withModifiers as W, createTextVNode as $, Fragment as Y, renderList as Z, nextTick as F } from "vue";
2
+ import { useRoute as G } from "vue-router";
3
+ import "./assets/underscore-B0BCaBxV.js";
4
+ import { i as J, B as w, Y as X, t as i, S as ee, W as K, U as te, r as S, y as oe } from "./main-KTzfgTac.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__ */ z({
14
+ __name: "Index",
15
+ setup(pe) {
16
+ let a = u({ id: "", secret: "" }), p = u("password"), s = u(!1), _ = u(!1), R = u(), V = u(), h = u(), B = G(), 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
+ }, x = () => {
28
+ p.value == "password" ? p.value = "" : p.value = "password", F(() => {
29
+ h.value.focus();
30
+ });
31
+ }, E = async (t) => {
32
+ _.value = !0, R.value.validate(async (e) => {
33
+ if (!e)
34
+ return _.value = !1, !1;
35
+ (await K.sso.create(t)).login(a.value).then(({ data: f }) => {
36
+ te.getBackUrl() ? S.toBackUrl() : S.to("/");
37
+ }).finally(() => {
38
+ F(() => {
39
+ _.value = !1;
40
+ });
41
+ });
42
+ });
43
+ }, N = async (t) => {
44
+ let e = await K.sso.create(t), r = B.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
+ J.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(() => B, (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"), A = c("router-link"), I = c("el-form");
62
+ return d(), U("div", le, [
63
+ g(I, {
64
+ ref_key: "loginFormRef",
65
+ ref: R,
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(X)("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
+ })) : C("", !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(x) && o(x)(...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"])) : C("", !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"])) : C("", !0),
151
+ n("div", ie, [
152
+ (d(!0), U(Y, null, Z(o(w).ssos.filter((l) => l.type.toUpperCase() != "BEARER"), (l) => (d(), U("a", {
153
+ href: l.loginUrl
154
+ }, k(o(i)(l.text)), 9, ue))), 256)),
155
+ g(A, {
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 { a as f } from "./main-KTzfgTac.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { g as f } from "./main-KTzfgTac.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { G as f } from "./main-KTzfgTac.js";
2
+ export {
3
+ f as default
4
+ };