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,43 @@
1
+ import { defineComponent as c, toRefs as f, computed as _, resolveComponent as h, openBlock as V, createBlock as b, unref as e, isRef as k } 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 "./assets/moment-h96o7c8I.js";
7
+ import { k as Y } from "./main-D-QTCahZ.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const U = /* @__PURE__ */ c({
10
+ __name: "Month",
11
+ props: {
12
+ schema: {},
13
+ table: {},
14
+ field: {},
15
+ searchData: {},
16
+ modelValue: {}
17
+ },
18
+ emits: ["submit", "change", "update:modelValue"],
19
+ setup(p, { emit: d }) {
20
+ let l = d, n = p, { table: i, field: a, searchData: g, modelValue: u } = f(n), o = _({
21
+ get() {
22
+ return u.value;
23
+ },
24
+ set(t) {
25
+ l("update:modelValue", t), l("change", t);
26
+ }
27
+ });
28
+ return (t, m) => {
29
+ const s = h("el-date-picker");
30
+ return V(), b(s, {
31
+ type: "month",
32
+ placeholder: e(Y)(e(i).name, e(a).name),
33
+ "value-format": "YYYY-MM",
34
+ disabled: e(a).control.readonly,
35
+ modelValue: e(o),
36
+ "onUpdate:modelValue": m[0] || (m[0] = (r) => k(o) ? o.value = r : o = r)
37
+ }, null, 8, ["placeholder", "disabled", "modelValue"]);
38
+ };
39
+ }
40
+ });
41
+ export {
42
+ U as default
43
+ };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as c, toRefs as f, computed as _, resolveComponent as h, openBlock as V, createBlock as b, unref as e, isRef as k } 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 "./assets/moment-h96o7c8I.js";
7
+ import { k as Y } from "./main-D-QTCahZ.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const U = /* @__PURE__ */ c({
10
+ __name: "Month",
11
+ props: {
12
+ schema: {},
13
+ table: {},
14
+ field: {},
15
+ set: {},
16
+ row: {},
17
+ modelValue: {}
18
+ },
19
+ emits: ["submit", "change", "update:modelValue"],
20
+ setup(p, { emit: d }) {
21
+ let l = d, n = p, { table: i, field: a, set: g, modelValue: u } = f(n), o = _({
22
+ get() {
23
+ return u.value;
24
+ },
25
+ set(t) {
26
+ l("update:modelValue", t), l("change", t);
27
+ }
28
+ });
29
+ return (t, m) => {
30
+ const s = h("el-date-picker");
31
+ return V(), b(s, {
32
+ type: "month",
33
+ placeholder: e(Y)(e(i).name, e(a).name),
34
+ "value-format": "YYYY-MM",
35
+ disabled: e(a).control.readonly,
36
+ modelValue: e(o),
37
+ "onUpdate:modelValue": m[0] || (m[0] = (r) => k(o) ? o.value = r : o = r)
38
+ }, null, 8, ["placeholder", "disabled", "modelValue"]);
39
+ };
40
+ }
41
+ });
42
+ export {
43
+ U as default
44
+ };
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let s = i(() => import("./Text-C70dFJLS.js")), m = a, { schema: n, table: r, field: d, set: f, row: p, modelValue: l } = c(m);
13
+ let s = i(() => import("./Text-D3DqixJp.js")), m = a, { schema: n, table: r, field: d, set: f, row: p, modelValue: l } = c(m);
14
14
  return (w, t) => (V(), b(e(s), {
15
15
  schema: e(n),
16
16
  table: e(r),
@@ -1,5 +1,10 @@
1
- import { defineComponent as de, toRefs as he, ref as S, onMounted as fe, computed as E, watch as q, resolveComponent as _, openBlock as n, createElementBlock as d, normalizeClass as K, unref as e, createBlock as g, withCtx as c, Fragment as w, renderList as R, createVNode as k, createCommentVNode as V, toDisplayString as B, createElementVNode as I, normalizeStyle as ge, createTextVNode as _e, resolveDynamicComponent as be } from "vue";
2
- import { k as P, s as N, c as ye, L as ke, f as Q, e as Ce, d as xe, G as Se, u as we } from "./main-D3_7YhaK.js";
1
+ import { defineComponent as de, toRefs as he, ref as S, onMounted as fe, computed as E, watch as M, resolveComponent as _, openBlock as n, createElementBlock as d, normalizeClass as J, unref as e, createBlock as g, withCtx as m, Fragment as w, renderList as R, createVNode as C, createCommentVNode as V, toDisplayString as q, createElementVNode as B, normalizeStyle as ge, createTextVNode as _e, resolveDynamicComponent as be } from "vue";
2
+ import { x as K, s as N, d as ye, P as Ce, g as Q, t as ke, f as xe, N as Se, A as we } 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";
3
8
  import "vue-router";
4
9
  import "./assets/intro.js-DxWjEdp_.js";
5
10
  const Re = {
@@ -12,7 +17,7 @@ const Re = {
12
17
  }, ze = {
13
18
  key: 0,
14
19
  class: "normal-selection"
15
- }, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */ I("i", { class: "fa fa-question-circle icon-question" }, null, -1), qe = /* @__PURE__ */ de({
20
+ }, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */ B("i", { class: "fa fa-question-circle icon-question" }, null, -1), Oe = /* @__PURE__ */ de({
16
21
  __name: "Normal",
17
22
  props: {
18
23
  route: {},
@@ -26,57 +31,57 @@ const Re = {
26
31
  },
27
32
  emits: ["change", "submit"],
28
33
  setup(U, { expose: X, emit: Y }) {
29
- let M = Y, Z = U, { module: O, set: m, schema: D, table: t, layout: i, validateErrors: A } = he(Z), p = S({ page: 1, count: m.value[t.value.name].length }), C = S([]), b = S(), T = S([]), j = S(), ee = (l) => {
30
- T.value.push(l);
34
+ let I = Y, Z = U, { module: L, set: c, schema: A, table: t, layout: i, validateErrors: O } = he(Z), p = S({ page: 1, count: c.value[t.value.name].length }), k = S([]), b = S(), H = S([]), T = S(), ee = (l) => {
35
+ H.value.push(l);
31
36
  }, le = () => {
32
37
  p.value.page = 1;
33
38
  }, te = () => {
34
- b.value = W(t.value);
39
+ b.value = P(t.value);
35
40
  let l = N.getDefaultRow(t.value);
36
- m.value[t.value.name].push(l);
41
+ c.value[t.value.name].push(l);
37
42
  }, ae = () => {
38
- let l = m.value[t.value.name];
39
- C.value.forEach((a) => {
43
+ let l = c.value[t.value.name];
44
+ k.value.forEach((a) => {
40
45
  l.splice(l.indexOf(a), 1);
41
- }), C.value = [], T.value.forEach((a) => {
46
+ }), k.value = [], H.value.forEach((a) => {
42
47
  a.model && (a.model = !1);
43
48
  });
44
- }, G = (l) => m.value[t.value.name].indexOf(l), ne = (l, a, o, u, v) => {
45
- N.updateTooltip(o, u, v), M("change", l, a, o, u, v);
49
+ }, j = (l) => c.value[t.value.name].indexOf(l), ne = (l, a, o, r, v) => {
50
+ N.updateTooltip(o, r, v), I("change", l, a, o, r, v);
46
51
  }, oe = (l, a) => {
47
- l ? C.value.push(a) : we.remove(C.value, a);
48
- }, ue = (l) => {
49
- M("submit", l);
50
- }, re = (l, a = null) => {
52
+ l ? k.value.push(a) : we.remove(k.value, a);
53
+ }, re = (l) => {
54
+ I("submit", l);
55
+ }, ue = (l, a = null) => {
51
56
  p.value.page = l;
52
- }, W = (l) => {
57
+ }, P = (l) => {
53
58
  if (l.main || l.search.length == 0)
54
59
  return null;
55
60
  let a = {};
56
- l.search.forEach((u) => {
57
- a[u.name] || (a[u.name] = null);
61
+ l.search.forEach((r) => {
62
+ a[r.name] || (a[r.name] = null);
58
63
  });
59
64
  let o = {};
60
65
  return o[l.name] = a, o;
61
- }, H = (l) => {
62
- b.value = W(l);
66
+ }, W = (l) => {
67
+ b.value = P(l);
63
68
  }, se = () => {
64
- F();
65
- }, ce = (l) => {
66
- H(l.schema[0]);
67
- }, F = () => {
68
- let l = j.value.clientWidth;
69
+ D();
70
+ }, me = (l) => {
71
+ W(l.schema[0]);
72
+ }, D = () => {
73
+ let l = T.value.clientWidth;
69
74
  i.value.column = Math.ceil(l / 500);
70
- }, me = () => {
71
- F(), H(t.value);
75
+ }, ce = () => {
76
+ D(), W(t.value);
72
77
  };
73
78
  fe(() => {
74
- me();
79
+ ce();
75
80
  });
76
- let ie = E(() => P.splitRows(t.value.search, i.value.column)), J = E(() => {
81
+ let ie = E(() => K.splitRows(t.value.search, i.value.column)), G = E(() => {
77
82
  if (!b.value)
78
- return m.value[t.value.name];
79
- let l = b.value[t.value.name], a = (p.value.page - 1) * i.value.pageSize, o = p.value.page * i.value.pageSize - 1, u = m.value[t.value.name].filter(($) => {
83
+ return c.value[t.value.name];
84
+ let l = b.value[t.value.name], a = (p.value.page - 1) * i.value.pageSize, o = p.value.page * i.value.pageSize - 1, r = c.value[t.value.name].filter(($) => {
80
85
  let f = !0;
81
86
  for (let x = 0; x < t.value.search.length; x++) {
82
87
  let y = t.value.search[x], s = $[y.name], h = l[y.name];
@@ -94,49 +99,49 @@ const Re = {
94
99
  }
95
100
  return f;
96
101
  });
97
- return p.value.count = u.length, u.filter(($, f) => f >= a && f <= o);
102
+ return p.value.count = r.length, r.filter(($, f) => f >= a && f <= o);
98
103
  }), pe = E(() => N.getLines(t.value.show, i.value.column, (a) => a, (a) => a.colspan)), ve = E(() => {
99
- let l = t.value.main ? `/${t.value.name}` : `/${D.value[0].name}/${t.value.name}`;
104
+ let l = t.value.main ? `/${t.value.name}` : `/${A.value[0].name}/${t.value.name}`;
100
105
  return ye.getComponent(`${l}/update-child`, "partial", "update-child");
101
106
  });
102
- return q(() => m.value[t.value.name], (l, a) => {
103
- let o = l.length, u = a.length, v = ke.pageCount(m.value[t.value.name].length, i.value.pageSize);
104
- (o > u || o < u && p.value.page > v) && (p.value.page = v);
105
- }, { deep: !0 }), q(A, (l, a) => {
106
- let o = l.find((u) => u.table == t.value.name);
107
+ return M(() => c.value[t.value.name], (l, a) => {
108
+ let o = l.length, r = a.length, v = Ce.pageCount(c.value[t.value.name].length, i.value.pageSize);
109
+ (o > r || o < r && p.value.page > v) && (p.value.page = v);
110
+ }, { deep: !0 }), M(O, (l, a) => {
111
+ let o = l.find((r) => r.table == t.value.name);
107
112
  o != null && (p.value.page = Math.ceil((o.index + 1) / i.value.pageSize));
108
- }), q(t, (l, a) => {
109
- F();
110
- }), X({ resize: se, update: ce }), (l, a) => {
111
- const o = _("el-form-item"), u = _("el-col"), v = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), x = _("el-popover"), y = _("el-pagination");
113
+ }), M(t, (l, a) => {
114
+ D();
115
+ }), X({ resize: se, update: me }), (l, a) => {
116
+ const o = _("el-form-item"), r = _("el-col"), v = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), x = _("el-popover"), y = _("el-pagination");
112
117
  return n(), d("div", {
113
118
  ref_key: "normalRef",
114
- ref: j,
115
- class: K(["ha-normal-layout", { draggable: e(i).sort }])
119
+ ref: T,
120
+ class: J(["ha-normal-layout", { draggable: e(i).sort }])
116
121
  }, [
117
122
  e(b) ? (n(), g($, {
118
123
  key: 0,
119
124
  class: "search-form"
120
125
  }, {
121
- default: c(() => [
126
+ default: m(() => [
122
127
  (n(!0), d(w, null, R(e(ie), (s, h) => (n(), g(v, {
123
128
  gutter: 5,
124
129
  key: h
125
130
  }, {
126
- default: c(() => [
127
- (n(!0), d(w, null, R(s, (r, L) => (n(), g(u, {
131
+ default: m(() => [
132
+ (n(!0), d(w, null, R(s, (u, F) => (n(), g(r, {
128
133
  span: 24 / e(i).column,
129
- key: L
134
+ key: F
130
135
  }, {
131
- default: c(() => [
132
- k(o, {
133
- label: r.label
136
+ default: m(() => [
137
+ C(o, {
138
+ label: u.label
134
139
  }, {
135
- default: c(() => [
136
- k(e(Q), {
137
- schema: e(D),
140
+ default: m(() => [
141
+ C(e(Q), {
142
+ schema: e(A),
138
143
  table: e(t),
139
- field: r,
144
+ field: u,
140
145
  set: e(b),
141
146
  onSubmit: e(le)
142
147
  }, null, 8, ["schema", "table", "field", "set", "onSubmit"])
@@ -152,12 +157,12 @@ const Re = {
152
157
  ]),
153
158
  _: 1
154
159
  })) : V("", !0),
155
- e(J).length ? (n(), d("div", $e, [
156
- (n(!0), d(w, null, R(e(J), (s) => (n(), d("div", {
157
- class: K(["normal-row", { main: e(t).main }])
160
+ e(G).length ? (n(), d("div", $e, [
161
+ (n(!0), d(w, null, R(e(G), (s) => (n(), d("div", {
162
+ class: J(["normal-row", { main: e(t).main }])
158
163
  }, [
159
164
  e(t).main ? V("", !0) : (n(), d("div", ze, [
160
- k(f, {
165
+ C(f, {
161
166
  ref_for: !0,
162
167
  ref: e(ee),
163
168
  class: "normal-checkbox",
@@ -165,50 +170,50 @@ const Re = {
165
170
  onChange: (h) => e(oe)(h, s)
166
171
  }, null, 8, ["row", "onChange"])
167
172
  ])),
168
- I("div", Ee, [
173
+ B("div", Ee, [
169
174
  (n(!0), d(w, null, R(e(pe), (h) => (n(), g(v, null, {
170
- default: c(() => [
171
- (n(!0), d(w, null, R(h, ({ data: r, span: L }) => (n(), g(u, {
172
- span: L,
173
- key: `${e(t).name}.${r.name}`
175
+ default: m(() => [
176
+ (n(!0), d(w, null, R(h, ({ data: u, span: F }) => (n(), g(r, {
177
+ span: F,
178
+ key: `${e(t).name}.${u.name}`
174
179
  }, {
175
- default: c(() => [
176
- k(o, {
177
- style: ge(e(P).getStyle(r, e(O).type, e(i).type)),
178
- label: r.label,
179
- rules: e(N).getRules(e(A), e(t), r, e(G)(s)),
180
- prop: `[${e(t).name}][${e(G)(s)}][${r.name}]`
180
+ default: m(() => [
181
+ C(o, {
182
+ style: ge(e(K).getStyle(u, e(L).type, e(i).type)),
183
+ label: u.label,
184
+ rules: e(N).getRules(e(O), e(t), u, e(j)(s)),
185
+ prop: `[${e(t).name}][${e(j)(s)}][${u.name}]`
181
186
  }, {
182
- label: c(() => {
187
+ label: m(() => {
183
188
  var z;
184
189
  return [
185
- _e(B(e(xe)(e(t).name, r.name)) + " ", 1),
186
- (z = r.control.tooltip) != null && z.content ? (n(), g(x, {
190
+ _e(q(e(xe)(e(t).name, u.name)) + " ", 1),
191
+ (z = u.control.tooltip) != null && z.content ? (n(), g(x, {
187
192
  key: 0,
188
193
  trigger: "hover",
189
194
  placement: "top",
190
195
  width: "auto",
191
- title: r.control.tooltip.title
196
+ title: u.control.tooltip.title
192
197
  }, {
193
- reference: c(() => [
198
+ reference: m(() => [
194
199
  Ve
195
200
  ]),
196
- default: c(() => [
197
- I("pre", null, B(r.control.tooltip.content), 1)
201
+ default: m(() => [
202
+ B("pre", null, q(u.control.tooltip.content), 1)
198
203
  ]),
199
204
  _: 2
200
205
  }, 1032, ["title"])) : V("", !0)
201
206
  ];
202
207
  }),
203
- default: c(() => [
204
- k(e(Q), {
205
- schema: e(D),
206
- set: e(m),
208
+ default: m(() => [
209
+ C(e(Q), {
210
+ schema: e(A),
211
+ set: e(c),
207
212
  table: e(t),
208
213
  row: s,
209
- field: r,
210
- onSubmit: e(ue),
211
- onChange: (z) => e(ne)(z, e(m), e(t), s, r)
214
+ field: u,
215
+ onSubmit: e(re),
216
+ onChange: (z) => e(ne)(z, e(c), e(t), s, u)
212
217
  }, null, 8, ["schema", "set", "table", "row", "field", "onSubmit", "onChange"])
213
218
  ]),
214
219
  _: 2
@@ -221,26 +226,26 @@ const Re = {
221
226
  }, 1024))), 256))
222
227
  ])
223
228
  ], 2))), 256))
224
- ], 512)) : (n(), d("div", Re, B(e(Ce)("common.no_data")), 1)),
229
+ ], 512)) : (n(), d("div", Re, q(e(ke)("common.no_data")), 1)),
225
230
  e(t).main ? V("", !0) : (n(), g(e(Se), { key: 3 }, {
226
- left: c(() => [
231
+ left: m(() => [
227
232
  (n(), g(be(e(ve)), {
228
- module: e(O),
229
- set: e(m),
233
+ module: e(L),
234
+ set: e(c),
230
235
  table: e(t),
231
- selection: e(C),
236
+ selection: e(k),
232
237
  onAdd: e(te),
233
238
  onRemove: e(ae)
234
239
  }, null, 40, ["module", "set", "table", "selection", "onAdd", "onRemove"]))
235
240
  ]),
236
- default: c(() => [
237
- k(y, {
241
+ default: m(() => [
242
+ C(y, {
238
243
  background: "",
239
244
  layout: "total, prev, pager, next, jumper",
240
245
  "current-page": e(p).page,
241
246
  "page-size": e(i).pageSize,
242
247
  total: e(p).count,
243
- onCurrentChange: a[0] || (a[0] = (s) => e(re)(s, e(t)))
248
+ onCurrentChange: a[0] || (a[0] = (s) => e(ue)(s, e(t)))
244
249
  }, null, 8, ["current-page", "page-size", "total"])
245
250
  ]),
246
251
  _: 1
@@ -250,5 +255,5 @@ const Re = {
250
255
  }
251
256
  });
252
257
  export {
253
- qe as default
258
+ Oe as default
254
259
  };
@@ -0,0 +1,99 @@
1
+ import { defineComponent as V, toRefs as $, ref as r, onMounted as A, watch as E, unref as a, openBlock as G, createBlock as I, createCommentVNode as K } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import { U as s, b as Q, i as W, s as h, O as X, c as b } from "./main-D-QTCahZ.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/moment-h96o7c8I.js";
7
+ import "./assets/liquidjs-C-LVcoaY.js";
8
+ import { _ as Y } from "./Index.vue_vue_type_script_setup_true_lang-CJV5JBz9.js";
9
+ const oe = /* @__PURE__ */ V({
10
+ __name: "Paging",
11
+ props: {
12
+ base: {},
13
+ route: {},
14
+ url: {},
15
+ win: {}
16
+ },
17
+ emits: ["navigate", "load"],
18
+ setup(q, { expose: k, emit: z }) {
19
+ let g = z, P = q, { url: d, base: y, route: u } = $(P), f = r(), v = r(), c = r(), m = r(), x = r(), C = r(), p = r(), o = r(), N = (e) => !0, L = (e) => {
20
+ let l = s.getPath(d.value), t = s.getPath(e);
21
+ return l != t;
22
+ }, O = (e = null) => {
23
+ _(e);
24
+ }, R = () => {
25
+ }, S = (e) => {
26
+ var t;
27
+ let l = Q(e.module.type, e.module.name);
28
+ W.setTitle(l, e.module.env), f.value = e.module, x.value = e.next, C.value = h.expandSet(e.schema, e.set), v.value = h.expandSchema(e.schema, e.set), c.value = (t = v.value) == null ? void 0 : t[0], m.value = c.value.layouts[0], p.value = h.getConditionForm(v.value, u.value.query.condition);
29
+ }, U = (e = null, l = null) => {
30
+ let t = e ?? u.value.query, n = s.getUrl(u.value.path, t);
31
+ g("load", n, !1, (T) => {
32
+ l && l(T);
33
+ });
34
+ }, i = (e, l) => {
35
+ g("navigate", e, l);
36
+ }, w = async (e) => {
37
+ let l = u.value.query;
38
+ l.page = 1;
39
+ let t = X.pure(p.value);
40
+ l.condition = b.encode(t);
41
+ let n = s.getUrl(u.value.path, l);
42
+ n == d.value ? U(l, e) : i(n, e);
43
+ }, B = (e, l) => {
44
+ let t = u.value.query;
45
+ t.order_by = b.encode(JSON.stringify(e));
46
+ let n = s.getUrl(u.value.path, t);
47
+ i(n, l);
48
+ }, D = (e, l = null) => {
49
+ let t = u.value.query;
50
+ t.page = e;
51
+ let n = s.getUrl(u.value.path, t);
52
+ i(n, l);
53
+ }, H = (e, l = null) => {
54
+ let t = u.value.query;
55
+ t.size = e;
56
+ let n = s.getUrl(u.value.path, t);
57
+ i(n, l);
58
+ }, j = (e) => {
59
+ m.value = c.value.layouts.find((l) => l.type == e);
60
+ }, F = () => {
61
+ S(y.value.data);
62
+ }, _ = (e = null) => U(null, e), J = (e) => {
63
+ if (!o.value || !o.value.resize)
64
+ return !1;
65
+ o.value.resize(e);
66
+ }, M = (e, l) => {
67
+ if (!o.value || !o.value.keyboard)
68
+ return !1;
69
+ o.value.keyboard(e, l);
70
+ };
71
+ return A(async () => {
72
+ F();
73
+ }), E(() => y.value, (e) => {
74
+ S(e.data);
75
+ }), k({ shouldLoad: N, shouldSpin: L, refresh: _, keyboard: M, resize: J }), (e, l) => a(m) ? (G(), I(Y, {
76
+ key: 0,
77
+ ref_key: "pagingRef",
78
+ ref: o,
79
+ module: a(f),
80
+ next: a(x),
81
+ set: a(C),
82
+ schema: a(v),
83
+ table: a(c),
84
+ layout: a(m),
85
+ "search-data": a(p),
86
+ onNavigate: a(i),
87
+ onSort: a(B),
88
+ onSearch: a(w),
89
+ onPageChange: a(D),
90
+ onSizeChange: a(H),
91
+ onLayoutChange: a(j),
92
+ onSucceed: a(O),
93
+ onClose: a(R)
94
+ }, null, 8, ["module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"])) : K("", !0);
95
+ }
96
+ });
97
+ export {
98
+ oe as default
99
+ };
@@ -1,6 +1,12 @@
1
- import { defineComponent as D, toRefs as F, ref as H, resolveComponent as g, openBlock as s, createElementBlock as I, Fragment as P, createElementVNode as l, unref as e, createBlock as m, withCtx as t, createTextVNode as r, toDisplayString as n, createCommentVNode as p, createVNode as y, createSlots as R } from "vue";
2
- import { e as o } from "./main-D3_7YhaK.js";
3
- const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-plus" }, null, -1), j = /* @__PURE__ */ l("i", { class: "fa fa-copy" }, null, -1), z = /* @__PURE__ */ l("i", { class: "fa fa-trash-alt" }, null, -1), A = { class: "search-operation" }, G = /* @__PURE__ */ l("i", { class: "fa fa-search" }, null, -1), J = /* @__PURE__ */ l("i", { class: "fa fa-file-upload" }, null, -1), K = /* @__PURE__ */ l("i", { class: "fa fa-share-square" }, null, -1), W = /* @__PURE__ */ D({
1
+ import { defineComponent as D, toRefs as F, ref as H, resolveComponent as g, openBlock as s, createElementBlock as I, Fragment as P, createElementVNode as l, unref as e, createBlock as p, withCtx as t, createTextVNode as r, toDisplayString as n, createCommentVNode as d, createVNode as y, createSlots as R } 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 "./assets/moment-h96o7c8I.js";
7
+ import { t as o } from "./main-D-QTCahZ.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-plus" }, null, -1), j = /* @__PURE__ */ l("i", { class: "fa fa-copy" }, null, -1), z = /* @__PURE__ */ l("i", { class: "fa fa-trash-alt" }, null, -1), A = { class: "search-operation" }, G = /* @__PURE__ */ l("i", { class: "fa fa-search" }, null, -1), J = /* @__PURE__ */ l("i", { class: "fa fa-file-upload" }, null, -1), K = /* @__PURE__ */ l("i", { class: "fa fa-share-square" }, null, -1), oe = /* @__PURE__ */ D({
4
10
  __name: "PagingHeader",
5
11
  props: {
6
12
  schema: {},
@@ -12,27 +18,27 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
12
18
  },
13
19
  emits: ["add", "remove", "copy", "show-import", "show-export", "succeed", "submit"],
14
20
  setup(b, { emit: k }) {
15
- let c = k, x = b, { schema: L, table: C, layout: M, next: d, set: v, selection: a } = F(x), u = H(!1), w = () => {
16
- u.value = !0, c("submit", () => {
21
+ let i = k, x = b, { schema: L, table: C, layout: M, next: m, set: v, selection: a } = F(x), u = H(!1), w = () => {
22
+ u.value = !0, i("submit", () => {
17
23
  u.value = !1;
18
24
  });
19
25
  }, N = (f) => {
20
- c("add", f);
26
+ i("add", f);
21
27
  }, V = () => {
22
- c("show-import");
28
+ i("show-import");
23
29
  }, B = () => {
24
- c("show-export");
30
+ i("show-export");
25
31
  }, E = (f) => {
26
- c("copy", f);
32
+ i("copy", f);
27
33
  }, S = () => {
28
- c("remove", a.value);
34
+ i("remove", a.value);
29
35
  };
30
36
  return (f, _) => {
31
37
  var h;
32
- const i = g("el-button"), q = g("el-popconfirm");
38
+ const c = g("el-button"), q = g("el-popconfirm");
33
39
  return s(), I(P, null, [
34
40
  l("div", T, [
35
- e(d).insert ? (s(), m(i, {
41
+ e(m).insert ? (s(), p(c, {
36
42
  key: 0,
37
43
  type: "primary",
38
44
  class: "btn-insert",
@@ -45,8 +51,8 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
45
51
  r(" " + n(e(o)("paging.add")), 1)
46
52
  ]),
47
53
  _: 1
48
- }, 8, ["onClick"])) : p("", !0),
49
- e(d).copy ? (s(), m(i, {
54
+ }, 8, ["onClick"])) : d("", !0),
55
+ e(m).copy ? (s(), p(c, {
50
56
  key: 1,
51
57
  type: "primary",
52
58
  disabled: !e(a).length,
@@ -59,8 +65,8 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
59
65
  r(" " + n(e(o)("common.copy")) + n(e(a).length ? "(" + e(a).length + ")" : ""), 1)
60
66
  ]),
61
67
  _: 1
62
- }, 8, ["disabled"])) : p("", !0),
63
- e(d).delete ? (s(), m(q, {
68
+ }, 8, ["disabled"])) : d("", !0),
69
+ e(m).delete ? (s(), p(q, {
64
70
  key: 2,
65
71
  width: 180,
66
72
  title: e(o)("common.confirm_delete"),
@@ -69,7 +75,7 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
69
75
  onConfirm: e(S)
70
76
  }, {
71
77
  reference: t(() => [
72
- y(i, {
78
+ y(c, {
73
79
  type: "danger",
74
80
  class: "btn-delete",
75
81
  plain: "",
@@ -85,10 +91,10 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
85
91
  }, 8, ["disabled"])
86
92
  ]),
87
93
  _: 1
88
- }, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : p("", !0)
94
+ }, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : d("", !0)
89
95
  ]),
90
96
  l("div", A, [
91
- y(i, {
97
+ y(c, {
92
98
  type: "primary",
93
99
  loading: e(u),
94
100
  onClick: e(w)
@@ -106,7 +112,7 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
106
112
  key: "0"
107
113
  }
108
114
  ]), 1032, ["loading", "onClick"]),
109
- e(d).import ? (s(), m(i, {
115
+ e(m).import ? (s(), p(c, {
110
116
  key: 0,
111
117
  onClick: e(V)
112
118
  }, {
@@ -117,8 +123,8 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
117
123
  r(" " + n(e(o)("paging.import")), 1)
118
124
  ]),
119
125
  _: 1
120
- }, 8, ["onClick"])) : p("", !0),
121
- e(d).export ? (s(), m(i, {
126
+ }, 8, ["onClick"])) : d("", !0),
127
+ e(m).export ? (s(), p(c, {
122
128
  key: 1,
123
129
  disabled: ((h = e(v)[e(C).name]) == null ? void 0 : h.length) == 0,
124
130
  onClick: e(B)
@@ -130,12 +136,12 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
130
136
  r(" " + n(e(o)("paging.export")), 1)
131
137
  ]),
132
138
  _: 1
133
- }, 8, ["disabled", "onClick"])) : p("", !0)
139
+ }, 8, ["disabled", "onClick"])) : d("", !0)
134
140
  ])
135
141
  ], 64);
136
142
  };
137
143
  }
138
144
  });
139
145
  export {
140
- W as default
146
+ oe as default
141
147
  };