halo-pc 1.0.21 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. package/dist/Article-C_3LULzy.js +200 -0
  2. package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-Do6I1mma.js} +24 -18
  3. package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BLOOqTTn.js} +1 -1
  4. package/dist/Autocomplete-BLrbt1wN.js +53 -0
  5. package/dist/Autocomplete-C27XN8Sp.js +54 -0
  6. package/dist/{CSharp-DGmv2biT.js → CSharp-BGn9jf2B.js} +1 -1
  7. package/dist/{Calender-dCiW7eIK.js → Calender-4bSMqUzx.js} +4 -4
  8. package/dist/Callback-BHYDtogL.js +26 -0
  9. package/dist/Cascader-D3y3WjFF.js +87 -0
  10. package/dist/Cascader-D9Y8L7X2.js +47 -0
  11. package/dist/{Checkbox-DklZD5ff.js → Checkbox-DnTLeLjt.js} +1 -1
  12. package/dist/Checkbox-dDfYBhhc.js +76 -0
  13. package/dist/{Code-DVZ9QWgE.js → Code-Af5URLnL.js} +1 -1
  14. package/dist/Code-Bi9Y45vV.js +42 -0
  15. package/dist/Code-CWsSgkJq.js +60 -0
  16. package/dist/Code-QYs-sjcG.js +4 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-CI6sLXKy.js +65 -0
  18. package/dist/Column-wzxM_-Vp.js +74 -0
  19. package/dist/Comment-BF8L1umD.js +104 -0
  20. package/dist/Compare-CjSQcnd3.js +43 -0
  21. package/dist/Compare-Cj_CPjIV.js +63 -0
  22. package/dist/Copy-BNt-Dwoo.js +49 -0
  23. package/dist/Custom-CYPkAqpf.js +57 -0
  24. package/dist/{DataExport-DAk1d4uG.js → DataExport-CHQtRKzA.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +42 -37
  26. package/dist/{DataImport-BLOSIbQ2.js → DataImport-CDcmH3Du.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js} +64 -60
  28. package/dist/{Date-D1KihBir.js → Date-BStpsA7n.js} +1 -1
  29. package/dist/Date-U1py5NaK.js +43 -0
  30. package/dist/DateRange-DxAx2gxI.js +63 -0
  31. package/dist/DateTime-B3609Ct6.js +44 -0
  32. package/dist/{DateTime-Dwg6aUf3.js → DateTime-CmJw1-WA.js} +1 -1
  33. package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-aDw57sTG.js} +19 -13
  34. package/dist/Daterange-C48t6usd.js +63 -0
  35. package/dist/{Decimal-tv9vqaXk.js → Decimal-Ca0K6NoZ.js} +1 -1
  36. package/dist/Delete-FhIvONUV.js +62 -0
  37. package/dist/{Detail-B2rtvufA.js → Detail-qqW0J946.js} +22 -17
  38. package/dist/Dictionary-CaXytFmK.js +59 -0
  39. package/dist/Email-H2DHJhMe.js +54 -0
  40. package/dist/{File-C63qevce.js → File-CjXewuui.js} +33 -28
  41. package/dist/Image-BSuCHshD.js +9 -0
  42. package/dist/Index-9KImKLrj.js +4 -0
  43. package/dist/Index-BIbR8SAU.js +178 -0
  44. package/dist/Index-BaoxkF9F.js +4 -0
  45. package/dist/{Index-Cc_CDbUJ.js → Index-BrI9x7i7.js} +1 -1
  46. package/dist/Index-CXR5RC6-.js +4 -0
  47. package/dist/{Index-B6Ec8rbl.js → Index-CpGonJ_m.js} +1 -1
  48. package/dist/{Index-Cev7Nudv.js → Index-DUgprnVp.js} +1 -1
  49. package/dist/{Index-BD6O3A9N.js → Index-icEhc88J.js} +25 -20
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -16
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +21 -16
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
  53. package/dist/{Install-CTAGNKPW.js → Install-FwXpJIWk.js} +29 -24
  54. package/dist/Int-CXl1QpEL.js +44 -0
  55. package/dist/Int-DAxz3ETu.js +46 -0
  56. package/dist/List-CV9bkdrq.js +79 -0
  57. package/dist/Maintaince-DZNq9aHX.js +20 -0
  58. package/dist/{Markdown-BJB6rQY8.js → Markdown-BhwqDlwa.js} +1 -1
  59. package/dist/{Month-ui1XorBW.js → Month-BEmnA7zU.js} +1 -1
  60. package/dist/Month-DXQBHoJU.js +43 -0
  61. package/dist/Month-bgEd_K7_.js +44 -0
  62. package/dist/{Normal-Cf7kP6RU.js → Normal-Dya4aqc7.js} +49 -45
  63. package/dist/Paging-JXDzxoM0.js +99 -0
  64. package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BETGBySb.js} +31 -25
  65. package/dist/{PagingRow-eXCadgdO.js → PagingRow-BLqp1c9E.js} +28 -22
  66. package/dist/QueryApi-B5jI3sBl.js +20 -0
  67. package/dist/{Racebar-ClXzi9hV.js → Racebar-CozeXwLJ.js} +42 -37
  68. package/dist/{Radio-llyoK7PI.js → Radio-CuAxYw7j.js} +1 -1
  69. package/dist/{Register-BaHhaZMu.js → Register-B11jE2Ox.js} +70 -66
  70. package/dist/RichText-CxBE_cVg.js +47 -0
  71. package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-agTqPUGE.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
  73. package/dist/{SearchForm-CroUQ_3K.js → SearchForm-DNKmE8W0.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +37 -33
  75. package/dist/Select-BPa5rx_H.js +86 -0
  76. package/dist/{Select-BYw63gZy.js → Select-CRfEAtba.js} +35 -30
  77. package/dist/{Select-BtNeUq9h.js → Select-MqDjnB-C.js} +1 -1
  78. package/dist/{Single-CCVi3Pcj.js → Single-C5Kkr9SY.js} +106 -102
  79. package/dist/{Statistic-g3nQvsbW.js → Statistic-Ce_FMw5O.js} +34 -30
  80. package/dist/{Stock-CNqLeSld.js → Stock-BTjhpaxv.js} +1 -1
  81. package/dist/{Stock-C6Fxo31l.js → Stock-D8AJmsvb.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +30 -25
  83. package/dist/{Switch-NMkH-rhl.js → Switch-gwGbi34o.js} +1 -1
  84. package/dist/{Table-DpA4dO4P.js → Table-C03eUBYm.js} +66 -61
  85. package/dist/{Table-Cdd_tPoL.js → Table-DA8aGGEH.js} +69 -66
  86. package/dist/{Text-DanSgaL9.js → Text-B5uPrGof.js} +18 -12
  87. package/dist/Text-D-VS-lCk.js +59 -0
  88. package/dist/Text-NRww74M3.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-Fsbur1tJ.js +59 -0
  90. package/dist/TextLink-B_Qg6CnF.js +65 -0
  91. package/dist/{Textarea-HhP_VFJV.js → Textarea-gtXLL6Qe.js} +1 -1
  92. package/dist/Time-DYOIZ2Rv.js +43 -0
  93. package/dist/Timeline-B4AYezYA.js +59 -0
  94. package/dist/{Tree-Ck_7r3nf.js → Tree-CRDb0vS5.js} +101 -97
  95. package/dist/Tree-CTmXjN1O.js +122 -0
  96. package/dist/TreeNode-HFcGpAOb.js +42 -0
  97. package/dist/{Update-DrmLFoty.js → Update-EHyhYK5k.js} +20 -15
  98. package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-CC3b9evd.js} +23 -17
  99. package/dist/Upload-CkQ-5tVg.js +72 -0
  100. package/dist/Upload-um4BYzwO.js +150 -0
  101. package/dist/UploadApi-BmdGJGjh.js +20 -0
  102. package/dist/Year-DKBG5ihv.js +47 -0
  103. package/dist/{Year-RGAEzf_V.js → Year-Lhvyb9Vk.js} +1 -1
  104. package/dist/assets/@intlify-BISCQg1h.js +2189 -0
  105. package/dist/assets/@vue-aVYGocXp.js +93 -0
  106. package/dist/assets/clone-BZn0cTAu.js +134 -0
  107. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  108. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  109. package/dist/assets/moment-h96o7c8I.js +2578 -0
  110. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  111. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  112. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  113. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  114. package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
  115. package/dist/main-C1iALE1f.js +8947 -0
  116. package/dist/main.js +130 -130
  117. package/dist/style.css +1 -1
  118. package/package.json +1 -1
  119. package/dist/Article-D3N6eVpH.js +0 -195
  120. package/dist/Autocomplete-C1Q-qo5y.js +0 -49
  121. package/dist/Autocomplete-C_t_3Onz.js +0 -48
  122. package/dist/Callback-BcjLHYz6.js +0 -20
  123. package/dist/Cascader-BMs1Kw-s.js +0 -81
  124. package/dist/Cascader-BoZLMQjq.js +0 -41
  125. package/dist/Checkbox-DeuCkQ_E.js +0 -70
  126. package/dist/Code-CmB3ZGnM.js +0 -54
  127. package/dist/Code-Q9ETcIfA.js +0 -36
  128. package/dist/Code-hiW76EUm.js +0 -4
  129. package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
  130. package/dist/Column-K0p0pVuf.js +0 -69
  131. package/dist/Comment-B_jDWUXE.js +0 -98
  132. package/dist/Compare-CziDSVLD.js +0 -37
  133. package/dist/Compare-DFDzyQIR.js +0 -57
  134. package/dist/Copy-gHXEFE58.js +0 -43
  135. package/dist/Custom-DS1OrDHT.js +0 -51
  136. package/dist/Date-BOrgXdKV.js +0 -37
  137. package/dist/DateRange-Clg_We_d.js +0 -57
  138. package/dist/DateTime-Ba-L9NIq.js +0 -38
  139. package/dist/Daterange-Gaj6hNOK.js +0 -57
  140. package/dist/Delete-HzVURBlh.js +0 -57
  141. package/dist/Dictionary-DKnp-UJn.js +0 -55
  142. package/dist/Email-CpOxaSSw.js +0 -48
  143. package/dist/Image-DRIunv3_.js +0 -9
  144. package/dist/Index-DSKuNKCT.js +0 -4
  145. package/dist/Index-QIBRYf1L.js +0 -4
  146. package/dist/Index-ZOfKMgat.js +0 -4
  147. package/dist/Index-bxLda8lZ.js +0 -174
  148. package/dist/Int-DmNjhEfK.js +0 -38
  149. package/dist/Int-nUzbSSOv.js +0 -41
  150. package/dist/List-gNI3y_wH.js +0 -74
  151. package/dist/Maintaince-pTASKuMA.js +0 -14
  152. package/dist/Month-CHfaIo8p.js +0 -38
  153. package/dist/Month-DgztqRaq.js +0 -37
  154. package/dist/Paging-CBgVct8q.js +0 -95
  155. package/dist/QueryApi-Wf86Sm6m.js +0 -13
  156. package/dist/RichText-Cc_jptgY.js +0 -41
  157. package/dist/Select-wxKjwxJj.js +0 -80
  158. package/dist/Text-DgZjeg-u.js +0 -4
  159. package/dist/Text-GuLK7BYX.js +0 -53
  160. package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
  161. package/dist/TextLink-B_Ur1pg0.js +0 -59
  162. package/dist/Time-CmyrAm3i.js +0 -37
  163. package/dist/Timeline-B85T2wBn.js +0 -53
  164. package/dist/Tree-OqvNLgYj.js +0 -118
  165. package/dist/TreeNode-Ba2f55wK.js +0 -37
  166. package/dist/Upload-D9HeSZCg.js +0 -68
  167. package/dist/Upload-DXADyB6r.js +0 -147
  168. package/dist/UploadApi-DAT-xdsM.js +0 -13
  169. package/dist/Year-Dx_qNPrz.js +0 -41
  170. package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
  171. package/dist/main-COiaaxGk.js +0 -3542
@@ -1,10 +1,15 @@
1
- import { defineComponent as T, toRefs as U, ref as f, computed as q, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as A, withModifiers as D, isRef as O, withCtx as V, createElementBlock as k, Fragment as $, renderList as z, createElementVNode as G, toDisplayString as w, createCommentVNode as H, nextTick as I } from "vue";
2
- import { aL as J, U as P, L as Q } from "./assets/halo-fe-idvmXC0t.js";
3
- import { d as W } from "./main-COiaaxGk.js";
1
+ import { defineComponent as A, toRefs as D, ref as f, computed as H, resolveComponent as b, openBlock as c, createBlock as y, unref as n, withKeys as L, withModifiers as O, isRef as U, withCtx as V, createElementBlock as w, Fragment as $, renderList as q, createElementVNode as z, toDisplayString as k, createCommentVNode as G, nextTick as I } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import { j as J, v as P, w as Q, h as W } from "./main-C1iALE1f.js";
4
+ import "./assets/underscore.string-DVXD2SZo.js";
5
+ import "./assets/clone-BZn0cTAu.js";
6
+ import "./assets/file-saver-CwlpTZSc.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
4
9
  const X = { class: "option-text" }, Y = {
5
10
  key: 0,
6
11
  class: "option-suffix"
7
- }, te = /* @__PURE__ */ T({
12
+ }, ue = /* @__PURE__ */ A({
8
13
  __name: "Select",
9
14
  props: {
10
15
  schema: {},
@@ -16,35 +21,35 @@ const X = { class: "option-text" }, Y = {
16
21
  },
17
22
  emits: ["submit", "change", "update:modelValue"],
18
23
  setup(C, { emit: E }) {
19
- let s = E, B = C, { schema: S, field: u, table: m, set: h, row: R, modelValue: p } = U(B), x = f(), g = f(), v = f(!1), d = f(u.value.control.data.data), K = (t) => {
24
+ let s = E, B = C, { schema: S, field: r, table: p, set: h, row: R, modelValue: m } = D(B), x = f(), g = f(), v = f(!1), d = f(r.value.control.data.data), j = (t) => {
20
25
  t == "" && (t = null);
21
26
  let e;
22
- if (P.isString(t) && u.value.control.multiple ? e = t.join(",") : e = t, r.value = e, u.value.control.text) {
23
- let a = m.value.fields.find((l) => l.name == u.value.control.text), o;
27
+ if (P.isString(t) && r.value.control.multiple ? e = t.join(",") : e = t, u.value = e, r.value.control.text) {
28
+ let a = p.value.fields.find((l) => l.name == r.value.control.text), o;
24
29
  e && (o = d.value.find((i) => i.value == e).text);
25
30
  debugger;
26
31
  R.value[a.name] = o;
27
32
  }
28
- b(m.value, u.value), s("change", t);
29
- }, L = () => {
33
+ _(p.value, r.value), s("change", t);
34
+ }, K = () => {
30
35
  s("submit");
31
36
  }, N = () => {
32
- }, j = () => {
37
+ }, T = () => {
33
38
  v.value = !0;
34
39
  let t = { text: g.value, conditions: [] };
35
- u.value.control.data.conditions.forEach((e) => {
40
+ r.value.control.data.conditions.forEach((e) => {
36
41
  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
42
  t.conditions.push({ name: e.name, value: o });
38
- }), Q.post(u.value.control.data.route, t).then(({ data: e }) => {
43
+ }), W.post(r.value.control.data.route, t).then(({ data: e }) => {
39
44
  d.value = e;
40
45
  }).finally(() => {
41
46
  v.value = !1, I(() => {
42
- let e = d.value.find((a) => a.value == r.value);
47
+ let e = d.value.find((a) => a.value == u.value);
43
48
  x.value.scrollToOption(e);
44
49
  });
45
50
  });
46
51
  }, F = (t) => {
47
- g.value = t, j();
52
+ g.value = t, T();
48
53
  }, M = (t, e) => {
49
54
  let a = [];
50
55
  return S.value.forEach((o) => {
@@ -54,20 +59,20 @@ const X = { class: "option-text" }, Y = {
54
59
  });
55
60
  });
56
61
  }), a;
57
- }, b = (t, e) => {
62
+ }, _ = (t, e) => {
58
63
  M(t, e).forEach((o) => {
59
- W.setRowsValue(null, h.value, o.table, o.field), b(o.table, o.field);
64
+ Q.setRowsValue(null, h.value, o.table, o.field), _(o.table, o.field);
60
65
  });
61
- }, r = q({
66
+ }, u = H({
62
67
  get() {
63
- return u.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
68
+ return r.value.control.multiple ? m.value == null ? [] : m.value.toString().split(",") : m.value;
64
69
  },
65
70
  set(t) {
66
71
  s("update:modelValue", t), s("change", t);
67
72
  }
68
73
  });
69
74
  return (t, e) => {
70
- const a = _("el-option"), o = _("el-select");
75
+ const a = b("el-option"), o = b("el-select");
71
76
  return c(), y(o, {
72
77
  ref_key: "selectRef",
73
78
  ref: x,
@@ -78,26 +83,26 @@ const X = { class: "option-text" }, Y = {
78
83
  "remote-show-suffix": "",
79
84
  "loading-text": "加载中",
80
85
  clearable: "",
81
- placeholder: n(J)(n(m).name, n(u).name),
82
- multiple: n(u).control.multiple,
86
+ placeholder: n(J)(n(p).name, n(r).name),
87
+ multiple: n(r).control.multiple,
83
88
  "remote-method": n(F),
84
89
  loading: n(v),
85
- disabled: n(u).control.readonly,
86
- onKeyup: A(D(n(L), ["alt"]), ["enter", "native"]),
90
+ disabled: n(r).control.readonly,
91
+ onKeyup: L(O(n(K), ["alt"]), ["enter", "native"]),
87
92
  onBlur: n(N),
88
- onChange: n(K),
89
- modelValue: n(r),
90
- "onUpdate:modelValue": e[0] || (e[0] = (l) => O(r) ? r.value = l : r = l)
93
+ onChange: n(j),
94
+ modelValue: n(u),
95
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => U(u) ? u.value = l : u = l)
91
96
  }, {
92
97
  default: V(() => [
93
- (c(!0), k($, null, z(n(d), (l, i) => (c(), y(a, {
98
+ (c(!0), w($, null, q(n(d), (l, i) => (c(), y(a, {
94
99
  label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
95
100
  value: l.value,
96
101
  key: l.value
97
102
  }, {
98
103
  default: V(() => [
99
- G("span", X, w(l.text), 1),
100
- l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : H("", !0)
104
+ z("span", X, k(l.text), 1),
105
+ l.suffix ? (c(), w("span", Y, "(" + k(l.suffix) + ")", 1)) : G("", !0)
101
106
  ]),
102
107
  _: 2
103
108
  }, 1032, ["label", "value"]))), 128))
@@ -108,5 +113,5 @@ const X = { class: "option-text" }, Y = {
108
113
  }
109
114
  });
110
115
  export {
111
- te as default
116
+ ue as default
112
117
  };
@@ -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-DKnp-UJn.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
13
+ let r = f(() => import("./Dictionary-CaXytFmK.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,11 +1,15 @@
1
- import { defineComponent as $e, toRefs as Ue, ref as u, computed as Y, watch as Le, resolveComponent as f, openBlock as d, createElementBlock as j, 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 Ke, normalizeStyle as Pe, createTextVNode as te, nextTick as ae } from "vue";
2
- import { aO as Ne, P as oe, aK as qe, K as q, t as Oe, L as Fe, f as ue, e as Me, G as je } from "./assets/halo-fe-idvmXC0t.js";
3
- import { c as Ae, _ as Ge, s as re } from "./main-COiaaxGk.js";
4
- import { _ as He } from "./Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js";
5
- import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js";
1
+ import { defineComponent as Ue, toRefs as $e, ref as r, computed as Y, watch as Be, resolveComponent as p, openBlock as d, createElementBlock as H, normalizeClass as De, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as Le, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as B, resolveDynamicComponent as Ne, normalizeStyle as Oe, createTextVNode as te, nextTick as ae } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import { d as Pe, e as qe, t as oe, f as Ke, 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-C1iALE1f.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js";
9
+ import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js";
6
10
  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 = [
7
11
  We
8
- ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], nl = /* @__PURE__ */ $e({
12
+ ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], ml = /* @__PURE__ */ Ue({
9
13
  __name: "Single",
10
14
  props: {
11
15
  base: {},
@@ -15,68 +19,68 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
15
19
  },
16
20
  emits: ["navigate", "load", "succeed", "close"],
17
21
  setup(se, { expose: ie, emit: de }) {
18
- let B = de, me = se, { url: ce, base: A, route: z } = Ue(me), p = u(), b = u(), c = u(), r = u(), y = u(), D = u(), v = u({ table: null, layout: null }), w = u(), K = u([]), ve = u(), E = u(), R = u(), O = u(), C = u(), P = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), F = u(), S = u(), fe = (l) => !0, pe = (l) => {
22
+ let D = de, me = se, { url: ce, base: M, route: z } = $e(me), f = r(), b = r(), c = r(), u = r(), _ = r(), L = r(), v = r({ table: null, layout: null }), w = r(), N = r([]), ve = r(), E = r(), 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(), pe = (l) => !0, fe = (l) => {
19
23
  let t = q.getPath(ce.value), a = q.getPath(l);
20
24
  return t != a;
21
25
  }, be = () => {
22
26
  Ve();
23
- }, ye = (l, t) => {
24
- G("copy", l, t);
25
27
  }, _e = (l, t) => {
26
- G("update", l, t);
28
+ A("copy", l, t);
29
+ }, ye = (l, t) => {
30
+ A("update", l, t);
27
31
  }, he = () => {
28
32
  i.value.visible = !1;
29
- }, G = (l, t, a) => {
33
+ }, A = (l, t, a) => {
30
34
  let n = ge(l, t);
31
- a.ctrlKey ? B("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
35
+ a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
32
36
  }, ge = (l, t = null) => {
33
37
  let a = `${b.value[l].route}`;
34
38
  if (t != null) {
35
- let n = t[y.value.key.name];
39
+ let n = t[_.value.key.name];
36
40
  a += `?id=${n}`;
37
41
  }
38
42
  return a;
39
43
  }, we = (l, t, a) => {
40
- (a.ctrlKey || k.value) && (F.value = l, S.value = Oe.clone(t), k.value = !0, S.value.fields.forEach((n) => {
44
+ (a.ctrlKey || k.value) && (j.value = l, R.value = Fe.clone(t), k.value = !0, R.value.fields.forEach((n) => {
41
45
  n.control.textualize = !1;
42
46
  }));
43
- }, H = (l) => {
44
- i.value.visible = !1, B("succeed", W.value, l);
47
+ }, G = (l) => {
48
+ i.value.visible = !1, D("succeed", W.value, l);
45
49
  }, Ce = () => {
46
- B("close");
50
+ D("close");
47
51
  }, I = (l, t, a, n, T) => {
48
52
  }, J = (l, t) => {
49
53
  if (t) {
50
- D.value = y.value.layouts.find((a) => a.type == l);
54
+ L.value = _.value.layouts.find((a) => a.type == l);
51
55
  return;
52
56
  }
53
57
  v.value.layout = v.value.table.layouts.find((a) => a.type == l);
54
58
  }, ke = (l) => {
55
- let t = r.value.find((a) => a.name == l);
59
+ let t = u.value.find((a) => a.name == l);
56
60
  v.value.table = t, v.value.layout = t.layouts[0];
57
61
  }, xe = (l) => {
58
62
  let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
59
- r.value.find((T) => T.name == a).main || (w.value = a);
60
- }, Re = (l, t = null, a = null) => {
63
+ u.value.find((T) => T.name == a).main || (w.value = a);
64
+ }, Se = (l, t = null, a = null) => {
61
65
  ae(() => {
62
66
  E.value.validate((n, T) => {
63
67
  if (!n)
64
68
  return xe(T), a && a(!1), !1;
65
- let $ = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
66
- t && t($, c.value), Fe.post($, c.value).then(({ data: U, message: V }) => {
67
- E.value.clearValidate(), ue.success(V), H(c.value);
68
- }).catch(({ code: U, data: V, message: X }) => {
69
- if (U != "ValidateError")
69
+ let U = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
70
+ t && t(U, c.value), He.post(U, c.value).then(({ data: $, message: V }) => {
71
+ E.value.clearValidate(), re.success(V), G(c.value);
72
+ }).catch(({ code: $, data: V, message: X }) => {
73
+ if ($ != "ValidateError")
70
74
  return;
71
- K.value = V;
72
- let N = V.find((_) => _.table !== y.value.name);
73
- if (N) {
74
- let _ = r.value.find((o) => o.name == N.table);
75
- _ && (w.value = _.name);
75
+ N.value = V;
76
+ let P = V.find((y) => y.table !== _.value.name);
77
+ if (P) {
78
+ let y = u.value.find((o) => o.name == P.table);
79
+ y && (w.value = y.name);
76
80
  }
77
81
  ae(() => {
78
- E.value.clearValidate(), E.value.validate((_, o) => {
79
- _ || (a && a(!1), K.value = []);
82
+ E.value.clearValidate(), E.value.validate((y, o) => {
83
+ y || (a && a(!1), N.value = []);
80
84
  });
81
85
  });
82
86
  }).finally(() => {
@@ -87,73 +91,73 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
87
91
  }, Q = (l) => {
88
92
  var a, n;
89
93
  let t = Me(l.module.type, l.module.name);
90
- je.setTitle(t, l.module.env), p.value = l.module, b.value = l.next, c.value = re.expandSet(l.schema, l.set), r.value = re.expandSchema(l.schema), 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]);
91
- }, Se = (l) => {
92
- R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
94
+ 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, v.value.table = u.value[1], v.value.layout = u.value[1].layouts[0]);
95
+ }, Re = (l) => {
96
+ S.value && S.value.resize && S.value.resize(l), C.value && C.value.resize && C.value.resize(l);
93
97
  }, Te = (l, t) => {
94
98
  if (l == "ctrlS") {
95
- if (p.value.type == "Detail") {
96
- if (!P.value || !P.value.keyboard)
99
+ if (f.value.type == "Detail") {
100
+ if (!O.value || !O.value.keyboard)
97
101
  return !1;
98
- P.value.keyboard(l, t);
102
+ O.value.keyboard(l, t);
99
103
  return;
100
104
  }
101
- M(t);
105
+ F(t);
102
106
  }
103
107
  }, Ve = () => {
104
108
  let l = q.getUrl(z.value.path, z.value.query);
105
- B("load", l, !1, (t) => {
109
+ D("load", l, !1, (t) => {
106
110
  });
107
111
  };
108
112
  (() => {
109
- Q(A.value.data);
113
+ Q(M.value.data);
110
114
  })();
111
- let M = (l) => {
112
- if (!O.value.submit) {
113
- ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
115
+ let F = (l) => {
116
+ if (!K.value.submit) {
117
+ re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
114
118
  return;
115
119
  }
116
- O.value.submit(l);
120
+ K.value.submit(l);
117
121
  }, ze = Y(() => {
118
- let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
119
- return Ae.getComponent(l, "partial", t);
120
- }), W = Y(() => p.value.type.toLowerCase());
121
- return Le(() => A.value, (l) => {
122
- Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
123
- }), ie({ shouldLoad: fe, shouldSpin: pe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
124
- const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"), $ = f("el-form"), U = f("el-scrollbar"), V = f("el-popover"), X = f("el-form-item"), N = f("el-card"), _ = f("el-drawer");
125
- return d(), j("div", {
122
+ let l = `/${_.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
123
+ return Pe.getComponent(l, "partial", t);
124
+ }), W = Y(() => f.value.type.toLowerCase());
125
+ return Be(() => M.value, (l) => {
126
+ Q(l.data), S.value.update && S.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
127
+ }), ie({ shouldLoad: pe, shouldSpin: fe, keyboard: Te, refresh: be, resize: Re }), (l, t) => {
128
+ const a = p("el-tooltip"), n = p("el-tab-pane"), T = p("el-tabs"), U = p("el-form"), $ = p("el-scrollbar"), V = p("el-popover"), X = p("el-form-item"), P = p("el-card"), y = p("el-drawer");
129
+ return d(), H("div", {
126
130
  ref_key: "singleRef",
127
131
  ref: ve,
128
- class: Be(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
132
+ class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
129
133
  }, [
130
134
  m("div", Ie, [
131
- h(U, { class: "main-scroller" }, {
135
+ h($, { class: "main-scroller" }, {
132
136
  default: s(() => [
133
- h($, {
137
+ h(U, {
134
138
  ref_key: "formRef",
135
139
  ref: E,
136
140
  model: e(c),
137
- onSubmit: t[3] || (t[3] = De(() => {
141
+ onSubmit: t[3] || (t[3] = Le(() => {
138
142
  }, ["prevent"]))
139
143
  }, {
140
144
  default: s(() => [
141
145
  h(ne, {
142
146
  ref_key: "mainRef",
143
- ref: R,
144
- module: e(p),
145
- schema: e(r),
146
- table: e(y),
147
- layout: e(D),
147
+ ref: S,
148
+ module: e(f),
149
+ schema: e(u),
150
+ table: e(_),
151
+ layout: e(L),
148
152
  next: e(b),
149
153
  set: e(c),
150
154
  route: e(z),
151
- "validate-errors": e(K),
155
+ "validate-errors": e(N),
152
156
  onChange: e(I),
153
157
  onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
154
- onSubmit: e(M)
158
+ onSubmit: e(F)
155
159
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
156
- e(r).length > 1 ? (d(), g(T, {
160
+ e(u).length > 1 ? (d(), g(T, {
157
161
  key: 0,
158
162
  type: "border-card",
159
163
  onTabChange: e(ke),
@@ -161,7 +165,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
161
165
  "onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
162
166
  }, {
163
167
  default: s(() => [
164
- (d(!0), j(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
168
+ (d(!0), H(ee, null, le(e(u).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
165
169
  name: o.name,
166
170
  key: o.name
167
171
  }, {
@@ -172,7 +176,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
172
176
  disabled: !o.tooltip
173
177
  }, {
174
178
  default: s(() => [
175
- m("div", null, x(e(Ne)(o.table)), 1)
179
+ m("div", null, x(e(qe)(o.table)), 1)
176
180
  ]),
177
181
  _: 2
178
182
  }, 1032, ["content", "disabled"])
@@ -181,53 +185,53 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
181
185
  }, 1032, ["name"]))), 128))
182
186
  ]),
183
187
  _: 1
184
- }, 8, ["onTabChange", "modelValue"])) : L("", !0),
188
+ }, 8, ["onTabChange", "modelValue"])) : B("", !0),
185
189
  e(v).table ? (d(), g(ne, {
186
190
  key: 1,
187
191
  ref_key: "childRef",
188
192
  ref: C,
189
- module: e(p),
190
- schema: e(r),
193
+ module: e(f),
194
+ schema: e(u),
191
195
  table: e(v).table,
192
196
  layout: e(v).layout,
193
197
  next: e(b),
194
198
  set: e(c),
195
199
  route: e(z),
196
- "validate-errors": e(K),
200
+ "validate-errors": e(N),
197
201
  onRowEdit: e(we),
198
202
  onChange: e(I),
199
203
  onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
200
- onSubmit: e(M)
201
- }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : L("", !0)
204
+ onSubmit: e(F)
205
+ }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
202
206
  ]),
203
207
  _: 1
204
208
  }, 8, ["model"])
205
209
  ]),
206
210
  _: 1
207
211
  }),
208
- (d(), g(Ke(e(ze)), {
212
+ (d(), g(Ne(e(ze)), {
209
213
  ref_key: "updateRef",
210
- ref: O,
214
+ ref: K,
211
215
  class: "main-footer",
212
- schema: e(r),
213
- table: e(y),
214
- layout: e(D),
216
+ schema: e(u),
217
+ table: e(_),
218
+ layout: e(L),
215
219
  next: e(b),
216
220
  set: e(c),
217
221
  route: e(z),
218
- onCopy: e(ye),
219
- onEdit: e(_e),
220
- onSubmit: e(Re),
222
+ onCopy: e(_e),
223
+ onEdit: e(ye),
224
+ onSubmit: e(Se),
221
225
  onClose: e(Ce)
222
226
  }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
223
227
  ]),
224
- e(k) ? (d(), g(N, {
228
+ e(k) ? (d(), g(P, {
225
229
  key: 0,
226
230
  class: "side-form"
227
231
  }, {
228
232
  header: s(() => [
229
233
  m("div", Je, [
230
- m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(F)[e(S).show[0].name]), 1),
234
+ m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(R).show[0].name]), 1),
231
235
  m("div", {
232
236
  class: "row-close",
233
237
  onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
@@ -235,19 +239,19 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
235
239
  ])
236
240
  ]),
237
241
  default: s(() => [
238
- h(U, null, {
242
+ h($, null, {
239
243
  default: s(() => [
240
- h($, {
244
+ h(U, {
241
245
  size: "small",
242
246
  "label-width": "80px"
243
247
  }, {
244
248
  default: s(() => [
245
- (d(!0), j(ee, null, le(e(S).show, (o) => (d(), g(X, {
246
- style: Pe(o.control.height ? `height: ${o.control.height}px;` : ""),
249
+ (d(!0), H(ee, null, le(e(R).show, (o) => (d(), g(X, {
250
+ style: Oe(o.control.height ? `height: ${o.control.height}px;` : ""),
247
251
  rules: o.rules
248
252
  }, {
249
253
  label: s(() => [
250
- te(x(e(qe)(e(S).name, o.name)) + " ", 1),
254
+ te(x(e(Ke)(e(R).name, o.name)) + " ", 1),
251
255
  o.control.tooltip ? (d(), g(V, {
252
256
  key: 0,
253
257
  trigger: "hover",
@@ -262,15 +266,15 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
262
266
  m("pre", null, x(o.control.tooltip.content), 1)
263
267
  ]),
264
268
  _: 2
265
- }, 1032, ["title"])) : L("", !0)
269
+ }, 1032, ["title"])) : B("", !0)
266
270
  ]),
267
271
  default: s(() => [
268
- h(He, {
269
- schema: e(r),
270
- table: e(S),
272
+ h(Ge, {
273
+ schema: e(u),
274
+ table: e(R),
271
275
  field: o,
272
276
  set: e(c),
273
- row: e(F)
277
+ row: e(j)
274
278
  }, null, 8, ["schema", "table", "field", "set", "row"])
275
279
  ]),
276
280
  _: 2
@@ -283,12 +287,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
283
287
  })
284
288
  ]),
285
289
  _: 1
286
- })) : L("", !0),
287
- e(i).page ? (d(), g(_, {
290
+ })) : B("", !0),
291
+ e(i).page ? (d(), g(y, {
288
292
  key: 1,
289
293
  "destroy-on-close": "",
290
294
  "append-to-body": e(i).appendToBody,
291
- size: `${e(p).width ?? "60%"}`,
295
+ size: `${e(f).width ?? "60%"}`,
292
296
  modelValue: e(i).visible,
293
297
  "onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
294
298
  }, {
@@ -302,20 +306,20 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
302
306
  ])
303
307
  ]),
304
308
  default: s(() => [
305
- h(e(Ge), {
309
+ h(e(je), {
306
310
  ref_key: "pageRef",
307
- ref: P,
311
+ ref: O,
308
312
  url: e(i).url,
309
- onSucceed: e(H),
313
+ onSucceed: e(G),
310
314
  onClose: e(he)
311
315
  }, null, 8, ["url", "onSucceed", "onClose"])
312
316
  ]),
313
317
  _: 1
314
- }, 8, ["append-to-body", "size", "modelValue"])) : L("", !0)
318
+ }, 8, ["append-to-body", "size", "modelValue"])) : B("", !0)
315
319
  ], 2);
316
320
  };
317
321
  }
318
322
  });
319
323
  export {
320
- nl as default
324
+ ml as default
321
325
  };