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
@@ -0,0 +1,117 @@
1
+ import { defineComponent as O, toRefs as Q, ref as k, onMounted as U, 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 { d as f, m as P } from "./main-nvsTmKXH.js";
3
+ const ee = { class: "option-text" }, le = {
4
+ key: 0,
5
+ class: "option-suffix"
6
+ }, ne = /* @__PURE__ */ O({
7
+ __name: "Tree",
8
+ props: {
9
+ route: {},
10
+ validateErrors: {},
11
+ module: {},
12
+ schema: {},
13
+ table: {},
14
+ layout: {},
15
+ next: {},
16
+ set: {}
17
+ },
18
+ setup(S, { expose: $ }) {
19
+ let z = S, { module: D, schema: te, table: s, layout: l, set: p } = Q(z), E = k(), V = k([]), x = k(), w = k(0), g = k([]), R = k(!0), W = (e, r, n) => {
20
+ let a = p.value[s.value.name].find((o) => o.PermissionId == e[l.value.id]);
21
+ a && (a[l.value.expand] = !0);
22
+ }, j = (e, r, n) => {
23
+ let a = p.value[s.value.name].find((o) => o.PermissionId == e[l.value.id]);
24
+ a && (a[l.value.expand] = !1);
25
+ }, q = (e, r, n) => {
26
+ let a = r.checkedKeys, o = e[l.value.id], i = f.array.contains(a, o), c = [], u = [], h = f.tree.getChildren(e, "Children").map((t) => t[l.value.id]), m = p.value[s.value.name].map((t) => t[l.value.checked]), v = f.array.intersect(h, m);
27
+ if (i) {
28
+ c.push(e[l.value.id]);
29
+ let t = f.array.except(h, v);
30
+ t.length && (a.push(...t), c.push(...t));
31
+ } else
32
+ u.push(o), v.length == h.length && (u.push(...h), f.array.remove(a, h));
33
+ c.length && A(c), u.length && G(u);
34
+ }, A = (e) => {
35
+ for (let r = 0; r < e.length; r++) {
36
+ let n = P.getDefaultRow(s.value);
37
+ n[l.value.checked] = e[r], p.value[s.value.name].push(n);
38
+ }
39
+ }, G = (e) => {
40
+ let r = p.value[s.value.name];
41
+ for (let n = 0; n < e.length; n++) {
42
+ let a = r.find((o) => o[l.value.checked] == e[n]);
43
+ f.array.remove(r, a);
44
+ }
45
+ }, H = (e) => {
46
+ x.value = e.contentRect.width, w.value = Math.ceil(x.value / 300), I(s.value, l.value, p.value);
47
+ }, I = (e, r, n) => {
48
+ g.value = P.getLines(r.data, w.value, (a) => [a], () => 1), K(() => {
49
+ let a = n[e.name].map((i) => i[r.checked]), o = 0;
50
+ for (let i = 0; i < g.value.length; i++) {
51
+ let c = g.value[i];
52
+ for (let u = 0; u < c.length; u++) {
53
+ let y = V.value[o], h = c[u].data, m = f.tree.getFlat(h, "Children").map((t) => t[r.id]), v = f.array.intersect(m, a);
54
+ if (!(v.length == 1 && m.length > 1)) for (let t = 0; t < v.length; t++) {
55
+ let J = v[t];
56
+ y.setChecked(J, !0, !1);
57
+ }
58
+ o++;
59
+ }
60
+ }
61
+ });
62
+ };
63
+ return U(() => {
64
+ x.value = f.dom.getWidth(E.value), w.value = Math.ceil(x.value / 300), I(s.value, l.value, p.value);
65
+ }), X(() => s.value, (e, r) => {
66
+ R.value = !1, K(() => {
67
+ R.value = !0, I(e, l.value, p.value);
68
+ });
69
+ }), $({ resize: H }), (e, r) => {
70
+ const n = N("el-tree"), a = N("el-col"), o = N("el-row");
71
+ return _(), C("div", {
72
+ ref_key: "layoutRef",
73
+ ref: E,
74
+ class: "ha-tree-layout"
75
+ }, [
76
+ d(R) ? (_(!0), C(L, { key: 0 }, B(d(g), (i, c) => (_(), M(o, null, {
77
+ default: b(() => [
78
+ (_(!0), C(L, null, B(i, ({ data: u, span: y, index: h }, m) => (_(), M(a, {
79
+ span: y,
80
+ key: `${c}.${m}`
81
+ }, {
82
+ default: b(() => [
83
+ Y(n, {
84
+ ref_for: !0,
85
+ ref_key: "treeRefs",
86
+ ref: V,
87
+ "show-checkbox": "",
88
+ "highlight-current": "",
89
+ "default-expand-all": !1,
90
+ "expand-on-click-node": !1,
91
+ "node-key": d(l).id,
92
+ data: u,
93
+ props: { children: "Children", label: d(l).text },
94
+ disabled: d(D).type == "Detail",
95
+ onNodeExpand: d(W),
96
+ onNodeCollapse: d(j),
97
+ onCheck: (v, t) => d(q)(v, t, h)
98
+ }, {
99
+ default: b(({ node: v, data: t }) => [
100
+ Z("div", ee, T(t[d(l).text]), 1),
101
+ d(l).suffix ? (_(), C("div", le, T(t[d(l).suffix]), 1)) : F("", !0)
102
+ ]),
103
+ _: 2
104
+ }, 1032, ["node-key", "data", "props", "disabled", "onNodeExpand", "onNodeCollapse", "onCheck"])
105
+ ]),
106
+ _: 2
107
+ }, 1032, ["span"]))), 128))
108
+ ]),
109
+ _: 2
110
+ }, 1024))), 256)) : F("", !0)
111
+ ], 512);
112
+ };
113
+ }
114
+ });
115
+ export {
116
+ ne as default
117
+ };
@@ -1,15 +1,14 @@
1
- import { defineComponent as xe, toRefs as Ce, ref as v, onMounted as ge, onUnmounted as _e, computed as L, watch as we, resolveComponent as U, openBlock as i, createBlock as g, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as b, Fragment as Ne, renderList as Ke, withDirectives as Se, resolveDynamicComponent as Re, createCommentVNode as _, createTextVNode as w, toDisplayString as k, vShow as $e, nextTick as F } from "vue";
2
- import { c as A, d as De, v as G, D as Ue, C as Ie, E as Te, b as H, t as y, a as J, m as Ve, U as N, h as Q, M as qe } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
1
+ import { defineComponent as xe, toRefs as ge, ref as v, onMounted as Ce, onUnmounted as _e, computed as U, watch as we, resolveComponent as D, openBlock as i, createBlock as g, unref as e, withCtx as f, createElementVNode as c, createElementBlock as h, createVNode as k, Fragment as Ne, renderList as Ke, withDirectives as Se, resolveDynamicComponent as Re, createCommentVNode as C, createTextVNode as _, toDisplayString as b, vShow as $e, nextTick as j } from "vue";
2
+ import { g as F, c as De, o as M, q as Ie, p as Te, v as Ve, S as G, f as y, a as J, i as qe, d as w, _ as Q, A as Le, y as Ue } from "./main-nvsTmKXH.js";
4
3
  import "vue-router";
5
4
  import "./assets/intro.js-Cg1adLK7.js";
6
- const Le = { class: "tree-left" }, Be = {
5
+ const Be = { class: "tree-left" }, ze = {
7
6
  key: 2,
8
7
  class: "ha-empty"
9
8
  }, Ee = {
10
9
  key: 3,
11
10
  class: "tree-add"
12
- }, Ae = /* @__PURE__ */ xe({
11
+ }, Fe = /* @__PURE__ */ xe({
13
12
  __name: "Tree",
14
13
  props: {
15
14
  searchData: {},
@@ -23,65 +22,65 @@ const Le = { class: "tree-left" }, Be = {
23
22
  },
24
23
  emits: ["refresh", "succeed", "search", "navigate"],
25
24
  setup(W, { expose: X, emit: Y }) {
26
- let x = Y, Z = W, { route: K, module: B, schema: ee, table: m, layout: a, next: p, set: ze, searchData: le } = Ce(Z), S = v(), E = v(), C = v(), R = v(), z = v(), te = v(), d = v({ type: null, name: null, url: null, visible: !1 }), $ = v(), I = null, r = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), M = () => {
27
- if (!S.value)
25
+ let x = Y, Z = W, { route: N, module: B, schema: ee, table: m, layout: a, next: p, set: Ae, searchData: le } = ge(Z), K = v(), z = v(), I = v(), S = v(), E = v(), te = v(), s = v({ type: null, name: null, url: null, visible: !1 }), R = v(), T = null, r = v({ width: 250, currentNode: null, currentKey: null, expandedKeys: [], scrollTop: 0, visible: !1 }), A = () => {
26
+ if (!K.value)
28
27
  return;
29
- let t = S.value.$el.querySelector(".is-context");
28
+ let t = K.value.$el.querySelector(".is-context");
30
29
  t && t.classList.remove("is-context");
31
30
  }, re = (t, l, o, n) => {
32
- M(), n.vnode.el.classList.add("is-context"), r.value.currentNode = l, I.show(t);
33
- }, D = (t) => {
31
+ A(), n.vnode.el.classList.add("is-context"), r.value.currentNode = l, T.show(t);
32
+ }, $ = (t) => {
34
33
  let l = a.value.parentId, o = { [l]: null };
35
34
  t == "sibling" ? o[l] = r.value.currentNode[l] : t == "child" && (o[l] = r.value.currentNode[a.value.id]);
36
- let n = A.encode(o), u;
37
- t == "copy" ? u = `${p.value.copy.route}?id=${r.value.currentNode[a.value.id]}&` : u = `${p.value.insert.route}?`, u += `default=${n}`, d.value.url = u, d.value.visible = !0;
38
- }, O = () => {
35
+ let n = F.encode(o), u;
36
+ t == "copy" ? u = `${p.value.copy.route}?id=${r.value.currentNode[a.value.id]}&` : u = `${p.value.insert.route}?`, u += `default=${n}`, s.value.url = u, s.value.visible = !0;
37
+ }, H = () => {
39
38
  let t = r.value.currentNode[a.value.id], l = r.value.currentNode[a.value.text], o = y("common.confirm_delete", l);
40
- Ve.confirm(y("common.tips"), o, { type: "warning" }).then(() => {
39
+ qe.confirm(y("common.tips"), o, { type: "warning" }).then(() => {
41
40
  ae(t);
42
41
  });
43
42
  }, ae = (t) => {
44
- let l = a.value.id, o = a.value.data, n = N.tree.getNextById(t, l, o, "Children");
43
+ let l = a.value.id, o = a.value.data, n = w.tree.getNextById(t, l, o, "Children");
45
44
  Q.post(p.value.delete.route, [t]).then(() => {
46
- N.tree.removeById(t, l, o, "Children");
45
+ w.tree.removeById(t, l, o, "Children");
47
46
  let u = null;
48
47
  n && (u = n[l], r.value.currentKey = u, r.value.expandedKeys.push(u)), x("succeed", () => {
49
- T(r.value.scrollTop);
48
+ V(r.value.scrollTop);
50
49
  });
51
50
  });
52
51
  }, oe = (t) => {
53
52
  r.value.scrollTop = t.scrollTop;
54
- }, T = (t = null, l = null) => {
55
- r.value.visible = !1, F(() => {
56
- r.value.visible = !0, F(() => {
53
+ }, V = (t = null, l = null) => {
54
+ r.value.visible = !1, j(() => {
55
+ r.value.visible = !0, j(() => {
57
56
  if (t == null) {
58
- let o = S.value.$el.querySelector(".el-tree-node.is-current");
57
+ let o = K.value.$el.querySelector(".el-tree-node.is-current");
59
58
  o && o.scrollIntoView({ block: "center", behavior: "smooth" });
60
59
  } else
61
- R.value.setScrollTop(t);
60
+ S.value.setScrollTop(t);
62
61
  l && l();
63
62
  });
64
63
  });
65
64
  }, ne = () => {
66
- d.value.visible = !1, x("succeed", () => {
67
- T(r.value.scrollTop);
65
+ s.value.visible = !1, x("succeed", () => {
66
+ V(r.value.scrollTop);
68
67
  });
69
68
  }, ue = (t) => {
70
- d.value.type = t.module.type, d.value.name = t.module.name;
71
- }, se = () => {
72
- d.value.visible = !1;
73
- }, de = (t, l, o) => {
74
- M();
69
+ s.value.type = t.module.type, s.value.name = t.module.name;
70
+ }, de = () => {
71
+ s.value.visible = !1;
72
+ }, se = (t, l, o) => {
73
+ A();
75
74
  let n = t[a.value.id];
76
- if (N.array.pushIfNotExist(r.value.expandedKeys, n), n == r.value.currentKey)
77
- C.value.refresh();
75
+ if (w.array.pushIfNotExist(r.value.expandedKeys, n), n == r.value.currentKey)
76
+ I.value.refresh();
78
77
  else {
79
- r.value.currentKey = n, $.value = V();
80
- let u = N.url.getUrl(K.value.fullPath, { id: n });
78
+ r.value.currentKey = n, R.value = q();
79
+ let u = w.url.getUrl(N.value.fullPath, { id: n });
81
80
  x("navigate", u);
82
81
  }
83
82
  }, ie = (t, l, o) => {
84
- N.array.remove(r.value.expandedKeys, t[a.value.id]);
83
+ w.array.remove(r.value.expandedKeys, t[a.value.id]);
85
84
  }, ce = (t, l, o, n) => {
86
85
  let u = {
87
86
  table: a.value.table,
@@ -89,7 +88,7 @@ const Le = { class: "tree-left" }, Be = {
89
88
  targetId: l.data[a.value.id],
90
89
  position: o
91
90
  };
92
- Q.post(a.value.operation.route, u).then((j) => {
91
+ Q.post(a.value.operation.route, u).then((P) => {
93
92
  });
94
93
  }, ve = (t) => {
95
94
  x("search", t);
@@ -97,59 +96,57 @@ const Le = { class: "tree-left" }, Be = {
97
96
  }, me = (t, l) => t ? l[m.value.text].indexOf(t) !== -1 : !0, pe = () => {
98
97
  x("refresh");
99
98
  }, ye = (t, l) => {
100
- if (!C.value || !C.value.keyboard)
101
- return !1;
102
- C.value.keyboard(t, l);
99
+ Le.triggerKeyboardHandler(I.value, t, l);
103
100
  }, he = () => {
104
- R.value.update();
105
- }, V = () => {
101
+ S.value.update();
102
+ }, q = () => {
106
103
  let t = p.value[a.value.page.toLowerCase()].route;
107
104
  return r.value.currentKey && (t += "?id=" + r.value.currentKey), t;
108
- }, be = () => {
109
- let t = K.value.query.id, l;
110
- t == null ? l = a.value.updateKey : l = G.convert(t, P.value.type), l && (r.value.currentKey = l, r.value.expandedKeys = [l], $.value = V()), T(null, () => {
111
- I = new qe(E.value, [R.value.$el, z.value]);
105
+ }, ke = () => {
106
+ let t = N.value.query.id, l;
107
+ t == null ? l = a.value.updateKey : l = M.convert(t, O.value.type), l && (r.value.currentKey = l, r.value.expandedKeys = [l], R.value = q()), V(null, () => {
108
+ T = new Ue(z.value, [S.value.$el, E.value]);
112
109
  });
113
110
  };
114
- ge(() => {
115
- be();
111
+ Ce(() => {
112
+ ke();
116
113
  }), _e(() => {
117
- I.dispose();
118
- }), L(() => {
119
- let t = { [a.value.parentId]: K.value.query.id };
120
- return A.encode(t);
114
+ T.dispose();
115
+ }), U(() => {
116
+ let t = { [a.value.parentId]: N.value.query.id };
117
+ return F.encode(t);
121
118
  });
122
- let ke = L(() => {
119
+ let be = U(() => {
123
120
  let t = `/${m.value.name}/tree-node`;
124
121
  return De.getComponent(t, "partial", "tree-node");
125
- }), P = L(() => m.value.fields.find((l) => l.name == a.value.id));
126
- return we(() => K.value, (t, l) => {
127
- r.value.currentKey = G.convert(t.query.id, P.value.type), $.value = V();
128
- }), X({ refresh: pe, keyboard: ye, resize: he }), (t, l) => {
129
- const o = U("el-scrollbar"), n = U("el-tree"), u = U("el-button"), j = U("el-drawer");
130
- return i(), g(e(Ue), {
122
+ }), O = U(() => m.value.fields.find((l) => l.name == a.value.id));
123
+ return we(() => N.value, (t, l) => {
124
+ r.value.currentKey = M.convert(t.query.id, O.value.type), R.value = q();
125
+ }), X({ refresh: pe, keyboardHandler: ye, resize: he }), (t, l) => {
126
+ const o = D("el-scrollbar"), n = D("el-tree"), u = D("el-button"), P = D("el-drawer");
127
+ return i(), g(e(Ie), {
131
128
  class: "tree",
132
129
  width: e(r).width,
133
- onResize: l[5] || (l[5] = (s) => e(r).width = s)
130
+ onResize: l[5] || (l[5] = (d) => e(r).width = d)
134
131
  }, {
135
132
  left: f(() => [
136
- c("div", Le, [
133
+ c("div", Be, [
137
134
  e(m).search.length ? (i(), h("div", {
138
135
  key: 0,
139
136
  ref_key: "searchRef",
140
137
  ref: te,
141
138
  class: "tree-search"
142
139
  }, [
143
- b(o, null, {
140
+ k(o, null, {
144
141
  default: f(() => [
145
- (i(!0), h(Ne, null, Ke(e(m).search, (s, q) => (i(), h("div", {
142
+ (i(!0), h(Ne, null, Ke(e(m).search, (d, L) => (i(), h("div", {
146
143
  class: "search-field",
147
- key: q
144
+ key: L
148
145
  }, [
149
- b(e(Ie), {
146
+ k(e(Te), {
150
147
  schema: e(ee),
151
148
  table: e(m),
152
- field: s,
149
+ field: d,
153
150
  "search-data": e(le),
154
151
  onChange: e(fe),
155
152
  onSubmit: e(ve)
@@ -158,13 +155,13 @@ const Le = { class: "tree-left" }, Be = {
158
155
  ]),
159
156
  _: 1
160
157
  })
161
- ], 512)) : (i(), g(e(Te), {
158
+ ], 512)) : (i(), g(e(Ve), {
162
159
  key: 1,
163
- title: e(H)(e(B).type, e(B).name)
160
+ title: e(G)(e(B).type, e(B).name)
164
161
  }, null, 8, ["title"])),
165
- Se(b(o, {
162
+ Se(k(o, {
166
163
  ref_key: "scrollbarRef",
167
- ref: R,
164
+ ref: S,
168
165
  class: "tree-content",
169
166
  onScroll: e(oe)
170
167
  }, {
@@ -172,7 +169,7 @@ const Le = { class: "tree-left" }, Be = {
172
169
  e(r).visible ? (i(), g(n, {
173
170
  key: 0,
174
171
  ref_key: "treeRef",
175
- ref: S,
172
+ ref: K,
176
173
  "highlight-current": "",
177
174
  "show-checkbox": e(a).checkbox,
178
175
  "expand-on-click-node": !1,
@@ -183,101 +180,101 @@ const Le = { class: "tree-left" }, Be = {
183
180
  props: { children: "Children", label: e(a).text },
184
181
  "filter-node-method": e(me),
185
182
  "default-expanded-keys": e(r).expandedKeys,
186
- onNodeClick: e(de),
183
+ onNodeClick: e(se),
187
184
  onNodeContextmenu: e(re),
188
185
  onNodeCollapse: e(ie),
189
186
  onNodeDrop: e(ce)
190
187
  }, {
191
- default: f(({ node: s, data: q }) => [
192
- (i(), g(Re(e(ke)), {
188
+ default: f(({ node: d, data: L }) => [
189
+ (i(), g(Re(e(be)), {
193
190
  table: e(m),
194
191
  layout: e(a),
195
- row: q,
196
- node: s
192
+ row: L,
193
+ node: d
197
194
  }, null, 8, ["table", "layout", "row", "node"]))
198
195
  ]),
199
196
  _: 1
200
- }, 8, ["show-checkbox", "draggable", "data", "node-key", "current-node-key", "props", "filter-node-method", "default-expanded-keys", "onNodeClick", "onNodeContextmenu", "onNodeCollapse", "onNodeDrop"])) : _("", !0),
197
+ }, 8, ["show-checkbox", "draggable", "data", "node-key", "current-node-key", "props", "filter-node-method", "default-expanded-keys", "onNodeClick", "onNodeContextmenu", "onNodeCollapse", "onNodeDrop"])) : C("", !0),
201
198
  c("ul", {
202
199
  ref_key: "menuRef",
203
- ref: E,
200
+ ref: z,
204
201
  class: "mouse-context"
205
202
  }, [
206
203
  c("li", {
207
- onClick: l[0] || (l[0] = (s) => e(D)("child"))
204
+ onClick: l[0] || (l[0] = (d) => e($)("child"))
208
205
  }, [
209
206
  l[6] || (l[6] = c("i", { class: "fa fa-plus" }, null, -1)),
210
- w(k(e(y)("tree.add_sub_item")), 1)
207
+ _(b(e(y)("tree.add_sub_item")), 1)
211
208
  ]),
212
209
  c("li", {
213
- onClick: l[1] || (l[1] = (s) => e(D)("sibling"))
210
+ onClick: l[1] || (l[1] = (d) => e($)("sibling"))
214
211
  }, [
215
212
  l[7] || (l[7] = c("i", { class: "fa fa-plus" }, null, -1)),
216
- w(k(e(y)("tree.add_same_grade")), 1)
213
+ _(b(e(y)("tree.add_same_grade")), 1)
217
214
  ]),
218
215
  c("li", {
219
- onClick: l[2] || (l[2] = (s) => e(D)("copy"))
216
+ onClick: l[2] || (l[2] = (d) => e($)("copy"))
220
217
  }, [
221
218
  l[8] || (l[8] = c("i", { class: "fa fa-copy" }, null, -1)),
222
- w(k(e(y)("common.copy")), 1)
219
+ _(b(e(y)("common.copy")), 1)
223
220
  ]),
224
221
  e(p).delete ? (i(), h("li", {
225
222
  key: 0,
226
223
  onClick: l[3] || (l[3] = //@ts-ignore
227
- (...s) => e(O) && e(O)(...s))
224
+ (...d) => e(H) && e(H)(...d))
228
225
  }, [
229
226
  l[9] || (l[9] = c("i", { class: "fa fa-trash" }, null, -1)),
230
- w(k(e(y)("common.delete")), 1)
231
- ])) : _("", !0)
227
+ _(b(e(y)("common.delete")), 1)
228
+ ])) : C("", !0)
232
229
  ], 512)
233
230
  ]),
234
231
  _: 1
235
232
  }, 8, ["onScroll"]), [
236
233
  [$e, e(a).data.length]
237
234
  ]),
238
- e(a).data.length ? _("", !0) : (i(), h("div", Be, k(e(y)("common.no_data")), 1)),
235
+ e(a).data.length ? C("", !0) : (i(), h("div", ze, b(e(y)("common.no_data")), 1)),
239
236
  !e(a).data.length && e(p).insert ? (i(), h("div", Ee, [
240
- b(u, {
237
+ k(u, {
241
238
  type: "primary",
242
- onClick: e(D)
239
+ onClick: e($)
243
240
  }, {
244
241
  icon: f(() => l[10] || (l[10] = [
245
242
  c("i", { class: "fa fa-plus" }, null, -1)
246
243
  ])),
247
244
  default: f(() => [
248
- w(" " + k(e(p).insert.title), 1)
245
+ _(" " + b(e(p).insert.title), 1)
249
246
  ]),
250
247
  _: 1
251
248
  }, 8, ["onClick"])
252
- ])) : _("", !0)
249
+ ])) : C("", !0)
253
250
  ])
254
251
  ]),
255
252
  default: f(() => [
256
253
  c("div", {
257
254
  ref_key: "detailRef",
258
- ref: z,
255
+ ref: E,
259
256
  class: "tree-detail"
260
257
  }, [
261
258
  e(r).currentKey ? (i(), g(e(J), {
262
259
  key: 0,
263
260
  ref_key: "singleRef",
264
- ref: C,
265
- url: e($)
266
- }, null, 8, ["url"])) : _("", !0)
261
+ ref: I,
262
+ url: e(R)
263
+ }, null, 8, ["url"])) : C("", !0)
267
264
  ], 512),
268
- b(j, {
265
+ k(P, {
269
266
  size: "60%",
270
267
  "destroy-on-close": "",
271
- title: e(H)(e(d).type, e(d).name),
272
- modelValue: e(d).visible,
273
- "onUpdate:modelValue": l[4] || (l[4] = (s) => e(d).visible = s)
268
+ title: e(G)(e(s).type, e(s).name),
269
+ modelValue: e(s).visible,
270
+ "onUpdate:modelValue": l[4] || (l[4] = (d) => e(s).visible = d)
274
271
  }, {
275
272
  default: f(() => [
276
- b(e(J), {
277
- url: e(d).url,
273
+ k(e(J), {
274
+ url: e(s).url,
278
275
  onLoaded: e(ue),
279
276
  onSucceed: e(ne),
280
- onClose: e(se)
277
+ onClose: e(de)
281
278
  }, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
282
279
  ]),
283
280
  _: 1
@@ -289,5 +286,5 @@ const Le = { class: "tree-left" }, Be = {
289
286
  }
290
287
  });
291
288
  export {
292
- Ae as default
289
+ Fe as default
293
290
  };
@@ -1,13 +1,12 @@
1
- import { defineComponent as x, toRefs as h, computed as C, openBlock as i, createElementBlock as s, unref as e, createElementVNode as N, toDisplayString as a, createTextVNode as b, createCommentVNode as d } from "vue";
2
- import { t as g, U as y } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
1
+ import { defineComponent as x, toRefs as h, computed as C, openBlock as s, createElementBlock as i, unref as e, createElementVNode as N, toDisplayString as a, createTextVNode as b, createCommentVNode as d } from "vue";
2
+ import { f as g, d as y } from "./main-nvsTmKXH.js";
4
3
  const k = ["title"], v = { class: "number" }, V = {
5
4
  key: 0,
6
5
  class: "option-suffix"
7
6
  }, B = {
8
7
  key: 1,
9
8
  class: "count"
10
- }, T = /* @__PURE__ */ x({
9
+ }, O = /* @__PURE__ */ x({
11
10
  __name: "TreeNode",
12
11
  props: {
13
12
  table: {},
@@ -16,23 +15,23 @@ const k = ["title"], v = { class: "number" }, V = {
16
15
  node: {}
17
16
  },
18
17
  setup(u) {
19
- let c = u, { table: p, layout: n, row: t, node: f } = h(c), m = (l, o) => {
18
+ let c = u, { table: f, layout: n, row: t, node: p } = h(c), m = (l, o) => {
20
19
  let r = (l.parent.data.Children ? l.parent.data.Children.indexOf(o) : l.parent.data.indexOf(o)) + 1;
21
20
  return y.string.padLeft(r, 2, "0");
22
- }, _ = C(() => p.value.fields.find((r) => r.name == n.value.text).control.i18N);
21
+ }, _ = C(() => f.value.fields.find((r) => r.name == n.value.text).control.i18N);
23
22
  return (l, o) => {
24
23
  var r;
25
- return i(), s("div", {
24
+ return s(), i("div", {
26
25
  title: e(t)[e(n).title]
27
26
  }, [
28
- N("span", v, a(e(m)(e(f), e(t))), 1),
27
+ N("span", v, a(e(m)(e(p), e(t))), 1),
29
28
  b(" " + a((r = e(_)) != null && r.value ? e(g)(e(t)[e(n).text]) : e(t)[e(n).text]) + " ", 1),
30
- e(n).suffix ? (i(), s("span", V, a(e(t)[e(n).suffix]), 1)) : d("", !0),
31
- e(t).Children && e(t).Children.length > 0 ? (i(), s("span", B, "(" + a(e(t).Children.length) + ")", 1)) : d("", !0)
29
+ e(n).suffix ? (s(), i("span", V, a(e(t)[e(n).suffix]), 1)) : d("", !0),
30
+ e(t).Children && e(t).Children.length > 0 ? (s(), i("span", B, "(" + a(e(t).Children.length) + ")", 1)) : d("", !0)
32
31
  ], 8, k);
33
32
  };
34
33
  }
35
34
  });
36
35
  export {
37
- T as default
36
+ O as default
38
37
  };
@@ -1,10 +1,9 @@
1
- import { defineComponent as b, toRefs as C, ref as x, resolveComponent as g, openBlock as v, createBlock as y, unref as e, withCtx as o, createVNode as r, createSlots as N, createTextVNode as m, toDisplayString as c, createElementVNode as p } from "vue";
2
- import { I as V, t as u } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
1
+ import { defineComponent as b, toRefs as C, ref as x, resolveComponent as g, openBlock as v, createBlock as y, unref as e, withCtx as o, createVNode as r, createSlots as N, createTextVNode as m, toDisplayString as c, createElementVNode as f } from "vue";
2
+ import { F as V, f as p } from "./main-nvsTmKXH.js";
4
3
  import "element-plus";
5
4
  import "vue-router";
6
5
  import "./assets/intro.js-Cg1adLK7.js";
7
- const T = /* @__PURE__ */ b({
6
+ const R = /* @__PURE__ */ b({
8
7
  __name: "Update",
9
8
  props: {
10
9
  table: {},
@@ -13,44 +12,44 @@ const T = /* @__PURE__ */ b({
13
12
  set: {}
14
13
  },
15
14
  emits: ["submit", "close"],
16
- setup(f, { expose: d, emit: _ }) {
15
+ setup(u, { expose: d, emit: _ }) {
17
16
  let n = _;
18
- C(f);
19
- let l = x(!1), i = (s) => {
20
- l.value = !0, n("submit", s, null, (t) => {
17
+ C(u);
18
+ let l = x(!1), s = (i) => {
19
+ l.value = !0, n("submit", i, null, (t) => {
21
20
  l.value = !1;
22
21
  });
23
22
  }, k = () => {
24
23
  n("close");
25
24
  };
26
- return d({ submit: i }), (s, t) => {
25
+ return d({ submit: s }), (i, t) => {
27
26
  const a = g("el-button");
28
27
  return v(), y(e(V), { padding: 5 }, {
29
28
  default: o(() => [
30
29
  r(a, {
31
30
  type: "primary",
32
31
  loading: e(l),
33
- onClick: e(i)
32
+ onClick: e(s)
34
33
  }, N({
35
34
  default: o(() => [
36
- m(" " + c(e(u)("common.confirm")), 1)
35
+ m(" " + c(e(p)("common.confirm")), 1)
37
36
  ]),
38
37
  _: 2
39
38
  }, [
40
39
  e(l) ? void 0 : {
41
40
  name: "icon",
42
41
  fn: o(() => [
43
- t[0] || (t[0] = p("i", { class: "fa fa-check" }, null, -1))
42
+ t[0] || (t[0] = f("i", { class: "fa fa-check" }, null, -1))
44
43
  ]),
45
44
  key: "0"
46
45
  }
47
46
  ]), 1032, ["loading", "onClick"]),
48
47
  r(a, { onClick: e(k) }, {
49
48
  icon: o(() => t[1] || (t[1] = [
50
- p("i", { class: "fa fa-chevron-left" }, null, -1)
49
+ f("i", { class: "fa fa-chevron-left" }, null, -1)
51
50
  ])),
52
51
  default: o(() => [
53
- m(" " + c(e(u)("common.back")), 1)
52
+ m(" " + c(e(p)("common.back")), 1)
54
53
  ]),
55
54
  _: 1
56
55
  }, 8, ["onClick"])
@@ -61,5 +60,5 @@ const T = /* @__PURE__ */ b({
61
60
  }
62
61
  });
63
62
  export {
64
- T as default
63
+ R as default
65
64
  };