halo-pc 1.0.27 → 1.0.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. package/dist/{Article-CTqryR4L.js → Article-N3ZaJaLc.js} +75 -70
  2. package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-sspAOJuS.js} +23 -17
  3. package/dist/Autocomplete-CD6CsF2X.js +54 -0
  4. package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-DY6OaWAK.js} +1 -1
  5. package/dist/Autocomplete-DkkUx0lx.js +53 -0
  6. package/dist/{CSharp-Dt6H75E9.js → CSharp-BwNnAf8e.js} +1 -1
  7. package/dist/{Calender-DhKZyJri.js → Calender-VwwIDi3Q.js} +1 -1
  8. package/dist/Callback-BRrShVCU.js +26 -0
  9. package/dist/Cascader-CurlPJsQ.js +87 -0
  10. package/dist/Cascader-i3KkCfFF.js +47 -0
  11. package/dist/{Checkbox-C-iEGB0k.js → Checkbox-Bk98RtL7.js} +1 -1
  12. package/dist/Checkbox-CNMzO79X.js +76 -0
  13. package/dist/Code-BdDjNSqs.js +42 -0
  14. package/dist/{Code-Q_6THgGl.js → Code-C4XPPKO8.js} +1 -1
  15. package/dist/{Code-JtSSnUWC.js → Code-CRH4WNXz.js} +1 -1
  16. package/dist/Code-CqA6bVSZ.js +60 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-Dkdu_fcm.js +65 -0
  18. package/dist/Column-BCz-Xp-3.js +75 -0
  19. package/dist/Comment-BoOQfrxv.js +104 -0
  20. package/dist/Compare-ChJu8LUo.js +44 -0
  21. package/dist/{Compare-DZVrBYEh.js → Compare-DxOXRPzs.js} +25 -19
  22. package/dist/Copy-DBUSr3OW.js +49 -0
  23. package/dist/Custom-CNQIPMHT.js +57 -0
  24. package/dist/{DataExport-DSz5371s.js → DataExport-B-0vVYMT.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-BvyBbSLP.js} +41 -36
  26. package/dist/{DataImport-CX7G70a7.js → DataImport-ApAPTQcq.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-CKd0CAf_.js +176 -0
  28. package/dist/Date-BnRTPDSJ.js +43 -0
  29. package/dist/{Date-ytWe2gz8.js → Date-gMmfQ3pA.js} +1 -1
  30. package/dist/DateRange-BPQ2TOXk.js +63 -0
  31. package/dist/DateTime-CsZdXjmB.js +44 -0
  32. package/dist/{DateTime-p6YgmtGd.js → DateTime-Cz09I2-B.js} +1 -1
  33. package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-DPjTS-A2.js} +17 -11
  34. package/dist/Daterange-DCyMLI8G.js +63 -0
  35. package/dist/{Decimal-BvyzJq1c.js → Decimal-Cpz-_Ef3.js} +1 -1
  36. package/dist/Delete-Di56R5Tf.js +62 -0
  37. package/dist/{Detail-DZJ0aUFr.js → Detail-DP1ReSaw.js} +22 -17
  38. package/dist/Dictionary-B8OMis9G.js +59 -0
  39. package/dist/Email-CCZH8SDT.js +54 -0
  40. package/dist/{File-BEBElTSS.js → File-BUw6o5UN.js} +32 -27
  41. package/dist/{Image-DDK05SW7.js → Image-DBjqi76B.js} +1 -1
  42. package/dist/Index-B6sevgc6.js +4 -0
  43. package/dist/{Index-DPwdcUO4.js → Index-BDVj7Dy2.js} +1 -1
  44. package/dist/Index-CZYVZtFI.js +178 -0
  45. package/dist/Index-Cch9emdC.js +4 -0
  46. package/dist/Index-CfpZf8By.js +4 -0
  47. package/dist/Index-Cn3HXkPm.js +4 -0
  48. package/dist/{Index-CuEyzMd0.js → Index-DuKtMNgH.js} +25 -20
  49. package/dist/{Index-BiF8qEWf.js → Index-Z8dMl0cU.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BJJPNo3Y.js} +20 -15
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-DCxwPrIZ.js} +17 -12
  52. package/dist/{Install-CxuoWpHC.js → Install-CNE0J2Q9.js} +27 -22
  53. package/dist/Int-C5AxmjK0.js +46 -0
  54. package/dist/Int-RoCJiPje.js +44 -0
  55. package/dist/List-DJuE2QHL.js +79 -0
  56. package/dist/Maintaince-CdqWSHAZ.js +20 -0
  57. package/dist/{Markdown-x1hASyA-.js → Markdown-DKyCVBYy.js} +1 -1
  58. package/dist/{Month-Bb0tgF-k.js → Month-BfSG37wf.js} +1 -1
  59. package/dist/Month-OH6snasK.js +43 -0
  60. package/dist/Month-iU9F-vQ5.js +44 -0
  61. package/dist/{Normal-CYmy5sN7.js → Normal-DPJQ_Ds5.js} +70 -66
  62. package/dist/Paging-CYU3sSbD.js +99 -0
  63. package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-CgWbC7R1.js} +30 -24
  64. package/dist/{PagingRow-CR2N1vgm.js → PagingRow-Y8lG-1cI.js} +26 -20
  65. package/dist/QueryApi-C3h4tWd0.js +20 -0
  66. package/dist/{Racebar-BsgDK6Zf.js → Racebar-CtFYJKrh.js} +42 -37
  67. package/dist/{Radio-B3Af-uZE.js → Radio-Bz2SE_FO.js} +1 -1
  68. package/dist/{Register-Cwr3iIZm.js → Register-CiK44o2W.js} +44 -40
  69. package/dist/RichText-BkhW8muI.js +47 -0
  70. package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-D6O_c5DS.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-BDe_uXW2.js} +1 -1
  72. package/dist/{SearchForm-BOw_kHs2.js → SearchForm-CZjHSE1s.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CVeFjNjG.js} +40 -36
  74. package/dist/Select-BEgPZsaR.js +117 -0
  75. package/dist/Select-CY1CA4pv.js +86 -0
  76. package/dist/{Select-BdYG1KQE.js → Select-FFqI2hOh.js} +1 -1
  77. package/dist/{Single-DqCIZBIB.js → Single-BQRWqAOH.js} +103 -99
  78. package/dist/{Statistic-B9ZcUUk1.js → Statistic-CyqoTZZj.js} +37 -33
  79. package/dist/{Stock-BnBNtuo7.js → Stock-N57DPrDl.js} +1 -1
  80. package/dist/{Stock-BiSr7zAF.js → Stock-negSF4zD.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-BuxuI7Wg.js} +31 -26
  82. package/dist/{Switch-BE4dQcja.js → Switch-g5K9zh4g.js} +1 -1
  83. package/dist/{Table-CaH_zu8W.js → Table-CHKHAajT.js} +77 -74
  84. package/dist/{Table-e0uLPRLG.js → Table-nB7wA6gP.js} +78 -73
  85. package/dist/{Text-BAw88r5O.js → Text-7oaEmWun.js} +19 -13
  86. package/dist/Text-BefOYKkr.js +4 -0
  87. package/dist/{Text-BDAob4mp.js → Text-KKwYRpSW.js} +21 -15
  88. package/dist/Text.vue_vue_type_style_index_0_lang-BrmC8Xhc.js +59 -0
  89. package/dist/TextLink-DoArgh5L.js +65 -0
  90. package/dist/{Textarea-CU5PjIoa.js → Textarea-DEvxrKMK.js} +1 -1
  91. package/dist/Time-D8Ikb-KB.js +43 -0
  92. package/dist/Timeline-BEt6ygzA.js +59 -0
  93. package/dist/{Tree-D-v632h1.js → Tree-caBJzrZQ.js} +105 -101
  94. package/dist/Tree-ftxBqmRQ.js +122 -0
  95. package/dist/TreeNode-XITOvihe.js +42 -0
  96. package/dist/{Update-DRAFce7_.js → Update-JgTiZCDi.js} +20 -15
  97. package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-y0OPiT92.js} +23 -17
  98. package/dist/Upload-BlnOvJFg.js +150 -0
  99. package/dist/Upload-kUYBfIS2.js +72 -0
  100. package/dist/UploadApi-RRAsIVG7.js +20 -0
  101. package/dist/{Year-CpcMBvQ7.js → Year-C2_kuiZX.js} +1 -1
  102. package/dist/Year-Cre43mQI.js +47 -0
  103. package/dist/assets/clone-BZn0cTAu.js +134 -0
  104. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  105. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  106. package/dist/assets/moment-h96o7c8I.js +2578 -0
  107. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  108. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  109. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  110. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  111. package/dist/main-KTzfgTac.js +9105 -0
  112. package/dist/main.js +139 -140
  113. package/dist/style.css +1 -1
  114. package/package.json +1 -1
  115. package/dist/Autocomplete-C9RS9-qw.js +0 -48
  116. package/dist/Autocomplete-DIucpEpj.js +0 -49
  117. package/dist/Callback-D6G_933H.js +0 -20
  118. package/dist/Cascader-C6t8Q18c.js +0 -41
  119. package/dist/Cascader-F_XWwXKY.js +0 -81
  120. package/dist/Checkbox-ipHs0O-8.js +0 -70
  121. package/dist/Code-DKtqow6y.js +0 -36
  122. package/dist/Code-LeguA9RL.js +0 -54
  123. package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
  124. package/dist/Column-BeQwafyN.js +0 -70
  125. package/dist/Comment-DIcCHP9F.js +0 -98
  126. package/dist/Compare-Dzqm7kPE.js +0 -38
  127. package/dist/Copy-iLieXx22.js +0 -43
  128. package/dist/Custom-BGtEDHlD.js +0 -51
  129. package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
  130. package/dist/Date-CNOCOcNz.js +0 -37
  131. package/dist/DateRange-CaIiObxN.js +0 -57
  132. package/dist/DateTime-CH6J1GoP.js +0 -38
  133. package/dist/Daterange-BUSKAGlK.js +0 -57
  134. package/dist/Delete-BeFC0gjD.js +0 -57
  135. package/dist/Dictionary-CsBiv-CI.js +0 -55
  136. package/dist/Email-Dwa6x3jW.js +0 -48
  137. package/dist/Index-Bpe7pY2Z.js +0 -4
  138. package/dist/Index-CUYQxzNd.js +0 -174
  139. package/dist/Index-DMnL8F7Y.js +0 -4
  140. package/dist/Index-DNG25ox2.js +0 -4
  141. package/dist/Index-DqUNI6MV.js +0 -4
  142. package/dist/Int-BFv18KXi.js +0 -38
  143. package/dist/Int-C0ijmdYS.js +0 -41
  144. package/dist/List-CfQzWq_5.js +0 -74
  145. package/dist/Maintaince-BzDEwQcU.js +0 -14
  146. package/dist/Month-Bp_Pfi_b.js +0 -37
  147. package/dist/Month-CKkjwzza.js +0 -38
  148. package/dist/Paging-DpoBp7x_.js +0 -95
  149. package/dist/QueryApi-VwISnk96.js +0 -13
  150. package/dist/RichText-CNahMrfb.js +0 -41
  151. package/dist/Select-BeNZqAP1.js +0 -112
  152. package/dist/Select-CqOE6uI8.js +0 -80
  153. package/dist/Text-5803XWI6.js +0 -4
  154. package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
  155. package/dist/TextLink-TYXcDAlo.js +0 -59
  156. package/dist/Time-Dd-Trib4.js +0 -37
  157. package/dist/Timeline-D6LCIkQp.js +0 -53
  158. package/dist/Tree-BKmFZrK3.js +0 -118
  159. package/dist/TreeNode-L_A5ZKy0.js +0 -37
  160. package/dist/Upload-DJRh4a7g.js +0 -68
  161. package/dist/Upload-Ozg_nOpI.js +0 -147
  162. package/dist/UploadApi-DVx69g-F.js +0 -13
  163. package/dist/Year-D7XGe2So.js +0 -41
  164. package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
  165. package/dist/main-DB_sVyZe.js +0 -3620
@@ -0,0 +1,44 @@
1
+ import { defineComponent as c, toRefs as f, computed as _, resolveComponent as h, openBlock as V, createBlock as b, unref as e, isRef as k } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { k as Y } from "./main-KTzfgTac.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const U = /* @__PURE__ */ c({
10
+ __name: "Month",
11
+ props: {
12
+ schema: {},
13
+ table: {},
14
+ field: {},
15
+ set: {},
16
+ row: {},
17
+ modelValue: {}
18
+ },
19
+ emits: ["submit", "change", "update:modelValue"],
20
+ setup(p, { emit: d }) {
21
+ let l = d, n = p, { table: i, field: a, set: g, modelValue: u } = f(n), o = _({
22
+ get() {
23
+ return u.value;
24
+ },
25
+ set(t) {
26
+ l("update:modelValue", t), l("change", t);
27
+ }
28
+ });
29
+ return (t, m) => {
30
+ const s = h("el-date-picker");
31
+ return V(), b(s, {
32
+ type: "month",
33
+ placeholder: e(Y)(e(i).name, e(a).name),
34
+ "value-format": "YYYY-MM",
35
+ disabled: e(a).control.readonly,
36
+ modelValue: e(o),
37
+ "onUpdate:modelValue": m[0] || (m[0] = (r) => k(o) ? o.value = r : o = r)
38
+ }, null, 8, ["placeholder", "disabled", "modelValue"]);
39
+ };
40
+ }
41
+ });
42
+ export {
43
+ U as default
44
+ };
@@ -1,6 +1,10 @@
1
- import { defineComponent as de, toRefs as he, ref as S, onMounted as fe, computed as E, watch as q, resolveComponent as _, openBlock as n, createElementBlock as d, normalizeClass as K, unref as e, createBlock as g, withCtx as m, Fragment as w, renderList as R, createVNode as C, createCommentVNode as V, toDisplayString as B, createElementVNode as I, normalizeStyle as ge, createTextVNode as _e, resolveDynamicComponent as be } from "vue";
2
- import { n as ye, e as Ce, aM as ke, u as xe } from "./assets/halo-fe-B-NiIGas.js";
3
- import { e as P, s as N, c as Se, a as Q, j as we } from "./main-DB_sVyZe.js";
1
+ import { defineComponent as de, toRefs as he, ref as S, onMounted as fe, computed as E, watch as M, resolveComponent as _, openBlock as n, createElementBlock as d, normalizeClass as J, unref as e, createBlock as g, withCtx as m, Fragment as w, renderList as R, createVNode as C, createCommentVNode as V, toDisplayString as q, createElementVNode as B, normalizeStyle as ge, createTextVNode as _e, resolveDynamicComponent as be } from "vue";
2
+ import { x as K, s as N, d as ye, P as Ce, g as Q, t as ke, f as xe, N as Se, A as we } from "./main-KTzfgTac.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
4
8
  import "vue-router";
5
9
  import "./assets/intro.js-DxWjEdp_.js";
6
10
  const Re = {
@@ -13,7 +17,7 @@ const Re = {
13
17
  }, ze = {
14
18
  key: 0,
15
19
  class: "normal-selection"
16
- }, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */ I("i", { class: "fa fa-question-circle icon-question" }, null, -1), Be = /* @__PURE__ */ de({
20
+ }, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */ B("i", { class: "fa fa-question-circle icon-question" }, null, -1), Oe = /* @__PURE__ */ de({
17
21
  __name: "Normal",
18
22
  props: {
19
23
  route: {},
@@ -27,57 +31,57 @@ const Re = {
27
31
  },
28
32
  emits: ["change", "submit"],
29
33
  setup(U, { expose: X, emit: Y }) {
30
- let L = Y, Z = U, { module: O, set: c, schema: D, table: t, layout: i, validateErrors: j } = he(Z), p = S({ page: 1, count: c.value[t.value.name].length }), k = S([]), b = S(), A = S([]), T = S(), ee = (l) => {
31
- A.value.push(l);
34
+ let I = Y, Z = U, { module: L, set: c, schema: A, table: t, layout: i, validateErrors: O } = he(Z), p = S({ page: 1, count: c.value[t.value.name].length }), k = S([]), b = S(), H = S([]), T = S(), ee = (l) => {
35
+ H.value.push(l);
32
36
  }, le = () => {
33
37
  p.value.page = 1;
34
38
  }, te = () => {
35
- b.value = G(t.value);
39
+ b.value = P(t.value);
36
40
  let l = N.getDefaultRow(t.value);
37
41
  c.value[t.value.name].push(l);
38
42
  }, ae = () => {
39
43
  let l = c.value[t.value.name];
40
44
  k.value.forEach((a) => {
41
45
  l.splice(l.indexOf(a), 1);
42
- }), k.value = [], A.value.forEach((a) => {
46
+ }), k.value = [], H.value.forEach((a) => {
43
47
  a.model && (a.model = !1);
44
48
  });
45
- }, W = (l) => c.value[t.value.name].indexOf(l), ne = (l, a, o, u, v) => {
46
- N.updateTooltip(o, u, v), L("change", l, a, o, u, v);
49
+ }, j = (l) => c.value[t.value.name].indexOf(l), ne = (l, a, o, r, v) => {
50
+ N.updateTooltip(o, r, v), I("change", l, a, o, r, v);
47
51
  }, oe = (l, a) => {
48
- l ? k.value.push(a) : xe.remove(k.value, a);
49
- }, ue = (l) => {
50
- L("submit", l);
51
- }, re = (l, a = null) => {
52
+ l ? k.value.push(a) : we.remove(k.value, a);
53
+ }, re = (l) => {
54
+ I("submit", l);
55
+ }, ue = (l, a = null) => {
52
56
  p.value.page = l;
53
- }, G = (l) => {
57
+ }, P = (l) => {
54
58
  if (l.main || l.search.length == 0)
55
59
  return null;
56
60
  let a = {};
57
- l.search.forEach((u) => {
58
- a[u.name] || (a[u.name] = null);
61
+ l.search.forEach((r) => {
62
+ a[r.name] || (a[r.name] = null);
59
63
  });
60
64
  let o = {};
61
65
  return o[l.name] = a, o;
62
- }, H = (l) => {
63
- b.value = G(l);
66
+ }, W = (l) => {
67
+ b.value = P(l);
64
68
  }, se = () => {
65
- F();
69
+ D();
66
70
  }, me = (l) => {
67
- H(l.schema[0]);
68
- }, F = () => {
71
+ W(l.schema[0]);
72
+ }, D = () => {
69
73
  let l = T.value.clientWidth;
70
74
  i.value.column = Math.ceil(l / 500);
71
75
  }, ce = () => {
72
- F(), H(t.value);
76
+ D(), W(t.value);
73
77
  };
74
78
  fe(() => {
75
79
  ce();
76
80
  });
77
- let ie = E(() => P.splitRows(t.value.search, i.value.column)), J = E(() => {
81
+ let ie = E(() => K.splitRows(t.value.search, i.value.column)), G = E(() => {
78
82
  if (!b.value)
79
83
  return c.value[t.value.name];
80
- let l = b.value[t.value.name], a = (p.value.page - 1) * i.value.pageSize, o = p.value.page * i.value.pageSize - 1, u = c.value[t.value.name].filter(($) => {
84
+ let l = b.value[t.value.name], a = (p.value.page - 1) * i.value.pageSize, o = p.value.page * i.value.pageSize - 1, r = c.value[t.value.name].filter(($) => {
81
85
  let f = !0;
82
86
  for (let x = 0; x < t.value.search.length; x++) {
83
87
  let y = t.value.search[x], s = $[y.name], h = l[y.name];
@@ -95,25 +99,25 @@ const Re = {
95
99
  }
96
100
  return f;
97
101
  });
98
- return p.value.count = u.length, u.filter(($, f) => f >= a && f <= o);
102
+ return p.value.count = r.length, r.filter(($, f) => f >= a && f <= o);
99
103
  }), pe = E(() => N.getLines(t.value.show, i.value.column, (a) => a, (a) => a.colspan)), ve = E(() => {
100
- let l = t.value.main ? `/${t.value.name}` : `/${D.value[0].name}/${t.value.name}`;
101
- return Se.getComponent(`${l}/update-child`, "partial", "update-child");
104
+ let l = t.value.main ? `/${t.value.name}` : `/${A.value[0].name}/${t.value.name}`;
105
+ return ye.getComponent(`${l}/update-child`, "partial", "update-child");
102
106
  });
103
- return q(() => c.value[t.value.name], (l, a) => {
104
- let o = l.length, u = a.length, v = ye.pageCount(c.value[t.value.name].length, i.value.pageSize);
105
- (o > u || o < u && p.value.page > v) && (p.value.page = v);
106
- }, { deep: !0 }), q(j, (l, a) => {
107
- let o = l.find((u) => u.table == t.value.name);
107
+ return M(() => c.value[t.value.name], (l, a) => {
108
+ let o = l.length, r = a.length, v = Ce.pageCount(c.value[t.value.name].length, i.value.pageSize);
109
+ (o > r || o < r && p.value.page > v) && (p.value.page = v);
110
+ }, { deep: !0 }), M(O, (l, a) => {
111
+ let o = l.find((r) => r.table == t.value.name);
108
112
  o != null && (p.value.page = Math.ceil((o.index + 1) / i.value.pageSize));
109
- }), q(t, (l, a) => {
110
- F();
113
+ }), M(t, (l, a) => {
114
+ D();
111
115
  }), X({ resize: se, update: me }), (l, a) => {
112
- const o = _("el-form-item"), u = _("el-col"), v = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), x = _("el-popover"), y = _("el-pagination");
116
+ const o = _("el-form-item"), r = _("el-col"), v = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), x = _("el-popover"), y = _("el-pagination");
113
117
  return n(), d("div", {
114
118
  ref_key: "normalRef",
115
119
  ref: T,
116
- class: K(["ha-normal-layout", { draggable: e(i).sort }])
120
+ class: J(["ha-normal-layout", { draggable: e(i).sort }])
117
121
  }, [
118
122
  e(b) ? (n(), g($, {
119
123
  key: 0,
@@ -125,19 +129,19 @@ const Re = {
125
129
  key: h
126
130
  }, {
127
131
  default: m(() => [
128
- (n(!0), d(w, null, R(s, (r, M) => (n(), g(u, {
132
+ (n(!0), d(w, null, R(s, (u, F) => (n(), g(r, {
129
133
  span: 24 / e(i).column,
130
- key: M
134
+ key: F
131
135
  }, {
132
136
  default: m(() => [
133
137
  C(o, {
134
- label: r.label
138
+ label: u.label
135
139
  }, {
136
140
  default: m(() => [
137
141
  C(e(Q), {
138
- schema: e(D),
142
+ schema: e(A),
139
143
  table: e(t),
140
- field: r,
144
+ field: u,
141
145
  set: e(b),
142
146
  onSubmit: e(le)
143
147
  }, null, 8, ["schema", "table", "field", "set", "onSubmit"])
@@ -153,9 +157,9 @@ const Re = {
153
157
  ]),
154
158
  _: 1
155
159
  })) : V("", !0),
156
- e(J).length ? (n(), d("div", $e, [
157
- (n(!0), d(w, null, R(e(J), (s) => (n(), d("div", {
158
- class: K(["normal-row", { main: e(t).main }])
160
+ e(G).length ? (n(), d("div", $e, [
161
+ (n(!0), d(w, null, R(e(G), (s) => (n(), d("div", {
162
+ class: J(["normal-row", { main: e(t).main }])
159
163
  }, [
160
164
  e(t).main ? V("", !0) : (n(), d("div", ze, [
161
165
  C(f, {
@@ -166,36 +170,36 @@ const Re = {
166
170
  onChange: (h) => e(oe)(h, s)
167
171
  }, null, 8, ["row", "onChange"])
168
172
  ])),
169
- I("div", Ee, [
173
+ B("div", Ee, [
170
174
  (n(!0), d(w, null, R(e(pe), (h) => (n(), g(v, null, {
171
175
  default: m(() => [
172
- (n(!0), d(w, null, R(h, ({ data: r, span: M }) => (n(), g(u, {
173
- span: M,
174
- key: `${e(t).name}.${r.name}`
176
+ (n(!0), d(w, null, R(h, ({ data: u, span: F }) => (n(), g(r, {
177
+ span: F,
178
+ key: `${e(t).name}.${u.name}`
175
179
  }, {
176
180
  default: m(() => [
177
181
  C(o, {
178
- style: ge(e(P).getStyle(r, e(O).type, e(i).type)),
179
- label: r.label,
180
- rules: e(N).getRules(e(j), e(t), r, e(W)(s)),
181
- prop: `[${e(t).name}][${e(W)(s)}][${r.name}]`
182
+ style: ge(e(K).getStyle(u, e(L).type, e(i).type)),
183
+ label: u.label,
184
+ rules: e(N).getRules(e(O), e(t), u, e(j)(s)),
185
+ prop: `[${e(t).name}][${e(j)(s)}][${u.name}]`
182
186
  }, {
183
187
  label: m(() => {
184
188
  var z;
185
189
  return [
186
- _e(B(e(ke)(e(t).name, r.name)) + " ", 1),
187
- (z = r.control.tooltip) != null && z.content ? (n(), g(x, {
190
+ _e(q(e(xe)(e(t).name, u.name)) + " ", 1),
191
+ (z = u.control.tooltip) != null && z.content ? (n(), g(x, {
188
192
  key: 0,
189
193
  trigger: "hover",
190
194
  placement: "top",
191
195
  width: "auto",
192
- title: r.control.tooltip.title
196
+ title: u.control.tooltip.title
193
197
  }, {
194
198
  reference: m(() => [
195
199
  Ve
196
200
  ]),
197
201
  default: m(() => [
198
- I("pre", null, B(r.control.tooltip.content), 1)
202
+ B("pre", null, q(u.control.tooltip.content), 1)
199
203
  ]),
200
204
  _: 2
201
205
  }, 1032, ["title"])) : V("", !0)
@@ -203,13 +207,13 @@ const Re = {
203
207
  }),
204
208
  default: m(() => [
205
209
  C(e(Q), {
206
- schema: e(D),
210
+ schema: e(A),
207
211
  set: e(c),
208
212
  table: e(t),
209
213
  row: s,
210
- field: r,
211
- onSubmit: e(ue),
212
- onChange: (z) => e(ne)(z, e(c), e(t), s, r)
214
+ field: u,
215
+ onSubmit: e(re),
216
+ onChange: (z) => e(ne)(z, e(c), e(t), s, u)
213
217
  }, null, 8, ["schema", "set", "table", "row", "field", "onSubmit", "onChange"])
214
218
  ]),
215
219
  _: 2
@@ -222,11 +226,11 @@ const Re = {
222
226
  }, 1024))), 256))
223
227
  ])
224
228
  ], 2))), 256))
225
- ], 512)) : (n(), d("div", Re, B(e(Ce)("common.no_data")), 1)),
226
- e(t).main ? V("", !0) : (n(), g(e(we), { key: 3 }, {
229
+ ], 512)) : (n(), d("div", Re, q(e(ke)("common.no_data")), 1)),
230
+ e(t).main ? V("", !0) : (n(), g(e(Se), { key: 3 }, {
227
231
  left: m(() => [
228
232
  (n(), g(be(e(ve)), {
229
- module: e(O),
233
+ module: e(L),
230
234
  set: e(c),
231
235
  table: e(t),
232
236
  selection: e(k),
@@ -241,7 +245,7 @@ const Re = {
241
245
  "current-page": e(p).page,
242
246
  "page-size": e(i).pageSize,
243
247
  total: e(p).count,
244
- onCurrentChange: a[0] || (a[0] = (s) => e(re)(s, e(t)))
248
+ onCurrentChange: a[0] || (a[0] = (s) => e(ue)(s, e(t)))
245
249
  }, null, 8, ["current-page", "page-size", "total"])
246
250
  ]),
247
251
  _: 1
@@ -251,5 +255,5 @@ const Re = {
251
255
  }
252
256
  });
253
257
  export {
254
- Be as default
258
+ Oe as default
255
259
  };
@@ -0,0 +1,99 @@
1
+ import { defineComponent as V, toRefs as $, ref as r, onMounted as A, watch as E, unref as a, openBlock as G, createBlock as I, createCommentVNode as K } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import { U as s, b as Q, i as W, s as h, O as X, c as b } from "./main-KTzfgTac.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ import { _ as Y } from "./Index.vue_vue_type_script_setup_true_lang-DCxwPrIZ.js";
9
+ const oe = /* @__PURE__ */ V({
10
+ __name: "Paging",
11
+ props: {
12
+ base: {},
13
+ route: {},
14
+ url: {},
15
+ win: {}
16
+ },
17
+ emits: ["navigate", "load"],
18
+ setup(q, { expose: k, emit: z }) {
19
+ let g = z, P = q, { url: d, base: y, route: u } = $(P), f = r(), v = r(), c = r(), m = r(), x = r(), C = r(), p = r(), o = r(), N = (e) => !0, L = (e) => {
20
+ let l = s.getPath(d.value), t = s.getPath(e);
21
+ return l != t;
22
+ }, O = (e = null) => {
23
+ _(e);
24
+ }, R = () => {
25
+ }, S = (e) => {
26
+ var t;
27
+ let l = Q(e.module.type, e.module.name);
28
+ W.setTitle(l, e.module.env), f.value = e.module, x.value = e.next, C.value = h.expandSet(e.schema, e.set), v.value = h.expandSchema(e.schema, e.set), c.value = (t = v.value) == null ? void 0 : t[0], m.value = c.value.layouts[0], p.value = h.getConditionForm(v.value, u.value.query.condition);
29
+ }, U = (e = null, l = null) => {
30
+ let t = e ?? u.value.query, n = s.getUrl(u.value.path, t);
31
+ g("load", n, !1, (T) => {
32
+ l && l(T);
33
+ });
34
+ }, i = (e, l) => {
35
+ g("navigate", e, l);
36
+ }, w = async (e) => {
37
+ let l = u.value.query;
38
+ l.page = 1;
39
+ let t = X.pure(p.value);
40
+ l.condition = b.encode(t);
41
+ let n = s.getUrl(u.value.path, l);
42
+ n == d.value ? U(l, e) : i(n, e);
43
+ }, B = (e, l) => {
44
+ let t = u.value.query;
45
+ t.order_by = b.encode(JSON.stringify(e));
46
+ let n = s.getUrl(u.value.path, t);
47
+ i(n, l);
48
+ }, D = (e, l = null) => {
49
+ let t = u.value.query;
50
+ t.page = e;
51
+ let n = s.getUrl(u.value.path, t);
52
+ i(n, l);
53
+ }, H = (e, l = null) => {
54
+ let t = u.value.query;
55
+ t.size = e;
56
+ let n = s.getUrl(u.value.path, t);
57
+ i(n, l);
58
+ }, j = (e) => {
59
+ m.value = c.value.layouts.find((l) => l.type == e);
60
+ }, F = () => {
61
+ S(y.value.data);
62
+ }, _ = (e = null) => U(null, e), J = (e) => {
63
+ if (!o.value || !o.value.resize)
64
+ return !1;
65
+ o.value.resize(e);
66
+ }, M = (e, l) => {
67
+ if (!o.value || !o.value.keyboard)
68
+ return !1;
69
+ o.value.keyboard(e, l);
70
+ };
71
+ return A(async () => {
72
+ F();
73
+ }), E(() => y.value, (e) => {
74
+ S(e.data);
75
+ }), k({ shouldLoad: N, shouldSpin: L, refresh: _, keyboard: M, resize: J }), (e, l) => a(m) ? (G(), I(Y, {
76
+ key: 0,
77
+ ref_key: "pagingRef",
78
+ ref: o,
79
+ module: a(f),
80
+ next: a(x),
81
+ set: a(C),
82
+ schema: a(v),
83
+ table: a(c),
84
+ layout: a(m),
85
+ "search-data": a(p),
86
+ onNavigate: a(i),
87
+ onSort: a(B),
88
+ onSearch: a(w),
89
+ onPageChange: a(D),
90
+ onSizeChange: a(H),
91
+ onLayoutChange: a(j),
92
+ onSucceed: a(O),
93
+ onClose: a(R)
94
+ }, null, 8, ["module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"])) : K("", !0);
95
+ }
96
+ });
97
+ export {
98
+ oe as default
99
+ };
@@ -1,6 +1,12 @@
1
- import { defineComponent as D, toRefs as F, ref as H, resolveComponent as g, openBlock as s, createElementBlock as I, Fragment as P, createElementVNode as l, unref as e, createBlock as m, withCtx as t, createTextVNode as r, toDisplayString as n, createCommentVNode as p, createVNode as y, createSlots as R } from "vue";
2
- import { e as o } from "./assets/halo-fe-B-NiIGas.js";
3
- const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-plus" }, null, -1), j = /* @__PURE__ */ l("i", { class: "fa fa-copy" }, null, -1), z = /* @__PURE__ */ l("i", { class: "fa fa-trash-alt" }, null, -1), A = { class: "search-operation" }, G = /* @__PURE__ */ l("i", { class: "fa fa-search" }, null, -1), J = /* @__PURE__ */ l("i", { class: "fa fa-file-upload" }, null, -1), K = /* @__PURE__ */ l("i", { class: "fa fa-share-square" }, null, -1), W = /* @__PURE__ */ D({
1
+ import { defineComponent as D, toRefs as F, ref as H, resolveComponent as g, openBlock as s, createElementBlock as I, Fragment as P, createElementVNode as l, unref as e, createBlock as p, withCtx as t, createTextVNode as r, toDisplayString as n, createCommentVNode as d, createVNode as y, createSlots as R } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { t as o } from "./main-KTzfgTac.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-plus" }, null, -1), j = /* @__PURE__ */ l("i", { class: "fa fa-copy" }, null, -1), z = /* @__PURE__ */ l("i", { class: "fa fa-trash-alt" }, null, -1), A = { class: "search-operation" }, G = /* @__PURE__ */ l("i", { class: "fa fa-search" }, null, -1), J = /* @__PURE__ */ l("i", { class: "fa fa-file-upload" }, null, -1), K = /* @__PURE__ */ l("i", { class: "fa fa-share-square" }, null, -1), oe = /* @__PURE__ */ D({
4
10
  __name: "PagingHeader",
5
11
  props: {
6
12
  schema: {},
@@ -12,27 +18,27 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
12
18
  },
13
19
  emits: ["add", "remove", "copy", "show-import", "show-export", "succeed", "submit"],
14
20
  setup(b, { emit: k }) {
15
- let c = k, x = b, { schema: L, table: C, layout: M, next: d, set: v, selection: a } = F(x), u = H(!1), w = () => {
16
- u.value = !0, c("submit", () => {
21
+ let i = k, x = b, { schema: L, table: C, layout: M, next: m, set: v, selection: a } = F(x), u = H(!1), w = () => {
22
+ u.value = !0, i("submit", () => {
17
23
  u.value = !1;
18
24
  });
19
25
  }, N = (f) => {
20
- c("add", f);
26
+ i("add", f);
21
27
  }, V = () => {
22
- c("show-import");
28
+ i("show-import");
23
29
  }, B = () => {
24
- c("show-export");
30
+ i("show-export");
25
31
  }, E = (f) => {
26
- c("copy", f);
32
+ i("copy", f);
27
33
  }, S = () => {
28
- c("remove", a.value);
34
+ i("remove", a.value);
29
35
  };
30
36
  return (f, _) => {
31
37
  var h;
32
- const i = g("el-button"), q = g("el-popconfirm");
38
+ const c = g("el-button"), q = g("el-popconfirm");
33
39
  return s(), I(P, null, [
34
40
  l("div", T, [
35
- e(d).insert ? (s(), m(i, {
41
+ e(m).insert ? (s(), p(c, {
36
42
  key: 0,
37
43
  type: "primary",
38
44
  class: "btn-insert",
@@ -45,8 +51,8 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
45
51
  r(" " + n(e(o)("paging.add")), 1)
46
52
  ]),
47
53
  _: 1
48
- }, 8, ["onClick"])) : p("", !0),
49
- e(d).copy ? (s(), m(i, {
54
+ }, 8, ["onClick"])) : d("", !0),
55
+ e(m).copy ? (s(), p(c, {
50
56
  key: 1,
51
57
  type: "primary",
52
58
  disabled: !e(a).length,
@@ -59,8 +65,8 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
59
65
  r(" " + n(e(o)("common.copy")) + n(e(a).length ? "(" + e(a).length + ")" : ""), 1)
60
66
  ]),
61
67
  _: 1
62
- }, 8, ["disabled"])) : p("", !0),
63
- e(d).delete ? (s(), m(q, {
68
+ }, 8, ["disabled"])) : d("", !0),
69
+ e(m).delete ? (s(), p(q, {
64
70
  key: 2,
65
71
  width: 180,
66
72
  title: e(o)("common.confirm_delete"),
@@ -69,7 +75,7 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
69
75
  onConfirm: e(S)
70
76
  }, {
71
77
  reference: t(() => [
72
- y(i, {
78
+ y(c, {
73
79
  type: "danger",
74
80
  class: "btn-delete",
75
81
  plain: "",
@@ -85,10 +91,10 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
85
91
  }, 8, ["disabled"])
86
92
  ]),
87
93
  _: 1
88
- }, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : p("", !0)
94
+ }, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : d("", !0)
89
95
  ]),
90
96
  l("div", A, [
91
- y(i, {
97
+ y(c, {
92
98
  type: "primary",
93
99
  loading: e(u),
94
100
  onClick: e(w)
@@ -106,7 +112,7 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
106
112
  key: "0"
107
113
  }
108
114
  ]), 1032, ["loading", "onClick"]),
109
- e(d).import ? (s(), m(i, {
115
+ e(m).import ? (s(), p(c, {
110
116
  key: 0,
111
117
  onClick: e(V)
112
118
  }, {
@@ -117,8 +123,8 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
117
123
  r(" " + n(e(o)("paging.import")), 1)
118
124
  ]),
119
125
  _: 1
120
- }, 8, ["onClick"])) : p("", !0),
121
- e(d).export ? (s(), m(i, {
126
+ }, 8, ["onClick"])) : d("", !0),
127
+ e(m).export ? (s(), p(c, {
122
128
  key: 1,
123
129
  disabled: ((h = e(v)[e(C).name]) == null ? void 0 : h.length) == 0,
124
130
  onClick: e(B)
@@ -130,12 +136,12 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
130
136
  r(" " + n(e(o)("paging.export")), 1)
131
137
  ]),
132
138
  _: 1
133
- }, 8, ["disabled", "onClick"])) : p("", !0)
139
+ }, 8, ["disabled", "onClick"])) : d("", !0)
134
140
  ])
135
141
  ], 64);
136
142
  };
137
143
  }
138
144
  });
139
145
  export {
140
- W as default
146
+ oe as default
141
147
  };
@@ -1,6 +1,12 @@
1
- import { defineComponent as x, toRefs as y, resolveComponent as _, openBlock as r, createElementBlock as m, unref as e, createCommentVNode as a, createBlock as g, withCtx as B, createElementVNode as R } from "vue";
2
- import { e as p } from "./assets/halo-fe-B-NiIGas.js";
3
- const E = { class: "paging-row" }, q = /* @__PURE__ */ x({
1
+ import { defineComponent as x, toRefs as y, resolveComponent as _, openBlock as r, createElementBlock as c, unref as e, createCommentVNode as p, createBlock as g, withCtx as B, createElementVNode as R } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { t as a } from "./main-KTzfgTac.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const E = { class: "paging-row" }, H = /* @__PURE__ */ x({
4
10
  __name: "PagingRow",
5
11
  props: {
6
12
  table: {},
@@ -10,43 +16,43 @@ const E = { class: "paging-row" }, q = /* @__PURE__ */ x({
10
16
  },
11
17
  emits: ["preview", "edit", "copy", "before-remove", "remove"],
12
18
  setup(d, { emit: b }) {
13
- let i = b, k = d, { table: N, next: l, set: V, row: c } = y(k), s = (o) => {
14
- i("preview", c.value, o);
19
+ let i = b, k = d, { table: N, next: l, set: V, row: m } = y(k), s = (o) => {
20
+ i("preview", m.value, o);
15
21
  }, f = (o) => {
16
- i("edit", c.value, o);
22
+ i("edit", m.value, o);
17
23
  }, u = (o) => {
18
- i("copy", c.value, o);
24
+ i("copy", m.value, o);
19
25
  }, v = (o) => {
20
26
  }, C = () => {
21
- i("remove", [c.value]);
27
+ i("remove", [m.value]);
22
28
  };
23
29
  return (o, t) => {
24
30
  const w = _("el-popconfirm");
25
- return r(), m("div", E, [
26
- e(l).detail ? (r(), m("i", {
31
+ return r(), c("div", E, [
32
+ e(l).detail ? (r(), c("i", {
27
33
  key: 0,
28
34
  class: "fa fa-search-plus btn-icon",
29
35
  onClick: t[0] || (t[0] = //@ts-ignore
30
36
  (...n) => e(s) && e(s)(...n))
31
- })) : a("", !0),
32
- e(l).update ? (r(), m("i", {
37
+ })) : p("", !0),
38
+ e(l).update ? (r(), c("i", {
33
39
  key: 1,
34
40
  class: "fa fa-pencil btn-icon",
35
41
  onClick: t[1] || (t[1] = //@ts-ignore
36
42
  (...n) => e(f) && e(f)(...n))
37
- })) : a("", !0),
38
- e(l).copy ? (r(), m("i", {
43
+ })) : p("", !0),
44
+ e(l).copy ? (r(), c("i", {
39
45
  key: 2,
40
46
  class: "fa fa-copy btn-icon",
41
47
  onClick: t[2] || (t[2] = //@ts-ignore
42
48
  (...n) => e(u) && e(u)(...n))
43
- })) : a("", !0),
49
+ })) : p("", !0),
44
50
  e(l).delete ? (r(), g(w, {
45
51
  key: 3,
46
52
  width: 180,
47
- title: e(p)("common.confirm_delete"),
48
- "confirm-button-text": e(p)("common.confirm"),
49
- "cancel-button-text": e(p)("common.cancel"),
53
+ title: e(a)("common.confirm_delete"),
54
+ "confirm-button-text": e(a)("common.confirm"),
55
+ "cancel-button-text": e(a)("common.cancel"),
50
56
  onConfirm: e(C)
51
57
  }, {
52
58
  reference: B(() => [
@@ -57,11 +63,11 @@ const E = { class: "paging-row" }, q = /* @__PURE__ */ x({
57
63
  })
58
64
  ]),
59
65
  _: 1
60
- }, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : a("", !0)
66
+ }, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : p("", !0)
61
67
  ]);
62
68
  };
63
69
  }
64
70
  });
65
71
  export {
66
- q as default
72
+ H as default
67
73
  };
@@ -0,0 +1,20 @@
1
+ import "./assets/underscore-B0BCaBxV.js";
2
+ import "vue";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import { h as r } from "./main-KTzfgTac.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ class o {
10
+ /**
11
+ * 查询代码语言和文本语言映射关系
12
+ */
13
+ static async loadCodeLanguage() {
14
+ return r.post("/dictionary/code_language").then((t) => t.data);
15
+ }
16
+ }
17
+ const d = o;
18
+ export {
19
+ d as Q
20
+ };