halo-pc 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/dist/Article-DASEvkfO.js +194 -0
  2. package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BSesl8iy.js} +17 -24
  3. package/dist/{Autocomplete-CIXGPZaG.js → Autocomplete-ClAQY5V5.js} +1 -1
  4. package/dist/Autocomplete-CzfOoMve.js +48 -0
  5. package/dist/Autocomplete-DToic2Cg.js +49 -0
  6. package/dist/{CSharp-BGzxI5QJ.js → CSharp-23QccebX.js} +1 -1
  7. package/dist/{Calender-DkBPl9bM.js → Calender-DZkQaIeV.js} +3 -3
  8. package/dist/Callback-CWBDUe_C.js +20 -0
  9. package/dist/Cascader-BDfFyqiv.js +41 -0
  10. package/dist/Cascader-CpD_hbhQ.js +81 -0
  11. package/dist/Checkbox--gCBkIuI.js +70 -0
  12. package/dist/{Checkbox-CuRjXSPc.js → Checkbox-SLi7MK1r.js} +1 -1
  13. package/dist/Code-BVTjF5rW.js +54 -0
  14. package/dist/{Code-BlwPnx9J.js → Code-C4hdU4t4.js} +1 -1
  15. package/dist/Code-CO4WPAe_.js +4 -0
  16. package/dist/Code-nrn4wOhB.js +36 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
  18. package/dist/Column-DcMAu4JL.js +68 -0
  19. package/dist/Comment-CPxVIapg.js +98 -0
  20. package/dist/Compare-C2oFy0EZ.js +56 -0
  21. package/dist/Compare-P9zOBC1v.js +26 -0
  22. package/dist/Copy-B5vrho98.js +43 -0
  23. package/dist/Custom-BETJLilj.js +51 -0
  24. package/dist/{DataExport-C0jItlVY.js → DataExport-YTc4EX6l.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
  26. package/dist/{DataImport-BfBkneEy.js → DataImport-ByV8MQkV.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
  28. package/dist/{Date-B8b9JXpP.js → Date-DbTzQla9.js} +1 -1
  29. package/dist/Date-DpiWNuFs.js +37 -0
  30. package/dist/DateRange-Su0Q2cwY.js +57 -0
  31. package/dist/{DateTime-DjhuyxFC.js → DateTime-C3NrioJi.js} +1 -1
  32. package/dist/DateTime-QyKfqaVG.js +38 -0
  33. package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-lytkhCjC.js} +11 -18
  34. package/dist/Daterange-D7ZHkOmo.js +57 -0
  35. package/dist/{Decimal-DqMMTfvl.js → Decimal-CTTT98BQ.js} +1 -1
  36. package/dist/Delete-MfXy7gUi.js +56 -0
  37. package/dist/{Detail-C-OFWPso.js → Detail-CUiSzyT7.js} +16 -23
  38. package/dist/Dictionary-Dd_IU-Hn.js +55 -0
  39. package/dist/Email-BzN4JpJv.js +48 -0
  40. package/dist/{File-C2fLmTcj.js → File-Ckh37Ne2.js} +42 -49
  41. package/dist/Image-Dkd69DoD.js +9 -0
  42. package/dist/Index-CGJLRExG.js +4 -0
  43. package/dist/Index-CLzHDG05.js +4 -0
  44. package/dist/Index-DJJcNPgN.js +173 -0
  45. package/dist/{Index-B90giDWQ.js → Index-DlrpDUD3.js} +1 -1
  46. package/dist/Index-DxvVjg9S.js +70 -0
  47. package/dist/{Index-CQURvmzd.js → Index-G36KYPCK.js} +1 -1
  48. package/dist/Index-dTIwhIau.js +4 -0
  49. package/dist/{Index-D7DerkIw.js → Index-x4c71OJZ.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
  53. package/dist/{Install-Cqj44p9F.js → Install-BW_ulT9I.js} +20 -27
  54. package/dist/Int-BRqYiJo7.js +41 -0
  55. package/dist/{Int-Bj3Gagp5.js → Int-BYSjwPG_.js} +9 -16
  56. package/dist/List-DAFqVlam.js +73 -0
  57. package/dist/Maintaince-B8mM4PEp.js +14 -0
  58. package/dist/{Markdown-COY9enBf.js → Markdown-BXKlgSON.js} +1 -1
  59. package/dist/Month-BHvq72xE.js +37 -0
  60. package/dist/Month-BiW1DL44.js +38 -0
  61. package/dist/{Month-B7jIGlKI.js → Month-DKeTzNrD.js} +1 -1
  62. package/dist/{Normal-B8YL2DeI.js → Normal-CgSREifM.js} +52 -58
  63. package/dist/Paging-D02YApLL.js +94 -0
  64. package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-DJ7MmfGl.js} +37 -44
  65. package/dist/{PagingRow-CHDlm8UI.js → PagingRow-BM1GMtrr.js} +21 -28
  66. package/dist/QueryApi-ChpV_S8J.js +13 -0
  67. package/dist/{Racebar-ClsuYbRj.js → Racebar-CZlaC5Gm.js} +43 -49
  68. package/dist/{Radio-C6j5nvI9.js → Radio-BPq3WJa4.js} +1 -1
  69. package/dist/{Register-BnwfjjXP.js → Register-ByxrZyWq.js} +74 -80
  70. package/dist/RichText-BtQDAhn9.js +41 -0
  71. package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-B61gsy3w.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
  73. package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CLvZoPGQ.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
  75. package/dist/Select-C_afSAvf.js +111 -0
  76. package/dist/{Select-Z8b2t5QQ.js → Select-DGXJMnE9.js} +19 -26
  77. package/dist/{Select-BiFIpc5-.js → Select-Nb9K2FMY.js} +1 -1
  78. package/dist/{Single-DdcVVH9V.js → Single-C-2qA2MU.js} +111 -117
  79. package/dist/{Statistic-B7niMPBf.js → Statistic-B1K-qIZb.js} +30 -36
  80. package/dist/{Stock-CRsu1vcy.js → Stock-C560McFR.js} +1 -1
  81. package/dist/{Stock-xm8v4vDf.js → Stock-_rnn0B8I.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +26 -32
  83. package/dist/{Switch-BaER4xWy.js → Switch-BadvkLSw.js} +1 -1
  84. package/dist/{Table-a5uj25Nj.js → Table-B46N43V3.js} +69 -74
  85. package/dist/{Table-C2dYPoGi.js → Table-Dk48tQ1r.js} +59 -66
  86. package/dist/Text-CNF204mx.js +53 -0
  87. package/dist/Text-DblKaz4m.js +52 -0
  88. package/dist/Text-y-q7UXlg.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
  90. package/dist/TextLink-B4Q0zX1K.js +59 -0
  91. package/dist/{Textarea-DAICkidp.js → Textarea-D1BOQFgK.js} +1 -1
  92. package/dist/Time-DZQxglEi.js +37 -0
  93. package/dist/Timeline-8QaD9H_I.js +53 -0
  94. package/dist/Tree-BUcyK0i_.js +117 -0
  95. package/dist/{Tree-BwQkDP2T.js → Tree-DVeTdmmL.js} +66 -72
  96. package/dist/TreeNode-BScAFHPZ.js +37 -0
  97. package/dist/{Update-BZe92EwV.js → Update-BbU5H_Qf.js} +14 -21
  98. package/dist/{UpdateChild-DN6pwrUK.js → UpdateChild-BbXuXfOR.js} +19 -26
  99. package/dist/Upload-C1obfZui.js +146 -0
  100. package/dist/Upload-CmtHETKR.js +67 -0
  101. package/dist/UploadApi-2sfpKCMa.js +13 -0
  102. package/dist/Year-CRd3PkNx.js +41 -0
  103. package/dist/{Year-2tcz8PDF.js → Year-CTo-9KjE.js} +1 -1
  104. package/dist/main-65efBfek.js +19835 -0
  105. package/dist/main.js +53 -54
  106. package/dist/style.css +1 -1
  107. package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
  108. package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
  109. package/esm/vite.config.d.ts +6 -0
  110. package/package.json +1 -1
  111. package/dist/Article-BH4dl6Bf.js +0 -201
  112. package/dist/Autocomplete-DYxWYClO.js +0 -55
  113. package/dist/Autocomplete-SOenNkH4.js +0 -54
  114. package/dist/Callback-B57W83N1.js +0 -27
  115. package/dist/Cascader-BI6T7N-q.js +0 -88
  116. package/dist/Cascader-BoN_F8v4.js +0 -48
  117. package/dist/Checkbox-DdolP6wO.js +0 -77
  118. package/dist/Code--y8oCkjX.js +0 -43
  119. package/dist/Code-C48Gf7gU.js +0 -61
  120. package/dist/Code-DiOQvIZv.js +0 -4
  121. package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
  122. package/dist/Column-BNGw36Iq.js +0 -75
  123. package/dist/Comment-D37SdQb6.js +0 -105
  124. package/dist/Compare-C09T8aaU.js +0 -33
  125. package/dist/Compare-CnnCTG12.js +0 -63
  126. package/dist/Copy-DNrXXJRQ.js +0 -50
  127. package/dist/Custom--I04Jyzr.js +0 -58
  128. package/dist/Date-TKW4HbCJ.js +0 -44
  129. package/dist/DateRange-JCP1Eokf.js +0 -64
  130. package/dist/DateTime-DVOVXS_f.js +0 -45
  131. package/dist/Daterange-CqHXC9JN.js +0 -64
  132. package/dist/Delete-PcTE_3Cp.js +0 -63
  133. package/dist/Dictionary-Cfhmc2OQ.js +0 -60
  134. package/dist/Email-Rj-ZvdfJ.js +0 -55
  135. package/dist/Image-zgBgvAup.js +0 -9
  136. package/dist/Index-9fyKz8TT.js +0 -4
  137. package/dist/Index-CAlWNb2l.js +0 -179
  138. package/dist/Index-CjFLlnmH.js +0 -4
  139. package/dist/Index-Cr2WAY6Z.js +0 -76
  140. package/dist/Index-Izl4chSJ.js +0 -4
  141. package/dist/Int-dlbcQ6_t.js +0 -47
  142. package/dist/List-BsAOvgmQ.js +0 -80
  143. package/dist/Maintaince-DjSvIfbu.js +0 -21
  144. package/dist/Month-BhNUuzcc.js +0 -44
  145. package/dist/Month-KDuTRSA0.js +0 -45
  146. package/dist/Paging-BlFnu-w0.js +0 -100
  147. package/dist/QueryApi-Bc_kmvgs.js +0 -21
  148. package/dist/RichText-BImFNkHQ.js +0 -48
  149. package/dist/Select-f15Y0Ko-.js +0 -118
  150. package/dist/Text-CMEzogZ8.js +0 -4
  151. package/dist/Text-CqKE2xDo.js +0 -59
  152. package/dist/Text-DfqLW_KH.js +0 -60
  153. package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
  154. package/dist/TextLink-XJurKE8Q.js +0 -66
  155. package/dist/Time-BmdIHgOY.js +0 -44
  156. package/dist/Timeline-BOPAiaK-.js +0 -60
  157. package/dist/Tree-BR8gmBBa.js +0 -123
  158. package/dist/TreeNode-CdBVgaRW.js +0 -43
  159. package/dist/Upload-BtErvzEO.js +0 -151
  160. package/dist/Upload-vPTA8ndw.js +0 -73
  161. package/dist/UploadApi-CpwS4Kf1.js +0 -21
  162. package/dist/Year-CVqwpSLR.js +0 -48
  163. package/dist/assets/@intlify-BISCQg1h.js +0 -2189
  164. package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
  165. package/dist/assets/@vue-aVYGocXp.js +0 -93
  166. package/dist/assets/clone-BZn0cTAu.js +0 -134
  167. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  168. package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
  169. package/dist/assets/moment-h96o7c8I.js +0 -2578
  170. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  171. package/dist/assets/state-local-CEworIRt.js +0 -131
  172. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  173. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  174. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  175. package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
  176. package/dist/main-BS_9gx1M.js +0 -8937
@@ -1,16 +1,10 @@
1
- import { defineComponent as Ue, toRefs as $e, ref as r, computed as Y, watch as Be, resolveComponent as v, 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, U as q, a as je, O as Fe, h as He, m as re, b as Me, i as Ae, s as ue } from "./main-BS_9gx1M.js";
5
- import "./assets/file-saver-CwlpTZSc.js";
6
- import "./assets/@monaco-editor-BCDRi0Ti.js";
7
- import "./assets/moment-h96o7c8I.js";
8
- import "./assets/liquidjs-C-LVcoaY.js";
9
- import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js";
10
- import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js";
11
- 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 = [
12
- We
13
- ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], cl = /* @__PURE__ */ Ue({
1
+ import { defineComponent as Ue, toRefs as $e, ref as u, computed as Y, watch as Le, resolveComponent as f, openBlock as d, createElementBlock as W, normalizeClass as Be, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as De, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as L, resolveDynamicComponent as qe, normalizeStyle as Ke, createTextVNode as te, nextTick as ae } from "vue";
2
+ import { c as Ne, K as Pe, U as oe, q as Fe, W as P, _ as Me, t as Oe, L as We, a as ue, b as je, G as Ae, s as re } from "./main-65efBfek.js";
3
+ import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-DVYceMeD.js";
4
+ import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js";
5
+ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class: "row-title" }, Qe = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), Xe = [
6
+ Qe
7
+ ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], rl = /* @__PURE__ */ Ue({
14
8
  __name: "Single",
15
9
  props: {
16
10
  base: {},
@@ -20,68 +14,68 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
20
14
  },
21
15
  emits: ["navigate", "load", "succeed", "close"],
22
16
  setup(se, { expose: ie, emit: de }) {
23
- let D = de, me = se, { url: ce, base: M, route: z } = $e(me), f = r(), b = r(), c = r(), u = r(), _ = r(), L = r(), p = r({ table: null, layout: null }), w = r(), N = r([]), pe = r(), E = r(), S = r(), K = r(), C = r(), O = r(), i = r({ page: null, url: null, visible: !1, appendToBody: !1 }), k = r(!1), j = r(), R = r(), ve = (l) => !0, fe = (l) => {
24
- let t = q.getPath(ce.value), a = q.getPath(l);
17
+ let B = de, me = se, { url: ce, base: j, route: z } = $e(me), p = u(), b = u(), c = u(), r = u(), y = u(), D = u(), v = u({ table: null, layout: null }), w = u(), q = u([]), ve = u(), E = u(), R = u(), F = u(), C = u(), K = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), M = u(), S = u(), fe = (l) => !0, pe = (l) => {
18
+ let t = P.getPath(ce.value), a = P.getPath(l);
25
19
  return t != a;
26
20
  }, be = () => {
27
21
  Ve();
28
- }, _e = (l, t) => {
29
- A("copy", l, t);
30
22
  }, ye = (l, t) => {
23
+ A("copy", l, t);
24
+ }, _e = (l, t) => {
31
25
  A("update", l, t);
32
26
  }, he = () => {
33
27
  i.value.visible = !1;
34
28
  }, A = (l, t, a) => {
35
29
  let n = ge(l, t);
36
- a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
30
+ a.ctrlKey ? B("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
37
31
  }, ge = (l, t = null) => {
38
32
  let a = `${b.value[l].route}`;
39
33
  if (t != null) {
40
- let n = t[_.value.key.name];
34
+ let n = t[y.value.key.name];
41
35
  a += `?id=${n}`;
42
36
  }
43
37
  return a;
44
38
  }, we = (l, t, a) => {
45
- (a.ctrlKey || k.value) && (j.value = l, R.value = Fe.clone(t), k.value = !0, R.value.fields.forEach((n) => {
39
+ (a.ctrlKey || k.value) && (M.value = l, S.value = Oe.clone(t), k.value = !0, S.value.fields.forEach((n) => {
46
40
  n.control.textualize = !1;
47
41
  }));
48
42
  }, G = (l) => {
49
- i.value.visible = !1, D("succeed", W.value, l);
43
+ i.value.visible = !1, B("succeed", Q.value, l);
50
44
  }, Ce = () => {
51
- D("close");
52
- }, I = (l, t, a, n, T) => {
53
- }, J = (l, t) => {
45
+ B("close");
46
+ }, H = (l, t, a, n, T) => {
47
+ }, I = (l, t) => {
54
48
  if (t) {
55
- L.value = _.value.layouts.find((a) => a.type == l);
49
+ D.value = y.value.layouts.find((a) => a.type == l);
56
50
  return;
57
51
  }
58
- p.value.layout = p.value.table.layouts.find((a) => a.type == l);
52
+ v.value.layout = v.value.table.layouts.find((a) => a.type == l);
59
53
  }, ke = (l) => {
60
- let t = u.value.find((a) => a.name == l);
61
- p.value.table = t, p.value.layout = t.layouts[0];
54
+ let t = r.value.find((a) => a.name == l);
55
+ v.value.table = t, v.value.layout = t.layouts[0];
62
56
  }, xe = (l) => {
63
57
  let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
64
- u.value.find((T) => T.name == a).main || (w.value = a);
65
- }, Se = (l, t = null, a = null) => {
58
+ r.value.find((T) => T.name == a).main || (w.value = a);
59
+ }, Re = (l, t = null, a = null) => {
66
60
  ae(() => {
67
61
  E.value.validate((n, T) => {
68
62
  if (!n)
69
63
  return xe(T), a && a(!1), !1;
70
- let U = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
71
- t && t(U, c.value), He.post(U, c.value).then(({ data: $, message: V }) => {
72
- E.value.clearValidate(), re.success(V), G(c.value);
64
+ let U = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
65
+ t && t(U, c.value), We.post(U, c.value).then(({ data: $, message: V }) => {
66
+ E.value.clearValidate(), ue.success(V), G(c.value);
73
67
  }).catch(({ code: $, data: V, message: X }) => {
74
68
  if ($ != "ValidateError")
75
69
  return;
76
- N.value = V;
77
- let P = V.find((y) => y.table !== _.value.name);
78
- if (P) {
79
- let y = u.value.find((o) => o.name == P.table);
80
- y && (w.value = y.name);
70
+ q.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);
81
75
  }
82
76
  ae(() => {
83
- E.value.clearValidate(), E.value.validate((y, o) => {
84
- y || (a && a(!1), N.value = []);
77
+ E.value.clearValidate(), E.value.validate((_, o) => {
78
+ _ || (a && a(!1), q.value = []);
85
79
  });
86
80
  });
87
81
  }).finally(() => {
@@ -89,76 +83,76 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
89
83
  });
90
84
  });
91
85
  });
92
- }, Q = (l) => {
86
+ }, J = (l) => {
93
87
  var a, n;
94
- let t = Me(l.module.type, l.module.name);
95
- Ae.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), _.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, p.value.table = u.value[1], p.value.layout = u.value[1].layouts[0]);
96
- }, Re = (l) => {
97
- S.value && S.value.resize && S.value.resize(l), C.value && C.value.resize && C.value.resize(l);
88
+ let t = je(l.module.type, l.module.name);
89
+ Ae.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), y.value = (a = r.value) == null ? void 0 : a[0], D.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]);
90
+ }, Se = (l) => {
91
+ R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
98
92
  }, Te = (l, t) => {
99
93
  if (l == "ctrlS") {
100
- if (f.value.type == "Detail") {
101
- if (!O.value || !O.value.keyboard)
94
+ if (p.value.type == "Detail") {
95
+ if (!K.value || !K.value.keyboard)
102
96
  return !1;
103
- O.value.keyboard(l, t);
97
+ K.value.keyboard(l, t);
104
98
  return;
105
99
  }
106
- F(t);
100
+ O(t);
107
101
  }
108
102
  }, Ve = () => {
109
- let l = q.getUrl(z.value.path, z.value.query);
110
- D("load", l, !1, (t) => {
103
+ let l = P.getUrl(z.value.path, z.value.query);
104
+ B("load", l, !1, (t) => {
111
105
  });
112
106
  };
113
107
  (() => {
114
- Q(M.value.data);
108
+ J(j.value.data);
115
109
  })();
116
- let F = (l) => {
117
- if (!K.value.submit) {
118
- re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
110
+ let O = (l) => {
111
+ if (!F.value.submit) {
112
+ ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
119
113
  return;
120
114
  }
121
- K.value.submit(l);
115
+ F.value.submit(l);
122
116
  }, ze = Y(() => {
123
- let l = `/${_.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
124
- return Pe.getComponent(l, "partial", t);
125
- }), W = Y(() => f.value.type.toLowerCase());
126
- return Be(() => M.value, (l) => {
127
- Q(l.data), S.value.update && S.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
128
- }), ie({ shouldLoad: ve, shouldSpin: fe, keyboard: Te, refresh: be, resize: Re }), (l, t) => {
129
- const a = v("el-tooltip"), n = v("el-tab-pane"), T = v("el-tabs"), U = v("el-form"), $ = v("el-scrollbar"), V = v("el-popover"), X = v("el-form-item"), P = v("el-card"), y = v("el-drawer");
130
- return d(), H("div", {
117
+ let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
118
+ return Ne.getComponent(l, "partial", t);
119
+ }), Q = Y(() => p.value.type.toLowerCase());
120
+ return Le(() => j.value, (l) => {
121
+ J(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"), U = f("el-form"), $ = f("el-scrollbar"), V = f("el-popover"), X = f("el-form-item"), N = f("el-card"), _ = f("el-drawer");
124
+ return d(), W("div", {
131
125
  ref_key: "singleRef",
132
- ref: pe,
133
- class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
126
+ ref: ve,
127
+ class: Be(["ha-single-page", { [e(Q) + "-page"]: !0, editing: e(k) }])
134
128
  }, [
135
- m("div", Ie, [
129
+ m("div", He, [
136
130
  h($, { class: "main-scroller" }, {
137
131
  default: s(() => [
138
132
  h(U, {
139
133
  ref_key: "formRef",
140
134
  ref: E,
141
135
  model: e(c),
142
- onSubmit: t[3] || (t[3] = Le(() => {
136
+ onSubmit: t[3] || (t[3] = De(() => {
143
137
  }, ["prevent"]))
144
138
  }, {
145
139
  default: s(() => [
146
140
  h(ne, {
147
141
  ref_key: "mainRef",
148
- ref: S,
149
- module: e(f),
150
- schema: e(u),
151
- table: e(_),
152
- layout: e(L),
142
+ ref: R,
143
+ module: e(p),
144
+ schema: e(r),
145
+ table: e(y),
146
+ layout: e(D),
153
147
  next: e(b),
154
148
  set: e(c),
155
149
  route: e(z),
156
- "validate-errors": e(N),
157
- onChange: e(I),
158
- onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
159
- onSubmit: e(F)
150
+ "validate-errors": e(q),
151
+ onChange: e(H),
152
+ onLayoutChange: t[0] || (t[0] = (o) => e(I)(o, !0)),
153
+ onSubmit: e(O)
160
154
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
161
- e(u).length > 1 ? (d(), g(T, {
155
+ e(r).length > 1 ? (d(), g(T, {
162
156
  key: 0,
163
157
  type: "border-card",
164
158
  onTabChange: e(ke),
@@ -166,7 +160,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
166
160
  "onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
167
161
  }, {
168
162
  default: s(() => [
169
- (d(!0), H(ee, null, le(e(u).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
163
+ (d(!0), W(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
170
164
  name: o.name,
171
165
  key: o.name
172
166
  }, {
@@ -177,7 +171,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
177
171
  disabled: !o.tooltip
178
172
  }, {
179
173
  default: s(() => [
180
- m("div", null, x(e(qe)(o.table)), 1)
174
+ m("div", null, x(e(Pe)(o.table)), 1)
181
175
  ]),
182
176
  _: 2
183
177
  }, 1032, ["content", "disabled"])
@@ -186,53 +180,53 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
186
180
  }, 1032, ["name"]))), 128))
187
181
  ]),
188
182
  _: 1
189
- }, 8, ["onTabChange", "modelValue"])) : B("", !0),
190
- e(p).table ? (d(), g(ne, {
183
+ }, 8, ["onTabChange", "modelValue"])) : L("", !0),
184
+ e(v).table ? (d(), g(ne, {
191
185
  key: 1,
192
186
  ref_key: "childRef",
193
187
  ref: C,
194
- module: e(f),
195
- schema: e(u),
196
- table: e(p).table,
197
- layout: e(p).layout,
188
+ module: e(p),
189
+ schema: e(r),
190
+ table: e(v).table,
191
+ layout: e(v).layout,
198
192
  next: e(b),
199
193
  set: e(c),
200
194
  route: e(z),
201
- "validate-errors": e(N),
195
+ "validate-errors": e(q),
202
196
  onRowEdit: e(we),
203
- onChange: e(I),
204
- onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
205
- onSubmit: e(F)
206
- }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
197
+ onChange: e(H),
198
+ onLayoutChange: t[2] || (t[2] = (o) => e(I)(o, !1)),
199
+ onSubmit: e(O)
200
+ }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : L("", !0)
207
201
  ]),
208
202
  _: 1
209
203
  }, 8, ["model"])
210
204
  ]),
211
205
  _: 1
212
206
  }),
213
- (d(), g(Ne(e(ze)), {
207
+ (d(), g(qe(e(ze)), {
214
208
  ref_key: "updateRef",
215
- ref: K,
209
+ ref: F,
216
210
  class: "main-footer",
217
- schema: e(u),
218
- table: e(_),
219
- layout: e(L),
211
+ schema: e(r),
212
+ table: e(y),
213
+ layout: e(D),
220
214
  next: e(b),
221
215
  set: e(c),
222
216
  route: e(z),
223
- onCopy: e(_e),
224
- onEdit: e(ye),
225
- onSubmit: e(Se),
217
+ onCopy: e(ye),
218
+ onEdit: e(_e),
219
+ onSubmit: e(Re),
226
220
  onClose: e(Ce)
227
221
  }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
228
222
  ]),
229
- e(k) ? (d(), g(P, {
223
+ e(k) ? (d(), g(N, {
230
224
  key: 0,
231
225
  class: "side-form"
232
226
  }, {
233
227
  header: s(() => [
234
- m("div", Je, [
235
- m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(R).show[0].name]), 1),
228
+ m("div", Ie, [
229
+ m("div", Je, x(e(oe)("common.modify")) + " " + x(e(M)[e(S).show[0].name]), 1),
236
230
  m("div", {
237
231
  class: "row-close",
238
232
  onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
@@ -247,12 +241,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
247
241
  "label-width": "80px"
248
242
  }, {
249
243
  default: s(() => [
250
- (d(!0), H(ee, null, le(e(R).show, (o) => (d(), g(X, {
251
- style: Oe(o.control.height ? `height: ${o.control.height}px;` : ""),
244
+ (d(!0), W(ee, null, le(e(S).show, (o) => (d(), g(X, {
245
+ style: Ke(o.control.height ? `height: ${o.control.height}px;` : ""),
252
246
  rules: o.rules
253
247
  }, {
254
248
  label: s(() => [
255
- te(x(e(Ke)(e(R).name, o.name)) + " ", 1),
249
+ te(x(e(Fe)(e(S).name, o.name)) + " ", 1),
256
250
  o.control.tooltip ? (d(), g(V, {
257
251
  key: 0,
258
252
  trigger: "hover",
@@ -267,15 +261,15 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
267
261
  m("pre", null, x(o.control.tooltip.content), 1)
268
262
  ]),
269
263
  _: 2
270
- }, 1032, ["title"])) : B("", !0)
264
+ }, 1032, ["title"])) : L("", !0)
271
265
  ]),
272
266
  default: s(() => [
273
267
  h(Ge, {
274
- schema: e(u),
275
- table: e(R),
268
+ schema: e(r),
269
+ table: e(S),
276
270
  field: o,
277
271
  set: e(c),
278
- row: e(j)
272
+ row: e(M)
279
273
  }, null, 8, ["schema", "table", "field", "set", "row"])
280
274
  ]),
281
275
  _: 2
@@ -288,12 +282,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
288
282
  })
289
283
  ]),
290
284
  _: 1
291
- })) : B("", !0),
292
- e(i).page ? (d(), g(y, {
285
+ })) : L("", !0),
286
+ e(i).page ? (d(), g(_, {
293
287
  key: 1,
294
288
  "destroy-on-close": "",
295
289
  "append-to-body": e(i).appendToBody,
296
- size: `${e(f).width ?? "60%"}`,
290
+ size: `${e(p).width ?? "60%"}`,
297
291
  modelValue: e(i).visible,
298
292
  "onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
299
293
  }, {
@@ -302,25 +296,25 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
302
296
  te(x(e(b)[e(i).page].title) + " ", 1),
303
297
  m("a", {
304
298
  class: "drawer-copy",
305
- href: `${e(q).getToUrl(e(i).url)}`
299
+ href: `${e(P).getToUrl(e(i).url)}`
306
300
  }, x(e(oe)("common.link")), 9, el)
307
301
  ])
308
302
  ]),
309
303
  default: s(() => [
310
- h(e(je), {
304
+ h(e(Me), {
311
305
  ref_key: "pageRef",
312
- ref: O,
306
+ ref: K,
313
307
  url: e(i).url,
314
308
  onSucceed: e(G),
315
309
  onClose: e(he)
316
310
  }, null, 8, ["url", "onSucceed", "onClose"])
317
311
  ]),
318
312
  _: 1
319
- }, 8, ["append-to-body", "size", "modelValue"])) : B("", !0)
313
+ }, 8, ["append-to-body", "size", "modelValue"])) : L("", !0)
320
314
  ], 2);
321
315
  };
322
316
  }
323
317
  });
324
318
  export {
325
- cl as default
319
+ rl as default
326
320
  };
@@ -1,13 +1,7 @@
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 m } from "vue";
2
- import { s as Q, E as U, A as W, B as R, m as X, D as Y } from "./main-BS_9gx1M.js";
3
- import "./assets/underscore.string-DVXD2SZo.js";
4
- import "./assets/clone-BZn0cTAu.js";
5
- import "./assets/file-saver-CwlpTZSc.js";
6
- import "./assets/@monaco-editor-BCDRi0Ti.js";
7
- import "./assets/moment-h96o7c8I.js";
8
- import "./assets/liquidjs-C-LVcoaY.js";
9
- import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js";
10
- const de = /* @__PURE__ */ j({
1
+ import { defineComponent as $, toRefs as j, 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 x } from "vue";
2
+ import { s as Q, w as U, k as W, n as R, a as X, N as Y } from "./main-65efBfek.js";
3
+ import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js";
4
+ const re = /* @__PURE__ */ $({
11
5
  __name: "Statistic",
12
6
  props: {
13
7
  searchData: {},
@@ -20,18 +14,18 @@ const de = /* @__PURE__ */ j({
20
14
  set: {}
21
15
  },
22
16
  emits: ["search"],
23
- setup(A, { expose: C, emit: H }) {
24
- let F = H, z = A, { route: B, module: D, schema: p, table: x, layout: l, next: ee, set: u, searchData: y } = q(z), s = null, g = null, v = n(), d = n(), b = n(), S = n(), E = (t) => {
17
+ setup(C, { expose: A, emit: F }) {
18
+ let z = F, H = C, { route: B, module: E, schema: m, table: y, layout: l, next: ee, set: u, searchData: g } = j(H), i = null, p = null, v = n(), d = n(), b = n(), S = n(), N = (t) => {
25
19
  T("search");
26
20
  }, T = (t, e = null) => {
27
- F(t, (r) => {
28
- m(() => {
21
+ z(t, (r) => {
22
+ x(() => {
29
23
  f(), e && e(r);
30
24
  });
31
25
  });
32
26
  }, f = () => {
33
27
  let t = W.distinct(u.value[l.value.table], (a) => a[l.value.date]), e = {
34
- title: { text: D.value.title, left: "center", textStyle: { color: "#777" } },
28
+ title: { text: E.value.title, left: "center", textStyle: { color: "#777" } },
35
29
  //标题
36
30
  tooltip: { trigger: "axis" },
37
31
  //提示
@@ -65,9 +59,9 @@ const de = /* @__PURE__ */ j({
65
59
  series: []
66
60
  };
67
61
  R.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)");
68
- 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;
69
- for (let a = 0; a < _.length; a++) {
70
- let o = _[a];
62
+ let r = l.value.fields.find((a) => a.group && a.name != l.value.date), w = y.value.fields.find((a) => a.name == r.name).control.data.data;
63
+ for (let a = 0; a < w.length; a++) {
64
+ let o = w[a];
71
65
  o.color || X.error("颜色字段不能为空");
72
66
  let c = {
73
67
  name: o.text,
@@ -109,30 +103,30 @@ const de = /* @__PURE__ */ j({
109
103
  global: !0
110
104
  });
111
105
  for (let h = 0; h < t.length; h++) {
112
- let $ = t[h], w = u.value[l.value.table].find((L) => L[r.name] == o.value && L[l.value.date] == $);
113
- w == null ? c.data.push(null) : c.data.push(w[l.value.value]);
106
+ let D = t[h], _ = u.value[l.value.table].find((L) => L[r.name] == o.value && L[l.value.date] == D);
107
+ _ == null ? c.data.push(null) : c.data.push(_[l.value.value]);
114
108
  }
115
109
  e.series.push(c), e.legend.data.push(o.text);
116
110
  }
117
- e.xAxis.data.push(...t), s.setOption(e);
111
+ e.xAxis.data.push(...t), i.setOption(e);
118
112
  }, k = () => {
119
113
  var r;
120
114
  let t = Y.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = S.value.getBoundingClientRect();
121
115
  v.value = e.height - t - 10 - 1;
122
116
  }, V = (t) => {
123
- d.value.resize(t), m(() => {
124
- k(), s == null || s.resize();
117
+ d.value.resize(t), x(() => {
118
+ k(), i == null || i.resize();
125
119
  });
126
- }, N = () => {
127
- k(), m(() => {
128
- s = g.init(b.value), f();
120
+ }, q = () => {
121
+ k(), x(() => {
122
+ i = p.init(b.value), f();
129
123
  });
130
124
  };
131
125
  return G(async () => {
132
- y.value = Q.getConditionForm(p.value, B.value.query.condition), g = await U.getECharts(), N();
126
+ g.value = Q.getConditionForm(m.value, B.value.query.condition), p = await U.getECharts(), q();
133
127
  }), M(() => l.value, (t, e) => {
134
128
  f();
135
- }), C({ resize: V }), (t, e) => (O(), I("div", {
129
+ }), A({ resize: V }), (t, e) => (O(), I("div", {
136
130
  ref_key: "statisticRef",
137
131
  ref: S,
138
132
  class: "ha-statistic-layout"
@@ -140,22 +134,22 @@ const de = /* @__PURE__ */ j({
140
134
  J(Z, {
141
135
  ref_key: "searchRef",
142
136
  ref: d,
143
- schema: i(p),
144
- table: i(x),
145
- layout: i(l),
146
- set: i(u),
147
- "search-data": i(y),
148
- onChange: i(E)
137
+ schema: s(m),
138
+ table: s(y),
139
+ layout: s(l),
140
+ set: s(u),
141
+ "search-data": s(g),
142
+ onChange: s(N)
149
143
  }, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
150
144
  K("div", {
151
145
  ref_key: "chartRef",
152
146
  ref: b,
153
147
  class: "chart",
154
- style: P({ height: i(v) + "px" })
148
+ style: P({ height: s(v) + "px" })
155
149
  }, null, 4)
156
150
  ], 512));
157
151
  }
158
152
  });
159
153
  export {
160
- de as default
154
+ re as default
161
155
  };
@@ -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-Cb3jPDk8.js";
2
+ import { _ } from "./Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.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-Cb3jPDk8.js";
1
+ import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js";
2
2
  export {
3
3
  f as default
4
4
  };