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,117 @@
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 k, Fragment as $, renderList as q, createElementVNode as z, toDisplayString as w, createCommentVNode as G, nextTick as I } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import { k as J, w as P, x as Q, h as W } from "./main-KTzfgTac.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";
9
+ const X = { class: "option-text" }, Y = {
10
+ key: 0,
11
+ class: "option-suffix"
12
+ }, ue = /* @__PURE__ */ A({
13
+ __name: "Select",
14
+ props: {
15
+ schema: {},
16
+ table: {},
17
+ field: {},
18
+ set: {},
19
+ row: {},
20
+ modelValue: { type: [String, Number, Boolean, Array] }
21
+ },
22
+ emits: ["submit", "change", "update:modelValue"],
23
+ setup(C, { emit: E }) {
24
+ let s = E, B = C, { schema: S, field: r, table: p, set: v, row: R, modelValue: m } = D(B), x = f(), g = f(), h = f(!1), d = f(r.value.control.data.data), K = (t) => {
25
+ t == "" && (t = null);
26
+ let e;
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;
29
+ e && (o = d.value.find((i) => i.value == e).text);
30
+ debugger;
31
+ R.value[a.name] = o;
32
+ }
33
+ _(p.value, r.value), s("change", t);
34
+ }, N = () => {
35
+ s("submit");
36
+ }, T = () => {
37
+ }, j = () => {
38
+ h.value = !0;
39
+ let t = { text: g.value, conditions: [] };
40
+ r.value.control.data.conditions.forEach((e) => {
41
+ let a = v.value[e.table].filter((l) => l[e.field] != null).map((l) => l[e.field]), o = a.length == 0 ? null : a.join(",");
42
+ t.conditions.push({ name: e.name, value: o });
43
+ }), W.post(r.value.control.data.route, t).then(({ data: e }) => {
44
+ d.value = e;
45
+ }).finally(() => {
46
+ h.value = !1, I(() => {
47
+ let e = d.value.find((a) => a.value == u.value);
48
+ x.value.scrollToOption(e);
49
+ });
50
+ });
51
+ }, F = (t) => {
52
+ g.value = t, j();
53
+ }, M = (t, e) => {
54
+ let a = [];
55
+ return S.value.forEach((o) => {
56
+ o.fields.forEach((l) => {
57
+ l.dictionary && l.dictionary.conditions.forEach((i) => {
58
+ i.table == t.name && i.field == e.name && a.push({ table: o, field: l });
59
+ });
60
+ });
61
+ }), a;
62
+ }, _ = (t, e) => {
63
+ M(t, e).forEach((o) => {
64
+ Q.setRowsValue(null, v.value, o.table, o.field), _(o.table, o.field);
65
+ });
66
+ }, u = H({
67
+ get() {
68
+ return r.value.control.multiple ? m.value == null ? [] : m.value.toString().split(",") : m.value;
69
+ },
70
+ set(t) {
71
+ s("update:modelValue", t), s("change", t);
72
+ }
73
+ });
74
+ return (t, e) => {
75
+ const a = b("el-option"), o = b("el-select");
76
+ return c(), y(o, {
77
+ ref_key: "selectRef",
78
+ ref: x,
79
+ filterable: "",
80
+ remote: "",
81
+ "reserve-keyword": "",
82
+ "default-first-option": "",
83
+ "remote-show-suffix": "",
84
+ "loading-text": "加载中",
85
+ clearable: "",
86
+ placeholder: n(J)(n(p).name, n(r).name),
87
+ multiple: n(r).control.multiple,
88
+ "remote-method": n(F),
89
+ loading: n(h),
90
+ disabled: n(r).control.readonly,
91
+ onKeyup: L(O(n(N), ["alt"]), ["enter", "native"]),
92
+ onBlur: n(T),
93
+ onChange: n(K),
94
+ modelValue: n(u),
95
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => U(u) ? u.value = l : u = l)
96
+ }, {
97
+ default: V(() => [
98
+ (c(!0), k($, null, q(n(d), (l, i) => (c(), y(a, {
99
+ label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
100
+ value: l.value,
101
+ key: l.value
102
+ }, {
103
+ default: V(() => [
104
+ z("span", X, w(l.text), 1),
105
+ l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : G("", !0)
106
+ ]),
107
+ _: 2
108
+ }, 1032, ["label", "value"]))), 128))
109
+ ]),
110
+ _: 1
111
+ }, 8, ["placeholder", "multiple", "remote-method", "loading", "disabled", "onKeyup", "onBlur", "onChange", "modelValue"]);
112
+ };
113
+ }
114
+ });
115
+ export {
116
+ ue as default
117
+ };
@@ -0,0 +1,86 @@
1
+ import { defineComponent as K, toRefs as R, ref as i, computed as S, resolveComponent as p, openBlock as r, createBlock as c, unref as t, withKeys as M, withModifiers as N, isRef as F, withCtx as f, createElementBlock as h, Fragment as L, renderList as U, createElementVNode as j, toDisplayString as _, createCommentVNode as q } 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 z, f as A, h as G } from "./main-KTzfgTac.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const H = { class: "option-text" }, I = {
10
+ key: 0,
11
+ class: "option-suffix"
12
+ }, ee = /* @__PURE__ */ K({
13
+ __name: "Select",
14
+ props: {
15
+ schema: {},
16
+ table: {},
17
+ field: {},
18
+ searchData: {},
19
+ modelValue: { type: [String, Boolean] }
20
+ },
21
+ emits: ["change", "submit", "update:modelValue"],
22
+ setup(v, { emit: x }) {
23
+ let s = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), k = i(!1), m = i(), d = i(a.value.control.data.data), C = () => {
24
+ s("submit");
25
+ }, w = () => {
26
+ }, B = (l) => {
27
+ m.value = l, D();
28
+ }, D = () => {
29
+ let l = { text: m.value, conditions: [] };
30
+ a.value.control.data.conditions.forEach((o) => {
31
+ let u = y.value[o.table][o.field];
32
+ l.conditions.push({ name: o.name, value: u });
33
+ }), G.post(a.value.control.data.route, l).then(({ data: o }) => {
34
+ d.value = o;
35
+ }).finally(() => {
36
+ k.value = !1;
37
+ });
38
+ }, n = S({
39
+ get() {
40
+ return V.value;
41
+ },
42
+ set(l) {
43
+ s("update:modelValue", l), s("change", l);
44
+ }
45
+ });
46
+ return (l, o) => {
47
+ const u = p("el-option"), E = p("el-select");
48
+ return r(), c(E, {
49
+ ref: "selectRef",
50
+ filterable: "",
51
+ remote: "",
52
+ "reserve-keyword": "",
53
+ clearable: "",
54
+ "default-first-option": "",
55
+ "remote-show-suffix": "",
56
+ placeholder: t(z)("common.please_choose") + t(A)(t(g).name, t(a).name),
57
+ multiple: t(a).control.multiple,
58
+ "loading-text": "加载中",
59
+ "remote-method": t(B),
60
+ disabled: t(a).control.readonly,
61
+ onKeyup: M(N(t(C), ["alt"]), ["enter", "native"]),
62
+ onChange: t(w),
63
+ modelValue: t(n),
64
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
65
+ }, {
66
+ default: f(() => [
67
+ (r(!0), h(L, null, U(t(d), (e, O) => (r(), c(u, {
68
+ label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
69
+ value: e.value,
70
+ key: e.value
71
+ }, {
72
+ default: f(() => [
73
+ j("span", H, _(e.text), 1),
74
+ e.suffix ? (r(), h("span", I, "(" + _(e.suffix) + ")", 1)) : q("", !0)
75
+ ]),
76
+ _: 2
77
+ }, 1032, ["label", "value"]))), 128))
78
+ ]),
79
+ _: 1
80
+ }, 8, ["placeholder", "multiple", "remote-method", "disabled", "onKeyup", "onChange", "modelValue"]);
81
+ };
82
+ }
83
+ });
84
+ export {
85
+ ee as default
86
+ };
@@ -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-CsBiv-CI.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
13
+ let r = f(() => import("./Dictionary-B8OMis9G.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,10 +1,14 @@
1
- import { defineComponent as $e, toRefs as Ue, ref as u, computed as X, watch as Be, resolveComponent as f, openBlock as d, createElementBlock as j, 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 Pe, normalizeStyle as Ke, createTextVNode as te, nextTick as ae } from "vue";
2
- import { aP as Ne, e as oe, aM as qe, K as q, c as Me, T as Fe, v as ue, o as Oe, J as je } from "./assets/halo-fe-B-NiIGas.js";
3
- import { c as Ae, a as Je, _ as Ye, s as re } from "./main-DB_sVyZe.js";
4
- import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js";
5
- const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class: "row-title" }, Qe = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), We = [
6
- Qe
7
- ], Xe = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], rl = /* @__PURE__ */ $e({
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, g as je, U as q, a as Fe, O as He, h as Me, m as re, b as Ae, i as Ge, s as ue } 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 ne } from "./Index.vue_vue_type_script_setup_true_lang-BJJPNo3Y.js";
9
+ 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 = [
10
+ We
11
+ ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], dl = /* @__PURE__ */ Ue({
8
12
  __name: "Single",
9
13
  props: {
10
14
  base: {},
@@ -14,68 +18,68 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
14
18
  },
15
19
  emits: ["navigate", "load", "succeed", "close"],
16
20
  setup(se, { expose: ie, emit: de }) {
17
- let D = de, me = se, { url: ce, base: A, route: z } = Ue(me), p = u(), b = u(), c = u(), r = u(), y = u(), L = u(), v = u({ table: null, layout: null }), w = u(), P = u([]), ve = u(), E = u(), R = u(), M = u(), C = u(), K = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), F = u(), S = u(), fe = (l) => !0, pe = (l) => {
21
+ 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(), R = r(), K = r(), C = r(), O = r(), i = r({ page: null, url: null, visible: !1, appendToBody: !1 }), k = r(!1), j = r(), S = r(), pe = (l) => !0, fe = (l) => {
18
22
  let t = q.getPath(ce.value), a = q.getPath(l);
19
23
  return t != a;
20
24
  }, be = () => {
21
25
  Ve();
22
- }, ye = (l, t) => {
23
- J("copy", l, t);
24
26
  }, _e = (l, t) => {
25
- J("update", l, t);
27
+ A("copy", l, t);
28
+ }, ye = (l, t) => {
29
+ A("update", l, t);
26
30
  }, he = () => {
27
31
  i.value.visible = !1;
28
- }, J = (l, t, a) => {
32
+ }, A = (l, t, a) => {
29
33
  let n = ge(l, t);
30
34
  a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
31
35
  }, ge = (l, t = null) => {
32
36
  let a = `${b.value[l].route}`;
33
37
  if (t != null) {
34
- let n = t[y.value.key.name];
38
+ let n = t[_.value.key.name];
35
39
  a += `?id=${n}`;
36
40
  }
37
41
  return a;
38
42
  }, we = (l, t, a) => {
39
- (a.ctrlKey || k.value) && (F.value = l, S.value = Me.clone(t), k.value = !0, S.value.fields.forEach((n) => {
43
+ (a.ctrlKey || k.value) && (j.value = l, S.value = He.clone(t), k.value = !0, S.value.fields.forEach((n) => {
40
44
  n.control.textualize = !1;
41
45
  }));
42
- }, Y = (l) => {
43
- i.value.visible = !1, D("succeed", Q.value, l);
46
+ }, G = (l) => {
47
+ i.value.visible = !1, D("succeed", W.value, l);
44
48
  }, Ce = () => {
45
49
  D("close");
46
- }, G = (l, t, a, n, T) => {
47
- }, H = (l, t) => {
50
+ }, I = (l, t, a, n, T) => {
51
+ }, J = (l, t) => {
48
52
  if (t) {
49
- L.value = y.value.layouts.find((a) => a.type == l);
53
+ L.value = _.value.layouts.find((a) => a.type == l);
50
54
  return;
51
55
  }
52
56
  v.value.layout = v.value.table.layouts.find((a) => a.type == l);
53
57
  }, ke = (l) => {
54
- let t = r.value.find((a) => a.name == l);
58
+ let t = u.value.find((a) => a.name == l);
55
59
  v.value.table = t, v.value.layout = t.layouts[0];
56
60
  }, xe = (l) => {
57
61
  let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
58
- r.value.find((T) => T.name == a).main || (w.value = a);
62
+ u.value.find((T) => T.name == a).main || (w.value = a);
59
63
  }, Re = (l, t = null, a = null) => {
60
64
  ae(() => {
61
65
  E.value.validate((n, T) => {
62
66
  if (!n)
63
67
  return xe(T), a && a(!1), !1;
64
- let $ = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
65
- t && t($, c.value), Fe.post($, c.value).then(({ data: U, message: V }) => {
66
- E.value.clearValidate(), ue.success(V), Y(c.value);
67
- }).catch(({ code: U, data: V, message: W }) => {
68
- if (U != "ValidateError")
68
+ let U = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
69
+ t && t(U, c.value), Me.post(U, c.value).then(({ data: $, message: V }) => {
70
+ E.value.clearValidate(), re.success(V), G(c.value);
71
+ }).catch(({ code: $, data: V, message: X }) => {
72
+ if ($ != "ValidateError")
69
73
  return;
70
- P.value = V;
71
- let N = V.find((_) => _.table !== y.value.name);
72
- if (N) {
73
- let _ = r.value.find((o) => o.name == N.table);
74
- _ && (w.value = _.name);
74
+ N.value = V;
75
+ let P = V.find((y) => y.table !== _.value.name);
76
+ if (P) {
77
+ let y = u.value.find((o) => o.name == P.table);
78
+ y && (w.value = y.name);
75
79
  }
76
80
  ae(() => {
77
- E.value.clearValidate(), E.value.validate((_, o) => {
78
- _ || (a && a(!1), P.value = []);
81
+ E.value.clearValidate(), E.value.validate((y, o) => {
82
+ y || (a && a(!1), N.value = []);
79
83
  });
80
84
  });
81
85
  }).finally(() => {
@@ -83,21 +87,21 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
83
87
  });
84
88
  });
85
89
  });
86
- }, I = (l) => {
90
+ }, Q = (l) => {
87
91
  var a, n;
88
- let t = Oe(l.module.type, l.module.name);
89
- 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, l.set), y.value = (a = r.value) == null ? void 0 : a[0], L.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, v.value.table = r.value[1], v.value.layout = r.value[1].layouts[0]);
92
+ let t = Ae(l.module.type, l.module.name);
93
+ Ge.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, l.set), _.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]);
90
94
  }, Se = (l) => {
91
95
  R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
92
96
  }, Te = (l, t) => {
93
97
  if (l == "ctrlS") {
94
- if (p.value.type == "Detail") {
95
- if (!K.value || !K.value.keyboard)
98
+ if (f.value.type == "Detail") {
99
+ if (!O.value || !O.value.keyboard)
96
100
  return !1;
97
- K.value.keyboard(l, t);
101
+ O.value.keyboard(l, t);
98
102
  return;
99
103
  }
100
- O(t);
104
+ F(t);
101
105
  }
102
106
  }, Ve = () => {
103
107
  let l = q.getUrl(z.value.path, z.value.query);
@@ -105,31 +109,31 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
105
109
  });
106
110
  };
107
111
  (() => {
108
- I(A.value.data);
112
+ Q(M.value.data);
109
113
  })();
110
- let O = (l) => {
111
- if (!M.value.submit) {
112
- ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
114
+ let F = (l) => {
115
+ if (!K.value.submit) {
116
+ re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
113
117
  return;
114
118
  }
115
- M.value.submit(l);
116
- }, ze = X(() => {
117
- let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
118
- return Ae.getComponent(l, "partial", t);
119
- }), Q = X(() => p.value.type.toLowerCase());
120
- return Be(() => A.value, (l) => {
121
- I(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
122
- }), ie({ shouldLoad: fe, shouldSpin: pe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
123
- const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"), $ = f("el-form"), U = f("el-scrollbar"), V = f("el-popover"), W = f("el-form-item"), N = f("el-card"), _ = f("el-drawer");
124
- return d(), j("div", {
119
+ K.value.submit(l);
120
+ }, ze = Y(() => {
121
+ let l = `/${_.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
122
+ return Pe.getComponent(l, "partial", t);
123
+ }), W = Y(() => f.value.type.toLowerCase());
124
+ return Be(() => M.value, (l) => {
125
+ Q(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
126
+ }), ie({ shouldLoad: pe, shouldSpin: fe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
127
+ 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");
128
+ return d(), H("div", {
125
129
  ref_key: "singleRef",
126
130
  ref: ve,
127
- class: De(["ha-single-page", { [e(Q) + "-page"]: !0, editing: e(k) }])
131
+ class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
128
132
  }, [
129
- m("div", Ge, [
130
- h(U, { class: "main-scroller" }, {
133
+ m("div", Ie, [
134
+ h($, { class: "main-scroller" }, {
131
135
  default: s(() => [
132
- h($, {
136
+ h(U, {
133
137
  ref_key: "formRef",
134
138
  ref: E,
135
139
  model: e(c),
@@ -140,19 +144,19 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
140
144
  h(ne, {
141
145
  ref_key: "mainRef",
142
146
  ref: R,
143
- module: e(p),
144
- schema: e(r),
145
- table: e(y),
147
+ module: e(f),
148
+ schema: e(u),
149
+ table: e(_),
146
150
  layout: e(L),
147
151
  next: e(b),
148
152
  set: e(c),
149
153
  route: e(z),
150
- "validate-errors": e(P),
151
- onChange: e(G),
152
- onLayoutChange: t[0] || (t[0] = (o) => e(H)(o, !0)),
153
- onSubmit: e(O)
154
+ "validate-errors": e(N),
155
+ onChange: e(I),
156
+ onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
157
+ onSubmit: e(F)
154
158
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
155
- e(r).length > 1 ? (d(), g(T, {
159
+ e(u).length > 1 ? (d(), g(T, {
156
160
  key: 0,
157
161
  type: "border-card",
158
162
  onTabChange: e(ke),
@@ -160,7 +164,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
160
164
  "onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
161
165
  }, {
162
166
  default: s(() => [
163
- (d(!0), j(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
167
+ (d(!0), H(ee, null, le(e(u).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
164
168
  name: o.name,
165
169
  key: o.name
166
170
  }, {
@@ -171,7 +175,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
171
175
  disabled: !o.tooltip
172
176
  }, {
173
177
  default: s(() => [
174
- m("div", null, x(e(Ne)(o.table)), 1)
178
+ m("div", null, x(e(qe)(o.table)), 1)
175
179
  ]),
176
180
  _: 2
177
181
  }, 1032, ["content", "disabled"])
@@ -185,18 +189,18 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
185
189
  key: 1,
186
190
  ref_key: "childRef",
187
191
  ref: C,
188
- module: e(p),
189
- schema: e(r),
192
+ module: e(f),
193
+ schema: e(u),
190
194
  table: e(v).table,
191
195
  layout: e(v).layout,
192
196
  next: e(b),
193
197
  set: e(c),
194
198
  route: e(z),
195
- "validate-errors": e(P),
199
+ "validate-errors": e(N),
196
200
  onRowEdit: e(we),
197
- onChange: e(G),
198
- onLayoutChange: t[2] || (t[2] = (o) => e(H)(o, !1)),
199
- onSubmit: e(O)
201
+ onChange: e(I),
202
+ onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
203
+ onSubmit: e(F)
200
204
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
201
205
  ]),
202
206
  _: 1
@@ -204,49 +208,49 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
204
208
  ]),
205
209
  _: 1
206
210
  }),
207
- (d(), g(Pe(e(ze)), {
211
+ (d(), g(Ne(e(ze)), {
208
212
  ref_key: "updateRef",
209
- ref: M,
213
+ ref: K,
210
214
  class: "main-footer",
211
- schema: e(r),
212
- table: e(y),
215
+ schema: e(u),
216
+ table: e(_),
213
217
  layout: e(L),
214
218
  next: e(b),
215
219
  set: e(c),
216
220
  route: e(z),
217
- onCopy: e(ye),
218
- onEdit: e(_e),
221
+ onCopy: e(_e),
222
+ onEdit: e(ye),
219
223
  onSubmit: e(Re),
220
224
  onClose: e(Ce)
221
225
  }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
222
226
  ]),
223
- e(k) ? (d(), g(N, {
227
+ e(k) ? (d(), g(P, {
224
228
  key: 0,
225
229
  class: "side-form"
226
230
  }, {
227
231
  header: s(() => [
228
- m("div", He, [
229
- m("div", Ie, x(e(oe)("common.modify")) + " " + x(e(F)[e(S).show[0].name]), 1),
232
+ m("div", Je, [
233
+ m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(S).show[0].name]), 1),
230
234
  m("div", {
231
235
  class: "row-close",
232
236
  onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
233
- }, We)
237
+ }, Xe)
234
238
  ])
235
239
  ]),
236
240
  default: s(() => [
237
- h(U, null, {
241
+ h($, null, {
238
242
  default: s(() => [
239
- h($, {
243
+ h(U, {
240
244
  size: "small",
241
245
  "label-width": "80px"
242
246
  }, {
243
247
  default: s(() => [
244
- (d(!0), j(ee, null, le(e(S).show, (o) => (d(), g(W, {
245
- style: Ke(o.control.height ? `height: ${o.control.height}px;` : ""),
248
+ (d(!0), H(ee, null, le(e(S).show, (o) => (d(), g(X, {
249
+ style: Oe(o.control.height ? `height: ${o.control.height}px;` : ""),
246
250
  rules: o.rules
247
251
  }, {
248
252
  label: s(() => [
249
- te(x(e(qe)(e(S).name, o.name)) + " ", 1),
253
+ te(x(e(Ke)(e(S).name, o.name)) + " ", 1),
250
254
  o.control.tooltip ? (d(), g(V, {
251
255
  key: 0,
252
256
  trigger: "hover",
@@ -255,7 +259,7 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
255
259
  title: o.control.tooltip.title
256
260
  }, {
257
261
  reference: s(() => [
258
- Xe
262
+ Ye
259
263
  ]),
260
264
  default: s(() => [
261
265
  m("pre", null, x(o.control.tooltip.content), 1)
@@ -264,12 +268,12 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
264
268
  }, 1032, ["title"])) : B("", !0)
265
269
  ]),
266
270
  default: s(() => [
267
- h(Je, {
268
- schema: e(r),
271
+ h(je, {
272
+ schema: e(u),
269
273
  table: e(S),
270
274
  field: o,
271
275
  set: e(c),
272
- row: e(F)
276
+ row: e(j)
273
277
  }, null, 8, ["schema", "table", "field", "set", "row"])
274
278
  ]),
275
279
  _: 2
@@ -283,11 +287,11 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
283
287
  ]),
284
288
  _: 1
285
289
  })) : B("", !0),
286
- e(i).page ? (d(), g(_, {
290
+ e(i).page ? (d(), g(y, {
287
291
  key: 1,
288
292
  "destroy-on-close": "",
289
293
  "append-to-body": e(i).appendToBody,
290
- size: `${e(p).width ?? "60%"}`,
294
+ size: `${e(f).width ?? "60%"}`,
291
295
  modelValue: e(i).visible,
292
296
  "onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
293
297
  }, {
@@ -301,11 +305,11 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
301
305
  ])
302
306
  ]),
303
307
  default: s(() => [
304
- h(e(Ye), {
308
+ h(e(Fe), {
305
309
  ref_key: "pageRef",
306
- ref: K,
310
+ ref: O,
307
311
  url: e(i).url,
308
- onSucceed: e(Y),
312
+ onSucceed: e(G),
309
313
  onClose: e(he)
310
314
  }, null, 8, ["url", "onSucceed", "onClose"])
311
315
  ]),
@@ -316,5 +320,5 @@ const Ge = { class: "ha-main-form" }, He = { class: "row-header" }, Ie = { class
316
320
  }
317
321
  });
318
322
  export {
319
- rl as default
323
+ dl as default
320
324
  };