halo-pc 1.0.26 → 1.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. package/dist/{Article-BNacU3kR.js → Article-CTzPZjf8.js} +71 -65
  2. package/dist/{ArticleFooter-Ya07aLYn.js → ArticleFooter-jyfzfZHH.js} +23 -17
  3. package/dist/{Autocomplete-CyXE-g54.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-DQLgcbTQ.js → CSharp-qh_kEfGr.js} +1 -1
  7. package/dist/{Calender-YujFxcgS.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-Dkqh7eR4.js → Checkbox-D9NUw4jZ.js} +1 -1
  12. package/dist/Checkbox-REcdbTXR.js +76 -0
  13. package/dist/{Code-DXkJ6x5_.js → Code-CBVRms_j.js} +1 -1
  14. package/dist/Code-DZ-bK9UT.js +60 -0
  15. package/dist/Code-DfnLveft.js +42 -0
  16. package/dist/{Code-Dszcah6J.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-DKLN4wT4.js → Compare-dimRoHFX.js} +24 -18
  22. package/dist/Copy-CKLxfWd4.js +49 -0
  23. package/dist/Custom-Bwyy4_tA.js +57 -0
  24. package/dist/{DataExport-CFjE1loi.js → DataExport-Bp50K0_6.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-yTe6V3Dn.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
  26. package/dist/{DataImport-BQ0rieu8.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-C5WCVXDU.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-BrsWm90_.js → DateTime-Cvnnthwx.js} +1 -1
  33. package/dist/{DateTimeRange-DjIp1SAX.js → DateTimeRange-Gb33uiRV.js} +17 -11
  34. package/dist/Daterange-CfAdeV7J.js +63 -0
  35. package/dist/{Decimal-_6FobwTd.js → Decimal-B-fyPiuP.js} +1 -1
  36. package/dist/Delete-DhbWFnzt.js +62 -0
  37. package/dist/{Detail-BMbiENm0.js → Detail-DV-JRRLT.js} +20 -14
  38. package/dist/Dictionary-b_mbt-WU.js +59 -0
  39. package/dist/Email-C2Yl7bMF.js +54 -0
  40. package/dist/{File-B9Q2QOa-.js → File-D57qYYt1.js} +28 -22
  41. package/dist/{Image-CzOq81lm.js → Image-BKNUY356.js} +1 -1
  42. package/dist/{Index-DJz-eVVd.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-DvfJmbPU.js → Index-CSzgmzRG.js} +1 -1
  47. package/dist/Index-ChWD2gJt.js +4 -0
  48. package/dist/{Index-BmVFh23J.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-ExArYWR3.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -14
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-BpU5b5wU.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +22 -16
  52. package/dist/{Install-CXj-qqao.js → Install-o0VJz9Rl.js} +27 -21
  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-CdP4Uf3M.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-BUvqsSfA.js → Month-DsKmd425.js} +1 -1
  61. package/dist/{Normal-DUlWYlcs.js → Normal-B_SPQW9Z.js} +99 -94
  62. package/dist/Paging-CzCgExDM.js +99 -0
  63. package/dist/{PagingHeader-aZb0fGRv.js → PagingHeader-Bfnnsv6m.js} +30 -24
  64. package/dist/{PagingRow-_H7tCWDM.js → PagingRow-BXaakA5y.js} +26 -20
  65. package/dist/QueryApi-Cah37Kwx.js +20 -0
  66. package/dist/{Racebar-DESsxoi9.js → Racebar-6FTe1C4G.js} +42 -37
  67. package/dist/{Radio-ChF3_bX0.js → Radio-rym8cXJN.js} +1 -1
  68. package/dist/{Register-Du5lRabU.js → Register-v__-wpY2.js} +75 -70
  69. package/dist/RichText-BDP5KDin.js +47 -0
  70. package/dist/{SearchFooter-HjKH1gD5.js → SearchFooter-0mHMD0Xf.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CeQ2BcOI.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
  72. package/dist/{SearchForm-C-o0Orkp.js → SearchForm-jSIiiv2r.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BijR_gZY.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +45 -40
  74. package/dist/{Select-CYaWHcWs.js → Select-Cpj86Kaw.js} +26 -20
  75. package/dist/{Select-DgKzH1gD.js → Select-DKjXN6Ag.js} +34 -28
  76. package/dist/{Select-DrybbaWb.js → Select-R0EsEK0_.js} +1 -1
  77. package/dist/{Single-B-253IzX.js → Single-fIhSt1dN.js} +111 -106
  78. package/dist/{Statistic-B7Tib1eh.js → Statistic-DM3Fr6sO.js} +29 -24
  79. package/dist/{Stock-DuyZiPxv.js → Stock-BemUvyqK.js} +1 -1
  80. package/dist/{Stock-BBcnzi6G.js → Stock-DUrxld5G.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-B6E5USSu.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +29 -24
  82. package/dist/{Switch-DP-_EUOK.js → Switch-QdLS7c3q.js} +1 -1
  83. package/dist/{Table-hHG9kq1I.js → Table-BcVHufy3.js} +85 -81
  84. package/dist/{Table-2jZ0ISz7.js → Table-C4dGV7IQ.js} +74 -68
  85. package/dist/{Text-lak-4VnA.js → Text-BJNnrW9U.js} +21 -15
  86. package/dist/{Text-RsldE1sr.js → Text-BNAKwCCe.js} +18 -12
  87. package/dist/{Text-C70dFJLS.js → Text-D3DqixJp.js} +1 -1
  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-QGa_EKSl.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-B2fZE9Qf.js → Tree-4v2brZjr.js} +112 -107
  95. package/dist/TreeNode-CvS8mLCJ.js +42 -0
  96. package/dist/{Update-BqQGp_9h.js → Update-Cp50LcVx.js} +18 -12
  97. package/dist/{UpdateChild-DejVqKrE.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-CrN8Fl5U.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 +36 -35
  113. package/dist/style.css +1 -1
  114. package/package.json +2 -2
  115. package/dist/Autocomplete-Bud53PPx.js +0 -48
  116. package/dist/Autocomplete-CfE5ZKi2.js +0 -49
  117. package/dist/Callback-BaFg5U2u.js +0 -20
  118. package/dist/Cascader-C1kyNib7.js +0 -41
  119. package/dist/Cascader-D5PO9zK9.js +0 -81
  120. package/dist/Checkbox-CUtyT8l7.js +0 -70
  121. package/dist/Code-C160-nQS.js +0 -54
  122. package/dist/Code-pe9JMCAj.js +0 -36
  123. package/dist/Code.vue_vue_type_style_index_0_lang-B1dEEN-z.js +0 -59
  124. package/dist/Column-C3j98RGT.js +0 -69
  125. package/dist/Comment-DIrY0RiI.js +0 -98
  126. package/dist/Compare-5j7MYou6.js +0 -38
  127. package/dist/Copy-Go_1uhB5.js +0 -43
  128. package/dist/Custom-C00oYEFm.js +0 -51
  129. package/dist/DataImport.vue_vue_type_script_setup_true_lang-LYppKTfv.js +0 -172
  130. package/dist/Date-uHiOL-PD.js +0 -37
  131. package/dist/DateRange-B-HjKQpJ.js +0 -57
  132. package/dist/DateTime-D4Ck5hBj.js +0 -38
  133. package/dist/Daterange-DiZUFL_F.js +0 -57
  134. package/dist/Delete-C46eSfMC.js +0 -56
  135. package/dist/Dictionary-Dga6kbof.js +0 -55
  136. package/dist/Email-PVk9gqfn.js +0 -48
  137. package/dist/Index-CfDvQD94.js +0 -4
  138. package/dist/Index-Cq20wsZC.js +0 -173
  139. package/dist/Index-DGiRkT-p.js +0 -4
  140. package/dist/Index-DyK_nYp9.js +0 -4
  141. package/dist/Index-z5MnS_Wq.js +0 -4
  142. package/dist/Int-BG6MD24t.js +0 -38
  143. package/dist/Int-Dc7h_7Ga.js +0 -41
  144. package/dist/List-EDwPH8aL.js +0 -73
  145. package/dist/Maintaince-BqvMHxH0.js +0 -14
  146. package/dist/Month-8mDUGsOp.js +0 -37
  147. package/dist/Month-ClGd6IhI.js +0 -38
  148. package/dist/Paging-D_ticCtb.js +0 -94
  149. package/dist/QueryApi-S0e3c6l0.js +0 -13
  150. package/dist/RichText-BJVvArGS.js +0 -41
  151. package/dist/Text.vue_vue_type_style_index_0_lang-BP6k7KJG.js +0 -53
  152. package/dist/TextLink-C-NU-oVe.js +0 -59
  153. package/dist/Time-BgWPjGd1.js +0 -37
  154. package/dist/Timeline-CBWcOVdY.js +0 -53
  155. package/dist/Tree--dJKRJvG.js +0 -117
  156. package/dist/TreeNode-CxTzNQo9.js +0 -37
  157. package/dist/Upload-9z5VIixQ.js +0 -146
  158. package/dist/Upload-tlSQp2Qu.js +0 -67
  159. package/dist/UploadApi-B2dxOS0T.js +0 -13
  160. package/dist/Year-DNDyqe5X.js +0 -41
  161. package/dist/main-D3_7YhaK.js +0 -15700
@@ -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,9 +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 { h as F, e as I } from "./main-D3_7YhaK.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";
3
9
  import "vue-router";
4
10
  import "element-plus";
5
11
  import "./assets/intro.js-DxWjEdp_.js";
6
- const M = { class: "not-support" }, J = /* @__PURE__ */ x({
12
+ const I = { class: "not-support" }, U = /* @__PURE__ */ x({
7
13
  __name: "Index",
8
14
  props: {
9
15
  route: {},
@@ -16,8 +22,8 @@ const M = { class: "not-support" }, J = /* @__PURE__ */ x({
16
22
  set: {}
17
23
  },
18
24
  emits: ["layout-change", "row-edit", "change", "submit"],
19
- setup(s, { expose: i, emit: m }) {
20
- 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) => {
21
27
  o("layout-change", t);
22
28
  }, g = (t, n, w) => {
23
29
  o("row-edit", t, n, w);
@@ -27,23 +33,23 @@ const M = { class: "not-support" }, J = /* @__PURE__ */ x({
27
33
  o("submit", t);
28
34
  }, v = (t) => {
29
35
  }, C = (t) => {
30
- if (!l.value || !l.value.resize)
36
+ if (!r.value || !r.value.resize)
31
37
  return !1;
32
- l.value.resize(t);
38
+ r.value.resize(t);
33
39
  };
34
40
  return k(() => {
35
- }), i({ update: v, resize: C }), (t, n) => (u(), z(B, null, [
36
- L(e(F), {
41
+ }), s({ update: v, resize: C }), (t, n) => (u(), z(B, null, [
42
+ L(e(q), {
37
43
  layout: e(a),
38
- table: e(r),
44
+ table: e(l),
39
45
  onLayoutChange: e(f)
40
46
  }, null, 8, ["layout", "table", "onLayoutChange"]),
41
47
  (u(), S(D(`update-${e(a).type.toLowerCase()}`), {
42
48
  ref_key: "layoutRef",
43
- ref: l,
44
- module: e(p),
49
+ ref: r,
50
+ module: e(d),
45
51
  schema: e(c),
46
- table: e(r),
52
+ table: e(l),
47
53
  layout: e(a),
48
54
  next: e(y),
49
55
  set: e(h),
@@ -54,7 +60,7 @@ const M = { class: "not-support" }, J = /* @__PURE__ */ x({
54
60
  onSubmit: e(b)
55
61
  }, {
56
62
  default: N(() => [
57
- V("div", M, $(e(I)("single.not_supported_layout", e(a).type)), 1)
63
+ V("div", I, $(e(F)("single.not_supported_layout", e(a).type)), 1)
58
64
  ]),
59
65
  _: 1
60
66
  }, 40, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"]))
@@ -62,5 +68,5 @@ const M = { class: "not-support" }, J = /* @__PURE__ */ x({
62
68
  }
63
69
  });
64
70
  export {
65
- J as _
71
+ U as _
66
72
  };
@@ -1,9 +1,15 @@
1
- import { defineComponent as k, toRefs as D, ref as N, openBlock as r, 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 { h as F } from "./main-D3_7YhaK.js";
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/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";
3
9
  import "vue-router";
4
10
  import "element-plus";
5
11
  import "./assets/intro.js-DxWjEdp_.js";
6
- const I = { class: "not-support" }, M = /* @__PURE__ */ k({
12
+ const F = { class: "not-support" }, X = /* @__PURE__ */ k({
7
13
  __name: "Index",
8
14
  props: {
9
15
  searchData: {},
@@ -15,8 +21,8 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
15
21
  set: {}
16
22
  },
17
23
  emits: ["navigate", "sort", "search", "page-change", "size-change", "succeed", "close", "layout-change"],
18
- setup(c, { expose: u, emit: i }) {
19
- let o = i, g = c, { module: h, schema: m, table: s, 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) => {
20
26
  o("navigate", a, t);
21
27
  }, C = (a, t) => {
22
28
  o("sort", a, t);
@@ -33,7 +39,7 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
33
39
  }, S = (a) => {
34
40
  o("layout-change", a);
35
41
  };
36
- return u({ resize: (a) => {
42
+ return i({ resize: (a) => {
37
43
  if (!n.value || !n.value.resize)
38
44
  return !1;
39
45
  n.value.resize(a);
@@ -41,20 +47,20 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
41
47
  if (!n.value || !n.value.keyboard)
42
48
  return !1;
43
49
  n.value.keyboard(a, t);
44
- } }), (a, t) => (r(), B(L, null, [
45
- R(e(F), {
50
+ } }), (a, t) => (s(), B(L, null, [
51
+ R(e(q), {
46
52
  layout: e(l),
47
- table: e(s),
53
+ table: e(r),
48
54
  onLayoutChange: e(S)
49
55
  }, null, 8, ["layout", "table", "onLayoutChange"]),
50
- (r(), w(E(`paging-${e(l).type.toLowerCase()}`), {
56
+ (s(), w(E(`paging-${e(l).type.toLowerCase()}`), {
51
57
  ref_key: "pagingRef",
52
58
  ref: n,
53
- module: e(h),
54
- schema: e(m),
55
- table: e(s),
59
+ module: e(m),
60
+ schema: e(p),
61
+ table: e(r),
56
62
  layout: e(l),
57
- next: e(p),
63
+ next: e(h),
58
64
  set: e(d),
59
65
  "search-data": e(y),
60
66
  onNavigate: e(f),
@@ -66,7 +72,7 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
66
72
  onClose: e(z)
67
73
  }, {
68
74
  default: P(() => [
69
- V("div", I, "未支持的分页布局方式:" + $(e(l).type), 1)
75
+ V("div", F, "未支持的分页布局方式:" + $(e(l).type), 1)
70
76
  ]),
71
77
  _: 1
72
78
  }, 40, ["module", "schema", "table", "layout", "next", "set", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onSucceed", "onClose"]))
@@ -74,5 +80,5 @@ const I = { class: "not-support" }, M = /* @__PURE__ */ k({
74
80
  }
75
81
  });
76
82
  export {
77
- M as _
83
+ X as _
78
84
  };
@@ -1,15 +1,21 @@
1
- import { defineComponent as k, ref as m, onMounted as C, resolveComponent as r, openBlock as d, createBlock as f, unref as l, withCtx as t, createTextVNode as c, createVNode as a, createElementBlock as v, Fragment as M, renderList as B, createElementVNode as N, toDisplayString as x, createCommentVNode as T } from "vue";
2
- import { B as U, T as w } from "./main-D3_7YhaK.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";
3
9
  import "element-plus";
4
10
  import "vue-router";
5
11
  import "./assets/intro.js-DxWjEdp_.js";
6
- const E = { class: "option-text" }, O = {
12
+ const w = { class: "option-text" }, E = {
7
13
  key: 0,
8
14
  class: "option-suffix"
9
- }, L = /* @__PURE__ */ k({
15
+ }, H = /* @__PURE__ */ k({
10
16
  __name: "Install",
11
- setup(R) {
12
- let o = m({ name: null, type: "SqlServer", conn: null }), u = m(!1), i = m(), y = m([
17
+ setup(O) {
18
+ let o = s({ name: null, type: "SqlServer", conn: null }), u = s(!1), d = s(), y = s([
13
19
  { value: "SqlServer", text: "SqlServer" },
14
20
  { value: "MySql", text: "MySql" },
15
21
  { value: "Mongo", text: "Mongo" },
@@ -17,10 +23,10 @@ const E = { class: "option-text" }, O = {
17
23
  { value: "Oracle", text: "Oracle" },
18
24
  { value: "Trino", text: "Trino" }
19
25
  ]), V = () => {
20
- u.value = !0, i.value.validate((_, n) => {
26
+ u.value = !0, d.value.validate((_, n) => {
21
27
  if (!_)
22
28
  return u.value = !1, !1;
23
- w.post("/app/install", o.value).then(({ data: p }) => {
29
+ U.post("/app/install", o.value).then(({ data: i }) => {
24
30
  }).finally(() => {
25
31
  u.value = !1;
26
32
  });
@@ -28,8 +34,8 @@ const E = { class: "option-text" }, O = {
28
34
  };
29
35
  return C(() => {
30
36
  }), (_, n) => {
31
- 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");
32
- return d(), f(l(U), {
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), {
33
39
  class: "ha-install",
34
40
  title: "数据库信息"
35
41
  }, {
@@ -39,18 +45,18 @@ const E = { class: "option-text" }, O = {
39
45
  default: t(() => [
40
46
  a(b, {
41
47
  ref_key: "formRef",
42
- ref: i,
48
+ ref: d,
43
49
  model: l(o),
44
50
  "label-width": "80px"
45
51
  }, {
46
52
  default: t(() => [
47
- a(s, {
53
+ a(m, {
48
54
  label: "名称",
49
55
  prop: "name",
50
56
  rules: [{ required: !0, message: "数据库名不能为空" }]
51
57
  }, {
52
58
  default: t(() => [
53
- a(p, {
59
+ a(i, {
54
60
  type: "text",
55
61
  modelValue: l(o).name,
56
62
  "onUpdate:modelValue": n[0] || (n[0] = (e) => l(o).name = e)
@@ -58,7 +64,7 @@ const E = { class: "option-text" }, O = {
58
64
  ]),
59
65
  _: 1
60
66
  }),
61
- a(s, {
67
+ a(m, {
62
68
  label: "类型",
63
69
  prop: "type",
64
70
  rules: [{ required: !0, message: "数据库类型不能为空" }]
@@ -69,14 +75,14 @@ const E = { class: "option-text" }, O = {
69
75
  "onUpdate:modelValue": n[1] || (n[1] = (e) => l(o).type = e)
70
76
  }, {
71
77
  default: t(() => [
72
- (d(!0), v(M, null, B(l(y), (e) => (d(), f(S, {
78
+ (p(!0), v(M, null, N(l(y), (e) => (p(), f(S, {
73
79
  value: e.value,
74
80
  label: e.text + (e.value ? "(" + e.value + ")" : ""),
75
81
  key: `${e.value}`
76
82
  }, {
77
83
  default: t(() => [
78
- N("span", E, x(e.text), 1),
79
- e.value ? (d(), v("span", O, "(" + x(e.value) + ")", 1)) : T("", !0)
84
+ h("span", w, x(e.text), 1),
85
+ e.value ? (p(), v("span", E, "(" + x(e.value) + ")", 1)) : B("", !0)
80
86
  ]),
81
87
  _: 2
82
88
  }, 1032, ["value", "label"]))), 128))
@@ -86,13 +92,13 @@ const E = { class: "option-text" }, O = {
86
92
  ]),
87
93
  _: 1
88
94
  }),
89
- a(s, {
95
+ a(m, {
90
96
  label: "连接串",
91
97
  prop: "conn",
92
98
  rules: [{ required: !0, message: "数据库连接串不能为空" }]
93
99
  }, {
94
100
  default: t(() => [
95
- a(p, {
101
+ a(i, {
96
102
  type: "textarea",
97
103
  modelValue: l(o).conn,
98
104
  "onUpdate:modelValue": n[2] || (n[2] = (e) => l(o).conn = e)
@@ -100,7 +106,7 @@ const E = { class: "option-text" }, O = {
100
106
  ]),
101
107
  _: 1
102
108
  }),
103
- a(s, null, {
109
+ a(m, null, {
104
110
  default: t(() => [
105
111
  a(q, {
106
112
  type: "primary",
@@ -125,5 +131,5 @@ const E = { class: "option-text" }, O = {
125
131
  }
126
132
  });
127
133
  export {
128
- L as default
134
+ H as default
129
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-C70dFJLS.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),