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,10 +1,9 @@
1
- import { defineComponent as be, defineAsyncComponent as Ce, toRefs as Se, ref as c, onMounted as Re, computed as G, watch as ke, resolveComponent as b, openBlock as v, createElementBlock as z, Fragment as Q, createVNode as S, unref as e, withCtx as g, createTextVNode as $e, toDisplayString as T, createBlock as F, createCommentVNode as D, renderList as ze, createElementVNode as C, normalizeStyle as Fe, resolveDynamicComponent as De, nextTick as X } from "vue";
2
- import { U as d, d as He, t as Be, f as Ie, v as Y, s as U, S as Te, J as Ue, K as W } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- const We = {
1
+ import { defineComponent as be, defineAsyncComponent as Ce, toRefs as Re, ref as p, onMounted as ke, computed as K, watch as Se, resolveComponent as b, openBlock as v, createElementBlock as z, Fragment as Q, createVNode as R, unref as e, withCtx as g, createTextVNode as $e, toDisplayString as T, createBlock as D, createCommentVNode as F, renderList as ze, createElementVNode as C, normalizeStyle as De, resolveDynamicComponent as Fe, nextTick as X } from "vue";
2
+ import { D as He, d, c as Ie, f as Be, w as Te, o as Y, m as W, G as We, I as q } from "./main-nvsTmKXH.js";
3
+ const qe = {
5
4
  key: 0,
6
5
  class: "required"
7
- }, qe = ["onMouseenter"], Ae = { class: "footer-left" }, Ee = { class: "footer-right" }, je = /* @__PURE__ */ be({
6
+ }, Ae = ["onMouseenter"], Ee = { class: "footer-left" }, Me = { class: "footer-right" }, je = /* @__PURE__ */ be({
8
7
  __name: "Table",
9
8
  props: {
10
9
  route: {},
@@ -18,7 +17,7 @@ const We = {
18
17
  },
19
18
  emits: ["submit", "change", "row-edit"],
20
19
  setup(Z, { expose: ee, emit: te }) {
21
- let le = Ce(() => import("./Index-2vdi0Nq0.js")), H = te, ae = Z, { schema: q, table: l, layout: m, set: s, next: Me, route: A, module: R, validateErrors: E } = Se(ae), w = c({ page: 1 }), M = c({}), p = c([]), oe = c(!0), k = c(), N = c(), V = c(), O = c(), h = c({ layout: "prev, pager, next", count: 5 }), ne = new Te(), re = (t, a, n) => {
20
+ let le = Ce(() => import("./Index-CH3nwnPZ.js")), H = te, ae = Z, { schema: A, table: l, layout: m, set: s, next: Ne, route: E, module: k, validateErrors: M } = Re(ae), w = p({ page: 1 }), N = p({}), c = p([]), oe = p(!0), S = p(), V = p(), O = p(), j = p(), h = p({ layout: "prev, pager, next", count: 5 }), ne = new He(), re = (t, a, n) => {
22
21
  H("row-edit", t, l.value, n);
23
22
  }, ue = (t) => {
24
23
  H("submit", t);
@@ -30,133 +29,133 @@ const We = {
30
29
  u._headerWidth = n;
31
30
  }, de = (t, a, n, u, o) => {
32
31
  H("change", t, a, n, u, o);
33
- }, j = (t) => s.value[l.value.name].indexOf(t), me = (t) => {
34
- p.value = t;
35
- }, pe = async (t, a, n, u, o) => {
36
- await Ue.setColumnWidth(A.value, o.name, n.property, t);
37
- }, ce = (t) => {
32
+ }, U = (t) => s.value[l.value.name].indexOf(t), me = (t) => {
33
+ c.value = t;
34
+ }, ce = async (t, a, n, u, o) => {
35
+ await We.setColumnWidth(E.value, o.name, n.property, t);
36
+ }, pe = (t) => {
38
37
  L(t.contentRect.width), X(() => {
39
- J(t.contentRect.height);
38
+ G(t.contentRect.height);
40
39
  });
41
40
  }, L = (t = null) => {
42
- let a = d.dom.parentUntil(k.value.$el, ".ha-main-form");
41
+ let a = d.dom.parentUntil(S.value.$el, ".ha-main-form");
43
42
  t == null && (t = d.dom.getWidth(a)), t <= 690 ? h.value.count = 5 : h.value.count = 7, t <= 300 ? h.value.layout = "pager" : t <= 620 ? h.value.layout = "prev, pager, next" : h.value.layout = "total, prev, pager, next, jumper";
44
- }, J = (t = null) => {
45
- let a = d.dom.parentUntil(k.value.$el, ".ha-main-form");
43
+ }, G = (t = null) => {
44
+ let a = d.dom.parentUntil(S.value.$el, ".ha-main-form");
46
45
  t || (t = d.dom.getHeight(a));
47
- let n = d.dom.getHeight(N.value), u = d.dom.find(a, ".main-footer"), o = d.dom.getHeight(u), i = t - n - o;
48
- O.value = `${i}px`;
46
+ let n = d.dom.getHeight(V.value), u = d.dom.find(a, ".main-footer"), o = d.dom.getHeight(u), i = t - n - o;
47
+ j.value = `${i}px`;
49
48
  }, fe = async () => {
50
- let t = s.value[l.value.name].length, a = U.getDefaultRow(l.value);
49
+ let t = s.value[l.value.name].length, a = W.getDefaultRow(l.value);
51
50
  s.value[l.value.name].push(a);
52
51
  let n = l.value.fields.filter((o) => o.feature != null);
53
52
  for (let o = 0; o < n.length; o++) {
54
53
  let i = n[o];
55
- (await W.feature.createAsync(i.feature.type)).add(l.value, i, s.value, a);
54
+ (await q.feature.createAsync(i.feature.type)).add(l.value, i, s.value, a);
56
55
  }
57
- B(t);
56
+ I(t);
58
57
  let u = d.scroll.isBottom(".tree-detail");
59
58
  await X(() => {
60
59
  u && d.scroll.scrollToBottom(".tree-detail");
61
60
  });
62
61
  }, ve = async (t = null) => {
63
- let a = p.value[0], n = U.getDefaultRow(l.value), u = d.array.insert(s.value[l.value.name], a, n), o = l.value.fields.filter((i) => i.feature != null);
62
+ let a = c.value[0], n = W.getDefaultRow(l.value), u = d.array.insert(s.value[l.value.name], a, n), o = l.value.fields.filter((i) => i.feature != null);
64
63
  for (let i = 0; i < o.length; i++) {
65
64
  let f = o[i];
66
- (await W.feature.create(f.feature.type)).insert(l.value, f, s.value, a, n);
65
+ (await q.feature.create(f.feature.type)).insert(l.value, f, s.value, a, n);
67
66
  }
68
- B(u), t == null || t(u);
67
+ I(u), t == null || t(u);
69
68
  }, ge = async () => {
70
- let t = l.value.key.name, a = d.object.clone(p.value, (o) => {
69
+ let t = l.value.key.name, a = d.object.clone(c.value, (o) => {
71
70
  o[t] = null, o[`Old_${t}`] = null;
72
- }), n = s.value[l.value.name].indexOf(p.value[0]);
73
- for (let o = 0; o < p.value.length; o++) {
74
- let i = p.value[o], f = a[o];
71
+ }), n = s.value[l.value.name].indexOf(c.value[0]);
72
+ for (let o = 0; o < c.value.length; o++) {
73
+ let i = c.value[o], f = a[o];
75
74
  d.array.append(s.value[l.value.name], i, f);
76
75
  }
77
76
  let u = l.value.fields.filter((o) => o.feature != null);
78
77
  for (let o = 0; o < u.length; o++) {
79
78
  let i = u[o];
80
- (await W.feature.create(i.feature.type)).copy(l.value, i, s.value);
79
+ (await q.feature.create(i.feature.type)).copy(l.value, i, s.value);
81
80
  }
82
- B(n);
81
+ I(n);
83
82
  }, he = () => {
84
- d.array.remove(s.value[l.value.name], p.value), p.value = [];
85
- }, B = (t) => {
86
- let a = d.math.pageCount(t + 1, m.value.pageSize);
83
+ d.array.remove(s.value[l.value.name], c.value), c.value = [];
84
+ }, I = (t) => {
85
+ let a = d.math.pageCount(t + 1, m.value.size);
87
86
  w.value.page = a;
88
87
  }, ye = (t) => {
89
88
  w.value.page = t;
90
89
  }, we = () => {
91
- k.value.$el.querySelector("tbody");
90
+ S.value.$el.querySelector("tbody");
92
91
  };
93
- Re(async () => {
94
- await ne.openAsync("sys", "page", M.value), we(), L(), d.component.detectLoaded(V, () => {
95
- J();
92
+ ke(async () => {
93
+ await ne.openAsync("sys", "page", N.value), we(), L(), d.component.detectLoaded(O, () => {
94
+ G();
96
95
  });
97
96
  });
98
- let _e = G(() => {
99
- let t = (w.value.page - 1) * m.value.pageSize, a = w.value.page * m.value.pageSize - 1;
97
+ let _e = K(() => {
98
+ let t = (w.value.page - 1) * m.value.size, a = w.value.page * m.value.size - 1;
100
99
  return s.value[l.value.name].filter((u, o) => o >= t && o <= a);
101
- }), xe = G(() => {
102
- let t = l.value.main ? `/${l.value.name}` : `/${q.value[0].name}/${l.value.name}`;
103
- return He.getComponent(`${t}/update-child`, "partial", "update-child");
100
+ }), xe = K(() => {
101
+ let t = l.value.main ? `/${l.value.name}` : `/${A.value[0].name}/${l.value.name}`;
102
+ return Ie.getComponent(`${t}/update-child`, "partial", "update-child");
104
103
  });
105
- return ke(E, (t, a) => {
104
+ return Se(M, (t, a) => {
106
105
  let n = t.find((u) => u.table == l.value.name);
107
- n != null && (w.value.page = Math.ceil((n.index + 1) / m.value.pageSize));
108
- }), ee({ resize: ce }), (t, a) => {
109
- const n = b("el-table-column"), u = b("el-tooltip"), o = b("el-popover"), i = b("el-form-item"), f = b("el-table"), K = b("el-pagination");
106
+ n != null && (w.value.page = Math.ceil((n.index + 1) / m.value.size));
107
+ }), ee({ resize: pe }), (t, a) => {
108
+ const n = b("el-table-column"), u = b("el-tooltip"), o = b("el-popover"), i = b("el-form-item"), f = b("el-table"), P = b("el-pagination");
110
109
  return v(), z(Q, null, [
111
- S(f, {
110
+ R(f, {
112
111
  ref_key: "tableRef",
113
- ref: k,
112
+ ref: S,
114
113
  class: "ha-table-layout table-default",
115
114
  size: "small",
116
115
  border: "",
117
- "max-height": e(O),
116
+ "max-height": e(j),
118
117
  data: e(_e),
119
118
  onRowClick: a[0] || (a[0] = (r, y, _) => e(re)(r, y, _)),
120
119
  onSelectionChange: e(me),
121
- onHeaderDragend: a[1] || (a[1] = (r, y, _, $) => e(pe)(r, y, _, $, e(l)))
120
+ onHeaderDragend: a[1] || (a[1] = (r, y, _, $) => e(ce)(r, y, _, $, e(l)))
122
121
  }, {
123
122
  empty: g(() => [
124
123
  $e(T(e(Be)("common.no_data")), 1)
125
124
  ]),
126
125
  default: g(() => [
127
- e(oe) ? (v(), F(n, {
126
+ e(oe) ? (v(), D(n, {
128
127
  key: 0,
129
128
  type: "selection",
130
129
  width: "40",
131
130
  fixed: ""
132
- })) : D("", !0),
131
+ })) : F("", !0),
133
132
  (v(!0), z(Q, null, ze(e(l).show, (r, y) => {
134
- var _, $, P;
135
- return v(), F(n, {
133
+ var _, $, J;
134
+ return v(), D(n, {
136
135
  key: r.name,
137
136
  "show-overflow-tooltip": "",
138
137
  prop: r.name,
139
138
  label: r.label,
140
- "min-width": ((P = ($ = (_ = e(M)) == null ? void 0 : _[e(A)]) == null ? void 0 : $[e(l).name]) == null ? void 0 : P[r.name]) ?? r.control.width,
139
+ "min-width": ((J = ($ = (_ = e(N)) == null ? void 0 : _[e(E)]) == null ? void 0 : $[e(l).name]) == null ? void 0 : J[r.name]) ?? r.control.width,
141
140
  fixed: e(m).fixed.length > 0 ? e(m).fixed.indexOf(r.name) > -1 : y == 0
142
141
  }, {
143
142
  header: g((x) => [
144
- e(R).type != "Detail" && r.control.required ? (v(), z("i", We, "*")) : D("", !0),
145
- S(u, {
143
+ e(k).type != "Detail" && r.control.required ? (v(), z("i", qe, "*")) : F("", !0),
144
+ R(u, {
146
145
  placement: "top",
147
146
  content: r.label,
148
147
  disabled: e(ie)(x, y)
149
148
  }, {
150
149
  default: g(() => [
151
150
  C("span", {
152
- onMouseenter: (I) => e(se)(I, y)
151
+ onMouseenter: (B) => e(se)(B, y)
153
152
  }, [
154
- C("span", null, T(e(Ie)(e(l).table, r.name)), 1)
155
- ], 40, qe)
153
+ C("span", null, T(e(Te)(e(l).table, r.name)), 1)
154
+ ], 40, Ae)
156
155
  ]),
157
156
  _: 2
158
157
  }, 1032, ["content", "disabled"]),
159
- r.control.tooltip ? (v(), F(o, {
158
+ r.control.tooltip ? (v(), D(o, {
160
159
  key: 1,
161
160
  trigger: "hover",
162
161
  placement: "top",
@@ -170,24 +169,24 @@ const We = {
170
169
  C("pre", null, T(r.control.tooltip.content), 1)
171
170
  ]),
172
171
  _: 2
173
- }, 1032, ["title"])) : D("", !0)
172
+ }, 1032, ["title"])) : F("", !0)
174
173
  ]),
175
174
  default: g((x) => [
176
- S(i, {
177
- style: Fe(e(Y).getStyle(r, e(R).type, e(m).type)),
178
- rules: e(U).getRules(e(E), e(l), r, x.$index),
179
- prop: `[${e(l).name}][${e(j)(x.row)}][${r.name}]`
175
+ R(i, {
176
+ style: De(e(Y).getStyle(r, e(k).type, e(m).type)),
177
+ rules: e(W).getRules(e(M), e(l), r, x.$index),
178
+ prop: `[${e(l).name}][${e(U)(x.row)}][${r.name}]`
180
179
  }, {
181
180
  default: g(() => [
182
- S(e(le), {
183
- schema: e(q),
181
+ R(e(le), {
182
+ schema: e(A),
184
183
  table: e(l),
185
184
  field: r,
186
185
  set: e(s),
187
186
  row: x.row,
188
- config: e(Y).getConfig(r, e(R).type, e(m).type),
187
+ config: e(Y).getConfig(r, e(k).type, e(m).type),
189
188
  onSubmit: e(ue),
190
- onChange: (I) => e(de)(I, e(s), e(l), r, e(j)(x.row))
189
+ onChange: (B) => e(de)(B, e(s), e(l), r, e(U)(x.row))
191
190
  }, null, 8, ["schema", "table", "field", "set", "row", "config", "onSubmit", "onChange"])
192
191
  ]),
193
192
  _: 2
@@ -199,32 +198,32 @@ const We = {
199
198
  ]),
200
199
  _: 1
201
200
  }, 8, ["max-height", "data", "onSelectionChange"]),
202
- e(l).main ? D("", !0) : (v(), z("div", {
201
+ e(l).main ? F("", !0) : (v(), z("div", {
203
202
  key: 0,
204
203
  ref_key: "footerRef",
205
- ref: N,
204
+ ref: V,
206
205
  class: "table-footer"
207
206
  }, [
208
- C("div", Ae, [
209
- (v(), F(De(e(xe)), {
207
+ C("div", Ee, [
208
+ (v(), D(Fe(e(xe)), {
210
209
  ref_key: "operationRef",
211
- ref: V,
212
- module: e(R),
210
+ ref: O,
211
+ module: e(k),
213
212
  table: e(l),
214
213
  set: e(s),
215
- selection: e(p),
214
+ selection: e(c),
216
215
  onAdd: e(fe),
217
216
  onInsert: e(ve),
218
217
  onCopy: e(ge),
219
218
  onRemove: e(he)
220
219
  }, null, 40, ["module", "table", "set", "selection", "onAdd", "onInsert", "onCopy", "onRemove"]))
221
220
  ]),
222
- C("div", Ee, [
223
- S(K, {
221
+ C("div", Me, [
222
+ R(P, {
224
223
  background: "",
225
224
  layout: e(h).layout,
226
225
  "current-page": e(w).page,
227
- "page-size": e(m).pageSize,
226
+ "page-size": e(m).size,
228
227
  "pager-count": e(h).count,
229
228
  total: e(s)[e(l).name].length,
230
229
  onCurrentChange: e(ye)
@@ -0,0 +1,48 @@
1
+ import { defineComponent as x, mergeModels as s, toRefs as g, useModel as C, resolveComponent as V, openBlock as b, createBlock as y, unref as e, withKeys as _, isRef as v, createSlots as k, withCtx as D, createTextVNode as K, toDisplayString as M } from "vue";
2
+ import { h as w } from "./main-nvsTmKXH.js";
3
+ const T = /* @__PURE__ */ x({
4
+ __name: "Text",
5
+ props: /* @__PURE__ */ s({
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ searchData: {}
10
+ }, {
11
+ modelValue: {},
12
+ modelModifiers: {}
13
+ }),
14
+ emits: /* @__PURE__ */ s(["change", "submit"], ["update:modelValue"]),
15
+ setup(a, { emit: u }) {
16
+ let o = u, d = a, { table: p, field: l, searchData: B } = g(d), t = C(a, "modelValue"), c = (m) => {
17
+ m == "" && (t.value = null), o("change", t.value);
18
+ }, n = () => {
19
+ o("submit");
20
+ }, f = () => {
21
+ n();
22
+ };
23
+ return (m, r) => {
24
+ const h = V("el-input");
25
+ return b(), y(h, {
26
+ type: "text",
27
+ placeholder: e(w)(e(p).name, e(l).name),
28
+ clearable: "",
29
+ onKeyup: _(e(n), ["enter", "native"]),
30
+ onChange: e(c),
31
+ onClear: e(f),
32
+ modelValue: e(t),
33
+ "onUpdate:modelValue": r[0] || (r[0] = (i) => v(t) ? t.value = i : t = i)
34
+ }, k({ _: 2 }, [
35
+ e(l).suffix ? {
36
+ name: "append",
37
+ fn: D(() => [
38
+ K(M(e(l).suffix), 1)
39
+ ]),
40
+ key: "0"
41
+ } : void 0
42
+ ]), 1032, ["placeholder", "onKeyup", "onChange", "onClear", "modelValue"]);
43
+ };
44
+ }
45
+ });
46
+ export {
47
+ T as default
48
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./Text.vue_vue_type_style_index_0_lang-aMaBccpg.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,7 +1,6 @@
1
- import { defineComponent as _, toRefs as b, computed as x, resolveComponent as V, openBlock as h, createBlock as y, unref as e, withKeys as C, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as K } from "vue";
2
- import { j as B } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- const D = /* @__PURE__ */ _({
1
+ import { defineComponent as x, toRefs as b, computed as V, resolveComponent as _, openBlock as h, createBlock as y, unref as e, withKeys as C, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as K } from "vue";
2
+ import { h as B } from "./main-nvsTmKXH.js";
3
+ const D = /* @__PURE__ */ x({
5
4
  __name: "Text",
6
5
  props: {
7
6
  schema: {},
@@ -12,27 +11,27 @@ const D = /* @__PURE__ */ _({
12
11
  modelValue: {}
13
12
  },
14
13
  emits: ["submit", "change", "clear", "update:modelValue"],
15
- setup(m, { emit: d }) {
16
- let l = d, p = m, { table: i, field: o, set: R, modelValue: u } = b(p), s = (t) => {
14
+ setup(m, { emit: s }) {
15
+ let l = s, u = m, { table: d, field: o, set: R, modelValue: p } = b(u), i = (t) => {
17
16
  l("submit", t);
18
17
  }, c = () => {
19
18
  l("clear");
20
- }, a = x({
19
+ }, a = V({
21
20
  get() {
22
- return u.value;
21
+ return p.value;
23
22
  },
24
23
  set(t) {
25
24
  l("update:modelValue", t), l("change", t);
26
25
  }
27
26
  });
28
27
  return (t, n) => {
29
- const f = V("el-input");
28
+ const f = _("el-input");
30
29
  return h(), y(f, {
31
30
  type: "text",
32
31
  disabled: e(o).control.readonly,
33
- placeholder: e(B)(e(i).name, e(o).name),
32
+ placeholder: e(B)(e(d).name, e(o).name),
34
33
  clearable: "",
35
- onKeyup: C(e(s), ["enter", "native"]),
34
+ onKeyup: C(e(i), ["enter", "native"]),
36
35
  onClear: e(c),
37
36
  modelValue: e(a),
38
37
  "onUpdate:modelValue": n[0] || (n[0] = (r) => g(a) ? a.value = r : a = r)
@@ -0,0 +1,53 @@
1
+ import { defineComponent as v, toRefs as V, ref as d, computed as y, resolveComponent as _, openBlock as u, createElementBlock as s, Fragment as g, unref as l, createBlock as B, isRef as p, createElementVNode as C, createCommentVNode as R, nextTick as T } from "vue";
2
+ import { d as H } from "./main-nvsTmKXH.js";
3
+ const b = ["innerHTML"], F = /* @__PURE__ */ v({
4
+ __name: "Text",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ set: {},
10
+ row: {},
11
+ modelValue: {}
12
+ },
13
+ setup(c) {
14
+ let k = c, { table: w, field: a, set: E, row: L, modelValue: x } = V(k), t = d(!1), i = d(), m = () => {
15
+ t.value = !0, T(() => {
16
+ i.value.focus();
17
+ });
18
+ }, o = y(() => {
19
+ var r;
20
+ let f = H.html.getHtml((r = x.value) == null ? void 0 : r.toString());
21
+ return (a.value.control.prefix || "") + (f || "") + (a.value.control.suffix || "");
22
+ });
23
+ return (f, e) => {
24
+ const r = _("el-input");
25
+ return u(), s(g, null, [
26
+ l(t) ? (u(), B(r, {
27
+ key: 1,
28
+ ref_key: "editRef",
29
+ ref: i,
30
+ type: "text",
31
+ onBlur: e[0] || (e[0] = (n) => p(t) ? t.value = !1 : t = !1),
32
+ modelValue: l(o),
33
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => p(o) ? o.value = n : o = n)
34
+ }, null, 8, ["modelValue"])) : (u(), s("span", {
35
+ key: 0,
36
+ class: "text-text",
37
+ innerHTML: l(o)
38
+ }, null, 8, b)),
39
+ l(t) ? R("", !0) : (u(), s("span", {
40
+ key: 2,
41
+ class: "edit-inline",
42
+ onClick: e[2] || (e[2] = //@ts-ignore
43
+ (...n) => l(m) && l(m)(...n))
44
+ }, e[3] || (e[3] = [
45
+ C("i", { class: "fa fa-edit" }, null, -1)
46
+ ])))
47
+ ], 64);
48
+ };
49
+ }
50
+ });
51
+ export {
52
+ F as _
53
+ };
@@ -1,7 +1,6 @@
1
- import { defineComponent as g, toRefs as E, ref as $, computed as s, resolveComponent as w, unref as r, openBlock as u, createElementBlock as m, renderSlot as i, createBlock as x, withCtx as y } from "vue";
2
- import { U as d, c as B } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- const C = { key: 0 }, R = ["href", "target"], V = /* @__PURE__ */ g({
1
+ import { defineComponent as b, toRefs as E, ref as $, computed as s, resolveComponent as w, unref as r, openBlock as u, createElementBlock as d, renderSlot as i, createBlock as x, withCtx as y } from "vue";
2
+ import { d as m, g as B } from "./main-nvsTmKXH.js";
3
+ const C = { key: 0 }, R = ["href", "target"], V = /* @__PURE__ */ b({
5
4
  __name: "TextLink",
6
5
  props: {
7
6
  schema: {},
@@ -12,12 +11,12 @@ const C = { key: 0 }, R = ["href", "target"], V = /* @__PURE__ */ g({
12
11
  },
13
12
  emits: ["submit", "change", "update:modelValue"],
14
13
  setup(h, { emit: L }) {
15
- let p = h, { table: O, field: t, set: T, row: c } = E(p), k = $(), a = s(() => {
14
+ let k = h, { table: O, field: t, set: T, row: c } = E(k), p = $(), a = s(() => {
16
15
  let e = t.value.link.href;
17
16
  return t.value.link.values.forEach((o) => {
18
17
  e = e.replace(`{${o}}`, c.value[o]);
19
18
  }), e;
20
- }), _ = s(() => d.url.httpOrHttps(a.value)), v = s(() => {
19
+ }), _ = s(() => m.url.httpOrHttps(a.value)), v = s(() => {
21
20
  let e = a.value;
22
21
  if (t.value.link.tables.length > 0) {
23
22
  let l = {};
@@ -26,16 +25,16 @@ const C = { key: 0 }, R = ["href", "target"], V = /* @__PURE__ */ g({
26
25
  l[n.name][f.name] = c.value[f.value];
27
26
  });
28
27
  });
29
- let b = B.encode(l);
30
- e += "&condition=" + b;
28
+ let g = B.encode(l);
29
+ e += "&condition=" + g;
31
30
  }
32
- return d.url.getToRoute(e);
31
+ return m.url.getToRoute(e);
33
32
  });
34
33
  return (e, o) => {
35
34
  const l = w("router-link");
36
- return r(k) ? (u(), m("div", C, [
35
+ return r(p) ? (u(), d("div", C, [
37
36
  i(e.$slots, "default")
38
- ])) : r(_) ? (u(), m("a", {
37
+ ])) : r(_) ? (u(), d("a", {
39
38
  key: 1,
40
39
  class: "text-link",
41
40
  href: r(a),
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, toRefs as p, openBlock as i, createBlock as c, unref as e, isRef as _ } from "vue";
2
- import { _ as V } from "./Text.vue_vue_type_style_index_0_lang-epPB32IU.js";
2
+ import { _ as V } from "./Text.vue_vue_type_style_index_0_lang-aMaBccpg.js";
3
3
  const x = /* @__PURE__ */ u({
4
4
  __name: "Textarea",
5
5
  props: {
@@ -1,7 +1,6 @@
1
- import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as h, createBlock as b, unref as e, isRef as g } from "vue";
2
- import { k } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- const R = /* @__PURE__ */ c({
1
+ import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as b, createBlock as h, unref as e, isRef as k } from "vue";
2
+ import { k as g } from "./main-nvsTmKXH.js";
3
+ const C = /* @__PURE__ */ c({
5
4
  __name: "Time",
6
5
  props: {
7
6
  schema: {},
@@ -12,10 +11,10 @@ const R = /* @__PURE__ */ c({
12
11
  modelValue: {}
13
12
  },
14
13
  emits: ["submit", "change", "update:modelValue"],
15
- setup(n, { emit: r }) {
16
- let o = r, s = n, { table: p, field: m, set: x, modelValue: u } = f(s), l = _({
14
+ setup(n, { emit: s }) {
15
+ let o = s, r = n, { table: u, field: m, set: x, modelValue: p } = f(r), l = _({
17
16
  get() {
18
- return u.value;
17
+ return p.value;
19
18
  },
20
19
  set(t) {
21
20
  o("update:modelValue", t), o("change", t);
@@ -23,16 +22,16 @@ const R = /* @__PURE__ */ c({
23
22
  });
24
23
  return (t, a) => {
25
24
  const i = V("el-time-select");
26
- return h(), b(i, {
25
+ return b(), h(i, {
27
26
  type: "time",
28
- placeholder: e(k)(e(p).name, e(m).name),
27
+ placeholder: e(g)(e(u).name, e(m).name),
29
28
  disabled: e(m).control.readonly,
30
29
  modelValue: e(l),
31
- "onUpdate:modelValue": a[0] || (a[0] = (d) => g(l) ? l.value = d : l = d)
30
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => k(l) ? l.value = d : l = d)
32
31
  }, null, 8, ["placeholder", "disabled", "modelValue"]);
33
32
  };
34
33
  }
35
34
  });
36
35
  export {
37
- R as default
36
+ C as default
38
37
  };
@@ -1,15 +1,9 @@
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 r, createElementBlock as c, Fragment as k, renderList as x, createCommentVNode as v } from "vue";
2
- import { _ as g, U as C } 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 B = { class: "timeline-layout" }, H = ["innerHTML"], L = {
1
+ import { defineComponent as h, toRefs as y, resolveComponent as m, openBlock as t, createBlock as n, unref as e, withCtx as o, createElementVNode as r, createElementBlock as c, Fragment as k, renderList as x, createCommentVNode as v } from "vue";
2
+ import { B, d as g } from "./main-nvsTmKXH.js";
3
+ const C = { class: "timeline-layout" }, H = ["innerHTML"], L = {
10
4
  key: 0,
11
5
  class: "timeline-detail"
12
- }, w = /* @__PURE__ */ h({
6
+ }, F = /* @__PURE__ */ h({
13
7
  __name: "Timeline",
14
8
  props: {
15
9
  searchData: {},
@@ -22,23 +16,23 @@ const B = { class: "timeline-layout" }, H = ["innerHTML"], L = {
22
16
  set: {}
23
17
  },
24
18
  setup(_) {
25
- let p = _, { module: T, schema: b, table: m, layout: i, next: E, set: s } = y(p);
19
+ let u = _, { module: T, schema: b, table: l, layout: i, next: E, set: s } = y(u);
26
20
  return (M, N) => {
27
- const u = l("el-timeline-item"), d = l("el-timeline"), f = l("el-empty");
28
- return t(), n(e(g), { class: "timeline" }, {
21
+ const d = m("el-timeline-item"), p = m("el-timeline"), f = m("el-empty");
22
+ return t(), n(e(B), { class: "timeline" }, {
29
23
  default: o(() => [
30
- r("div", B, [
31
- e(s)[e(m).name].length > 0 ? (t(), n(d, {
24
+ r("div", C, [
25
+ e(s)[e(l).name].length > 0 ? (t(), n(p, {
32
26
  key: 0,
33
27
  reverse: !1
34
28
  }, {
35
29
  default: o(() => [
36
- (t(!0), c(k, null, x(e(s)[e(m).name], (a) => (t(), n(u, {
30
+ (t(!0), c(k, null, x(e(s)[e(l).name], (a) => (t(), n(d, {
37
31
  timestamp: a[e(i).time]
38
32
  }, {
39
33
  default: o(() => [
40
34
  r("div", {
41
- innerHTML: e(C).html.getHtml(a[e(i).text])
35
+ innerHTML: e(g).html.getHtml(a[e(i).text])
42
36
  }, null, 8, H)
43
37
  ]),
44
38
  _: 2
@@ -47,7 +41,7 @@ const B = { class: "timeline-layout" }, H = ["innerHTML"], L = {
47
41
  _: 1
48
42
  })) : (t(), n(f, { key: 1 }))
49
43
  ]),
50
- e(m).length > 0 ? (t(), c("div", L, " 时间线节点详情 ")) : v("", !0)
44
+ e(l).length > 0 ? (t(), c("div", L, " 时间线节点详情 ")) : v("", !0)
51
45
  ]),
52
46
  _: 1
53
47
  });
@@ -55,5 +49,5 @@ const B = { class: "timeline-layout" }, H = ["innerHTML"], L = {
55
49
  }
56
50
  });
57
51
  export {
58
- w as default
52
+ F as default
59
53
  };