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
@@ -1,112 +0,0 @@
1
- import { defineComponent as U, toRefs as A, ref as d, computed as D, resolveComponent as _, openBlock as c, createBlock as y, unref as n, withKeys as L, withModifiers as O, isRef as $, withCtx as V, createElementBlock as k, Fragment as q, renderList as z, createElementVNode as G, toDisplayString as w, createCommentVNode as H, nextTick as I } from "vue";
2
- import { aN as J, a as P, T as Q } from "./assets/halo-fe-B-NiIGas.js";
3
- import { e as W } from "./main-DB_sVyZe.js";
4
- const X = { class: "option-text" }, Y = {
5
- key: 0,
6
- class: "option-suffix"
7
- }, te = /* @__PURE__ */ U({
8
- __name: "Select",
9
- props: {
10
- schema: {},
11
- table: {},
12
- field: {},
13
- set: {},
14
- row: {},
15
- modelValue: { type: [String, Number, Boolean, Array] }
16
- },
17
- emits: ["submit", "change", "update:modelValue"],
18
- setup(C, { emit: E }) {
19
- let s = E, B = C, { schema: S, field: u, table: m, set: h, row: R, modelValue: p } = A(B), x = d(), g = d(), v = d(!1), f = d(u.value.control.data.data), N = (t) => {
20
- t == "" && (t = null);
21
- 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;
24
- e && (o = f.value.find((i) => i.value == e).text);
25
- debugger;
26
- R.value[a.name] = o;
27
- }
28
- b(m.value, u.value), s("change", t);
29
- }, K = () => {
30
- s("submit");
31
- }, T = () => {
32
- }, j = () => {
33
- v.value = !0;
34
- let t = { text: g.value, conditions: [] };
35
- u.value.control.data.conditions.forEach((e) => {
36
- 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
- t.conditions.push({ name: e.name, value: o });
38
- }), Q.post(u.value.control.data.route, t).then(({ data: e }) => {
39
- f.value = e;
40
- }).finally(() => {
41
- v.value = !1, I(() => {
42
- let e = f.value.find((a) => a.value == r.value);
43
- x.value.scrollToOption(e);
44
- });
45
- });
46
- }, F = (t) => {
47
- g.value = t, j();
48
- }, M = (t, e) => {
49
- let a = [];
50
- return S.value.forEach((o) => {
51
- o.fields.forEach((l) => {
52
- l.dictionary && l.dictionary.conditions.forEach((i) => {
53
- i.table == t.name && i.field == e.name && a.push({ table: o, field: l });
54
- });
55
- });
56
- }), a;
57
- }, b = (t, e) => {
58
- M(t, e).forEach((o) => {
59
- W.setRowsValue(null, h.value, o.table, o.field), b(o.table, o.field);
60
- });
61
- }, r = D({
62
- get() {
63
- return u.value.control.multiple ? p.value == null ? [] : p.value.toString().split(",") : p.value;
64
- },
65
- set(t) {
66
- s("update:modelValue", t), s("change", t);
67
- }
68
- });
69
- return (t, e) => {
70
- const a = _("el-option"), o = _("el-select");
71
- return c(), y(o, {
72
- ref_key: "selectRef",
73
- ref: x,
74
- filterable: "",
75
- remote: "",
76
- "reserve-keyword": "",
77
- "default-first-option": "",
78
- "remote-show-suffix": "",
79
- "loading-text": "加载中",
80
- clearable: "",
81
- placeholder: n(J)(n(m).name, n(u).name),
82
- multiple: n(u).control.multiple,
83
- "remote-method": n(F),
84
- loading: n(v),
85
- disabled: n(u).control.readonly,
86
- onKeyup: L(O(n(K), ["alt"]), ["enter", "native"]),
87
- onBlur: n(T),
88
- onChange: n(N),
89
- modelValue: n(r),
90
- "onUpdate:modelValue": e[0] || (e[0] = (l) => $(r) ? r.value = l : r = l)
91
- }, {
92
- default: V(() => [
93
- (c(!0), k(q, null, z(n(f), (l, i) => (c(), y(a, {
94
- label: `${l.text}${l.suffix ? "(" + l.suffix + ")" : ""}`,
95
- value: l.value,
96
- key: l.value
97
- }, {
98
- default: V(() => [
99
- G("span", X, w(l.text), 1),
100
- l.suffix ? (c(), k("span", Y, "(" + w(l.suffix) + ")", 1)) : H("", !0)
101
- ]),
102
- _: 2
103
- }, 1032, ["label", "value"]))), 128))
104
- ]),
105
- _: 1
106
- }, 8, ["placeholder", "multiple", "remote-method", "loading", "disabled", "onKeyup", "onBlur", "onChange", "modelValue"]);
107
- };
108
- }
109
- });
110
- export {
111
- te as default
112
- };
@@ -1,80 +0,0 @@
1
- import { defineComponent as K, toRefs as M, ref as d, computed as R, resolveComponent as c, openBlock as s, createBlock as f, unref as t, withKeys as S, withModifiers as N, isRef as F, withCtx as p, createElementBlock as h, Fragment as L, renderList as T, createElementVNode as U, toDisplayString as _, createCommentVNode as j } from "vue";
2
- import { e as q, aM as z, T as A } from "./assets/halo-fe-B-NiIGas.js";
3
- const G = { class: "option-text" }, H = {
4
- key: 0,
5
- class: "option-suffix"
6
- }, Q = /* @__PURE__ */ K({
7
- __name: "Select",
8
- props: {
9
- schema: {},
10
- table: {},
11
- field: {},
12
- searchData: {},
13
- modelValue: { type: [String, Boolean] }
14
- },
15
- emits: ["change", "submit", "update:modelValue"],
16
- setup(v, { emit: x }) {
17
- let r = x, b = v, { schema: I, table: g, field: a, searchData: y, modelValue: V } = M(b), k = d(!1), i = d(), m = d(a.value.control.data.data), C = () => {
18
- r("submit");
19
- }, w = () => {
20
- }, B = (l) => {
21
- i.value = l, D();
22
- }, D = () => {
23
- let l = { text: i.value, conditions: [] };
24
- a.value.control.data.conditions.forEach((o) => {
25
- let u = y.value[o.table][o.field];
26
- l.conditions.push({ name: o.name, value: u });
27
- }), A.post(a.value.control.data.route, l).then(({ data: o }) => {
28
- m.value = o;
29
- }).finally(() => {
30
- k.value = !1;
31
- });
32
- }, n = R({
33
- get() {
34
- return V.value;
35
- },
36
- set(l) {
37
- r("update:modelValue", l), r("change", l);
38
- }
39
- });
40
- return (l, o) => {
41
- const u = c("el-option"), E = c("el-select");
42
- return s(), f(E, {
43
- ref: "selectRef",
44
- filterable: "",
45
- remote: "",
46
- "reserve-keyword": "",
47
- clearable: "",
48
- "default-first-option": "",
49
- "remote-show-suffix": "",
50
- placeholder: t(q)("common.please_choose") + t(z)(t(g).name, t(a).name),
51
- multiple: t(a).control.multiple,
52
- "loading-text": "加载中",
53
- "remote-method": t(B),
54
- disabled: t(a).control.readonly,
55
- onKeyup: S(N(t(C), ["alt"]), ["enter", "native"]),
56
- onChange: t(w),
57
- modelValue: t(n),
58
- "onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
59
- }, {
60
- default: p(() => [
61
- (s(!0), h(L, null, T(t(m), (e, J) => (s(), f(u, {
62
- label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
63
- value: e.value,
64
- key: e.value
65
- }, {
66
- default: p(() => [
67
- U("span", G, _(e.text), 1),
68
- e.suffix ? (s(), h("span", H, "(" + _(e.suffix) + ")", 1)) : j("", !0)
69
- ]),
70
- _: 2
71
- }, 1032, ["label", "value"]))), 128))
72
- ]),
73
- _: 1
74
- }, 8, ["placeholder", "multiple", "remote-method", "disabled", "onKeyup", "onChange", "modelValue"]);
75
- };
76
- }
77
- });
78
- export {
79
- Q as default
80
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js";
2
- export {
3
- f as default
4
- };
@@ -1,53 +0,0 @@
1
- import { defineComponent as x, toRefs as v, ref as d, computed as V, resolveComponent as g, openBlock as s, createElementBlock as a, Fragment as y, unref as l, createBlock as B, isRef as p, createCommentVNode as C, nextTick as R, createElementVNode as T } from "vue";
2
- import { ag as H } from "./assets/halo-fe-B-NiIGas.js";
3
- const b = ["innerHTML"], w = /* @__PURE__ */ T("i", { class: "fa fa-edit" }, null, -1), E = [
4
- w
5
- ], S = /* @__PURE__ */ x({
6
- __name: "Text",
7
- props: {
8
- schema: {},
9
- table: {},
10
- field: {},
11
- set: {},
12
- row: {},
13
- modelValue: {}
14
- },
15
- setup(c) {
16
- let _ = c, { table: L, field: u, set: M, row: N, modelValue: k } = v(_), t = d(!1), i = d(), m = () => {
17
- t.value = !0, R(() => {
18
- i.value.focus();
19
- });
20
- }, o = V(() => {
21
- var r;
22
- let f = H.getHtml((r = k.value) == null ? void 0 : r.toString());
23
- return (u.value.control.prefix || "") + (f || "") + (u.value.control.suffix || "");
24
- });
25
- return (f, e) => {
26
- const r = g("el-input");
27
- return s(), a(y, null, [
28
- l(t) ? (s(), B(r, {
29
- key: 1,
30
- ref_key: "editRef",
31
- ref: i,
32
- type: "text",
33
- onBlur: e[0] || (e[0] = (n) => p(t) ? t.value = !1 : t = !1),
34
- modelValue: l(o),
35
- "onUpdate:modelValue": e[1] || (e[1] = (n) => p(o) ? o.value = n : o = n)
36
- }, null, 8, ["modelValue"])) : (s(), a("span", {
37
- key: 0,
38
- class: "text-text",
39
- innerHTML: l(o)
40
- }, null, 8, b)),
41
- l(t) ? C("", !0) : (s(), a("span", {
42
- key: 2,
43
- class: "edit-inline",
44
- onClick: e[2] || (e[2] = //@ts-ignore
45
- (...n) => l(m) && l(m)(...n))
46
- }, E))
47
- ], 64);
48
- };
49
- }
50
- });
51
- export {
52
- S as _
53
- };
@@ -1,59 +0,0 @@
1
- import { defineComponent as g, toRefs as E, ref as $, computed as s, resolveComponent as w, unref as o, openBlock as u, createElementBlock as d, renderSlot as i, createBlock as x, withCtx as y } from "vue";
2
- import { K as m, Y as B } from "./assets/halo-fe-B-NiIGas.js";
3
- const C = { key: 0 }, R = ["href", "target"], K = /* @__PURE__ */ g({
4
- __name: "TextLink",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {}
11
- },
12
- emits: ["submit", "change", "update:modelValue"],
13
- setup(h, { emit: L }) {
14
- let k = h, { table: O, field: t, set: T, row: c } = E(k), p = $(), a = s(() => {
15
- let e = t.value.link.href;
16
- return t.value.link.values.forEach((r) => {
17
- e = e.replace(`{${r}}`, c.value[r]);
18
- }), e;
19
- }), _ = s(() => m.httpOrHttps(a.value)), v = s(() => {
20
- let e = a.value;
21
- if (t.value.link.tables.length > 0) {
22
- let l = {};
23
- t.value.link.tables.forEach((n) => {
24
- l[n.name] = {}, n.search.forEach((f) => {
25
- l[n.name][f.name] = c.value[f.value];
26
- });
27
- });
28
- let b = B.encode(l);
29
- e += "&condition=" + b;
30
- }
31
- return m.getToRoute(e);
32
- });
33
- return (e, r) => {
34
- const l = w("router-link");
35
- return o(p) ? (u(), d("div", C, [
36
- i(e.$slots, "default")
37
- ])) : o(_) ? (u(), d("a", {
38
- key: 1,
39
- class: "text-link",
40
- href: o(a),
41
- target: o(t).link.target
42
- }, [
43
- i(e.$slots, "default")
44
- ], 8, R)) : (u(), x(l, {
45
- key: 2,
46
- class: "text-link",
47
- to: o(v)
48
- }, {
49
- default: y(() => [
50
- i(e.$slots, "default")
51
- ]),
52
- _: 3
53
- }, 8, ["to"]));
54
- };
55
- }
56
- });
57
- export {
58
- K as default
59
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as b, createBlock as h, unref as e, isRef as g } from "vue";
2
- import { aN as k } from "./assets/halo-fe-B-NiIGas.js";
3
- const C = /* @__PURE__ */ c({
4
- __name: "Time",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(d, { emit: r }) {
15
- let o = r, s = d, { table: u, field: a, set: x, modelValue: p } = f(s), l = _({
16
- get() {
17
- return p.value;
18
- },
19
- set(t) {
20
- o("update:modelValue", t), o("change", t);
21
- }
22
- });
23
- return (t, m) => {
24
- const i = V("el-time-select");
25
- return b(), h(i, {
26
- type: "time",
27
- placeholder: e(k)(e(u).name, e(a).name),
28
- disabled: e(a).control.readonly,
29
- modelValue: e(l),
30
- "onUpdate:modelValue": m[0] || (m[0] = (n) => g(l) ? l.value = n : l = n)
31
- }, null, 8, ["placeholder", "disabled", "modelValue"]);
32
- };
33
- }
34
- });
35
- export {
36
- C as default
37
- };
@@ -1,53 +0,0 @@
1
- import { defineComponent as h, toRefs as y, resolveComponent as o, openBlock as t, createBlock as n, unref as e, withCtx as m, createElementVNode as r, createElementBlock as c, Fragment as k, renderList as x, createCommentVNode as g } from "vue";
2
- import { a3 as v, ag as C } from "./assets/halo-fe-B-NiIGas.js";
3
- const B = { class: "timeline-layout" }, H = ["innerHTML"], L = {
4
- key: 0,
5
- class: "timeline-detail"
6
- }, D = /* @__PURE__ */ h({
7
- __name: "Timeline",
8
- props: {
9
- searchData: {},
10
- route: {},
11
- module: {},
12
- schema: {},
13
- table: {},
14
- layout: {},
15
- next: {},
16
- set: {}
17
- },
18
- setup(_) {
19
- let u = _, { module: T, schema: b, table: l, layout: a, next: E, set: i } = y(u);
20
- return (M, N) => {
21
- const p = o("el-timeline-item"), d = o("el-timeline"), f = o("el-empty");
22
- return t(), n(e(v), { class: "timeline" }, {
23
- default: m(() => [
24
- r("div", B, [
25
- e(i)[e(l).name].length > 0 ? (t(), n(d, {
26
- key: 0,
27
- reverse: !1
28
- }, {
29
- default: m(() => [
30
- (t(!0), c(k, null, x(e(i)[e(l).name], (s) => (t(), n(p, {
31
- timestamp: s[e(a).time]
32
- }, {
33
- default: m(() => [
34
- r("div", {
35
- innerHTML: e(C).getHtml(s[e(a).text])
36
- }, null, 8, H)
37
- ]),
38
- _: 2
39
- }, 1032, ["timestamp"]))), 256))
40
- ]),
41
- _: 1
42
- })) : (t(), n(f, { key: 1 }))
43
- ]),
44
- e(l).length > 0 ? (t(), c("div", L, " 时间线节点详情 ")) : g("", !0)
45
- ]),
46
- _: 1
47
- });
48
- };
49
- }
50
- });
51
- export {
52
- D as default
53
- };
@@ -1,118 +0,0 @@
1
- import { defineComponent as Q, toRefs as U, ref as m, onMounted as X, watch as Y, nextTick as K, resolveComponent as N, openBlock as k, createElementBlock as w, unref as d, Fragment as L, renderList as B, createBlock as M, withCtx as b, createVNode as Z, createElementVNode as ee, toDisplayString as T, createCommentVNode as F } from "vue";
2
- import { R as le, u as _, O } from "./assets/halo-fe-B-NiIGas.js";
3
- import { s as P } from "./main-DB_sVyZe.js";
4
- const te = { class: "option-text" }, ae = {
5
- key: 0,
6
- class: "option-suffix"
7
- }, ue = /* @__PURE__ */ Q({
8
- __name: "Tree",
9
- props: {
10
- route: {},
11
- validateErrors: {},
12
- module: {},
13
- schema: {},
14
- table: {},
15
- layout: {},
16
- next: {},
17
- set: {}
18
- },
19
- setup(S, { expose: $ }) {
20
- let z = S, { module: D, schema: ne, table: s, layout: l, set: f } = U(z), E = m(), V = m([]), x = m(), y = m(0), g = m([]), R = m(!0), W = (e, n, o) => {
21
- let a = f.value[s.value.name].find((r) => r.PermissionId == e[l.value.id]);
22
- a && (a[l.value.expand] = !0);
23
- }, j = (e, n, o) => {
24
- let a = f.value[s.value.name].find((r) => r.PermissionId == e[l.value.id]);
25
- a && (a[l.value.expand] = !1);
26
- }, q = (e, n, o) => {
27
- let a = n.checkedKeys, r = e[l.value.id], i = _.contains(a, r), c = [], u = [], h = O.getChildren(e, "Children").map((t) => t[l.value.id]), p = f.value[s.value.name].map((t) => t[l.value.checked]), v = _.intersect(h, p);
28
- if (i) {
29
- c.push(e[l.value.id]);
30
- let t = _.except(h, v);
31
- t.length && (a.push(...t), c.push(...t));
32
- } else
33
- u.push(r), v.length == h.length && (u.push(...h), _.remove(a, h));
34
- c.length && A(c), u.length && G(u);
35
- }, A = (e) => {
36
- for (let n = 0; n < e.length; n++) {
37
- let o = P.getDefaultRow(s.value);
38
- o[l.value.checked] = e[n], f.value[s.value.name].push(o);
39
- }
40
- }, G = (e) => {
41
- let n = f.value[s.value.name];
42
- for (let o = 0; o < e.length; o++) {
43
- let a = n.find((r) => r[l.value.checked] == e[o]);
44
- _.remove(n, a);
45
- }
46
- }, H = (e) => {
47
- x.value = e.contentRect.width, y.value = Math.ceil(x.value / 300), I(s.value, l.value, f.value);
48
- }, I = (e, n, o) => {
49
- g.value = P.getLines(n.data, y.value, (a) => [a], () => 1), K(() => {
50
- let a = o[e.name].map((i) => i[n.checked]), r = 0;
51
- for (let i = 0; i < g.value.length; i++) {
52
- let c = g.value[i];
53
- for (let u = 0; u < c.length; u++) {
54
- let C = V.value[r], h = c[u].data, p = O.getFlat(h, "Children").map((t) => t[n.id]), v = _.intersect(p, a);
55
- if (!(v.length == 1 && p.length > 1)) for (let t = 0; t < v.length; t++) {
56
- let J = v[t];
57
- C.setChecked(J, !0, !1);
58
- }
59
- r++;
60
- }
61
- }
62
- });
63
- };
64
- return X(() => {
65
- x.value = le.getWidth(E.value), y.value = Math.ceil(x.value / 300), I(s.value, l.value, f.value);
66
- }), Y(() => s.value, (e, n) => {
67
- R.value = !1, K(() => {
68
- R.value = !0, I(e, l.value, f.value);
69
- });
70
- }), $({ resize: H }), (e, n) => {
71
- const o = N("el-tree"), a = N("el-col"), r = N("el-row");
72
- return k(), w("div", {
73
- ref_key: "layoutRef",
74
- ref: E,
75
- class: "ha-tree-layout"
76
- }, [
77
- d(R) ? (k(!0), w(L, { key: 0 }, B(d(g), (i, c) => (k(), M(r, null, {
78
- default: b(() => [
79
- (k(!0), w(L, null, B(i, ({ data: u, span: C, index: h }, p) => (k(), M(a, {
80
- span: C,
81
- key: `${c}.${p}`
82
- }, {
83
- default: b(() => [
84
- Z(o, {
85
- ref_for: !0,
86
- ref_key: "treeRefs",
87
- ref: V,
88
- "show-checkbox": "",
89
- "highlight-current": "",
90
- "default-expand-all": !1,
91
- "expand-on-click-node": !1,
92
- "node-key": d(l).id,
93
- data: u,
94
- props: { children: "Children", label: d(l).text },
95
- disabled: d(D).type == "Detail",
96
- onNodeExpand: d(W),
97
- onNodeCollapse: d(j),
98
- onCheck: (v, t) => d(q)(v, t, h)
99
- }, {
100
- default: b(({ node: v, data: t }) => [
101
- ee("div", te, T(t[d(l).text]), 1),
102
- d(l).suffix ? (k(), w("div", ae, T(t[d(l).suffix]), 1)) : F("", !0)
103
- ]),
104
- _: 2
105
- }, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
106
- ]),
107
- _: 2
108
- }, 1032, ["span"]))), 128))
109
- ]),
110
- _: 2
111
- }, 1024))), 256)) : F("", !0)
112
- ], 512);
113
- };
114
- }
115
- });
116
- export {
117
- ue as default
118
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as x, toRefs as h, computed as C, openBlock as s, createElementBlock as i, unref as e, createElementVNode as N, toDisplayString as a, createTextVNode as b, createCommentVNode as d } from "vue";
2
- import { e as y, W as g } from "./assets/halo-fe-B-NiIGas.js";
3
- const k = ["title"], v = { class: "number" }, V = {
4
- key: 0,
5
- class: "option-suffix"
6
- }, B = {
7
- key: 1,
8
- class: "count"
9
- }, O = /* @__PURE__ */ x({
10
- __name: "TreeNode",
11
- props: {
12
- table: {},
13
- layout: {},
14
- row: {},
15
- node: {}
16
- },
17
- setup(u) {
18
- let c = u, { table: p, layout: n, row: t, node: f } = h(c), m = (r, o) => {
19
- let l = (r.parent.data.Children ? r.parent.data.Children.indexOf(o) : r.parent.data.indexOf(o)) + 1;
20
- return g.padLeft(l, 2, "0");
21
- }, _ = C(() => p.value.fields.find((l) => l.name == n.value.text).control.i18N);
22
- return (r, o) => {
23
- var l;
24
- return s(), i("div", {
25
- title: e(t)[e(n).title]
26
- }, [
27
- N("span", v, a(e(m)(e(f), e(t))), 1),
28
- b(" " + a((l = e(_)) != null && l.value ? e(y)(e(t)[e(n).text]) : e(t)[e(n).text]) + " ", 1),
29
- e(n).suffix ? (s(), i("span", V, a(e(t)[e(n).suffix]), 1)) : d("", !0),
30
- e(t).Children && e(t).Children.length > 0 ? (s(), i("span", B, "(" + a(e(t).Children.length) + ")", 1)) : d("", !0)
31
- ], 8, k);
32
- };
33
- }
34
- });
35
- export {
36
- O as default
37
- };
@@ -1,68 +0,0 @@
1
- import { defineComponent as U, toRefs as V, ref as r, onMounted as k, computed as w, resolveComponent as x, openBlock as d, createElementBlock as n, Fragment as C, renderList as E, unref as s, createVNode as F, isRef as I, withCtx as $, createElementVNode as y } from "vue";
2
- import { d as c, K as B, D, b as N } from "./assets/halo-fe-B-NiIGas.js";
3
- import { u as R } from "./main-DB_sVyZe.js";
4
- import "./QueryApi-VwISnk96.js";
5
- import { U as j } from "./UploadApi-DVx69g-F.js";
6
- const A = { class: "text-upload" }, H = ["src", "onClick", "alt"], K = ["src"], Q = /* @__PURE__ */ U({
7
- __name: "Upload",
8
- props: {
9
- schema: {},
10
- table: {},
11
- field: {},
12
- set: {},
13
- row: {},
14
- modelValue: {}
15
- },
16
- setup(f) {
17
- let v = f, { table: L, field: M, set: O, row: S, modelValue: g } = V(v), i = r(), t = r(!1), p = r([]), m = r(), _ = (e) => {
18
- t.value = !0, m.value = e.url;
19
- }, h = () => {
20
- if (o.value)
21
- if (c.upload.method == "box")
22
- j.getUploadToken().then((e) => {
23
- o.value.split(",").forEach((a) => {
24
- let l = `${c.upload.address}/api/objects/download?slug=${a}&token=${e}`;
25
- p.value.push({ name: a, url: l });
26
- });
27
- });
28
- else {
29
- let e = B.httpOrHttps(o.value) ? o.value : D.api.url + o.value;
30
- N.isImage(e) ? i.value = e : i.value = R.getFileIcon(e);
31
- }
32
- };
33
- k(() => {
34
- h();
35
- });
36
- let o = w(() => g.value);
37
- return (e, u) => {
38
- const a = x("el-dialog");
39
- return d(), n("div", A, [
40
- (d(!0), n(C, null, E(s(p), (l, b) => (d(), n("img", {
41
- class: "detail-image",
42
- src: l.url,
43
- onClick: (T) => s(_)(l),
44
- alt: l.name,
45
- key: b
46
- }, null, 8, H))), 128)),
47
- F(a, {
48
- draggable: "",
49
- "append-to-body": "",
50
- top: "5vh",
51
- modelValue: s(t),
52
- "onUpdate:modelValue": u[0] || (u[0] = (l) => I(t) ? t.value = l : t = l)
53
- }, {
54
- default: $(() => [
55
- y("img", {
56
- width: "100%",
57
- src: s(m)
58
- }, null, 8, K)
59
- ]),
60
- _: 1
61
- }, 8, ["modelValue"])
62
- ]);
63
- };
64
- }
65
- });
66
- export {
67
- Q as default
68
- };