halo-pc 1.0.26 → 1.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. package/dist/{Article-BNacU3kR.js → Article-CTzPZjf8.js} +71 -65
  2. package/dist/{ArticleFooter-Ya07aLYn.js → ArticleFooter-jyfzfZHH.js} +23 -17
  3. package/dist/{Autocomplete-CyXE-g54.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-DQLgcbTQ.js → CSharp-qh_kEfGr.js} +1 -1
  7. package/dist/{Calender-YujFxcgS.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-Dkqh7eR4.js → Checkbox-D9NUw4jZ.js} +1 -1
  12. package/dist/Checkbox-REcdbTXR.js +76 -0
  13. package/dist/{Code-DXkJ6x5_.js → Code-CBVRms_j.js} +1 -1
  14. package/dist/Code-DZ-bK9UT.js +60 -0
  15. package/dist/Code-DfnLveft.js +42 -0
  16. package/dist/{Code-Dszcah6J.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-DKLN4wT4.js → Compare-dimRoHFX.js} +24 -18
  22. package/dist/Copy-CKLxfWd4.js +49 -0
  23. package/dist/Custom-Bwyy4_tA.js +57 -0
  24. package/dist/{DataExport-CFjE1loi.js → DataExport-Bp50K0_6.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-yTe6V3Dn.js → DataExport.vue_vue_type_script_setup_true_lang-8nDL-PI_.js} +41 -36
  26. package/dist/{DataImport-BQ0rieu8.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-C5WCVXDU.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-BrsWm90_.js → DateTime-Cvnnthwx.js} +1 -1
  33. package/dist/{DateTimeRange-DjIp1SAX.js → DateTimeRange-Gb33uiRV.js} +17 -11
  34. package/dist/Daterange-CfAdeV7J.js +63 -0
  35. package/dist/{Decimal-_6FobwTd.js → Decimal-B-fyPiuP.js} +1 -1
  36. package/dist/Delete-DhbWFnzt.js +62 -0
  37. package/dist/{Detail-BMbiENm0.js → Detail-DV-JRRLT.js} +20 -14
  38. package/dist/Dictionary-b_mbt-WU.js +59 -0
  39. package/dist/Email-C2Yl7bMF.js +54 -0
  40. package/dist/{File-B9Q2QOa-.js → File-D57qYYt1.js} +28 -22
  41. package/dist/{Image-CzOq81lm.js → Image-BKNUY356.js} +1 -1
  42. package/dist/{Index-DJz-eVVd.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-DvfJmbPU.js → Index-CSzgmzRG.js} +1 -1
  47. package/dist/Index-ChWD2gJt.js +4 -0
  48. package/dist/{Index-BmVFh23J.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-ExArYWR3.js → Index.vue_vue_type_script_setup_true_lang-BkjFEuPH.js} +20 -14
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-BpU5b5wU.js → Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js} +22 -16
  52. package/dist/{Install-CXj-qqao.js → Install-o0VJz9Rl.js} +27 -21
  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-CdP4Uf3M.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-BUvqsSfA.js → Month-DsKmd425.js} +1 -1
  61. package/dist/{Normal-DUlWYlcs.js → Normal-B_SPQW9Z.js} +99 -94
  62. package/dist/Paging-CzCgExDM.js +99 -0
  63. package/dist/{PagingHeader-aZb0fGRv.js → PagingHeader-Bfnnsv6m.js} +30 -24
  64. package/dist/{PagingRow-_H7tCWDM.js → PagingRow-BXaakA5y.js} +26 -20
  65. package/dist/QueryApi-Cah37Kwx.js +20 -0
  66. package/dist/{Racebar-DESsxoi9.js → Racebar-6FTe1C4G.js} +42 -37
  67. package/dist/{Radio-ChF3_bX0.js → Radio-rym8cXJN.js} +1 -1
  68. package/dist/{Register-Du5lRabU.js → Register-v__-wpY2.js} +75 -70
  69. package/dist/RichText-BDP5KDin.js +47 -0
  70. package/dist/{SearchFooter-HjKH1gD5.js → SearchFooter-0mHMD0Xf.js} +1 -1
  71. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CeQ2BcOI.js → SearchFooter.vue_vue_type_style_index_0_lang-CXTYGXIa.js} +1 -1
  72. package/dist/{SearchForm-C-o0Orkp.js → SearchForm-jSIiiv2r.js} +1 -1
  73. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BijR_gZY.js → SearchForm.vue_vue_type_style_index_0_lang-CFxxTJiB.js} +45 -40
  74. package/dist/{Select-CYaWHcWs.js → Select-Cpj86Kaw.js} +26 -20
  75. package/dist/{Select-DgKzH1gD.js → Select-DKjXN6Ag.js} +34 -28
  76. package/dist/{Select-DrybbaWb.js → Select-R0EsEK0_.js} +1 -1
  77. package/dist/{Single-B-253IzX.js → Single-fIhSt1dN.js} +111 -106
  78. package/dist/{Statistic-B7Tib1eh.js → Statistic-DM3Fr6sO.js} +29 -24
  79. package/dist/{Stock-DuyZiPxv.js → Stock-BemUvyqK.js} +1 -1
  80. package/dist/{Stock-BBcnzi6G.js → Stock-DUrxld5G.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-B6E5USSu.js → Stock.vue_vue_type_style_index_0_lang-Cv9Jvd6d.js} +29 -24
  82. package/dist/{Switch-DP-_EUOK.js → Switch-QdLS7c3q.js} +1 -1
  83. package/dist/{Table-hHG9kq1I.js → Table-BcVHufy3.js} +85 -81
  84. package/dist/{Table-2jZ0ISz7.js → Table-C4dGV7IQ.js} +74 -68
  85. package/dist/{Text-lak-4VnA.js → Text-BJNnrW9U.js} +21 -15
  86. package/dist/{Text-RsldE1sr.js → Text-BNAKwCCe.js} +18 -12
  87. package/dist/{Text-C70dFJLS.js → Text-D3DqixJp.js} +1 -1
  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-QGa_EKSl.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-B2fZE9Qf.js → Tree-4v2brZjr.js} +112 -107
  95. package/dist/TreeNode-CvS8mLCJ.js +42 -0
  96. package/dist/{Update-BqQGp_9h.js → Update-Cp50LcVx.js} +18 -12
  97. package/dist/{UpdateChild-DejVqKrE.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-CrN8Fl5U.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 +36 -35
  113. package/dist/style.css +1 -1
  114. package/package.json +2 -2
  115. package/dist/Autocomplete-Bud53PPx.js +0 -48
  116. package/dist/Autocomplete-CfE5ZKi2.js +0 -49
  117. package/dist/Callback-BaFg5U2u.js +0 -20
  118. package/dist/Cascader-C1kyNib7.js +0 -41
  119. package/dist/Cascader-D5PO9zK9.js +0 -81
  120. package/dist/Checkbox-CUtyT8l7.js +0 -70
  121. package/dist/Code-C160-nQS.js +0 -54
  122. package/dist/Code-pe9JMCAj.js +0 -36
  123. package/dist/Code.vue_vue_type_style_index_0_lang-B1dEEN-z.js +0 -59
  124. package/dist/Column-C3j98RGT.js +0 -69
  125. package/dist/Comment-DIrY0RiI.js +0 -98
  126. package/dist/Compare-5j7MYou6.js +0 -38
  127. package/dist/Copy-Go_1uhB5.js +0 -43
  128. package/dist/Custom-C00oYEFm.js +0 -51
  129. package/dist/DataImport.vue_vue_type_script_setup_true_lang-LYppKTfv.js +0 -172
  130. package/dist/Date-uHiOL-PD.js +0 -37
  131. package/dist/DateRange-B-HjKQpJ.js +0 -57
  132. package/dist/DateTime-D4Ck5hBj.js +0 -38
  133. package/dist/Daterange-DiZUFL_F.js +0 -57
  134. package/dist/Delete-C46eSfMC.js +0 -56
  135. package/dist/Dictionary-Dga6kbof.js +0 -55
  136. package/dist/Email-PVk9gqfn.js +0 -48
  137. package/dist/Index-CfDvQD94.js +0 -4
  138. package/dist/Index-Cq20wsZC.js +0 -173
  139. package/dist/Index-DGiRkT-p.js +0 -4
  140. package/dist/Index-DyK_nYp9.js +0 -4
  141. package/dist/Index-z5MnS_Wq.js +0 -4
  142. package/dist/Int-BG6MD24t.js +0 -38
  143. package/dist/Int-Dc7h_7Ga.js +0 -41
  144. package/dist/List-EDwPH8aL.js +0 -73
  145. package/dist/Maintaince-BqvMHxH0.js +0 -14
  146. package/dist/Month-8mDUGsOp.js +0 -37
  147. package/dist/Month-ClGd6IhI.js +0 -38
  148. package/dist/Paging-D_ticCtb.js +0 -94
  149. package/dist/QueryApi-S0e3c6l0.js +0 -13
  150. package/dist/RichText-BJVvArGS.js +0 -41
  151. package/dist/Text.vue_vue_type_style_index_0_lang-BP6k7KJG.js +0 -53
  152. package/dist/TextLink-C-NU-oVe.js +0 -59
  153. package/dist/Time-BgWPjGd1.js +0 -37
  154. package/dist/Timeline-CBWcOVdY.js +0 -53
  155. package/dist/Tree--dJKRJvG.js +0 -117
  156. package/dist/TreeNode-CxTzNQo9.js +0 -37
  157. package/dist/Upload-9z5VIixQ.js +0 -146
  158. package/dist/Upload-tlSQp2Qu.js +0 -67
  159. package/dist/UploadApi-B2dxOS0T.js +0 -13
  160. package/dist/Year-DNDyqe5X.js +0 -41
  161. package/dist/main-D3_7YhaK.js +0 -15700
@@ -0,0 +1,59 @@
1
+ import { defineComponent as h, toRefs as y, resolveComponent as l, openBlock as t, createBlock as n, unref as e, withCtx as o, createElementVNode as a, createElementBlock as c, Fragment as k, renderList as x, createCommentVNode as v } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import { _ as H, I as g } from "./main-D-QTCahZ.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const C = { class: "timeline-layout" }, B = ["innerHTML"], L = {
10
+ key: 0,
11
+ class: "timeline-detail"
12
+ }, w = /* @__PURE__ */ h({
13
+ __name: "Timeline",
14
+ props: {
15
+ searchData: {},
16
+ route: {},
17
+ module: {},
18
+ schema: {},
19
+ table: {},
20
+ layout: {},
21
+ next: {},
22
+ set: {}
23
+ },
24
+ setup(_) {
25
+ let p = _, { module: T, schema: b, table: m, layout: i, next: E, set: r } = y(p);
26
+ return (M, N) => {
27
+ const u = l("el-timeline-item"), d = l("el-timeline"), f = l("el-empty");
28
+ return t(), n(e(H), { class: "timeline" }, {
29
+ default: o(() => [
30
+ a("div", C, [
31
+ e(r)[e(m).name].length > 0 ? (t(), n(d, {
32
+ key: 0,
33
+ reverse: !1
34
+ }, {
35
+ default: o(() => [
36
+ (t(!0), c(k, null, x(e(r)[e(m).name], (s) => (t(), n(u, {
37
+ timestamp: s[e(i).time]
38
+ }, {
39
+ default: o(() => [
40
+ a("div", {
41
+ innerHTML: e(g).getHtml(s[e(i).text])
42
+ }, null, 8, B)
43
+ ]),
44
+ _: 2
45
+ }, 1032, ["timestamp"]))), 256))
46
+ ]),
47
+ _: 1
48
+ })) : (t(), n(f, { key: 1 }))
49
+ ]),
50
+ e(m).length > 0 ? (t(), c("div", L, " 时间线节点详情 ")) : v("", !0)
51
+ ]),
52
+ _: 1
53
+ });
54
+ };
55
+ }
56
+ });
57
+ export {
58
+ w as default
59
+ };
@@ -0,0 +1,122 @@
1
+ import { defineComponent as Q, toRefs as U, ref as m, onMounted as X, watch as Y, nextTick as V, resolveComponent as N, openBlock as k, createElementBlock as w, unref as d, Fragment as K, renderList as L, createBlock as B, withCtx as b, createVNode as Z, createElementVNode as ee, toDisplayString as H, createCommentVNode as M } from "vue";
2
+ import { E as le, A as _, T as A, s as D } from "./main-D-QTCahZ.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ const te = { class: "option-text" }, ae = {
9
+ key: 0,
10
+ class: "option-suffix"
11
+ }, he = /* @__PURE__ */ Q({
12
+ __name: "Tree",
13
+ props: {
14
+ route: {},
15
+ validateErrors: {},
16
+ module: {},
17
+ schema: {},
18
+ table: {},
19
+ layout: {},
20
+ next: {},
21
+ set: {}
22
+ },
23
+ setup(F, { expose: P }) {
24
+ let S = F, { module: $, schema: re, table: u, layout: l, set: p } = U(S), E = m(), T = m([]), x = m(), y = m(0), g = m([]), R = m(!0), z = (e, r, o) => {
25
+ let a = p.value[u.value.name].find((n) => n.PermissionId == e[l.value.id]);
26
+ a && (a[l.value.expand] = !0);
27
+ }, W = (e, r, o) => {
28
+ let a = p.value[u.value.name].find((n) => n.PermissionId == e[l.value.id]);
29
+ a && (a[l.value.expand] = !1);
30
+ }, j = (e, r, o) => {
31
+ let a = r.checkedKeys, n = e[l.value.id], i = _.contains(a, n), c = [], s = [], h = A.getChildren(e, "Children").map((t) => t[l.value.id]), f = p.value[u.value.name].map((t) => t[l.value.checked]), v = _.intersect(h, f);
32
+ if (i) {
33
+ c.push(e[l.value.id]);
34
+ let t = _.except(h, v);
35
+ t.length && (a.push(...t), c.push(...t));
36
+ } else
37
+ s.push(n), v.length == h.length && (s.push(...h), _.remove(a, h));
38
+ c.length && q(c), s.length && G(s);
39
+ }, q = (e) => {
40
+ for (let r = 0; r < e.length; r++) {
41
+ let o = D.getDefaultRow(u.value);
42
+ o[l.value.checked] = e[r], p.value[u.value.name].push(o);
43
+ }
44
+ }, G = (e) => {
45
+ let r = p.value[u.value.name];
46
+ for (let o = 0; o < e.length; o++) {
47
+ let a = r.find((n) => n[l.value.checked] == e[o]);
48
+ _.remove(r, a);
49
+ }
50
+ }, J = (e) => {
51
+ x.value = e.contentRect.width, y.value = Math.ceil(x.value / 300), I(u.value, l.value, p.value);
52
+ }, I = (e, r, o) => {
53
+ g.value = D.getLines(r.data, y.value, (a) => [a], () => 1), V(() => {
54
+ let a = o[e.name].map((i) => i[r.checked]), n = 0;
55
+ for (let i = 0; i < g.value.length; i++) {
56
+ let c = g.value[i];
57
+ for (let s = 0; s < c.length; s++) {
58
+ let C = T.value[n], h = c[s].data, f = A.getFlat(h, "Children").map((t) => t[r.id]), v = _.intersect(f, a);
59
+ if (!(v.length == 1 && f.length > 1)) for (let t = 0; t < v.length; t++) {
60
+ let O = v[t];
61
+ C.setChecked(O, !0, !1);
62
+ }
63
+ n++;
64
+ }
65
+ }
66
+ });
67
+ };
68
+ return X(() => {
69
+ x.value = le.getWidth(E.value), y.value = Math.ceil(x.value / 300), I(u.value, l.value, p.value);
70
+ }), Y(() => u.value, (e, r) => {
71
+ R.value = !1, V(() => {
72
+ R.value = !0, I(e, l.value, p.value);
73
+ });
74
+ }), P({ resize: J }), (e, r) => {
75
+ const o = N("el-tree"), a = N("el-col"), n = N("el-row");
76
+ return k(), w("div", {
77
+ ref_key: "layoutRef",
78
+ ref: E,
79
+ class: "ha-tree-layout"
80
+ }, [
81
+ d(R) ? (k(!0), w(K, { key: 0 }, L(d(g), (i, c) => (k(), B(n, null, {
82
+ default: b(() => [
83
+ (k(!0), w(K, null, L(i, ({ data: s, span: C, index: h }, f) => (k(), B(a, {
84
+ span: C,
85
+ key: `${c}.${f}`
86
+ }, {
87
+ default: b(() => [
88
+ Z(o, {
89
+ ref_for: !0,
90
+ ref_key: "treeRefs",
91
+ ref: T,
92
+ "show-checkbox": "",
93
+ "highlight-current": "",
94
+ "default-expand-all": !1,
95
+ "expand-on-click-node": !1,
96
+ "node-key": d(l).id,
97
+ data: s,
98
+ props: { children: "Children", label: d(l).text },
99
+ disabled: d($).type == "Detail",
100
+ onNodeExpand: d(z),
101
+ onNodeCollapse: d(W),
102
+ onCheck: (v, t) => d(j)(v, t, h)
103
+ }, {
104
+ default: b(({ node: v, data: t }) => [
105
+ ee("div", te, H(t[d(l).text]), 1),
106
+ d(l).suffix ? (k(), w("div", ae, H(t[d(l).suffix]), 1)) : M("", !0)
107
+ ]),
108
+ _: 2
109
+ }, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
110
+ ]),
111
+ _: 2
112
+ }, 1032, ["span"]))), 128))
113
+ ]),
114
+ _: 2
115
+ }, 1024))), 256)) : M("", !0)
116
+ ], 512);
117
+ };
118
+ }
119
+ });
120
+ export {
121
+ he as default
122
+ };
@@ -1,14 +1,19 @@
1
- import { defineComponent as xe, toRefs as Ce, ref as v, onMounted as ge, onUnmounted as we, computed as L, watch as Ne, resolveComponent as T, openBlock as i, createBlock as C, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as _, Fragment as Ke, renderList as Se, withDirectives as Re, resolveDynamicComponent as $e, createCommentVNode as g, createTextVNode as w, toDisplayString as k, vShow as Te, nextTick as A } from "vue";
2
- import { a as F, c as De, k as M, A as Ie, z as Ve, B as qe, o as Y, e as p, _ as G, v as Le, O as H, T as J, u as Q, K as Ue, C as Be } from "./main-D3_7YhaK.js";
1
+ import { defineComponent as xe, toRefs as ge, ref as v, onMounted as Ce, onUnmounted as we, computed as q, watch as Ne, resolveComponent as T, openBlock as i, createBlock as g, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as _, Fragment as Ke, renderList as Se, withDirectives as Re, resolveDynamicComponent as $e, createCommentVNode as C, createTextVNode as w, toDisplayString as b, vShow as Te, nextTick as O } from "vue";
2
+ import { c as P, d as Ue, x as j, J as De, G as Ie, K as Ve, b as F, t as p, a as G, m as qe, T as J, h as Q, A as W, U as Le, M as Be } from "./main-D-QTCahZ.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import "./assets/file-saver-CwlpTZSc.js";
5
+ import "./assets/clone-BZn0cTAu.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
3
8
  import "vue-router";
4
9
  import "./assets/intro.js-DxWjEdp_.js";
5
- const ze = { class: "tree-left" }, Ee = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Oe = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Pe = /* @__PURE__ */ c("i", { class: "fa fa-copy" }, null, -1), je = /* @__PURE__ */ c("i", { class: "fa fa-trash" }, null, -1), Ae = {
10
+ const Ee = { class: "tree-left" }, ze = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), He = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), Me = /* @__PURE__ */ c("i", { class: "fa fa-copy" }, null, -1), Ae = /* @__PURE__ */ c("i", { class: "fa fa-trash" }, null, -1), Oe = {
6
11
  key: 2,
7
12
  class: "ha-empty"
8
- }, Fe = {
13
+ }, Pe = {
9
14
  key: 3,
10
15
  class: "tree-add"
11
- }, Me = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), We = /* @__PURE__ */ xe({
16
+ }, je = /* @__PURE__ */ c("i", { class: "fa fa-plus" }, null, -1), tl = /* @__PURE__ */ xe({
12
17
  __name: "Tree",
13
18
  props: {
14
19
  searchData: {},
@@ -21,131 +26,131 @@ const ze = { class: "tree-left" }, Ee = /* @__PURE__ */ c("i", { class: "fa fa-p
21
26
  set: {}
22
27
  },
23
28
  emits: ["refresh", "succeed", "search", "navigate"],
24
- setup(W, { expose: X, emit: Z }) {
25
- let b = Z, ee = W, { route: N, module: U, schema: le, table: m, layout: o, next: y, set: Ye, searchData: te } = Ce(ee), K = v(), B = v(), x = v(), S = v(), z = v(), ae = v(), d = v({ type: null, name: null, url: null, visible: !1 }), R = v(), D = null, a = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), E = () => {
29
+ setup(X, { expose: Y, emit: Z }) {
30
+ let k = Z, ee = X, { route: N, module: L, schema: le, table: m, layout: r, next: y, set: Fe, searchData: te } = ge(ee), K = v(), B = v(), x = v(), S = v(), E = v(), ae = v(), d = v({ type: null, name: null, url: null, visible: !1 }), R = v(), U = null, a = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), z = () => {
26
31
  if (!K.value)
27
32
  return;
28
33
  let l = K.value.$el.querySelector(".is-context");
29
34
  l && l.classList.remove("is-context");
30
- }, oe = (l, t, r, n) => {
31
- E(), n.vnode.el.classList.add("is-context"), a.value.currentNode = t, D.show(l);
35
+ }, re = (l, t, o, n) => {
36
+ z(), n.vnode.el.classList.add("is-context"), a.value.currentNode = t, U.show(l);
32
37
  }, $ = (l) => {
33
- let t = o.value.parentId, r = { [t]: null };
34
- l == "sibling" ? r[t] = a.value.currentNode[t] : l == "child" && (r[t] = a.value.currentNode[o.value.id]);
35
- let n = F.encode(r), u = `${y.value.insert.route}?default=${n}`;
36
- l == "copy" && (u += "&id=" + a.value.currentNode[o.value.id]), d.value.url = u, d.value.visible = !0;
37
- }, O = () => {
38
- let l = a.value.currentNode[o.value.id], t = a.value.currentNode[o.value.text], r = p("common.confirm_delete", t);
39
- Le.confirm(p("common.tips"), r, { type: "warning" }).then(() => {
40
- re(l);
38
+ let t = r.value.parentId, o = { [t]: null };
39
+ l == "sibling" ? o[t] = a.value.currentNode[t] : l == "child" && (o[t] = a.value.currentNode[r.value.id]);
40
+ let n = P.encode(o), u = `${y.value.insert.route}?default=${n}`;
41
+ l == "copy" && (u += "&id=" + a.value.currentNode[r.value.id]), d.value.url = u, d.value.visible = !0;
42
+ }, H = () => {
43
+ let l = a.value.currentNode[r.value.id], t = a.value.currentNode[r.value.text], o = p("common.confirm_delete", t);
44
+ qe.confirm(p("common.tips"), o, { type: "warning" }).then(() => {
45
+ oe(l);
41
46
  });
42
- }, re = (l) => {
43
- let t = o.value.id, r = o.value.data, n = H.getNextById(l, t, r, "Children");
44
- J.post(y.value.delete.route, [l]).then(() => {
45
- H.removeById(l, t, r, "Children");
47
+ }, oe = (l) => {
48
+ let t = r.value.id, o = r.value.data, n = J.getNextById(l, t, o, "Children");
49
+ Q.post(y.value.delete.route, [l]).then(() => {
50
+ J.removeById(l, t, o, "Children");
46
51
  let u = null;
47
- n && (u = n[t], a.value.currentKey = u, a.value.expandedKeys.push(u)), b("succeed", () => {
48
- I(a.value.scrollTop);
52
+ n && (u = n[t], a.value.currentKey = u, a.value.expandedKeys.push(u)), k("succeed", () => {
53
+ D(a.value.scrollTop);
49
54
  });
50
55
  });
51
56
  }, ne = (l) => {
52
57
  a.value.scrollTop = l.scrollTop;
53
- }, I = (l = null, t = null) => {
54
- a.value.visible = !1, A(() => {
55
- a.value.visible = !0, A(() => {
58
+ }, D = (l = null, t = null) => {
59
+ a.value.visible = !1, O(() => {
60
+ a.value.visible = !0, O(() => {
56
61
  if (l == null) {
57
- let r = K.value.$el.querySelector(".el-tree-node.is-current");
58
- r && r.scrollIntoView({ block: "center", behavior: "smooth" });
62
+ let o = K.value.$el.querySelector(".el-tree-node.is-current");
63
+ o && o.scrollIntoView({ block: "center", behavior: "smooth" });
59
64
  } else
60
65
  S.value.setScrollTop(l);
61
66
  t && t();
62
67
  });
63
68
  });
64
69
  }, ue = () => {
65
- d.value.visible = !1, b("succeed", () => {
66
- I(a.value.scrollTop);
70
+ d.value.visible = !1, k("succeed", () => {
71
+ D(a.value.scrollTop);
67
72
  });
68
73
  }, se = (l) => {
69
74
  d.value.type = l.module.type, d.value.name = l.module.name;
70
75
  }, de = () => {
71
76
  d.value.visible = !1;
72
- }, ie = (l, t, r) => {
73
- E();
74
- let n = l[o.value.id];
75
- if (Q.pushIfNotExist(a.value.expandedKeys, n), n == a.value.currentKey)
77
+ }, ie = (l, t, o) => {
78
+ z();
79
+ let n = l[r.value.id];
80
+ if (W.pushIfNotExist(a.value.expandedKeys, n), n == a.value.currentKey)
76
81
  x.value.refresh();
77
82
  else {
78
- a.value.currentKey = n, R.value = V();
79
- let u = Ue.getUrl(N.value.fullPath, { id: n });
80
- b("navigate", u);
83
+ a.value.currentKey = n, R.value = I();
84
+ let u = Le.getUrl(N.value.fullPath, { id: n });
85
+ k("navigate", u);
81
86
  }
82
- }, ce = (l, t, r) => {
83
- Q.remove(a.value.expandedKeys, l[o.value.id]);
84
- }, ve = (l, t, r, n) => {
87
+ }, ce = (l, t, o) => {
88
+ W.remove(a.value.expandedKeys, l[r.value.id]);
89
+ }, ve = (l, t, o, n) => {
85
90
  let u = {
86
- table: o.value.table,
87
- id: l.data[o.value.id],
88
- targetId: t.data[o.value.id],
89
- position: r
91
+ table: r.value.table,
92
+ id: l.data[r.value.id],
93
+ targetId: t.data[r.value.id],
94
+ position: o
90
95
  };
91
- J.post(o.value.operation.route, u).then((j) => {
96
+ Q.post(r.value.operation.route, u).then((A) => {
92
97
  });
93
98
  }, fe = (l) => {
94
- b("search", l);
99
+ k("search", l);
95
100
  }, me = (l) => {
96
101
  }, pe = (l, t) => l ? t[m.value.text].indexOf(l) !== -1 : !0, ye = () => {
97
- b("refresh");
102
+ k("refresh");
98
103
  }, he = (l, t) => {
99
104
  if (!x.value || !x.value.keyboard)
100
105
  return !1;
101
106
  x.value.keyboard(l, t);
102
107
  }, _e = () => {
103
108
  S.value.update();
104
- }, V = () => {
105
- let l = y.value[o.value.page.toLowerCase()].route;
109
+ }, I = () => {
110
+ let l = y.value[r.value.page.toLowerCase()].route;
106
111
  return a.value.currentKey && (l += "?id=" + a.value.currentKey), l;
107
- }, ke = () => {
112
+ }, be = () => {
108
113
  let l = N.value.query.id, t;
109
- l == null ? t = o.value.updateKey : t = M.convert(l, P.value.type), t && (a.value.currentKey = t, a.value.expandedKeys = [t], R.value = V()), I(null, () => {
110
- D = new Be(B.value, [S.value.$el, z.value]);
114
+ l == null ? t = r.value.updateKey : t = j.convert(l, M.value.type), t && (a.value.currentKey = t, a.value.expandedKeys = [t], R.value = I()), D(null, () => {
115
+ U = new Be(B.value, [S.value.$el, E.value]);
111
116
  });
112
117
  };
113
- ge(() => {
114
- ke();
118
+ Ce(() => {
119
+ be();
115
120
  }), we(() => {
116
- D.dispose();
117
- }), L(() => {
118
- let l = { [o.value.parentId]: N.value.query.id };
119
- return F.encode(l);
121
+ U.dispose();
122
+ }), q(() => {
123
+ let l = { [r.value.parentId]: N.value.query.id };
124
+ return P.encode(l);
120
125
  });
121
- let be = L(() => {
126
+ let ke = q(() => {
122
127
  let l = `/${m.value.name}/tree-node`;
123
- return De.getComponent(l, "partial", "tree-node");
124
- }), P = L(() => m.value.fields.find((t) => t.name == o.value.id));
128
+ return Ue.getComponent(l, "partial", "tree-node");
129
+ }), M = q(() => m.value.fields.find((t) => t.name == r.value.id));
125
130
  return Ne(() => N.value, (l, t) => {
126
- a.value.currentKey = M.convert(l.query.id, P.value.type), R.value = V();
127
- }), X({ refresh: ye, keyboard: he, resize: _e }), (l, t) => {
128
- const r = T("el-scrollbar"), n = T("el-tree"), u = T("el-button"), j = T("el-drawer");
129
- return i(), C(e(Ie), {
131
+ a.value.currentKey = j.convert(l.query.id, M.value.type), R.value = I();
132
+ }), Y({ refresh: ye, keyboard: he, resize: _e }), (l, t) => {
133
+ const o = T("el-scrollbar"), n = T("el-tree"), u = T("el-button"), A = T("el-drawer");
134
+ return i(), g(e(De), {
130
135
  class: "tree",
131
136
  width: e(a).width,
132
137
  onResize: t[5] || (t[5] = (s) => e(a).width = s)
133
138
  }, {
134
139
  left: f(() => [
135
- c("div", ze, [
140
+ c("div", Ee, [
136
141
  e(m).search.length ? (i(), h("div", {
137
142
  key: 0,
138
143
  ref_key: "searchRef",
139
144
  ref: ae,
140
145
  class: "tree-search"
141
146
  }, [
142
- _(r, null, {
147
+ _(o, null, {
143
148
  default: f(() => [
144
- (i(!0), h(Ke, null, Se(e(m).search, (s, q) => (i(), h("div", {
149
+ (i(!0), h(Ke, null, Se(e(m).search, (s, V) => (i(), h("div", {
145
150
  class: "search-field",
146
- key: q
151
+ key: V
147
152
  }, [
148
- _(e(Ve), {
153
+ _(e(Ie), {
149
154
  schema: e(le),
150
155
  table: e(m),
151
156
  field: s,
@@ -157,46 +162,46 @@ const ze = { class: "tree-left" }, Ee = /* @__PURE__ */ c("i", { class: "fa fa-p
157
162
  ]),
158
163
  _: 1
159
164
  })
160
- ], 512)) : (i(), C(e(qe), {
165
+ ], 512)) : (i(), g(e(Ve), {
161
166
  key: 1,
162
- title: e(Y)(e(U).type, e(U).name)
167
+ title: e(F)(e(L).type, e(L).name)
163
168
  }, null, 8, ["title"])),
164
- Re(_(r, {
169
+ Re(_(o, {
165
170
  ref_key: "scrollbarRef",
166
171
  ref: S,
167
172
  class: "tree-content",
168
173
  onScroll: e(ne)
169
174
  }, {
170
175
  default: f(() => [
171
- e(a).visible ? (i(), C(n, {
176
+ e(a).visible ? (i(), g(n, {
172
177
  key: 0,
173
178
  ref_key: "treeRef",
174
179
  ref: K,
175
180
  "highlight-current": "",
176
- "show-checkbox": e(o).checkbox,
181
+ "show-checkbox": e(r).checkbox,
177
182
  "expand-on-click-node": !1,
178
- draggable: !!e(o).operation,
179
- data: e(o).data,
180
- "node-key": e(o).id,
183
+ draggable: !!e(r).operation,
184
+ data: e(r).data,
185
+ "node-key": e(r).id,
181
186
  "current-node-key": e(a).currentKey,
182
- props: { children: "Children", label: e(o).text },
187
+ props: { children: "Children", label: e(r).text },
183
188
  "filter-node-method": e(pe),
184
189
  "default-expanded-keys": e(a).expandedKeys,
185
190
  onNodeClick: e(ie),
186
- onNodeContextmenu: e(oe),
191
+ onNodeContextmenu: e(re),
187
192
  onNodeCollapse: e(ce),
188
193
  onNodeDrop: e(ve)
189
194
  }, {
190
- default: f(({ node: s, data: q }) => [
191
- (i(), C($e(e(be)), {
195
+ default: f(({ node: s, data: V }) => [
196
+ (i(), g($e(e(ke)), {
192
197
  table: e(m),
193
- layout: e(o),
194
- row: q,
198
+ layout: e(r),
199
+ row: V,
195
200
  node: s
196
201
  }, null, 8, ["table", "layout", "row", "node"]))
197
202
  ]),
198
203
  _: 1
199
- }, 8, ["show-checkbox", "draggable", "data", "node-key", "current-node-key", "props", "filter-node-method", "default-expanded-keys", "onNodeClick", "onNodeContextmenu", "onNodeCollapse", "onNodeDrop"])) : g("", !0),
204
+ }, 8, ["show-checkbox", "draggable", "data", "node-key", "current-node-key", "props", "filter-node-method", "default-expanded-keys", "onNodeClick", "onNodeContextmenu", "onNodeCollapse", "onNodeDrop"])) : C("", !0),
200
205
  c("ul", {
201
206
  ref_key: "menuRef",
202
207
  ref: B,
@@ -205,69 +210,69 @@ const ze = { class: "tree-left" }, Ee = /* @__PURE__ */ c("i", { class: "fa fa-p
205
210
  c("li", {
206
211
  onClick: t[0] || (t[0] = (s) => e($)("child"))
207
212
  }, [
208
- Ee,
209
- w(k(e(p)("tree.add_sub_item")), 1)
213
+ ze,
214
+ w(b(e(p)("tree.add_sub_item")), 1)
210
215
  ]),
211
216
  c("li", {
212
217
  onClick: t[1] || (t[1] = (s) => e($)("sibling"))
213
218
  }, [
214
- Oe,
215
- w(k(e(p)("tree.add_same_grade")), 1)
219
+ He,
220
+ w(b(e(p)("tree.add_same_grade")), 1)
216
221
  ]),
217
222
  c("li", {
218
223
  onClick: t[2] || (t[2] = (s) => e($)("copy"))
219
224
  }, [
220
- Pe,
221
- w(k(e(p)("common.copy")), 1)
225
+ Me,
226
+ w(b(e(p)("common.copy")), 1)
222
227
  ]),
223
228
  e(y).delete ? (i(), h("li", {
224
229
  key: 0,
225
230
  onClick: t[3] || (t[3] = //@ts-ignore
226
- (...s) => e(O) && e(O)(...s))
231
+ (...s) => e(H) && e(H)(...s))
227
232
  }, [
228
- je,
229
- w(k(e(p)("common.delete")), 1)
230
- ])) : g("", !0)
233
+ Ae,
234
+ w(b(e(p)("common.delete")), 1)
235
+ ])) : C("", !0)
231
236
  ], 512)
232
237
  ]),
233
238
  _: 1
234
239
  }, 8, ["onScroll"]), [
235
- [Te, e(o).data.length]
240
+ [Te, e(r).data.length]
236
241
  ]),
237
- e(o).data.length ? g("", !0) : (i(), h("div", Ae, k(e(p)("common.no_data")), 1)),
238
- !e(o).data.length && e(y).insert ? (i(), h("div", Fe, [
242
+ e(r).data.length ? C("", !0) : (i(), h("div", Oe, b(e(p)("common.no_data")), 1)),
243
+ !e(r).data.length && e(y).insert ? (i(), h("div", Pe, [
239
244
  _(u, {
240
245
  type: "primary",
241
246
  onClick: e($)
242
247
  }, {
243
248
  icon: f(() => [
244
- Me
249
+ je
245
250
  ]),
246
251
  default: f(() => [
247
- w(" " + k(e(y).insert.title), 1)
252
+ w(" " + b(e(y).insert.title), 1)
248
253
  ]),
249
254
  _: 1
250
255
  }, 8, ["onClick"])
251
- ])) : g("", !0)
256
+ ])) : C("", !0)
252
257
  ])
253
258
  ]),
254
259
  default: f(() => [
255
260
  c("div", {
256
261
  ref_key: "detailRef",
257
- ref: z,
262
+ ref: E,
258
263
  class: "tree-detail"
259
264
  }, [
260
- e(a).currentKey ? (i(), C(e(G), {
265
+ e(a).currentKey ? (i(), g(e(G), {
261
266
  key: 0,
262
267
  ref_key: "singleRef",
263
268
  ref: x,
264
269
  url: e(R)
265
- }, null, 8, ["url"])) : g("", !0)
270
+ }, null, 8, ["url"])) : C("", !0)
266
271
  ], 512),
267
- _(j, {
272
+ _(A, {
268
273
  size: "60%",
269
274
  "destroy-on-close": "",
270
- title: e(Y)(e(d).type, e(d).name),
275
+ title: e(F)(e(d).type, e(d).name),
271
276
  modelValue: e(d).visible,
272
277
  "onUpdate:modelValue": t[4] || (t[4] = (s) => e(d).visible = s)
273
278
  }, {
@@ -288,5 +293,5 @@ const ze = { class: "tree-left" }, Ee = /* @__PURE__ */ c("i", { class: "fa fa-p
288
293
  }
289
294
  });
290
295
  export {
291
- We as default
296
+ tl as default
292
297
  };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as x, toRefs as h, computed as C, openBlock as a, createElementBlock as s, unref as e, createElementVNode as N, toDisplayString as i, createTextVNode as b, createCommentVNode as d } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import { t as g, S as y } from "./main-D-QTCahZ.js";
4
+ import "./assets/clone-BZn0cTAu.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ const k = ["title"], v = { class: "number" }, S = {
9
+ key: 0,
10
+ class: "option-suffix"
11
+ }, V = {
12
+ key: 1,
13
+ class: "count"
14
+ }, H = /* @__PURE__ */ x({
15
+ __name: "TreeNode",
16
+ props: {
17
+ table: {},
18
+ layout: {},
19
+ row: {},
20
+ node: {}
21
+ },
22
+ setup(p) {
23
+ let u = p, { table: c, layout: r, row: t, node: m } = h(u), f = (o, l) => {
24
+ let n = (o.parent.data.Children ? o.parent.data.Children.indexOf(l) : o.parent.data.indexOf(l)) + 1;
25
+ return y.padLeft(n, 2, "0");
26
+ }, _ = C(() => c.value.fields.find((n) => n.name == r.value.text).control.i18N);
27
+ return (o, l) => {
28
+ var n;
29
+ return a(), s("div", {
30
+ title: e(t)[e(r).title]
31
+ }, [
32
+ N("span", v, i(e(f)(e(m), e(t))), 1),
33
+ b(" " + i((n = e(_)) != null && n.value ? e(g)(e(t)[e(r).text]) : e(t)[e(r).text]) + " ", 1),
34
+ e(r).suffix ? (a(), s("span", S, i(e(t)[e(r).suffix]), 1)) : d("", !0),
35
+ e(t).Children && e(t).Children.length > 0 ? (a(), s("span", V, "(" + i(e(t).Children.length) + ")", 1)) : d("", !0)
36
+ ], 8, k);
37
+ };
38
+ }
39
+ });
40
+ export {
41
+ H as default
42
+ };