halo-pc 1.0.21 → 1.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. package/dist/Article-4S7jNdlM.js +200 -0
  2. package/dist/{ArticleFooter-CbvmQHCn.js → ArticleFooter-DQs1A7g2.js} +24 -18
  3. package/dist/Autocomplete-B9SJNrNq.js +53 -0
  4. package/dist/{Autocomplete-BrKsj5vx.js → Autocomplete-BXwtzACg.js} +1 -1
  5. package/dist/Autocomplete-BZNDoWFj.js +54 -0
  6. package/dist/{CSharp-DGmv2biT.js → CSharp-aXdVWxPS.js} +1 -1
  7. package/dist/{Calender-dCiW7eIK.js → Calender-DSckLCh-.js} +4 -4
  8. package/dist/Callback-xlj8oj2-.js +26 -0
  9. package/dist/Cascader-Cwi5mukb.js +87 -0
  10. package/dist/Cascader-D1RbjsMs.js +47 -0
  11. package/dist/Checkbox-DFnVivE9.js +76 -0
  12. package/dist/{Checkbox-DklZD5ff.js → Checkbox-DtNMPsX4.js} +1 -1
  13. package/dist/{Code-DVZ9QWgE.js → Code-B2jpV8ek.js} +1 -1
  14. package/dist/Code-CEafFSlR.js +4 -0
  15. package/dist/Code-CTmcyEEu.js +60 -0
  16. package/dist/Code-DEOvcbgy.js +42 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-Cf1QzL0C.js +65 -0
  18. package/dist/Column-zAYqqGgI.js +74 -0
  19. package/dist/Comment-BZTVtxyP.js +104 -0
  20. package/dist/Compare-DMDVEK_Q.js +63 -0
  21. package/dist/Compare-Dy_YDKN2.js +43 -0
  22. package/dist/Copy-KA_-9J5g.js +49 -0
  23. package/dist/Custom-BpQzSpoK.js +57 -0
  24. package/dist/{DataExport-DAk1d4uG.js → DataExport-CU9MMI6C.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Clh4Jvxi.js → DataExport.vue_vue_type_script_setup_true_lang-DdczhsmD.js} +42 -37
  26. package/dist/{DataImport-BLOSIbQ2.js → DataImport-Dzq9P4hO.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D5J7e_59.js → DataImport.vue_vue_type_script_setup_true_lang-BdDLixcQ.js} +64 -60
  28. package/dist/{Date-D1KihBir.js → Date-BD5syhZL.js} +1 -1
  29. package/dist/Date-yqT5zILQ.js +43 -0
  30. package/dist/DateRange-CUQsaLxD.js +63 -0
  31. package/dist/DateTime-DcerQByM.js +44 -0
  32. package/dist/{DateTime-Dwg6aUf3.js → DateTime-hLc--zka.js} +1 -1
  33. package/dist/{DateTimeRange-Cir1-Js8.js → DateTimeRange-CSRaF4s1.js} +19 -13
  34. package/dist/Daterange-DY2i3jwP.js +63 -0
  35. package/dist/{Decimal-tv9vqaXk.js → Decimal-DY34o2Nh.js} +1 -1
  36. package/dist/Delete-CXnvlNw9.js +62 -0
  37. package/dist/{Detail-B2rtvufA.js → Detail-BYlDGKVP.js} +22 -17
  38. package/dist/Dictionary-DtXqTf_k.js +59 -0
  39. package/dist/Email-ofMPw09E.js +54 -0
  40. package/dist/{File-C63qevce.js → File-czipSVR0.js} +33 -28
  41. package/dist/Image-BwJO-IEo.js +9 -0
  42. package/dist/{Index-Cc_CDbUJ.js → Index-BSZ_tPMy.js} +1 -1
  43. package/dist/Index-Bwy9Q7qy.js +4 -0
  44. package/dist/{Index-Cev7Nudv.js → Index-CK25oTiA.js} +1 -1
  45. package/dist/Index-Ch5_Jqsf.js +4 -0
  46. package/dist/{Index-BD6O3A9N.js → Index-DIUPLGQ4.js} +25 -20
  47. package/dist/Index-DnNVMYOZ.js +4 -0
  48. package/dist/Index-j9BffBys.js +178 -0
  49. package/dist/{Index-B6Ec8rbl.js → Index-qOyfJhdG.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js → Index.vue_vue_type_script_setup_true_lang-Bp4JjtSz.js} +21 -16
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-xNPG8cCE.js → Index.vue_vue_type_script_setup_true_lang-DtZPmPAC.js} +21 -16
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-F7HqBnCS.js → Index.vue_vue_type_style_index_0_lang-CTTyswoD.js} +40 -35
  53. package/dist/{Install-CTAGNKPW.js → Install-qFVqjd7y.js} +29 -24
  54. package/dist/Int-BWcRpPzt.js +44 -0
  55. package/dist/Int-BYyavcrM.js +46 -0
  56. package/dist/List-BejoBArm.js +79 -0
  57. package/dist/Maintaince-Dlh2ICnO.js +20 -0
  58. package/dist/{Markdown-BJB6rQY8.js → Markdown-DymmFy2X.js} +1 -1
  59. package/dist/{Month-ui1XorBW.js → Month-C5_ANmVr.js} +1 -1
  60. package/dist/Month-Cf8e0cin.js +43 -0
  61. package/dist/Month-DaYaF2WK.js +44 -0
  62. package/dist/{Normal-Cf7kP6RU.js → Normal-NYkjZ2aA.js} +49 -45
  63. package/dist/Paging-DoQ_cXwj.js +99 -0
  64. package/dist/{PagingHeader-BkFBl-r_.js → PagingHeader-BhwoSfFl.js} +31 -25
  65. package/dist/{PagingRow-eXCadgdO.js → PagingRow-BF6pUhoJ.js} +28 -22
  66. package/dist/QueryApi-CPQ67lb4.js +20 -0
  67. package/dist/{Racebar-ClXzi9hV.js → Racebar-BNPXg9aN.js} +42 -37
  68. package/dist/{Radio-llyoK7PI.js → Radio-wHwEjg6V.js} +1 -1
  69. package/dist/{Register-BaHhaZMu.js → Register-B4Bc8s-2.js} +70 -66
  70. package/dist/RichText-Cj5QP79L.js +47 -0
  71. package/dist/{SearchFooter-BgJxQrMo.js → SearchFooter-zNYx9YkN.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-C6DtjpFD.js → SearchFooter.vue_vue_type_style_index_0_lang-CVxX9q-U.js} +1 -1
  73. package/dist/{SearchForm-CroUQ_3K.js → SearchForm-CJ3ru63a.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DEu6hHys.js → SearchForm.vue_vue_type_style_index_0_lang-DDH5N323.js} +37 -33
  75. package/dist/{Select-BtNeUq9h.js → Select-BDaDhqW7.js} +1 -1
  76. package/dist/Select-DFLY8nGY.js +86 -0
  77. package/dist/{Select-BYw63gZy.js → Select-WXibWkE0.js} +35 -30
  78. package/dist/{Single-CCVi3Pcj.js → Single-CmQgQl_u.js} +106 -102
  79. package/dist/{Statistic-g3nQvsbW.js → Statistic-BuU_GxqZ.js} +34 -30
  80. package/dist/{Stock-C6Fxo31l.js → Stock-B7NgfM19.js} +1 -1
  81. package/dist/{Stock-CNqLeSld.js → Stock-CDJ-AVw-.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-BqXBN6CJ.js → Stock.vue_vue_type_style_index_0_lang-pZYnIJLp.js} +30 -25
  83. package/dist/{Switch-NMkH-rhl.js → Switch-DHf-0HZD.js} +1 -1
  84. package/dist/{Table-DpA4dO4P.js → Table-7P4KXMsy.js} +66 -61
  85. package/dist/{Table-Cdd_tPoL.js → Table-CN-KYO1R.js} +69 -66
  86. package/dist/Text-C05EoDxO.js +59 -0
  87. package/dist/{Text-DanSgaL9.js → Text-Da3ROjFC.js} +18 -12
  88. package/dist/Text-DqapEwUL.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-DKX9_aI4.js +59 -0
  90. package/dist/TextLink-CQ_46bry.js +65 -0
  91. package/dist/{Textarea-HhP_VFJV.js → Textarea-B91EwIdj.js} +1 -1
  92. package/dist/Time-DxyveGcA.js +43 -0
  93. package/dist/Timeline-C1xOEcU4.js +59 -0
  94. package/dist/Tree-BK6p6Ake.js +122 -0
  95. package/dist/{Tree-Ck_7r3nf.js → Tree-DxJKaqc6.js} +101 -97
  96. package/dist/TreeNode-C84IoqkK.js +42 -0
  97. package/dist/{Update-DrmLFoty.js → Update-D5cXmHyf.js} +20 -15
  98. package/dist/{UpdateChild-CGCn-Eh4.js → UpdateChild-DvrF1nBA.js} +23 -17
  99. package/dist/Upload-CK-ALAKV.js +72 -0
  100. package/dist/Upload-CRpCHz3m.js +150 -0
  101. package/dist/UploadApi-B-7WPVHD.js +20 -0
  102. package/dist/Year-BOL9ynRU.js +47 -0
  103. package/dist/{Year-RGAEzf_V.js → Year-CwaPwkLN.js} +1 -1
  104. package/dist/assets/@intlify-BISCQg1h.js +2189 -0
  105. package/dist/assets/@vue-aVYGocXp.js +93 -0
  106. package/dist/assets/clone-BZn0cTAu.js +134 -0
  107. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  108. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  109. package/dist/assets/moment-h96o7c8I.js +2578 -0
  110. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  111. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  112. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  113. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  114. package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
  115. package/dist/main-CnPQ_RYM.js +8948 -0
  116. package/dist/main.js +130 -130
  117. package/dist/style.css +1 -1
  118. package/package.json +1 -1
  119. package/dist/Article-D3N6eVpH.js +0 -195
  120. package/dist/Autocomplete-C1Q-qo5y.js +0 -49
  121. package/dist/Autocomplete-C_t_3Onz.js +0 -48
  122. package/dist/Callback-BcjLHYz6.js +0 -20
  123. package/dist/Cascader-BMs1Kw-s.js +0 -81
  124. package/dist/Cascader-BoZLMQjq.js +0 -41
  125. package/dist/Checkbox-DeuCkQ_E.js +0 -70
  126. package/dist/Code-CmB3ZGnM.js +0 -54
  127. package/dist/Code-Q9ETcIfA.js +0 -36
  128. package/dist/Code-hiW76EUm.js +0 -4
  129. package/dist/Code.vue_vue_type_style_index_0_lang-DJO46RBx.js +0 -59
  130. package/dist/Column-K0p0pVuf.js +0 -69
  131. package/dist/Comment-B_jDWUXE.js +0 -98
  132. package/dist/Compare-CziDSVLD.js +0 -37
  133. package/dist/Compare-DFDzyQIR.js +0 -57
  134. package/dist/Copy-gHXEFE58.js +0 -43
  135. package/dist/Custom-DS1OrDHT.js +0 -51
  136. package/dist/Date-BOrgXdKV.js +0 -37
  137. package/dist/DateRange-Clg_We_d.js +0 -57
  138. package/dist/DateTime-Ba-L9NIq.js +0 -38
  139. package/dist/Daterange-Gaj6hNOK.js +0 -57
  140. package/dist/Delete-HzVURBlh.js +0 -57
  141. package/dist/Dictionary-DKnp-UJn.js +0 -55
  142. package/dist/Email-CpOxaSSw.js +0 -48
  143. package/dist/Image-DRIunv3_.js +0 -9
  144. package/dist/Index-DSKuNKCT.js +0 -4
  145. package/dist/Index-QIBRYf1L.js +0 -4
  146. package/dist/Index-ZOfKMgat.js +0 -4
  147. package/dist/Index-bxLda8lZ.js +0 -174
  148. package/dist/Int-DmNjhEfK.js +0 -38
  149. package/dist/Int-nUzbSSOv.js +0 -41
  150. package/dist/List-gNI3y_wH.js +0 -74
  151. package/dist/Maintaince-pTASKuMA.js +0 -14
  152. package/dist/Month-CHfaIo8p.js +0 -38
  153. package/dist/Month-DgztqRaq.js +0 -37
  154. package/dist/Paging-CBgVct8q.js +0 -95
  155. package/dist/QueryApi-Wf86Sm6m.js +0 -13
  156. package/dist/RichText-Cc_jptgY.js +0 -41
  157. package/dist/Select-wxKjwxJj.js +0 -80
  158. package/dist/Text-DgZjeg-u.js +0 -4
  159. package/dist/Text-GuLK7BYX.js +0 -53
  160. package/dist/Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js +0 -53
  161. package/dist/TextLink-B_Ur1pg0.js +0 -59
  162. package/dist/Time-CmyrAm3i.js +0 -37
  163. package/dist/Timeline-B85T2wBn.js +0 -53
  164. package/dist/Tree-OqvNLgYj.js +0 -118
  165. package/dist/TreeNode-Ba2f55wK.js +0 -37
  166. package/dist/Upload-D9HeSZCg.js +0 -68
  167. package/dist/Upload-DXADyB6r.js +0 -147
  168. package/dist/UploadApi-DAT-xdsM.js +0 -13
  169. package/dist/Year-Dx_qNPrz.js +0 -41
  170. package/dist/assets/halo-fe-idvmXC0t.js +0 -15923
  171. package/dist/main-COiaaxGk.js +0 -3542
@@ -1,174 +0,0 @@
1
- import { defineComponent as H, ref as u, onMounted as Q, computed as S, watch as j, resolveComponent as c, openBlock as d, createElementBlock as C, createVNode as g, unref as l, withCtx as p, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as R, isRef as $, withKeys as L, normalizeClass as D, withModifiers as G, createTextVNode as T, Fragment as Z, renderList as J, nextTick as K } from "vue";
2
- import { useRoute as W } from "vue-router";
3
- import { G as X, d as w, aN as Y, P as i, Q as ee, $ as F, K as te, c as le } from "./assets/halo-fe-idvmXC0t.js";
4
- import { r as N } from "./main-COiaaxGk.js";
5
- const oe = { class: "login-container" }, re = { class: "title-container" }, se = { class: "title" }, ne = /* @__PURE__ */ n("span", { class: "svg-container" }, [
6
- /* @__PURE__ */ n("i", { class: "fa fa-user" })
7
- ], -1), ae = /* @__PURE__ */ n("span", { class: "svg-container" }, [
8
- /* @__PURE__ */ n("i", { class: "fa fa-key" })
9
- ], -1), ie = { class: "btn-others" }, ue = ["href"], de = ["innerHTML"], ye = /* @__PURE__ */ H({
10
- __name: "Index",
11
- setup(fe) {
12
- let a = u({ id: "", secret: "" }), f = u("password"), s = u(!1), _ = u(!1), U = u(), V = u(), h = u(), x = W(), I = {
13
- id: [{
14
- required: !0,
15
- trigger: "blur",
16
- validator: (t, e, r) => {
17
- 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")));
18
- }
19
- }]
20
- // secret: [{required: true, trigger: 'blur', validator: validateSecret}]
21
- }, M = (t) => {
22
- 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);
23
- }, B = () => {
24
- f.value == "password" ? f.value = "" : f.value = "password", K(() => {
25
- h.value.focus();
26
- });
27
- }, E = async (t) => {
28
- _.value = !0, U.value.validate(async (e) => {
29
- if (!e)
30
- return _.value = !1, !1;
31
- (await F.sso.create(t)).login(a.value).then(({ data: m }) => {
32
- te.getBackUrl() ? N.toBackUrl() : N.to("/");
33
- }).finally(() => {
34
- K(() => {
35
- _.value = !1;
36
- });
37
- });
38
- });
39
- }, O = async (t) => {
40
- let e = await F.sso.create(t), r = x.query.return_url, m = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${r}`;
41
- return e.loginUrl(le.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(m));
42
- }, q = (t) => Object.keys(t).reduce((e, r) => (e[r] = t[r], e), {});
43
- Q(async () => {
44
- X.setI18nTitle("common.login");
45
- for (let t = 0; t < w.ssos.length; t++) {
46
- let e = w.ssos[t];
47
- e.loginUrl = await O(e.type);
48
- }
49
- y.value != null && (a.value.id == "" ? V.value.focus() : a.value.secret == "" && h.value.focus());
50
- });
51
- let y = S(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
52
- return j(() => x, (t) => {
53
- debugger;
54
- const e = t.query;
55
- e && q(e);
56
- }), (t, e) => {
57
- const r = c("el-input"), m = c("el-form-item"), b = c("el-tooltip"), A = c("el-button"), P = c("router-link"), z = c("el-form");
58
- return d(), C("div", oe, [
59
- g(z, {
60
- ref_key: "loginFormRef",
61
- ref: U,
62
- autocomplete: "on",
63
- "label-position": "left",
64
- model: l(a),
65
- rules: l(I)
66
- }, {
67
- default: p(() => [
68
- n("div", re, [
69
- n("h3", se, k(l(Y)("title")), 1)
70
- ]),
71
- l(y) ? (d(), v(m, {
72
- key: 0,
73
- prop: "id"
74
- }, {
75
- default: p(() => [
76
- ne,
77
- g(r, {
78
- ref_key: "idRef",
79
- ref: V,
80
- placeholder: l(i)("common.username_or_email"),
81
- name: "id",
82
- type: "text",
83
- tabindex: "1",
84
- autocomplete: "on",
85
- modelValue: l(a).id,
86
- "onUpdate:modelValue": e[0] || (e[0] = (o) => l(a).id = o)
87
- }, null, 8, ["placeholder", "modelValue"])
88
- ]),
89
- _: 1
90
- })) : R("", !0),
91
- l(y) ? (d(), v(b, {
92
- key: 1,
93
- content: "Caps lock is On",
94
- placement: "right",
95
- manual: "",
96
- modelValue: l(s),
97
- "onUpdate:modelValue": e[5] || (e[5] = (o) => $(s) ? s.value = o : s = o)
98
- }, {
99
- default: p(() => [
100
- g(m, { prop: "secret" }, {
101
- default: p(() => [
102
- ae,
103
- (d(), v(r, {
104
- ref_key: "secretRef",
105
- ref: h,
106
- key: l(f),
107
- type: l(f),
108
- placeholder: l(i)("common.password"),
109
- name: "secret",
110
- tabindex: "2",
111
- autocomplete: "on",
112
- onKeyup: [
113
- L(l(M), ["native"]),
114
- e[2] || (e[2] = L((o) => l(E)("Bearer"), ["enter", "native"]))
115
- ],
116
- onBlur: e[1] || (e[1] = (o) => $(s) ? s.value = !1 : s = !1),
117
- modelValue: l(a).secret,
118
- "onUpdate:modelValue": e[3] || (e[3] = (o) => l(a).secret = o)
119
- }, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
120
- n("span", {
121
- class: "btn-pwd",
122
- onClick: e[4] || (e[4] = //@ts-ignore
123
- (...o) => l(B) && l(B)(...o))
124
- }, [
125
- n("i", {
126
- class: D(l(f) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
127
- }, null, 2)
128
- ])
129
- ]),
130
- _: 1
131
- })
132
- ]),
133
- _: 1
134
- }, 8, ["modelValue"])) : R("", !0),
135
- l(y) ? (d(), v(A, {
136
- key: 2,
137
- type: "primary",
138
- class: "btn-login",
139
- loading: l(_),
140
- onClick: e[6] || (e[6] = G((o) => l(E)("Bearer"), ["prevent"]))
141
- }, {
142
- default: p(() => [
143
- T(k(l(i)("common.login")), 1)
144
- ]),
145
- _: 1
146
- }, 8, ["loading"])) : R("", !0),
147
- n("div", ie, [
148
- (d(!0), C(Z, null, J(l(w).ssos.filter((o) => o.type.toUpperCase() != "BEARER"), (o) => (d(), C("a", {
149
- href: o.loginUrl
150
- }, k(l(i)(o.text)), 9, ue))), 256)),
151
- g(P, {
152
- class: "btn-register",
153
- to: "/register"
154
- }, {
155
- default: p(() => [
156
- T(k(l(i)("common.register")), 1)
157
- ]),
158
- _: 1
159
- })
160
- ])
161
- ]),
162
- _: 1
163
- }, 8, ["model", "rules"]),
164
- n("div", {
165
- class: "powered-by",
166
- innerHTML: l(i)("sys.powered_by")
167
- }, null, 8, de)
168
- ]);
169
- };
170
- }
171
- });
172
- export {
173
- ye as default
174
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as f, toRefs as _, computed as h, resolveComponent as b, openBlock as V, createBlock as g, unref as e, withKeys as K, isRef as y } from "vue";
2
- import { P as N, aK as k } from "./assets/halo-fe-idvmXC0t.js";
3
- const D = /* @__PURE__ */ f({
4
- __name: "Int",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- searchData: {},
10
- modelValue: {}
11
- },
12
- emits: ["change", "submit", "update:modelValue"],
13
- setup(m, { emit: u }) {
14
- let l = u, s = m, { table: p, field: r, searchData: x, modelValue: i } = _(s), d = () => {
15
- l("submit");
16
- }, o = h({
17
- get() {
18
- return i.value;
19
- },
20
- set(t) {
21
- isNaN(t) && (t = null), l("update:modelValue", t), l("change", t);
22
- }
23
- });
24
- return (t, n) => {
25
- const c = b("el-input-number");
26
- return V(), g(c, {
27
- placeholder: e(N)("common.please_input") + e(k)(e(p).name, e(r).name),
28
- "controls-position": "right",
29
- onKeyup: K(e(d), ["enter", "native"]),
30
- modelValue: e(o),
31
- "onUpdate:modelValue": n[0] || (n[0] = (a) => y(o) ? o.value = a : o = a)
32
- }, null, 8, ["placeholder", "onKeyup", "modelValue"]);
33
- };
34
- }
35
- });
36
- export {
37
- D as default
38
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as c, toRefs as f, computed as V, resolveComponent as _, openBlock as g, createBlock as h, unref as e, withKeys as v, isRef as y } from "vue";
2
- import { Q as K, aM as k } from "./assets/halo-fe-idvmXC0t.js";
3
- const C = /* @__PURE__ */ c({
4
- __name: "Int",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(r, { emit: i }) {
15
- let l = i, s = r, { table: d, field: a, set: w, modelValue: n } = f(s), p = () => {
16
- l("submit");
17
- }, t = V({
18
- get() {
19
- if (K.isNumber(n.value))
20
- return n.value;
21
- },
22
- set(o) {
23
- l("update:modelValue", o), l("change", o);
24
- }
25
- });
26
- return (o, u) => {
27
- const b = _("el-input-number");
28
- return g(), h(b, {
29
- "aria-label": e(k)(e(d).name, e(a).name),
30
- "controls-position": "right",
31
- disabled: e(a).control.readonly,
32
- onKeyup: v(e(p), ["enter", "native"]),
33
- modelValue: e(t),
34
- "onUpdate:modelValue": u[0] || (u[0] = (m) => y(t) ? t.value = m : t = m)
35
- }, null, 8, ["aria-label", "disabled", "onKeyup", "modelValue"]);
36
- };
37
- }
38
- });
39
- export {
40
- C as default
41
- };
@@ -1,74 +0,0 @@
1
- import { defineComponent as B, toRefs as K, ref as u, watch as E, openBlock as F, createBlock as G, resolveDynamicComponent as T, unref as t, withCtx as U, createElementVNode as V, toDisplayString as $ } from "vue";
2
- import { K as n, e as j, G as A, s as H } from "./assets/halo-fe-idvmXC0t.js";
3
- import { s as d } from "./main-COiaaxGk.js";
4
- const I = { class: "not-support" }, W = /* @__PURE__ */ B({
5
- __name: "List",
6
- props: {
7
- base: {},
8
- route: {},
9
- url: {},
10
- win: {}
11
- },
12
- emits: ["load", "navigate"],
13
- setup(b, { expose: S, emit: P }) {
14
- let h = P, k = b, { url: m, base: p, route: r } = K(k), f = u(), i = u(), s = u(), y = u(), g = u(), o = u(), c = u(), q = (e) => {
15
- let l = n.getPath(e), a = n.getPath(m.value);
16
- return l != a;
17
- }, C = (e) => {
18
- let l = n.getPath(m.value), a = n.getPath(e);
19
- return l != a;
20
- }, x = (e) => {
21
- var a;
22
- let l = j(e.module.type, e.module.name);
23
- A.setTitle(l, e.module.env), f.value = e.module, i.value = d.expandSchema(e.schema), s.value = (a = i.value) == null ? void 0 : a[0], y.value = e.next, g.value = d.expandSet(e.schema, e.set), c.value = d.getConditionForm(i.value, r.value.query.condition);
24
- }, v = (e = null, l = null) => {
25
- let a = e ?? r.value.query, N = n.getUrl(r.value.path, a);
26
- h("load", N, !1, l);
27
- }, R = (e) => {
28
- v(null, e);
29
- }, w = (e) => {
30
- h("navigate", e);
31
- }, D = async (e) => {
32
- let l = r.value.query;
33
- l.condition = H.encode(c.value), v(l, e);
34
- }, _ = () => {
35
- v();
36
- }, z = (e, l) => {
37
- if (!o.value || !o.value.keyboard)
38
- return !1;
39
- o.value.keyboard(e, l);
40
- }, L = (e) => {
41
- if (!o.value || !o.value.resize)
42
- return !1;
43
- o.value.resize(e);
44
- };
45
- return (() => {
46
- x(p.value.data);
47
- })(), E(() => p.value, (e) => {
48
- x(e.data);
49
- }), S({ shouldLoad: q, shouldSpin: C, refresh: _, keyboard: z, resize: L }), (e, l) => (F(), G(T(`list-${t(s).layouts[0].type.toLowerCase()}`), {
50
- ref_key: "listRef",
51
- ref: o,
52
- route: t(r),
53
- module: t(f),
54
- schema: t(i),
55
- table: t(s),
56
- layout: t(s).layouts[0],
57
- next: t(y),
58
- set: t(g),
59
- "search-data": t(c),
60
- onSucceed: t(R),
61
- onSearch: t(D),
62
- onNavigate: t(w),
63
- onRefresh: t(_)
64
- }, {
65
- default: U(() => [
66
- V("div", I, "未支持的列表布局方式:" + $(t(s).layouts[0].type), 1)
67
- ]),
68
- _: 1
69
- }, 40, ["route", "module", "schema", "table", "layout", "next", "set", "search-data", "onSucceed", "onSearch", "onNavigate", "onRefresh"]));
70
- }
71
- });
72
- export {
73
- W as default
74
- };
@@ -1,14 +0,0 @@
1
- import { defineComponent as t, openBlock as n, createElementBlock as o, createElementVNode as e, toDisplayString as s, unref as c } from "vue";
2
- import { d as i } from "./assets/halo-fe-idvmXC0t.js";
3
- const a = { class: "maintenance" }, r = /* @__PURE__ */ e("div", { class: "title" }, "系统维护中", -1), _ = { class: "description" }, u = /* @__PURE__ */ t({
4
- __name: "Maintaince",
5
- setup(d) {
6
- return (l, m) => (n(), o("div", a, [
7
- r,
8
- e("div", _, s(c(i)), 1)
9
- ]));
10
- }
11
- });
12
- export {
13
- u as default
14
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as i, toRefs as f, computed as _, resolveComponent as V, openBlock as h, createBlock as b, unref as e, isRef as k } from "vue";
2
- import { aL as Y } from "./assets/halo-fe-idvmXC0t.js";
3
- const x = /* @__PURE__ */ i({
4
- __name: "Month",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(n, { emit: r }) {
15
- let o = r, p = n, { table: u, field: a, set: g, modelValue: s } = f(p), l = _({
16
- get() {
17
- return s.value;
18
- },
19
- set(t) {
20
- o("update:modelValue", t), o("change", t);
21
- }
22
- });
23
- return (t, m) => {
24
- const c = V("el-date-picker");
25
- return h(), b(c, {
26
- type: "month",
27
- placeholder: e(Y)(e(u).name, e(a).name),
28
- "value-format": "YYYY-MM",
29
- disabled: e(a).control.readonly,
30
- modelValue: e(l),
31
- "onUpdate:modelValue": m[0] || (m[0] = (d) => k(l) ? l.value = d : l = d)
32
- }, null, 8, ["placeholder", "disabled", "modelValue"]);
33
- };
34
- }
35
- });
36
- export {
37
- x as default
38
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as i, toRefs as f, computed as h, resolveComponent as _, openBlock as V, createBlock as b, unref as e, isRef as k } from "vue";
2
- import { aL as Y } from "./assets/halo-fe-idvmXC0t.js";
3
- const x = /* @__PURE__ */ i({
4
- __name: "Month",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- searchData: {},
10
- modelValue: {}
11
- },
12
- emits: ["submit", "change", "update:modelValue"],
13
- setup(n, { emit: r }) {
14
- let a = r, p = n, { table: u, field: o, searchData: g, modelValue: s } = f(p), l = h({
15
- get() {
16
- return s.value;
17
- },
18
- set(t) {
19
- a("update:modelValue", t), a("change", t);
20
- }
21
- });
22
- return (t, m) => {
23
- const c = _("el-date-picker");
24
- return V(), b(c, {
25
- type: "month",
26
- placeholder: e(Y)(e(u).name, e(o).name),
27
- "value-format": "YYYY-MM",
28
- disabled: e(o).control.readonly,
29
- modelValue: e(l),
30
- "onUpdate:modelValue": m[0] || (m[0] = (d) => k(l) ? l.value = d : l = d)
31
- }, null, 8, ["placeholder", "disabled", "modelValue"]);
32
- };
33
- }
34
- });
35
- export {
36
- x as default
37
- };
@@ -1,95 +0,0 @@
1
- import { defineComponent as V, toRefs as $, ref as r, onMounted as j, watch as A, unref as t, openBlock as E, createBlock as H, createCommentVNode as I } from "vue";
2
- import { K as s, e as Q, G as W, t as X, s as U } from "./assets/halo-fe-idvmXC0t.js";
3
- import { s as d } from "./main-COiaaxGk.js";
4
- import { _ as Y } from "./Index.vue_vue_type_script_setup_true_lang-DaoT5edv.js";
5
- const te = /* @__PURE__ */ V({
6
- __name: "Paging",
7
- props: {
8
- base: {},
9
- route: {},
10
- url: {},
11
- win: {}
12
- },
13
- emits: ["navigate", "load"],
14
- setup(b, { expose: k, emit: z }) {
15
- let m = z, P = b, { url: p, base: y, route: u } = $(P), f = r(), v = r(), c = r(), h = r(), x = r(), C = r(), g = r(), o = r(), N = (e) => !0, L = (e) => {
16
- let a = s.getPath(p.value), l = s.getPath(e);
17
- return a != l;
18
- }, R = (e = null) => {
19
- _(e);
20
- }, w = () => {
21
- }, S = (e) => {
22
- var l;
23
- let a = Q(e.module.type, e.module.name);
24
- W.setTitle(a, e.module.env), f.value = e.module, x.value = e.next, C.value = d.expandSet(e.schema, e.set), v.value = d.expandSchema(e.schema), c.value = (l = v.value) == null ? void 0 : l[0], h.value = c.value.layouts[0], g.value = d.getConditionForm(v.value, u.value.query.condition);
25
- }, q = (e = null, a = null) => {
26
- let l = e ?? u.value.query, n = s.getUrl(u.value.path, l);
27
- m("load", n, !1, (T) => {
28
- a && a(T);
29
- });
30
- }, i = (e, a) => {
31
- m("navigate", e, a);
32
- }, B = async (e) => {
33
- let a = u.value.query;
34
- a.page = 1;
35
- let l = X.pure(g.value);
36
- a.condition = U.encode(l);
37
- let n = s.getUrl(u.value.path, a);
38
- n == p.value ? q(a, e) : i(n, e);
39
- }, D = (e, a) => {
40
- let l = u.value.query;
41
- l.order_by = U.encode(JSON.stringify(e));
42
- let n = s.getUrl(u.value.path, l);
43
- i(n, a);
44
- }, K = (e, a = null) => {
45
- let l = u.value.query;
46
- l.page = e;
47
- let n = s.getUrl(u.value.path, l);
48
- i(n, a);
49
- }, F = (e, a = null) => {
50
- let l = u.value.query;
51
- l.size = e;
52
- let n = s.getUrl(u.value.path, l);
53
- i(n, a);
54
- }, G = (e) => {
55
- h.value = c.value.layouts.find((a) => a.type == e);
56
- }, J = () => {
57
- S(y.value.data);
58
- }, _ = (e = null) => q(null, e), M = (e) => {
59
- if (!o.value || !o.value.resize)
60
- return !1;
61
- o.value.resize(e);
62
- }, O = (e, a) => {
63
- if (!o.value || !o.value.keyboard)
64
- return !1;
65
- o.value.keyboard(e, a);
66
- };
67
- return j(async () => {
68
- J();
69
- }), A(() => y.value, (e) => {
70
- S(e.data);
71
- }), k({ shouldLoad: N, shouldSpin: L, refresh: _, keyboard: O, resize: M }), (e, a) => t(h) ? (E(), H(Y, {
72
- key: 0,
73
- ref_key: "pagingRef",
74
- ref: o,
75
- module: t(f),
76
- next: t(x),
77
- set: t(C),
78
- schema: t(v),
79
- table: t(c),
80
- layout: t(h),
81
- "search-data": t(g),
82
- onNavigate: t(i),
83
- onSort: t(D),
84
- onSearch: t(B),
85
- onPageChange: t(K),
86
- onSizeChange: t(F),
87
- onLayoutChange: t(G),
88
- onSucceed: t(R),
89
- onClose: t(w)
90
- }, null, 8, ["module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"])) : I("", !0);
91
- }
92
- });
93
- export {
94
- te as default
95
- };
@@ -1,13 +0,0 @@
1
- import { L as t } from "./assets/halo-fe-idvmXC0t.js";
2
- class e {
3
- /**
4
- * 查询代码语言和文本语言映射关系
5
- */
6
- static async loadCodeLanguage() {
7
- return t.post("/dictionary/code_language").then((a) => a.data);
8
- }
9
- }
10
- const n = e;
11
- export {
12
- n as Q
13
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as g, mergeModels as x, toRefs as S, useModel as M, ref as p, onMounted as w, computed as m, watch as v, openBlock as R, createBlock as b, unref as r, normalizeStyle as k, isRef as B } from "vue";
2
- import { a7 as C } from "./assets/halo-fe-idvmXC0t.js";
3
- const O = /* @__PURE__ */ g({
4
- __name: "RichText",
5
- props: /* @__PURE__ */ x({
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {}
11
- }, {
12
- modelValue: {},
13
- modelModifiers: {}
14
- }),
15
- emits: ["update:modelValue"],
16
- setup(n) {
17
- let f = n, { field: e, table: h, set: _, row: s } = S(f), u = M(n, "modelValue"), t = p({ readonly: !1, scrollTop: 0 }), d = p(), y = (l) => {
18
- a.value != null && (s.value[a.value.name] = l.scrollTop);
19
- }, T = () => e.value.control.height ? `height: ${e.value.control.height}px` : "min-height: 300px;", V = () => {
20
- t.value.readonly = e.value.control.readonly, t.value.scrollTop = i.value, d.value = T();
21
- };
22
- w(() => {
23
- V();
24
- });
25
- let i = m(() => a.value ? s.value[a.value.name] : null), a = m(() => e.value.control.scrollTop ? h.value.fields.find((o) => o.name == e.value.control.scrollTop) : null);
26
- return v(() => i.value, (l, o) => {
27
- t.value.scrollTop = l;
28
- }), v(() => e.value.control.readonly, (l, o) => {
29
- t.value.readonly = l;
30
- }), (l, o) => (R(), b(r(C), {
31
- style: k(r(d)),
32
- options: r(t),
33
- onScroll: r(y),
34
- modelValue: r(u),
35
- "onUpdate:modelValue": o[0] || (o[0] = (c) => B(u) ? u.value = c : u = c)
36
- }, null, 8, ["style", "options", "onScroll", "modelValue"]));
37
- }
38
- });
39
- export {
40
- O as default
41
- };
@@ -1,80 +0,0 @@
1
- import { defineComponent as E, toRefs as N, ref as d, computed as R, resolveComponent as c, openBlock as s, createBlock as f, unref as t, withKeys as S, withModifiers as L, isRef as M, withCtx as p, createElementBlock as h, Fragment as P, renderList as F, createElementVNode as U, toDisplayString as _, createCommentVNode as j } from "vue";
2
- import { P as q, aK as z, L as A } from "./assets/halo-fe-idvmXC0t.js";
3
- const G = { class: "option-text" }, H = {
4
- key: 0,
5
- class: "option-suffix"
6
- }, T = /* @__PURE__ */ E({
7
- __name: "Select",
8
- props: {
9
- schema: {},
10
- table: {},
11
- field: {},
12
- searchData: {},
13
- modelValue: { type: [String, Boolean] }
14
- },
15
- emits: ["change", "submit", "update:modelValue"],
16
- setup(v, { emit: x }) {
17
- let r = x, b = v, { schema: I, table: g, field: a, searchData: y, modelValue: V } = N(b), k = d(!1), i = d(), m = d(a.value.control.data.data), C = () => {
18
- r("submit");
19
- }, w = () => {
20
- }, B = (l) => {
21
- i.value = l, K();
22
- }, K = () => {
23
- let l = { text: i.value, conditions: [] };
24
- a.value.control.data.conditions.forEach((o) => {
25
- let u = y.value[o.table][o.field];
26
- l.conditions.push({ name: o.name, value: u });
27
- }), A.post(a.value.control.data.route, l).then(({ data: o }) => {
28
- m.value = o;
29
- }).finally(() => {
30
- k.value = !1;
31
- });
32
- }, n = R({
33
- get() {
34
- return V.value;
35
- },
36
- set(l) {
37
- r("update:modelValue", l), r("change", l);
38
- }
39
- });
40
- return (l, o) => {
41
- const u = c("el-option"), D = c("el-select");
42
- return s(), f(D, {
43
- ref: "selectRef",
44
- filterable: "",
45
- remote: "",
46
- "reserve-keyword": "",
47
- clearable: "",
48
- "default-first-option": "",
49
- "remote-show-suffix": "",
50
- placeholder: t(q)("common.please_choose") + t(z)(t(g).name, t(a).name),
51
- multiple: t(a).control.multiple,
52
- "loading-text": "加载中",
53
- "remote-method": t(B),
54
- disabled: t(a).control.readonly,
55
- onKeyup: S(L(t(C), ["alt"]), ["enter", "native"]),
56
- onChange: t(w),
57
- modelValue: t(n),
58
- "onUpdate:modelValue": o[0] || (o[0] = (e) => M(n) ? n.value = e : n = e)
59
- }, {
60
- default: p(() => [
61
- (s(!0), h(P, null, F(t(m), (e, J) => (s(), f(u, {
62
- label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
63
- value: e.value,
64
- key: e.value
65
- }, {
66
- default: p(() => [
67
- U("span", G, _(e.text), 1),
68
- e.suffix ? (s(), h("span", H, "(" + _(e.suffix) + ")", 1)) : j("", !0)
69
- ]),
70
- _: 2
71
- }, 1032, ["label", "value"]))), 128))
72
- ]),
73
- _: 1
74
- }, 8, ["placeholder", "multiple", "remote-method", "disabled", "onKeyup", "onChange", "modelValue"]);
75
- };
76
- }
77
- });
78
- export {
79
- T as default
80
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./Text.vue_vue_type_style_index_0_lang-CYGKr6vh.js";
2
- export {
3
- f as default
4
- };