halo-pc 1.0.36 → 1.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. package/dist/{Article-CSL7LnKj.js → Article-H_clf90b.js} +56 -59
  2. package/dist/{ArticleFooter-_CUySAZu.js → ArticleFooter-BLi4TNA7.js} +3 -4
  3. package/dist/Autocomplete-BF9x0F4f.js +49 -0
  4. package/dist/{Autocomplete-BTBqlR6B.js → Autocomplete-CcIzTPSr.js} +11 -12
  5. package/dist/{Autocomplete-CIRk6M3c.js → Autocomplete-DMm6oI1g.js} +1 -1
  6. package/dist/{CSharp-CMmXPS2i.js → CSharp-CZOchOE-.js} +1 -1
  7. package/dist/Calender-BoQV7bhA.js +10 -0
  8. package/dist/Callback-79Bw4RwY.js +20 -0
  9. package/dist/Cascader-D1Ou5OSg.js +41 -0
  10. package/dist/{Cascader-CeQ0jUxU.js → Cascader-DMhl98vw.js} +25 -26
  11. package/dist/{Checkbox-Fddc4Zgy.js → Checkbox-C6t6S7ii.js} +1 -1
  12. package/dist/{Checkbox--pNX7Slb.js → Checkbox-DtrXMDBR.js} +13 -14
  13. package/dist/Code-B8ISTTYK.js +54 -0
  14. package/dist/Code-BMlBvnqa.js +4 -0
  15. package/dist/{Code-C6A3DOQp.js → Code-DDacfgvl.js} +1 -1
  16. package/dist/Code-DIGn8Raz.js +36 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +57 -0
  18. package/dist/Column-DjA11efs.js +69 -0
  19. package/dist/{Comment-T5XWLthu.js → Comment-Ixu0gPk3.js} +29 -35
  20. package/dist/{Compare-KV2Q7Tb7.js → Compare-C1uq4lgK.js} +7 -8
  21. package/dist/{Compare-jjtb6UdZ.js → Compare-NN40QJWm.js} +9 -10
  22. package/dist/{Copy-Ck1HeTdy.js → Copy-BcfSvyWG.js} +11 -12
  23. package/dist/Custom-Dn9_vPuD.js +58 -0
  24. package/dist/{DataExport-BY1fIwSd.js → DataExport-DNGgWqsx.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Bv4Pc10r.js → DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js} +24 -25
  26. package/dist/{DataImport--xUxoWAq.js → DataImport-CI9eM5T1.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BhPGLJCz.js → DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js} +39 -40
  28. package/dist/{Date-C3H04U5q.js → Date-CGyzi8yX.js} +1 -1
  29. package/dist/{Date-DRk7BsnD.js → Date-CZGbZKjB.js} +8 -9
  30. package/dist/{DateRange-CICZ9gVp.js → DateRange-MbbkmZ_Y.js} +9 -10
  31. package/dist/{DateTime-DXHkaHtE.js → DateTime-DHrHmRLL.js} +1 -1
  32. package/dist/{DateTime-CjTCtAm4.js → DateTime-DqUOXGWH.js} +8 -9
  33. package/dist/{DateTimeRange-CuEYJBUE.js → DateTimeRange-DgXQkZLx.js} +11 -12
  34. package/dist/{Daterange-cmpjJVxl.js → Daterange-DLHJuRur.js} +8 -9
  35. package/dist/{Decimal-BzR8o8bv.js → Decimal-BUJuuvfr.js} +1 -1
  36. package/dist/{Delete-B2VzOnk8.js → Delete-BGMk0orl.js} +19 -20
  37. package/dist/{Detail-ayakHymC.js → Detail-D4KzWdHQ.js} +7 -8
  38. package/dist/Dictionary-Esd3ERAq.js +55 -0
  39. package/dist/{Email-BbipkOFP.js → Email-C9K09hwC.js} +9 -10
  40. package/dist/{File-B131KRit.js → File-ai1eYO7v.js} +49 -50
  41. package/dist/Image-CfY4G1Yn.js +9 -0
  42. package/dist/{Index-BnudlpyF.js → Index-B5o7uf36.js} +15 -16
  43. package/dist/Index-CH3nwnPZ.js +4 -0
  44. package/dist/Index-CTjDkp7e.js +4 -0
  45. package/dist/Index-DSZ8wa7U.js +4 -0
  46. package/dist/Index-DVdiF3gr.js +4 -0
  47. package/dist/{Index-Bps1k5-m.js → Index-DYHrSEZ5.js} +1 -1
  48. package/dist/Index-DsZPtDYE.js +173 -0
  49. package/dist/{Index-B20QLMmF.js → Index-S1btGSGD.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-C-7l_RSt.js → Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js} +8 -9
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-IX-mfiEH.js → Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js} +19 -27
  52. package/dist/{Install-BnCA1XK8.js → Install-D-MgafyF.js} +13 -14
  53. package/dist/{Int-BSA4Srky.js → Int-CnvfCxgn.js} +9 -10
  54. package/dist/{Int-BlwraOyw.js → Int-D3RqVcmN.js} +13 -14
  55. package/dist/List-DA4SO_le.js +71 -0
  56. package/dist/Maintaince-BIgEbjrq.js +14 -0
  57. package/dist/{Markdown-Can2d8HC.js → Markdown-hax8By5O.js} +1 -1
  58. package/dist/Month-5lTUiWin.js +37 -0
  59. package/dist/{Month-ClTpaaAr.js → Month-BDkwv-vc.js} +12 -13
  60. package/dist/{Month-Dyt_wc8r.js → Month-CnVTSnyK.js} +1 -1
  61. package/dist/{Normal-DBRpkCNs.js → Normal-DoE9t7d7.js} +73 -74
  62. package/dist/Paging-5qsCTRWy.js +92 -0
  63. package/dist/{PagingHeader-BQ-8s0NC.js → PagingHeader-BFtE6jSy.js} +35 -36
  64. package/dist/{PagingRow-CqAYVjxH.js → PagingRow-CSB-kwMz.js} +19 -20
  65. package/dist/{Racebar-BhRmArVA.js → Racebar-Bc-dDRss.js} +26 -32
  66. package/dist/{Radio-DCVAYEgh.js → Radio-CMGOtMnx.js} +1 -1
  67. package/dist/{Register-Dr5HF0B6.js → Register-8wi0uixs.js} +54 -55
  68. package/dist/RichText-BR4Kvx0J.js +41 -0
  69. package/dist/{SearchFooter-D02JAZez.js → SearchFooter-DOC21dmS.js} +1 -1
  70. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-dBZJFNo0.js → SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js} +3 -3
  71. package/dist/{SearchForm-DhrX5Akr.js → SearchForm-BMTSPce_.js} +1 -1
  72. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Dx26ti3G.js → SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js} +38 -41
  73. package/dist/{Select-ChwyjjbN.js → Select-DAxdpZlO.js} +8 -9
  74. package/dist/{Select-DK5-x-rC.js → Select-DnFyey0n.js} +23 -24
  75. package/dist/{Select-CaGb3SAi.js → Select-MBD4Simw.js} +1 -1
  76. package/dist/{Single-DIyLnILS.js → Single-D6x6VV_B.js} +85 -88
  77. package/dist/{Statistic-ArzDDFwp.js → Statistic-BS_DA72m.js} +22 -23
  78. package/dist/{Stock-DapT2McI.js → Stock-CbucObTu.js} +1 -1
  79. package/dist/{Stock-CsVIZtQ4.js → Stock-CtmevqBK.js} +1 -1
  80. package/dist/{Stock.vue_vue_type_style_index_0_lang-JABRw23-.js → Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js} +12 -13
  81. package/dist/{Switch-B0VJc80B.js → Switch-BlXAy9qH.js} +1 -1
  82. package/dist/{Table-C5kHBVpV.js → Table-CqsfAMh7.js} +84 -87
  83. package/dist/{Table-Cwe8QuVi.js → Table-Da9gan1Y.js} +78 -79
  84. package/dist/Text-C72NLZMt.js +48 -0
  85. package/dist/Text-CHvsKR9H.js +4 -0
  86. package/dist/{Text-CK1PT6x8.js → Text-CbZlEVTJ.js} +10 -11
  87. package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +53 -0
  88. package/dist/{TextLink-Bn_Z4Ajl.js → TextLink-SAnZ7BfX.js} +10 -11
  89. package/dist/{Textarea-C6Pi4p9b.js → Textarea-DphCUpXp.js} +1 -1
  90. package/dist/{Time-DWG3pwjK.js → Time-DjE8yYdK.js} +10 -11
  91. package/dist/{Timeline-Bqq3rFbX.js → Timeline-D11vjkpZ.js} +13 -19
  92. package/dist/Tree-DK73Ou_F.js +117 -0
  93. package/dist/{Tree-CU2UHknq.js → Tree-kich05vY.js} +99 -102
  94. package/dist/{TreeNode-DD-YfbgL.js → TreeNode-Dx6cZ31Z.js} +10 -11
  95. package/dist/{Update-BdbT4B2n.js → Update-D2Plm_AG.js} +14 -15
  96. package/dist/{UpdateChild-CVgQs6_A.js → UpdateChild-BXV7QqaP.js} +20 -21
  97. package/dist/{Upload-CKHSikDI.js → Upload-B87EDynn.js} +44 -45
  98. package/dist/Upload-CHPjMGFZ.js +65 -0
  99. package/dist/{Year-nGY1S5_T.js → Year-BPFmIiPX.js} +1 -1
  100. package/dist/{Year-CnA4ZUPj.js → Year-C93IJgc8.js} +8 -9
  101. package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
  102. package/dist/main-nvsTmKXH.js +16321 -0
  103. package/dist/main.js +137 -136
  104. package/dist/style.css +1 -1
  105. package/esm/coms/business/Form.vue.d.ts +2 -1
  106. package/esm/coms/drivers/@types/DriverEmit.d.ts +18 -0
  107. package/esm/coms/drivers/@types/DriverKindEmit.d.ts +18 -0
  108. package/esm/coms/drivers/@types/KindFormProps.d.ts +3 -6
  109. package/esm/coms/drivers/@types/index.d.ts +3 -1
  110. package/esm/coms/drivers/Index.vue.d.ts +26 -29
  111. package/esm/coms/drivers/Kind.vue.d.ts +8 -8
  112. package/esm/coms/layouts/Index.vue.d.ts +7 -3
  113. package/esm/coms/layouts/Side.vue.d.ts +5 -2
  114. package/esm/coms/layouts/Top.vue.d.ts +4 -1
  115. package/esm/coms/lists/Tree.vue.d.ts +2 -1
  116. package/esm/coms/pages/@types/index.d.ts +1 -2
  117. package/esm/coms/pages/Custom.vue.d.ts +2 -1
  118. package/esm/coms/pages/List.vue.d.ts +1 -1
  119. package/esm/coms/pages/Paging.vue.d.ts +2 -1
  120. package/esm/coms/pages/Single.vue.d.ts +2 -1
  121. package/esm/coms/pagings/Article.vue.d.ts +2 -1
  122. package/esm/coms/pagings/Index.vue.d.ts +2 -1
  123. package/esm/coms/pagings/Table.vue.d.ts +2 -1
  124. package/esm/coms/searches/Text.vue.d.ts +5 -7
  125. package/esm/svcs/ModuleSvc.d.ts +40 -0
  126. package/esm/svcs/index.d.ts +3 -3
  127. package/package.json +9 -9
  128. package/dist/Autocomplete-Buw1Hs35.js +0 -50
  129. package/dist/Calender-P8tmSbW2.js +0 -10
  130. package/dist/Callback-SEWVfpG_.js +0 -21
  131. package/dist/Cascader-DWNTommi.js +0 -47
  132. package/dist/Code-CQSTwwc4.js +0 -4
  133. package/dist/Code-CXMdFELH.js +0 -42
  134. package/dist/Code-THGJ7IzI.js +0 -60
  135. package/dist/Code.vue_vue_type_style_index_0_lang-BXOFkrGK.js +0 -63
  136. package/dist/Column-CucHIBYv.js +0 -75
  137. package/dist/Custom-CkyWaXAB.js +0 -61
  138. package/dist/Dictionary-BiSpx7nU.js +0 -61
  139. package/dist/Image-Cb1PzLpD.js +0 -9
  140. package/dist/Index-2vdi0Nq0.js +0 -4
  141. package/dist/Index-BOKSKn0N.js +0 -4
  142. package/dist/Index-CymZGuJo.js +0 -174
  143. package/dist/Index-Cz0Ti6rP.js +0 -4
  144. package/dist/Index-Dhg6Vts6.js +0 -4
  145. package/dist/List-BnT_8B_q.js +0 -74
  146. package/dist/Maintaince-CwL7tseR.js +0 -20
  147. package/dist/Month-CRmTCjQr.js +0 -38
  148. package/dist/Paging-ByJhfHCh.js +0 -95
  149. package/dist/RichText-Dj93TxtW.js +0 -47
  150. package/dist/Text-D2P-_cQT.js +0 -54
  151. package/dist/Text-oKVRjuSR.js +0 -4
  152. package/dist/Text.vue_vue_type_style_index_0_lang-epPB32IU.js +0 -59
  153. package/dist/Tree-DRUGEHR3.js +0 -123
  154. package/dist/Upload-BCGGzOTn.js +0 -71
  155. package/dist/assets/clone-BZn0cTAu.js +0 -134
  156. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  157. package/dist/assets/liquidjs-C2HVw1Ra.js +0 -2901
  158. package/dist/assets/moment-h96o7c8I.js +0 -2578
  159. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  160. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  161. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  162. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  163. package/dist/main-BLb5AIWJ.js +0 -10249
@@ -1,59 +0,0 @@
1
- import { defineComponent as v, toRefs as V, ref as f, computed as y, resolveComponent as _, openBlock as i, createElementBlock as s, Fragment as g, unref as l, createBlock as B, isRef as d, createElementVNode as C, createCommentVNode as R, nextTick as T } from "vue";
2
- import { U as H } from "./main-BLb5AIWJ.js";
3
- import "./assets/liquidjs-C2HVw1Ra.js";
4
- import "./assets/underscore-B0BCaBxV.js";
5
- import "./assets/file-saver-CwlpTZSc.js";
6
- import "./assets/clone-BZn0cTAu.js";
7
- import "./assets/underscore.string-DVXD2SZo.js";
8
- import "./assets/moment-h96o7c8I.js";
9
- const U = ["innerHTML"], A = /* @__PURE__ */ v({
10
- __name: "Text",
11
- props: {
12
- schema: {},
13
- table: {},
14
- field: {},
15
- set: {},
16
- row: {},
17
- modelValue: {}
18
- },
19
- setup(c) {
20
- let k = c, { table: b, field: m, set: w, row: E, modelValue: x } = V(k), t = f(!1), u = f(), a = () => {
21
- t.value = !0, T(() => {
22
- u.value.focus();
23
- });
24
- }, o = y(() => {
25
- var r;
26
- let p = H.html.getHtml((r = x.value) == null ? void 0 : r.toString());
27
- return (m.value.control.prefix || "") + (p || "") + (m.value.control.suffix || "");
28
- });
29
- return (p, e) => {
30
- const r = _("el-input");
31
- return i(), s(g, null, [
32
- l(t) ? (i(), B(r, {
33
- key: 1,
34
- ref_key: "editRef",
35
- ref: u,
36
- type: "text",
37
- onBlur: e[0] || (e[0] = (n) => d(t) ? t.value = !1 : t = !1),
38
- modelValue: l(o),
39
- "onUpdate:modelValue": e[1] || (e[1] = (n) => d(o) ? o.value = n : o = n)
40
- }, null, 8, ["modelValue"])) : (i(), s("span", {
41
- key: 0,
42
- class: "text-text",
43
- innerHTML: l(o)
44
- }, null, 8, U)),
45
- l(t) ? R("", !0) : (i(), s("span", {
46
- key: 2,
47
- class: "edit-inline",
48
- onClick: e[2] || (e[2] = //@ts-ignore
49
- (...n) => l(a) && l(a)(...n))
50
- }, e[3] || (e[3] = [
51
- C("i", { class: "fa fa-edit" }, null, -1)
52
- ])))
53
- ], 64);
54
- };
55
- }
56
- });
57
- export {
58
- A as _
59
- };
@@ -1,123 +0,0 @@
1
- import { defineComponent as J, toRefs as O, ref as k, onMounted as Q, watch as X, nextTick as K, resolveComponent as N, openBlock as _, createElementBlock as C, unref as d, Fragment as L, renderList as B, createBlock as M, withCtx as b, createVNode as Y, createElementVNode as Z, toDisplayString as T, createCommentVNode as F } from "vue";
2
- import { U as f, s as P } from "./main-BLb5AIWJ.js";
3
- import "./assets/liquidjs-C2HVw1Ra.js";
4
- import "./assets/underscore-B0BCaBxV.js";
5
- import "./assets/file-saver-CwlpTZSc.js";
6
- import "./assets/clone-BZn0cTAu.js";
7
- import "./assets/underscore.string-DVXD2SZo.js";
8
- import "./assets/moment-h96o7c8I.js";
9
- const ee = { class: "option-text" }, te = {
10
- key: 0,
11
- class: "option-suffix"
12
- }, ce = /* @__PURE__ */ J({
13
- __name: "Tree",
14
- props: {
15
- route: {},
16
- validateErrors: {},
17
- module: {},
18
- schema: {},
19
- table: {},
20
- layout: {},
21
- next: {},
22
- set: {}
23
- },
24
- setup(S, { expose: U }) {
25
- let $ = S, { module: z, schema: le, table: u, layout: t, set: p } = O($), E = k(), V = k([]), x = k(), w = k(0), g = k([]), R = k(!0), D = (e, r, o) => {
26
- let a = p.value[u.value.name].find((n) => n.PermissionId == e[t.value.id]);
27
- a && (a[t.value.expand] = !0);
28
- }, W = (e, r, o) => {
29
- let a = p.value[u.value.name].find((n) => n.PermissionId == e[t.value.id]);
30
- a && (a[t.value.expand] = !1);
31
- }, j = (e, r, o) => {
32
- let a = r.checkedKeys, n = e[t.value.id], i = f.array.contains(a, n), c = [], s = [], h = f.tree.getChildren(e, "Children").map((l) => l[t.value.id]), m = p.value[u.value.name].map((l) => l[t.value.checked]), v = f.array.intersect(h, m);
33
- if (i) {
34
- c.push(e[t.value.id]);
35
- let l = f.array.except(h, v);
36
- l.length && (a.push(...l), c.push(...l));
37
- } else
38
- s.push(n), v.length == h.length && (s.push(...h), f.array.remove(a, h));
39
- c.length && q(c), s.length && A(s);
40
- }, q = (e) => {
41
- for (let r = 0; r < e.length; r++) {
42
- let o = P.getDefaultRow(u.value);
43
- o[t.value.checked] = e[r], p.value[u.value.name].push(o);
44
- }
45
- }, A = (e) => {
46
- let r = p.value[u.value.name];
47
- for (let o = 0; o < e.length; o++) {
48
- let a = r.find((n) => n[t.value.checked] == e[o]);
49
- f.array.remove(r, a);
50
- }
51
- }, G = (e) => {
52
- x.value = e.contentRect.width, w.value = Math.ceil(x.value / 300), I(u.value, t.value, p.value);
53
- }, I = (e, r, o) => {
54
- g.value = P.getLines(r.data, w.value, (a) => [a], () => 1), K(() => {
55
- let a = o[e.name].map((i) => i[r.checked]), n = 0;
56
- for (let i = 0; i < g.value.length; i++) {
57
- let c = g.value[i];
58
- for (let s = 0; s < c.length; s++) {
59
- let y = V.value[n], h = c[s].data, m = f.tree.getFlat(h, "Children").map((l) => l[r.id]), v = f.array.intersect(m, a);
60
- if (!(v.length == 1 && m.length > 1)) for (let l = 0; l < v.length; l++) {
61
- let H = v[l];
62
- y.setChecked(H, !0, !1);
63
- }
64
- n++;
65
- }
66
- }
67
- });
68
- };
69
- return Q(() => {
70
- x.value = f.dom.getWidth(E.value), w.value = Math.ceil(x.value / 300), I(u.value, t.value, p.value);
71
- }), X(() => u.value, (e, r) => {
72
- R.value = !1, K(() => {
73
- R.value = !0, I(e, t.value, p.value);
74
- });
75
- }), U({ resize: G }), (e, r) => {
76
- const o = N("el-tree"), a = N("el-col"), n = N("el-row");
77
- return _(), C("div", {
78
- ref_key: "layoutRef",
79
- ref: E,
80
- class: "ha-tree-layout"
81
- }, [
82
- d(R) ? (_(!0), C(L, { key: 0 }, B(d(g), (i, c) => (_(), M(n, null, {
83
- default: b(() => [
84
- (_(!0), C(L, null, B(i, ({ data: s, span: y, index: h }, m) => (_(), M(a, {
85
- span: y,
86
- key: `${c}.${m}`
87
- }, {
88
- default: b(() => [
89
- Y(o, {
90
- ref_for: !0,
91
- ref_key: "treeRefs",
92
- ref: V,
93
- "show-checkbox": "",
94
- "highlight-current": "",
95
- "default-expand-all": !1,
96
- "expand-on-click-node": !1,
97
- "node-key": d(t).id,
98
- data: s,
99
- props: { children: "Children", label: d(t).text },
100
- disabled: d(z).type == "Detail",
101
- onNodeExpand: d(D),
102
- onNodeCollapse: d(W),
103
- onCheck: (v, l) => d(j)(v, l, h)
104
- }, {
105
- default: b(({ node: v, data: l }) => [
106
- Z("div", ee, T(l[d(t).text]), 1),
107
- d(t).suffix ? (_(), C("div", te, T(l[d(t).suffix]), 1)) : F("", !0)
108
- ]),
109
- _: 2
110
- }, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
111
- ]),
112
- _: 2
113
- }, 1032, ["span"]))), 128))
114
- ]),
115
- _: 2
116
- }, 1024))), 256)) : F("", !0)
117
- ], 512);
118
- };
119
- }
120
- });
121
- export {
122
- ce as default
123
- };
@@ -1,71 +0,0 @@
1
- import { defineComponent as V, toRefs as b, ref as r, onMounted as k, computed as x, resolveComponent as C, openBlock as u, createElementBlock as n, Fragment as y, renderList as E, unref as s, createVNode as F, isRef as R, withCtx as $, createElementVNode as A } from "vue";
2
- import { y as c, A as B, U as v, w as I, z as N } from "./main-BLb5AIWJ.js";
3
- import "./assets/liquidjs-C2HVw1Ra.js";
4
- import "./assets/underscore-B0BCaBxV.js";
5
- import "./assets/file-saver-CwlpTZSc.js";
6
- import "./assets/clone-BZn0cTAu.js";
7
- import "./assets/underscore.string-DVXD2SZo.js";
8
- import "./assets/moment-h96o7c8I.js";
9
- const S = { class: "text-upload" }, j = ["src", "onClick", "alt"], z = ["src"], X = /* @__PURE__ */ V({
10
- __name: "Upload",
11
- props: {
12
- schema: {},
13
- table: {},
14
- field: {},
15
- set: {},
16
- row: {},
17
- modelValue: {}
18
- },
19
- setup(f) {
20
- let g = f, { table: H, field: L, set: M, row: O, modelValue: _ } = b(g), d = r(), t = r(!1), p = r([]), m = r(), h = (e) => {
21
- t.value = !0, m.value = e.url;
22
- }, U = () => {
23
- if (o.value)
24
- if (c.upload.method == "box")
25
- B.getUploadToken().then((e) => {
26
- o.value.split(",").forEach((a) => {
27
- let l = `${c.upload.address}/api/objects/download?slug=${a}&token=${e}`;
28
- p.value.push({ name: a, url: l });
29
- });
30
- });
31
- else {
32
- let e = v.url.httpOrHttps(o.value) ? o.value : I.api.url + o.value;
33
- v.file.isImage(e) ? d.value = e : d.value = N.getFileIcon(e);
34
- }
35
- };
36
- k(() => {
37
- U();
38
- });
39
- let o = x(() => _.value);
40
- return (e, i) => {
41
- const a = C("el-dialog");
42
- return u(), n("div", S, [
43
- (u(!0), n(y, null, E(s(p), (l, w) => (u(), n("img", {
44
- class: "detail-image",
45
- src: l.url,
46
- onClick: (T) => s(h)(l),
47
- alt: l.name,
48
- key: w
49
- }, null, 8, j))), 128)),
50
- F(a, {
51
- draggable: "",
52
- "append-to-body": "",
53
- top: "5vh",
54
- modelValue: s(t),
55
- "onUpdate:modelValue": i[0] || (i[0] = (l) => R(t) ? t.value = l : t = l)
56
- }, {
57
- default: $(() => [
58
- A("img", {
59
- width: "100%",
60
- src: s(m)
61
- }, null, 8, z)
62
- ]),
63
- _: 1
64
- }, 8, ["modelValue"])
65
- ]);
66
- };
67
- }
68
- });
69
- export {
70
- X as default
71
- };
@@ -1,134 +0,0 @@
1
- import { g as $ } from "./clipboard-DjQPoCBJ.js";
2
- var A = { exports: {} };
3
- (function(d) {
4
- var I = function() {
5
- function l(n, t) {
6
- return t != null && n instanceof t;
7
- }
8
- var v;
9
- try {
10
- v = Map;
11
- } catch {
12
- v = function() {
13
- };
14
- }
15
- var _;
16
- try {
17
- _ = Set;
18
- } catch {
19
- _ = function() {
20
- };
21
- }
22
- var y;
23
- try {
24
- y = Promise;
25
- } catch {
26
- y = function() {
27
- };
28
- }
29
- function o(n, t, u, x, E) {
30
- typeof t == "object" && (u = t.depth, x = t.prototype, E = t.includeNonEnumerable, t = t.circular);
31
- var B = [], R = [], U = typeof Buffer < "u";
32
- typeof t > "u" && (t = !0), typeof u > "u" && (u = 1 / 0);
33
- function r(e, c) {
34
- if (e === null)
35
- return null;
36
- if (c === 0)
37
- return e;
38
- var f, g;
39
- if (typeof e != "object")
40
- return e;
41
- if (l(e, v))
42
- f = new v();
43
- else if (l(e, _))
44
- f = new _();
45
- else if (l(e, y))
46
- f = new y(function(a, b) {
47
- e.then(function(j) {
48
- a(r(j, c - 1));
49
- }, function(j) {
50
- b(r(j, c - 1));
51
- });
52
- });
53
- else if (o.__isArray(e))
54
- f = [];
55
- else if (o.__isRegExp(e))
56
- f = new RegExp(e.source, h(e)), e.lastIndex && (f.lastIndex = e.lastIndex);
57
- else if (o.__isDate(e))
58
- f = new Date(e.getTime());
59
- else {
60
- if (U && Buffer.isBuffer(e))
61
- return Buffer.allocUnsafe ? f = Buffer.allocUnsafe(e.length) : f = new Buffer(e.length), e.copy(f), f;
62
- l(e, Error) ? f = Object.create(e) : typeof x > "u" ? (g = Object.getPrototypeOf(e), f = Object.create(g)) : (f = Object.create(x), g = x);
63
- }
64
- if (t) {
65
- var S = B.indexOf(e);
66
- if (S != -1)
67
- return R[S];
68
- B.push(e), R.push(f);
69
- }
70
- l(e, v) && e.forEach(function(a, b) {
71
- var j = r(b, c - 1), k = r(a, c - 1);
72
- f.set(j, k);
73
- }), l(e, _) && e.forEach(function(a) {
74
- var b = r(a, c - 1);
75
- f.add(b);
76
- });
77
- for (var i in e) {
78
- var D;
79
- g && (D = Object.getOwnPropertyDescriptor(g, i)), !(D && D.set == null) && (f[i] = r(e[i], c - 1));
80
- }
81
- if (Object.getOwnPropertySymbols)
82
- for (var m = Object.getOwnPropertySymbols(e), i = 0; i < m.length; i++) {
83
- var w = m[i], s = Object.getOwnPropertyDescriptor(e, w);
84
- s && !s.enumerable && !E || (f[w] = r(e[w], c - 1), s.enumerable || Object.defineProperty(f, w, {
85
- enumerable: !1
86
- }));
87
- }
88
- if (E)
89
- for (var C = Object.getOwnPropertyNames(e), i = 0; i < C.length; i++) {
90
- var P = C[i], s = Object.getOwnPropertyDescriptor(e, P);
91
- s && s.enumerable || (f[P] = r(e[P], c - 1), Object.defineProperty(f, P, {
92
- enumerable: !1
93
- }));
94
- }
95
- return f;
96
- }
97
- return r(n, u);
98
- }
99
- o.clonePrototype = function(t) {
100
- if (t === null)
101
- return null;
102
- var u = function() {
103
- };
104
- return u.prototype = t, new u();
105
- };
106
- function O(n) {
107
- return Object.prototype.toString.call(n);
108
- }
109
- o.__objToStr = O;
110
- function F(n) {
111
- return typeof n == "object" && O(n) === "[object Date]";
112
- }
113
- o.__isDate = F;
114
- function T(n) {
115
- return typeof n == "object" && O(n) === "[object Array]";
116
- }
117
- o.__isArray = T;
118
- function M(n) {
119
- return typeof n == "object" && O(n) === "[object RegExp]";
120
- }
121
- o.__isRegExp = M;
122
- function h(n) {
123
- var t = "";
124
- return n.global && (t += "g"), n.ignoreCase && (t += "i"), n.multiline && (t += "m"), t;
125
- }
126
- return o.__getRegExpFlags = h, o;
127
- }();
128
- d.exports && (d.exports = I);
129
- })(A);
130
- var q = A.exports;
131
- const G = /* @__PURE__ */ $(q);
132
- export {
133
- G as c
134
- };
@@ -1,74 +0,0 @@
1
- import { c as s } from "./clipboard-DjQPoCBJ.js";
2
- var E = { exports: {} };
3
- (function(h, j) {
4
- (function(p, i) {
5
- i();
6
- })(s, function() {
7
- function p(e, t) {
8
- return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
9
- }
10
- function i(e, t, r) {
11
- var n = new XMLHttpRequest();
12
- n.open("GET", e), n.responseType = "blob", n.onload = function() {
13
- u(n.response, t, r);
14
- }, n.onerror = function() {
15
- console.error("could not download file");
16
- }, n.send();
17
- }
18
- function v(e) {
19
- var t = new XMLHttpRequest();
20
- t.open("HEAD", e, !1);
21
- try {
22
- t.send();
23
- } catch {
24
- }
25
- return 200 <= t.status && 299 >= t.status;
26
- }
27
- function l(e) {
28
- try {
29
- e.dispatchEvent(new MouseEvent("click"));
30
- } catch {
31
- var t = document.createEvent("MouseEvents");
32
- t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
33
- }
34
- }
35
- var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof s == "object" && s.global === s ? s : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
36
- } : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
37
- var n = a.URL || a.webkitURL, o = document.createElement("a");
38
- t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? l(o) : v(o.href) ? i(e, t, r) : l(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
39
- n.revokeObjectURL(o.href);
40
- }, 4e4), setTimeout(function() {
41
- l(o);
42
- }, 0));
43
- } : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
44
- if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, r), t);
45
- else if (v(e)) i(e, t, r);
46
- else {
47
- var n = document.createElement("a");
48
- n.href = e, n.target = "_blank", setTimeout(function() {
49
- l(n);
50
- });
51
- }
52
- } : function(e, t, r, n) {
53
- if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
54
- var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, m = /CriOS\/[\d]+/.test(navigator.userAgent);
55
- if ((m || o && b || w) && typeof FileReader < "u") {
56
- var d = new FileReader();
57
- d.onloadend = function() {
58
- var c = d.result;
59
- c = m ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = c : location = c, n = null;
60
- }, d.readAsDataURL(e);
61
- } else {
62
- var y = a.URL || a.webkitURL, f = y.createObjectURL(e);
63
- n ? n.location = f : location.href = f, n = null, setTimeout(function() {
64
- y.revokeObjectURL(f);
65
- }, 4e4);
66
- }
67
- });
68
- a.saveAs = u.saveAs = u, h.exports = u;
69
- });
70
- })(E);
71
- var R = E.exports;
72
- export {
73
- R as F
74
- };