halo-pc 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. package/dist/{Article-7pMF1N-k.js → Article-BbJTCOkX.js} +66 -62
  2. package/dist/{Autocomplete-CEjjKXwo.js → Autocomplete-A0m1RW7z.js} +1 -1
  3. package/dist/Autocomplete-C3d_yunJ.js +52 -0
  4. package/dist/Autocomplete-H0_xgWsN.js +53 -0
  5. package/dist/{CSharp-DatSqpip.js → CSharp-Bwl97exE.js} +1 -1
  6. package/dist/{Calender-B1HoFiQg.js → Calender-C3vbVYIN.js} +1 -1
  7. package/dist/Callback-oU2ap8v9.js +24 -0
  8. package/dist/Cascader-ClSabtOx.js +45 -0
  9. package/dist/Cascader-DRErYyH6.js +84 -0
  10. package/dist/{Checkbox-B6IkMrWB.js → Checkbox-BJS0a1NT.js} +1 -1
  11. package/dist/{Code-SZuIImtp.js → Code-9I77CMRV.js} +1 -1
  12. package/dist/Code-B2DrYXDa.js +58 -0
  13. package/dist/Code-BgqGTky1.js +40 -0
  14. package/dist/Code-Cv1pm18C.js +4 -0
  15. package/dist/Code.vue_vue_type_style_index_0_lang-IHZepbsi.js +63 -0
  16. package/dist/Column-Dgs0SdWX.js +71 -0
  17. package/dist/Comment-Cy6lpmqk.js +102 -0
  18. package/dist/Compare-5cTiHEdo.js +30 -0
  19. package/dist/Compare-CWeuLw9n.js +60 -0
  20. package/dist/Copy-C6WEtRhC.js +47 -0
  21. package/dist/Custom-QDHQJoxC.js +53 -0
  22. package/dist/{DataExport-I9iG4oEo.js → DataExport-BHh7NvbT.js} +1 -1
  23. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BgKetUGv.js → DataExport.vue_vue_type_script_setup_true_lang-C9t5j7Gi.js} +37 -33
  24. package/dist/{DataImport-2KtOy-of.js → DataImport-CtBsCyNb.js} +1 -1
  25. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DgzKdC2g.js → DataImport.vue_vue_type_script_setup_true_lang-bI0HP38b.js} +59 -55
  26. package/dist/{Date-PERpDDy_.js → Date-IV1FwqTW.js} +1 -1
  27. package/dist/{DateRange-BaxHMjcx.js → DateRange-IWmDLSuy.js} +11 -7
  28. package/dist/{DateTime-B7gHENiu.js → DateTime-Di6sr-tq.js} +1 -1
  29. package/dist/{DateTimeRange-yI9Y2qgC.js → DateTimeRange-BNUGYgWf.js} +14 -10
  30. package/dist/{Daterange-DqvBvK-B.js → Daterange-rrlMT4tD.js} +17 -13
  31. package/dist/{Decimal-AXwMeqBW.js → Decimal-D9TVQqyS.js} +1 -1
  32. package/dist/Delete-B-k4PTWk.js +59 -0
  33. package/dist/{Detail-aWACqVnM.js → Detail-HAblGKTY.js} +20 -16
  34. package/dist/Dictionary-BUmany6B.js +59 -0
  35. package/dist/{File--NsXL6XX.js → File-MF1QgEQX.js} +45 -41
  36. package/dist/{Image-CuwfJLKW.js → Image-Dps_vfcZ.js} +1 -1
  37. package/dist/{Index-BNOFdDjW.js → Index-7cTFT9Xb.js} +19 -15
  38. package/dist/{Index-CQ9S2R9b.js → Index-C_mfWEwr.js} +1 -1
  39. package/dist/Index-Cgets8DK.js +4 -0
  40. package/dist/Index-DGnHsBz4.js +4 -0
  41. package/dist/{Index-Cewv4-Ik.js → Index-DupYRMRj.js} +45 -41
  42. package/dist/{Index-DA2wAurY.js → Index-XBFHPLbK.js} +1 -1
  43. package/dist/{Index-Cj79dCuO.js → Index-hgpg_5ma.js} +1 -1
  44. package/dist/{Index.vue_vue_type_script_setup_true_lang-D6_VOLX-.js → Index.vue_vue_type_script_setup_true_lang-C1Bw7evJ.js} +15 -11
  45. package/dist/{Index.vue_vue_type_script_setup_true_lang-DjiARPz7.js → Index.vue_vue_type_script_setup_true_lang-yOf2ubuo.js} +16 -12
  46. package/dist/{Index.vue_vue_type_style_index_0_lang-DApNHvNX.js → Index.vue_vue_type_style_index_0_lang-DBERwM_v.js} +31 -27
  47. package/dist/{Install-BWdNbtVx.js → Install-A9qs4Vg-.js} +20 -16
  48. package/dist/{Int-nmVkFRqG.js → Int-B3L54Gcc.js} +16 -12
  49. package/dist/List-Om6OdbbR.js +76 -0
  50. package/dist/Maintaince-CrfEX-5B.js +19 -0
  51. package/dist/{Markdown-DD6ufwhM.js → Markdown-wcGRlabe.js} +1 -1
  52. package/dist/{Month-BqbTFGgo.js → Month-C1tCQKvO.js} +1 -1
  53. package/dist/{Normal-f4HN1ciI.js → Normal-HoU_elKy.js} +51 -47
  54. package/dist/Paging-C_StoYuZ.js +94 -0
  55. package/dist/QueryApi-BrYyIwqV.js +18 -0
  56. package/dist/{Racebar-Bou-XNCm.js → Racebar-BXuP1N9F.js} +27 -23
  57. package/dist/{Radio-BmikzeCv.js → Radio-D6W9guyM.js} +1 -1
  58. package/dist/{Register-CgbRZH9W.js → Register-DGhIjRDD.js} +79 -75
  59. package/dist/{RichText-BeK3zZam.js → RichText-B3Br1uzj.js} +22 -18
  60. package/dist/{SearchFooter-C4PeAkaR.js → SearchFooter-D3-9GTr1.js} +1 -1
  61. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BaO7vJ-n.js → SearchFooter.vue_vue_type_style_index_0_lang-DP32ZjvQ.js} +1 -1
  62. package/dist/{SearchForm-C7fZiQaW.js → SearchForm-rWozLa4B.js} +1 -1
  63. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BumSLQVy.js → SearchForm.vue_vue_type_style_index_0_lang-F2we6KP-.js} +30 -26
  64. package/dist/{Select-C1-NVZdG.js → Select-64nQiHNA.js} +21 -17
  65. package/dist/{Select-DR5fQH0d.js → Select-CAmBUDp3.js} +40 -36
  66. package/dist/{Select-DlbQvxQu.js → Select-qCdhL7vC.js} +1 -1
  67. package/dist/{Single-BLRyJKB-.js → Single-Bnrt5Hxb.js} +81 -77
  68. package/dist/{Statistic-BOtmYiRA.js → Statistic-BTbwlH9l.js} +35 -31
  69. package/dist/{Stock-Dnwof0R1.js → Stock-Br_02hsI.js} +1 -1
  70. package/dist/{Stock-BqQ6lM5B.js → Stock-DbExd680.js} +1 -1
  71. package/dist/{Stock.vue_vue_type_style_index_0_lang-Az2jx3JN.js → Stock.vue_vue_type_style_index_0_lang-MTvhmHlz.js} +26 -22
  72. package/dist/{Switch-DuMBV0AX.js → Switch-J2GIv4Wa.js} +1 -1
  73. package/dist/{Table-Be-rPXr_.js → Table-DjBx2UGm.js} +68 -64
  74. package/dist/{Table-RMVT0hlE.js → Table-X4vTHlpm.js} +52 -48
  75. package/dist/{Text-DSXRKFPa.js → Text-BFZc81F2.js} +1 -1
  76. package/dist/Text.vue_vue_type_style_index_0_lang-Cw7QQbFk.js +56 -0
  77. package/dist/TextLink-C_lFWaZv.js +66 -0
  78. package/dist/{Textarea-3ypOGE1S.js → Textarea-Dw_qLc3Y.js} +1 -1
  79. package/dist/{Timeline-CLezCcgQ.js → Timeline-DaaRGmGd.js} +21 -17
  80. package/dist/Tree-CDD2Nd6q.js +121 -0
  81. package/dist/{Tree-B6RBRT1y.js → Tree-Cmp10DWw.js} +85 -81
  82. package/dist/TreeNode-BM8-GyIc.js +38 -0
  83. package/dist/{Update-Dc3Tdkn0.js → Update-PffbXMXH.js} +17 -13
  84. package/dist/Upload-F6HXe76H.js +71 -0
  85. package/dist/Upload-kwwpaDe6.js +147 -0
  86. package/dist/{UploadApi-Bs507D0w.js → UploadApi-D2W_aGKA.js} +8 -3
  87. package/dist/{Year-DKxOQNyS.js → Year-Dr5ST0Pk.js} +1 -1
  88. package/dist/main-B8RC13GR.js +6528 -0
  89. package/dist/main.js +113 -113
  90. package/dist/style.css +1 -1
  91. package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
  92. package/dist/{vendor-clipboard-DjQPoCBJ.js → vendor-clipboard-BqjesuiY.js} +130 -110
  93. package/dist/vendor-clone-BPtCWdXG.js +134 -0
  94. package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
  95. package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
  96. package/dist/{vendor-intro.js-DwWqhM1v.js → vendor-intro.js-CZkClzQO.js} +1 -1
  97. package/dist/vendor-moment-h96o7c8I.js +2578 -0
  98. package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
  99. package/dist/vendor-state-local-CEworIRt.js +131 -0
  100. package/dist/vendor-underscore-DVTek3G4.js +1070 -0
  101. package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
  102. package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
  103. package/esm/coms/controls/Text.vue.d.ts +1 -1
  104. package/esm/coms/globals/HaMenu.vue.d.ts +1 -1
  105. package/esm/coms/globals/HaWindow.vue.d.ts +1 -1
  106. package/esm/coms/pages/Delete.vue.d.ts +2 -2
  107. package/esm/coms/pages/Single.vue.d.ts +2 -2
  108. package/esm/coms/pagings/Article.vue.d.ts +2 -2
  109. package/esm/coms/pagings/DataExport.vue.d.ts +2 -2
  110. package/esm/coms/pagings/DataImport.vue.d.ts +2 -2
  111. package/esm/coms/pagings/Index.vue.d.ts +2 -2
  112. package/esm/coms/pagings/SearchFooter.vue.d.ts +1 -1
  113. package/esm/coms/pagings/Table.vue.d.ts +2 -2
  114. package/esm/main.d.ts +4 -3
  115. package/esm/services/ServiceFactory.d.ts +3 -0
  116. package/esm/types/PcOptions.d.ts +18 -0
  117. package/esm/types/index.d.ts +2 -0
  118. package/package.json +2 -2
  119. package/dist/Autocomplete-DqKo5NiJ.js +0 -49
  120. package/dist/Autocomplete-K5ipzchR.js +0 -48
  121. package/dist/Callback-PyCjejiv.js +0 -20
  122. package/dist/Cascader-B9lLRKjA.js +0 -80
  123. package/dist/Cascader-BNvlqc5t.js +0 -41
  124. package/dist/Code-BdK547kD.js +0 -4
  125. package/dist/Code-DfFF-84i.js +0 -36
  126. package/dist/Code-LFQVJotC.js +0 -54
  127. package/dist/Code.vue_vue_type_style_index_0_lang-nX113anq.js +0 -59
  128. package/dist/Column-DVjYrrr7.js +0 -67
  129. package/dist/Comment-Do7Mjpjr.js +0 -98
  130. package/dist/Compare-C_iDn27Q.js +0 -56
  131. package/dist/Compare-CrX3yfD4.js +0 -26
  132. package/dist/Copy-_sbdQvHJ.js +0 -43
  133. package/dist/Custom-DarpQFG8.js +0 -49
  134. package/dist/Delete-BY3vAVWa.js +0 -55
  135. package/dist/Dictionary-DpQuFYQ5.js +0 -55
  136. package/dist/Index-B_a_HzsB.js +0 -4
  137. package/dist/Index-Cx2J_P37.js +0 -4
  138. package/dist/List-BjdY1rMk.js +0 -72
  139. package/dist/Maintaince-DzYzyrAc.js +0 -15
  140. package/dist/Paging-BMPtLi8P.js +0 -90
  141. package/dist/QueryApi-CbP5cCyH.js +0 -13
  142. package/dist/Text.vue_vue_type_style_index_0_lang-CeDusQl6.js +0 -52
  143. package/dist/TextLink-BZW-y_FS.js +0 -62
  144. package/dist/Tree-CLpCeirT.js +0 -117
  145. package/dist/TreeNode-C16N8jqm.js +0 -34
  146. package/dist/Upload-DvWyjK3a.js +0 -143
  147. package/dist/Upload-SEu1V1yX.js +0 -67
  148. package/dist/main-QtNG6p7a.js +0 -16673
  149. package/dist/vendor-pinia-yrN6kSxh.js +0 -861
  150. package/dist/vendor-vue-demi-CIhrFbpB.js +0 -17
@@ -1,143 +0,0 @@
1
- import { defineComponent as Y, toRefs as Z, ref as m, onMounted as ee, computed as k, watch as le, resolveComponent as U, openBlock as I, createElementBlock as N, normalizeClass as ae, unref as a, createVNode as P, withCtx as S, createBlock as te, createTextVNode as oe, toDisplayString as re, isRef as ue, createElementVNode as ne } from "vue";
2
- import { b as ie, c as se, y as j, m as de, j as B, r as s, a as T, S as $, U as z, I as me } from "./main-QtNG6p7a.js";
3
- import "./QueryApi-CbP5cCyH.js";
4
- import { U as pe } from "./UploadApi-Bs507D0w.js";
5
- const ce = {
6
- key: 0,
7
- class: "fa fa-upload"
8
- }, ve = ["src"], Ve = /* @__PURE__ */ Y({
9
- __name: "Upload",
10
- props: {
11
- schema: {},
12
- table: {},
13
- field: {},
14
- set: {},
15
- row: {},
16
- modelValue: {}
17
- },
18
- emits: ["submit", "change", "update:modelValue"],
19
- setup(A, { emit: E }) {
20
- let g = E, L = A, { table: d, field: r, row: h, set: fe, modelValue: O } = Z(L), b = ie(), D = se(), p = m(!1), F = m({}), c = m([]), R = m(), H = m(), f = !0, _ = m({ action: "", data: null }), M = (e) => {
21
- pe.getUploadToken().then((l) => {
22
- e.forEach((u) => {
23
- let t = `${b.upload.address}/api/objects/download?slug=${u[0]}&token=${l}`;
24
- c.value.push({ name: u[1], url: t });
25
- });
26
- });
27
- }, q = async (e) => {
28
- f = !1;
29
- let l = `/upload?table=${d.value.name}&field=${r.value.name}`;
30
- return _.value.action = j.api.url + l, F.value.Authorization = await D.getAuthorization(l), r.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? Promise.resolve() : (de.error("请上传正确的图片文件"), Promise.reject()) : Promise.resolve();
31
- }, G = (e, l) => {
32
- f = !1;
33
- let t = [e.name.replace(j.api.url, "")];
34
- return B.post("/upload/delete", { files: t }).then(({ data: o }) => {
35
- let n = l.indexOf(e), V = s.removeIndex(i.value, n, ",");
36
- if (g("update:modelValue", V), r.value.control.name) {
37
- let v = d.value.fields.find((x) => x.name == r.value.control.name), y = T.getValue(o.value, n, d.value, v), w = s.removeIndex(y, n, ",");
38
- T.setValue(w, o.value, d.value, n, v);
39
- }
40
- return Promise.resolve();
41
- }).catch(() => Promise.reject());
42
- }, J = (e) => {
43
- p.value = !0, R.value = e.url;
44
- }, K = (e, l, u) => {
45
- }, Q = (e, l) => {
46
- B.handleResponseBody(e).then((u) => {
47
- let { name: t, url: o } = u.data[0];
48
- b.upload.method == "box" || $.isImage(o) || (l.url = z.getFileIcon(o));
49
- let V = s.split(i.value, ",", o).join(",");
50
- if (i.value = V, r.value.control.name) {
51
- let v = d.value.fields.find((x) => x.name == r.value.control.name), y = h.value[v.value], w = s.split(y, ",", t);
52
- h.value[v.value] = w.join(",");
53
- }
54
- }).catch(() => {
55
- c.value = [];
56
- }).finally(() => {
57
- f = !0;
58
- });
59
- }, C = () => {
60
- if (c.value = [], !i.value)
61
- return;
62
- let e = s.split(i.value, ","), l = [];
63
- if (r.value.control.name) {
64
- let t = d.value.fields.find((n) => n.name == r.value.control.name), o = h.value[t.name];
65
- l = s.split(o, ",");
66
- }
67
- let u = s.combine(e, l);
68
- if (b.upload.method == "box")
69
- M(u);
70
- else {
71
- let t = me.httpOrHttps(i.value) ? i.value : j.api.url + i.value, o = { name: t, url: null };
72
- $.isImage(t) ? o.url = t : o.url = z.getFileIcon(t), c.value.push(o);
73
- }
74
- };
75
- ee(() => {
76
- C();
77
- });
78
- let i = k({
79
- get() {
80
- return O.value;
81
- },
82
- set(e) {
83
- g("update:modelValue", e), g("change", e);
84
- }
85
- }), W = k(() => r.value.control.preview ? "picture-card" : null), X = k(() => X);
86
- return le(() => i.value, (e, l) => {
87
- f && C();
88
- }), (e, l) => {
89
- const u = U("el-button"), t = U("el-upload"), o = U("el-dialog");
90
- return I(), N("div", {
91
- class: ae(a(r).control.preview ? "control-file-preview" : "control-file")
92
- }, [
93
- P(t, {
94
- ref_key: "uploadRef",
95
- ref: H,
96
- "list-type": a(W),
97
- action: a(_).action,
98
- headers: a(F),
99
- data: a(_).data,
100
- "file-list": a(c),
101
- "before-upload": a(q),
102
- "before-remove": a(G),
103
- "on-preview": a(J),
104
- "on-success": a(Q),
105
- "on-progress": a(K),
106
- disabled: a(r).readonly
107
- }, {
108
- default: S(() => [
109
- a(r).control.preview ? (I(), N("i", ce)) : (I(), te(u, {
110
- key: 1,
111
- icon: "el-icon-upload",
112
- type: "primary"
113
- }, {
114
- default: S(() => [
115
- oe(re(e.t("common.click_upload")), 1)
116
- ]),
117
- _: 1
118
- }))
119
- ]),
120
- _: 1
121
- }, 8, ["list-type", "action", "headers", "data", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "on-progress", "disabled"]),
122
- P(o, {
123
- draggable: "",
124
- "append-to-body": "",
125
- modelValue: a(p),
126
- "onUpdate:modelValue": l[0] || (l[0] = (n) => ue(p) ? p.value = n : p = n)
127
- }, {
128
- default: S(() => [
129
- ne("img", {
130
- width: "100%",
131
- src: a(R),
132
- alt: ""
133
- }, null, 8, ve)
134
- ]),
135
- _: 1
136
- }, 8, ["modelValue"])
137
- ], 2);
138
- };
139
- }
140
- });
141
- export {
142
- Ve as default
143
- };
@@ -1,67 +0,0 @@
1
- import { defineComponent as b, toRefs as V, ref as r, onMounted as k, computed as w, resolveComponent as x, openBlock as n, createElementBlock as d, Fragment as C, renderList as y, unref as s, createVNode as S, isRef as E, withCtx as F, createElementVNode as I } from "vue";
2
- import { b as $, I as B, y as N, S as R, U as j } from "./main-QtNG6p7a.js";
3
- import "./QueryApi-CbP5cCyH.js";
4
- import { U as A } from "./UploadApi-Bs507D0w.js";
5
- const H = { class: "text-upload" }, L = ["src", "onClick", "alt"], M = ["src"], Q = /* @__PURE__ */ b({
6
- __name: "Upload",
7
- props: {
8
- schema: {},
9
- table: {},
10
- field: {},
11
- set: {},
12
- row: {},
13
- modelValue: {}
14
- },
15
- setup(v) {
16
- let f = v, { table: O, field: T, set: q, row: z, modelValue: g } = V(f), i = $(), p = r(), t = r(!1), m = r([]), c = r(), _ = (e) => {
17
- t.value = !0, c.value = e.url;
18
- }, h = () => {
19
- if (o.value)
20
- if (i.upload.method == "box")
21
- A.getUploadToken().then((e) => {
22
- o.value.split(",").forEach((a) => {
23
- let l = `${i.upload.address}/api/objects/download?slug=${a}&token=${e}`;
24
- m.value.push({ name: a, url: l });
25
- });
26
- });
27
- else {
28
- let e = B.httpOrHttps(o.value) ? o.value : N.api.url + o.value;
29
- R.isImage(e) ? p.value = e : p.value = j.getFileIcon(e);
30
- }
31
- };
32
- k(() => {
33
- h();
34
- });
35
- let o = w(() => g.value);
36
- return (e, u) => {
37
- const a = x("el-dialog");
38
- return n(), d("div", H, [
39
- (n(!0), d(C, null, y(s(m), (l, U) => (n(), d("img", {
40
- class: "detail-image",
41
- src: l.url,
42
- onClick: (D) => s(_)(l),
43
- alt: l.name,
44
- key: U
45
- }, null, 8, L))), 128)),
46
- S(a, {
47
- draggable: "",
48
- "append-to-body": "",
49
- top: "5vh",
50
- modelValue: s(t),
51
- "onUpdate:modelValue": u[0] || (u[0] = (l) => E(t) ? t.value = l : t = l)
52
- }, {
53
- default: F(() => [
54
- I("img", {
55
- width: "100%",
56
- src: s(c)
57
- }, null, 8, M)
58
- ]),
59
- _: 1
60
- }, 8, ["modelValue"])
61
- ]);
62
- };
63
- }
64
- });
65
- export {
66
- Q as default
67
- };