halo-pc 1.0.27 → 1.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/dist/{Article-CTqryR4L.js → Article-CTzPZjf8.js} +75 -70
  2. package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-jyfzfZHH.js} +23 -17
  3. package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-D8ytFwqa.js} +1 -1
  4. package/dist/Autocomplete-DoUE3T0L.js +53 -0
  5. package/dist/Autocomplete-FGRT-2ru.js +54 -0
  6. package/dist/{CSharp-Dt6H75E9.js → CSharp-qh_kEfGr.js} +1 -1
  7. package/dist/{Calender-DhKZyJri.js → Calender-DOuq9uAK.js} +1 -1
  8. package/dist/Callback-DuaBaO1q.js +26 -0
  9. package/dist/Cascader-DgKBpjUK.js +47 -0
  10. package/dist/Cascader-s8VT55_K.js +87 -0
  11. package/dist/{Checkbox-C-iEGB0k.js → Checkbox-D9NUw4jZ.js} +1 -1
  12. package/dist/Checkbox-REcdbTXR.js +76 -0
  13. package/dist/Code-CBVRms_j.js +4 -0
  14. package/dist/Code-DZ-bK9UT.js +60 -0
  15. package/dist/Code-DfnLveft.js +42 -0
  16. package/dist/{Code-JtSSnUWC.js → Code-loaJtKGd.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BVLhtr1Y.js +65 -0
  18. package/dist/Column-B96LbQFW.js +75 -0
  19. package/dist/Comment-bPWbEkgq.js +104 -0
  20. package/dist/Compare-D4O0qmYv.js +44 -0
  21. package/dist/{Compare-DZVrBYEh.js → Compare-dimRoHFX.js} +25 -19
  22. package/dist/Copy-CKLxfWd4.js +49 -0
  23. package/dist/Custom-Bwyy4_tA.js +57 -0
  24. package/dist/{DataExport-DSz5371s.js → DataExport-Bp50K0_6.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
  26. package/dist/{DataImport-CX7G70a7.js → DataImport-BWI4eCxA.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-DCS1SfNf.js +176 -0
  28. package/dist/Date-Cf64NT4R.js +43 -0
  29. package/dist/{Date-ytWe2gz8.js → Date-FBemqmex.js} +1 -1
  30. package/dist/DateRange-D5kvmDIo.js +63 -0
  31. package/dist/DateTime-CTGuyJ4w.js +44 -0
  32. package/dist/{DateTime-p6YgmtGd.js → DateTime-Cvnnthwx.js} +1 -1
  33. package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-Gb33uiRV.js} +17 -11
  34. package/dist/Daterange-CfAdeV7J.js +63 -0
  35. package/dist/{Decimal-BvyzJq1c.js → Decimal-B-fyPiuP.js} +1 -1
  36. package/dist/Delete-DhbWFnzt.js +62 -0
  37. package/dist/{Detail-DZJ0aUFr.js → Detail-DV-JRRLT.js} +22 -17
  38. package/dist/Dictionary-b_mbt-WU.js +59 -0
  39. package/dist/Email-C2Yl7bMF.js +54 -0
  40. package/dist/{File-BEBElTSS.js → File-D57qYYt1.js} +32 -27
  41. package/dist/{Image-DDK05SW7.js → Image-BKNUY356.js} +1 -1
  42. package/dist/{Index-CuEyzMd0.js → Index-BPfkpoVf.js} +25 -20
  43. package/dist/Index-BUCyMvJX.js +4 -0
  44. package/dist/Index-BtxNIZsx.js +4 -0
  45. package/dist/Index-C5WYmq9P.js +4 -0
  46. package/dist/{Index-DPwdcUO4.js → Index-CSzgmzRG.js} +1 -1
  47. package/dist/Index-ChWD2gJt.js +4 -0
  48. package/dist/{Index-BiF8qEWf.js → Index-P3uHTgX-.js} +1 -1
  49. package/dist/Index-PB-VnCO7.js +178 -0
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -15
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +17 -12
  52. package/dist/{Install-CxuoWpHC.js → Install-o0VJz9Rl.js} +27 -22
  53. package/dist/Int-BNwPsWfI.js +44 -0
  54. package/dist/Int-DN3vf18e.js +46 -0
  55. package/dist/List-DRAtVlgE.js +79 -0
  56. package/dist/Maintaince-CdVk7qiu.js +20 -0
  57. package/dist/{Markdown-x1hASyA-.js → Markdown-CFwOeXFg.js} +1 -1
  58. package/dist/Month-CrvLoEQy.js +43 -0
  59. package/dist/Month-CyB2owvQ.js +44 -0
  60. package/dist/{Month-Bb0tgF-k.js → Month-DsKmd425.js} +1 -1
  61. package/dist/{Normal-CYmy5sN7.js → Normal-B_SPQW9Z.js} +70 -66
  62. package/dist/Paging-CzCgExDM.js +99 -0
  63. package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-Bfnnsv6m.js} +30 -24
  64. package/dist/{PagingRow-CR2N1vgm.js → PagingRow-BXaakA5y.js} +26 -20
  65. package/dist/QueryApi-Cah37Kwx.js +20 -0
  66. package/dist/{Racebar-BsgDK6Zf.js → Racebar-6FTe1C4G.js} +42 -37
  67. package/dist/{Radio-B3Af-uZE.js → Radio-rym8cXJN.js} +1 -1
  68. package/dist/{Register-Cwr3iIZm.js → Register-v__-wpY2.js} +44 -40
  69. package/dist/RichText-BDP5KDin.js +47 -0
  70. package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-0mHMD0Xf.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
  72. package/dist/{SearchForm-BOw_kHs2.js → SearchForm-jSIiiv2r.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +40 -36
  74. package/dist/Select-Cpj86Kaw.js +86 -0
  75. package/dist/Select-DKjXN6Ag.js +117 -0
  76. package/dist/{Select-BdYG1KQE.js → Select-R0EsEK0_.js} +1 -1
  77. package/dist/{Single-DqCIZBIB.js → Single-fIhSt1dN.js} +103 -99
  78. package/dist/{Statistic-B9ZcUUk1.js → Statistic-DM3Fr6sO.js} +37 -33
  79. package/dist/{Stock-BnBNtuo7.js → Stock-BemUvyqK.js} +1 -1
  80. package/dist/{Stock-BiSr7zAF.js → Stock-DUrxld5G.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +31 -26
  82. package/dist/{Switch-BE4dQcja.js → Switch-QdLS7c3q.js} +1 -1
  83. package/dist/{Table-CaH_zu8W.js → Table-BcVHufy3.js} +77 -74
  84. package/dist/{Table-e0uLPRLG.js → Table-C4dGV7IQ.js} +78 -73
  85. package/dist/{Text-BDAob4mp.js → Text-BJNnrW9U.js} +21 -15
  86. package/dist/{Text-BAw88r5O.js → Text-BNAKwCCe.js} +19 -13
  87. package/dist/Text-D3DqixJp.js +4 -0
  88. package/dist/Text.vue_vue_type_style_index_0_lang-B253xD5Z.js +59 -0
  89. package/dist/TextLink-D-9pICMh.js +65 -0
  90. package/dist/{Textarea-CU5PjIoa.js → Textarea-Cr5zt_LK.js} +1 -1
  91. package/dist/Time-DQJPtNWo.js +43 -0
  92. package/dist/Timeline-Dy37Cou2.js +59 -0
  93. package/dist/Tree-3zBuSLBv.js +122 -0
  94. package/dist/{Tree-D-v632h1.js → Tree-4v2brZjr.js} +105 -101
  95. package/dist/TreeNode-CvS8mLCJ.js +42 -0
  96. package/dist/{Update-DRAFce7_.js → Update-Cp50LcVx.js} +20 -15
  97. package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-CFi_DjLv.js} +23 -17
  98. package/dist/Upload-Bqp-5cFa.js +72 -0
  99. package/dist/Upload-D-hvecbh.js +150 -0
  100. package/dist/UploadApi-CC5hZcM_.js +20 -0
  101. package/dist/Year-CYSncKVk.js +47 -0
  102. package/dist/{Year-CpcMBvQ7.js → Year-q0tWWwkv.js} +1 -1
  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-D-QTCahZ.js +9107 -0
  112. package/dist/main.js +140 -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-Q_6THgGl.js +0 -4
  124. package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
  125. package/dist/Column-BeQwafyN.js +0 -70
  126. package/dist/Comment-DIcCHP9F.js +0 -98
  127. package/dist/Compare-Dzqm7kPE.js +0 -38
  128. package/dist/Copy-iLieXx22.js +0 -43
  129. package/dist/Custom-BGtEDHlD.js +0 -51
  130. package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
  131. package/dist/Date-CNOCOcNz.js +0 -37
  132. package/dist/DateRange-CaIiObxN.js +0 -57
  133. package/dist/DateTime-CH6J1GoP.js +0 -38
  134. package/dist/Daterange-BUSKAGlK.js +0 -57
  135. package/dist/Delete-BeFC0gjD.js +0 -57
  136. package/dist/Dictionary-CsBiv-CI.js +0 -55
  137. package/dist/Email-Dwa6x3jW.js +0 -48
  138. package/dist/Index-Bpe7pY2Z.js +0 -4
  139. package/dist/Index-CUYQxzNd.js +0 -174
  140. package/dist/Index-DMnL8F7Y.js +0 -4
  141. package/dist/Index-DNG25ox2.js +0 -4
  142. package/dist/Index-DqUNI6MV.js +0 -4
  143. package/dist/Int-BFv18KXi.js +0 -38
  144. package/dist/Int-C0ijmdYS.js +0 -41
  145. package/dist/List-CfQzWq_5.js +0 -74
  146. package/dist/Maintaince-BzDEwQcU.js +0 -14
  147. package/dist/Month-Bp_Pfi_b.js +0 -37
  148. package/dist/Month-CKkjwzza.js +0 -38
  149. package/dist/Paging-DpoBp7x_.js +0 -95
  150. package/dist/QueryApi-VwISnk96.js +0 -13
  151. package/dist/RichText-CNahMrfb.js +0 -41
  152. package/dist/Select-BeNZqAP1.js +0 -112
  153. package/dist/Select-CqOE6uI8.js +0 -80
  154. package/dist/Text-5803XWI6.js +0 -4
  155. package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
  156. package/dist/TextLink-TYXcDAlo.js +0 -59
  157. package/dist/Time-Dd-Trib4.js +0 -37
  158. package/dist/Timeline-D6LCIkQp.js +0 -53
  159. package/dist/Tree-BKmFZrK3.js +0 -118
  160. package/dist/TreeNode-L_A5ZKy0.js +0 -37
  161. package/dist/Upload-DJRh4a7g.js +0 -68
  162. package/dist/Upload-Ozg_nOpI.js +0 -147
  163. package/dist/UploadApi-DVx69g-F.js +0 -13
  164. package/dist/Year-D7XGe2So.js +0 -41
  165. package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
  166. package/dist/main-DB_sVyZe.js +0 -3620
@@ -0,0 +1,178 @@
1
+ import { defineComponent as z, ref as u, onMounted as j, computed as D, watch as P, resolveComponent as c, openBlock as d, createElementBlock as U, createVNode as g, unref as o, withCtx as m, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as C, isRef as L, withKeys as T, normalizeClass as Q, withModifiers as W, createTextVNode as $, Fragment as Y, renderList as Z, nextTick as F } from "vue";
2
+ import { useRoute as G } from "vue-router";
3
+ import "./assets/underscore-B0BCaBxV.js";
4
+ import { i as J, B as w, Y as X, t as i, S as ee, W as K, U as te, r as S, y as oe } from "./main-D-QTCahZ.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/clone-BZn0cTAu.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const le = { class: "login-container" }, re = { class: "title-container" }, se = { class: "title" }, ne = /* @__PURE__ */ n("span", { class: "svg-container" }, [
10
+ /* @__PURE__ */ n("i", { class: "fa fa-user" })
11
+ ], -1), ae = /* @__PURE__ */ n("span", { class: "svg-container" }, [
12
+ /* @__PURE__ */ n("i", { class: "fa fa-key" })
13
+ ], -1), ie = { class: "btn-others" }, ue = ["href"], de = ["innerHTML"], we = /* @__PURE__ */ z({
14
+ __name: "Index",
15
+ setup(pe) {
16
+ let a = u({ id: "", secret: "" }), p = u("password"), s = u(!1), _ = u(!1), R = u(), V = u(), h = u(), B = G(), H = {
17
+ id: [{
18
+ required: !0,
19
+ trigger: "blur",
20
+ validator: (t, e, r) => {
21
+ e ? e.indexOf("@") > -1 ? ee.isEmail(e) ? r() : r(new Error("邮箱格式不正确")) : r() : r(new Error(i("common.username_or_email") + " " + i("common.should_not_null")));
22
+ }
23
+ }]
24
+ // secret: [{required: true, trigger: 'blur', validator: validateSecret}]
25
+ }, M = (t) => {
26
+ t.key && t.key.length == 1 && (t.shiftKey && t.key >= "a" && t.key <= "z" || !t.shiftKey && t.key >= "A" && t.key <= "Z" ? s.value = !0 : s.value = !1), t.key == "CapsLock" && s.value == !0 && (s.value = !1);
27
+ }, x = () => {
28
+ p.value == "password" ? p.value = "" : p.value = "password", F(() => {
29
+ h.value.focus();
30
+ });
31
+ }, E = async (t) => {
32
+ _.value = !0, R.value.validate(async (e) => {
33
+ if (!e)
34
+ return _.value = !1, !1;
35
+ (await K.sso.create(t)).login(a.value).then(({ data: f }) => {
36
+ te.getBackUrl() ? S.toBackUrl() : S.to("/");
37
+ }).finally(() => {
38
+ F(() => {
39
+ _.value = !1;
40
+ });
41
+ });
42
+ });
43
+ }, N = async (t) => {
44
+ let e = await K.sso.create(t), r = B.query.return_url, f = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${r}`;
45
+ return e.loginUrl(oe.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(f));
46
+ }, O = (t) => Object.keys(t).reduce((e, r) => (e[r] = t[r], e), {});
47
+ j(async () => {
48
+ J.setI18nTitle("common.login");
49
+ for (let t = 0; t < w.ssos.length; t++) {
50
+ let e = w.ssos[t];
51
+ e.loginUrl = await N(e.type);
52
+ }
53
+ y.value != null && (a.value.id == "" ? V.value.focus() : a.value.secret == "" && h.value.focus());
54
+ });
55
+ let y = D(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
56
+ return P(() => B, (t) => {
57
+ debugger;
58
+ const e = t.query;
59
+ e && O(e);
60
+ }), (t, e) => {
61
+ const r = c("el-input"), f = c("el-form-item"), b = c("el-tooltip"), q = c("el-button"), A = c("router-link"), I = c("el-form");
62
+ return d(), U("div", le, [
63
+ g(I, {
64
+ ref_key: "loginFormRef",
65
+ ref: R,
66
+ autocomplete: "on",
67
+ "label-position": "left",
68
+ model: o(a),
69
+ rules: o(H)
70
+ }, {
71
+ default: m(() => [
72
+ n("div", re, [
73
+ n("h3", se, k(o(X)("title")), 1)
74
+ ]),
75
+ o(y) ? (d(), v(f, {
76
+ key: 0,
77
+ prop: "id"
78
+ }, {
79
+ default: m(() => [
80
+ ne,
81
+ g(r, {
82
+ ref_key: "idRef",
83
+ ref: V,
84
+ placeholder: o(i)("common.username_or_email"),
85
+ name: "id",
86
+ type: "text",
87
+ tabindex: "1",
88
+ autocomplete: "on",
89
+ modelValue: o(a).id,
90
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => o(a).id = l)
91
+ }, null, 8, ["placeholder", "modelValue"])
92
+ ]),
93
+ _: 1
94
+ })) : C("", !0),
95
+ o(y) ? (d(), v(b, {
96
+ key: 1,
97
+ content: "Caps lock is On",
98
+ placement: "right",
99
+ manual: "",
100
+ modelValue: o(s),
101
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => L(s) ? s.value = l : s = l)
102
+ }, {
103
+ default: m(() => [
104
+ g(f, { prop: "secret" }, {
105
+ default: m(() => [
106
+ ae,
107
+ (d(), v(r, {
108
+ ref_key: "secretRef",
109
+ ref: h,
110
+ key: o(p),
111
+ type: o(p),
112
+ placeholder: o(i)("common.password"),
113
+ name: "secret",
114
+ tabindex: "2",
115
+ autocomplete: "on",
116
+ onKeyup: [
117
+ T(o(M), ["native"]),
118
+ e[2] || (e[2] = T((l) => o(E)("Bearer"), ["enter", "native"]))
119
+ ],
120
+ onBlur: e[1] || (e[1] = (l) => L(s) ? s.value = !1 : s = !1),
121
+ modelValue: o(a).secret,
122
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => o(a).secret = l)
123
+ }, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
124
+ n("span", {
125
+ class: "btn-pwd",
126
+ onClick: e[4] || (e[4] = //@ts-ignore
127
+ (...l) => o(x) && o(x)(...l))
128
+ }, [
129
+ n("i", {
130
+ class: Q(o(p) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
131
+ }, null, 2)
132
+ ])
133
+ ]),
134
+ _: 1
135
+ })
136
+ ]),
137
+ _: 1
138
+ }, 8, ["modelValue"])) : C("", !0),
139
+ o(y) ? (d(), v(q, {
140
+ key: 2,
141
+ type: "primary",
142
+ class: "btn-login",
143
+ loading: o(_),
144
+ onClick: e[6] || (e[6] = W((l) => o(E)("Bearer"), ["prevent"]))
145
+ }, {
146
+ default: m(() => [
147
+ $(k(o(i)("common.login")), 1)
148
+ ]),
149
+ _: 1
150
+ }, 8, ["loading"])) : C("", !0),
151
+ n("div", ie, [
152
+ (d(!0), U(Y, null, Z(o(w).ssos.filter((l) => l.type.toUpperCase() != "BEARER"), (l) => (d(), U("a", {
153
+ href: l.loginUrl
154
+ }, k(o(i)(l.text)), 9, ue))), 256)),
155
+ g(A, {
156
+ class: "btn-register",
157
+ to: "/register"
158
+ }, {
159
+ default: m(() => [
160
+ $(k(o(i)("common.register")), 1)
161
+ ]),
162
+ _: 1
163
+ })
164
+ ])
165
+ ]),
166
+ _: 1
167
+ }, 8, ["model", "rules"]),
168
+ n("div", {
169
+ class: "powered-by",
170
+ innerHTML: o(i)("sys.powered_by")
171
+ }, null, 8, de)
172
+ ]);
173
+ };
174
+ }
175
+ });
176
+ export {
177
+ we as default
178
+ };
@@ -1,10 +1,15 @@
1
1
  import { defineComponent as x, toRefs as E, ref as R, onMounted as k, openBlock as u, createElementBlock as z, Fragment as B, createVNode as L, unref as e, createBlock as S, resolveDynamicComponent as D, withCtx as N, createElementVNode as V, toDisplayString as $ } from "vue";
2
- import { e as F } from "./assets/halo-fe-B-NiIGas.js";
3
- import { d as I } from "./main-DB_sVyZe.js";
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 { q, t as F } from "./main-D-QTCahZ.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
4
9
  import "vue-router";
5
10
  import "element-plus";
6
11
  import "./assets/intro.js-DxWjEdp_.js";
7
- const M = { class: "not-support" }, K = /* @__PURE__ */ x({
12
+ const I = { class: "not-support" }, U = /* @__PURE__ */ x({
8
13
  __name: "Index",
9
14
  props: {
10
15
  route: {},
@@ -17,8 +22,8 @@ const M = { class: "not-support" }, K = /* @__PURE__ */ x({
17
22
  set: {}
18
23
  },
19
24
  emits: ["layout-change", "row-edit", "change", "submit"],
20
- setup(s, { expose: i, emit: m }) {
21
- let o = m, d = s, { module: p, schema: c, table: r, layout: a, next: y, set: h } = E(d), l = R(), f = (t) => {
25
+ setup(i, { expose: s, emit: m }) {
26
+ let o = m, p = i, { module: d, schema: c, table: l, layout: a, next: y, set: h } = E(p), r = R(), f = (t) => {
22
27
  o("layout-change", t);
23
28
  }, g = (t, n, w) => {
24
29
  o("row-edit", t, n, w);
@@ -28,23 +33,23 @@ const M = { class: "not-support" }, K = /* @__PURE__ */ x({
28
33
  o("submit", t);
29
34
  }, v = (t) => {
30
35
  }, C = (t) => {
31
- if (!l.value || !l.value.resize)
36
+ if (!r.value || !r.value.resize)
32
37
  return !1;
33
- l.value.resize(t);
38
+ r.value.resize(t);
34
39
  };
35
40
  return k(() => {
36
- }), i({ update: v, resize: C }), (t, n) => (u(), z(B, null, [
37
- L(e(I), {
41
+ }), s({ update: v, resize: C }), (t, n) => (u(), z(B, null, [
42
+ L(e(q), {
38
43
  layout: e(a),
39
- table: e(r),
44
+ table: e(l),
40
45
  onLayoutChange: e(f)
41
46
  }, null, 8, ["layout", "table", "onLayoutChange"]),
42
47
  (u(), S(D(`update-${e(a).type.toLowerCase()}`), {
43
48
  ref_key: "layoutRef",
44
- ref: l,
45
- module: e(p),
49
+ ref: r,
50
+ module: e(d),
46
51
  schema: e(c),
47
- table: e(r),
52
+ table: e(l),
48
53
  layout: e(a),
49
54
  next: e(y),
50
55
  set: e(h),
@@ -55,7 +60,7 @@ const M = { class: "not-support" }, K = /* @__PURE__ */ x({
55
60
  onSubmit: e(b)
56
61
  }, {
57
62
  default: N(() => [
58
- V("div", M, $(e(F)("single.not_supported_layout", e(a).type)), 1)
63
+ V("div", I, $(e(F)("single.not_supported_layout", e(a).type)), 1)
59
64
  ]),
60
65
  _: 1
61
66
  }, 40, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"]))
@@ -63,5 +68,5 @@ const M = { class: "not-support" }, K = /* @__PURE__ */ x({
63
68
  }
64
69
  });
65
70
  export {
66
- K as _
71
+ U as _
67
72
  };
@@ -1,10 +1,15 @@
1
1
  import { defineComponent as k, toRefs as D, ref as N, openBlock as s, createElementBlock as B, Fragment as L, createVNode as R, unref as e, createBlock as w, resolveDynamicComponent as E, withCtx as P, createElementVNode as V, toDisplayString as $ } from "vue";
2
- import "./assets/halo-fe-B-NiIGas.js";
3
- import { d as F } from "./main-DB_sVyZe.js";
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 { q } from "./main-D-QTCahZ.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
4
9
  import "vue-router";
5
10
  import "element-plus";
6
11
  import "./assets/intro.js-DxWjEdp_.js";
7
- const I = { class: "not-support" }, O = /* @__PURE__ */ k({
12
+ const F = { class: "not-support" }, X = /* @__PURE__ */ k({
8
13
  __name: "Index",
9
14
  props: {
10
15
  searchData: {},
@@ -16,8 +21,8 @@ const I = { class: "not-support" }, O = /* @__PURE__ */ k({
16
21
  set: {}
17
22
  },
18
23
  emits: ["navigate", "sort", "search", "page-change", "size-change", "succeed", "close", "layout-change"],
19
- setup(c, { expose: u, emit: i }) {
20
- let o = i, g = c, { module: h, schema: m, table: r, layout: l, next: p, set: d, searchData: y } = D(g), n = N(), f = (a, t) => {
24
+ setup(c, { expose: i, emit: u }) {
25
+ let o = u, g = c, { module: m, schema: p, table: r, layout: l, next: h, set: d, searchData: y } = D(g), n = N(), f = (a, t) => {
21
26
  o("navigate", a, t);
22
27
  }, C = (a, t) => {
23
28
  o("sort", a, t);
@@ -34,7 +39,7 @@ const I = { class: "not-support" }, O = /* @__PURE__ */ k({
34
39
  }, S = (a) => {
35
40
  o("layout-change", a);
36
41
  };
37
- return u({ resize: (a) => {
42
+ return i({ resize: (a) => {
38
43
  if (!n.value || !n.value.resize)
39
44
  return !1;
40
45
  n.value.resize(a);
@@ -43,7 +48,7 @@ const I = { class: "not-support" }, O = /* @__PURE__ */ k({
43
48
  return !1;
44
49
  n.value.keyboard(a, t);
45
50
  } }), (a, t) => (s(), B(L, null, [
46
- R(e(F), {
51
+ R(e(q), {
47
52
  layout: e(l),
48
53
  table: e(r),
49
54
  onLayoutChange: e(S)
@@ -51,11 +56,11 @@ const I = { class: "not-support" }, O = /* @__PURE__ */ k({
51
56
  (s(), w(E(`paging-${e(l).type.toLowerCase()}`), {
52
57
  ref_key: "pagingRef",
53
58
  ref: n,
54
- module: e(h),
55
- schema: e(m),
59
+ module: e(m),
60
+ schema: e(p),
56
61
  table: e(r),
57
62
  layout: e(l),
58
- next: e(p),
63
+ next: e(h),
59
64
  set: e(d),
60
65
  "search-data": e(y),
61
66
  onNavigate: e(f),
@@ -67,7 +72,7 @@ const I = { class: "not-support" }, O = /* @__PURE__ */ k({
67
72
  onClose: e(z)
68
73
  }, {
69
74
  default: P(() => [
70
- V("div", I, "未支持的分页布局方式:" + $(e(l).type), 1)
75
+ V("div", F, "未支持的分页布局方式:" + $(e(l).type), 1)
71
76
  ]),
72
77
  _: 1
73
78
  }, 40, ["module", "schema", "table", "layout", "next", "set", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onSucceed", "onClose"]))
@@ -75,5 +80,5 @@ const I = { class: "not-support" }, O = /* @__PURE__ */ k({
75
80
  }
76
81
  });
77
82
  export {
78
- O as _
83
+ X as _
79
84
  };
@@ -1,16 +1,21 @@
1
- import { defineComponent as k, ref as m, onMounted as C, resolveComponent as r, openBlock as d, createBlock as _, unref as l, withCtx as t, createTextVNode as c, createVNode as a, createElementBlock as v, Fragment as M, renderList as N, createElementVNode as T, toDisplayString as x, createCommentVNode as B } from "vue";
2
- import { T as U } from "./assets/halo-fe-B-NiIGas.js";
3
- import { h } from "./main-DB_sVyZe.js";
1
+ import { defineComponent as k, ref as s, onMounted as C, resolveComponent as r, openBlock as p, createBlock as f, unref as l, withCtx as t, createTextVNode as c, createVNode as a, createElementBlock as v, Fragment as M, renderList as N, createElementVNode as h, toDisplayString as x, createCommentVNode as B } 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 T, h as U } from "./main-D-QTCahZ.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
4
9
  import "element-plus";
5
10
  import "vue-router";
6
11
  import "./assets/intro.js-DxWjEdp_.js";
7
12
  const w = { class: "option-text" }, E = {
8
13
  key: 0,
9
14
  class: "option-suffix"
10
- }, j = /* @__PURE__ */ k({
15
+ }, H = /* @__PURE__ */ k({
11
16
  __name: "Install",
12
17
  setup(O) {
13
- let o = m({ name: null, type: "SqlServer", conn: null }), u = m(!1), i = m(), y = m([
18
+ let o = s({ name: null, type: "SqlServer", conn: null }), u = s(!1), d = s(), y = s([
14
19
  { value: "SqlServer", text: "SqlServer" },
15
20
  { value: "MySql", text: "MySql" },
16
21
  { value: "Mongo", text: "Mongo" },
@@ -18,19 +23,19 @@ const w = { class: "option-text" }, E = {
18
23
  { value: "Oracle", text: "Oracle" },
19
24
  { value: "Trino", text: "Trino" }
20
25
  ]), V = () => {
21
- u.value = !0, i.value.validate((f, n) => {
22
- if (!f)
26
+ u.value = !0, d.value.validate((_, n) => {
27
+ if (!_)
23
28
  return u.value = !1, !1;
24
- U.post("/app/install", o.value).then(({ data: p }) => {
29
+ U.post("/app/install", o.value).then(({ data: i }) => {
25
30
  }).finally(() => {
26
31
  u.value = !1;
27
32
  });
28
33
  });
29
34
  };
30
35
  return C(() => {
31
- }), (f, n) => {
32
- const p = r("el-input"), s = r("el-form-item"), S = r("el-option"), g = r("el-select"), q = r("el-button"), b = r("el-form");
33
- return d(), _(l(h), {
36
+ }), (_, n) => {
37
+ const i = r("el-input"), m = r("el-form-item"), S = r("el-option"), g = r("el-select"), q = r("el-button"), b = r("el-form");
38
+ return p(), f(l(T), {
34
39
  class: "ha-install",
35
40
  title: "数据库信息"
36
41
  }, {
@@ -40,18 +45,18 @@ const w = { class: "option-text" }, E = {
40
45
  default: t(() => [
41
46
  a(b, {
42
47
  ref_key: "formRef",
43
- ref: i,
48
+ ref: d,
44
49
  model: l(o),
45
50
  "label-width": "80px"
46
51
  }, {
47
52
  default: t(() => [
48
- a(s, {
53
+ a(m, {
49
54
  label: "名称",
50
55
  prop: "name",
51
56
  rules: [{ required: !0, message: "数据库名不能为空" }]
52
57
  }, {
53
58
  default: t(() => [
54
- a(p, {
59
+ a(i, {
55
60
  type: "text",
56
61
  modelValue: l(o).name,
57
62
  "onUpdate:modelValue": n[0] || (n[0] = (e) => l(o).name = e)
@@ -59,7 +64,7 @@ const w = { class: "option-text" }, E = {
59
64
  ]),
60
65
  _: 1
61
66
  }),
62
- a(s, {
67
+ a(m, {
63
68
  label: "类型",
64
69
  prop: "type",
65
70
  rules: [{ required: !0, message: "数据库类型不能为空" }]
@@ -70,14 +75,14 @@ const w = { class: "option-text" }, E = {
70
75
  "onUpdate:modelValue": n[1] || (n[1] = (e) => l(o).type = e)
71
76
  }, {
72
77
  default: t(() => [
73
- (d(!0), v(M, null, N(l(y), (e) => (d(), _(S, {
78
+ (p(!0), v(M, null, N(l(y), (e) => (p(), f(S, {
74
79
  value: e.value,
75
80
  label: e.text + (e.value ? "(" + e.value + ")" : ""),
76
81
  key: `${e.value}`
77
82
  }, {
78
83
  default: t(() => [
79
- T("span", w, x(e.text), 1),
80
- e.value ? (d(), v("span", E, "(" + x(e.value) + ")", 1)) : B("", !0)
84
+ h("span", w, x(e.text), 1),
85
+ e.value ? (p(), v("span", E, "(" + x(e.value) + ")", 1)) : B("", !0)
81
86
  ]),
82
87
  _: 2
83
88
  }, 1032, ["value", "label"]))), 128))
@@ -87,13 +92,13 @@ const w = { class: "option-text" }, E = {
87
92
  ]),
88
93
  _: 1
89
94
  }),
90
- a(s, {
95
+ a(m, {
91
96
  label: "连接串",
92
97
  prop: "conn",
93
98
  rules: [{ required: !0, message: "数据库连接串不能为空" }]
94
99
  }, {
95
100
  default: t(() => [
96
- a(p, {
101
+ a(i, {
97
102
  type: "textarea",
98
103
  modelValue: l(o).conn,
99
104
  "onUpdate:modelValue": n[2] || (n[2] = (e) => l(o).conn = e)
@@ -101,7 +106,7 @@ const w = { class: "option-text" }, E = {
101
106
  ]),
102
107
  _: 1
103
108
  }),
104
- a(s, null, {
109
+ a(m, null, {
105
110
  default: t(() => [
106
111
  a(q, {
107
112
  type: "primary",
@@ -126,5 +131,5 @@ const w = { class: "option-text" }, E = {
126
131
  }
127
132
  });
128
133
  export {
129
- j as default
134
+ H as default
130
135
  };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as f, toRefs as _, computed as h, resolveComponent as b, openBlock as V, createBlock as g, unref as e, withKeys as y, 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 { t as k, f as x } from "./main-D-QTCahZ.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const q = /* @__PURE__ */ f({
10
+ __name: "Int",
11
+ props: {
12
+ schema: {},
13
+ table: {},
14
+ field: {},
15
+ searchData: {},
16
+ modelValue: {}
17
+ },
18
+ emits: ["change", "submit", "update:modelValue"],
19
+ setup(a, { emit: p }) {
20
+ let l = p, r = a, { table: i, field: u, searchData: B, modelValue: s } = _(r), d = () => {
21
+ l("submit");
22
+ }, o = h({
23
+ get() {
24
+ return s.value;
25
+ },
26
+ set(t) {
27
+ isNaN(t) && (t = null), l("update:modelValue", t), l("change", t);
28
+ }
29
+ });
30
+ return (t, m) => {
31
+ const c = b("el-input-number");
32
+ return V(), g(c, {
33
+ placeholder: e(k)("common.please_input") + e(x)(e(i).name, e(u).name),
34
+ "controls-position": "right",
35
+ onKeyup: y(e(d), ["enter", "native"]),
36
+ modelValue: e(o),
37
+ "onUpdate:modelValue": m[0] || (m[0] = (n) => K(o) ? o.value = n : o = n)
38
+ }, null, 8, ["placeholder", "onKeyup", "modelValue"]);
39
+ };
40
+ }
41
+ });
42
+ export {
43
+ q as default
44
+ };
@@ -0,0 +1,46 @@
1
+ import { defineComponent as b, toRefs as f, computed as _, resolveComponent as V, openBlock as g, createBlock as h, unref as e, withKeys as v, isRef as y } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import { S as K, j as k } from "./main-D-QTCahZ.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";
8
+ const I = /* @__PURE__ */ b({
9
+ __name: "Int",
10
+ props: {
11
+ schema: {},
12
+ table: {},
13
+ field: {},
14
+ set: {},
15
+ row: {},
16
+ modelValue: {}
17
+ },
18
+ emits: ["submit", "change", "update:modelValue"],
19
+ setup(i, { emit: u }) {
20
+ let l = u, p = i, { table: s, field: r, set: w, modelValue: a } = f(p), d = () => {
21
+ l("submit");
22
+ }, t = _({
23
+ get() {
24
+ if (K.isNumber(a.value))
25
+ return a.value;
26
+ },
27
+ set(o) {
28
+ l("update:modelValue", o), l("change", o);
29
+ }
30
+ });
31
+ return (o, n) => {
32
+ const c = V("el-input-number");
33
+ return g(), h(c, {
34
+ "aria-label": e(k)(e(s).name, e(r).name),
35
+ "controls-position": "right",
36
+ disabled: e(r).control.readonly,
37
+ onKeyup: v(e(d), ["enter", "native"]),
38
+ modelValue: e(t),
39
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => y(t) ? t.value = m : t = m)
40
+ }, null, 8, ["aria-label", "disabled", "onKeyup", "modelValue"]);
41
+ };
42
+ }
43
+ });
44
+ export {
45
+ I as default
46
+ };
@@ -0,0 +1,79 @@
1
+ import { defineComponent as U, toRefs as B, ref as r, watch as E, openBlock as F, createBlock as H, resolveDynamicComponent as T, unref as t, withCtx as V, createElementVNode as $, toDisplayString as j } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import { U as n, b as A, i as G, s as v, c as I } from "./main-D-QTCahZ.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/clone-BZn0cTAu.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const J = { class: "not-support" }, te = /* @__PURE__ */ U({
10
+ __name: "List",
11
+ props: {
12
+ base: {},
13
+ route: {},
14
+ url: {},
15
+ win: {}
16
+ },
17
+ emits: ["load", "navigate"],
18
+ setup(_, { expose: S, emit: P }) {
19
+ let d = P, k = _, { url: h, base: p, route: u } = B(k), f = r(), i = r(), s = r(), y = r(), g = r(), o = r(), c = r(), q = (e) => {
20
+ let l = n.getPath(e), a = n.getPath(h.value);
21
+ return l != a;
22
+ }, C = (e) => {
23
+ let l = n.getPath(h.value), a = n.getPath(e);
24
+ return l != a;
25
+ }, x = (e) => {
26
+ var a;
27
+ let l = A(e.module.type, e.module.name);
28
+ G.setTitle(l, e.module.env), f.value = e.module, i.value = v.expandSchema(e.schema, e.set), s.value = (a = i.value) == null ? void 0 : a[0], y.value = e.next, g.value = v.expandSet(e.schema, e.set), c.value = v.getConditionForm(i.value, u.value.query.condition);
29
+ }, m = (e = null, l = null) => {
30
+ let a = e ?? u.value.query, N = n.getUrl(u.value.path, a);
31
+ d("load", N, !1, l);
32
+ }, R = (e) => {
33
+ m(null, e);
34
+ }, w = (e) => {
35
+ d("navigate", e);
36
+ }, D = async (e) => {
37
+ let l = u.value.query;
38
+ l.condition = I.encode(c.value), m(l, e);
39
+ }, b = () => {
40
+ m();
41
+ }, z = (e, l) => {
42
+ if (!o.value || !o.value.keyboard)
43
+ return !1;
44
+ o.value.keyboard(e, l);
45
+ }, L = (e) => {
46
+ if (!o.value || !o.value.resize)
47
+ return !1;
48
+ o.value.resize(e);
49
+ };
50
+ return (() => {
51
+ x(p.value.data);
52
+ })(), E(() => p.value, (e) => {
53
+ x(e.data);
54
+ }), S({ shouldLoad: q, shouldSpin: C, refresh: b, keyboard: z, resize: L }), (e, l) => (F(), H(T(`list-${t(s).layouts[0].type.toLowerCase()}`), {
55
+ ref_key: "listRef",
56
+ ref: o,
57
+ route: t(u),
58
+ module: t(f),
59
+ schema: t(i),
60
+ table: t(s),
61
+ layout: t(s).layouts[0],
62
+ next: t(y),
63
+ set: t(g),
64
+ "search-data": t(c),
65
+ onSucceed: t(R),
66
+ onSearch: t(D),
67
+ onNavigate: t(w),
68
+ onRefresh: t(b)
69
+ }, {
70
+ default: V(() => [
71
+ $("div", J, "未支持的列表布局方式:" + j(t(s).layouts[0].type), 1)
72
+ ]),
73
+ _: 1
74
+ }, 40, ["route", "module", "schema", "table", "layout", "next", "set", "search-data", "onSucceed", "onSearch", "onNavigate", "onRefresh"]));
75
+ }
76
+ });
77
+ export {
78
+ te as default
79
+ };
@@ -0,0 +1,20 @@
1
+ import { defineComponent as e, openBlock as o, createElementBlock as i, createElementVNode as t, toDisplayString as n, unref 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 { B as s } from "./main-D-QTCahZ.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const c = { class: "maintenance" }, a = /* @__PURE__ */ t("div", { class: "title" }, "系统维护中", -1), m = { class: "description" }, x = /* @__PURE__ */ e({
10
+ __name: "Maintaince",
11
+ setup(p) {
12
+ return (_, d) => (o(), i("div", c, [
13
+ a,
14
+ t("div", m, n(r(s)), 1)
15
+ ]));
16
+ }
17
+ });
18
+ export {
19
+ x as default
20
+ };
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let r = i(() => import("./Text-5803XWI6.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
13
+ let r = i(() => import("./Text-D3DqixJp.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
14
14
  return (x, o) => (w(), V(e(r), {
15
15
  schema: e(m),
16
16
  table: e(n),