halo-pc 1.0.20 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. package/dist/Article-C_3LULzy.js +200 -0
  2. package/dist/{ArticleFooter-CsCnjrJ1.js → ArticleFooter-Do6I1mma.js} +24 -18
  3. package/dist/{Autocomplete-BGkHGSX_.js → Autocomplete-BLOOqTTn.js} +1 -1
  4. package/dist/Autocomplete-BLrbt1wN.js +53 -0
  5. package/dist/Autocomplete-C27XN8Sp.js +54 -0
  6. package/dist/{CSharp-NuDfWEq7.js → CSharp-BGn9jf2B.js} +1 -1
  7. package/dist/{Calender-C2YaNTHk.js → Calender-4bSMqUzx.js} +4 -4
  8. package/dist/Callback-BHYDtogL.js +26 -0
  9. package/dist/Cascader-D3y3WjFF.js +87 -0
  10. package/dist/Cascader-D9Y8L7X2.js +47 -0
  11. package/dist/{Checkbox-BAcK--1U.js → Checkbox-DnTLeLjt.js} +1 -1
  12. package/dist/Checkbox-dDfYBhhc.js +76 -0
  13. package/dist/{Code-CbsVyhOv.js → Code-Af5URLnL.js} +1 -1
  14. package/dist/Code-Bi9Y45vV.js +42 -0
  15. package/dist/Code-CWsSgkJq.js +60 -0
  16. package/dist/{Code-BHEes80c.js → Code-QYs-sjcG.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-CI6sLXKy.js +65 -0
  18. package/dist/Column-wzxM_-Vp.js +74 -0
  19. package/dist/Comment-BF8L1umD.js +104 -0
  20. package/dist/Compare-CjSQcnd3.js +43 -0
  21. package/dist/{Compare-gEOPuGLB.js → Compare-Cj_CPjIV.js} +25 -19
  22. package/dist/Copy-BNt-Dwoo.js +49 -0
  23. package/dist/Custom-CYPkAqpf.js +57 -0
  24. package/dist/{DataExport-hwoZoZUN.js → DataExport-CHQtRKzA.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dkq4fSkZ.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +41 -36
  26. package/dist/{DataImport-CQYeF50z.js → DataImport-CDcmH3Du.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js +176 -0
  28. package/dist/{Date-a3T1YbHN.js → Date-BStpsA7n.js} +1 -1
  29. package/dist/Date-U1py5NaK.js +43 -0
  30. package/dist/DateRange-DxAx2gxI.js +63 -0
  31. package/dist/DateTime-B3609Ct6.js +44 -0
  32. package/dist/{DateTime-BUYojCOY.js → DateTime-CmJw1-WA.js} +1 -1
  33. package/dist/{DateTimeRange-D9K4am0p.js → DateTimeRange-aDw57sTG.js} +17 -11
  34. package/dist/Daterange-C48t6usd.js +63 -0
  35. package/dist/{Decimal-CNhxJUZg.js → Decimal-Ca0K6NoZ.js} +1 -1
  36. package/dist/Delete-FhIvONUV.js +62 -0
  37. package/dist/{Detail-BXkTd6Wh.js → Detail-qqW0J946.js} +21 -15
  38. package/dist/Dictionary-CaXytFmK.js +59 -0
  39. package/dist/Email-H2DHJhMe.js +54 -0
  40. package/dist/{File-CAnAcqJX.js → File-CjXewuui.js} +33 -27
  41. package/dist/Image-BSuCHshD.js +9 -0
  42. package/dist/Index-9KImKLrj.js +4 -0
  43. package/dist/Index-BIbR8SAU.js +178 -0
  44. package/dist/Index-BaoxkF9F.js +4 -0
  45. package/dist/{Index-DJvB04cS.js → Index-BrI9x7i7.js} +1 -1
  46. package/dist/Index-CXR5RC6-.js +4 -0
  47. package/dist/{Index-RZT6JXBO.js → Index-CpGonJ_m.js} +1 -1
  48. package/dist/{Index-CseSUp2Z.js → Index-DUgprnVp.js} +1 -1
  49. package/dist/{Index-BqjKndKz.js → Index-icEhc88J.js} +25 -20
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DtNDN8Ex.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -15
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +22 -16
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-T12lwRy6.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
  53. package/dist/{Install-DWWpscrR.js → Install-FwXpJIWk.js} +26 -20
  54. package/dist/Int-CXl1QpEL.js +44 -0
  55. package/dist/Int-DAxz3ETu.js +46 -0
  56. package/dist/List-CV9bkdrq.js +79 -0
  57. package/dist/Maintaince-DZNq9aHX.js +20 -0
  58. package/dist/{Markdown-d8PCfAFf.js → Markdown-BhwqDlwa.js} +1 -1
  59. package/dist/{Month-COEkKDL_.js → Month-BEmnA7zU.js} +1 -1
  60. package/dist/Month-DXQBHoJU.js +43 -0
  61. package/dist/Month-bgEd_K7_.js +44 -0
  62. package/dist/{Normal-BD7sNr-b.js → Normal-Dya4aqc7.js} +56 -51
  63. package/dist/Paging-JXDzxoM0.js +99 -0
  64. package/dist/{PagingHeader-CznmI0kr.js → PagingHeader-BETGBySb.js} +31 -25
  65. package/dist/{PagingRow-BJ-VLpfV.js → PagingRow-BLqp1c9E.js} +28 -22
  66. package/dist/QueryApi-B5jI3sBl.js +20 -0
  67. package/dist/{Racebar-BkwhD-rw.js → Racebar-CozeXwLJ.js} +42 -37
  68. package/dist/{Radio-CS12bajp.js → Radio-CuAxYw7j.js} +1 -1
  69. package/dist/{Register-l_X4fDPP.js → Register-B11jE2Ox.js} +78 -73
  70. package/dist/RichText-CxBE_cVg.js +47 -0
  71. package/dist/{SearchFooter-C8N9ku25.js → SearchFooter-agTqPUGE.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-6WvYHIn1.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
  73. package/dist/{SearchForm-DX0mN20A.js → SearchForm-DNKmE8W0.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +40 -35
  75. package/dist/Select-BPa5rx_H.js +86 -0
  76. package/dist/Select-CRfEAtba.js +117 -0
  77. package/dist/{Select-DYjvtHyi.js → Select-MqDjnB-C.js} +1 -1
  78. package/dist/{Single-DErvX9y_.js → Single-C5Kkr9SY.js} +112 -107
  79. package/dist/{Statistic-CQxXdu-V.js → Statistic-Ce_FMw5O.js} +36 -31
  80. package/dist/{Stock-CsoHCwV6.js → Stock-BTjhpaxv.js} +1 -1
  81. package/dist/{Stock-DXLdfC3r.js → Stock-D8AJmsvb.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +28 -23
  83. package/dist/{Switch-BCgZXfWo.js → Switch-gwGbi34o.js} +1 -1
  84. package/dist/{Table-CAVxyUTD.js → Table-C03eUBYm.js} +69 -63
  85. package/dist/{Table-DkJYgLFt.js → Table-DA8aGGEH.js} +74 -70
  86. package/dist/{Text-Cn0cOTli.js → Text-B5uPrGof.js} +18 -12
  87. package/dist/Text-D-VS-lCk.js +59 -0
  88. package/dist/Text-NRww74M3.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-Fsbur1tJ.js +59 -0
  90. package/dist/TextLink-B_Qg6CnF.js +65 -0
  91. package/dist/{Textarea-Pc4TfoC3.js → Textarea-gtXLL6Qe.js} +1 -1
  92. package/dist/Time-DYOIZ2Rv.js +43 -0
  93. package/dist/Timeline-B4AYezYA.js +59 -0
  94. package/dist/{Tree-01Sb-9zi.js → Tree-CRDb0vS5.js} +67 -62
  95. package/dist/Tree-CTmXjN1O.js +122 -0
  96. package/dist/TreeNode-HFcGpAOb.js +42 -0
  97. package/dist/{Update-Cy1lFPVv.js → Update-EHyhYK5k.js} +18 -12
  98. package/dist/{UpdateChild-DV_8KV9G.js → UpdateChild-CC3b9evd.js} +23 -17
  99. package/dist/Upload-CkQ-5tVg.js +72 -0
  100. package/dist/Upload-um4BYzwO.js +150 -0
  101. package/dist/UploadApi-BmdGJGjh.js +20 -0
  102. package/dist/Year-DKBG5ihv.js +47 -0
  103. package/dist/{Year-BFZPXXq0.js → Year-Lhvyb9Vk.js} +1 -1
  104. package/dist/assets/@intlify-BISCQg1h.js +2189 -0
  105. package/dist/assets/@vue-aVYGocXp.js +93 -0
  106. package/dist/assets/clone-BZn0cTAu.js +134 -0
  107. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  108. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  109. package/dist/assets/moment-h96o7c8I.js +2578 -0
  110. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  111. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  112. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  113. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  114. package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
  115. package/dist/main-C1iALE1f.js +8947 -0
  116. package/dist/main.js +42 -41
  117. package/package.json +2 -2
  118. package/dist/Article-aps_F4Uq.js +0 -194
  119. package/dist/Autocomplete-CGoxGIM2.js +0 -48
  120. package/dist/Autocomplete-XdLV4jzi.js +0 -49
  121. package/dist/Callback-Czdr_dVp.js +0 -20
  122. package/dist/Cascader-D3Kr80fH.js +0 -81
  123. package/dist/Cascader-DRvnD4Xc.js +0 -41
  124. package/dist/Checkbox-5pSKww4M.js +0 -70
  125. package/dist/Code-BxQxsVD8.js +0 -54
  126. package/dist/Code-CtDTGfBy.js +0 -36
  127. package/dist/Code.vue_vue_type_style_index_0_lang-CPZKY3vQ.js +0 -59
  128. package/dist/Column-D3PMyaiE.js +0 -68
  129. package/dist/Comment-B3fvVYJF.js +0 -98
  130. package/dist/Compare-BXxJuIXf.js +0 -37
  131. package/dist/Copy-1znXP-dt.js +0 -43
  132. package/dist/Custom-C_15ZImX.js +0 -51
  133. package/dist/DataImport.vue_vue_type_script_setup_true_lang-ChWRjj2W.js +0 -172
  134. package/dist/Date-0bIUTNCs.js +0 -37
  135. package/dist/DateRange-Cxu9FXTE.js +0 -57
  136. package/dist/DateTime-IlsYZL-l.js +0 -38
  137. package/dist/Daterange-CX0Klog4.js +0 -57
  138. package/dist/Delete-DFl8Tr27.js +0 -56
  139. package/dist/Dictionary-DmarNVsi.js +0 -55
  140. package/dist/Email-BBjDCCOK.js +0 -48
  141. package/dist/Image-pufFvop2.js +0 -9
  142. package/dist/Index-C4D5pwwu.js +0 -173
  143. package/dist/Index-CD_KS2lO.js +0 -4
  144. package/dist/Index-CEh3KlPE.js +0 -4
  145. package/dist/Index-XmvSiC1h.js +0 -4
  146. package/dist/Int-Bi3P8XeV.js +0 -41
  147. package/dist/Int-Bn2p1DqA.js +0 -38
  148. package/dist/List-CeQRwXop.js +0 -73
  149. package/dist/Maintaince-CVMjhqSO.js +0 -14
  150. package/dist/Month-BfUSQ3xa.js +0 -38
  151. package/dist/Month-DQKfNQzN.js +0 -37
  152. package/dist/Paging-d_-VefNv.js +0 -94
  153. package/dist/QueryApi-Cdniq3mZ.js +0 -13
  154. package/dist/RichText-9MwwjuZi.js +0 -41
  155. package/dist/Select-CQE5kY-n.js +0 -111
  156. package/dist/Select-DaEqum3a.js +0 -80
  157. package/dist/Text-Dk5tNNZo.js +0 -53
  158. package/dist/Text-DvVWvaMO.js +0 -4
  159. package/dist/Text.vue_vue_type_style_index_0_lang-I01JEYAx.js +0 -53
  160. package/dist/TextLink-D3nvnLHn.js +0 -59
  161. package/dist/Time-CToG3p0T.js +0 -37
  162. package/dist/Timeline-DphvhX0U.js +0 -53
  163. package/dist/Tree-CH1RoUqu.js +0 -117
  164. package/dist/TreeNode-C54d29V-.js +0 -37
  165. package/dist/Upload-BalaO4wz.js +0 -146
  166. package/dist/Upload-DQVaPUdG.js +0 -67
  167. package/dist/UploadApi-Cfm5DM_x.js +0 -13
  168. package/dist/Year-Swm3VSzj.js +0 -41
  169. package/dist/main-BYJVoHlf.js +0 -19457
@@ -0,0 +1,79 @@
1
+ import { defineComponent as U, toRefs as B, ref as r, watch as E, openBlock as F, createBlock as H, resolveDynamicComponent as T, unref as t, withCtx as V, createElementVNode as $, toDisplayString as j } from "vue";
2
+ import "./assets/underscore-B0BCaBxV.js";
3
+ import "./assets/underscore.string-DVXD2SZo.js";
4
+ import { U as n, b as A, i as G, s as v, c as I } from "./main-C1iALE1f.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/clone-BZn0cTAu.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const J = { class: "not-support" }, te = /* @__PURE__ */ U({
10
+ __name: "List",
11
+ props: {
12
+ base: {},
13
+ route: {},
14
+ url: {},
15
+ win: {}
16
+ },
17
+ emits: ["load", "navigate"],
18
+ setup(_, { expose: S, emit: P }) {
19
+ let d = P, k = _, { url: h, base: p, route: u } = B(k), f = r(), i = r(), s = r(), y = r(), g = r(), o = r(), c = r(), q = (e) => {
20
+ let l = n.getPath(e), a = n.getPath(h.value);
21
+ return l != a;
22
+ }, C = (e) => {
23
+ let l = n.getPath(h.value), a = n.getPath(e);
24
+ return l != a;
25
+ }, x = (e) => {
26
+ var a;
27
+ let l = A(e.module.type, e.module.name);
28
+ G.setTitle(l, e.module.env), f.value = e.module, i.value = v.expandSchema(e.schema), s.value = (a = i.value) == null ? void 0 : a[0], y.value = e.next, g.value = v.expandSet(e.schema, e.set), c.value = v.getConditionForm(i.value, u.value.query.condition);
29
+ }, m = (e = null, l = null) => {
30
+ let a = e ?? u.value.query, N = n.getUrl(u.value.path, a);
31
+ d("load", N, !1, l);
32
+ }, R = (e) => {
33
+ m(null, e);
34
+ }, w = (e) => {
35
+ d("navigate", e);
36
+ }, D = async (e) => {
37
+ let l = u.value.query;
38
+ l.condition = I.encode(c.value), m(l, e);
39
+ }, b = () => {
40
+ m();
41
+ }, z = (e, l) => {
42
+ if (!o.value || !o.value.keyboard)
43
+ return !1;
44
+ o.value.keyboard(e, l);
45
+ }, L = (e) => {
46
+ if (!o.value || !o.value.resize)
47
+ return !1;
48
+ o.value.resize(e);
49
+ };
50
+ return (() => {
51
+ x(p.value.data);
52
+ })(), E(() => p.value, (e) => {
53
+ x(e.data);
54
+ }), S({ shouldLoad: q, shouldSpin: C, refresh: b, keyboard: z, resize: L }), (e, l) => (F(), H(T(`list-${t(s).layouts[0].type.toLowerCase()}`), {
55
+ ref_key: "listRef",
56
+ ref: o,
57
+ route: t(u),
58
+ module: t(f),
59
+ schema: t(i),
60
+ table: t(s),
61
+ layout: t(s).layouts[0],
62
+ next: t(y),
63
+ set: t(g),
64
+ "search-data": t(c),
65
+ onSucceed: t(R),
66
+ onSearch: t(D),
67
+ onNavigate: t(w),
68
+ onRefresh: t(b)
69
+ }, {
70
+ default: V(() => [
71
+ $("div", J, "未支持的列表布局方式:" + j(t(s).layouts[0].type), 1)
72
+ ]),
73
+ _: 1
74
+ }, 40, ["route", "module", "schema", "table", "layout", "next", "set", "search-data", "onSucceed", "onSearch", "onNavigate", "onRefresh"]));
75
+ }
76
+ });
77
+ export {
78
+ te as default
79
+ };
@@ -0,0 +1,20 @@
1
+ import { defineComponent as e, openBlock as o, createElementBlock as i, createElementVNode as t, toDisplayString as n, unref 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 { z as s } from "./main-C1iALE1f.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const c = { class: "maintenance" }, a = /* @__PURE__ */ t("div", { class: "title" }, "系统维护中", -1), m = { class: "description" }, B = /* @__PURE__ */ e({
10
+ __name: "Maintaince",
11
+ setup(p) {
12
+ return (_, d) => (o(), i("div", c, [
13
+ a,
14
+ t("div", m, n(r(s)), 1)
15
+ ]));
16
+ }
17
+ });
18
+ export {
19
+ B as default
20
+ };
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let r = i(() => import("./Text-DvVWvaMO.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
13
+ let r = i(() => import("./Text-NRww74M3.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
14
14
  return (x, o) => (w(), V(e(r), {
15
15
  schema: e(m),
16
16
  table: e(n),
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let s = i(() => import("./Text-DvVWvaMO.js")), m = a, { schema: n, table: r, field: d, set: f, row: p, modelValue: l } = c(m);
13
+ let s = i(() => import("./Text-NRww74M3.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),
@@ -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 { j as Y } from "./main-C1iALE1f.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const j = /* @__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
+ j 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 { j as Y } from "./main-C1iALE1f.js";
8
+ import "./assets/liquidjs-C-LVcoaY.js";
9
+ const w = /* @__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
+ w as default
44
+ };
@@ -1,8 +1,13 @@
1
- import { defineComponent as de, toRefs as he, ref as w, onMounted as fe, computed as z, watch as q, resolveComponent as _, openBlock as n, createElementBlock as v, normalizeClass as H, unref as e, createBlock as g, withCtx as m, Fragment as S, renderList as R, createVNode as k, createCommentVNode as E, toDisplayString as B, createElementVNode as L, normalizeStyle as ge, createTextVNode as _e, resolveDynamicComponent as be } from "vue";
2
- import { k as J, s as I, e as ye, F as ke, P as Ce, N as xe, E as we, n as Se } from "./main-BYJVoHlf.js";
1
+ import { defineComponent as de, toRefs as he, ref as x, onMounted as fe, computed as z, watch as F, resolveComponent as _, openBlock as n, createElementBlock as v, normalizeClass as G, unref as e, createBlock as g, withCtx as m, Fragment as S, renderList as R, createVNode as C, createCommentVNode as E, toDisplayString as M, createElementVNode as B, normalizeStyle as ge, createTextVNode as _e, resolveDynamicComponent as be } from "vue";
2
+ import { w as J, s as q, d as ye, P as Ce, t as ke, f as we, N as xe, A as Se } from "./main-C1iALE1f.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
- import { _ as K } from "./Index.vue_vue_type_style_index_0_lang-T12lwRy6.js";
10
+ import { _ as K } from "./Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js";
6
11
  const Re = {
7
12
  key: 1,
8
13
  class: "ha-empty"
@@ -13,7 +18,7 @@ const Re = {
13
18
  }, ze = {
14
19
  key: 0,
15
20
  class: "normal-selection"
16
- }, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */ L("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ie = /* @__PURE__ */ de({
21
+ }, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */ B("i", { class: "fa fa-question-circle icon-question" }, null, -1), He = /* @__PURE__ */ de({
17
22
  __name: "Normal",
18
23
  props: {
19
24
  route: {},
@@ -27,30 +32,30 @@ const Re = {
27
32
  },
28
33
  emits: ["change", "submit"],
29
34
  setup(Q, { expose: U, emit: X }) {
30
- let M = X, Y = Q, { module: O, set: c, schema: V, table: t, layout: i, validateErrors: A } = he(Y), p = w({ page: 1, count: c.value[t.value.name].length }), C = w([]), b = w(), P = w([]), j = w(), Z = (l) => {
31
- P.value.push(l);
35
+ let I = X, Y = Q, { module: L, set: c, schema: V, table: t, layout: i, validateErrors: O } = he(Y), p = x({ page: 1, count: c.value[t.value.name].length }), k = x([]), b = x(), H = x([]), j = x(), Z = (l) => {
36
+ H.value.push(l);
32
37
  }, ee = () => {
33
38
  p.value.page = 1;
34
39
  }, le = () => {
35
- b.value = T(t.value);
36
- let l = I.getDefaultRow(t.value);
40
+ b.value = P(t.value);
41
+ let l = q.getDefaultRow(t.value);
37
42
  c.value[t.value.name].push(l);
38
43
  }, te = () => {
39
44
  let l = c.value[t.value.name];
40
- C.value.forEach((a) => {
45
+ k.value.forEach((a) => {
41
46
  l.splice(l.indexOf(a), 1);
42
- }), C.value = [], P.value.forEach((a) => {
47
+ }), k.value = [], H.value.forEach((a) => {
43
48
  a.model && (a.model = !1);
44
49
  });
45
50
  }, N = (l) => c.value[t.value.name].indexOf(l), ae = (l, a, o, r, d) => {
46
- M("change", l, a, o, r, d);
51
+ I("change", l, a, o, r, d);
47
52
  }, ne = (l, a) => {
48
- l ? C.value.push(a) : Se.remove(C.value, a);
53
+ l ? k.value.push(a) : Se.remove(k.value, a);
49
54
  }, oe = (l) => {
50
- M("submit", l);
55
+ I("submit", l);
51
56
  }, re = (l, a = null) => {
52
57
  p.value.page = l;
53
- }, T = (l) => {
58
+ }, P = (l) => {
54
59
  if (l.main || l.search.length == 0)
55
60
  return null;
56
61
  let a = {};
@@ -59,28 +64,28 @@ const Re = {
59
64
  });
60
65
  let o = {};
61
66
  return o[l.name] = a, o;
62
- }, W = (l) => {
63
- b.value = T(l);
67
+ }, T = (l) => {
68
+ b.value = P(l);
64
69
  }, ue = () => {
65
- F();
70
+ A();
66
71
  }, se = (l) => {
67
- W(l.schema[0]);
68
- }, F = () => {
72
+ T(l.schema[0]);
73
+ }, A = () => {
69
74
  let l = j.value.clientWidth;
70
75
  i.value.column = Math.ceil(l / 500);
71
76
  }, me = () => {
72
- F(), W(t.value);
77
+ A(), T(t.value);
73
78
  };
74
79
  fe(() => {
75
80
  me();
76
81
  });
77
- let ce = z(() => J.splitRows(t.value.search, i.value.column)), G = z(() => {
82
+ let ce = z(() => J.splitRows(t.value.search, i.value.column)), W = z(() => {
78
83
  if (!b.value)
79
84
  return c.value[t.value.name];
80
85
  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(($) => {
81
86
  let f = !0;
82
- for (let x = 0; x < t.value.search.length; x++) {
83
- let y = t.value.search[x], s = $[y.name], h = l[y.name];
87
+ for (let w = 0; w < t.value.search.length; w++) {
88
+ let y = t.value.search[w], s = $[y.name], h = l[y.name];
84
89
  if (h) {
85
90
  if (y.search == "Equals") {
86
91
  if (s !== h) {
@@ -96,24 +101,24 @@ const Re = {
96
101
  return f;
97
102
  });
98
103
  return p.value.count = r.length, r.filter(($, f) => f >= a && f <= o);
99
- }), ie = z(() => I.getLines(t.value.show, i.value.column, (a) => a, (a) => a.colspan)), pe = z(() => {
104
+ }), ie = z(() => q.getLines(t.value.show, i.value.column, (a) => a, (a) => a.colspan)), pe = z(() => {
100
105
  let l = t.value.main ? `/${t.value.name}` : `/${V.value[0].name}/${t.value.name}`;
101
106
  return ye.getComponent(`${l}/update-child`, "partial", "update-child");
102
107
  });
103
- return q(() => c.value[t.value.name], (l, a) => {
104
- let o = l.length, r = a.length, d = ke.pageCount(c.value[t.value.name].length, i.value.pageSize);
108
+ return F(() => c.value[t.value.name], (l, a) => {
109
+ let o = l.length, r = a.length, d = Ce.pageCount(c.value[t.value.name].length, i.value.pageSize);
105
110
  (o > r || o < r && p.value.page > d) && (p.value.page = d);
106
- }, { deep: !0 }), q(A, (l, a) => {
111
+ }, { deep: !0 }), F(O, (l, a) => {
107
112
  let o = l.find((r) => r.table == t.value.name);
108
113
  o != null && (p.value.page = Math.ceil((o.index + 1) / i.value.pageSize));
109
- }), q(t, (l, a) => {
110
- F();
114
+ }), F(t, (l, a) => {
115
+ A();
111
116
  }), U({ resize: ue, update: se }), (l, a) => {
112
- const o = _("el-form-item"), r = _("el-col"), d = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), x = _("el-popover"), y = _("el-pagination");
117
+ const o = _("el-form-item"), r = _("el-col"), d = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), w = _("el-popover"), y = _("el-pagination");
113
118
  return n(), v("div", {
114
119
  ref_key: "normalRef",
115
120
  ref: j,
116
- class: H(["ha-normal-layout", { draggable: e(i).sort }])
121
+ class: G(["ha-normal-layout", { draggable: e(i).sort }])
117
122
  }, [
118
123
  e(b) ? (n(), g($, {
119
124
  key: 0,
@@ -130,11 +135,11 @@ const Re = {
130
135
  key: D
131
136
  }, {
132
137
  default: m(() => [
133
- k(o, {
138
+ C(o, {
134
139
  label: u.label
135
140
  }, {
136
141
  default: m(() => [
137
- k(K, {
142
+ C(K, {
138
143
  schema: e(V),
139
144
  table: e(t),
140
145
  field: u,
@@ -153,12 +158,12 @@ const Re = {
153
158
  ]),
154
159
  _: 1
155
160
  })) : E("", !0),
156
- e(G).length ? (n(), v("div", $e, [
157
- (n(!0), v(S, null, R(e(G), (s) => (n(), v("div", {
158
- class: H(["normal-row", { main: e(t).main }])
161
+ e(W).length ? (n(), v("div", $e, [
162
+ (n(!0), v(S, null, R(e(W), (s) => (n(), v("div", {
163
+ class: G(["normal-row", { main: e(t).main }])
159
164
  }, [
160
165
  e(t).main ? E("", !0) : (n(), v("div", ze, [
161
- k(f, {
166
+ C(f, {
162
167
  ref_for: !0,
163
168
  ref: e(Z),
164
169
  class: "normal-checkbox",
@@ -166,7 +171,7 @@ const Re = {
166
171
  onChange: (h) => e(ne)(h, s)
167
172
  }, null, 8, ["row", "onChange"])
168
173
  ])),
169
- L("div", Ee, [
174
+ B("div", Ee, [
170
175
  (n(!0), v(S, null, R(e(ie), (h) => (n(), g(d, null, {
171
176
  default: m(() => [
172
177
  (n(!0), v(S, null, R(h, ({ data: u, span: D }) => (n(), g(r, {
@@ -174,15 +179,15 @@ const Re = {
174
179
  key: `${e(t).name}.${u.name}`
175
180
  }, {
176
181
  default: m(() => [
177
- k(o, {
178
- style: ge(e(J).getStyle(u, e(O).type, e(i).type)),
182
+ C(o, {
183
+ style: ge(e(J).getStyle(u, e(L).type, e(i).type)),
179
184
  label: u.label,
180
- rules: e(I).getRules(e(A), e(t), u, e(N)(s)),
185
+ rules: e(q).getRules(e(O), e(t), u, e(N)(s)),
181
186
  prop: `[${e(t).name}][${e(N)(s)}][${u.name}]`
182
187
  }, {
183
188
  label: m(() => [
184
- _e(B(e(xe)(e(t).name, u.name)) + " ", 1),
185
- u.control.tooltip ? (n(), g(x, {
189
+ _e(M(e(we)(e(t).name, u.name)) + " ", 1),
190
+ u.control.tooltip ? (n(), g(w, {
186
191
  key: 0,
187
192
  trigger: "hover",
188
193
  placement: "top",
@@ -193,13 +198,13 @@ const Re = {
193
198
  Ve
194
199
  ]),
195
200
  default: m(() => [
196
- L("pre", null, B(u.control.tooltip.content), 1)
201
+ B("pre", null, M(u.control.tooltip.content), 1)
197
202
  ]),
198
203
  _: 2
199
204
  }, 1032, ["title"])) : E("", !0)
200
205
  ]),
201
206
  default: m(() => [
202
- k(K, {
207
+ C(K, {
203
208
  schema: e(V),
204
209
  table: e(t),
205
210
  field: u,
@@ -219,20 +224,20 @@ const Re = {
219
224
  }, 1024))), 256))
220
225
  ])
221
226
  ], 2))), 256))
222
- ], 512)) : (n(), v("div", Re, B(e(Ce)("common.no_data")), 1)),
223
- e(t).main ? E("", !0) : (n(), g(e(we), { key: 3 }, {
227
+ ], 512)) : (n(), v("div", Re, M(e(ke)("common.no_data")), 1)),
228
+ e(t).main ? E("", !0) : (n(), g(e(xe), { key: 3 }, {
224
229
  left: m(() => [
225
230
  (n(), g(be(e(pe)), {
226
- module: e(O),
231
+ module: e(L),
227
232
  set: e(c),
228
233
  table: e(t),
229
- selection: e(C),
234
+ selection: e(k),
230
235
  onAdd: e(le),
231
236
  onRemove: e(te)
232
237
  }, null, 40, ["module", "set", "table", "selection", "onAdd", "onRemove"]))
233
238
  ]),
234
239
  default: m(() => [
235
- k(y, {
240
+ C(y, {
236
241
  background: "",
237
242
  layout: "total, prev, pager, next, jumper",
238
243
  "current-page": e(p).page,
@@ -248,5 +253,5 @@ const Re = {
248
253
  }
249
254
  });
250
255
  export {
251
- Ie as default
256
+ He as default
252
257
  };
@@ -0,0 +1,99 @@
1
+ import { defineComponent as V, toRefs as $, ref as r, onMounted as A, watch as E, unref as t, 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-C1iALE1f.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-Beb5UD_S.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 a = s.getPath(d.value), l = s.getPath(e);
21
+ return a != l;
22
+ }, O = (e = null) => {
23
+ _(e);
24
+ }, R = () => {
25
+ }, S = (e) => {
26
+ var l;
27
+ let a = Q(e.module.type, e.module.name);
28
+ W.setTitle(a, 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), c.value = (l = v.value) == null ? void 0 : l[0], m.value = c.value.layouts[0], p.value = h.getConditionForm(v.value, u.value.query.condition);
29
+ }, U = (e = null, a = null) => {
30
+ let l = e ?? u.value.query, n = s.getUrl(u.value.path, l);
31
+ g("load", n, !1, (T) => {
32
+ a && a(T);
33
+ });
34
+ }, i = (e, a) => {
35
+ g("navigate", e, a);
36
+ }, w = async (e) => {
37
+ let a = u.value.query;
38
+ a.page = 1;
39
+ let l = X.pure(p.value);
40
+ a.condition = b.encode(l);
41
+ let n = s.getUrl(u.value.path, a);
42
+ n == d.value ? U(a, e) : i(n, e);
43
+ }, B = (e, a) => {
44
+ let l = u.value.query;
45
+ l.order_by = b.encode(JSON.stringify(e));
46
+ let n = s.getUrl(u.value.path, l);
47
+ i(n, a);
48
+ }, D = (e, a = null) => {
49
+ let l = u.value.query;
50
+ l.page = e;
51
+ let n = s.getUrl(u.value.path, l);
52
+ i(n, a);
53
+ }, H = (e, a = null) => {
54
+ let l = u.value.query;
55
+ l.size = e;
56
+ let n = s.getUrl(u.value.path, l);
57
+ i(n, a);
58
+ }, j = (e) => {
59
+ m.value = c.value.layouts.find((a) => a.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, a) => {
67
+ if (!o.value || !o.value.keyboard)
68
+ return !1;
69
+ o.value.keyboard(e, a);
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, a) => t(m) ? (G(), I(Y, {
76
+ key: 0,
77
+ ref_key: "pagingRef",
78
+ ref: o,
79
+ module: t(f),
80
+ next: t(x),
81
+ set: t(C),
82
+ schema: t(v),
83
+ table: t(c),
84
+ layout: t(m),
85
+ "search-data": t(p),
86
+ onNavigate: t(i),
87
+ onSort: t(B),
88
+ onSearch: t(w),
89
+ onPageChange: t(D),
90
+ onSizeChange: t(H),
91
+ onLayoutChange: t(j),
92
+ onSucceed: t(O),
93
+ onClose: t(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
+ };