halo-pc 1.0.27 → 1.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/dist/{Article-CTqryR4L.js → Article-CTzPZjf8.js} +75 -70
  2. package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-jyfzfZHH.js} +23 -17
  3. package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-D8ytFwqa.js} +1 -1
  4. package/dist/Autocomplete-DoUE3T0L.js +53 -0
  5. package/dist/Autocomplete-FGRT-2ru.js +54 -0
  6. package/dist/{CSharp-Dt6H75E9.js → CSharp-qh_kEfGr.js} +1 -1
  7. package/dist/{Calender-DhKZyJri.js → Calender-DOuq9uAK.js} +1 -1
  8. package/dist/Callback-DuaBaO1q.js +26 -0
  9. package/dist/Cascader-DgKBpjUK.js +47 -0
  10. package/dist/Cascader-s8VT55_K.js +87 -0
  11. package/dist/{Checkbox-C-iEGB0k.js → Checkbox-D9NUw4jZ.js} +1 -1
  12. package/dist/Checkbox-REcdbTXR.js +76 -0
  13. package/dist/Code-CBVRms_j.js +4 -0
  14. package/dist/Code-DZ-bK9UT.js +60 -0
  15. package/dist/Code-DfnLveft.js +42 -0
  16. package/dist/{Code-JtSSnUWC.js → Code-loaJtKGd.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BVLhtr1Y.js +65 -0
  18. package/dist/Column-B96LbQFW.js +75 -0
  19. package/dist/Comment-bPWbEkgq.js +104 -0
  20. package/dist/Compare-D4O0qmYv.js +44 -0
  21. package/dist/{Compare-DZVrBYEh.js → Compare-dimRoHFX.js} +25 -19
  22. package/dist/Copy-CKLxfWd4.js +49 -0
  23. package/dist/Custom-Bwyy4_tA.js +57 -0
  24. package/dist/{DataExport-DSz5371s.js → DataExport-Bp50K0_6.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
  26. package/dist/{DataImport-CX7G70a7.js → DataImport-BWI4eCxA.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-DCS1SfNf.js +176 -0
  28. package/dist/Date-Cf64NT4R.js +43 -0
  29. package/dist/{Date-ytWe2gz8.js → Date-FBemqmex.js} +1 -1
  30. package/dist/DateRange-D5kvmDIo.js +63 -0
  31. package/dist/DateTime-CTGuyJ4w.js +44 -0
  32. package/dist/{DateTime-p6YgmtGd.js → DateTime-Cvnnthwx.js} +1 -1
  33. package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-Gb33uiRV.js} +17 -11
  34. package/dist/Daterange-CfAdeV7J.js +63 -0
  35. package/dist/{Decimal-BvyzJq1c.js → Decimal-B-fyPiuP.js} +1 -1
  36. package/dist/Delete-DhbWFnzt.js +62 -0
  37. package/dist/{Detail-DZJ0aUFr.js → Detail-DV-JRRLT.js} +22 -17
  38. package/dist/Dictionary-b_mbt-WU.js +59 -0
  39. package/dist/Email-C2Yl7bMF.js +54 -0
  40. package/dist/{File-BEBElTSS.js → File-D57qYYt1.js} +32 -27
  41. package/dist/{Image-DDK05SW7.js → Image-BKNUY356.js} +1 -1
  42. package/dist/{Index-CuEyzMd0.js → Index-BPfkpoVf.js} +25 -20
  43. package/dist/Index-BUCyMvJX.js +4 -0
  44. package/dist/Index-BtxNIZsx.js +4 -0
  45. package/dist/Index-C5WYmq9P.js +4 -0
  46. package/dist/{Index-DPwdcUO4.js → Index-CSzgmzRG.js} +1 -1
  47. package/dist/Index-ChWD2gJt.js +4 -0
  48. package/dist/{Index-BiF8qEWf.js → Index-P3uHTgX-.js} +1 -1
  49. package/dist/Index-PB-VnCO7.js +178 -0
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -15
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +17 -12
  52. package/dist/{Install-CxuoWpHC.js → Install-o0VJz9Rl.js} +27 -22
  53. package/dist/Int-BNwPsWfI.js +44 -0
  54. package/dist/Int-DN3vf18e.js +46 -0
  55. package/dist/List-DRAtVlgE.js +79 -0
  56. package/dist/Maintaince-CdVk7qiu.js +20 -0
  57. package/dist/{Markdown-x1hASyA-.js → Markdown-CFwOeXFg.js} +1 -1
  58. package/dist/Month-CrvLoEQy.js +43 -0
  59. package/dist/Month-CyB2owvQ.js +44 -0
  60. package/dist/{Month-Bb0tgF-k.js → Month-DsKmd425.js} +1 -1
  61. package/dist/{Normal-CYmy5sN7.js → Normal-B_SPQW9Z.js} +70 -66
  62. package/dist/Paging-CzCgExDM.js +99 -0
  63. package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-Bfnnsv6m.js} +30 -24
  64. package/dist/{PagingRow-CR2N1vgm.js → PagingRow-BXaakA5y.js} +26 -20
  65. package/dist/QueryApi-Cah37Kwx.js +20 -0
  66. package/dist/{Racebar-BsgDK6Zf.js → Racebar-6FTe1C4G.js} +42 -37
  67. package/dist/{Radio-B3Af-uZE.js → Radio-rym8cXJN.js} +1 -1
  68. package/dist/{Register-Cwr3iIZm.js → Register-v__-wpY2.js} +44 -40
  69. package/dist/RichText-BDP5KDin.js +47 -0
  70. package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-0mHMD0Xf.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
  72. package/dist/{SearchForm-BOw_kHs2.js → SearchForm-jSIiiv2r.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +40 -36
  74. package/dist/Select-Cpj86Kaw.js +86 -0
  75. package/dist/Select-DKjXN6Ag.js +117 -0
  76. package/dist/{Select-BdYG1KQE.js → Select-R0EsEK0_.js} +1 -1
  77. package/dist/{Single-DqCIZBIB.js → Single-fIhSt1dN.js} +103 -99
  78. package/dist/{Statistic-B9ZcUUk1.js → Statistic-DM3Fr6sO.js} +37 -33
  79. package/dist/{Stock-BnBNtuo7.js → Stock-BemUvyqK.js} +1 -1
  80. package/dist/{Stock-BiSr7zAF.js → Stock-DUrxld5G.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +31 -26
  82. package/dist/{Switch-BE4dQcja.js → Switch-QdLS7c3q.js} +1 -1
  83. package/dist/{Table-CaH_zu8W.js → Table-BcVHufy3.js} +77 -74
  84. package/dist/{Table-e0uLPRLG.js → Table-C4dGV7IQ.js} +78 -73
  85. package/dist/{Text-BDAob4mp.js → Text-BJNnrW9U.js} +21 -15
  86. package/dist/{Text-BAw88r5O.js → Text-BNAKwCCe.js} +19 -13
  87. package/dist/Text-D3DqixJp.js +4 -0
  88. package/dist/Text.vue_vue_type_style_index_0_lang-B253xD5Z.js +59 -0
  89. package/dist/TextLink-D-9pICMh.js +65 -0
  90. package/dist/{Textarea-CU5PjIoa.js → Textarea-Cr5zt_LK.js} +1 -1
  91. package/dist/Time-DQJPtNWo.js +43 -0
  92. package/dist/Timeline-Dy37Cou2.js +59 -0
  93. package/dist/Tree-3zBuSLBv.js +122 -0
  94. package/dist/{Tree-D-v632h1.js → Tree-4v2brZjr.js} +105 -101
  95. package/dist/TreeNode-CvS8mLCJ.js +42 -0
  96. package/dist/{Update-DRAFce7_.js → Update-Cp50LcVx.js} +20 -15
  97. package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-CFi_DjLv.js} +23 -17
  98. package/dist/Upload-Bqp-5cFa.js +72 -0
  99. package/dist/Upload-D-hvecbh.js +150 -0
  100. package/dist/UploadApi-CC5hZcM_.js +20 -0
  101. package/dist/Year-CYSncKVk.js +47 -0
  102. package/dist/{Year-CpcMBvQ7.js → Year-q0tWWwkv.js} +1 -1
  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-D-QTCahZ.js +9107 -0
  112. package/dist/main.js +140 -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-Q_6THgGl.js +0 -4
  124. package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
  125. package/dist/Column-BeQwafyN.js +0 -70
  126. package/dist/Comment-DIcCHP9F.js +0 -98
  127. package/dist/Compare-Dzqm7kPE.js +0 -38
  128. package/dist/Copy-iLieXx22.js +0 -43
  129. package/dist/Custom-BGtEDHlD.js +0 -51
  130. package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
  131. package/dist/Date-CNOCOcNz.js +0 -37
  132. package/dist/DateRange-CaIiObxN.js +0 -57
  133. package/dist/DateTime-CH6J1GoP.js +0 -38
  134. package/dist/Daterange-BUSKAGlK.js +0 -57
  135. package/dist/Delete-BeFC0gjD.js +0 -57
  136. package/dist/Dictionary-CsBiv-CI.js +0 -55
  137. package/dist/Email-Dwa6x3jW.js +0 -48
  138. package/dist/Index-Bpe7pY2Z.js +0 -4
  139. package/dist/Index-CUYQxzNd.js +0 -174
  140. package/dist/Index-DMnL8F7Y.js +0 -4
  141. package/dist/Index-DNG25ox2.js +0 -4
  142. package/dist/Index-DqUNI6MV.js +0 -4
  143. package/dist/Int-BFv18KXi.js +0 -38
  144. package/dist/Int-C0ijmdYS.js +0 -41
  145. package/dist/List-CfQzWq_5.js +0 -74
  146. package/dist/Maintaince-BzDEwQcU.js +0 -14
  147. package/dist/Month-Bp_Pfi_b.js +0 -37
  148. package/dist/Month-CKkjwzza.js +0 -38
  149. package/dist/Paging-DpoBp7x_.js +0 -95
  150. package/dist/QueryApi-VwISnk96.js +0 -13
  151. package/dist/RichText-CNahMrfb.js +0 -41
  152. package/dist/Select-BeNZqAP1.js +0 -112
  153. package/dist/Select-CqOE6uI8.js +0 -80
  154. package/dist/Text-5803XWI6.js +0 -4
  155. package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
  156. package/dist/TextLink-TYXcDAlo.js +0 -59
  157. package/dist/Time-Dd-Trib4.js +0 -37
  158. package/dist/Timeline-D6LCIkQp.js +0 -53
  159. package/dist/Tree-BKmFZrK3.js +0 -118
  160. package/dist/TreeNode-L_A5ZKy0.js +0 -37
  161. package/dist/Upload-DJRh4a7g.js +0 -68
  162. package/dist/Upload-Ozg_nOpI.js +0 -147
  163. package/dist/UploadApi-DVx69g-F.js +0 -13
  164. package/dist/Year-D7XGe2So.js +0 -41
  165. package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
  166. package/dist/main-DB_sVyZe.js +0 -3620
@@ -1,10 +1,14 @@
1
- import { defineComponent as $e, toRefs as Ue, ref as u, computed as X, watch as Be, resolveComponent as f, openBlock as d, createElementBlock as j, normalizeClass as De, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as Le, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as B, resolveDynamicComponent as Pe, normalizeStyle as Ke, createTextVNode as te, nextTick as ae } from "vue";
2
- import { aP as Ne, e as oe, aM as qe, K as q, c as Me, T as Fe, v as ue, o as Oe, J as je } from "./assets/halo-fe-B-NiIGas.js";
3
- import { c as Ae, a as Je, _ as Ye, s as re } from "./main-DB_sVyZe.js";
4
- import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js";
5
- const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class: "row-title" }, Qe = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), We = [
6
- Qe
7
- ], Xe = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], rl = /* @__PURE__ */ $e({
1
+ import { defineComponent as Ue, toRefs as $e, ref as r, computed as Y, watch as Be, resolveComponent as p, openBlock as d, createElementBlock as H, normalizeClass as De, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as Le, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as B, resolveDynamicComponent as Ne, normalizeStyle as Oe, createTextVNode as te, nextTick as ae } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import { d as Pe, e as qe, t as oe, f as Ke, g as je, U as q, a as Fe, O as He, h as Me, m as re, b as Ae, i as Ge, s as ue } from "./main-D-QTCahZ.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js";
9
+ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class: "row-title" }, We = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), Xe = [
10
+ We
11
+ ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], dl = /* @__PURE__ */ Ue({
8
12
  __name: "Single",
9
13
  props: {
10
14
  base: {},
@@ -14,68 +18,68 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
14
18
  },
15
19
  emits: ["navigate", "load", "succeed", "close"],
16
20
  setup(se, { expose: ie, emit: de }) {
17
- let D = de, me = se, { url: ce, base: A, route: z } = Ue(me), p = u(), b = u(), c = u(), r = u(), y = u(), L = u(), v = u({ table: null, layout: null }), w = u(), P = u([]), ve = u(), E = u(), R = u(), M = u(), C = u(), K = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), F = u(), S = u(), fe = (l) => !0, pe = (l) => {
21
+ let D = de, me = se, { url: ce, base: M, route: z } = $e(me), f = r(), b = r(), c = r(), u = r(), _ = r(), L = r(), v = r({ table: null, layout: null }), w = r(), N = r([]), ve = r(), E = r(), R = r(), K = r(), C = r(), O = r(), i = r({ page: null, url: null, visible: !1, appendToBody: !1 }), k = r(!1), j = r(), S = r(), pe = (l) => !0, fe = (l) => {
18
22
  let t = q.getPath(ce.value), a = q.getPath(l);
19
23
  return t != a;
20
24
  }, be = () => {
21
25
  Ve();
22
- }, ye = (l, t) => {
23
- J("copy", l, t);
24
26
  }, _e = (l, t) => {
25
- J("update", l, t);
27
+ A("copy", l, t);
28
+ }, ye = (l, t) => {
29
+ A("update", l, t);
26
30
  }, he = () => {
27
31
  i.value.visible = !1;
28
- }, J = (l, t, a) => {
32
+ }, A = (l, t, a) => {
29
33
  let n = ge(l, t);
30
34
  a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
31
35
  }, ge = (l, t = null) => {
32
36
  let a = `${b.value[l].route}`;
33
37
  if (t != null) {
34
- let n = t[y.value.key.name];
38
+ let n = t[_.value.key.name];
35
39
  a += `?id=${n}`;
36
40
  }
37
41
  return a;
38
42
  }, we = (l, t, a) => {
39
- (a.ctrlKey || k.value) && (F.value = l, S.value = Me.clone(t), k.value = !0, S.value.fields.forEach((n) => {
43
+ (a.ctrlKey || k.value) && (j.value = l, S.value = He.clone(t), k.value = !0, S.value.fields.forEach((n) => {
40
44
  n.control.textualize = !1;
41
45
  }));
42
- }, Y = (l) => {
43
- i.value.visible = !1, D("succeed", Q.value, l);
46
+ }, G = (l) => {
47
+ i.value.visible = !1, D("succeed", W.value, l);
44
48
  }, Ce = () => {
45
49
  D("close");
46
- }, G = (l, t, a, n, T) => {
47
- }, H = (l, t) => {
50
+ }, I = (l, t, a, n, T) => {
51
+ }, J = (l, t) => {
48
52
  if (t) {
49
- L.value = y.value.layouts.find((a) => a.type == l);
53
+ L.value = _.value.layouts.find((a) => a.type == l);
50
54
  return;
51
55
  }
52
56
  v.value.layout = v.value.table.layouts.find((a) => a.type == l);
53
57
  }, ke = (l) => {
54
- let t = r.value.find((a) => a.name == l);
58
+ let t = u.value.find((a) => a.name == l);
55
59
  v.value.table = t, v.value.layout = t.layouts[0];
56
60
  }, xe = (l) => {
57
61
  let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
58
- r.value.find((T) => T.name == a).main || (w.value = a);
62
+ u.value.find((T) => T.name == a).main || (w.value = a);
59
63
  }, Re = (l, t = null, a = null) => {
60
64
  ae(() => {
61
65
  E.value.validate((n, T) => {
62
66
  if (!n)
63
67
  return xe(T), a && a(!1), !1;
64
- let $ = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
65
- t && t($, c.value), Fe.post($, c.value).then(({ data: U, message: V }) => {
66
- E.value.clearValidate(), ue.success(V), Y(c.value);
67
- }).catch(({ code: U, data: V, message: W }) => {
68
- if (U != "ValidateError")
68
+ let U = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
69
+ t && t(U, c.value), Me.post(U, c.value).then(({ data: $, message: V }) => {
70
+ E.value.clearValidate(), re.success(V), G(c.value);
71
+ }).catch(({ code: $, data: V, message: X }) => {
72
+ if ($ != "ValidateError")
69
73
  return;
70
- P.value = V;
71
- let N = V.find((_) => _.table !== y.value.name);
72
- if (N) {
73
- let _ = r.value.find((o) => o.name == N.table);
74
- _ && (w.value = _.name);
74
+ N.value = V;
75
+ let P = V.find((y) => y.table !== _.value.name);
76
+ if (P) {
77
+ let y = u.value.find((o) => o.name == P.table);
78
+ y && (w.value = y.name);
75
79
  }
76
80
  ae(() => {
77
- E.value.clearValidate(), E.value.validate((_, o) => {
78
- _ || (a && a(!1), P.value = []);
81
+ E.value.clearValidate(), E.value.validate((y, o) => {
82
+ y || (a && a(!1), N.value = []);
79
83
  });
80
84
  });
81
85
  }).finally(() => {
@@ -83,21 +87,21 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
83
87
  });
84
88
  });
85
89
  });
86
- }, I = (l) => {
90
+ }, Q = (l) => {
87
91
  var a, n;
88
- let t = Oe(l.module.type, l.module.name);
89
- je.setTitle(t, l.module.env), p.value = l.module, b.value = l.next, c.value = re.expandSet(l.schema, l.set), r.value = re.expandSchema(l.schema, l.set), y.value = (a = r.value) == null ? void 0 : a[0], L.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, v.value.table = r.value[1], v.value.layout = r.value[1].layouts[0]);
92
+ let t = Ae(l.module.type, l.module.name);
93
+ Ge.setTitle(t, l.module.env), f.value = l.module, b.value = l.next, c.value = ue.expandSet(l.schema, l.set), u.value = ue.expandSchema(l.schema, l.set), _.value = (a = u.value) == null ? void 0 : a[0], L.value = _.value.layouts[0], ((n = u.value) == null ? void 0 : n.length) > 1 && (w.value = u.value[1].name, v.value.table = u.value[1], v.value.layout = u.value[1].layouts[0]);
90
94
  }, Se = (l) => {
91
95
  R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
92
96
  }, Te = (l, t) => {
93
97
  if (l == "ctrlS") {
94
- if (p.value.type == "Detail") {
95
- if (!K.value || !K.value.keyboard)
98
+ if (f.value.type == "Detail") {
99
+ if (!O.value || !O.value.keyboard)
96
100
  return !1;
97
- K.value.keyboard(l, t);
101
+ O.value.keyboard(l, t);
98
102
  return;
99
103
  }
100
- O(t);
104
+ F(t);
101
105
  }
102
106
  }, Ve = () => {
103
107
  let l = q.getUrl(z.value.path, z.value.query);
@@ -105,31 +109,31 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
105
109
  });
106
110
  };
107
111
  (() => {
108
- I(A.value.data);
112
+ Q(M.value.data);
109
113
  })();
110
- let O = (l) => {
111
- if (!M.value.submit) {
112
- ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
114
+ let F = (l) => {
115
+ if (!K.value.submit) {
116
+ re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
113
117
  return;
114
118
  }
115
- M.value.submit(l);
116
- }, ze = X(() => {
117
- let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
118
- return Ae.getComponent(l, "partial", t);
119
- }), Q = X(() => p.value.type.toLowerCase());
120
- return Be(() => A.value, (l) => {
121
- I(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
122
- }), ie({ shouldLoad: fe, shouldSpin: pe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
123
- const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"), $ = f("el-form"), U = f("el-scrollbar"), V = f("el-popover"), W = f("el-form-item"), N = f("el-card"), _ = f("el-drawer");
124
- return d(), j("div", {
119
+ K.value.submit(l);
120
+ }, ze = Y(() => {
121
+ let l = `/${_.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
122
+ return Pe.getComponent(l, "partial", t);
123
+ }), W = Y(() => f.value.type.toLowerCase());
124
+ return Be(() => M.value, (l) => {
125
+ Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
126
+ }), ie({ shouldLoad: pe, shouldSpin: fe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
127
+ const a = p("el-tooltip"), n = p("el-tab-pane"), T = p("el-tabs"), U = p("el-form"), $ = p("el-scrollbar"), V = p("el-popover"), X = p("el-form-item"), P = p("el-card"), y = p("el-drawer");
128
+ return d(), H("div", {
125
129
  ref_key: "singleRef",
126
130
  ref: ve,
127
- class: De(["ha-single-page", { [e(Q) + "-page"]: !0, editing: e(k) }])
131
+ class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
128
132
  }, [
129
- m("div", Ge, [
130
- h(U, { class: "main-scroller" }, {
133
+ m("div", Ie, [
134
+ h($, { class: "main-scroller" }, {
131
135
  default: s(() => [
132
- h($, {
136
+ h(U, {
133
137
  ref_key: "formRef",
134
138
  ref: E,
135
139
  model: e(c),
@@ -140,19 +144,19 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
140
144
  h(ne, {
141
145
  ref_key: "mainRef",
142
146
  ref: R,
143
- module: e(p),
144
- schema: e(r),
145
- table: e(y),
147
+ module: e(f),
148
+ schema: e(u),
149
+ table: e(_),
146
150
  layout: e(L),
147
151
  next: e(b),
148
152
  set: e(c),
149
153
  route: e(z),
150
- "validate-errors": e(P),
151
- onChange: e(G),
152
- onLayoutChange: t[0] || (t[0] = (o) => e(H)(o, !0)),
153
- onSubmit: e(O)
154
+ "validate-errors": e(N),
155
+ onChange: e(I),
156
+ onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
157
+ onSubmit: e(F)
154
158
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
155
- e(r).length > 1 ? (d(), g(T, {
159
+ e(u).length > 1 ? (d(), g(T, {
156
160
  key: 0,
157
161
  type: "border-card",
158
162
  onTabChange: e(ke),
@@ -160,7 +164,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
160
164
  "onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
161
165
  }, {
162
166
  default: s(() => [
163
- (d(!0), j(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
167
+ (d(!0), H(ee, null, le(e(u).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
164
168
  name: o.name,
165
169
  key: o.name
166
170
  }, {
@@ -171,7 +175,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
171
175
  disabled: !o.tooltip
172
176
  }, {
173
177
  default: s(() => [
174
- m("div", null, x(e(Ne)(o.table)), 1)
178
+ m("div", null, x(e(qe)(o.table)), 1)
175
179
  ]),
176
180
  _: 2
177
181
  }, 1032, ["content", "disabled"])
@@ -185,18 +189,18 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
185
189
  key: 1,
186
190
  ref_key: "childRef",
187
191
  ref: C,
188
- module: e(p),
189
- schema: e(r),
192
+ module: e(f),
193
+ schema: e(u),
190
194
  table: e(v).table,
191
195
  layout: e(v).layout,
192
196
  next: e(b),
193
197
  set: e(c),
194
198
  route: e(z),
195
- "validate-errors": e(P),
199
+ "validate-errors": e(N),
196
200
  onRowEdit: e(we),
197
- onChange: e(G),
198
- onLayoutChange: t[2] || (t[2] = (o) => e(H)(o, !1)),
199
- onSubmit: e(O)
201
+ onChange: e(I),
202
+ onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
203
+ onSubmit: e(F)
200
204
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
201
205
  ]),
202
206
  _: 1
@@ -204,49 +208,49 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
204
208
  ]),
205
209
  _: 1
206
210
  }),
207
- (d(), g(Pe(e(ze)), {
211
+ (d(), g(Ne(e(ze)), {
208
212
  ref_key: "updateRef",
209
- ref: M,
213
+ ref: K,
210
214
  class: "main-footer",
211
- schema: e(r),
212
- table: e(y),
215
+ schema: e(u),
216
+ table: e(_),
213
217
  layout: e(L),
214
218
  next: e(b),
215
219
  set: e(c),
216
220
  route: e(z),
217
- onCopy: e(ye),
218
- onEdit: e(_e),
221
+ onCopy: e(_e),
222
+ onEdit: e(ye),
219
223
  onSubmit: e(Re),
220
224
  onClose: e(Ce)
221
225
  }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
222
226
  ]),
223
- e(k) ? (d(), g(N, {
227
+ e(k) ? (d(), g(P, {
224
228
  key: 0,
225
229
  class: "side-form"
226
230
  }, {
227
231
  header: s(() => [
228
- m("div", He, [
229
- m("div", Ie, x(e(oe)("common.modify")) + " " + x(e(F)[e(S).show[0].name]), 1),
232
+ m("div", Je, [
233
+ m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(S).show[0].name]), 1),
230
234
  m("div", {
231
235
  class: "row-close",
232
236
  onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
233
- }, We)
237
+ }, Xe)
234
238
  ])
235
239
  ]),
236
240
  default: s(() => [
237
- h(U, null, {
241
+ h($, null, {
238
242
  default: s(() => [
239
- h($, {
243
+ h(U, {
240
244
  size: "small",
241
245
  "label-width": "80px"
242
246
  }, {
243
247
  default: s(() => [
244
- (d(!0), j(ee, null, le(e(S).show, (o) => (d(), g(W, {
245
- style: Ke(o.control.height ? `height: ${o.control.height}px;` : ""),
248
+ (d(!0), H(ee, null, le(e(S).show, (o) => (d(), g(X, {
249
+ style: Oe(o.control.height ? `height: ${o.control.height}px;` : ""),
246
250
  rules: o.rules
247
251
  }, {
248
252
  label: s(() => [
249
- te(x(e(qe)(e(S).name, o.name)) + " ", 1),
253
+ te(x(e(Ke)(e(S).name, o.name)) + " ", 1),
250
254
  o.control.tooltip ? (d(), g(V, {
251
255
  key: 0,
252
256
  trigger: "hover",
@@ -255,7 +259,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
255
259
  title: o.control.tooltip.title
256
260
  }, {
257
261
  reference: s(() => [
258
- Xe
262
+ Ye
259
263
  ]),
260
264
  default: s(() => [
261
265
  m("pre", null, x(o.control.tooltip.content), 1)
@@ -264,12 +268,12 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
264
268
  }, 1032, ["title"])) : B("", !0)
265
269
  ]),
266
270
  default: s(() => [
267
- h(Je, {
268
- schema: e(r),
271
+ h(je, {
272
+ schema: e(u),
269
273
  table: e(S),
270
274
  field: o,
271
275
  set: e(c),
272
- row: e(F)
276
+ row: e(j)
273
277
  }, null, 8, ["schema", "table", "field", "set", "row"])
274
278
  ]),
275
279
  _: 2
@@ -283,11 +287,11 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
283
287
  ]),
284
288
  _: 1
285
289
  })) : B("", !0),
286
- e(i).page ? (d(), g(_, {
290
+ e(i).page ? (d(), g(y, {
287
291
  key: 1,
288
292
  "destroy-on-close": "",
289
293
  "append-to-body": e(i).appendToBody,
290
- size: `${e(p).width ?? "60%"}`,
294
+ size: `${e(f).width ?? "60%"}`,
291
295
  modelValue: e(i).visible,
292
296
  "onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
293
297
  }, {
@@ -301,11 +305,11 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
301
305
  ])
302
306
  ]),
303
307
  default: s(() => [
304
- h(e(Ye), {
308
+ h(e(Fe), {
305
309
  ref_key: "pageRef",
306
- ref: K,
310
+ ref: O,
307
311
  url: e(i).url,
308
- onSucceed: e(Y),
312
+ onSucceed: e(G),
309
313
  onClose: e(he)
310
314
  }, null, 8, ["url", "onSucceed", "onClose"])
311
315
  ]),
@@ -316,5 +320,5 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
316
320
  }
317
321
  });
318
322
  export {
319
- rl as default
323
+ dl as default
320
324
  };
@@ -1,8 +1,12 @@
1
- import { defineComponent as j, toRefs as q, ref as n, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as s, createElementVNode as K, normalizeStyle as P, nextTick as R } from "vue";
2
- import { H as Q, B as U, u as W, v as X, R as Y } from "./assets/halo-fe-B-NiIGas.js";
3
- import { s as Z } from "./main-DB_sVyZe.js";
4
- import { _ as ee } from "./SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js";
5
- const ie = /* @__PURE__ */ j({
1
+ import { defineComponent as j, toRefs as q, ref as n, onMounted as G, watch as M, openBlock as O, createElementBlock as I, createVNode as J, unref as i, createElementVNode as K, normalizeStyle as P, nextTick as R } from "vue";
2
+ import { D as Q, s as U, n as W, A as X, m as Y, E as Z } from "./main-D-QTCahZ.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
+ import { _ as ee } from "./SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js";
9
+ const de = /* @__PURE__ */ j({
6
10
  __name: "Statistic",
7
11
  props: {
8
12
  searchData: {},
@@ -15,17 +19,17 @@ const ie = /* @__PURE__ */ j({
15
19
  set: {}
16
20
  },
17
21
  emits: ["search"],
18
- setup(C, { expose: A, emit: F }) {
19
- let H = F, z = C, { route: B, module: E, schema: m, table: x, layout: l, next: te, set: u, searchData: y } = q(z), i = null, p = null, g = n(), f = n(), v = n(), b = n(), { app: S } = Q.sys, T = (t) => {
20
- V("search");
21
- }, V = (t, e = null) => {
22
- H(t, (r) => {
22
+ setup(A, { expose: C, emit: H }) {
23
+ let F = H, z = A, { route: D, module: E, schema: m, table: p, layout: l, next: te, set: u, searchData: y } = q(z), s = null, x = null, g = n(), d = n(), v = n(), b = n(), { app: S } = Q.sys, B = (t) => {
24
+ T("search");
25
+ }, T = (t, e = null) => {
26
+ F(t, (r) => {
23
27
  R(() => {
24
- d(), e && e(r);
28
+ f(), e && e(r);
25
29
  });
26
30
  });
27
- }, d = () => {
28
- let t = W.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
31
+ }, f = () => {
32
+ let t = X.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
29
33
  title: { text: E.value.title, left: "center", textStyle: { color: "#777" } },
30
34
  //标题
31
35
  tooltip: { trigger: "axis" },
@@ -60,10 +64,10 @@ const ie = /* @__PURE__ */ j({
60
64
  series: []
61
65
  };
62
66
  S.theme == "dark" && (e.title.textStyle.color = "rgba(255,255,255,0.8)", e.legend.textStyle.color = "rgba(255,255,255,.72)", e.xAxis.axisLabel.color = "rgba(255,255,255,.72)", e.yAxis.splitLine.lineStyle.color = "rgba(110,117,130,0.2)", e.yAxis.axisLabel.color = "rgba(255,255,255,.72)");
63
- let r = l.value.fields.find((a) => a.group && a.name != l.value.date), _ = x.value.fields.find((a) => a.name == r.name).control.data.data;
67
+ let r = l.value.fields.find((a) => a.group && a.name != l.value.date), _ = p.value.fields.find((a) => a.name == r.name).control.data.data;
64
68
  for (let a = 0; a < _.length; a++) {
65
69
  let o = _[a];
66
- o.color || X.error("颜色字段不能为空");
70
+ o.color || Y.error("颜色字段不能为空");
67
71
  let c = {
68
72
  name: o.text,
69
73
  type: "line",
@@ -109,46 +113,46 @@ const ie = /* @__PURE__ */ j({
109
113
  }
110
114
  e.series.push(c), e.legend.data.push(o.text);
111
115
  }
112
- e.xAxis.data.push(...t), i.setOption(e);
116
+ e.xAxis.data.push(...t), s.setOption(e);
113
117
  }, k = () => {
114
118
  var r;
115
- let t = Y.getHeight([(r = f.value) == null ? void 0 : r.$el]), e = b.value.getBoundingClientRect();
119
+ let t = Z.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = b.value.getBoundingClientRect();
116
120
  g.value = e.height - t - 10 - 1;
117
- }, D = (t) => {
118
- f.value.resize(t), R(() => {
119
- k(), i == null || i.resize();
121
+ }, V = (t) => {
122
+ d.value.resize(t), R(() => {
123
+ k(), s == null || s.resize();
120
124
  });
121
125
  }, N = () => {
122
- k(), i = p.init(v.value), d();
126
+ k(), s = x.init(v.value), f();
123
127
  };
124
128
  return G(async () => {
125
- y.value = Z.getConditionForm(m.value, B.value.query.condition), p = await U.getECharts(), N();
129
+ y.value = U.getConditionForm(m.value, D.value.query.condition), x = await W.getECharts(), N();
126
130
  }), M(() => l.value, (t, e) => {
127
- d();
128
- }), A({ resize: D }), (t, e) => (O(), I("div", {
131
+ f();
132
+ }), C({ resize: V }), (t, e) => (O(), I("div", {
129
133
  ref_key: "statisticRef",
130
134
  ref: b,
131
135
  class: "ha-statistic-layout"
132
136
  }, [
133
137
  J(ee, {
134
138
  ref_key: "searchRef",
135
- ref: f,
136
- schema: s(m),
137
- table: s(x),
138
- layout: s(l),
139
- set: s(u),
140
- "search-data": s(y),
141
- onChange: s(T)
139
+ ref: d,
140
+ schema: i(m),
141
+ table: i(p),
142
+ layout: i(l),
143
+ set: i(u),
144
+ "search-data": i(y),
145
+ onChange: i(B)
142
146
  }, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
143
147
  K("div", {
144
148
  ref_key: "chartRef",
145
149
  ref: v,
146
150
  class: "chart",
147
- style: P({ height: s(g) + "px" })
151
+ style: P({ height: i(g) + "px" })
148
152
  }, null, 4)
149
153
  ], 512));
150
154
  }
151
155
  });
152
156
  export {
153
- ie as default
157
+ de as default
154
158
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, toRefs as m, openBlock as u, createBlock as p, unref as e } from "vue";
2
- import { _ } from "./Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js";
2
+ import { _ } from "./Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js";
3
3
  const b = /* @__PURE__ */ c({
4
4
  __name: "Stock",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js";
1
+ import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js";
2
2
  export {
3
3
  f as default
4
4
  };