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,147 @@
1
+ import { defineComponent as Y, toRefs as Z, ref as p, onMounted as ee, computed as U, watch as le, resolveComponent as x, openBlock as k, createElementBlock as A, normalizeClass as te, unref as t, createVNode as N, withCtx as F, createBlock as ae, createTextVNode as oe, toDisplayString as re, isRef as ie, createElementVNode as ue } from "vue";
2
+ import { d as ne, e as se, f as I, M as de, h as P, A as s, C as B, F as H, U as T, g as pe } 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 "./QueryApi-BLc_au6L.js";
8
+ import { U as me } from "./UploadApi-vYU0Jda6.js";
9
+ const ce = {
10
+ key: 0,
11
+ class: "fa fa-upload"
12
+ }, ve = ["src"], Ue = /* @__PURE__ */ Y({
13
+ __name: "Upload",
14
+ props: {
15
+ schema: {},
16
+ table: {},
17
+ field: {},
18
+ set: {},
19
+ row: {},
20
+ modelValue: {}
21
+ },
22
+ emits: ["submit", "change", "update:modelValue"],
23
+ setup($, { emit: z }) {
24
+ let g = z, E = $, { table: d, field: r, row: h, set: fe, modelValue: L } = Z(E), b = ne(), M = se(), m = p(!1), C = p({}), c = p([]), R = p(), O = p(), f = !0, _ = p({ action: "", data: null }), D = (e) => {
25
+ me.getUploadToken().then((l) => {
26
+ e.forEach((i) => {
27
+ let a = `${b.upload.address}/api/objects/download?slug=${i[0]}&token=${l}`;
28
+ c.value.push({ name: i[1], url: a });
29
+ });
30
+ });
31
+ }, q = async (e) => {
32
+ f = !1;
33
+ let l = `/upload?table=${d.value.name}&field=${r.value.name}`;
34
+ return _.value.action = I.api.url + l, C.value.Authorization = await M.getAuthorization(l), r.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (de.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
35
+ }, G = (e, l) => {
36
+ f = !1;
37
+ let a = [e.name.replace(I.api.url, "")];
38
+ return P.post("/upload/delete", { files: a }).then(({ data: o }) => {
39
+ let u = l.indexOf(e), V = s.removeIndex(n.value, u, ",");
40
+ if (g("update:modelValue", V), r.value.control.name) {
41
+ let v = d.value.fields.find((S) => S.name == r.value.control.name), y = B.getValue(o.value, u, d.value, v), w = s.removeIndex(y, u, ",");
42
+ B.setValue(w, o.value, d.value, u, v);
43
+ }
44
+ return Promise.resolve();
45
+ }).catch(() => Promise.reject());
46
+ }, J = (e) => {
47
+ m.value = !0, R.value = e.url;
48
+ }, K = (e, l, i) => {
49
+ }, Q = (e, l) => {
50
+ P.handleResponseBody(e).then((i) => {
51
+ let { name: a, url: o } = i.data[0];
52
+ b.upload.method == "box" || H.isImage(o) || (l.url = T.getFileIcon(o));
53
+ let V = s.split(n.value, ",", o).join(",");
54
+ if (n.value = V, r.value.control.name) {
55
+ let v = d.value.fields.find((S) => S.name == r.value.control.name), y = h.value[v.value], w = s.split(y, ",", a);
56
+ h.value[v.value] = w.join(",");
57
+ }
58
+ }).catch(() => {
59
+ c.value = [];
60
+ }).finally(() => {
61
+ f = !0;
62
+ });
63
+ }, j = () => {
64
+ if (c.value = [], !n.value)
65
+ return;
66
+ let e = s.split(n.value, ","), l = [];
67
+ if (r.value.control.name) {
68
+ let a = d.value.fields.find((u) => u.name == r.value.control.name), o = h.value[a.name];
69
+ l = s.split(o, ",");
70
+ }
71
+ let i = s.combine(e, l);
72
+ if (b.upload.method == "box")
73
+ D(i);
74
+ else {
75
+ let a = pe.httpOrHttps(n.value) ? n.value : I.api.url + n.value, o = { name: a, url: null };
76
+ H.isImage(a) ? o.url = a : o.url = T.getFileIcon(a), c.value.push(o);
77
+ }
78
+ };
79
+ ee(() => {
80
+ j();
81
+ });
82
+ let n = U({
83
+ get() {
84
+ return L.value;
85
+ },
86
+ set(e) {
87
+ g("update:modelValue", e), g("change", e);
88
+ }
89
+ }), W = U(() => r.value.control.preview ? "picture-card" : null), X = U(() => X);
90
+ return le(() => n.value, (e, l) => {
91
+ f && j();
92
+ }), (e, l) => {
93
+ const i = x("el-button"), a = x("el-upload"), o = x("el-dialog");
94
+ return k(), A("div", {
95
+ class: te(t(r).control.preview ? "control-file-preview" : "control-file")
96
+ }, [
97
+ N(a, {
98
+ ref_key: "uploadRef",
99
+ ref: O,
100
+ "list-type": t(W),
101
+ action: t(_).action,
102
+ headers: t(C),
103
+ data: t(_).data,
104
+ "file-list": t(c),
105
+ "before-upload": t(q),
106
+ "before-remove": t(G),
107
+ "on-preview": t(J),
108
+ "on-success": t(Q),
109
+ "on-progress": t(K),
110
+ disabled: t(r).readonly
111
+ }, {
112
+ default: F(() => [
113
+ t(r).control.preview ? (k(), A("i", ce)) : (k(), ae(i, {
114
+ key: 1,
115
+ icon: "el-icon-upload",
116
+ type: "primary"
117
+ }, {
118
+ default: F(() => [
119
+ oe(re(e.t("common.click_upload")), 1)
120
+ ]),
121
+ _: 1
122
+ }))
123
+ ]),
124
+ _: 1
125
+ }, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
126
+ N(o, {
127
+ draggable: "",
128
+ "append-to-body": "",
129
+ modelValue: t(m),
130
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => ie(m) ? m.value = u : m = u)
131
+ }, {
132
+ default: F(() => [
133
+ ue("img", {
134
+ width: "100%",
135
+ src: t(R),
136
+ alt: ""
137
+ }, null, 8, ve)
138
+ ]),
139
+ _: 1
140
+ }, 8, ["modelValue"])
141
+ ], 2);
142
+ };
143
+ }
144
+ });
145
+ export {
146
+ Ue as default
147
+ };
@@ -0,0 +1,72 @@
1
+ import { defineComponent as V, toRefs as b, ref as r, onMounted as k, computed as w, resolveComponent as S, openBlock as n, createElementBlock as u, Fragment as x, renderList as C, unref as s, createVNode as F, isRef as E, withCtx as H, createElementVNode as $ } from "vue";
2
+ import { d as y, g as B, f as I, F as N, U as R } 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 "./QueryApi-BLc_au6L.js";
9
+ import { U as j } from "./UploadApi-vYU0Jda6.js";
10
+ const A = { class: "text-upload" }, L = ["src", "onClick", "alt"], M = ["src"], ee = /* @__PURE__ */ V({
11
+ __name: "Upload",
12
+ props: {
13
+ schema: {},
14
+ table: {},
15
+ field: {},
16
+ set: {},
17
+ row: {},
18
+ modelValue: {}
19
+ },
20
+ setup(g) {
21
+ let v = g, { table: O, field: T, set: q, row: z, modelValue: f } = b(v), p = y(), d = r(), t = r(!1), m = r([]), c = r(), _ = (e) => {
22
+ t.value = !0, c.value = e.url;
23
+ }, h = () => {
24
+ if (o.value)
25
+ if (p.upload.method == "box")
26
+ j.getUploadToken().then((e) => {
27
+ o.value.split(",").forEach((a) => {
28
+ let l = `${p.upload.address}/api/objects/download?slug=${a}&token=${e}`;
29
+ m.value.push({ name: a, url: l });
30
+ });
31
+ });
32
+ else {
33
+ let e = B.httpOrHttps(o.value) ? o.value : I.api.url + o.value;
34
+ N.isImage(e) ? d.value = e : d.value = R.getFileIcon(e);
35
+ }
36
+ };
37
+ k(() => {
38
+ h();
39
+ });
40
+ let o = w(() => f.value);
41
+ return (e, i) => {
42
+ const a = S("el-dialog");
43
+ return n(), u("div", A, [
44
+ (n(!0), u(x, null, C(s(m), (l, U) => (n(), u("img", {
45
+ class: "detail-image",
46
+ src: l.url,
47
+ onClick: (D) => s(_)(l),
48
+ alt: l.name,
49
+ key: U
50
+ }, null, 8, L))), 128)),
51
+ F(a, {
52
+ draggable: "",
53
+ "append-to-body": "",
54
+ top: "5vh",
55
+ modelValue: s(t),
56
+ "onUpdate:modelValue": i[0] || (i[0] = (l) => E(t) ? t.value = l : t = l)
57
+ }, {
58
+ default: H(() => [
59
+ $("img", {
60
+ width: "100%",
61
+ src: s(c)
62
+ }, null, 8, M)
63
+ ]),
64
+ _: 1
65
+ }, 8, ["modelValue"])
66
+ ]);
67
+ };
68
+ }
69
+ });
70
+ export {
71
+ ee as default
72
+ };
@@ -0,0 +1,18 @@
1
+ import { h as o, a as t } from "./main-Bs5Q5ZLl.js";
2
+ import "xlsx-js-style";
3
+ import "./vendor-crypto-js-ftX_aBC-.js";
4
+ import "vue";
5
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
6
+ import "./vendor-moment-h96o7c8I.js";
7
+ let e = null;
8
+ class u {
9
+ /**
10
+ * 获取上传令牌,过期自动获取
11
+ */
12
+ static async getUploadToken() {
13
+ return e == null || t.getTime() >= t.getTime(e.expireTime) ? o.get("/upload/token").then(({ data: r }) => (e = r, Promise.resolve(e.token))).catch(() => Promise.reject()) : Promise.resolve(e.token);
14
+ }
15
+ }
16
+ export {
17
+ u as U
18
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent as f, toRefs as _, computed as h, resolveComponent as V, openBlock as b, createBlock as g, unref as e, isRef as Y } from "vue";
2
+ const v = /* @__PURE__ */ f({
3
+ __name: "Year",
4
+ props: {
5
+ schema: {},
6
+ table: {},
7
+ field: {},
8
+ set: {},
9
+ row: {},
10
+ modelValue: {}
11
+ },
12
+ emits: ["submit", "change", "update:modelValue"],
13
+ setup(r, { emit: m }) {
14
+ let t = m, u = r, { table: p, field: a, row: k, set: C, modelValue: s } = _(u), c = () => {
15
+ t("submit");
16
+ }, l = h({
17
+ get() {
18
+ return s.value;
19
+ },
20
+ set(o) {
21
+ t("update:modelValue", o), t("change", o);
22
+ }
23
+ });
24
+ return (o, n) => {
25
+ const i = V("el-date-picker");
26
+ return b(), g(i, {
27
+ type: "year",
28
+ placeholder: o.t_field_choose_placeholder(e(p).name, e(a).name),
29
+ "value-format": "YYYY",
30
+ disabled: e(a).control.readonly,
31
+ onChange: e(c),
32
+ modelValue: e(l),
33
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => Y(l) ? l.value = d : l = d)
34
+ }, null, 8, ["placeholder", "disabled", "onChange", "modelValue"]);
35
+ };
36
+ }
37
+ });
38
+ export {
39
+ v as default
40
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as u, defineAsyncComponent as i, toRefs as c, openBlock as V, createBlock as b, unref as e, isRef as w } from "vue";
2
+ const h = /* @__PURE__ */ u({
3
+ __name: "Year",
4
+ props: {
5
+ schema: {},
6
+ table: {},
7
+ field: {},
8
+ set: {},
9
+ row: {},
10
+ modelValue: {}
11
+ },
12
+ setup(a) {
13
+ let r = i(() => import("./Text-vz76Xb4X.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
14
+ return (x, t) => (V(), b(e(r), {
15
+ schema: e(m),
16
+ table: e(n),
17
+ field: e(d),
18
+ row: e(p),
19
+ set: e(f),
20
+ modelValue: e(l),
21
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => w(l) ? l.value = o : l = o)
22
+ }, null, 8, ["schema", "table", "field", "row", "set", "modelValue"]));
23
+ }
24
+ });
25
+ export {
26
+ h as default
27
+ };