halo-pc 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/dist/Article-CjlnxF__.js +196 -0
  2. package/dist/ArticleFooter-BAf1rKUX.js +78 -0
  3. package/dist/Autocomplete-BnQpnnyK.js +27 -0
  4. package/dist/Autocomplete-C2FkoM3g.js +52 -0
  5. package/dist/Autocomplete-Da3h7NqJ.js +53 -0
  6. package/dist/CSharp-Dxc7debp.js +27 -0
  7. package/dist/Calender-CZajLEjs.js +10 -0
  8. package/dist/Callback-txUuqwa4.js +24 -0
  9. package/dist/Cascader-Bm6ZjZBu.js +84 -0
  10. package/dist/Cascader-CWljbVzB.js +45 -0
  11. package/dist/Checkbox-CYpA0Abh.js +69 -0
  12. package/dist/Checkbox-DvjA_jtM.js +27 -0
  13. package/dist/Code--QwKtfhx.js +4 -0
  14. package/dist/Code-BO3eZKLy.js +58 -0
  15. package/dist/Code-Dh_cfHCX.js +40 -0
  16. package/dist/Code-Dn68YB2V.js +28 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-DcAjaZOQ.js +63 -0
  18. package/dist/Color-CfXtJFUo.js +22 -0
  19. package/dist/Color-Da69pnQg.js +34 -0
  20. package/dist/Column-DGnsLHim.js +69 -0
  21. package/dist/Comment--Tr_kWBl.js +102 -0
  22. package/dist/Compare-C3rlbp4P.js +60 -0
  23. package/dist/Compare-DaSyOFIe.js +30 -0
  24. package/dist/Copy-C5yEC9dX.js +43 -0
  25. package/dist/Custom-K9vfVRxn.js +53 -0
  26. package/dist/DataExport-GCZvxEp5.js +4 -0
  27. package/dist/DataExport.vue_vue_type_script_setup_true_lang-CqT0RHF6.js +112 -0
  28. package/dist/DataImport-BofV1eCR.js +4 -0
  29. package/dist/DataImport.vue_vue_type_script_setup_true_lang-WCH5ToC7.js +174 -0
  30. package/dist/Date-BeHsQ2Ow.js +36 -0
  31. package/dist/Date-DgpsRJon.js +27 -0
  32. package/dist/DateRange-DrYK_l0Y.js +19 -0
  33. package/dist/DateRange-UHosLXP9.js +61 -0
  34. package/dist/DateTime-BfNjKDfI.js +37 -0
  35. package/dist/DateTime-CHn5T-FB.js +27 -0
  36. package/dist/DateTimeRange-6TctUiMd.js +65 -0
  37. package/dist/Daterange-DISQqOFM.js +61 -0
  38. package/dist/Decimal-BB2w4V2o.js +27 -0
  39. package/dist/Decimal-C38-N54B.js +36 -0
  40. package/dist/Delete-C7gIYWP8.js +59 -0
  41. package/dist/Detail-D-6vJTGF.js +70 -0
  42. package/dist/Dictionary-DfEacdox.js +59 -0
  43. package/dist/Email-BKW9GRcH.js +19 -0
  44. package/dist/Email-ME_MU94C.js +47 -0
  45. package/dist/File-CMCYSg30.js +158 -0
  46. package/dist/Image-BL458jPH.js +9 -0
  47. package/dist/Index-8lbvVECt.js +4 -0
  48. package/dist/Index-B1ZfzgLV.js +4 -0
  49. package/dist/Index-C_HCipwv.js +4 -0
  50. package/dist/Index-Ch59SxF3.js +74 -0
  51. package/dist/Index-CopnEHli.js +4 -0
  52. package/dist/Index-Cp7EDm0u.js +173 -0
  53. package/dist/Index-DZkeSKKp.js +4 -0
  54. package/dist/Index-tbCW5R6_.js +4 -0
  55. package/dist/Index.vue_vue_type_script_setup_true_lang-B-sM48XO.js +36 -0
  56. package/dist/Index.vue_vue_type_script_setup_true_lang-DOibFo1_.js +70 -0
  57. package/dist/Index.vue_vue_type_script_setup_true_lang-Dwm5MQ9l.js +82 -0
  58. package/dist/Index.vue_vue_type_style_index_0_lang-D9Jt6Of_.js +113 -0
  59. package/dist/Install-CJbpeRw0.js +130 -0
  60. package/dist/Int-B-t8edhd.js +19 -0
  61. package/dist/Int-C-0RMDmy.js +37 -0
  62. package/dist/Int-CkzuFSk2.js +45 -0
  63. package/dist/List-V1uPlNfP.js +77 -0
  64. package/dist/Maintaince-BM4tthS_.js +19 -0
  65. package/dist/Markdown-BzMP3m7o.js +37 -0
  66. package/dist/Markdown-Dq7L9EMQ.js +27 -0
  67. package/dist/Month-B_SzKf02.js +36 -0
  68. package/dist/Month-CUX-EnU_.js +27 -0
  69. package/dist/Month-DfemgHac.js +37 -0
  70. package/dist/Normal-B2w0Isvm.js +255 -0
  71. package/dist/Paging-Bnpq9uSh.js +95 -0
  72. package/dist/PagingHeader-CBXHiUXR.js +140 -0
  73. package/dist/PagingRow-tny-wHwu.js +66 -0
  74. package/dist/Password-DuyYEgzR.js +55 -0
  75. package/dist/Password-yHtlY-Qa.js +24 -0
  76. package/dist/Progress-C3D821AQ.js +34 -0
  77. package/dist/Progress-CKVzMO-W.js +25 -0
  78. package/dist/QueryApi-BLc_au6L.js +18 -0
  79. package/dist/Racebar-DqWtIQm-.js +166 -0
  80. package/dist/Radio-DkcBKBvX.js +47 -0
  81. package/dist/Radio-xLd4l78I.js +27 -0
  82. package/dist/Rate-B7jKTFKT.js +34 -0
  83. package/dist/Rate-BmC4gw_0.js +34 -0
  84. package/dist/Register-Bio0HxyZ.js +203 -0
  85. package/dist/RichText-BYNi_iMx.js +105 -0
  86. package/dist/RichText-Bk0Msyhl.js +22 -0
  87. package/dist/SearchFooter-BAPlMiuj.js +4 -0
  88. package/dist/SearchFooter.vue_vue_type_style_index_0_lang-Bp7M7_IY.js +55 -0
  89. package/dist/SearchForm-BaPwWOch.js +4 -0
  90. package/dist/SearchForm.vue_vue_type_style_index_0_lang-BJeXUISp.js +150 -0
  91. package/dist/Select-DMDcHdlD.js +116 -0
  92. package/dist/Select-Dlx4Tg2X.js +27 -0
  93. package/dist/Select-Doyr8ioF.js +84 -0
  94. package/dist/Single-B4EEi5Bm.js +323 -0
  95. package/dist/Statistic-AY1NP5tM.js +161 -0
  96. package/dist/Statistic-CTxHNeof.js +76 -0
  97. package/dist/Stock-CcBqUgOB.js +28 -0
  98. package/dist/Stock-Sh2UHojP.js +4 -0
  99. package/dist/Stock.vue_vue_type_style_index_0_lang-CcHVxdzc.js +302 -0
  100. package/dist/Switch-BOsRzAW-.js +27 -0
  101. package/dist/Switch-DhFaku5L.js +50 -0
  102. package/dist/Table-C9IrdZEj.js +241 -0
  103. package/dist/Table-CrMo5L6q.js +318 -0
  104. package/dist/Text-BRRmmXYV.js +52 -0
  105. package/dist/Text-DKpPIUcY.js +51 -0
  106. package/dist/Text-vz76Xb4X.js +4 -0
  107. package/dist/Text.vue_vue_type_style_index_0_lang-BMxOYNEI.js +56 -0
  108. package/dist/TextLink-DKm6XbeF.js +66 -0
  109. package/dist/Textarea-D9TgF9ig.js +37 -0
  110. package/dist/Textarea-WPLyT7XC.js +28 -0
  111. package/dist/Time-BcQzBDX-.js +36 -0
  112. package/dist/Timeline-Dolubd-b.js +57 -0
  113. package/dist/Tree-Bv5eVC8s.js +122 -0
  114. package/dist/Tree-KwP6ais4.js +295 -0
  115. package/dist/TreeNode-rHeuE2ot.js +38 -0
  116. package/dist/Tree_Old-h__WmqFA.js +11 -0
  117. package/dist/Update-C5bPCalk.js +65 -0
  118. package/dist/UpdateChild-B2A3hP6m.js +85 -0
  119. package/dist/Upload-BSbIQu56.js +147 -0
  120. package/dist/Upload-heb0FQTh.js +72 -0
  121. package/dist/UploadApi-vYU0Jda6.js +18 -0
  122. package/dist/Year-1ug2_a1g.js +40 -0
  123. package/dist/Year-Dlp5PKhI.js +27 -0
  124. package/dist/main-Bs5Q5ZLl.js +6535 -0
  125. package/dist/main.js +110 -0
  126. package/dist/style.css +1 -0
  127. package/dist/vendor-@intlify-BISCQg1h.js +2189 -0
  128. package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
  129. package/dist/vendor-@vue-aVYGocXp.js +93 -0
  130. package/dist/vendor-clipboard-BqjesuiY.js +521 -0
  131. package/dist/vendor-clone-BPtCWdXG.js +134 -0
  132. package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
  133. package/dist/vendor-element-plus-Z7vJFrsh.js +456 -0
  134. package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
  135. package/dist/vendor-intro.js-CZkClzQO.js +1695 -0
  136. package/dist/vendor-moment-h96o7c8I.js +2578 -0
  137. package/dist/vendor-pinia-C-_fm-ER.js +1167 -0
  138. package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
  139. package/dist/vendor-state-local-CEworIRt.js +131 -0
  140. package/dist/vendor-underscore-DVTek3G4.js +1070 -0
  141. package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
  142. package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
  143. package/dist/vendor-vue-demi-DdR-Jw7p.js +31 -0
  144. package/dist/vendor-vue-i18n-C3KH15Qn.js +1670 -0
  145. package/package.json +1 -1
@@ -0,0 +1,173 @@
1
+ import { defineComponent as P, ref as u, onMounted as D, computed as Q, watch as j, resolveComponent as c, openBlock as d, createElementBlock as h, createVNode as g, unref as t, withCtx as m, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as b, isRef as T, withKeys as $, normalizeClass as Z, withModifiers as G, createTextVNode as F, Fragment as J, renderList as W, nextTick as K } from "vue";
2
+ import { useRoute as X } from "vue-router";
3
+ import { d as Y, u as ee, z as te, q as oe, P as le, S as re, g as se, f as ne } from "./main-Bs5Q5ZLl.js";
4
+ import "xlsx-js-style";
5
+ import "./vendor-crypto-js-ftX_aBC-.js";
6
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
7
+ import "./vendor-moment-h96o7c8I.js";
8
+ import "element-plus";
9
+ const ae = { class: "login-container" }, ie = { class: "title-container" }, ue = { class: "title" }, de = /* @__PURE__ */ n("span", { class: "svg-container" }, [
10
+ /* @__PURE__ */ n("i", { class: "fa fa-user" })
11
+ ], -1), pe = /* @__PURE__ */ n("span", { class: "svg-container" }, [
12
+ /* @__PURE__ */ n("i", { class: "fa fa-key" })
13
+ ], -1), ce = { class: "btn-others" }, me = ["href"], fe = ["innerHTML"], Re = /* @__PURE__ */ P({
14
+ __name: "Index",
15
+ setup(_e) {
16
+ let a = u({ id: "", secret: "" }), p = u("password"), s = u(!1), _ = u(!1), C = u(), R = u(), w = u(), S = Y(), { t: i, t_sys: q } = ee(), U = te(), V = X(), x = oe.getSso(), H = {
17
+ id: [{
18
+ required: !0,
19
+ trigger: "blur",
20
+ validator: (o, e, r) => {
21
+ e ? e.indexOf("@") > -1 ? re.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
+ }, I = (o) => {
26
+ o.key && o.key.length == 1 && (o.shiftKey && o.key >= "a" && o.key <= "z" || !o.shiftKey && o.key >= "A" && o.key <= "Z" ? s.value = !0 : s.value = !1), o.key == "CapsLock" && s.value == !0 && (s.value = !1);
27
+ }, B = () => {
28
+ p.value == "password" ? p.value = "" : p.value = "password", K(() => {
29
+ w.value.focus();
30
+ });
31
+ }, E = async (o) => {
32
+ _.value = !0, C.value.validate(async (e) => {
33
+ if (!e)
34
+ return _.value = !1, !1;
35
+ (await x.create(o)).login(a.value).then(({ data: f }) => {
36
+ se.getBackUrl() ? U.toBackUrl() : U.to("/");
37
+ }).finally(() => {
38
+ K(() => {
39
+ _.value = !1;
40
+ });
41
+ });
42
+ });
43
+ }, M = async (o) => {
44
+ let e = await x.create(o), r = V.query.return_url, f = `${window.location.origin}/sso/callback?type=${o.toLowerCase()}&return_url=${r}`;
45
+ return e.loginUrl(ne.api.url + `/user/login?type=${o.toLowerCase()}&callback_url=` + encodeURIComponent(f));
46
+ }, N = (o) => Object.keys(o).reduce((e, r) => (e[r] = o[r], e), {});
47
+ D(() => {
48
+ le.setI18nTitle("common.login"), y.value != null && (a.value.id == "" ? R.value.focus() : a.value.secret == "" && w.value.focus());
49
+ });
50
+ let y = Q(() => S.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
51
+ return j(() => V, (o) => {
52
+ debugger;
53
+ const e = o.query;
54
+ e && (otherQuery = N(e));
55
+ }), (o, e) => {
56
+ const r = c("el-input"), f = c("el-form-item"), L = c("el-tooltip"), O = c("el-button"), z = c("router-link"), A = c("el-form");
57
+ return d(), h("div", ae, [
58
+ g(A, {
59
+ ref_key: "loginFormRef",
60
+ ref: C,
61
+ autocomplete: "on",
62
+ "label-position": "left",
63
+ model: t(a),
64
+ rules: t(H)
65
+ }, {
66
+ default: m(() => [
67
+ n("div", ie, [
68
+ n("h3", ue, k(t(q)("title")), 1)
69
+ ]),
70
+ t(y) ? (d(), v(f, {
71
+ key: 0,
72
+ prop: "id"
73
+ }, {
74
+ default: m(() => [
75
+ de,
76
+ g(r, {
77
+ ref_key: "idRef",
78
+ ref: R,
79
+ placeholder: t(i)("common.username_or_email"),
80
+ name: "id",
81
+ type: "text",
82
+ tabindex: "1",
83
+ autocomplete: "on",
84
+ modelValue: t(a).id,
85
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => t(a).id = l)
86
+ }, null, 8, ["placeholder", "modelValue"])
87
+ ]),
88
+ _: 1
89
+ })) : b("", !0),
90
+ t(y) ? (d(), v(L, {
91
+ key: 1,
92
+ content: "Caps lock is On",
93
+ placement: "right",
94
+ manual: "",
95
+ modelValue: t(s),
96
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => T(s) ? s.value = l : s = l)
97
+ }, {
98
+ default: m(() => [
99
+ g(f, { prop: "secret" }, {
100
+ default: m(() => [
101
+ pe,
102
+ (d(), v(r, {
103
+ ref_key: "secretRef",
104
+ ref: w,
105
+ key: t(p),
106
+ type: t(p),
107
+ placeholder: t(i)("common.password"),
108
+ name: "secret",
109
+ tabindex: "2",
110
+ autocomplete: "on",
111
+ onKeyup: [
112
+ $(t(I), ["native"]),
113
+ e[2] || (e[2] = $((l) => t(E)("Bearer"), ["enter", "native"]))
114
+ ],
115
+ onBlur: e[1] || (e[1] = (l) => T(s) ? s.value = !1 : s = !1),
116
+ modelValue: t(a).secret,
117
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => t(a).secret = l)
118
+ }, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
119
+ n("span", {
120
+ class: "btn-pwd",
121
+ onClick: e[4] || (e[4] = //@ts-ignore
122
+ (...l) => t(B) && t(B)(...l))
123
+ }, [
124
+ n("i", {
125
+ class: Z(t(p) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
126
+ }, null, 2)
127
+ ])
128
+ ]),
129
+ _: 1
130
+ })
131
+ ]),
132
+ _: 1
133
+ }, 8, ["modelValue"])) : b("", !0),
134
+ t(y) ? (d(), v(O, {
135
+ key: 2,
136
+ type: "primary",
137
+ class: "btn-login",
138
+ loading: t(_),
139
+ onClick: e[6] || (e[6] = G((l) => t(E)("Bearer"), ["prevent"]))
140
+ }, {
141
+ default: m(() => [
142
+ F(k(t(i)("common.login")), 1)
143
+ ]),
144
+ _: 1
145
+ }, 8, ["loading"])) : b("", !0),
146
+ n("div", ce, [
147
+ (d(!0), h(J, null, W(t(S).ssos.filter((l) => l.type.toUpperCase() != "BEARER"), (l) => (d(), h("a", {
148
+ href: t(M)(l.type)
149
+ }, k(t(i)(l.text)), 9, me))), 256)),
150
+ g(z, {
151
+ class: "btn-register",
152
+ to: "/register"
153
+ }, {
154
+ default: m(() => [
155
+ F(k(t(i)("common.register")), 1)
156
+ ]),
157
+ _: 1
158
+ })
159
+ ])
160
+ ]),
161
+ _: 1
162
+ }, 8, ["model", "rules"]),
163
+ n("div", {
164
+ class: "powered-by",
165
+ innerHTML: t(i)("sys.powered_by")
166
+ }, null, 8, fe)
167
+ ]);
168
+ };
169
+ }
170
+ });
171
+ export {
172
+ Re as default
173
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./Index.vue_vue_type_style_index_0_lang-D9Jt6Of_.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { o } from "./main-Bs5Q5ZLl.js";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,36 @@
1
+ import { defineComponent as u, toRefs as f, openBlock as _, createBlock as b, resolveDynamicComponent as g, unref as e, withCtx as C, createElementVNode as D, toDisplayString as V } from "vue";
2
+ const x = { class: "not-support" }, k = /* @__PURE__ */ u({
3
+ __name: "Index",
4
+ props: {
5
+ schema: {},
6
+ table: {},
7
+ field: {},
8
+ searchData: {}
9
+ },
10
+ emits: ["change", "submit"],
11
+ setup(m, { emit: r }) {
12
+ let s = r, c = m, { schema: i, table: a, field: t, searchData: n } = f(c), h = (o) => {
13
+ s("change", o);
14
+ }, d = () => {
15
+ s("submit");
16
+ };
17
+ return (o, l) => (_(), b(g(`search-${e(t).search.control.toLowerCase()}`), {
18
+ schema: e(i),
19
+ table: e(a),
20
+ field: e(t),
21
+ "search-data": e(n),
22
+ onChange: e(h),
23
+ onSubmit: e(d),
24
+ modelValue: e(n)[e(a).name][e(t).name],
25
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => e(n)[e(a).name][e(t).name] = p)
26
+ }, {
27
+ default: C(() => [
28
+ D("div", x, V(o.t("paging.not_implemented_search_control", e(t).search.control)), 1)
29
+ ]),
30
+ _: 1
31
+ }, 40, ["schema", "table", "field", "search-data", "onChange", "onSubmit", "modelValue"]));
32
+ }
33
+ });
34
+ export {
35
+ k as _
36
+ };
@@ -0,0 +1,70 @@
1
+ import { defineComponent as E, toRefs as x, 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 { r as F } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ import "element-plus";
8
+ import "vue-router";
9
+ import "./vendor-intro.js-CZkClzQO.js";
10
+ const I = { class: "not-support" }, P = /* @__PURE__ */ E({
11
+ __name: "Index",
12
+ props: {
13
+ route: {},
14
+ validateErrors: {},
15
+ module: {},
16
+ schema: {},
17
+ table: {},
18
+ layout: {},
19
+ next: {},
20
+ set: {}
21
+ },
22
+ emits: ["layout-change", "row-edit", "change", "submit"],
23
+ setup(i, { expose: s, emit: m }) {
24
+ let o = m, p = i, { module: d, schema: c, table: l, layout: a, next: y, set: h } = x(p), r = R(), f = (t) => {
25
+ o("layout-change", t);
26
+ }, g = (t, n, w) => {
27
+ o("row-edit", t, n, w);
28
+ }, _ = () => {
29
+ o("change");
30
+ }, b = (t) => {
31
+ o("submit", t);
32
+ }, v = (t) => {
33
+ }, C = (t) => {
34
+ if (!r.value || !r.value.resize)
35
+ return !1;
36
+ r.value.resize(t);
37
+ };
38
+ return k(() => {
39
+ }), s({ update: v, resize: C }), (t, n) => (u(), z(B, null, [
40
+ L(e(F), {
41
+ layout: e(a),
42
+ table: e(l),
43
+ onLayoutChange: e(f)
44
+ }, null, 8, ["layout", "table", "onLayoutChange"]),
45
+ (u(), S(D(`update-${e(a).type.toLowerCase()}`), {
46
+ ref_key: "layoutRef",
47
+ ref: r,
48
+ module: e(d),
49
+ schema: e(c),
50
+ table: e(l),
51
+ layout: e(a),
52
+ next: e(y),
53
+ set: e(h),
54
+ route: t.route,
55
+ "validate-errors": t.validateErrors,
56
+ onRowEdit: e(g),
57
+ onChange: e(_),
58
+ onSubmit: e(b)
59
+ }, {
60
+ default: N(() => [
61
+ V("div", I, $(t.t("single.not_supported_layout", e(a).type)), 1)
62
+ ]),
63
+ _: 1
64
+ }, 40, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"]))
65
+ ], 64));
66
+ }
67
+ });
68
+ export {
69
+ P as _
70
+ };
@@ -0,0 +1,82 @@
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 { r as F } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ import "element-plus";
8
+ import "vue-router";
9
+ import "./vendor-intro.js-CZkClzQO.js";
10
+ const I = { class: "not-support" }, U = /* @__PURE__ */ k({
11
+ __name: "Index",
12
+ props: {
13
+ searchData: {},
14
+ module: {},
15
+ schema: {},
16
+ table: {},
17
+ layout: {},
18
+ next: {},
19
+ set: {}
20
+ },
21
+ emits: ["navigate", "sort", "search", "page-change", "size-change", "succeed", "close", "layout-change"],
22
+ setup(c, { expose: i, emit: u }) {
23
+ let o = u, g = c, { module: h, schema: m, table: r, layout: l, next: p, set: d, searchData: y } = D(g), n = N(), f = (a, t) => {
24
+ o("navigate", a, t);
25
+ }, C = (a, t) => {
26
+ o("sort", a, t);
27
+ }, v = (a) => {
28
+ o("search", a);
29
+ }, _ = (a, t = null) => {
30
+ o("page-change", a, t);
31
+ }, b = (a, t = null) => {
32
+ o("size-change", a, t);
33
+ }, x = (a = null) => {
34
+ o("succeed", a);
35
+ }, z = () => {
36
+ o("close");
37
+ }, S = (a) => {
38
+ o("layout-change", a);
39
+ };
40
+ return i({ resize: (a) => {
41
+ if (!n.value || !n.value.resize)
42
+ return !1;
43
+ n.value.resize(a);
44
+ }, keyboard: (a, t) => {
45
+ if (!n.value || !n.value.keyboard)
46
+ return !1;
47
+ n.value.keyboard(a, t);
48
+ } }), (a, t) => (s(), B(L, null, [
49
+ R(e(F), {
50
+ layout: e(l),
51
+ table: e(r),
52
+ onLayoutChange: e(S)
53
+ }, null, 8, ["layout", "table", "onLayoutChange"]),
54
+ (s(), w(E(`paging-${e(l).type.toLowerCase()}`), {
55
+ ref_key: "pagingRef",
56
+ ref: n,
57
+ module: e(h),
58
+ schema: e(m),
59
+ table: e(r),
60
+ layout: e(l),
61
+ next: e(p),
62
+ set: e(d),
63
+ "search-data": e(y),
64
+ onNavigate: e(f),
65
+ onSort: e(C),
66
+ onSearch: e(v),
67
+ onPageChange: e(_),
68
+ onSizeChange: e(b),
69
+ onSucceed: e(x),
70
+ onClose: e(z)
71
+ }, {
72
+ default: P(() => [
73
+ V("div", I, "未支持的分页布局方式:" + $(e(l).type), 1)
74
+ ]),
75
+ _: 1
76
+ }, 40, ["module", "schema", "table", "layout", "next", "set", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onSucceed", "onClose"]))
77
+ ], 64));
78
+ }
79
+ });
80
+ export {
81
+ U as _
82
+ };
@@ -0,0 +1,113 @@
1
+ import { defineComponent as E, defineAsyncComponent as I, toRefs as z, ref as A, computed as h, resolveComponent as v, openBlock as n, createElementBlock as u, Fragment as b, unref as e, createBlock as d, withCtx as s, createElementVNode as g, createVNode as _, resolveDynamicComponent as F, toDisplayString as k, createTextVNode as H, createCommentVNode as U } from "vue";
2
+ import { S as $ } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ const j = { class: "text-popover" }, q = {
8
+ key: 2,
9
+ class: "control-operation"
10
+ }, P = /* @__PURE__ */ E({
11
+ __name: "Index",
12
+ props: {
13
+ schema: {},
14
+ table: {},
15
+ field: {},
16
+ set: {},
17
+ row: {},
18
+ config: {}
19
+ },
20
+ emits: ["submit", "change"],
21
+ setup(w, { emit: x }) {
22
+ let p = I(() => import("./Index-Ch59SxF3.js")), C = x, V = w, { schema: a, table: c, field: t, set: i, row: l, config: o } = z(V), m = A(), N = () => {
23
+ }, R = (r) => {
24
+ C("submit", r);
25
+ }, y = h(() => {
26
+ let r = t.value.control.type;
27
+ return o.value && o.value.control && o.value.control.type ? o.value.control.type : r;
28
+ }), S = h(() => `control-${$.getDashName(y.value)}`);
29
+ return (r, f) => {
30
+ const B = v("el-popover"), D = v("el-link");
31
+ return n(), u(b, null, [
32
+ e(t).control.textualize ? (n(), u(b, { key: 0 }, [
33
+ e(t).control.popover ? (n(), d(B, {
34
+ key: 0,
35
+ trigger: "hover",
36
+ placement: "top",
37
+ width: e(t).control.popover.width
38
+ }, {
39
+ reference: s(() => [
40
+ g("div", j, [
41
+ _(e(p), {
42
+ ref_key: "controlRef",
43
+ ref: m,
44
+ schema: e(a),
45
+ table: e(c),
46
+ field: e(t),
47
+ set: e(i),
48
+ row: e(l),
49
+ config: e(o)
50
+ }, null, 8, ["schema", "table", "field", "set", "row", "config"])
51
+ ])
52
+ ]),
53
+ default: s(() => [
54
+ _(e(p), {
55
+ ref_key: "controlRef",
56
+ ref: m,
57
+ schema: e(a),
58
+ table: e(c),
59
+ field: e(t),
60
+ set: e(i),
61
+ row: e(l),
62
+ config: e(o)
63
+ }, null, 8, ["schema", "table", "field", "set", "row", "config"])
64
+ ]),
65
+ _: 1
66
+ }, 8, ["width"])) : (n(), d(e(p), {
67
+ key: 1,
68
+ ref_key: "controlRef",
69
+ ref: m,
70
+ schema: e(a),
71
+ table: e(c),
72
+ field: e(t),
73
+ set: e(i),
74
+ row: e(l),
75
+ config: e(o)
76
+ }, null, 8, ["schema", "table", "field", "set", "row", "config"]))
77
+ ], 64)) : (n(), d(F(e(S)), {
78
+ key: 1,
79
+ ref_key: "controlRef",
80
+ ref: m,
81
+ schema: e(a),
82
+ table: e(c),
83
+ field: e(t),
84
+ set: e(i),
85
+ row: e(l),
86
+ onSubmit: e(R),
87
+ onClear: e(N),
88
+ modelValue: e(l)[e(t).name],
89
+ "onUpdate:modelValue": f[0] || (f[0] = (T) => e(l)[e(t).name] = T)
90
+ }, {
91
+ default: s(() => [
92
+ g("div", null, k(r.t("common.unsupported_control", e(y))), 1)
93
+ ]),
94
+ _: 1
95
+ }, 40, ["schema", "table", "field", "set", "row", "onSubmit", "onClear", "modelValue"])),
96
+ e(t).operation ? (n(), u("div", q, [
97
+ _(D, {
98
+ type: "primary",
99
+ underline: !1
100
+ }, {
101
+ default: s(() => [
102
+ H(k(e(t).operation.name), 1)
103
+ ]),
104
+ _: 1
105
+ })
106
+ ])) : U("", !0)
107
+ ], 64);
108
+ };
109
+ }
110
+ });
111
+ export {
112
+ P as _
113
+ };
@@ -0,0 +1,130 @@
1
+ import { defineComponent as k, ref as m, 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 { n as T, h as U } from "./main-Bs5Q5ZLl.js";
3
+ import "xlsx-js-style";
4
+ import "./vendor-crypto-js-ftX_aBC-.js";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ const w = { class: "option-text" }, E = {
8
+ key: 0,
9
+ class: "option-suffix"
10
+ }, j = /* @__PURE__ */ k({
11
+ __name: "Install",
12
+ setup(O) {
13
+ let o = m({ name: null, type: "SqlServer", conn: null }), u = m(!1), i = m(), y = m([
14
+ { value: "SqlServer", text: "SqlServer" },
15
+ { value: "MySql", text: "MySql" },
16
+ { value: "Mongo", text: "Mongo" },
17
+ { value: "Sqlite", text: "Sqlite" },
18
+ { value: "Oracle", text: "Oracle" },
19
+ { value: "Trino", text: "Trino" }
20
+ ]), V = () => {
21
+ u.value = !0, i.value.validate((_, n) => {
22
+ if (!_)
23
+ return u.value = !1, !1;
24
+ U.post("/app/install", o.value).then(({ data: d }) => {
25
+ }).finally(() => {
26
+ u.value = !1;
27
+ });
28
+ });
29
+ };
30
+ return C(() => {
31
+ }), (_, n) => {
32
+ const d = 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 p(), f(l(T), {
34
+ class: "ha-install",
35
+ title: "数据库信息"
36
+ }, {
37
+ operation: t(() => [
38
+ c("开启您的心动之旅")
39
+ ]),
40
+ default: t(() => [
41
+ a(b, {
42
+ ref_key: "formRef",
43
+ ref: i,
44
+ model: l(o),
45
+ "label-width": "80px"
46
+ }, {
47
+ default: t(() => [
48
+ a(s, {
49
+ label: "名称",
50
+ prop: "name",
51
+ rules: [{ required: !0, message: "数据库名不能为空" }]
52
+ }, {
53
+ default: t(() => [
54
+ a(d, {
55
+ type: "text",
56
+ modelValue: l(o).name,
57
+ "onUpdate:modelValue": n[0] || (n[0] = (e) => l(o).name = e)
58
+ }, null, 8, ["modelValue"])
59
+ ]),
60
+ _: 1
61
+ }),
62
+ a(s, {
63
+ label: "类型",
64
+ prop: "type",
65
+ rules: [{ required: !0, message: "数据库类型不能为空" }]
66
+ }, {
67
+ default: t(() => [
68
+ a(g, {
69
+ modelValue: l(o).type,
70
+ "onUpdate:modelValue": n[1] || (n[1] = (e) => l(o).type = e)
71
+ }, {
72
+ default: t(() => [
73
+ (p(!0), v(M, null, N(l(y), (e) => (p(), f(S, {
74
+ value: e.value,
75
+ label: e.text + (e.value ? "(" + e.value + ")" : ""),
76
+ key: `${e.value}`
77
+ }, {
78
+ default: t(() => [
79
+ h("span", w, x(e.text), 1),
80
+ e.value ? (p(), v("span", E, "(" + x(e.value) + ")", 1)) : B("", !0)
81
+ ]),
82
+ _: 2
83
+ }, 1032, ["value", "label"]))), 128))
84
+ ]),
85
+ _: 1
86
+ }, 8, ["modelValue"])
87
+ ]),
88
+ _: 1
89
+ }),
90
+ a(s, {
91
+ label: "连接串",
92
+ prop: "conn",
93
+ rules: [{ required: !0, message: "数据库连接串不能为空" }]
94
+ }, {
95
+ default: t(() => [
96
+ a(d, {
97
+ type: "textarea",
98
+ modelValue: l(o).conn,
99
+ "onUpdate:modelValue": n[2] || (n[2] = (e) => l(o).conn = e)
100
+ }, null, 8, ["modelValue"])
101
+ ]),
102
+ _: 1
103
+ }),
104
+ a(s, null, {
105
+ default: t(() => [
106
+ a(q, {
107
+ type: "primary",
108
+ loading: l(u),
109
+ onClick: l(V)
110
+ }, {
111
+ default: t(() => [
112
+ c("立即安装")
113
+ ]),
114
+ _: 1
115
+ }, 8, ["loading", "onClick"])
116
+ ]),
117
+ _: 1
118
+ })
119
+ ]),
120
+ _: 1
121
+ }, 8, ["model"])
122
+ ]),
123
+ _: 1
124
+ });
125
+ };
126
+ }
127
+ });
128
+ export {
129
+ j as default
130
+ };
@@ -0,0 +1,19 @@
1
+ import { defineComponent as l, toRefs as n, openBlock as s, createElementBlock as a, toDisplayString as r, unref as c } from "vue";
2
+ const p = { class: "text-int" }, x = /* @__PURE__ */ l({
3
+ __name: "Int",
4
+ props: {
5
+ schema: {},
6
+ table: {},
7
+ field: {},
8
+ set: {},
9
+ row: {},
10
+ modelValue: {}
11
+ },
12
+ setup(e) {
13
+ let t = e, { table: i, field: m, set: f, row: _, modelValue: o } = n(t);
14
+ return (d, u) => (s(), a("span", p, r(c(o)), 1));
15
+ }
16
+ });
17
+ export {
18
+ x as default
19
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as f, toRefs as h, computed as _, resolveComponent as b, openBlock as V, createBlock as g, unref as l, withKeys as y, isRef as K } from "vue";
2
+ const C = /* @__PURE__ */ f({
3
+ __name: "Int",
4
+ props: {
5
+ schema: {},
6
+ table: {},
7
+ field: {},
8
+ searchData: {},
9
+ modelValue: {}
10
+ },
11
+ emits: ["change", "submit", "update:modelValue"],
12
+ setup(u, { emit: m }) {
13
+ let o = m, p = u, { table: i, field: r, searchData: k, modelValue: s } = h(p), d = () => {
14
+ o("submit");
15
+ }, t = _({
16
+ get() {
17
+ return s.value;
18
+ },
19
+ set(e) {
20
+ isNaN(e) && (e = null), o("update:modelValue", e), o("change", e);
21
+ }
22
+ });
23
+ return (e, n) => {
24
+ const c = b("el-input-number");
25
+ return V(), g(c, {
26
+ placeholder: e.t("common.please_input") + e.t_field(l(i).name, l(r).name),
27
+ "controls-position": "right",
28
+ onKeyup: y(l(d), ["enter", "native"]),
29
+ modelValue: l(t),
30
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => K(t) ? t.value = a : t = a)
31
+ }, null, 8, ["placeholder", "onKeyup", "modelValue"]);
32
+ };
33
+ }
34
+ });
35
+ export {
36
+ C as default
37
+ };