halo-pc 1.0.36 → 1.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. package/dist/{Article-CSL7LnKj.js → Article-H_clf90b.js} +56 -59
  2. package/dist/{ArticleFooter-_CUySAZu.js → ArticleFooter-BLi4TNA7.js} +3 -4
  3. package/dist/Autocomplete-BF9x0F4f.js +49 -0
  4. package/dist/{Autocomplete-BTBqlR6B.js → Autocomplete-CcIzTPSr.js} +11 -12
  5. package/dist/{Autocomplete-CIRk6M3c.js → Autocomplete-DMm6oI1g.js} +1 -1
  6. package/dist/{CSharp-CMmXPS2i.js → CSharp-CZOchOE-.js} +1 -1
  7. package/dist/Calender-BoQV7bhA.js +10 -0
  8. package/dist/Callback-79Bw4RwY.js +20 -0
  9. package/dist/Cascader-D1Ou5OSg.js +41 -0
  10. package/dist/{Cascader-CeQ0jUxU.js → Cascader-DMhl98vw.js} +25 -26
  11. package/dist/{Checkbox-Fddc4Zgy.js → Checkbox-C6t6S7ii.js} +1 -1
  12. package/dist/{Checkbox--pNX7Slb.js → Checkbox-DtrXMDBR.js} +13 -14
  13. package/dist/Code-B8ISTTYK.js +54 -0
  14. package/dist/Code-BMlBvnqa.js +4 -0
  15. package/dist/{Code-C6A3DOQp.js → Code-DDacfgvl.js} +1 -1
  16. package/dist/Code-DIGn8Raz.js +36 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +57 -0
  18. package/dist/Column-DjA11efs.js +69 -0
  19. package/dist/{Comment-T5XWLthu.js → Comment-Ixu0gPk3.js} +29 -35
  20. package/dist/{Compare-KV2Q7Tb7.js → Compare-C1uq4lgK.js} +7 -8
  21. package/dist/{Compare-jjtb6UdZ.js → Compare-NN40QJWm.js} +9 -10
  22. package/dist/{Copy-Ck1HeTdy.js → Copy-BcfSvyWG.js} +11 -12
  23. package/dist/Custom-Dn9_vPuD.js +58 -0
  24. package/dist/{DataExport-BY1fIwSd.js → DataExport-DNGgWqsx.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Bv4Pc10r.js → DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js} +24 -25
  26. package/dist/{DataImport--xUxoWAq.js → DataImport-CI9eM5T1.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BhPGLJCz.js → DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js} +39 -40
  28. package/dist/{Date-C3H04U5q.js → Date-CGyzi8yX.js} +1 -1
  29. package/dist/{Date-DRk7BsnD.js → Date-CZGbZKjB.js} +8 -9
  30. package/dist/{DateRange-CICZ9gVp.js → DateRange-MbbkmZ_Y.js} +9 -10
  31. package/dist/{DateTime-DXHkaHtE.js → DateTime-DHrHmRLL.js} +1 -1
  32. package/dist/{DateTime-CjTCtAm4.js → DateTime-DqUOXGWH.js} +8 -9
  33. package/dist/{DateTimeRange-CuEYJBUE.js → DateTimeRange-DgXQkZLx.js} +11 -12
  34. package/dist/{Daterange-cmpjJVxl.js → Daterange-DLHJuRur.js} +8 -9
  35. package/dist/{Decimal-BzR8o8bv.js → Decimal-BUJuuvfr.js} +1 -1
  36. package/dist/{Delete-B2VzOnk8.js → Delete-BGMk0orl.js} +19 -20
  37. package/dist/{Detail-ayakHymC.js → Detail-D4KzWdHQ.js} +7 -8
  38. package/dist/Dictionary-Esd3ERAq.js +55 -0
  39. package/dist/{Email-BbipkOFP.js → Email-C9K09hwC.js} +9 -10
  40. package/dist/{File-B131KRit.js → File-ai1eYO7v.js} +49 -50
  41. package/dist/Image-CfY4G1Yn.js +9 -0
  42. package/dist/{Index-BnudlpyF.js → Index-B5o7uf36.js} +15 -16
  43. package/dist/Index-CH3nwnPZ.js +4 -0
  44. package/dist/Index-CTjDkp7e.js +4 -0
  45. package/dist/Index-DSZ8wa7U.js +4 -0
  46. package/dist/Index-DVdiF3gr.js +4 -0
  47. package/dist/{Index-Bps1k5-m.js → Index-DYHrSEZ5.js} +1 -1
  48. package/dist/Index-DsZPtDYE.js +173 -0
  49. package/dist/{Index-B20QLMmF.js → Index-S1btGSGD.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-C-7l_RSt.js → Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js} +8 -9
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-IX-mfiEH.js → Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js} +19 -27
  52. package/dist/{Install-BnCA1XK8.js → Install-D-MgafyF.js} +13 -14
  53. package/dist/{Int-BSA4Srky.js → Int-CnvfCxgn.js} +9 -10
  54. package/dist/{Int-BlwraOyw.js → Int-D3RqVcmN.js} +13 -14
  55. package/dist/List-DA4SO_le.js +71 -0
  56. package/dist/Maintaince-BIgEbjrq.js +14 -0
  57. package/dist/{Markdown-Can2d8HC.js → Markdown-hax8By5O.js} +1 -1
  58. package/dist/Month-5lTUiWin.js +37 -0
  59. package/dist/{Month-ClTpaaAr.js → Month-BDkwv-vc.js} +12 -13
  60. package/dist/{Month-Dyt_wc8r.js → Month-CnVTSnyK.js} +1 -1
  61. package/dist/{Normal-DBRpkCNs.js → Normal-DoE9t7d7.js} +73 -74
  62. package/dist/Paging-5qsCTRWy.js +92 -0
  63. package/dist/{PagingHeader-BQ-8s0NC.js → PagingHeader-BFtE6jSy.js} +35 -36
  64. package/dist/{PagingRow-CqAYVjxH.js → PagingRow-CSB-kwMz.js} +19 -20
  65. package/dist/{Racebar-BhRmArVA.js → Racebar-Bc-dDRss.js} +26 -32
  66. package/dist/{Radio-DCVAYEgh.js → Radio-CMGOtMnx.js} +1 -1
  67. package/dist/{Register-Dr5HF0B6.js → Register-8wi0uixs.js} +54 -55
  68. package/dist/RichText-BR4Kvx0J.js +41 -0
  69. package/dist/{SearchFooter-D02JAZez.js → SearchFooter-DOC21dmS.js} +1 -1
  70. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-dBZJFNo0.js → SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js} +3 -3
  71. package/dist/{SearchForm-DhrX5Akr.js → SearchForm-BMTSPce_.js} +1 -1
  72. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Dx26ti3G.js → SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js} +38 -41
  73. package/dist/{Select-ChwyjjbN.js → Select-DAxdpZlO.js} +8 -9
  74. package/dist/{Select-DK5-x-rC.js → Select-DnFyey0n.js} +23 -24
  75. package/dist/{Select-CaGb3SAi.js → Select-MBD4Simw.js} +1 -1
  76. package/dist/{Single-DIyLnILS.js → Single-D6x6VV_B.js} +85 -88
  77. package/dist/{Statistic-ArzDDFwp.js → Statistic-BS_DA72m.js} +22 -23
  78. package/dist/{Stock-DapT2McI.js → Stock-CbucObTu.js} +1 -1
  79. package/dist/{Stock-CsVIZtQ4.js → Stock-CtmevqBK.js} +1 -1
  80. package/dist/{Stock.vue_vue_type_style_index_0_lang-JABRw23-.js → Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js} +12 -13
  81. package/dist/{Switch-B0VJc80B.js → Switch-BlXAy9qH.js} +1 -1
  82. package/dist/{Table-C5kHBVpV.js → Table-CqsfAMh7.js} +84 -87
  83. package/dist/{Table-Cwe8QuVi.js → Table-Da9gan1Y.js} +78 -79
  84. package/dist/Text-C72NLZMt.js +48 -0
  85. package/dist/Text-CHvsKR9H.js +4 -0
  86. package/dist/{Text-CK1PT6x8.js → Text-CbZlEVTJ.js} +10 -11
  87. package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +53 -0
  88. package/dist/{TextLink-Bn_Z4Ajl.js → TextLink-SAnZ7BfX.js} +10 -11
  89. package/dist/{Textarea-C6Pi4p9b.js → Textarea-DphCUpXp.js} +1 -1
  90. package/dist/{Time-DWG3pwjK.js → Time-DjE8yYdK.js} +10 -11
  91. package/dist/{Timeline-Bqq3rFbX.js → Timeline-D11vjkpZ.js} +13 -19
  92. package/dist/Tree-DK73Ou_F.js +117 -0
  93. package/dist/{Tree-CU2UHknq.js → Tree-kich05vY.js} +99 -102
  94. package/dist/{TreeNode-DD-YfbgL.js → TreeNode-Dx6cZ31Z.js} +10 -11
  95. package/dist/{Update-BdbT4B2n.js → Update-D2Plm_AG.js} +14 -15
  96. package/dist/{UpdateChild-CVgQs6_A.js → UpdateChild-BXV7QqaP.js} +20 -21
  97. package/dist/{Upload-CKHSikDI.js → Upload-B87EDynn.js} +44 -45
  98. package/dist/Upload-CHPjMGFZ.js +65 -0
  99. package/dist/{Year-nGY1S5_T.js → Year-BPFmIiPX.js} +1 -1
  100. package/dist/{Year-CnA4ZUPj.js → Year-C93IJgc8.js} +8 -9
  101. package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
  102. package/dist/main-nvsTmKXH.js +16321 -0
  103. package/dist/main.js +137 -136
  104. package/dist/style.css +1 -1
  105. package/esm/coms/business/Form.vue.d.ts +2 -1
  106. package/esm/coms/drivers/@types/DriverEmit.d.ts +18 -0
  107. package/esm/coms/drivers/@types/DriverKindEmit.d.ts +18 -0
  108. package/esm/coms/drivers/@types/KindFormProps.d.ts +3 -6
  109. package/esm/coms/drivers/@types/index.d.ts +3 -1
  110. package/esm/coms/drivers/Index.vue.d.ts +26 -29
  111. package/esm/coms/drivers/Kind.vue.d.ts +8 -8
  112. package/esm/coms/layouts/Index.vue.d.ts +7 -3
  113. package/esm/coms/layouts/Side.vue.d.ts +5 -2
  114. package/esm/coms/layouts/Top.vue.d.ts +4 -1
  115. package/esm/coms/lists/Tree.vue.d.ts +2 -1
  116. package/esm/coms/pages/@types/index.d.ts +1 -2
  117. package/esm/coms/pages/Custom.vue.d.ts +2 -1
  118. package/esm/coms/pages/List.vue.d.ts +1 -1
  119. package/esm/coms/pages/Paging.vue.d.ts +2 -1
  120. package/esm/coms/pages/Single.vue.d.ts +2 -1
  121. package/esm/coms/pagings/Article.vue.d.ts +2 -1
  122. package/esm/coms/pagings/Index.vue.d.ts +2 -1
  123. package/esm/coms/pagings/Table.vue.d.ts +2 -1
  124. package/esm/coms/searches/Text.vue.d.ts +5 -7
  125. package/esm/svcs/ModuleSvc.d.ts +40 -0
  126. package/esm/svcs/index.d.ts +3 -3
  127. package/package.json +9 -9
  128. package/dist/Autocomplete-Buw1Hs35.js +0 -50
  129. package/dist/Calender-P8tmSbW2.js +0 -10
  130. package/dist/Callback-SEWVfpG_.js +0 -21
  131. package/dist/Cascader-DWNTommi.js +0 -47
  132. package/dist/Code-CQSTwwc4.js +0 -4
  133. package/dist/Code-CXMdFELH.js +0 -42
  134. package/dist/Code-THGJ7IzI.js +0 -60
  135. package/dist/Code.vue_vue_type_style_index_0_lang-BXOFkrGK.js +0 -63
  136. package/dist/Column-CucHIBYv.js +0 -75
  137. package/dist/Custom-CkyWaXAB.js +0 -61
  138. package/dist/Dictionary-BiSpx7nU.js +0 -61
  139. package/dist/Image-Cb1PzLpD.js +0 -9
  140. package/dist/Index-2vdi0Nq0.js +0 -4
  141. package/dist/Index-BOKSKn0N.js +0 -4
  142. package/dist/Index-CymZGuJo.js +0 -174
  143. package/dist/Index-Cz0Ti6rP.js +0 -4
  144. package/dist/Index-Dhg6Vts6.js +0 -4
  145. package/dist/List-BnT_8B_q.js +0 -74
  146. package/dist/Maintaince-CwL7tseR.js +0 -20
  147. package/dist/Month-CRmTCjQr.js +0 -38
  148. package/dist/Paging-ByJhfHCh.js +0 -95
  149. package/dist/RichText-Dj93TxtW.js +0 -47
  150. package/dist/Text-D2P-_cQT.js +0 -54
  151. package/dist/Text-oKVRjuSR.js +0 -4
  152. package/dist/Text.vue_vue_type_style_index_0_lang-epPB32IU.js +0 -59
  153. package/dist/Tree-DRUGEHR3.js +0 -123
  154. package/dist/Upload-BCGGzOTn.js +0 -71
  155. package/dist/assets/clone-BZn0cTAu.js +0 -134
  156. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  157. package/dist/assets/liquidjs-C2HVw1Ra.js +0 -2901
  158. package/dist/assets/moment-h96o7c8I.js +0 -2578
  159. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  160. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  161. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  162. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  163. package/dist/main-BLb5AIWJ.js +0 -10249
@@ -1,10 +1,9 @@
1
- import { defineComponent as T, toRefs as A, ref as f, computed as D, resolveComponent as b, openBlock as c, createBlock as y, unref as n, withKeys as L, withModifiers as O, 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, U as P, v as Q, h as W } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
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";
4
3
  const X = { class: "option-text" }, Y = {
5
4
  key: 0,
6
5
  class: "option-suffix"
7
- }, te = /* @__PURE__ */ T({
6
+ }, le = /* @__PURE__ */ A({
8
7
  __name: "Select",
9
8
  props: {
10
9
  schema: {},
@@ -16,22 +15,22 @@ const X = { class: "option-text" }, Y = {
16
15
  },
17
16
  emits: ["submit", "change", "update:modelValue"],
18
17
  setup(C, { emit: E }) {
19
- let s = E, B = C, { schema: S, field: u, table: m, set: h, row: R, modelValue: p } = A(B), x = f(), g = f(), v = f(!1), d = f(u.value.control.data.data), K = (t) => {
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) => {
20
19
  t == "" && (t = null);
21
20
  let e;
22
- if (P.type.isString(t) && u.value.control.multiple ? e = t.join(",") : e = t, r.value = e, u.value.control.text) {
21
+ if (P.object.isString(t) && u.value.control.multiple ? e = t.join(",") : e = t, r.value = e, u.value.control.text) {
23
22
  let a = m.value.fields.find((l) => l.name == u.value.control.text), o;
24
23
  e && (o = d.value.find((i) => i.value == e).text);
25
24
  debugger;
26
25
  R.value[a.name] = o;
27
26
  }
28
- _(m.value, u.value), s("change", t);
29
- }, N = () => {
27
+ g(m.value, u.value), s("change", t);
28
+ }, K = () => {
30
29
  s("submit");
31
- }, U = () => {
32
- }, j = () => {
30
+ }, N = () => {
31
+ }, F = () => {
33
32
  v.value = !0;
34
- let t = { text: g.value, conditions: [] };
33
+ let t = { text: b.value, conditions: [] };
35
34
  u.value.control.data.conditions.forEach((e) => {
36
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(",");
37
36
  t.conditions.push({ name: e.name, value: o });
@@ -43,9 +42,9 @@ const X = { class: "option-text" }, Y = {
43
42
  x.value.scrollToOption(e);
44
43
  });
45
44
  });
46
- }, F = (t) => {
47
- g.value = t, j();
48
- }, M = (t, e) => {
45
+ }, M = (t) => {
46
+ b.value = t, F();
47
+ }, T = (t, e) => {
49
48
  let a = [];
50
49
  return S.value.forEach((o) => {
51
50
  o.fields.forEach((l) => {
@@ -54,11 +53,11 @@ const X = { class: "option-text" }, Y = {
54
53
  });
55
54
  });
56
55
  }), a;
57
- }, _ = (t, e) => {
58
- M(t, e).forEach((o) => {
59
- Q.setRowsValue(null, h.value, o.table, o.field), _(o.table, o.field);
56
+ }, g = (t, e) => {
57
+ T(t, e).forEach((o) => {
58
+ Q.setRowsValue(null, h.value, o.table, o.field), g(o.table, o.field);
60
59
  });
61
- }, r = D({
60
+ }, r = L({
62
61
  get() {
63
62
  return u.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
64
63
  },
@@ -67,7 +66,7 @@ const X = { class: "option-text" }, Y = {
67
66
  }
68
67
  });
69
68
  return (t, e) => {
70
- const a = b("el-option"), o = b("el-select");
69
+ const a = _("el-option"), o = _("el-select");
71
70
  return c(), y(o, {
72
71
  ref_key: "selectRef",
73
72
  ref: x,
@@ -80,12 +79,12 @@ const X = { class: "option-text" }, Y = {
80
79
  clearable: "",
81
80
  placeholder: n(J)(n(m).name, n(u).name),
82
81
  multiple: n(u).control.multiple,
83
- "remote-method": n(F),
82
+ "remote-method": n(M),
84
83
  loading: n(v),
85
84
  disabled: n(u).control.readonly,
86
- onKeyup: L(O(n(N), ["alt"]), ["enter", "native"]),
87
- onBlur: n(U),
88
- onChange: n(K),
85
+ onKeyup: O(U(n(K), ["alt"]), ["enter", "native"]),
86
+ onBlur: n(N),
87
+ onChange: n(j),
89
88
  modelValue: n(r),
90
89
  "onUpdate:modelValue": e[0] || (e[0] = (l) => $(r) ? r.value = l : r = l)
91
90
  }, {
@@ -108,5 +107,5 @@ const X = { class: "option-text" }, Y = {
108
107
  }
109
108
  });
110
109
  export {
111
- te as default
110
+ le as default
112
111
  };
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ u({
10
10
  modelValue: { type: [String, Number, Boolean] }
11
11
  },
12
12
  setup(a) {
13
- let r = f(() => import("./Dictionary-BiSpx7nU.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
13
+ let r = f(() => import("./Dictionary-Esd3ERAq.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
14
14
  return (_, t) => (b(), V(e(r), {
15
15
  schema: e(m),
16
16
  table: e(s),
@@ -1,8 +1,7 @@
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 O, 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 x, createCommentVNode as B, resolveDynamicComponent as Ne, normalizeStyle as Pe, createTextVNode as te, nextTick as ae } from "vue";
2
- import { d as qe, e as Ke, t as oe, f as je, g as Fe, U as D, a as Me, h as Oe, m as ue, b as Ae, i as Ge, s as re } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-C-7l_RSt.js";
5
- const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class: "row-title" }, Qe = { class: "el-drawer__title" }, We = ["href"], tl = /* @__PURE__ */ Ue({
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({
6
5
  __name: "Single",
7
6
  props: {
8
7
  base: {},
@@ -12,18 +11,18 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
12
11
  },
13
12
  emits: ["navigate", "load", "succeed", "close"],
14
13
  setup(se, { expose: ie, emit: de }) {
15
- let L = de, me = se, { url: ve, base: A, route: z } = $e(me), c = u(), b = u(), v = u(), r = u(), y = u(), N = u(), f = u({ table: null, layout: null }), w = u(), P = u([]), fe = u(), E = u(), R = u(), j = u(), C = u(), q = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), F = u(), S = u(), pe = (l) => !0, ce = (l) => {
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) => {
16
15
  let t = D.url.getPath(ve.value), a = D.url.getPath(l);
17
16
  return t != a;
18
17
  }, be = () => {
19
18
  Ve();
20
19
  }, ye = (l, t) => {
21
- G("copy", l, t);
20
+ O("copy", l, t);
22
21
  }, _e = (l, t) => {
23
- G("update", l, t);
22
+ O("update", l, t);
24
23
  }, ge = () => {
25
24
  i.value.visible = !1;
26
- }, G = (l, t, a) => {
25
+ }, O = (l, t, a) => {
27
26
  let n = he(l, t);
28
27
  a.ctrlKey ? L("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
29
28
  }, he = (l, t = null) => {
@@ -34,46 +33,46 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
34
33
  }
35
34
  return a;
36
35
  }, we = (l, t, a) => {
37
- (a.ctrlKey || k.value) && (F.value = l, S.value = D.object.clone(t), k.value = !0, S.value.fields.forEach((n) => {
36
+ (a.ctrlKey || x.value) && (P.value = l, R.value = D.object.clone(t), x.value = !0, R.value.fields.forEach((n) => {
38
37
  n.control.textualize = !1;
39
38
  }));
40
- }, H = (l) => {
39
+ }, G = (l) => {
41
40
  i.value.visible = !1, L("succeed", W.value, l);
42
41
  }, Ce = () => {
43
42
  L("close");
44
43
  }, I = (l, t, a, n, T) => {
45
44
  }, J = (l, t) => {
46
45
  if (t) {
47
- N.value = y.value.layouts.find((a) => a.type == l);
46
+ A.value = y.value.layouts.find((a) => a.type == l);
48
47
  return;
49
48
  }
50
49
  f.value.layout = f.value.table.layouts.find((a) => a.type == l);
51
- }, ke = (l) => {
50
+ }, xe = (l) => {
52
51
  let t = r.value.find((a) => a.name == l);
53
52
  f.value.table = t, f.value.layout = t.layouts[0];
54
- }, xe = (l) => {
53
+ }, ke = (l) => {
55
54
  let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
56
55
  r.value.find((T) => T.name == a).main || (w.value = a);
57
- }, Re = (l, t = null, a = null) => {
56
+ }, Se = (l, t = null, a = null) => {
58
57
  ae(() => {
59
58
  E.value.validate((n, T) => {
60
59
  if (!n)
61
- return xe(T), a && a(!1), !1;
62
- let U = c.value.type == "Update" ? b.value.update.route : b.value.insert.route;
63
- t && t(U, v.value), Oe.post(U, v.value).then(({ data: $, message: V }) => {
64
- E.value.clearValidate(), ue.success(V), H(v.value);
65
- }).catch(({ code: $, data: V, message: X }) => {
66
- if ($ != "ValidateError")
60
+ 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 }) => {
63
+ E.value.clearValidate(), ue.success(V), G(v.value);
64
+ }).catch(({ code: U, data: V, message: X }) => {
65
+ if (U != "ValidateError")
67
66
  return;
68
- P.value = V;
69
- let K = V.find((_) => _.table !== y.value.name);
70
- if (K) {
71
- let _ = r.value.find((o) => o.name == K.table);
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);
72
71
  _ && (w.value = _.name);
73
72
  }
74
73
  ae(() => {
75
74
  E.value.clearValidate(), E.value.validate((_, o) => {
76
- _ || (a && a(!1), P.value = []);
75
+ _ || (a && a(!1), K.value = []);
77
76
  });
78
77
  });
79
78
  }).finally(() => {
@@ -83,19 +82,17 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
83
82
  });
84
83
  }, Q = (l) => {
85
84
  var a, n;
86
- let t = Ae(l.module.type, l.module.name);
87
- Ge.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], N.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);
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);
90
89
  }, Te = (l, t) => {
91
- if (l == "ctrlS") {
92
- if (c.value.type == "Detail") {
93
- if (!q.value || !q.value.keyboard)
94
- return !1;
95
- q.value.keyboard(l, t);
90
+ if (l == Ge.ctrlS) {
91
+ if (p.value.type == "Detail") {
92
+ Ie.triggerKeyboardHandler(H.value, l, t);
96
93
  return;
97
94
  }
98
- M(t);
95
+ q(t);
99
96
  }
100
97
  }, Ve = () => {
101
98
  let l = D.url.getUrl(z.value.path, z.value.query);
@@ -103,31 +100,31 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
103
100
  });
104
101
  };
105
102
  (() => {
106
- Q(A.value.data);
103
+ Q(F.value.data);
107
104
  })();
108
- let M = (l) => {
109
- if (!j.value.submit) {
105
+ let q = (l) => {
106
+ if (!N.value.submit) {
110
107
  ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
111
108
  return;
112
109
  }
113
- j.value.submit(l);
110
+ N.value.submit(l);
114
111
  }, ze = Y(() => {
115
- let l = `/${y.value.name}/update`, t = c.value.type == "Detail" ? "detail" : "update";
116
- return qe.getComponent(l, "partial", t);
117
- }), W = Y(() => c.value.type.toLowerCase());
118
- return Be(() => A.value, (l) => {
119
- Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
120
- }), ie({ shouldLoad: pe, shouldSpin: ce, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
121
- 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"), K = p("el-card"), _ = p("el-drawer");
122
- return d(), O("div", {
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", {
123
120
  ref_key: "singleRef",
124
121
  ref: fe,
125
- class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
122
+ class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(x) }])
126
123
  }, [
127
- m("div", He, [
128
- g($, { class: "main-scroller" }, {
124
+ m("div", Je, [
125
+ g(U, { class: "main-scroller" }, {
129
126
  default: s(() => [
130
- g(U, {
127
+ g($, {
131
128
  ref_key: "formRef",
132
129
  ref: E,
133
130
  model: e(v),
@@ -137,28 +134,28 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
137
134
  default: s(() => [
138
135
  g(ne, {
139
136
  ref_key: "mainRef",
140
- ref: R,
141
- module: e(c),
137
+ ref: S,
138
+ module: e(p),
142
139
  schema: e(r),
143
140
  table: e(y),
144
- layout: e(N),
141
+ layout: e(A),
145
142
  next: e(b),
146
143
  set: e(v),
147
144
  route: e(z),
148
- "validate-errors": e(P),
145
+ "validate-errors": e(K),
149
146
  onChange: e(I),
150
147
  onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
151
- onSubmit: e(M)
148
+ onSubmit: e(q)
152
149
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
153
150
  e(r).length > 1 ? (d(), h(T, {
154
151
  key: 0,
155
152
  type: "border-card",
156
- onTabChange: e(ke),
153
+ onTabChange: e(xe),
157
154
  modelValue: e(w),
158
155
  "onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
159
156
  }, {
160
157
  default: s(() => [
161
- (d(!0), O(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), h(n, {
158
+ (d(!0), j(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), h(n, {
162
159
  name: o.name,
163
160
  key: o.name
164
161
  }, {
@@ -169,7 +166,7 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
169
166
  disabled: !o.tooltip
170
167
  }, {
171
168
  default: s(() => [
172
- m("div", null, x(e(Ke)(o.table)), 1)
169
+ m("div", null, k(e(Ne)(o.table)), 1)
173
170
  ]),
174
171
  _: 2
175
172
  }, 1032, ["content", "disabled"])
@@ -183,18 +180,18 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
183
180
  key: 1,
184
181
  ref_key: "childRef",
185
182
  ref: C,
186
- module: e(c),
183
+ module: e(p),
187
184
  schema: e(r),
188
185
  table: e(f).table,
189
186
  layout: e(f).layout,
190
187
  next: e(b),
191
188
  set: e(v),
192
189
  route: e(z),
193
- "validate-errors": e(P),
190
+ "validate-errors": e(K),
194
191
  onRowEdit: e(we),
195
192
  onChange: e(I),
196
193
  onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
197
- onSubmit: e(M)
194
+ onSubmit: e(q)
198
195
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
199
196
  ]),
200
197
  _: 1
@@ -202,51 +199,51 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
202
199
  ]),
203
200
  _: 1
204
201
  }),
205
- (d(), h(Ne(e(ze)), {
202
+ (d(), h(Ae(e(ze)), {
206
203
  ref_key: "updateRef",
207
- ref: j,
204
+ ref: N,
208
205
  class: "main-footer",
209
206
  schema: e(r),
210
207
  table: e(y),
211
- layout: e(N),
208
+ layout: e(A),
212
209
  next: e(b),
213
210
  set: e(v),
214
211
  route: e(z),
215
212
  onCopy: e(ye),
216
213
  onEdit: e(_e),
217
- onSubmit: e(Re),
214
+ onSubmit: e(Se),
218
215
  onClose: e(Ce)
219
216
  }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
220
217
  ]),
221
- e(k) ? (d(), h(K, {
218
+ e(x) ? (d(), h(M, {
222
219
  key: 0,
223
220
  class: "side-form"
224
221
  }, {
225
222
  header: s(() => [
226
- m("div", Ie, [
227
- m("div", Je, x(e(oe)("common.modify")) + " " + x(e(F)[e(S).show[0].name]), 1),
223
+ m("div", Qe, [
224
+ m("div", We, k(e(oe)("common.modify")) + " " + k(e(P)[e(R).show[0].name]), 1),
228
225
  m("div", {
229
226
  class: "row-close",
230
- onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
227
+ onClick: t[4] || (t[4] = (o) => Z(x) ? x.value = !1 : x = !1)
231
228
  }, t[6] || (t[6] = [
232
229
  m("i", { class: "fa fa-close" }, null, -1)
233
230
  ]))
234
231
  ])
235
232
  ]),
236
233
  default: s(() => [
237
- g($, null, {
234
+ g(U, null, {
238
235
  default: s(() => [
239
- g(U, {
236
+ g($, {
240
237
  size: "small",
241
238
  "label-width": "80px"
242
239
  }, {
243
240
  default: s(() => [
244
- (d(!0), O(ee, null, le(e(S).show, (o) => (d(), h(X, {
245
- style: Pe(o.control.height ? `height: ${o.control.height}px;` : ""),
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;` : ""),
246
243
  rules: o.rules
247
244
  }, {
248
245
  label: s(() => [
249
- te(x(e(je)(e(S).name, o.name)) + " ", 1),
246
+ te(k(e(Pe)(e(R).name, o.name)) + " ", 1),
250
247
  o.control.tooltip ? (d(), h(V, {
251
248
  key: 0,
252
249
  trigger: "hover",
@@ -258,18 +255,18 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
258
255
  m("i", { class: "fa fa-question-circle icon-question" }, null, -1)
259
256
  ])),
260
257
  default: s(() => [
261
- m("pre", null, x(o.control.tooltip.content), 1)
258
+ m("pre", null, k(o.control.tooltip.content), 1)
262
259
  ]),
263
260
  _: 2
264
261
  }, 1032, ["title"])) : B("", !0)
265
262
  ]),
266
263
  default: s(() => [
267
- g(Fe, {
264
+ g(qe, {
268
265
  schema: e(r),
269
- table: e(S),
266
+ table: e(R),
270
267
  field: o,
271
268
  set: e(v),
272
- row: e(F)
269
+ row: e(P)
273
270
  }, null, 8, ["schema", "table", "field", "set", "row"])
274
271
  ]),
275
272
  _: 2
@@ -287,25 +284,25 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
287
284
  key: 1,
288
285
  "destroy-on-close": "",
289
286
  "append-to-body": e(i).appendToBody,
290
- size: `${e(c).width ?? "60%"}`,
287
+ size: `${e(p).width ?? "60%"}`,
291
288
  modelValue: e(i).visible,
292
289
  "onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
293
290
  }, {
294
291
  header: s(() => [
295
- m("div", Qe, [
296
- te(x(e(b)[e(i).page].title) + " ", 1),
292
+ m("div", Xe, [
293
+ te(k(e(b)[e(i).page].title) + " ", 1),
297
294
  m("a", {
298
295
  class: "drawer-copy",
299
296
  href: `${e(D).url.getToUrl(e(i).url)}`
300
- }, x(e(oe)("common.link")), 9, We)
297
+ }, k(e(oe)("common.link")), 9, Ye)
301
298
  ])
302
299
  ]),
303
300
  default: s(() => [
304
- g(e(Me), {
301
+ g(e(je), {
305
302
  ref_key: "pageRef",
306
- ref: q,
303
+ ref: H,
307
304
  url: e(i).url,
308
- onSucceed: e(H),
305
+ onSucceed: e(G),
309
306
  onClose: e(ge)
310
307
  }, null, 8, ["url", "onSucceed", "onClose"])
311
308
  ]),
@@ -316,5 +313,5 @@ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class
316
313
  }
317
314
  });
318
315
  export {
319
- tl as default
316
+ al as default
320
317
  };
@@ -1,8 +1,7 @@
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 r, createElementVNode as K, normalizeStyle as P, nextTick as R } from "vue";
2
- import { B as Q, s as W, n as X, U as C, m as Y } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- import { _ as Z } from "./SearchForm.vue_vue_type_style_index_0_lang-Dx26ti3G.js";
5
- const re = /* @__PURE__ */ j({
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({
6
5
  __name: "Statistic",
7
6
  props: {
8
7
  searchData: {},
@@ -16,12 +15,12 @@ const re = /* @__PURE__ */ j({
16
15
  },
17
16
  emits: ["search"],
18
17
  setup(A, { expose: F, emit: z }) {
19
- let B = z, H = A, { route: E, module: T, schema: y, table: m, layout: l, next: ee, set: u, searchData: x } = q(H), i = null, p = null, g = c(), d = c(), v = c(), b = c(), { app: S } = Q.sys, V = (t) => {
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) => {
20
19
  D("search");
21
20
  }, D = (t, e = null) => {
22
- B(t, (s) => {
21
+ H(t, (i) => {
23
22
  R(() => {
24
- f(), e == null || e(s);
23
+ f(), e == null || e(i);
25
24
  });
26
25
  });
27
26
  }, f = () => {
@@ -60,10 +59,10 @@ const re = /* @__PURE__ */ j({
60
59
  series: []
61
60
  };
62
61
  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 s = l.value.fields.find((a) => a.group && a.name != l.value.date), k = m.value.fields.find((a) => a.name == s.name).control.data.data;
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;
64
63
  for (let a = 0; a < k.length; a++) {
65
64
  let o = k[a];
66
- o.color || Y.error("颜色字段不能为空");
65
+ o.color || X.error("颜色字段不能为空");
67
66
  let n = {
68
67
  name: o.text,
69
68
  type: "line",
@@ -104,31 +103,31 @@ const re = /* @__PURE__ */ j({
104
103
  global: !0
105
104
  });
106
105
  for (let h = 0; h < t.length; h++) {
107
- let $ = t[h], _ = u.value[l.value.table].find((L) => L[s.name] == o.value && L[l.value.date] == $);
106
+ let j = t[h], _ = u.value[l.value.table].find((L) => L[i.name] == o.value && L[l.value.date] == j);
108
107
  _ == null ? n.data.push(null) : n.data.push(_[l.value.value]);
109
108
  }
110
109
  e.series.push(n), e.legend.data.push(o.text);
111
110
  }
112
- e.xAxis.data.push(...t), i.setOption(e);
111
+ e.xAxis.data.push(...t), s.setOption(e);
113
112
  }, w = async () => {
114
- var s;
115
- let t = C.dom.getHeight([(s = d.value) == null ? void 0 : s.$el]), e = b.value.getBoundingClientRect();
113
+ var i;
114
+ let t = C.dom.getHeight([(i = d.value) == null ? void 0 : i.$el]), e = b.value.getBoundingClientRect();
116
115
  g.value = e.height - t - 10 - 1, await R();
117
116
  }, N = async (t) => {
118
- d.value.resize(t), await w(), i == null || i.resize();
119
- }, U = async () => {
120
- await w(), i = p.init(v.value), f();
117
+ d.value.resize(t), await w(), s == null || s.resize();
118
+ }, $ = async () => {
119
+ await w(), s = p.init(v.value), f();
121
120
  };
122
- return G(async () => {
123
- x.value = W.getConditionForm(y.value, E.value.query.condition), p = await X.getECharts(), await U();
124
- }), M(() => l.value, (t, e) => {
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) => {
125
124
  f();
126
- }), F({ resize: N }), (t, e) => (O(), I("div", {
125
+ }), F({ resize: N }), (t, e) => (Z(), I("div", {
127
126
  ref_key: "statisticRef",
128
127
  ref: b,
129
128
  class: "ha-statistic-layout"
130
129
  }, [
131
- J(Z, {
130
+ J(Y, {
132
131
  ref_key: "searchRef",
133
132
  ref: d,
134
133
  schema: r(y),
@@ -148,5 +147,5 @@ const re = /* @__PURE__ */ j({
148
147
  }
149
148
  });
150
149
  export {
151
- re as default
150
+ ie as default
152
151
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-JABRw23-.js";
1
+ import { _ as f } from "./Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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-JABRw23-.js";
2
+ import { _ } from "./Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js";
3
3
  const b = /* @__PURE__ */ c({
4
4
  __name: "Stock",
5
5
  props: {