halo-pc 1.0.38 → 1.0.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/dist/{Article-H_clf90b.js → Article-DZlstqWL.js} +32 -31
  2. package/dist/{ArticleFooter-BLi4TNA7.js → ArticleFooter-BkduiKh8.js} +4 -3
  3. package/dist/{Autocomplete-CcIzTPSr.js → Autocomplete-0Yf6lJQ7.js} +12 -11
  4. package/dist/{Autocomplete-DMm6oI1g.js → Autocomplete-DMKnFezN.js} +1 -1
  5. package/dist/Autocomplete-bc-9LfGa.js +50 -0
  6. package/dist/{CSharp-CZOchOE-.js → CSharp-q8eOBm4y.js} +1 -1
  7. package/dist/{Calender-BoQV7bhA.js → Calender-CseGNCuW.js} +4 -4
  8. package/dist/Callback-D_dFJlfv.js +21 -0
  9. package/dist/{Cascader-DMhl98vw.js → Cascader-BG5ev35M.js} +28 -27
  10. package/dist/Cascader-Dzeoz7ss.js +47 -0
  11. package/dist/{Checkbox-C6t6S7ii.js → Checkbox-CsCA6iQb.js} +1 -1
  12. package/dist/{Checkbox-DtrXMDBR.js → Checkbox-dw8RNAGt.js} +14 -13
  13. package/dist/{Code-DDacfgvl.js → Code-BE8YLGaE.js} +1 -1
  14. package/dist/Code-BRe68AIa.js +42 -0
  15. package/dist/Code-C5QfTMNw.js +60 -0
  16. package/dist/Code-_XoN6vQE.js +4 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js +63 -0
  18. package/dist/Column-C-NHhT2v.js +75 -0
  19. package/dist/{Comment-Ixu0gPk3.js → Comment-kTmfTlbF.js} +25 -19
  20. package/dist/{Compare-C1uq4lgK.js → Compare-DVWaiCUC.js} +10 -9
  21. package/dist/{Compare-NN40QJWm.js → Compare-DlyQBCat.js} +11 -10
  22. package/dist/{Copy-BcfSvyWG.js → Copy-DQFJy3uX.js} +12 -11
  23. package/dist/{Custom-Dn9_vPuD.js → Custom-D5HoD0nQ.js} +22 -21
  24. package/dist/{DataExport-DNGgWqsx.js → DataExport-Um1wXyRe.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js → DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js} +25 -24
  26. package/dist/{DataImport-CI9eM5T1.js → DataImport-CPMLup4P.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js → DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js} +40 -39
  28. package/dist/{Date-CZGbZKjB.js → Date-BhZ8ltgp.js} +9 -8
  29. package/dist/{Date-CGyzi8yX.js → Date-Cj9lCW_Y.js} +1 -1
  30. package/dist/{DateRange-MbbkmZ_Y.js → DateRange-Bw_Oyawz.js} +10 -9
  31. package/dist/{DateTime-DqUOXGWH.js → DateTime-BU6JaBPk.js} +9 -8
  32. package/dist/{DateTime-DHrHmRLL.js → DateTime-Cv-SRE88.js} +1 -1
  33. package/dist/{DateTimeRange-DgXQkZLx.js → DateTimeRange-B4Ah6LQY.js} +12 -11
  34. package/dist/{Daterange-DLHJuRur.js → Daterange-CSZe4XGO.js} +9 -8
  35. package/dist/{Decimal-BUJuuvfr.js → Decimal-DSDuwW9Z.js} +1 -1
  36. package/dist/{Delete-BGMk0orl.js → Delete-CjPgg-5G.js} +20 -19
  37. package/dist/{Detail-D4KzWdHQ.js → Detail-gj--ICe8.js} +8 -7
  38. package/dist/{Dictionary-Esd3ERAq.js → Dictionary-Ck_02mWa.js} +15 -9
  39. package/dist/{Email-C9K09hwC.js → Email-BSQbDvh1.js} +12 -11
  40. package/dist/{File-ai1eYO7v.js → File-FW4usX43.js} +44 -43
  41. package/dist/{Image-CfY4G1Yn.js → Image-DiAw_6jM.js} +1 -1
  42. package/dist/Index-B_5hshjJ.js +4 -0
  43. package/dist/{Index-DYHrSEZ5.js → Index-BibWDRoP.js} +1 -1
  44. package/dist/Index-BtlD6ocN.js +4 -0
  45. package/dist/Index-C3f38zw0.js +4 -0
  46. package/dist/Index-CB_TnEaw.js +4 -0
  47. package/dist/{Index-B5o7uf36.js → Index-Dq5Vp-ts.js} +16 -15
  48. package/dist/{Index-S1btGSGD.js → Index-MUgqP8jJ.js} +1 -1
  49. package/dist/Index-hgTZyQps.js +174 -0
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js → Index.vue_vue_type_script_setup_true_lang-BzPCaYCg.js} +20 -14
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js → Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js} +7 -6
  52. package/dist/{Install-D-MgafyF.js → Install-Cpp3BDCS.js} +14 -13
  53. package/dist/{Int-CnvfCxgn.js → Int-Ck1SvK7R.js} +10 -9
  54. package/dist/{Int-D3RqVcmN.js → Int-DcQsipaO.js} +14 -13
  55. package/dist/{List-DA4SO_le.js → List-hWB41wF_.js} +19 -18
  56. package/dist/Maintaince-l-Tdveur.js +20 -0
  57. package/dist/{Markdown-hax8By5O.js → Markdown-BEUz4VZ7.js} +1 -1
  58. package/dist/{Month-BDkwv-vc.js → Month-DJGGGrZr.js} +12 -11
  59. package/dist/Month-DkafiRHq.js +38 -0
  60. package/dist/{Month-CnVTSnyK.js → Month-DmUiyF1G.js} +1 -1
  61. package/dist/{Normal-DoE9t7d7.js → Normal-ACcTHsXb.js} +53 -52
  62. package/dist/Paging-Vfz2RDBo.js +93 -0
  63. package/dist/{PagingHeader-BFtE6jSy.js → PagingHeader-DDkmqv98.js} +36 -35
  64. package/dist/{PagingRow-CSB-kwMz.js → PagingRow-B4Nfa2Vk.js} +20 -19
  65. package/dist/{Racebar-Bc-dDRss.js → Racebar-LfnPLNOY.js} +31 -25
  66. package/dist/{Radio-CMGOtMnx.js → Radio-DcEZI4m7.js} +1 -1
  67. package/dist/{Register-8wi0uixs.js → Register-B4x_zgyH.js} +61 -60
  68. package/dist/RichText-B1Iogpgr.js +47 -0
  69. package/dist/{SearchFooter-DOC21dmS.js → SearchFooter-CmM8qnxP.js} +1 -1
  70. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js → SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js} +3 -3
  71. package/dist/{SearchForm-BMTSPce_.js → SearchForm-DU5QLTbe.js} +1 -1
  72. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js → SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js} +32 -31
  73. package/dist/{Select-DAxdpZlO.js → Select-C3gUeHmu.js} +16 -15
  74. package/dist/{Select-MBD4Simw.js → Select-CMxubJIV.js} +1 -1
  75. package/dist/{Select-DnFyey0n.js → Select-DrDDVJtz.js} +22 -21
  76. package/dist/{Single-D6x6VV_B.js → Single-De-YyuVk.js} +75 -74
  77. package/dist/{Statistic-BS_DA72m.js → Statistic-SvjQ7uGI.js} +30 -29
  78. package/dist/{Stock-CtmevqBK.js → Stock-C2b9p3-N.js} +1 -1
  79. package/dist/{Stock-CbucObTu.js → Stock-XZkBSQw1.js} +1 -1
  80. package/dist/{Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js → Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js} +18 -17
  81. package/dist/{Switch-BlXAy9qH.js → Switch-PJT-5dDt.js} +1 -1
  82. package/dist/{Table-Da9gan1Y.js → Table-CkoZ8OjZ.js} +62 -61
  83. package/dist/{Table-CqsfAMh7.js → Table-Dy1H2IHN.js} +74 -73
  84. package/dist/Text-Bt5jL_KV.js +49 -0
  85. package/dist/{Text-CbZlEVTJ.js → Text-CytgR_l_.js} +12 -11
  86. package/dist/Text-vHouxGHU.js +4 -0
  87. package/dist/Text.vue_vue_type_style_index_0_lang-CgxtY5ch.js +59 -0
  88. package/dist/{TextLink-SAnZ7BfX.js → TextLink-DINdFWzs.js} +11 -10
  89. package/dist/{Textarea-DphCUpXp.js → Textarea-DakZXfN6.js} +1 -1
  90. package/dist/{Time-DjE8yYdK.js → Time-Bn1Av2wo.js} +11 -10
  91. package/dist/{Timeline-D11vjkpZ.js → Timeline-B32cUvwI.js} +19 -13
  92. package/dist/{Tree-kich05vY.js → Tree-BGfHm4k_.js} +80 -79
  93. package/dist/{Tree-DK73Ou_F.js → Tree-BItAXuSC.js} +41 -35
  94. package/dist/{TreeNode-Dx6cZ31Z.js → TreeNode-DmiM_a2n.js} +11 -10
  95. package/dist/{Update-D2Plm_AG.js → Update-DSTmaeT8.js} +15 -14
  96. package/dist/{UpdateChild-BXV7QqaP.js → UpdateChild-BgBJJwT3.js} +21 -20
  97. package/dist/{Upload-B87EDynn.js → Upload-DMqlcxCt.js} +47 -46
  98. package/dist/Upload-DpQu3z1T.js +71 -0
  99. package/dist/{Year-C93IJgc8.js → Year-Cv92J5pF.js} +9 -8
  100. package/dist/{Year-BPFmIiPX.js → Year-DckBNPK_.js} +1 -1
  101. package/dist/assets/{clipboard-ClN4QccS.js → clipboard-DjQPoCBJ.js} +3 -1
  102. package/dist/assets/clone-BZn0cTAu.js +134 -0
  103. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  104. package/dist/assets/liquidjs-C2HVw1Ra.js +2901 -0
  105. package/dist/assets/moment-h96o7c8I.js +2578 -0
  106. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  107. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  108. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  109. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  110. package/dist/main-KNkwb0pq.js +10515 -0
  111. package/dist/main.js +46 -45
  112. package/dist/style.css +1 -1
  113. package/package.json +2 -2
  114. package/dist/Autocomplete-BF9x0F4f.js +0 -49
  115. package/dist/Callback-79Bw4RwY.js +0 -20
  116. package/dist/Cascader-D1Ou5OSg.js +0 -41
  117. package/dist/Code-B8ISTTYK.js +0 -54
  118. package/dist/Code-BMlBvnqa.js +0 -4
  119. package/dist/Code-DIGn8Raz.js +0 -36
  120. package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +0 -57
  121. package/dist/Column-DjA11efs.js +0 -69
  122. package/dist/Index-CH3nwnPZ.js +0 -4
  123. package/dist/Index-CTjDkp7e.js +0 -4
  124. package/dist/Index-DSZ8wa7U.js +0 -4
  125. package/dist/Index-DVdiF3gr.js +0 -4
  126. package/dist/Index-DsZPtDYE.js +0 -173
  127. package/dist/Maintaince-BIgEbjrq.js +0 -14
  128. package/dist/Month-5lTUiWin.js +0 -37
  129. package/dist/Paging-5qsCTRWy.js +0 -92
  130. package/dist/RichText-BR4Kvx0J.js +0 -41
  131. package/dist/Text-C72NLZMt.js +0 -48
  132. package/dist/Text-CHvsKR9H.js +0 -4
  133. package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +0 -53
  134. package/dist/Upload-CHPjMGFZ.js +0 -65
  135. package/dist/main-nvsTmKXH.js +0 -16321
@@ -1,9 +1,10 @@
1
- import { defineComponent as A, toRefs as D, ref as f, computed as L, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as O, withModifiers as U, isRef as $, withCtx as V, createElementBlock as k, Fragment as q, renderList as z, createElementVNode as G, toDisplayString as w, createCommentVNode as H, nextTick as I } from "vue";
2
- import { k as J, d as P, o as Q, _ as W } from "./main-nvsTmKXH.js";
1
+ import { defineComponent as T, toRefs as A, ref as f, computed as D, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as L, withModifiers as O, isRef as $, withCtx as V, createElementBlock as w, Fragment as q, renderList as z, createElementVNode as G, toDisplayString as k, createCommentVNode as H, nextTick as I } from "vue";
2
+ import { n as J, U as P, w as Q, h as W } from "./main-KNkwb0pq.js";
3
+ import "./assets/moment-h96o7c8I.js";
3
4
  const X = { class: "option-text" }, Y = {
4
5
  key: 0,
5
6
  class: "option-suffix"
6
- }, le = /* @__PURE__ */ A({
7
+ }, te = /* @__PURE__ */ T({
7
8
  __name: "Select",
8
9
  props: {
9
10
  schema: {},
@@ -15,7 +16,7 @@ const X = { class: "option-text" }, Y = {
15
16
  },
16
17
  emits: ["submit", "change", "update:modelValue"],
17
18
  setup(C, { emit: E }) {
18
- let s = E, B = C, { schema: S, field: u, table: m, set: h, row: R, modelValue: p } = D(B), x = f(), b = f(), v = f(!1), d = f(u.value.control.data.data), j = (t) => {
19
+ let s = E, B = C, { schema: S, field: u, table: m, set: v, row: R, modelValue: p } = A(B), x = f(), b = f(), h = f(!1), d = f(u.value.control.data.data), j = (t) => {
19
20
  t == "" && (t = null);
20
21
  let e;
21
22
  if (P.object.isString(t) && u.value.control.multiple ? e = t.join(",") : e = t, r.value = e, u.value.control.text) {
@@ -28,23 +29,23 @@ const X = { class: "option-text" }, Y = {
28
29
  }, K = () => {
29
30
  s("submit");
30
31
  }, N = () => {
31
- }, F = () => {
32
- v.value = !0;
32
+ }, U = () => {
33
+ h.value = !0;
33
34
  let t = { text: b.value, conditions: [] };
34
35
  u.value.control.data.conditions.forEach((e) => {
35
- let a = h.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
36
+ let a = v.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
36
37
  t.conditions.push({ name: e.name, value: o });
37
38
  }), W.post(u.value.control.data.route, t).then(({ data: e }) => {
38
39
  d.value = e;
39
40
  }).finally(() => {
40
- v.value = !1, I(() => {
41
+ h.value = !1, I(() => {
41
42
  let e = d.value.find((a) => a.value == r.value);
42
43
  x.value.scrollToOption(e);
43
44
  });
44
45
  });
45
- }, M = (t) => {
46
- b.value = t, F();
47
- }, T = (t, e) => {
46
+ }, F = (t) => {
47
+ b.value = t, U();
48
+ }, M = (t, e) => {
48
49
  let a = [];
49
50
  return S.value.forEach((o) => {
50
51
  o.fields.forEach((l) => {
@@ -54,10 +55,10 @@ const X = { class: "option-text" }, Y = {
54
55
  });
55
56
  }), a;
56
57
  }, g = (t, e) => {
57
- T(t, e).forEach((o) => {
58
- Q.setRowsValue(null, h.value, o.table, o.field), g(o.table, o.field);
58
+ M(t, e).forEach((o) => {
59
+ Q.setRowsValue(null, v.value, o.table, o.field), g(o.table, o.field);
59
60
  });
60
- }, r = L({
61
+ }, r = D({
61
62
  get() {
62
63
  return u.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
63
64
  },
@@ -79,24 +80,24 @@ const X = { class: "option-text" }, Y = {
79
80
  clearable: "",
80
81
  placeholder: n(J)(n(m).name, n(u).name),
81
82
  multiple: n(u).control.multiple,
82
- "remote-method": n(M),
83
- loading: n(v),
83
+ "remote-method": n(F),
84
+ loading: n(h),
84
85
  disabled: n(u).control.readonly,
85
- onKeyup: O(U(n(K), ["alt"]), ["enter", "native"]),
86
+ onKeyup: L(O(n(K), ["alt"]), ["enter", "native"]),
86
87
  onBlur: n(N),
87
88
  onChange: n(j),
88
89
  modelValue: n(r),
89
90
  "onUpdate:modelValue": e[0] || (e[0] = (l) => $(r) ? r.value = l : r = l)
90
91
  }, {
91
92
  default: V(() => [
92
- (c(!0), k(q, null, z(n(d), (l, i) => (c(), y(a, {
93
+ (c(!0), w(q, null, z(n(d), (l, i) => (c(), y(a, {
93
94
  label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
94
95
  value: l.value,
95
96
  key: l.value
96
97
  }, {
97
98
  default: V(() => [
98
- G("span", X, w(l.text), 1),
99
- l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : H("", !0)
99
+ G("span", X, k(l.text), 1),
100
+ l.suffix ? (c(), w("span", Y, "(" + k(l.suffix) + ")", 1)) : H("", !0)
100
101
  ]),
101
102
  _: 2
102
103
  }, 1032, ["label", "value"]))), 128))
@@ -107,5 +108,5 @@ const X = { class: "option-text" }, Y = {
107
108
  }
108
109
  });
109
110
  export {
110
- le as default
111
+ te as default
111
112
  };
@@ -1,7 +1,8 @@
1
- import { defineComponent as $e, toRefs as Ue, ref as u, computed as Y, watch as Be, resolveComponent as c, openBlock as d, createElementBlock as j, normalizeClass as De, unref as e, createElementVNode as m, createVNode as g, withCtx as s, withModifiers as Le, createBlock as h, isRef as Z, Fragment as ee, renderList as le, toDisplayString as k, createCommentVNode as B, resolveDynamicComponent as Ae, normalizeStyle as Ke, createTextVNode as te, nextTick as ae } from "vue";
2
- import { c as Me, b as Ne, f as oe, w as Pe, e as qe, d as D, a as je, _ as Fe, i as ue, S as He, M as Oe, m as re, x as Ge, A as Ie } from "./main-nvsTmKXH.js";
3
- import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js";
4
- const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class: "row-title" }, Xe = { class: "el-drawer__title" }, Ye = ["href"], al = /* @__PURE__ */ $e({
1
+ import { defineComponent as Ue, toRefs as $e, ref as u, 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 g, withCtx as s, withModifiers as Ke, createBlock as h, isRef as Z, Fragment as ee, renderList as le, toDisplayString as k, createCommentVNode as B, resolveDynamicComponent as Le, normalizeStyle as Ne, createTextVNode as te, nextTick as ae } from "vue";
2
+ import { f as Pe, g as je, t as oe, j as qe, k as Fe, U as D, b as He, h as Me, m as ue, c as Oe, i as Ae, d as re, K as Ge, a as Ie } from "./main-KNkwb0pq.js";
3
+ import "./assets/moment-h96o7c8I.js";
4
+ import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js";
5
+ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class: "row-title" }, Xe = { class: "el-drawer__title" }, Ye = ["href"], ol = /* @__PURE__ */ Ue({
5
6
  __name: "Single",
6
7
  props: {
7
8
  base: {},
@@ -11,20 +12,20 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
11
12
  },
12
13
  emits: ["navigate", "load", "succeed", "close"],
13
14
  setup(se, { expose: ie, emit: de }) {
14
- let L = de, me = se, { url: ve, base: F, route: z } = Ue(me), p = u(), b = u(), v = u(), r = u(), y = u(), A = u(), f = u({ table: null, layout: null }), w = u(), K = u([]), fe = u(), E = u(), S = u(), N = u(), C = u(), H = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), x = u(!1), P = u(), R = u(), ce = (l) => !0, pe = (l) => {
15
+ let K = de, me = se, { url: ve, base: M, route: z } = $e(me), c = u(), b = u(), v = u(), r = u(), y = u(), L = u(), f = u({ table: null, layout: null }), w = u(), N = u([]), fe = u(), E = u(), R = u(), j = u(), C = u(), O = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), x = u(!1), q = u(), S = u(), pe = (l) => !0, ce = (l) => {
15
16
  let t = D.url.getPath(ve.value), a = D.url.getPath(l);
16
17
  return t != a;
17
18
  }, be = () => {
18
19
  Ve();
19
20
  }, ye = (l, t) => {
20
- O("copy", l, t);
21
+ A("copy", l, t);
21
22
  }, _e = (l, t) => {
22
- O("update", l, t);
23
+ A("update", l, t);
23
24
  }, ge = () => {
24
25
  i.value.visible = !1;
25
- }, O = (l, t, a) => {
26
+ }, A = (l, t, a) => {
26
27
  let n = he(l, t);
27
- a.ctrlKey ? L("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
28
+ a.ctrlKey ? K("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
28
29
  }, he = (l, t = null) => {
29
30
  let a = `${b.value[l].route}`;
30
31
  if (t != null) {
@@ -33,17 +34,17 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
33
34
  }
34
35
  return a;
35
36
  }, we = (l, t, a) => {
36
- (a.ctrlKey || x.value) && (P.value = l, R.value = D.object.clone(t), x.value = !0, R.value.fields.forEach((n) => {
37
+ (a.ctrlKey || x.value) && (q.value = l, S.value = D.object.clone(t), x.value = !0, S.value.fields.forEach((n) => {
37
38
  n.control.textualize = !1;
38
39
  }));
39
40
  }, G = (l) => {
40
- i.value.visible = !1, L("succeed", W.value, l);
41
+ i.value.visible = !1, K("succeed", W.value, l);
41
42
  }, Ce = () => {
42
- L("close");
43
+ K("close");
43
44
  }, I = (l, t, a, n, T) => {
44
45
  }, J = (l, t) => {
45
46
  if (t) {
46
- A.value = y.value.layouts.find((a) => a.type == l);
47
+ L.value = y.value.layouts.find((a) => a.type == l);
47
48
  return;
48
49
  }
49
50
  f.value.layout = f.value.table.layouts.find((a) => a.type == l);
@@ -53,26 +54,26 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
53
54
  }, ke = (l) => {
54
55
  let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
55
56
  r.value.find((T) => T.name == a).main || (w.value = a);
56
- }, Se = (l, t = null, a = null) => {
57
+ }, Re = (l, t = null, a = null) => {
57
58
  ae(() => {
58
59
  E.value.validate((n, T) => {
59
60
  if (!n)
60
61
  return ke(T), a && a(!1), !1;
61
- let $ = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
62
- t && t($, v.value), Fe.post($, v.value).then(({ data: U, message: V }) => {
62
+ let U = c.value.type == "Update" ? b.value.update.route : b.value.insert.route;
63
+ t && t(U, v.value), Me.post(U, v.value).then(({ data: $, message: V }) => {
63
64
  E.value.clearValidate(), ue.success(V), G(v.value);
64
- }).catch(({ code: U, data: V, message: X }) => {
65
- if (U != "ValidateError")
65
+ }).catch(({ code: $, data: V, message: X }) => {
66
+ if ($ != "ValidateError")
66
67
  return;
67
- K.value = V;
68
- let M = V.find((_) => _.table !== y.value.name);
69
- if (M) {
70
- let _ = r.value.find((o) => o.name == M.table);
68
+ N.value = V;
69
+ let P = V.find((_) => _.table !== y.value.name);
70
+ if (P) {
71
+ let _ = r.value.find((o) => o.name == P.table);
71
72
  _ && (w.value = _.name);
72
73
  }
73
74
  ae(() => {
74
75
  E.value.clearValidate(), E.value.validate((_, o) => {
75
- _ || (a && a(!1), K.value = []);
76
+ _ || (a && a(!1), N.value = []);
76
77
  });
77
78
  });
78
79
  }).finally(() => {
@@ -82,70 +83,70 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
82
83
  });
83
84
  }, Q = (l) => {
84
85
  var a, n;
85
- let t = He(l.module.type, l.module.name);
86
- Oe.setTitle(t, l.module.env), p.value = l.module, b.value = l.next, v.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], A.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, f.value.table = r.value[1], f.value.layout = r.value[1].layouts[0]);
87
- }, Re = (l) => {
88
- S.value && S.value.resize && S.value.resize(l), C.value && C.value.resize && C.value.resize(l);
86
+ let t = Oe(l.module.type, l.module.name);
87
+ Ae.setTitle(t, l.module.env), c.value = l.module, b.value = l.next, v.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, f.value.table = r.value[1], f.value.layout = r.value[1].layouts[0]);
88
+ }, Se = (l) => {
89
+ R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
89
90
  }, Te = (l, t) => {
90
91
  if (l == Ge.ctrlS) {
91
- if (p.value.type == "Detail") {
92
- Ie.triggerKeyboardHandler(H.value, l, t);
92
+ if (c.value.type == "Detail") {
93
+ Ie.triggerKeyboardHandler(O.value, l, t);
93
94
  return;
94
95
  }
95
- q(t);
96
+ F(t);
96
97
  }
97
98
  }, Ve = () => {
98
99
  let l = D.url.getUrl(z.value.path, z.value.query);
99
- L("load", l, !1, (t) => {
100
+ K("load", l, !1, (t) => {
100
101
  });
101
102
  };
102
103
  (() => {
103
- Q(F.value.data);
104
+ Q(M.value.data);
104
105
  })();
105
- let q = (l) => {
106
- if (!N.value.submit) {
106
+ let F = (l) => {
107
+ if (!j.value.submit) {
107
108
  ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
108
109
  return;
109
110
  }
110
- N.value.submit(l);
111
+ j.value.submit(l);
111
112
  }, ze = Y(() => {
112
- let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
113
- return Me.getComponent(l, "partial", t);
114
- }), W = Y(() => p.value.type.toLowerCase());
115
- return Be(() => F.value, (l) => {
116
- Q(l.data), S.value.update && S.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
117
- }), ie({ shouldLoad: ce, shouldSpin: pe, keyboardHandler: Te, refresh: be, resize: Re }), (l, t) => {
118
- const a = c("el-tooltip"), n = c("el-tab-pane"), T = c("el-tabs"), $ = c("el-form"), U = c("el-scrollbar"), V = c("el-popover"), X = c("el-form-item"), M = c("el-card"), _ = c("el-drawer");
119
- return d(), j("div", {
113
+ let l = `/${y.value.name}/update`, t = c.value.type == "Detail" ? "detail" : "update";
114
+ return Pe.getComponent(l, "partial", t);
115
+ }), W = Y(() => c.value.type.toLowerCase());
116
+ return Be(() => M.value, (l) => {
117
+ Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
118
+ }), ie({ shouldLoad: pe, shouldSpin: ce, keyboardHandler: Te, refresh: be, resize: Se }), (l, t) => {
119
+ 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"), _ = p("el-drawer");
120
+ return d(), H("div", {
120
121
  ref_key: "singleRef",
121
122
  ref: fe,
122
123
  class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(x) }])
123
124
  }, [
124
125
  m("div", Je, [
125
- g(U, { class: "main-scroller" }, {
126
+ g($, { class: "main-scroller" }, {
126
127
  default: s(() => [
127
- g($, {
128
+ g(U, {
128
129
  ref_key: "formRef",
129
130
  ref: E,
130
131
  model: e(v),
131
- onSubmit: t[3] || (t[3] = Le(() => {
132
+ onSubmit: t[3] || (t[3] = Ke(() => {
132
133
  }, ["prevent"]))
133
134
  }, {
134
135
  default: s(() => [
135
136
  g(ne, {
136
137
  ref_key: "mainRef",
137
- ref: S,
138
- module: e(p),
138
+ ref: R,
139
+ module: e(c),
139
140
  schema: e(r),
140
141
  table: e(y),
141
- layout: e(A),
142
+ layout: e(L),
142
143
  next: e(b),
143
144
  set: e(v),
144
145
  route: e(z),
145
- "validate-errors": e(K),
146
+ "validate-errors": e(N),
146
147
  onChange: e(I),
147
148
  onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
148
- onSubmit: e(q)
149
+ onSubmit: e(F)
149
150
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
150
151
  e(r).length > 1 ? (d(), h(T, {
151
152
  key: 0,
@@ -155,7 +156,7 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
155
156
  "onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
156
157
  }, {
157
158
  default: s(() => [
158
- (d(!0), j(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), h(n, {
159
+ (d(!0), H(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), h(n, {
159
160
  name: o.name,
160
161
  key: o.name
161
162
  }, {
@@ -166,7 +167,7 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
166
167
  disabled: !o.tooltip
167
168
  }, {
168
169
  default: s(() => [
169
- m("div", null, k(e(Ne)(o.table)), 1)
170
+ m("div", null, k(e(je)(o.table)), 1)
170
171
  ]),
171
172
  _: 2
172
173
  }, 1032, ["content", "disabled"])
@@ -180,18 +181,18 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
180
181
  key: 1,
181
182
  ref_key: "childRef",
182
183
  ref: C,
183
- module: e(p),
184
+ module: e(c),
184
185
  schema: e(r),
185
186
  table: e(f).table,
186
187
  layout: e(f).layout,
187
188
  next: e(b),
188
189
  set: e(v),
189
190
  route: e(z),
190
- "validate-errors": e(K),
191
+ "validate-errors": e(N),
191
192
  onRowEdit: e(we),
192
193
  onChange: e(I),
193
194
  onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
194
- onSubmit: e(q)
195
+ onSubmit: e(F)
195
196
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
196
197
  ]),
197
198
  _: 1
@@ -199,29 +200,29 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
199
200
  ]),
200
201
  _: 1
201
202
  }),
202
- (d(), h(Ae(e(ze)), {
203
+ (d(), h(Le(e(ze)), {
203
204
  ref_key: "updateRef",
204
- ref: N,
205
+ ref: j,
205
206
  class: "main-footer",
206
207
  schema: e(r),
207
208
  table: e(y),
208
- layout: e(A),
209
+ layout: e(L),
209
210
  next: e(b),
210
211
  set: e(v),
211
212
  route: e(z),
212
213
  onCopy: e(ye),
213
214
  onEdit: e(_e),
214
- onSubmit: e(Se),
215
+ onSubmit: e(Re),
215
216
  onClose: e(Ce)
216
217
  }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
217
218
  ]),
218
- e(x) ? (d(), h(M, {
219
+ e(x) ? (d(), h(P, {
219
220
  key: 0,
220
221
  class: "side-form"
221
222
  }, {
222
223
  header: s(() => [
223
224
  m("div", Qe, [
224
- m("div", We, k(e(oe)("common.modify")) + " " + k(e(P)[e(R).show[0].name]), 1),
225
+ m("div", We, k(e(oe)("common.modify")) + " " + k(e(q)[e(S).show[0].name]), 1),
225
226
  m("div", {
226
227
  class: "row-close",
227
228
  onClick: t[4] || (t[4] = (o) => Z(x) ? x.value = !1 : x = !1)
@@ -231,19 +232,19 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
231
232
  ])
232
233
  ]),
233
234
  default: s(() => [
234
- g(U, null, {
235
+ g($, null, {
235
236
  default: s(() => [
236
- g($, {
237
+ g(U, {
237
238
  size: "small",
238
239
  "label-width": "80px"
239
240
  }, {
240
241
  default: s(() => [
241
- (d(!0), j(ee, null, le(e(R).show, (o) => (d(), h(X, {
242
- style: Ke(o.control.height ? `height: ${o.control.height}px;` : ""),
242
+ (d(!0), H(ee, null, le(e(S).show, (o) => (d(), h(X, {
243
+ style: Ne(o.control.height ? `height: ${o.control.height}px;` : ""),
243
244
  rules: o.rules
244
245
  }, {
245
246
  label: s(() => [
246
- te(k(e(Pe)(e(R).name, o.name)) + " ", 1),
247
+ te(k(e(qe)(e(S).name, o.name)) + " ", 1),
247
248
  o.control.tooltip ? (d(), h(V, {
248
249
  key: 0,
249
250
  trigger: "hover",
@@ -261,12 +262,12 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
261
262
  }, 1032, ["title"])) : B("", !0)
262
263
  ]),
263
264
  default: s(() => [
264
- g(qe, {
265
+ g(Fe, {
265
266
  schema: e(r),
266
- table: e(R),
267
+ table: e(S),
267
268
  field: o,
268
269
  set: e(v),
269
- row: e(P)
270
+ row: e(q)
270
271
  }, null, 8, ["schema", "table", "field", "set", "row"])
271
272
  ]),
272
273
  _: 2
@@ -284,7 +285,7 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
284
285
  key: 1,
285
286
  "destroy-on-close": "",
286
287
  "append-to-body": e(i).appendToBody,
287
- size: `${e(p).width ?? "60%"}`,
288
+ size: `${e(c).width ?? "60%"}`,
288
289
  modelValue: e(i).visible,
289
290
  "onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
290
291
  }, {
@@ -298,9 +299,9 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
298
299
  ])
299
300
  ]),
300
301
  default: s(() => [
301
- g(e(je), {
302
+ g(e(He), {
302
303
  ref_key: "pageRef",
303
- ref: H,
304
+ ref: O,
304
305
  url: e(i).url,
305
306
  onSucceed: e(G),
306
307
  onClose: e(ge)
@@ -313,5 +314,5 @@ const Je = { class: "ha-main-form" }, Qe = { class: "row-header" }, We = { class
313
314
  }
314
315
  });
315
316
  export {
316
- al as default
317
+ ol as default
317
318
  };
@@ -1,7 +1,8 @@
1
- import { defineComponent as q, toRefs as G, ref as c, onMounted as M, watch as O, openBlock as Z, createElementBlock as I, createVNode as J, unref as r, createElementVNode as K, normalizeStyle as P, nextTick as R } from "vue";
2
- import { Z as Q, m as U, s as W, d as C, i as X } from "./main-nvsTmKXH.js";
3
- import { _ as Y } from "./SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js";
4
- const ie = /* @__PURE__ */ q({
1
+ import { defineComponent as j, toRefs as q, ref as c, 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 { C as Q, d as W, p as X, U as C, m as Y } from "./main-KNkwb0pq.js";
3
+ import "./assets/moment-h96o7c8I.js";
4
+ import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js";
5
+ const se = /* @__PURE__ */ j({
5
6
  __name: "Statistic",
6
7
  props: {
7
8
  searchData: {},
@@ -15,12 +16,12 @@ const ie = /* @__PURE__ */ q({
15
16
  },
16
17
  emits: ["search"],
17
18
  setup(A, { expose: F, emit: z }) {
18
- let H = z, B = A, { route: E, module: T, schema: y, table: m, layout: l, next: ee, set: u, searchData: x } = G(B), s = null, p = null, g = c(), d = c(), v = c(), b = c(), { app: S } = Q.sys, V = (t) => {
19
+ let H = z, B = A, { route: E, module: T, schema: m, table: y, layout: l, next: ee, set: u, searchData: p } = q(B), i = null, x = null, g = c(), d = c(), v = c(), b = c(), { app: S } = Q.sys, V = (t) => {
19
20
  D("search");
20
21
  }, D = (t, e = null) => {
21
- H(t, (i) => {
22
+ H(t, (r) => {
22
23
  R(() => {
23
- f(), e == null || e(i);
24
+ f(), e == null || e(r);
24
25
  });
25
26
  });
26
27
  }, f = () => {
@@ -59,10 +60,10 @@ const ie = /* @__PURE__ */ q({
59
60
  series: []
60
61
  };
61
62
  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)");
62
- let i = l.value.fields.find((a) => a.group && a.name != l.value.date), k = m.value.fields.find((a) => a.name == i.name).control.data.data;
63
+ let r = l.value.fields.find((a) => a.group && a.name != l.value.date), k = y.value.fields.find((a) => a.name == r.name).control.data.data;
63
64
  for (let a = 0; a < k.length; a++) {
64
65
  let o = k[a];
65
- o.color || X.error("颜色字段不能为空");
66
+ o.color || Y.error("颜色字段不能为空");
66
67
  let n = {
67
68
  name: o.text,
68
69
  type: "line",
@@ -103,49 +104,49 @@ const ie = /* @__PURE__ */ q({
103
104
  global: !0
104
105
  });
105
106
  for (let h = 0; h < t.length; h++) {
106
- let j = t[h], _ = u.value[l.value.table].find((L) => L[i.name] == o.value && L[l.value.date] == j);
107
+ let $ = t[h], _ = u.value[l.value.table].find((L) => L[r.name] == o.value && L[l.value.date] == $);
107
108
  _ == null ? n.data.push(null) : n.data.push(_[l.value.value]);
108
109
  }
109
110
  e.series.push(n), e.legend.data.push(o.text);
110
111
  }
111
- e.xAxis.data.push(...t), s.setOption(e);
112
+ e.xAxis.data.push(...t), i.setOption(e);
112
113
  }, w = async () => {
113
- var i;
114
- let t = C.dom.getHeight([(i = d.value) == null ? void 0 : i.$el]), e = b.value.getBoundingClientRect();
114
+ var r;
115
+ let t = C.dom.getHeight([(r = d.value) == null ? void 0 : r.$el]), e = b.value.getBoundingClientRect();
115
116
  g.value = e.height - t - 10 - 1, await R();
116
117
  }, N = async (t) => {
117
- d.value.resize(t), await w(), s == null || s.resize();
118
- }, $ = async () => {
119
- await w(), s = p.init(v.value), f();
118
+ d.value.resize(t), await w(), i == null || i.resize();
119
+ }, U = async () => {
120
+ await w(), i = x.init(v.value), f();
120
121
  };
121
- return M(async () => {
122
- x.value = U.getConditionForm(y.value, E.value.query.condition), p = await W.getECharts(), await $();
123
- }), O(() => l.value, (t, e) => {
122
+ return G(async () => {
123
+ p.value = W.getConditionForm(m.value, E.value.query.condition), x = await X.getECharts(), await U();
124
+ }), M(() => l.value, (t, e) => {
124
125
  f();
125
- }), F({ resize: N }), (t, e) => (Z(), I("div", {
126
+ }), F({ resize: N }), (t, e) => (O(), I("div", {
126
127
  ref_key: "statisticRef",
127
128
  ref: b,
128
129
  class: "ha-statistic-layout"
129
130
  }, [
130
- J(Y, {
131
+ J(Z, {
131
132
  ref_key: "searchRef",
132
133
  ref: d,
133
- schema: r(y),
134
- table: r(m),
135
- layout: r(l),
136
- set: r(u),
137
- "search-data": r(x),
138
- onChange: r(V)
134
+ schema: s(m),
135
+ table: s(y),
136
+ layout: s(l),
137
+ set: s(u),
138
+ "search-data": s(p),
139
+ onChange: s(V)
139
140
  }, null, 8, ["schema", "table", "layout", "set", "search-data", "onChange"]),
140
141
  K("div", {
141
142
  ref_key: "chartRef",
142
143
  ref: v,
143
144
  class: "chart",
144
- style: P({ height: r(g) + "px" })
145
+ style: P({ height: s(g) + "px" })
145
146
  }, null, 4)
146
147
  ], 512));
147
148
  }
148
149
  });
149
150
  export {
150
- ie as default
151
+ se as default
151
152
  };
@@ -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-LfsWg1Ps.js";
2
+ import { _ } from "./Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.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-LfsWg1Ps.js";
1
+ import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js";
2
2
  export {
3
3
  f as default
4
4
  };