halo-pc 1.0.27 → 1.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. package/dist/{Article-CTqryR4L.js → Article-CTzPZjf8.js} +75 -70
  2. package/dist/{ArticleFooter-BumGH5nC.js → ArticleFooter-jyfzfZHH.js} +23 -17
  3. package/dist/{Autocomplete-BNx0bErM.js → Autocomplete-D8ytFwqa.js} +1 -1
  4. package/dist/Autocomplete-DoUE3T0L.js +53 -0
  5. package/dist/Autocomplete-FGRT-2ru.js +54 -0
  6. package/dist/{CSharp-Dt6H75E9.js → CSharp-qh_kEfGr.js} +1 -1
  7. package/dist/{Calender-DhKZyJri.js → Calender-DOuq9uAK.js} +1 -1
  8. package/dist/Callback-DuaBaO1q.js +26 -0
  9. package/dist/Cascader-DgKBpjUK.js +47 -0
  10. package/dist/Cascader-s8VT55_K.js +87 -0
  11. package/dist/{Checkbox-C-iEGB0k.js → Checkbox-D9NUw4jZ.js} +1 -1
  12. package/dist/Checkbox-REcdbTXR.js +76 -0
  13. package/dist/Code-CBVRms_j.js +4 -0
  14. package/dist/Code-DZ-bK9UT.js +60 -0
  15. package/dist/Code-DfnLveft.js +42 -0
  16. package/dist/{Code-JtSSnUWC.js → Code-loaJtKGd.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BVLhtr1Y.js +65 -0
  18. package/dist/Column-B96LbQFW.js +75 -0
  19. package/dist/Comment-bPWbEkgq.js +104 -0
  20. package/dist/Compare-D4O0qmYv.js +44 -0
  21. package/dist/{Compare-DZVrBYEh.js → Compare-dimRoHFX.js} +25 -19
  22. package/dist/Copy-CKLxfWd4.js +49 -0
  23. package/dist/Custom-Bwyy4_tA.js +57 -0
  24. package/dist/{DataExport-DSz5371s.js → DataExport-Bp50K0_6.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DL9q81Ti.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
  26. package/dist/{DataImport-CX7G70a7.js → DataImport-BWI4eCxA.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-DCS1SfNf.js +176 -0
  28. package/dist/Date-Cf64NT4R.js +43 -0
  29. package/dist/{Date-ytWe2gz8.js → Date-FBemqmex.js} +1 -1
  30. package/dist/DateRange-D5kvmDIo.js +63 -0
  31. package/dist/DateTime-CTGuyJ4w.js +44 -0
  32. package/dist/{DateTime-p6YgmtGd.js → DateTime-Cvnnthwx.js} +1 -1
  33. package/dist/{DateTimeRange-DGobnXqs.js → DateTimeRange-Gb33uiRV.js} +17 -11
  34. package/dist/Daterange-CfAdeV7J.js +63 -0
  35. package/dist/{Decimal-BvyzJq1c.js → Decimal-B-fyPiuP.js} +1 -1
  36. package/dist/Delete-DhbWFnzt.js +62 -0
  37. package/dist/{Detail-DZJ0aUFr.js → Detail-DV-JRRLT.js} +22 -17
  38. package/dist/Dictionary-b_mbt-WU.js +59 -0
  39. package/dist/Email-C2Yl7bMF.js +54 -0
  40. package/dist/{File-BEBElTSS.js → File-D57qYYt1.js} +32 -27
  41. package/dist/{Image-DDK05SW7.js → Image-BKNUY356.js} +1 -1
  42. package/dist/{Index-CuEyzMd0.js → Index-BPfkpoVf.js} +25 -20
  43. package/dist/Index-BUCyMvJX.js +4 -0
  44. package/dist/Index-BtxNIZsx.js +4 -0
  45. package/dist/Index-C5WYmq9P.js +4 -0
  46. package/dist/{Index-DPwdcUO4.js → Index-CSzgmzRG.js} +1 -1
  47. package/dist/Index-ChWD2gJt.js +4 -0
  48. package/dist/{Index-BiF8qEWf.js → Index-P3uHTgX-.js} +1 -1
  49. package/dist/Index-PB-VnCO7.js +178 -0
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-Bp091zxs.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -15
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +17 -12
  52. package/dist/{Install-CxuoWpHC.js → Install-o0VJz9Rl.js} +27 -22
  53. package/dist/Int-BNwPsWfI.js +44 -0
  54. package/dist/Int-DN3vf18e.js +46 -0
  55. package/dist/List-DRAtVlgE.js +79 -0
  56. package/dist/Maintaince-CdVk7qiu.js +20 -0
  57. package/dist/{Markdown-x1hASyA-.js → Markdown-CFwOeXFg.js} +1 -1
  58. package/dist/Month-CrvLoEQy.js +43 -0
  59. package/dist/Month-CyB2owvQ.js +44 -0
  60. package/dist/{Month-Bb0tgF-k.js → Month-DsKmd425.js} +1 -1
  61. package/dist/{Normal-CYmy5sN7.js → Normal-B_SPQW9Z.js} +70 -66
  62. package/dist/Paging-CzCgExDM.js +99 -0
  63. package/dist/{PagingHeader-DWbFl1do.js → PagingHeader-Bfnnsv6m.js} +30 -24
  64. package/dist/{PagingRow-CR2N1vgm.js → PagingRow-BXaakA5y.js} +26 -20
  65. package/dist/QueryApi-Cah37Kwx.js +20 -0
  66. package/dist/{Racebar-BsgDK6Zf.js → Racebar-6FTe1C4G.js} +42 -37
  67. package/dist/{Radio-B3Af-uZE.js → Radio-rym8cXJN.js} +1 -1
  68. package/dist/{Register-Cwr3iIZm.js → Register-v__-wpY2.js} +44 -40
  69. package/dist/RichText-BDP5KDin.js +47 -0
  70. package/dist/{SearchFooter-DiILcc_U.js → SearchFooter-0mHMD0Xf.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BsIg4tbY.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
  72. package/dist/{SearchForm-BOw_kHs2.js → SearchForm-jSIiiv2r.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-GMYFgf1H.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +40 -36
  74. package/dist/Select-Cpj86Kaw.js +86 -0
  75. package/dist/Select-DKjXN6Ag.js +117 -0
  76. package/dist/{Select-BdYG1KQE.js → Select-R0EsEK0_.js} +1 -1
  77. package/dist/{Single-DqCIZBIB.js → Single-fIhSt1dN.js} +103 -99
  78. package/dist/{Statistic-B9ZcUUk1.js → Statistic-DM3Fr6sO.js} +37 -33
  79. package/dist/{Stock-BnBNtuo7.js → Stock-BemUvyqK.js} +1 -1
  80. package/dist/{Stock-BiSr7zAF.js → Stock-DUrxld5G.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-CZPeF39q.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +31 -26
  82. package/dist/{Switch-BE4dQcja.js → Switch-QdLS7c3q.js} +1 -1
  83. package/dist/{Table-CaH_zu8W.js → Table-BcVHufy3.js} +77 -74
  84. package/dist/{Table-e0uLPRLG.js → Table-C4dGV7IQ.js} +78 -73
  85. package/dist/{Text-BDAob4mp.js → Text-BJNnrW9U.js} +21 -15
  86. package/dist/{Text-BAw88r5O.js → Text-BNAKwCCe.js} +19 -13
  87. package/dist/Text-D3DqixJp.js +4 -0
  88. package/dist/Text.vue_vue_type_style_index_0_lang-B253xD5Z.js +59 -0
  89. package/dist/TextLink-D-9pICMh.js +65 -0
  90. package/dist/{Textarea-CU5PjIoa.js → Textarea-Cr5zt_LK.js} +1 -1
  91. package/dist/Time-DQJPtNWo.js +43 -0
  92. package/dist/Timeline-Dy37Cou2.js +59 -0
  93. package/dist/Tree-3zBuSLBv.js +122 -0
  94. package/dist/{Tree-D-v632h1.js → Tree-4v2brZjr.js} +105 -101
  95. package/dist/TreeNode-CvS8mLCJ.js +42 -0
  96. package/dist/{Update-DRAFce7_.js → Update-Cp50LcVx.js} +20 -15
  97. package/dist/{UpdateChild-DMC0FG4Z.js → UpdateChild-CFi_DjLv.js} +23 -17
  98. package/dist/Upload-Bqp-5cFa.js +72 -0
  99. package/dist/Upload-D-hvecbh.js +150 -0
  100. package/dist/UploadApi-CC5hZcM_.js +20 -0
  101. package/dist/Year-CYSncKVk.js +47 -0
  102. package/dist/{Year-CpcMBvQ7.js → Year-q0tWWwkv.js} +1 -1
  103. package/dist/assets/clone-BZn0cTAu.js +134 -0
  104. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  105. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  106. package/dist/assets/moment-h96o7c8I.js +2578 -0
  107. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  108. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  109. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  110. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  111. package/dist/main-D-QTCahZ.js +9107 -0
  112. package/dist/main.js +140 -140
  113. package/dist/style.css +1 -1
  114. package/package.json +1 -1
  115. package/dist/Autocomplete-C9RS9-qw.js +0 -48
  116. package/dist/Autocomplete-DIucpEpj.js +0 -49
  117. package/dist/Callback-D6G_933H.js +0 -20
  118. package/dist/Cascader-C6t8Q18c.js +0 -41
  119. package/dist/Cascader-F_XWwXKY.js +0 -81
  120. package/dist/Checkbox-ipHs0O-8.js +0 -70
  121. package/dist/Code-DKtqow6y.js +0 -36
  122. package/dist/Code-LeguA9RL.js +0 -54
  123. package/dist/Code-Q_6THgGl.js +0 -4
  124. package/dist/Code.vue_vue_type_style_index_0_lang-DmeXbg91.js +0 -59
  125. package/dist/Column-BeQwafyN.js +0 -70
  126. package/dist/Comment-DIcCHP9F.js +0 -98
  127. package/dist/Compare-Dzqm7kPE.js +0 -38
  128. package/dist/Copy-iLieXx22.js +0 -43
  129. package/dist/Custom-BGtEDHlD.js +0 -51
  130. package/dist/DataImport.vue_vue_type_script_setup_true_lang-BWS65Vp1.js +0 -172
  131. package/dist/Date-CNOCOcNz.js +0 -37
  132. package/dist/DateRange-CaIiObxN.js +0 -57
  133. package/dist/DateTime-CH6J1GoP.js +0 -38
  134. package/dist/Daterange-BUSKAGlK.js +0 -57
  135. package/dist/Delete-BeFC0gjD.js +0 -57
  136. package/dist/Dictionary-CsBiv-CI.js +0 -55
  137. package/dist/Email-Dwa6x3jW.js +0 -48
  138. package/dist/Index-Bpe7pY2Z.js +0 -4
  139. package/dist/Index-CUYQxzNd.js +0 -174
  140. package/dist/Index-DMnL8F7Y.js +0 -4
  141. package/dist/Index-DNG25ox2.js +0 -4
  142. package/dist/Index-DqUNI6MV.js +0 -4
  143. package/dist/Int-BFv18KXi.js +0 -38
  144. package/dist/Int-C0ijmdYS.js +0 -41
  145. package/dist/List-CfQzWq_5.js +0 -74
  146. package/dist/Maintaince-BzDEwQcU.js +0 -14
  147. package/dist/Month-Bp_Pfi_b.js +0 -37
  148. package/dist/Month-CKkjwzza.js +0 -38
  149. package/dist/Paging-DpoBp7x_.js +0 -95
  150. package/dist/QueryApi-VwISnk96.js +0 -13
  151. package/dist/RichText-CNahMrfb.js +0 -41
  152. package/dist/Select-BeNZqAP1.js +0 -112
  153. package/dist/Select-CqOE6uI8.js +0 -80
  154. package/dist/Text-5803XWI6.js +0 -4
  155. package/dist/Text.vue_vue_type_style_index_0_lang-D1JSHUmS.js +0 -53
  156. package/dist/TextLink-TYXcDAlo.js +0 -59
  157. package/dist/Time-Dd-Trib4.js +0 -37
  158. package/dist/Timeline-D6LCIkQp.js +0 -53
  159. package/dist/Tree-BKmFZrK3.js +0 -118
  160. package/dist/TreeNode-L_A5ZKy0.js +0 -37
  161. package/dist/Upload-DJRh4a7g.js +0 -68
  162. package/dist/Upload-Ozg_nOpI.js +0 -147
  163. package/dist/UploadApi-DVx69g-F.js +0 -13
  164. package/dist/Year-D7XGe2So.js +0 -41
  165. package/dist/assets/halo-fe-B-NiIGas.js +0 -12088
  166. package/dist/main-DB_sVyZe.js +0 -3620
@@ -1,174 +0,0 @@
1
- import { defineComponent as z, ref as u, onMounted as H, 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 L, withKeys as T, normalizeClass as P, withModifiers as Q, createTextVNode as $, Fragment as W, renderList as Z, nextTick as K } from "vue";
2
- import { useRoute as G } from "vue-router";
3
- import { J as X, d as w, j as Y, e as i, W as ee, E as F, K as te, D as le } from "./assets/halo-fe-B-NiIGas.js";
4
- import { r as M } from "./main-DB_sVyZe.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__ */ z({
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 = G(), N = {
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
- }, O = (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() ? M.toBackUrl() : M.to("/");
33
- }).finally(() => {
34
- K(() => {
35
- _.value = !1;
36
- });
37
- });
38
- });
39
- }, q = 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
- }, A = (t) => Object.keys(t).reduce((e, r) => (e[r] = t[r], e), {});
43
- H(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 q(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 && A(e);
56
- }), (t, e) => {
57
- const r = c("el-input"), m = c("el-form-item"), b = c("el-tooltip"), D = c("el-button"), I = c("router-link"), j = c("el-form");
58
- return d(), C("div", oe, [
59
- g(j, {
60
- ref_key: "loginFormRef",
61
- ref: U,
62
- autocomplete: "on",
63
- "label-position": "left",
64
- model: l(a),
65
- rules: l(N)
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) => L(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
- T(l(O), ["native"]),
114
- e[2] || (e[2] = T((o) => l(E)("Bearer"), ["enter", "native"]))
115
- ],
116
- onBlur: e[1] || (e[1] = (o) => L(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: P(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(D, {
136
- key: 2,
137
- type: "primary",
138
- class: "btn-login",
139
- loading: l(_),
140
- onClick: e[6] || (e[6] = Q((o) => l(E)("Bearer"), ["prevent"]))
141
- }, {
142
- default: p(() => [
143
- $(k(l(i)("common.login")), 1)
144
- ]),
145
- _: 1
146
- }, 8, ["loading"])) : R("", !0),
147
- n("div", ie, [
148
- (d(!0), C(W, null, Z(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(I, {
152
- class: "btn-register",
153
- to: "/register"
154
- }, {
155
- default: p(() => [
156
- $(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,4 +0,0 @@
1
- import { _ as f } from "./main-DB_sVyZe.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { l as f } from "./main-DB_sVyZe.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { f } from "./main-DB_sVyZe.js";
2
- export {
3
- f as default
4
- };
@@ -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 y, isRef as K } from "vue";
2
- import { e as k, aM as x } from "./assets/halo-fe-B-NiIGas.js";
3
- const N = /* @__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 o = u, r = m, { table: p, field: s, searchData: B, modelValue: i } = _(r), d = () => {
15
- o("submit");
16
- }, l = h({
17
- get() {
18
- return i.value;
19
- },
20
- set(t) {
21
- isNaN(t) && (t = null), o("update:modelValue", t), o("change", t);
22
- }
23
- });
24
- return (t, n) => {
25
- const c = b("el-input-number");
26
- return V(), g(c, {
27
- placeholder: e(k)("common.please_input") + e(x)(e(p).name, e(s).name),
28
- "controls-position": "right",
29
- onKeyup: y(e(d), ["enter", "native"]),
30
- modelValue: e(l),
31
- "onUpdate:modelValue": n[0] || (n[0] = (a) => K(l) ? l.value = a : l = a)
32
- }, null, 8, ["placeholder", "onKeyup", "modelValue"]);
33
- };
34
- }
35
- });
36
- export {
37
- N as default
38
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as c, 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 { W as K, aO as k } from "./assets/halo-fe-B-NiIGas.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 = _({
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 = V("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 Y, ref as u, watch as E, openBlock as F, createBlock as J, resolveDynamicComponent as K, unref as t, withCtx as T, createElementVNode as U, toDisplayString as V } from "vue";
2
- import { K as n, o as $, J as j, Y as A } from "./assets/halo-fe-B-NiIGas.js";
3
- import { s as d } from "./main-DB_sVyZe.js";
4
- const G = { class: "not-support" }, Q = /* @__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 } = Y(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 = $(e.module.type, e.module.name);
23
- j.setTitle(l, e.module.env), f.value = e.module, i.value = d.expandSchema(e.schema, e.set), 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 = A.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(), J(K(`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: T(() => [
66
- U("div", G, "未支持的列表布局方式:" + V(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
- Q 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-B-NiIGas.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,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 { aN as Y } from "./assets/halo-fe-B-NiIGas.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(d, { emit: r }) {
14
- let a = r, p = d, { 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] = (n) => k(l) ? l.value = n : l = n)
31
- }, null, 8, ["placeholder", "disabled", "modelValue"]);
32
- };
33
- }
34
- });
35
- export {
36
- x as default
37
- };
@@ -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 { aN as Y } from "./assets/halo-fe-B-NiIGas.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(d, { emit: r }) {
15
- let o = r, p = d, { 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] = (n) => k(l) ? l.value = n : l = n)
32
- }, null, 8, ["placeholder", "disabled", "modelValue"]);
33
- };
34
- }
35
- });
36
- export {
37
- x as default
38
- };
@@ -1,95 +0,0 @@
1
- import { defineComponent as V, toRefs as $, ref as r, onMounted as j, watch as A, unref as a, openBlock as E, createBlock as G, createCommentVNode as H } from "vue";
2
- import { K as s, o as I, J as Q, c as W, Y as U } from "./assets/halo-fe-B-NiIGas.js";
3
- import { s as m } from "./main-DB_sVyZe.js";
4
- import { _ as X } from "./Index.vue_vue_type_script_setup_true_lang-hjy21YuL.js";
5
- const ae = /* @__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 d = 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 l = s.getPath(p.value), t = s.getPath(e);
17
- return l != t;
18
- }, R = (e = null) => {
19
- _(e);
20
- }, Y = () => {
21
- }, S = (e) => {
22
- var t;
23
- let l = I(e.module.type, e.module.name);
24
- Q.setTitle(l, e.module.env), f.value = e.module, x.value = e.next, C.value = m.expandSet(e.schema, e.set), v.value = m.expandSchema(e.schema, e.set), c.value = (t = v.value) == null ? void 0 : t[0], h.value = c.value.layouts[0], g.value = m.getConditionForm(v.value, u.value.query.condition);
25
- }, q = (e = null, l = null) => {
26
- let t = e ?? u.value.query, n = s.getUrl(u.value.path, t);
27
- d("load", n, !1, (T) => {
28
- l && l(T);
29
- });
30
- }, i = (e, l) => {
31
- d("navigate", e, l);
32
- }, w = async (e) => {
33
- let l = u.value.query;
34
- l.page = 1;
35
- let t = W.pure(g.value);
36
- l.condition = U.encode(t);
37
- let n = s.getUrl(u.value.path, l);
38
- n == p.value ? q(l, e) : i(n, e);
39
- }, B = (e, l) => {
40
- let t = u.value.query;
41
- t.order_by = U.encode(JSON.stringify(e));
42
- let n = s.getUrl(u.value.path, t);
43
- i(n, l);
44
- }, D = (e, l = null) => {
45
- let t = u.value.query;
46
- t.page = e;
47
- let n = s.getUrl(u.value.path, t);
48
- i(n, l);
49
- }, J = (e, l = null) => {
50
- let t = u.value.query;
51
- t.size = e;
52
- let n = s.getUrl(u.value.path, t);
53
- i(n, l);
54
- }, F = (e) => {
55
- h.value = c.value.layouts.find((l) => l.type == e);
56
- }, K = () => {
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, l) => {
63
- if (!o.value || !o.value.keyboard)
64
- return !1;
65
- o.value.keyboard(e, l);
66
- };
67
- return j(async () => {
68
- K();
69
- }), A(() => y.value, (e) => {
70
- S(e.data);
71
- }), k({ shouldLoad: N, shouldSpin: L, refresh: _, keyboard: O, resize: M }), (e, l) => a(h) ? (E(), G(X, {
72
- key: 0,
73
- ref_key: "pagingRef",
74
- ref: o,
75
- module: a(f),
76
- next: a(x),
77
- set: a(C),
78
- schema: a(v),
79
- table: a(c),
80
- layout: a(h),
81
- "search-data": a(g),
82
- onNavigate: a(i),
83
- onSort: a(B),
84
- onSearch: a(w),
85
- onPageChange: a(D),
86
- onSizeChange: a(J),
87
- onLayoutChange: a(F),
88
- onSucceed: a(R),
89
- onClose: a(Y)
90
- }, null, 8, ["module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"])) : H("", !0);
91
- }
92
- });
93
- export {
94
- ae as default
95
- };
@@ -1,13 +0,0 @@
1
- import { T as t } from "./assets/halo-fe-B-NiIGas.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 f, 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-B-NiIGas.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 v = n, { field: e, table: h, set: _, row: s } = S(v), u = M(n, "modelValue"), t = p({ readonly: !1, scrollTop: 0 }), i = 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 = d.value, i.value = T();
21
- };
22
- w(() => {
23
- V();
24
- });
25
- let d = 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 f(() => d.value, (l, o) => {
27
- t.value.scrollTop = l;
28
- }), f(() => e.value.control.readonly, (l, o) => {
29
- t.value.readonly = l;
30
- }), (l, o) => (R(), b(r(C), {
31
- style: k(r(i)),
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
- };