halo-pc 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. package/dist/{Article-7pMF1N-k.js → Article-BbJTCOkX.js} +66 -62
  2. package/dist/{Autocomplete-CEjjKXwo.js → Autocomplete-A0m1RW7z.js} +1 -1
  3. package/dist/Autocomplete-C3d_yunJ.js +52 -0
  4. package/dist/Autocomplete-H0_xgWsN.js +53 -0
  5. package/dist/{CSharp-DatSqpip.js → CSharp-Bwl97exE.js} +1 -1
  6. package/dist/{Calender-B1HoFiQg.js → Calender-C3vbVYIN.js} +1 -1
  7. package/dist/Callback-oU2ap8v9.js +24 -0
  8. package/dist/Cascader-ClSabtOx.js +45 -0
  9. package/dist/Cascader-DRErYyH6.js +84 -0
  10. package/dist/{Checkbox-B6IkMrWB.js → Checkbox-BJS0a1NT.js} +1 -1
  11. package/dist/{Code-SZuIImtp.js → Code-9I77CMRV.js} +1 -1
  12. package/dist/Code-B2DrYXDa.js +58 -0
  13. package/dist/Code-BgqGTky1.js +40 -0
  14. package/dist/Code-Cv1pm18C.js +4 -0
  15. package/dist/Code.vue_vue_type_style_index_0_lang-IHZepbsi.js +63 -0
  16. package/dist/Column-Dgs0SdWX.js +71 -0
  17. package/dist/Comment-Cy6lpmqk.js +102 -0
  18. package/dist/Compare-5cTiHEdo.js +30 -0
  19. package/dist/Compare-CWeuLw9n.js +60 -0
  20. package/dist/Copy-C6WEtRhC.js +47 -0
  21. package/dist/Custom-QDHQJoxC.js +53 -0
  22. package/dist/{DataExport-I9iG4oEo.js → DataExport-BHh7NvbT.js} +1 -1
  23. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BgKetUGv.js → DataExport.vue_vue_type_script_setup_true_lang-C9t5j7Gi.js} +37 -33
  24. package/dist/{DataImport-2KtOy-of.js → DataImport-CtBsCyNb.js} +1 -1
  25. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DgzKdC2g.js → DataImport.vue_vue_type_script_setup_true_lang-bI0HP38b.js} +59 -55
  26. package/dist/{Date-PERpDDy_.js → Date-IV1FwqTW.js} +1 -1
  27. package/dist/{DateRange-BaxHMjcx.js → DateRange-IWmDLSuy.js} +11 -7
  28. package/dist/{DateTime-B7gHENiu.js → DateTime-Di6sr-tq.js} +1 -1
  29. package/dist/{DateTimeRange-yI9Y2qgC.js → DateTimeRange-BNUGYgWf.js} +14 -10
  30. package/dist/{Daterange-DqvBvK-B.js → Daterange-rrlMT4tD.js} +17 -13
  31. package/dist/{Decimal-AXwMeqBW.js → Decimal-D9TVQqyS.js} +1 -1
  32. package/dist/Delete-B-k4PTWk.js +59 -0
  33. package/dist/{Detail-aWACqVnM.js → Detail-HAblGKTY.js} +20 -16
  34. package/dist/Dictionary-BUmany6B.js +59 -0
  35. package/dist/{File--NsXL6XX.js → File-MF1QgEQX.js} +45 -41
  36. package/dist/{Image-CuwfJLKW.js → Image-Dps_vfcZ.js} +1 -1
  37. package/dist/{Index-BNOFdDjW.js → Index-7cTFT9Xb.js} +19 -15
  38. package/dist/{Index-CQ9S2R9b.js → Index-C_mfWEwr.js} +1 -1
  39. package/dist/Index-Cgets8DK.js +4 -0
  40. package/dist/Index-DGnHsBz4.js +4 -0
  41. package/dist/{Index-Cewv4-Ik.js → Index-DupYRMRj.js} +45 -41
  42. package/dist/{Index-DA2wAurY.js → Index-XBFHPLbK.js} +1 -1
  43. package/dist/{Index-Cj79dCuO.js → Index-hgpg_5ma.js} +1 -1
  44. package/dist/{Index.vue_vue_type_script_setup_true_lang-D6_VOLX-.js → Index.vue_vue_type_script_setup_true_lang-C1Bw7evJ.js} +15 -11
  45. package/dist/{Index.vue_vue_type_script_setup_true_lang-DjiARPz7.js → Index.vue_vue_type_script_setup_true_lang-yOf2ubuo.js} +16 -12
  46. package/dist/{Index.vue_vue_type_style_index_0_lang-DApNHvNX.js → Index.vue_vue_type_style_index_0_lang-DBERwM_v.js} +31 -27
  47. package/dist/{Install-BWdNbtVx.js → Install-A9qs4Vg-.js} +20 -16
  48. package/dist/{Int-nmVkFRqG.js → Int-B3L54Gcc.js} +16 -12
  49. package/dist/List-Om6OdbbR.js +76 -0
  50. package/dist/Maintaince-CrfEX-5B.js +19 -0
  51. package/dist/{Markdown-DD6ufwhM.js → Markdown-wcGRlabe.js} +1 -1
  52. package/dist/{Month-BqbTFGgo.js → Month-C1tCQKvO.js} +1 -1
  53. package/dist/{Normal-f4HN1ciI.js → Normal-HoU_elKy.js} +51 -47
  54. package/dist/Paging-C_StoYuZ.js +94 -0
  55. package/dist/QueryApi-BrYyIwqV.js +18 -0
  56. package/dist/{Racebar-Bou-XNCm.js → Racebar-BXuP1N9F.js} +27 -23
  57. package/dist/{Radio-BmikzeCv.js → Radio-D6W9guyM.js} +1 -1
  58. package/dist/{Register-CgbRZH9W.js → Register-DGhIjRDD.js} +79 -75
  59. package/dist/{RichText-BeK3zZam.js → RichText-B3Br1uzj.js} +22 -18
  60. package/dist/{SearchFooter-C4PeAkaR.js → SearchFooter-D3-9GTr1.js} +1 -1
  61. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BaO7vJ-n.js → SearchFooter.vue_vue_type_style_index_0_lang-DP32ZjvQ.js} +1 -1
  62. package/dist/{SearchForm-C7fZiQaW.js → SearchForm-rWozLa4B.js} +1 -1
  63. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BumSLQVy.js → SearchForm.vue_vue_type_style_index_0_lang-F2we6KP-.js} +30 -26
  64. package/dist/{Select-C1-NVZdG.js → Select-64nQiHNA.js} +21 -17
  65. package/dist/{Select-DR5fQH0d.js → Select-CAmBUDp3.js} +40 -36
  66. package/dist/{Select-DlbQvxQu.js → Select-qCdhL7vC.js} +1 -1
  67. package/dist/{Single-BLRyJKB-.js → Single-Bnrt5Hxb.js} +81 -77
  68. package/dist/{Statistic-BOtmYiRA.js → Statistic-BTbwlH9l.js} +35 -31
  69. package/dist/{Stock-Dnwof0R1.js → Stock-Br_02hsI.js} +1 -1
  70. package/dist/{Stock-BqQ6lM5B.js → Stock-DbExd680.js} +1 -1
  71. package/dist/{Stock.vue_vue_type_style_index_0_lang-Az2jx3JN.js → Stock.vue_vue_type_style_index_0_lang-MTvhmHlz.js} +26 -22
  72. package/dist/{Switch-DuMBV0AX.js → Switch-J2GIv4Wa.js} +1 -1
  73. package/dist/{Table-Be-rPXr_.js → Table-DjBx2UGm.js} +68 -64
  74. package/dist/{Table-RMVT0hlE.js → Table-X4vTHlpm.js} +52 -48
  75. package/dist/{Text-DSXRKFPa.js → Text-BFZc81F2.js} +1 -1
  76. package/dist/Text.vue_vue_type_style_index_0_lang-Cw7QQbFk.js +56 -0
  77. package/dist/TextLink-C_lFWaZv.js +66 -0
  78. package/dist/{Textarea-3ypOGE1S.js → Textarea-Dw_qLc3Y.js} +1 -1
  79. package/dist/{Timeline-CLezCcgQ.js → Timeline-DaaRGmGd.js} +21 -17
  80. package/dist/Tree-CDD2Nd6q.js +121 -0
  81. package/dist/{Tree-B6RBRT1y.js → Tree-Cmp10DWw.js} +85 -81
  82. package/dist/TreeNode-BM8-GyIc.js +38 -0
  83. package/dist/{Update-Dc3Tdkn0.js → Update-PffbXMXH.js} +17 -13
  84. package/dist/Upload-F6HXe76H.js +71 -0
  85. package/dist/Upload-kwwpaDe6.js +147 -0
  86. package/dist/{UploadApi-Bs507D0w.js → UploadApi-D2W_aGKA.js} +8 -3
  87. package/dist/{Year-DKxOQNyS.js → Year-Dr5ST0Pk.js} +1 -1
  88. package/dist/main-B8RC13GR.js +6528 -0
  89. package/dist/main.js +113 -113
  90. package/dist/style.css +1 -1
  91. package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
  92. package/dist/{vendor-clipboard-DjQPoCBJ.js → vendor-clipboard-BqjesuiY.js} +130 -110
  93. package/dist/vendor-clone-BPtCWdXG.js +134 -0
  94. package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
  95. package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
  96. package/dist/{vendor-intro.js-DwWqhM1v.js → vendor-intro.js-CZkClzQO.js} +1 -1
  97. package/dist/vendor-moment-h96o7c8I.js +2578 -0
  98. package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
  99. package/dist/vendor-state-local-CEworIRt.js +131 -0
  100. package/dist/vendor-underscore-DVTek3G4.js +1070 -0
  101. package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
  102. package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
  103. package/esm/coms/controls/Text.vue.d.ts +1 -1
  104. package/esm/coms/globals/HaMenu.vue.d.ts +1 -1
  105. package/esm/coms/globals/HaWindow.vue.d.ts +1 -1
  106. package/esm/coms/pages/Delete.vue.d.ts +2 -2
  107. package/esm/coms/pages/Single.vue.d.ts +2 -2
  108. package/esm/coms/pagings/Article.vue.d.ts +2 -2
  109. package/esm/coms/pagings/DataExport.vue.d.ts +2 -2
  110. package/esm/coms/pagings/DataImport.vue.d.ts +2 -2
  111. package/esm/coms/pagings/Index.vue.d.ts +2 -2
  112. package/esm/coms/pagings/SearchFooter.vue.d.ts +1 -1
  113. package/esm/coms/pagings/Table.vue.d.ts +2 -2
  114. package/esm/main.d.ts +4 -3
  115. package/esm/services/ServiceFactory.d.ts +3 -0
  116. package/esm/types/PcOptions.d.ts +18 -0
  117. package/esm/types/index.d.ts +2 -0
  118. package/package.json +2 -2
  119. package/dist/Autocomplete-DqKo5NiJ.js +0 -49
  120. package/dist/Autocomplete-K5ipzchR.js +0 -48
  121. package/dist/Callback-PyCjejiv.js +0 -20
  122. package/dist/Cascader-B9lLRKjA.js +0 -80
  123. package/dist/Cascader-BNvlqc5t.js +0 -41
  124. package/dist/Code-BdK547kD.js +0 -4
  125. package/dist/Code-DfFF-84i.js +0 -36
  126. package/dist/Code-LFQVJotC.js +0 -54
  127. package/dist/Code.vue_vue_type_style_index_0_lang-nX113anq.js +0 -59
  128. package/dist/Column-DVjYrrr7.js +0 -67
  129. package/dist/Comment-Do7Mjpjr.js +0 -98
  130. package/dist/Compare-C_iDn27Q.js +0 -56
  131. package/dist/Compare-CrX3yfD4.js +0 -26
  132. package/dist/Copy-_sbdQvHJ.js +0 -43
  133. package/dist/Custom-DarpQFG8.js +0 -49
  134. package/dist/Delete-BY3vAVWa.js +0 -55
  135. package/dist/Dictionary-DpQuFYQ5.js +0 -55
  136. package/dist/Index-B_a_HzsB.js +0 -4
  137. package/dist/Index-Cx2J_P37.js +0 -4
  138. package/dist/List-BjdY1rMk.js +0 -72
  139. package/dist/Maintaince-DzYzyrAc.js +0 -15
  140. package/dist/Paging-BMPtLi8P.js +0 -90
  141. package/dist/QueryApi-CbP5cCyH.js +0 -13
  142. package/dist/Text.vue_vue_type_style_index_0_lang-CeDusQl6.js +0 -52
  143. package/dist/TextLink-BZW-y_FS.js +0 -62
  144. package/dist/Tree-CLpCeirT.js +0 -117
  145. package/dist/TreeNode-C16N8jqm.js +0 -34
  146. package/dist/Upload-DvWyjK3a.js +0 -143
  147. package/dist/Upload-SEu1V1yX.js +0 -67
  148. package/dist/main-QtNG6p7a.js +0 -16673
  149. package/dist/vendor-pinia-yrN6kSxh.js +0 -861
  150. package/dist/vendor-vue-demi-CIhrFbpB.js +0 -17
@@ -1,9 +1,13 @@
1
- import { defineComponent as E, defineAsyncComponent as I, toRefs as z, ref as A, computed as h, resolveComponent as v, openBlock as r, createElementBlock as u, Fragment as b, unref as e, createBlock as d, withCtx as s, createElementVNode as g, createVNode as _, resolveDynamicComponent as F, toDisplayString as k, createTextVNode as U, createCommentVNode as $ } from "vue";
2
- import { B as j } from "./main-QtNG6p7a.js";
3
- const q = { class: "text-popover" }, G = {
1
+ import { defineComponent as E, defineAsyncComponent as I, toRefs as z, ref as A, computed as h, resolveComponent as v, openBlock as n, createElementBlock as u, Fragment as b, unref as e, createBlock as d, withCtx as s, createElementVNode as g, createVNode as _, resolveDynamicComponent as F, toDisplayString as k, createTextVNode as H, createCommentVNode as U } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { S as $ } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ const j = { class: "text-popover" }, q = {
4
8
  key: 2,
5
9
  class: "control-operation"
6
- }, K = /* @__PURE__ */ E({
10
+ }, P = /* @__PURE__ */ E({
7
11
  __name: "Index",
8
12
  props: {
9
13
  schema: {},
@@ -15,26 +19,26 @@ const q = { class: "text-popover" }, G = {
15
19
  },
16
20
  emits: ["submit", "change"],
17
21
  setup(w, { emit: x }) {
18
- let f = I(() => import("./Index-BNOFdDjW.js")), C = x, V = w, { schema: a, table: c, field: t, set: i, row: l, config: o } = z(V), m = A(), N = () => {
19
- }, R = (n) => {
20
- C("submit", n);
22
+ let p = I(() => import("./Index-7cTFT9Xb.js")), C = x, V = w, { schema: a, table: c, field: t, set: i, row: l, config: o } = z(V), m = A(), N = () => {
23
+ }, R = (r) => {
24
+ C("submit", r);
21
25
  }, y = h(() => {
22
- let n = t.value.control.type;
23
- return o.value && o.value.control && o.value.control.type ? o.value.control.type : n;
24
- }), B = h(() => `control-${j.getDashName(y.value)}`);
25
- return (n, p) => {
26
- const D = v("el-popover"), S = v("el-link");
27
- return r(), u(b, null, [
28
- e(t).control.textualize ? (r(), u(b, { key: 0 }, [
29
- e(t).control.popover ? (r(), d(D, {
26
+ let r = t.value.control.type;
27
+ return o.value && o.value.control && o.value.control.type ? o.value.control.type : r;
28
+ }), S = h(() => `control-${$.getDashName(y.value)}`);
29
+ return (r, f) => {
30
+ const B = v("el-popover"), D = v("el-link");
31
+ return n(), u(b, null, [
32
+ e(t).control.textualize ? (n(), u(b, { key: 0 }, [
33
+ e(t).control.popover ? (n(), d(B, {
30
34
  key: 0,
31
35
  trigger: "hover",
32
36
  placement: "top",
33
37
  width: e(t).control.popover.width
34
38
  }, {
35
39
  reference: s(() => [
36
- g("div", q, [
37
- _(e(f), {
40
+ g("div", j, [
41
+ _(e(p), {
38
42
  ref_key: "controlRef",
39
43
  ref: m,
40
44
  schema: e(a),
@@ -47,7 +51,7 @@ const q = { class: "text-popover" }, G = {
47
51
  ])
48
52
  ]),
49
53
  default: s(() => [
50
- _(e(f), {
54
+ _(e(p), {
51
55
  ref_key: "controlRef",
52
56
  ref: m,
53
57
  schema: e(a),
@@ -59,7 +63,7 @@ const q = { class: "text-popover" }, G = {
59
63
  }, null, 8, ["schema", "table", "field", "set", "row", "config"])
60
64
  ]),
61
65
  _: 1
62
- }, 8, ["width"])) : (r(), d(e(f), {
66
+ }, 8, ["width"])) : (n(), d(e(p), {
63
67
  key: 1,
64
68
  ref_key: "controlRef",
65
69
  ref: m,
@@ -70,7 +74,7 @@ const q = { class: "text-popover" }, G = {
70
74
  row: e(l),
71
75
  config: e(o)
72
76
  }, null, 8, ["schema", "table", "field", "set", "row", "config"]))
73
- ], 64)) : (r(), d(F(e(B)), {
77
+ ], 64)) : (n(), d(F(e(S)), {
74
78
  key: 1,
75
79
  ref_key: "controlRef",
76
80
  ref: m,
@@ -82,28 +86,28 @@ const q = { class: "text-popover" }, G = {
82
86
  onSubmit: e(R),
83
87
  onClear: e(N),
84
88
  modelValue: e(l)[e(t).name],
85
- "onUpdate:modelValue": p[0] || (p[0] = (T) => e(l)[e(t).name] = T)
89
+ "onUpdate:modelValue": f[0] || (f[0] = (T) => e(l)[e(t).name] = T)
86
90
  }, {
87
91
  default: s(() => [
88
- g("div", null, k(n.t("common.unsupported_control", e(y))), 1)
92
+ g("div", null, k(r.t("common.unsupported_control", e(y))), 1)
89
93
  ]),
90
94
  _: 1
91
95
  }, 40, ["schema", "table", "field", "set", "row", "onSubmit", "onClear", "modelValue"])),
92
- e(t).operation ? (r(), u("div", G, [
93
- _(S, {
96
+ e(t).operation ? (n(), u("div", q, [
97
+ _(D, {
94
98
  type: "primary",
95
99
  underline: !1
96
100
  }, {
97
101
  default: s(() => [
98
- U(k(e(t).operation.name), 1)
102
+ H(k(e(t).operation.name), 1)
99
103
  ]),
100
104
  _: 1
101
105
  })
102
- ])) : $("", !0)
106
+ ])) : U("", !0)
103
107
  ], 64);
104
108
  };
105
109
  }
106
110
  });
107
111
  export {
108
- K as _
112
+ P as _
109
113
  };
@@ -1,13 +1,17 @@
1
- import { defineComponent as k, ref as m, onMounted as C, resolveComponent as r, openBlock as d, createBlock as f, unref as l, withCtx as t, createTextVNode as c, createVNode as a, createElementBlock as v, Fragment as M, renderList as N, createElementVNode as B, toDisplayString as x, createCommentVNode as T } from "vue";
2
- import { g as U, j as w } from "./main-QtNG6p7a.js";
1
+ import { defineComponent as k, ref as m, onMounted as C, resolveComponent as r, openBlock as p, createBlock as f, unref as l, withCtx as t, createTextVNode as c, createVNode as a, createElementBlock as v, Fragment as M, renderList as N, createElementVNode as h, toDisplayString as x, createCommentVNode as B } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { o as T, h as U } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
3
7
  import "vue-router";
4
- import "./vendor-intro.js-DwWqhM1v.js";
5
- const E = { class: "option-text" }, O = {
8
+ import "./vendor-intro.js-CZkClzQO.js";
9
+ const w = { class: "option-text" }, E = {
6
10
  key: 0,
7
11
  class: "option-suffix"
8
- }, F = /* @__PURE__ */ k({
12
+ }, A = /* @__PURE__ */ k({
9
13
  __name: "Install",
10
- setup(R) {
14
+ setup(O) {
11
15
  let o = m({ name: null, type: "SqlServer", conn: null }), u = m(!1), i = m(), y = m([
12
16
  { value: "SqlServer", text: "SqlServer" },
13
17
  { value: "MySql", text: "MySql" },
@@ -19,7 +23,7 @@ const E = { class: "option-text" }, O = {
19
23
  u.value = !0, i.value.validate((_, n) => {
20
24
  if (!_)
21
25
  return u.value = !1, !1;
22
- w.post("/app/install", o.value).then(({ data: p }) => {
26
+ U.post("/app/install", o.value).then(({ data: d }) => {
23
27
  }).finally(() => {
24
28
  u.value = !1;
25
29
  });
@@ -27,8 +31,8 @@ const E = { class: "option-text" }, O = {
27
31
  };
28
32
  return C(() => {
29
33
  }), (_, n) => {
30
- const p = r("el-input"), s = r("el-form-item"), g = r("el-option"), S = r("el-select"), q = r("el-button"), b = r("el-form");
31
- return d(), f(l(U), {
34
+ const d = r("el-input"), s = r("el-form-item"), S = r("el-option"), g = r("el-select"), q = r("el-button"), b = r("el-form");
35
+ return p(), f(l(T), {
32
36
  class: "ha-install",
33
37
  title: "数据库信息"
34
38
  }, {
@@ -49,7 +53,7 @@ const E = { class: "option-text" }, O = {
49
53
  rules: [{ required: !0, message: "数据库名不能为空" }]
50
54
  }, {
51
55
  default: t(() => [
52
- a(p, {
56
+ a(d, {
53
57
  type: "text",
54
58
  modelValue: l(o).name,
55
59
  "onUpdate:modelValue": n[0] || (n[0] = (e) => l(o).name = e)
@@ -63,19 +67,19 @@ const E = { class: "option-text" }, O = {
63
67
  rules: [{ required: !0, message: "数据库类型不能为空" }]
64
68
  }, {
65
69
  default: t(() => [
66
- a(S, {
70
+ a(g, {
67
71
  modelValue: l(o).type,
68
72
  "onUpdate:modelValue": n[1] || (n[1] = (e) => l(o).type = e)
69
73
  }, {
70
74
  default: t(() => [
71
- (d(!0), v(M, null, N(l(y), (e) => (d(), f(g, {
75
+ (p(!0), v(M, null, N(l(y), (e) => (p(), f(S, {
72
76
  value: e.value,
73
77
  label: e.text + (e.value ? "(" + e.value + ")" : ""),
74
78
  key: `${e.value}`
75
79
  }, {
76
80
  default: t(() => [
77
- B("span", E, x(e.text), 1),
78
- e.value ? (d(), v("span", O, "(" + x(e.value) + ")", 1)) : T("", !0)
81
+ h("span", w, x(e.text), 1),
82
+ e.value ? (p(), v("span", E, "(" + x(e.value) + ")", 1)) : B("", !0)
79
83
  ]),
80
84
  _: 2
81
85
  }, 1032, ["value", "label"]))), 128))
@@ -91,7 +95,7 @@ const E = { class: "option-text" }, O = {
91
95
  rules: [{ required: !0, message: "数据库连接串不能为空" }]
92
96
  }, {
93
97
  default: t(() => [
94
- a(p, {
98
+ a(d, {
95
99
  type: "textarea",
96
100
  modelValue: l(o).conn,
97
101
  "onUpdate:modelValue": n[2] || (n[2] = (e) => l(o).conn = e)
@@ -124,5 +128,5 @@ const E = { class: "option-text" }, O = {
124
128
  }
125
129
  });
126
130
  export {
127
- F as default
131
+ A as default
128
132
  };
@@ -1,6 +1,10 @@
1
- import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as h, createBlock as g, unref as e, withKeys as v, isRef as y } from "vue";
2
- import { B } from "./main-QtNG6p7a.js";
3
- const C = /* @__PURE__ */ c({
1
+ import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as g, createBlock as h, unref as e, withKeys as v, isRef as y } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { S as K } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ const H = /* @__PURE__ */ c({
4
8
  __name: "Int",
5
9
  props: {
6
10
  schema: {},
@@ -11,31 +15,31 @@ const C = /* @__PURE__ */ c({
11
15
  modelValue: {}
12
16
  },
13
17
  emits: ["submit", "change", "update:modelValue"],
14
- setup(r, { emit: i }) {
15
- let o = i, d = r, { table: s, field: n, set: K, modelValue: a } = f(d), p = () => {
18
+ setup(i, { emit: u }) {
19
+ let o = u, p = i, { table: s, field: n, set: k, modelValue: r } = f(p), d = () => {
16
20
  o("submit");
17
21
  }, t = _({
18
22
  get() {
19
- if (B.isNumber(a.value))
20
- return a.value;
23
+ if (K.isNumber(r.value))
24
+ return r.value;
21
25
  },
22
26
  set(l) {
23
27
  o("update:modelValue", l), o("change", l);
24
28
  }
25
29
  });
26
- return (l, u) => {
30
+ return (l, a) => {
27
31
  const b = V("el-input-number");
28
- return h(), g(b, {
32
+ return g(), h(b, {
29
33
  "aria-label": l.t_field_placeholder(e(s).name, e(n).name),
30
34
  "controls-position": "right",
31
35
  disabled: e(n).control.readonly,
32
- onKeyup: v(e(p), ["enter", "native"]),
36
+ onKeyup: v(e(d), ["enter", "native"]),
33
37
  modelValue: e(t),
34
- "onUpdate:modelValue": u[0] || (u[0] = (m) => y(t) ? t.value = m : t = m)
38
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => y(t) ? t.value = m : t = m)
35
39
  }, null, 8, ["aria-label", "disabled", "onKeyup", "modelValue"]);
36
40
  };
37
41
  }
38
42
  });
39
43
  export {
40
- C as default
44
+ H as default
41
45
  };
@@ -0,0 +1,76 @@
1
+ import { defineComponent as U, toRefs as j, ref as r, watch as E, openBlock as F, createBlock as H, resolveDynamicComponent as I, unref as t, withCtx as T, createElementVNode as V, toDisplayString as $ } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { u as A, g as u, P as G, j as v } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ const J = { class: "not-support" }, Z = /* @__PURE__ */ U({
8
+ __name: "List",
9
+ props: {
10
+ base: {},
11
+ route: {},
12
+ url: {}
13
+ },
14
+ emits: ["load", "navigate"],
15
+ setup(_, { expose: b, emit: P }) {
16
+ let d = P, k = _, { url: h, base: p, route: s } = j(k), f = r(), i = r(), n = r(), y = r(), g = r(), o = r(), c = r(), { t_module: q } = A(), C = (e) => {
17
+ let l = u.getPath(e), a = u.getPath(h.value);
18
+ return l != a;
19
+ }, R = (e) => {
20
+ let l = u.getPath(h.value), a = u.getPath(e);
21
+ return l != a;
22
+ }, x = (e) => {
23
+ var a;
24
+ let l = q(e.module.type, e.module.name);
25
+ G.setTitle(l, e.module.env), f.value = e.module, i.value = v.expandSchema(e.schema), n.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, s.value.query.condition);
26
+ }, m = (e = null, l = null) => {
27
+ let a = e ?? s.value.query, B = u.getUrl(s.value.path, a);
28
+ d("load", B, !1, l);
29
+ }, D = (e) => {
30
+ m(null, e);
31
+ }, w = (e) => {
32
+ d("navigate", e);
33
+ }, z = (e) => {
34
+ let l = s.value.query;
35
+ l.condition = u.base64(c.value), m(l, e);
36
+ }, S = () => {
37
+ m();
38
+ }, L = (e, l) => {
39
+ if (!o.value || !o.value.keyboard)
40
+ return !1;
41
+ o.value.keyboard(e, l);
42
+ }, N = (e) => {
43
+ if (!o.value || !o.value.resize)
44
+ return !1;
45
+ o.value.resize(e);
46
+ };
47
+ return (() => {
48
+ x(p.value.data);
49
+ })(), E(() => p.value, (e) => {
50
+ x(e.data);
51
+ }), b({ shouldLoad: C, shouldSpin: R, refresh: S, keyboard: L, resize: N }), (e, l) => (F(), H(I(`list-${t(n).layouts[0].type.toLowerCase()}`), {
52
+ ref_key: "listRef",
53
+ ref: o,
54
+ route: t(s),
55
+ module: t(f),
56
+ schema: t(i),
57
+ table: t(n),
58
+ layout: t(n).layouts[0],
59
+ next: t(y),
60
+ set: t(g),
61
+ "search-data": t(c),
62
+ onSucceed: t(D),
63
+ onSearch: t(z),
64
+ onNavigate: t(w),
65
+ onRefresh: t(S)
66
+ }, {
67
+ default: T(() => [
68
+ V("div", J, "未支持的列表布局方式:" + $(t(n).layouts[0].type), 1)
69
+ ]),
70
+ _: 1
71
+ }, 40, ["route", "module", "schema", "table", "layout", "next", "set", "search-data", "onSucceed", "onSearch", "onNavigate", "onRefresh"]));
72
+ }
73
+ });
74
+ export {
75
+ Z as default
76
+ };
@@ -0,0 +1,19 @@
1
+ import { defineComponent as o, openBlock as i, createElementBlock as n, createElementVNode as t, toDisplayString as s, unref as r } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { d as c } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
7
+ const a = { class: "maintenance" }, m = /* @__PURE__ */ t("div", { class: "title" }, "系统维护中", -1), p = { class: "description" }, k = /* @__PURE__ */ o({
8
+ __name: "Maintaince",
9
+ setup(_) {
10
+ let e = c();
11
+ return (d, l) => (i(), n("div", a, [
12
+ m,
13
+ t("div", p, s(r(e)), 1)
14
+ ]));
15
+ }
16
+ });
17
+ export {
18
+ k as default
19
+ };
@@ -10,7 +10,7 @@ const h = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let r = i(() => import("./Text-DSXRKFPa.js")), s = a, { schema: m, table: n, field: d, set: f, row: p, modelValue: l } = c(s);
13
+ let r = i(() => import("./Text-BFZc81F2.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-DSXRKFPa.js")), m = a, { schema: n, table: r, field: d, set: f, row: p, modelValue: l } = c(m);
13
+ let s = i(() => import("./Text-BFZc81F2.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,8 +1,12 @@
1
- import { defineComponent as he, toRefs as fe, ref as w, onMounted as ge, computed as z, watch as q, resolveComponent as _, openBlock as n, createElementBlock as v, normalizeClass as J, unref as e, createBlock as g, withCtx as m, Fragment as x, renderList as R, createVNode as C, createCommentVNode as E, toDisplayString as B, createElementVNode as L, normalizeStyle as _e, createTextVNode as be, resolveDynamicComponent as ye } from "vue";
2
- import { e as Ce, a as K, d as I, s as ke, p as Se, r as we } from "./main-QtNG6p7a.js";
1
+ import { defineComponent as he, toRefs as fe, ref as w, onMounted as ge, computed as z, watch as F, resolveComponent as _, openBlock as n, createElementBlock as v, normalizeClass as J, unref as e, createBlock as g, withCtx as m, Fragment as x, renderList as R, createVNode as C, createCommentVNode as E, toDisplayString as M, createElementVNode as B, normalizeStyle as _e, createTextVNode as be, resolveDynamicComponent as ye } from "vue";
2
+ import "./vendor-@monaco-editor-DKC4UNw_.js";
3
+ import "./vendor-moment-h96o7c8I.js";
4
+ import "xlsx-js-style";
5
+ import { l as Ce, C as K, j as q, x as ke, w as Se, A as we } from "./main-B8RC13GR.js";
6
+ import "./vendor-crypto-js-ftX_aBC-.js";
3
7
  import "vue-router";
4
- import "./vendor-intro.js-DwWqhM1v.js";
5
- import { _ as P } from "./Index.vue_vue_type_style_index_0_lang-DApNHvNX.js";
8
+ import "./vendor-intro.js-CZkClzQO.js";
9
+ import { _ as P } from "./Index.vue_vue_type_style_index_0_lang-DBERwM_v.js";
6
10
  const xe = {
7
11
  key: 1,
8
12
  class: "ha-empty"
@@ -13,7 +17,7 @@ const xe = {
13
17
  }, $e = {
14
18
  key: 0,
15
19
  class: "normal-selection"
16
- }, ze = { class: "normal-content" }, Ee = /* @__PURE__ */ L("i", { class: "fa fa-question-circle icon-question" }, null, -1), Be = /* @__PURE__ */ he({
20
+ }, ze = { class: "normal-content" }, Ee = /* @__PURE__ */ B("i", { class: "fa fa-question-circle icon-question" }, null, -1), Le = /* @__PURE__ */ he({
17
21
  __name: "Normal",
18
22
  props: {
19
23
  route: {},
@@ -27,27 +31,27 @@ const xe = {
27
31
  },
28
32
  emits: ["change", "submit"],
29
33
  setup(Q, { expose: U, emit: X }) {
30
- let M = X, Y = Q, { module: O, set: c, schema: V, table: t, layout: i, validateErrors: A } = fe(Y), p = w({ page: 1, count: c.value[t.value.name].length }), k = w([]), b = w(), j = w([]), H = w(), Z = Ce(), ee = (l) => {
34
+ let I = X, Y = Q, { module: L, set: i, schema: V, table: t, layout: c, validateErrors: O } = fe(Y), p = w({ page: 1, count: i.value[t.value.name].length }), k = w([]), b = w(), j = w([]), H = w(), Z = Ce(), ee = (l) => {
31
35
  j.value.push(l);
32
36
  }, le = () => {
33
37
  p.value.page = 1;
34
38
  }, te = () => {
35
39
  b.value = T(t.value);
36
- let l = I.getDefaultRow(t.value);
37
- c.value[t.value.name].push(l);
40
+ let l = q.getDefaultRow(t.value);
41
+ i.value[t.value.name].push(l);
38
42
  }, ae = () => {
39
- let l = c.value[t.value.name];
43
+ let l = i.value[t.value.name];
40
44
  k.value.forEach((a) => {
41
45
  l.splice(l.indexOf(a), 1);
42
46
  }), k.value = [], j.value.forEach((a) => {
43
47
  a.model && (a.model = !1);
44
48
  });
45
- }, N = (l) => c.value[t.value.name].indexOf(l), ne = (l, a, o, r, d) => {
46
- M("change", l, a, o, r, d);
49
+ }, N = (l) => i.value[t.value.name].indexOf(l), ne = (l, a, o, r, d) => {
50
+ I("change", l, a, o, r, d);
47
51
  }, oe = (l, a) => {
48
52
  l ? k.value.push(a) : we.remove(k.value, a);
49
53
  }, re = (l) => {
50
- M("submit", l);
54
+ I("submit", l);
51
55
  }, ue = (l, a = null) => {
52
56
  p.value.page = l;
53
57
  }, T = (l) => {
@@ -62,22 +66,22 @@ const xe = {
62
66
  }, W = (l) => {
63
67
  b.value = T(l);
64
68
  }, se = () => {
65
- D();
69
+ A();
66
70
  }, me = (l) => {
67
71
  W(l.schema[0]);
68
- }, D = () => {
72
+ }, A = () => {
69
73
  let l = H.value.clientWidth;
70
- i.value.column = Math.ceil(l / 500);
71
- }, ce = () => {
72
- D(), W(t.value);
74
+ c.value.column = Math.ceil(l / 500);
75
+ }, ie = () => {
76
+ A(), W(t.value);
73
77
  };
74
78
  ge(() => {
75
- ce();
79
+ ie();
76
80
  });
77
- let ie = z(() => K.splitRows(t.value.search, i.value.column)), G = z(() => {
81
+ let ce = z(() => K.splitRows(t.value.search, c.value.column)), G = z(() => {
78
82
  if (!b.value)
79
- return c.value[t.value.name];
80
- 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(($) => {
83
+ return i.value[t.value.name];
84
+ let l = b.value[t.value.name], a = (p.value.page - 1) * c.value.pageSize, o = p.value.page * c.value.pageSize - 1, r = i.value[t.value.name].filter(($) => {
81
85
  let f = !0;
82
86
  for (let S = 0; S < t.value.search.length; S++) {
83
87
  let y = t.value.search[S], s = $[y.name], h = l[y.name];
@@ -96,38 +100,38 @@ const xe = {
96
100
  return f;
97
101
  });
98
102
  return p.value.count = r.length, r.filter(($, f) => f >= a && f <= o);
99
- }), pe = z(() => I.getLines(t.value.show, i.value.column, (a) => a, (a) => a.colspan)), ve = z(() => {
103
+ }), pe = z(() => q.getLines(t.value.show, c.value.column, (a) => a, (a) => a.colspan)), ve = z(() => {
100
104
  let l = t.value.main ? `/${t.value.name}` : `/${V.value[0].name}/${t.value.name}`;
101
105
  return Z.getComponent(`${l}/update-child`, "partial", "update-child");
102
106
  });
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);
107
+ return F(() => i.value[t.value.name], (l, a) => {
108
+ let o = l.length, r = a.length, d = ke.pageCount(i.value[t.value.name].length, c.value.pageSize);
105
109
  (o > r || o < r && p.value.page > d) && (p.value.page = d);
106
- }, { deep: !0 }), q(A, (l, a) => {
110
+ }, { deep: !0 }), F(O, (l, a) => {
107
111
  let o = l.find((r) => r.table == t.value.name);
108
- o != null && (p.value.page = Math.ceil((o.index + 1) / i.value.pageSize));
109
- }), q(t, (l, a) => {
110
- D();
112
+ o != null && (p.value.page = Math.ceil((o.index + 1) / c.value.pageSize));
113
+ }), F(t, (l, a) => {
114
+ A();
111
115
  }), U({ resize: se, update: me }), (l, a) => {
112
116
  const o = _("el-form-item"), r = _("el-col"), d = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), S = _("el-popover"), y = _("el-pagination");
113
117
  return n(), v("div", {
114
118
  ref_key: "normalRef",
115
119
  ref: H,
116
- class: J(["ha-normal-layout", { draggable: e(i).sort }])
120
+ class: J(["ha-normal-layout", { draggable: e(c).sort }])
117
121
  }, [
118
122
  e(b) ? (n(), g($, {
119
123
  key: 0,
120
124
  class: "search-form"
121
125
  }, {
122
126
  default: m(() => [
123
- (n(!0), v(x, null, R(e(ie), (s, h) => (n(), g(d, {
127
+ (n(!0), v(x, null, R(e(ce), (s, h) => (n(), g(d, {
124
128
  gutter: 5,
125
129
  key: h
126
130
  }, {
127
131
  default: m(() => [
128
- (n(!0), v(x, null, R(s, (u, F) => (n(), g(r, {
129
- span: 24 / e(i).column,
130
- key: F
132
+ (n(!0), v(x, null, R(s, (u, D) => (n(), g(r, {
133
+ span: 24 / e(c).column,
134
+ key: D
131
135
  }, {
132
136
  default: m(() => [
133
137
  C(o, {
@@ -166,22 +170,22 @@ const xe = {
166
170
  onChange: (h) => e(oe)(h, s)
167
171
  }, null, 8, ["row", "onChange"])
168
172
  ])),
169
- L("div", ze, [
173
+ B("div", ze, [
170
174
  (n(!0), v(x, null, R(e(pe), (h) => (n(), g(d, null, {
171
175
  default: m(() => [
172
- (n(!0), v(x, null, R(h, ({ data: u, span: F }) => (n(), g(r, {
173
- span: F,
176
+ (n(!0), v(x, null, R(h, ({ data: u, span: D }) => (n(), g(r, {
177
+ span: D,
174
178
  key: `${e(t).name}.${u.name}`
175
179
  }, {
176
180
  default: m(() => [
177
181
  C(o, {
178
- style: _e(e(K).getStyle(u, e(O).type, e(i).type)),
182
+ style: _e(e(K).getStyle(u, e(L).type, e(c).type)),
179
183
  label: u.label,
180
- rules: e(I).getRules(e(A), e(t), u, e(N)(s)),
184
+ rules: e(q).getRules(e(O), e(t), u, e(N)(s)),
181
185
  prop: `[${e(t).name}][${e(N)(s)}][${u.name}]`
182
186
  }, {
183
187
  label: m(() => [
184
- be(B(l.t_field(e(t).name, u.name)) + " ", 1),
188
+ be(M(l.t_field(e(t).name, u.name)) + " ", 1),
185
189
  u.control.tooltip ? (n(), g(S, {
186
190
  key: 0,
187
191
  trigger: "hover",
@@ -193,7 +197,7 @@ const xe = {
193
197
  Ee
194
198
  ]),
195
199
  default: m(() => [
196
- L("pre", null, B(u.control.tooltip.content), 1)
200
+ B("pre", null, M(u.control.tooltip.content), 1)
197
201
  ]),
198
202
  _: 2
199
203
  }, 1032, ["title"])) : E("", !0)
@@ -203,10 +207,10 @@ const xe = {
203
207
  schema: e(V),
204
208
  table: e(t),
205
209
  field: u,
206
- set: e(c),
210
+ set: e(i),
207
211
  row: s,
208
212
  onSubmit: e(re),
209
- onChange: (de) => e(ne)(de, e(c), e(t), u, e(N)(s))
213
+ onChange: (de) => e(ne)(de, e(i), e(t), u, e(N)(s))
210
214
  }, null, 8, ["schema", "table", "field", "set", "row", "onSubmit", "onChange"])
211
215
  ]),
212
216
  _: 2
@@ -219,12 +223,12 @@ const xe = {
219
223
  }, 1024))), 256))
220
224
  ])
221
225
  ], 2))), 256))
222
- ], 512)) : (n(), v("div", xe, B(l.t("common.no_data")), 1)),
226
+ ], 512)) : (n(), v("div", xe, M(l.t("common.no_data")), 1)),
223
227
  e(t).main ? E("", !0) : (n(), g(e(Se), { key: 3 }, {
224
228
  left: m(() => [
225
229
  (n(), g(ye(e(ve)), {
226
- module: e(O),
227
- set: e(c),
230
+ module: e(L),
231
+ set: e(i),
228
232
  table: e(t),
229
233
  selection: e(k),
230
234
  onAdd: e(te),
@@ -236,7 +240,7 @@ const xe = {
236
240
  background: "",
237
241
  layout: "total, prev, pager, next, jumper",
238
242
  "current-page": e(p).page,
239
- "page-size": e(i).pageSize,
243
+ "page-size": e(c).pageSize,
240
244
  total: e(p).count,
241
245
  onCurrentChange: a[0] || (a[0] = (s) => e(ue)(s, e(t)))
242
246
  }, null, 8, ["current-page", "page-size", "total"])
@@ -248,5 +252,5 @@ const xe = {
248
252
  }
249
253
  });
250
254
  export {
251
- Be as default
255
+ Le as default
252
256
  };