halo-pc 1.0.21 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. package/dist/Article-C_3LULzy.js +200 -0
  2. package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-Do6I1mma.js} +24 -18
  3. package/dist/{Autocomplete-BrKsj5vx.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-DGmv2biT.js → CSharp-BGn9jf2B.js} +1 -1
  7. package/dist/{Calender-dCiW7eIK.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-DklZD5ff.js → Checkbox-DnTLeLjt.js} +1 -1
  12. package/dist/Checkbox-dDfYBhhc.js +76 -0
  13. package/dist/{Code-DVZ9QWgE.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-QYs-sjcG.js +4 -0
  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-Cj_CPjIV.js +63 -0
  22. package/dist/Copy-BNt-Dwoo.js +49 -0
  23. package/dist/Custom-CYPkAqpf.js +57 -0
  24. package/dist/{DataExport-DAk1d4uG.js → DataExport-CHQtRKzA.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +42 -37
  26. package/dist/{DataImport-BLOSIbQ2.js → DataImport-CDcmH3Du.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js} +64 -60
  28. package/dist/{Date-D1KihBir.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-Dwg6aUf3.js → DateTime-CmJw1-WA.js} +1 -1
  33. package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-aDw57sTG.js} +19 -13
  34. package/dist/Daterange-C48t6usd.js +63 -0
  35. package/dist/{Decimal-tv9vqaXk.js → Decimal-Ca0K6NoZ.js} +1 -1
  36. package/dist/Delete-FhIvONUV.js +62 -0
  37. package/dist/{Detail-B2rtvufA.js → Detail-qqW0J946.js} +22 -17
  38. package/dist/Dictionary-CaXytFmK.js +59 -0
  39. package/dist/Email-H2DHJhMe.js +54 -0
  40. package/dist/{File-C63qevce.js → File-CjXewuui.js} +33 -28
  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-Cc_CDbUJ.js → Index-BrI9x7i7.js} +1 -1
  46. package/dist/Index-CXR5RC6-.js +4 -0
  47. package/dist/{Index-B6Ec8rbl.js → Index-CpGonJ_m.js} +1 -1
  48. package/dist/{Index-Cev7Nudv.js → Index-DUgprnVp.js} +1 -1
  49. package/dist/{Index-BD6O3A9N.js → Index-icEhc88J.js} +25 -20
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -16
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +21 -16
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
  53. package/dist/{Install-CTAGNKPW.js → Install-FwXpJIWk.js} +29 -24
  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-BJB6rQY8.js → Markdown-BhwqDlwa.js} +1 -1
  59. package/dist/{Month-ui1XorBW.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-Cf7kP6RU.js → Normal-Dya4aqc7.js} +49 -45
  63. package/dist/Paging-JXDzxoM0.js +99 -0
  64. package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BETGBySb.js} +31 -25
  65. package/dist/{PagingRow-eXCadgdO.js → PagingRow-BLqp1c9E.js} +28 -22
  66. package/dist/QueryApi-B5jI3sBl.js +20 -0
  67. package/dist/{Racebar-ClXzi9hV.js → Racebar-CozeXwLJ.js} +42 -37
  68. package/dist/{Radio-llyoK7PI.js → Radio-CuAxYw7j.js} +1 -1
  69. package/dist/{Register-BaHhaZMu.js → Register-B11jE2Ox.js} +70 -66
  70. package/dist/RichText-CxBE_cVg.js +47 -0
  71. package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-agTqPUGE.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
  73. package/dist/{SearchForm-CroUQ_3K.js → SearchForm-DNKmE8W0.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +37 -33
  75. package/dist/Select-BPa5rx_H.js +86 -0
  76. package/dist/{Select-BYw63gZy.js → Select-CRfEAtba.js} +35 -30
  77. package/dist/{Select-BtNeUq9h.js → Select-MqDjnB-C.js} +1 -1
  78. package/dist/{Single-CCVi3Pcj.js → Single-C5Kkr9SY.js} +106 -102
  79. package/dist/{Statistic-g3nQvsbW.js → Statistic-Ce_FMw5O.js} +34 -30
  80. package/dist/{Stock-CNqLeSld.js → Stock-BTjhpaxv.js} +1 -1
  81. package/dist/{Stock-C6Fxo31l.js → Stock-D8AJmsvb.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +30 -25
  83. package/dist/{Switch-NMkH-rhl.js → Switch-gwGbi34o.js} +1 -1
  84. package/dist/{Table-DpA4dO4P.js → Table-C03eUBYm.js} +66 -61
  85. package/dist/{Table-Cdd_tPoL.js → Table-DA8aGGEH.js} +69 -66
  86. package/dist/{Text-DanSgaL9.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-HhP_VFJV.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-Ck_7r3nf.js → Tree-CRDb0vS5.js} +101 -97
  95. package/dist/Tree-CTmXjN1O.js +122 -0
  96. package/dist/TreeNode-HFcGpAOb.js +42 -0
  97. package/dist/{Update-DrmLFoty.js → Update-EHyhYK5k.js} +20 -15
  98. package/dist/{UpdateChild-CGCn-Eh4.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-RGAEzf_V.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 +130 -130
  117. package/dist/style.css +1 -1
  118. package/package.json +1 -1
  119. package/dist/Article-D3N6eVpH.js +0 -195
  120. package/dist/Autocomplete-C1Q-qo5y.js +0 -49
  121. package/dist/Autocomplete-C_t_3Onz.js +0 -48
  122. package/dist/Callback-BcjLHYz6.js +0 -20
  123. package/dist/Cascader-BMs1Kw-s.js +0 -81
  124. package/dist/Cascader-BoZLMQjq.js +0 -41
  125. package/dist/Checkbox-DeuCkQ_E.js +0 -70
  126. package/dist/Code-CmB3ZGnM.js +0 -54
  127. package/dist/Code-Q9ETcIfA.js +0 -36
  128. package/dist/Code-hiW76EUm.js +0 -4
  129. package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
  130. package/dist/Column-K0p0pVuf.js +0 -69
  131. package/dist/Comment-B_jDWUXE.js +0 -98
  132. package/dist/Compare-CziDSVLD.js +0 -37
  133. package/dist/Compare-DFDzyQIR.js +0 -57
  134. package/dist/Copy-gHXEFE58.js +0 -43
  135. package/dist/Custom-DS1OrDHT.js +0 -51
  136. package/dist/Date-BOrgXdKV.js +0 -37
  137. package/dist/DateRange-Clg_We_d.js +0 -57
  138. package/dist/DateTime-Ba-L9NIq.js +0 -38
  139. package/dist/Daterange-Gaj6hNOK.js +0 -57
  140. package/dist/Delete-HzVURBlh.js +0 -57
  141. package/dist/Dictionary-DKnp-UJn.js +0 -55
  142. package/dist/Email-CpOxaSSw.js +0 -48
  143. package/dist/Image-DRIunv3_.js +0 -9
  144. package/dist/Index-DSKuNKCT.js +0 -4
  145. package/dist/Index-QIBRYf1L.js +0 -4
  146. package/dist/Index-ZOfKMgat.js +0 -4
  147. package/dist/Index-bxLda8lZ.js +0 -174
  148. package/dist/Int-DmNjhEfK.js +0 -38
  149. package/dist/Int-nUzbSSOv.js +0 -41
  150. package/dist/List-gNI3y_wH.js +0 -74
  151. package/dist/Maintaince-pTASKuMA.js +0 -14
  152. package/dist/Month-CHfaIo8p.js +0 -38
  153. package/dist/Month-DgztqRaq.js +0 -37
  154. package/dist/Paging-CBgVct8q.js +0 -95
  155. package/dist/QueryApi-Wf86Sm6m.js +0 -13
  156. package/dist/RichText-Cc_jptgY.js +0 -41
  157. package/dist/Select-wxKjwxJj.js +0 -80
  158. package/dist/Text-DgZjeg-u.js +0 -4
  159. package/dist/Text-GuLK7BYX.js +0 -53
  160. package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
  161. package/dist/TextLink-B_Ur1pg0.js +0 -59
  162. package/dist/Time-CmyrAm3i.js +0 -37
  163. package/dist/Timeline-B85T2wBn.js +0 -53
  164. package/dist/Tree-OqvNLgYj.js +0 -118
  165. package/dist/TreeNode-Ba2f55wK.js +0 -37
  166. package/dist/Upload-D9HeSZCg.js +0 -68
  167. package/dist/Upload-DXADyB6r.js +0 -147
  168. package/dist/UploadApi-DAT-xdsM.js +0 -13
  169. package/dist/Year-Dx_qNPrz.js +0 -41
  170. package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
  171. package/dist/main-COiaaxGk.js +0 -3542
@@ -1,15 +1,19 @@
1
- import { defineComponent as xe, toRefs as ge, ref as v, onMounted as Ce, onUnmounted as we, computed as q, watch as Ne, resolveComponent as D, openBlock as i, createBlock as g, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as _, Fragment as Ke, renderList as Se, withDirectives as Re, resolveDynamicComponent as $e, createCommentVNode as C, createTextVNode as w, toDisplayString as k, vShow as De, nextTick as F } from "vue";
2
- import { s as M, e as A, P as p, f as Ie, m as G, L as H, g as J, K as Te, ao as Ve } from "./assets/halo-fe-idvmXC0t.js";
3
- import { c as Le, d as Q, f as qe, e as Ue, g as Be, _ as W } from "./main-COiaaxGk.js";
1
+ import { defineComponent as xe, toRefs as ge, ref as v, onMounted as Ce, onUnmounted as we, computed as q, watch as Ne, resolveComponent as T, openBlock as i, createBlock as g, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as _, Fragment as Ke, renderList as Se, withDirectives as Re, resolveDynamicComponent as $e, createCommentVNode as C, createTextVNode as w, toDisplayString as b, vShow as Te, nextTick as O } from "vue";
2
+ import { c as P, d as Ie, w as j, I as Ue, E as De, J as Ve, b as F, t as p, a as J, m as qe, T as G, h as Q, A as W, U as Le, M as Be } from "./main-C1iALE1f.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/file-saver-CwlpTZSc.js";
5
+ import "./assets/clone-BZn0cTAu.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
4
8
  import "vue-router";
5
9
  import "./assets/intro.js-DxWjEdp_.js";
6
- const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), ze = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), je = /* @__PURE__ */ c("i", { class: "fa fa-copy" }, null, -1), Oe = /* @__PURE__ */ c("i", { class: "fa fa-trash" }, null, -1), Fe = {
10
+ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), He = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Me = /* @__PURE__ */ c("i", { class: "fa fa-copy" }, null, -1), Ae = /* @__PURE__ */ c("i", { class: "fa fa-trash" }, null, -1), Oe = {
7
11
  key: 2,
8
12
  class: "ha-empty"
9
- }, Me = {
13
+ }, Pe = {
10
14
  key: 3,
11
15
  class: "tree-add"
12
- }, Ae = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Ye = /* @__PURE__ */ xe({
16
+ }, je = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), tl = /* @__PURE__ */ xe({
13
17
  __name: "Tree",
14
18
  props: {
15
19
  searchData: {},
@@ -23,111 +27,111 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
23
27
  },
24
28
  emits: ["refresh", "succeed", "search", "navigate"],
25
29
  setup(X, { expose: Y, emit: Z }) {
26
- let b = Z, ee = X, { route: N, module: U, schema: le, table: m, layout: o, next: y, set: Ge, searchData: te } = ge(ee), K = v(), B = v(), x = v(), S = v(), E = v(), ae = v(), d = v({ type: null, name: null, url: null, visible: !1 }), R = v(), I = null, a = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), P = () => {
30
+ let k = Z, ee = X, { route: N, module: L, schema: le, table: m, layout: r, next: y, set: Fe, searchData: te } = ge(ee), K = v(), B = v(), x = v(), S = v(), E = v(), ae = v(), d = v({ type: null, name: null, url: null, visible: !1 }), R = v(), I = null, a = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), z = () => {
27
31
  if (!K.value)
28
32
  return;
29
33
  let l = K.value.$el.querySelector(".is-context");
30
34
  l && l.classList.remove("is-context");
31
- }, oe = (l, t, r, n) => {
32
- P(), n.vnode.el.classList.add("is-context"), a.value.currentNode = t, I.show(l);
35
+ }, re = (l, t, o, n) => {
36
+ z(), n.vnode.el.classList.add("is-context"), a.value.currentNode = t, I.show(l);
33
37
  }, $ = (l) => {
34
- let t = o.value.parentId, r = { [t]: null };
35
- l == "sibling" ? r[t] = a.value.currentNode[t] : l == "child" && (r[t] = a.value.currentNode[o.value.id]);
36
- let n = M.encode(r), u = `${y.value.insert.route}?default=${n}`;
37
- l == "copy" && (u += "&id=" + a.value.currentNode[o.value.id]), d.value.url = u, d.value.visible = !0;
38
- }, z = () => {
39
- let l = a.value.currentNode[o.value.id], t = a.value.currentNode[o.value.text], r = p("common.confirm_delete", t);
40
- Ie.confirm(p("common.tips"), r, { type: "warning" }).then(() => {
41
- re(l);
38
+ let t = r.value.parentId, o = { [t]: null };
39
+ l == "sibling" ? o[t] = a.value.currentNode[t] : l == "child" && (o[t] = a.value.currentNode[r.value.id]);
40
+ let n = P.encode(o), u = `${y.value.insert.route}?default=${n}`;
41
+ l == "copy" && (u += "&id=" + a.value.currentNode[r.value.id]), d.value.url = u, d.value.visible = !0;
42
+ }, H = () => {
43
+ let l = a.value.currentNode[r.value.id], t = a.value.currentNode[r.value.text], o = p("common.confirm_delete", t);
44
+ qe.confirm(p("common.tips"), o, { type: "warning" }).then(() => {
45
+ oe(l);
42
46
  });
43
- }, re = (l) => {
44
- let t = o.value.id, r = o.value.data, n = G.getNextById(l, t, r, "Children");
45
- H.post(y.value.delete.route, [l]).then(() => {
46
- G.removeById(l, t, r, "Children");
47
+ }, oe = (l) => {
48
+ let t = r.value.id, o = r.value.data, n = G.getNextById(l, t, o, "Children");
49
+ Q.post(y.value.delete.route, [l]).then(() => {
50
+ G.removeById(l, t, o, "Children");
47
51
  let u = null;
48
- n && (u = n[t], a.value.currentKey = u, a.value.expandedKeys.push(u)), b("succeed", () => {
49
- T(a.value.scrollTop);
52
+ n && (u = n[t], a.value.currentKey = u, a.value.expandedKeys.push(u)), k("succeed", () => {
53
+ U(a.value.scrollTop);
50
54
  });
51
55
  });
52
56
  }, ne = (l) => {
53
57
  a.value.scrollTop = l.scrollTop;
54
- }, T = (l = null, t = null) => {
55
- a.value.visible = !1, F(() => {
56
- a.value.visible = !0, F(() => {
58
+ }, U = (l = null, t = null) => {
59
+ a.value.visible = !1, O(() => {
60
+ a.value.visible = !0, O(() => {
57
61
  if (l == null) {
58
- let r = K.value.$el.querySelector(".el-tree-node.is-current");
59
- r && r.scrollIntoView({ block: "center", behavior: "smooth" });
62
+ let o = K.value.$el.querySelector(".el-tree-node.is-current");
63
+ o && o.scrollIntoView({ block: "center", behavior: "smooth" });
60
64
  } else
61
65
  S.value.setScrollTop(l);
62
66
  t && t();
63
67
  });
64
68
  });
65
69
  }, ue = () => {
66
- d.value.visible = !1, b("succeed", () => {
67
- T(a.value.scrollTop);
70
+ d.value.visible = !1, k("succeed", () => {
71
+ U(a.value.scrollTop);
68
72
  });
69
73
  }, se = (l) => {
70
74
  d.value.type = l.module.type, d.value.name = l.module.name;
71
75
  }, de = () => {
72
76
  d.value.visible = !1;
73
- }, ie = (l, t, r) => {
74
- P();
75
- let n = l[o.value.id];
76
- if (J.pushIfNotExist(a.value.expandedKeys, n), n == a.value.currentKey)
77
+ }, ie = (l, t, o) => {
78
+ z();
79
+ let n = l[r.value.id];
80
+ if (W.pushIfNotExist(a.value.expandedKeys, n), n == a.value.currentKey)
77
81
  x.value.refresh();
78
82
  else {
79
- a.value.currentKey = n, R.value = V();
80
- let u = Te.getUrl(N.value.fullPath, { id: n });
81
- b("navigate", u);
83
+ a.value.currentKey = n, R.value = D();
84
+ let u = Le.getUrl(N.value.fullPath, { id: n });
85
+ k("navigate", u);
82
86
  }
83
- }, ce = (l, t, r) => {
84
- J.remove(a.value.expandedKeys, l[o.value.id]);
85
- }, ve = (l, t, r, n) => {
87
+ }, ce = (l, t, o) => {
88
+ W.remove(a.value.expandedKeys, l[r.value.id]);
89
+ }, ve = (l, t, o, n) => {
86
90
  let u = {
87
- table: o.value.table,
88
- id: l.data[o.value.id],
89
- targetId: t.data[o.value.id],
90
- position: r
91
+ table: r.value.table,
92
+ id: l.data[r.value.id],
93
+ targetId: t.data[r.value.id],
94
+ position: o
91
95
  };
92
- H.post(o.value.operation.route, u).then((O) => {
96
+ Q.post(r.value.operation.route, u).then((A) => {
93
97
  });
94
98
  }, fe = (l) => {
95
- b("search", l);
99
+ k("search", l);
96
100
  }, me = (l) => {
97
101
  }, pe = (l, t) => l ? t[m.value.text].indexOf(l) !== -1 : !0, ye = () => {
98
- b("refresh");
102
+ k("refresh");
99
103
  }, he = (l, t) => {
100
104
  if (!x.value || !x.value.keyboard)
101
105
  return !1;
102
106
  x.value.keyboard(l, t);
103
107
  }, _e = () => {
104
108
  S.value.update();
105
- }, V = () => {
106
- let l = y.value[o.value.page.toLowerCase()].route;
109
+ }, D = () => {
110
+ let l = y.value[r.value.page.toLowerCase()].route;
107
111
  return a.value.currentKey && (l += "?id=" + a.value.currentKey), l;
108
- }, ke = () => {
112
+ }, be = () => {
109
113
  let l = N.value.query.id, t;
110
- l == null ? t = o.value.updateKey : t = Q.convert(l, j.value.type), t && (a.value.currentKey = t, a.value.expandedKeys = [t], R.value = V()), T(null, () => {
111
- I = new Ve(B.value, [S.value.$el, E.value]);
114
+ l == null ? t = r.value.updateKey : t = j.convert(l, M.value.type), t && (a.value.currentKey = t, a.value.expandedKeys = [t], R.value = D()), U(null, () => {
115
+ I = new Be(B.value, [S.value.$el, E.value]);
112
116
  });
113
117
  };
114
118
  Ce(() => {
115
- ke();
119
+ be();
116
120
  }), we(() => {
117
121
  I.dispose();
118
122
  }), q(() => {
119
- let l = { [o.value.parentId]: N.value.query.id };
120
- return M.encode(l);
123
+ let l = { [r.value.parentId]: N.value.query.id };
124
+ return P.encode(l);
121
125
  });
122
- let be = q(() => {
126
+ let ke = q(() => {
123
127
  let l = `/${m.value.name}/tree-node`;
124
- return Le.getComponent(l, "partial", "tree-node");
125
- }), j = q(() => m.value.fields.find((t) => t.name == o.value.id));
128
+ return Ie.getComponent(l, "partial", "tree-node");
129
+ }), M = q(() => m.value.fields.find((t) => t.name == r.value.id));
126
130
  return Ne(() => N.value, (l, t) => {
127
- a.value.currentKey = Q.convert(l.query.id, j.value.type), R.value = V();
131
+ a.value.currentKey = j.convert(l.query.id, M.value.type), R.value = D();
128
132
  }), Y({ refresh: ye, keyboard: he, resize: _e }), (l, t) => {
129
- const r = D("el-scrollbar"), n = D("el-tree"), u = D("el-button"), O = D("el-drawer");
130
- return i(), g(e(qe), {
133
+ const o = T("el-scrollbar"), n = T("el-tree"), u = T("el-button"), A = T("el-drawer");
134
+ return i(), g(e(Ue), {
131
135
  class: "tree",
132
136
  width: e(a).width,
133
137
  onResize: t[5] || (t[5] = (s) => e(a).width = s)
@@ -140,13 +144,13 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
140
144
  ref: ae,
141
145
  class: "tree-search"
142
146
  }, [
143
- _(r, null, {
147
+ _(o, null, {
144
148
  default: f(() => [
145
- (i(!0), h(Ke, null, Se(e(m).search, (s, L) => (i(), h("div", {
149
+ (i(!0), h(Ke, null, Se(e(m).search, (s, V) => (i(), h("div", {
146
150
  class: "search-field",
147
- key: L
151
+ key: V
148
152
  }, [
149
- _(e(Ue), {
153
+ _(e(De), {
150
154
  schema: e(le),
151
155
  table: e(m),
152
156
  field: s,
@@ -158,11 +162,11 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
158
162
  ]),
159
163
  _: 1
160
164
  })
161
- ], 512)) : (i(), g(e(Be), {
165
+ ], 512)) : (i(), g(e(Ve), {
162
166
  key: 1,
163
- title: e(A)(e(U).type, e(U).name)
167
+ title: e(F)(e(L).type, e(L).name)
164
168
  }, null, 8, ["title"])),
165
- Re(_(r, {
169
+ Re(_(o, {
166
170
  ref_key: "scrollbarRef",
167
171
  ref: S,
168
172
  class: "tree-content",
@@ -174,25 +178,25 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
174
178
  ref_key: "treeRef",
175
179
  ref: K,
176
180
  "highlight-current": "",
177
- "show-checkbox": e(o).checkbox,
181
+ "show-checkbox": e(r).checkbox,
178
182
  "expand-on-click-node": !1,
179
- draggable: !!e(o).operation,
180
- data: e(o).data,
181
- "node-key": e(o).id,
183
+ draggable: !!e(r).operation,
184
+ data: e(r).data,
185
+ "node-key": e(r).id,
182
186
  "current-node-key": e(a).currentKey,
183
- props: { children: "Children", label: e(o).text },
187
+ props: { children: "Children", label: e(r).text },
184
188
  "filter-node-method": e(pe),
185
189
  "default-expanded-keys": e(a).expandedKeys,
186
190
  onNodeClick: e(ie),
187
- onNodeContextmenu: e(oe),
191
+ onNodeContextmenu: e(re),
188
192
  onNodeCollapse: e(ce),
189
193
  onNodeDrop: e(ve)
190
194
  }, {
191
- default: f(({ node: s, data: L }) => [
192
- (i(), g($e(e(be)), {
195
+ default: f(({ node: s, data: V }) => [
196
+ (i(), g($e(e(ke)), {
193
197
  table: e(m),
194
- layout: e(o),
195
- row: L,
198
+ layout: e(r),
199
+ row: V,
196
200
  node: s
197
201
  }, null, 8, ["table", "layout", "row", "node"]))
198
202
  ]),
@@ -206,46 +210,46 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
206
210
  c("li", {
207
211
  onClick: t[0] || (t[0] = (s) => e($)("child"))
208
212
  }, [
209
- Pe,
210
- w(k(e(p)("tree.add_sub_item")), 1)
213
+ ze,
214
+ w(b(e(p)("tree.add_sub_item")), 1)
211
215
  ]),
212
216
  c("li", {
213
217
  onClick: t[1] || (t[1] = (s) => e($)("sibling"))
214
218
  }, [
215
- ze,
216
- w(k(e(p)("tree.add_same_grade")), 1)
219
+ He,
220
+ w(b(e(p)("tree.add_same_grade")), 1)
217
221
  ]),
218
222
  c("li", {
219
223
  onClick: t[2] || (t[2] = (s) => e($)("copy"))
220
224
  }, [
221
- je,
222
- w(k(e(p)("common.copy")), 1)
225
+ Me,
226
+ w(b(e(p)("common.copy")), 1)
223
227
  ]),
224
228
  e(y).delete ? (i(), h("li", {
225
229
  key: 0,
226
230
  onClick: t[3] || (t[3] = //@ts-ignore
227
- (...s) => e(z) && e(z)(...s))
231
+ (...s) => e(H) && e(H)(...s))
228
232
  }, [
229
- Oe,
230
- w(k(e(p)("common.delete")), 1)
233
+ Ae,
234
+ w(b(e(p)("common.delete")), 1)
231
235
  ])) : C("", !0)
232
236
  ], 512)
233
237
  ]),
234
238
  _: 1
235
239
  }, 8, ["onScroll"]), [
236
- [De, e(o).data.length]
240
+ [Te, e(r).data.length]
237
241
  ]),
238
- e(o).data.length ? C("", !0) : (i(), h("div", Fe, k(e(p)("common.no_data")), 1)),
239
- !e(o).data.length && e(y).insert ? (i(), h("div", Me, [
242
+ e(r).data.length ? C("", !0) : (i(), h("div", Oe, b(e(p)("common.no_data")), 1)),
243
+ !e(r).data.length && e(y).insert ? (i(), h("div", Pe, [
240
244
  _(u, {
241
245
  type: "primary",
242
246
  onClick: e($)
243
247
  }, {
244
248
  icon: f(() => [
245
- Ae
249
+ je
246
250
  ]),
247
251
  default: f(() => [
248
- w(" " + k(e(y).insert.title), 1)
252
+ w(" " + b(e(y).insert.title), 1)
249
253
  ]),
250
254
  _: 1
251
255
  }, 8, ["onClick"])
@@ -258,22 +262,22 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
258
262
  ref: E,
259
263
  class: "tree-detail"
260
264
  }, [
261
- e(a).currentKey ? (i(), g(e(W), {
265
+ e(a).currentKey ? (i(), g(e(J), {
262
266
  key: 0,
263
267
  ref_key: "singleRef",
264
268
  ref: x,
265
269
  url: e(R)
266
270
  }, null, 8, ["url"])) : C("", !0)
267
271
  ], 512),
268
- _(O, {
272
+ _(A, {
269
273
  size: "60%",
270
274
  "destroy-on-close": "",
271
- title: e(A)(e(d).type, e(d).name),
275
+ title: e(F)(e(d).type, e(d).name),
272
276
  modelValue: e(d).visible,
273
277
  "onUpdate:modelValue": t[4] || (t[4] = (s) => e(d).visible = s)
274
278
  }, {
275
279
  default: f(() => [
276
- _(e(W), {
280
+ _(e(J), {
277
281
  url: e(d).url,
278
282
  onLoaded: e(se),
279
283
  onSucceed: e(ue),
@@ -289,5 +293,5 @@ const Ee = { class: "tree-left" }, Pe = /* @__PURE__ */ c("i", { class: "fa fa-p
289
293
  }
290
294
  });
291
295
  export {
292
- Ye as default
296
+ tl as default
293
297
  };
@@ -0,0 +1,122 @@
1
+ import { defineComponent as Q, toRefs as U, ref as m, onMounted as X, watch as Y, nextTick as V, resolveComponent as N, openBlock as k, createElementBlock as w, unref as d, Fragment as K, renderList as L, createBlock as B, withCtx as b, createVNode as Z, createElementVNode as ee, toDisplayString as D, createCommentVNode as H } from "vue";
2
+ import { D as le, A as _, T as M, s as A } from "./main-C1iALE1f.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 "./assets/liquidjs-C-LVcoaY.js";
8
+ const te = { class: "option-text" }, ae = {
9
+ key: 0,
10
+ class: "option-suffix"
11
+ }, he = /* @__PURE__ */ Q({
12
+ __name: "Tree",
13
+ props: {
14
+ route: {},
15
+ validateErrors: {},
16
+ module: {},
17
+ schema: {},
18
+ table: {},
19
+ layout: {},
20
+ next: {},
21
+ set: {}
22
+ },
23
+ setup(F, { expose: P }) {
24
+ let S = F, { module: $, schema: re, table: u, layout: l, set: p } = U(S), E = m(), T = m([]), x = m(), y = m(0), g = m([]), R = m(!0), z = (e, r, o) => {
25
+ let a = p.value[u.value.name].find((n) => n.PermissionId == e[l.value.id]);
26
+ a && (a[l.value.expand] = !0);
27
+ }, W = (e, r, o) => {
28
+ let a = p.value[u.value.name].find((n) => n.PermissionId == e[l.value.id]);
29
+ a && (a[l.value.expand] = !1);
30
+ }, j = (e, r, o) => {
31
+ let a = r.checkedKeys, n = e[l.value.id], i = _.contains(a, n), c = [], s = [], h = M.getChildren(e, "Children").map((t) => t[l.value.id]), f = p.value[u.value.name].map((t) => t[l.value.checked]), v = _.intersect(h, f);
32
+ if (i) {
33
+ c.push(e[l.value.id]);
34
+ let t = _.except(h, v);
35
+ t.length && (a.push(...t), c.push(...t));
36
+ } else
37
+ s.push(n), v.length == h.length && (s.push(...h), _.remove(a, h));
38
+ c.length && q(c), s.length && G(s);
39
+ }, q = (e) => {
40
+ for (let r = 0; r < e.length; r++) {
41
+ let o = A.getDefaultRow(u.value);
42
+ o[l.value.checked] = e[r], p.value[u.value.name].push(o);
43
+ }
44
+ }, G = (e) => {
45
+ let r = p.value[u.value.name];
46
+ for (let o = 0; o < e.length; o++) {
47
+ let a = r.find((n) => n[l.value.checked] == e[o]);
48
+ _.remove(r, a);
49
+ }
50
+ }, J = (e) => {
51
+ x.value = e.contentRect.width, y.value = Math.ceil(x.value / 300), I(u.value, l.value, p.value);
52
+ }, I = (e, r, o) => {
53
+ g.value = A.getLines(r.data, y.value, (a) => [a], () => 1), V(() => {
54
+ let a = o[e.name].map((i) => i[r.checked]), n = 0;
55
+ for (let i = 0; i < g.value.length; i++) {
56
+ let c = g.value[i];
57
+ for (let s = 0; s < c.length; s++) {
58
+ let C = T.value[n], h = c[s].data, f = M.getFlat(h, "Children").map((t) => t[r.id]), v = _.intersect(f, a);
59
+ if (!(v.length == 1 && f.length > 1)) for (let t = 0; t < v.length; t++) {
60
+ let O = v[t];
61
+ C.setChecked(O, !0, !1);
62
+ }
63
+ n++;
64
+ }
65
+ }
66
+ });
67
+ };
68
+ return X(() => {
69
+ x.value = le.getWidth(E.value), y.value = Math.ceil(x.value / 300), I(u.value, l.value, p.value);
70
+ }), Y(() => u.value, (e, r) => {
71
+ R.value = !1, V(() => {
72
+ R.value = !0, I(e, l.value, p.value);
73
+ });
74
+ }), P({ resize: J }), (e, r) => {
75
+ const o = N("el-tree"), a = N("el-col"), n = N("el-row");
76
+ return k(), w("div", {
77
+ ref_key: "layoutRef",
78
+ ref: E,
79
+ class: "ha-tree-layout"
80
+ }, [
81
+ d(R) ? (k(!0), w(K, { key: 0 }, L(d(g), (i, c) => (k(), B(n, null, {
82
+ default: b(() => [
83
+ (k(!0), w(K, null, L(i, ({ data: s, span: C, index: h }, f) => (k(), B(a, {
84
+ span: C,
85
+ key: `${c}.${f}`
86
+ }, {
87
+ default: b(() => [
88
+ Z(o, {
89
+ ref_for: !0,
90
+ ref_key: "treeRefs",
91
+ ref: T,
92
+ "show-checkbox": "",
93
+ "highlight-current": "",
94
+ "default-expand-all": !1,
95
+ "expand-on-click-node": !1,
96
+ "node-key": d(l).id,
97
+ data: s,
98
+ props: { children: "Children", label: d(l).text },
99
+ disabled: d($).type == "Detail",
100
+ onNodeExpand: d(z),
101
+ onNodeCollapse: d(W),
102
+ onCheck: (v, t) => d(j)(v, t, h)
103
+ }, {
104
+ default: b(({ node: v, data: t }) => [
105
+ ee("div", te, D(t[d(l).text]), 1),
106
+ d(l).suffix ? (k(), w("div", ae, D(t[d(l).suffix]), 1)) : H("", !0)
107
+ ]),
108
+ _: 2
109
+ }, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
110
+ ]),
111
+ _: 2
112
+ }, 1032, ["span"]))), 128))
113
+ ]),
114
+ _: 2
115
+ }, 1024))), 256)) : H("", !0)
116
+ ], 512);
117
+ };
118
+ }
119
+ });
120
+ export {
121
+ he as default
122
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as x, toRefs as h, computed as C, openBlock as a, createElementBlock as s, unref as e, createElementVNode as N, toDisplayString as i, createTextVNode as b, createCommentVNode as d } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import { t as g, S as y } from "./main-C1iALE1f.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ const k = ["title"], v = { class: "number" }, S = {
9
+ key: 0,
10
+ class: "option-suffix"
11
+ }, V = {
12
+ key: 1,
13
+ class: "count"
14
+ }, H = /* @__PURE__ */ x({
15
+ __name: "TreeNode",
16
+ props: {
17
+ table: {},
18
+ layout: {},
19
+ row: {},
20
+ node: {}
21
+ },
22
+ setup(p) {
23
+ let u = p, { table: c, layout: r, row: t, node: m } = h(u), f = (o, l) => {
24
+ let n = (o.parent.data.Children ? o.parent.data.Children.indexOf(l) : o.parent.data.indexOf(l)) + 1;
25
+ return y.padLeft(n, 2, "0");
26
+ }, _ = C(() => c.value.fields.find((n) => n.name == r.value.text).control.i18N);
27
+ return (o, l) => {
28
+ var n;
29
+ return a(), s("div", {
30
+ title: e(t)[e(r).title]
31
+ }, [
32
+ N("span", v, i(e(f)(e(m), e(t))), 1),
33
+ b(" " + i((n = e(_)) != null && n.value ? e(g)(e(t)[e(r).text]) : e(t)[e(r).text]) + " ", 1),
34
+ e(r).suffix ? (a(), s("span", S, i(e(t)[e(r).suffix]), 1)) : d("", !0),
35
+ e(t).Children && e(t).Children.length > 0 ? (a(), s("span", V, "(" + i(e(t).Children.length) + ")", 1)) : d("", !0)
36
+ ], 8, k);
37
+ };
38
+ }
39
+ });
40
+ export {
41
+ H as default
42
+ };
@@ -1,9 +1,14 @@
1
- import { defineComponent as b, toRefs as C, ref as h, resolveComponent as x, openBlock as g, createBlock as v, unref as e, withCtx as t, createVNode as a, createSlots as y, createTextVNode as i, toDisplayString as r, createElementVNode as p } from "vue";
2
- import { P as m } from "./assets/halo-fe-idvmXC0t.js";
3
- import { i as N } from "./main-COiaaxGk.js";
1
+ import { defineComponent as b, toRefs as C, ref as h, resolveComponent as x, openBlock as g, createBlock as v, unref as e, withCtx as t, createVNode as s, createSlots as y, createTextVNode as a, toDisplayString as r, createElementVNode as p } 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";
4
9
  import "vue-router";
5
10
  import "./assets/intro.js-DxWjEdp_.js";
6
- const V = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), B = /* @__PURE__ */ p("i", { class: "fa fa-chevron-left" }, null, -1), T = /* @__PURE__ */ b({
11
+ const V = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), B = /* @__PURE__ */ p("i", { class: "fa fa-chevron-left" }, null, -1), A = /* @__PURE__ */ b({
7
12
  __name: "Update",
8
13
  props: {
9
14
  table: {},
@@ -12,27 +17,27 @@ const V = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), B = /* @__
12
17
  set: {}
13
18
  },
14
19
  emits: ["submit", "close"],
15
- setup(f, { expose: u, emit: _ }) {
20
+ setup(u, { expose: f, emit: _ }) {
16
21
  let n = _;
17
- C(f);
18
- let o = h(!1), l = (s) => {
19
- o.value = !0, n("submit", s, null, (k) => {
22
+ C(u);
23
+ let o = h(!1), i = (l) => {
24
+ o.value = !0, n("submit", l, null, (k) => {
20
25
  o.value = !1;
21
26
  });
22
27
  }, d = () => {
23
28
  n("close");
24
29
  };
25
- return u({ submit: l }), (s, k) => {
30
+ return f({ submit: i }), (l, k) => {
26
31
  const c = x("el-button");
27
32
  return g(), v(e(N), { padding: 5 }, {
28
33
  default: t(() => [
29
- a(c, {
34
+ s(c, {
30
35
  type: "primary",
31
36
  loading: e(o),
32
- onClick: e(l)
37
+ onClick: e(i)
33
38
  }, y({
34
39
  default: t(() => [
35
- i(" " + r(e(m)("common.confirm")), 1)
40
+ a(" " + r(e(m)("common.confirm")), 1)
36
41
  ]),
37
42
  _: 2
38
43
  }, [
@@ -44,12 +49,12 @@ const V = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), B = /* @__
44
49
  key: "0"
45
50
  }
46
51
  ]), 1032, ["loading", "onClick"]),
47
- a(c, { onClick: e(d) }, {
52
+ s(c, { onClick: e(d) }, {
48
53
  icon: t(() => [
49
54
  B
50
55
  ]),
51
56
  default: t(() => [
52
- i(" " + r(e(m)("common.back")), 1)
57
+ a(" " + r(e(m)("common.back")), 1)
53
58
  ]),
54
59
  _: 1
55
60
  }, 8, ["onClick"])
@@ -60,5 +65,5 @@ const V = /* @__PURE__ */ p("i", { class: "fa fa-check" }, null, -1), B = /* @__
60
65
  }
61
66
  });
62
67
  export {
63
- T as default
68
+ A as default
64
69
  };