halo-pc 1.0.36 → 1.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. package/dist/{Article-CSL7LnKj.js → Article-H_clf90b.js} +56 -59
  2. package/dist/{ArticleFooter-_CUySAZu.js → ArticleFooter-BLi4TNA7.js} +3 -4
  3. package/dist/Autocomplete-BF9x0F4f.js +49 -0
  4. package/dist/{Autocomplete-BTBqlR6B.js → Autocomplete-CcIzTPSr.js} +11 -12
  5. package/dist/{Autocomplete-CIRk6M3c.js → Autocomplete-DMm6oI1g.js} +1 -1
  6. package/dist/{CSharp-CMmXPS2i.js → CSharp-CZOchOE-.js} +1 -1
  7. package/dist/Calender-BoQV7bhA.js +10 -0
  8. package/dist/Callback-79Bw4RwY.js +20 -0
  9. package/dist/Cascader-D1Ou5OSg.js +41 -0
  10. package/dist/{Cascader-CeQ0jUxU.js → Cascader-DMhl98vw.js} +25 -26
  11. package/dist/{Checkbox-Fddc4Zgy.js → Checkbox-C6t6S7ii.js} +1 -1
  12. package/dist/{Checkbox--pNX7Slb.js → Checkbox-DtrXMDBR.js} +13 -14
  13. package/dist/Code-B8ISTTYK.js +54 -0
  14. package/dist/Code-BMlBvnqa.js +4 -0
  15. package/dist/{Code-C6A3DOQp.js → Code-DDacfgvl.js} +1 -1
  16. package/dist/Code-DIGn8Raz.js +36 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +57 -0
  18. package/dist/Column-DjA11efs.js +69 -0
  19. package/dist/{Comment-T5XWLthu.js → Comment-Ixu0gPk3.js} +29 -35
  20. package/dist/{Compare-KV2Q7Tb7.js → Compare-C1uq4lgK.js} +7 -8
  21. package/dist/{Compare-jjtb6UdZ.js → Compare-NN40QJWm.js} +9 -10
  22. package/dist/{Copy-Ck1HeTdy.js → Copy-BcfSvyWG.js} +11 -12
  23. package/dist/Custom-Dn9_vPuD.js +58 -0
  24. package/dist/{DataExport-BY1fIwSd.js → DataExport-DNGgWqsx.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Bv4Pc10r.js → DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js} +24 -25
  26. package/dist/{DataImport--xUxoWAq.js → DataImport-CI9eM5T1.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BhPGLJCz.js → DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js} +39 -40
  28. package/dist/{Date-C3H04U5q.js → Date-CGyzi8yX.js} +1 -1
  29. package/dist/{Date-DRk7BsnD.js → Date-CZGbZKjB.js} +8 -9
  30. package/dist/{DateRange-CICZ9gVp.js → DateRange-MbbkmZ_Y.js} +9 -10
  31. package/dist/{DateTime-DXHkaHtE.js → DateTime-DHrHmRLL.js} +1 -1
  32. package/dist/{DateTime-CjTCtAm4.js → DateTime-DqUOXGWH.js} +8 -9
  33. package/dist/{DateTimeRange-CuEYJBUE.js → DateTimeRange-DgXQkZLx.js} +11 -12
  34. package/dist/{Daterange-cmpjJVxl.js → Daterange-DLHJuRur.js} +8 -9
  35. package/dist/{Decimal-BzR8o8bv.js → Decimal-BUJuuvfr.js} +1 -1
  36. package/dist/{Delete-B2VzOnk8.js → Delete-BGMk0orl.js} +19 -20
  37. package/dist/{Detail-ayakHymC.js → Detail-D4KzWdHQ.js} +7 -8
  38. package/dist/Dictionary-Esd3ERAq.js +55 -0
  39. package/dist/{Email-BbipkOFP.js → Email-C9K09hwC.js} +9 -10
  40. package/dist/{File-B131KRit.js → File-ai1eYO7v.js} +49 -50
  41. package/dist/Image-CfY4G1Yn.js +9 -0
  42. package/dist/{Index-BnudlpyF.js → Index-B5o7uf36.js} +15 -16
  43. package/dist/Index-CH3nwnPZ.js +4 -0
  44. package/dist/Index-CTjDkp7e.js +4 -0
  45. package/dist/Index-DSZ8wa7U.js +4 -0
  46. package/dist/Index-DVdiF3gr.js +4 -0
  47. package/dist/{Index-Bps1k5-m.js → Index-DYHrSEZ5.js} +1 -1
  48. package/dist/Index-DsZPtDYE.js +173 -0
  49. package/dist/{Index-B20QLMmF.js → Index-S1btGSGD.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-C-7l_RSt.js → Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js} +8 -9
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-IX-mfiEH.js → Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js} +19 -27
  52. package/dist/{Install-BnCA1XK8.js → Install-D-MgafyF.js} +13 -14
  53. package/dist/{Int-BSA4Srky.js → Int-CnvfCxgn.js} +9 -10
  54. package/dist/{Int-BlwraOyw.js → Int-D3RqVcmN.js} +13 -14
  55. package/dist/List-DA4SO_le.js +71 -0
  56. package/dist/Maintaince-BIgEbjrq.js +14 -0
  57. package/dist/{Markdown-Can2d8HC.js → Markdown-hax8By5O.js} +1 -1
  58. package/dist/Month-5lTUiWin.js +37 -0
  59. package/dist/{Month-ClTpaaAr.js → Month-BDkwv-vc.js} +12 -13
  60. package/dist/{Month-Dyt_wc8r.js → Month-CnVTSnyK.js} +1 -1
  61. package/dist/{Normal-DBRpkCNs.js → Normal-DoE9t7d7.js} +73 -74
  62. package/dist/Paging-5qsCTRWy.js +92 -0
  63. package/dist/{PagingHeader-BQ-8s0NC.js → PagingHeader-BFtE6jSy.js} +35 -36
  64. package/dist/{PagingRow-CqAYVjxH.js → PagingRow-CSB-kwMz.js} +19 -20
  65. package/dist/{Racebar-BhRmArVA.js → Racebar-Bc-dDRss.js} +26 -32
  66. package/dist/{Radio-DCVAYEgh.js → Radio-CMGOtMnx.js} +1 -1
  67. package/dist/{Register-Dr5HF0B6.js → Register-8wi0uixs.js} +54 -55
  68. package/dist/RichText-BR4Kvx0J.js +41 -0
  69. package/dist/{SearchFooter-D02JAZez.js → SearchFooter-DOC21dmS.js} +1 -1
  70. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-dBZJFNo0.js → SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js} +3 -3
  71. package/dist/{SearchForm-DhrX5Akr.js → SearchForm-BMTSPce_.js} +1 -1
  72. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Dx26ti3G.js → SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js} +38 -41
  73. package/dist/{Select-ChwyjjbN.js → Select-DAxdpZlO.js} +8 -9
  74. package/dist/{Select-DK5-x-rC.js → Select-DnFyey0n.js} +23 -24
  75. package/dist/{Select-CaGb3SAi.js → Select-MBD4Simw.js} +1 -1
  76. package/dist/{Single-DIyLnILS.js → Single-D6x6VV_B.js} +85 -88
  77. package/dist/{Statistic-ArzDDFwp.js → Statistic-BS_DA72m.js} +22 -23
  78. package/dist/{Stock-DapT2McI.js → Stock-CbucObTu.js} +1 -1
  79. package/dist/{Stock-CsVIZtQ4.js → Stock-CtmevqBK.js} +1 -1
  80. package/dist/{Stock.vue_vue_type_style_index_0_lang-JABRw23-.js → Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js} +12 -13
  81. package/dist/{Switch-B0VJc80B.js → Switch-BlXAy9qH.js} +1 -1
  82. package/dist/{Table-C5kHBVpV.js → Table-CqsfAMh7.js} +84 -87
  83. package/dist/{Table-Cwe8QuVi.js → Table-Da9gan1Y.js} +78 -79
  84. package/dist/Text-C72NLZMt.js +48 -0
  85. package/dist/Text-CHvsKR9H.js +4 -0
  86. package/dist/{Text-CK1PT6x8.js → Text-CbZlEVTJ.js} +10 -11
  87. package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +53 -0
  88. package/dist/{TextLink-Bn_Z4Ajl.js → TextLink-SAnZ7BfX.js} +10 -11
  89. package/dist/{Textarea-C6Pi4p9b.js → Textarea-DphCUpXp.js} +1 -1
  90. package/dist/{Time-DWG3pwjK.js → Time-DjE8yYdK.js} +10 -11
  91. package/dist/{Timeline-Bqq3rFbX.js → Timeline-D11vjkpZ.js} +13 -19
  92. package/dist/Tree-DK73Ou_F.js +117 -0
  93. package/dist/{Tree-CU2UHknq.js → Tree-kich05vY.js} +99 -102
  94. package/dist/{TreeNode-DD-YfbgL.js → TreeNode-Dx6cZ31Z.js} +10 -11
  95. package/dist/{Update-BdbT4B2n.js → Update-D2Plm_AG.js} +14 -15
  96. package/dist/{UpdateChild-CVgQs6_A.js → UpdateChild-BXV7QqaP.js} +20 -21
  97. package/dist/{Upload-CKHSikDI.js → Upload-B87EDynn.js} +44 -45
  98. package/dist/Upload-CHPjMGFZ.js +65 -0
  99. package/dist/{Year-nGY1S5_T.js → Year-BPFmIiPX.js} +1 -1
  100. package/dist/{Year-CnA4ZUPj.js → Year-C93IJgc8.js} +8 -9
  101. package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
  102. package/dist/main-nvsTmKXH.js +16321 -0
  103. package/dist/main.js +137 -136
  104. package/dist/style.css +1 -1
  105. package/esm/coms/business/Form.vue.d.ts +2 -1
  106. package/esm/coms/drivers/@types/DriverEmit.d.ts +18 -0
  107. package/esm/coms/drivers/@types/DriverKindEmit.d.ts +18 -0
  108. package/esm/coms/drivers/@types/KindFormProps.d.ts +3 -6
  109. package/esm/coms/drivers/@types/index.d.ts +3 -1
  110. package/esm/coms/drivers/Index.vue.d.ts +26 -29
  111. package/esm/coms/drivers/Kind.vue.d.ts +8 -8
  112. package/esm/coms/layouts/Index.vue.d.ts +7 -3
  113. package/esm/coms/layouts/Side.vue.d.ts +5 -2
  114. package/esm/coms/layouts/Top.vue.d.ts +4 -1
  115. package/esm/coms/lists/Tree.vue.d.ts +2 -1
  116. package/esm/coms/pages/@types/index.d.ts +1 -2
  117. package/esm/coms/pages/Custom.vue.d.ts +2 -1
  118. package/esm/coms/pages/List.vue.d.ts +1 -1
  119. package/esm/coms/pages/Paging.vue.d.ts +2 -1
  120. package/esm/coms/pages/Single.vue.d.ts +2 -1
  121. package/esm/coms/pagings/Article.vue.d.ts +2 -1
  122. package/esm/coms/pagings/Index.vue.d.ts +2 -1
  123. package/esm/coms/pagings/Table.vue.d.ts +2 -1
  124. package/esm/coms/searches/Text.vue.d.ts +5 -7
  125. package/esm/svcs/ModuleSvc.d.ts +40 -0
  126. package/esm/svcs/index.d.ts +3 -3
  127. package/package.json +9 -9
  128. package/dist/Autocomplete-Buw1Hs35.js +0 -50
  129. package/dist/Calender-P8tmSbW2.js +0 -10
  130. package/dist/Callback-SEWVfpG_.js +0 -21
  131. package/dist/Cascader-DWNTommi.js +0 -47
  132. package/dist/Code-CQSTwwc4.js +0 -4
  133. package/dist/Code-CXMdFELH.js +0 -42
  134. package/dist/Code-THGJ7IzI.js +0 -60
  135. package/dist/Code.vue_vue_type_style_index_0_lang-BXOFkrGK.js +0 -63
  136. package/dist/Column-CucHIBYv.js +0 -75
  137. package/dist/Custom-CkyWaXAB.js +0 -61
  138. package/dist/Dictionary-BiSpx7nU.js +0 -61
  139. package/dist/Image-Cb1PzLpD.js +0 -9
  140. package/dist/Index-2vdi0Nq0.js +0 -4
  141. package/dist/Index-BOKSKn0N.js +0 -4
  142. package/dist/Index-CymZGuJo.js +0 -174
  143. package/dist/Index-Cz0Ti6rP.js +0 -4
  144. package/dist/Index-Dhg6Vts6.js +0 -4
  145. package/dist/List-BnT_8B_q.js +0 -74
  146. package/dist/Maintaince-CwL7tseR.js +0 -20
  147. package/dist/Month-CRmTCjQr.js +0 -38
  148. package/dist/Paging-ByJhfHCh.js +0 -95
  149. package/dist/RichText-Dj93TxtW.js +0 -47
  150. package/dist/Text-D2P-_cQT.js +0 -54
  151. package/dist/Text-oKVRjuSR.js +0 -4
  152. package/dist/Text.vue_vue_type_style_index_0_lang-epPB32IU.js +0 -59
  153. package/dist/Tree-DRUGEHR3.js +0 -123
  154. package/dist/Upload-BCGGzOTn.js +0 -71
  155. package/dist/assets/clone-BZn0cTAu.js +0 -134
  156. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  157. package/dist/assets/liquidjs-C2HVw1Ra.js +0 -2901
  158. package/dist/assets/moment-h96o7c8I.js +0 -2578
  159. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  160. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  161. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  162. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  163. package/dist/main-BLb5AIWJ.js +0 -10249
@@ -1,10 +1,9 @@
1
- import { defineComponent as v, toRefs as x, resolveComponent as b, openBlock as N, createBlock as V, unref as e, withCtx as t, createVNode as a, createElementVNode as m, createTextVNode as r, toDisplayString as p } from "vue";
2
- import { I as g, t as c } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
1
+ import { defineComponent as v, toRefs as x, resolveComponent as b, openBlock as N, createBlock as V, unref as e, withCtx as t, createVNode as a, createElementVNode as m, createTextVNode as r, toDisplayString as c } from "vue";
2
+ import { F as g, f as p } from "./main-nvsTmKXH.js";
4
3
  import "element-plus";
5
4
  import "vue-router";
6
5
  import "./assets/intro.js-Cg1adLK7.js";
7
- const $ = /* @__PURE__ */ v({
6
+ const T = /* @__PURE__ */ v({
8
7
  __name: "Detail",
9
8
  props: {
10
9
  route: {},
@@ -33,7 +32,7 @@ const $ = /* @__PURE__ */ v({
33
32
  m("i", { class: "fa fa-edit" }, null, -1)
34
33
  ])),
35
34
  default: t(() => [
36
- r(" " + p(e(c)("common.modify")), 1)
35
+ r(" " + c(e(p)("common.modify")), 1)
37
36
  ]),
38
37
  _: 1
39
38
  }, 8, ["onClick"]),
@@ -46,7 +45,7 @@ const $ = /* @__PURE__ */ v({
46
45
  m("i", { class: "fa fa-copy" }, null, -1)
47
46
  ])),
48
47
  default: t(() => [
49
- r(" " + p(e(c)("common.copy")), 1)
48
+ r(" " + c(e(p)("common.copy")), 1)
50
49
  ]),
51
50
  _: 1
52
51
  }, 8, ["onClick"]),
@@ -55,7 +54,7 @@ const $ = /* @__PURE__ */ v({
55
54
  m("i", { class: "fa fa-chevron-left" }, null, -1)
56
55
  ])),
57
56
  default: t(() => [
58
- r(" " + p(e(c)("common.back")), 1)
57
+ r(" " + c(e(p)("common.back")), 1)
59
58
  ]),
60
59
  _: 1
61
60
  }, 8, ["onClick"])
@@ -66,5 +65,5 @@ const $ = /* @__PURE__ */ v({
66
65
  }
67
66
  });
68
67
  export {
69
- $ as default
68
+ T as default
70
69
  };
@@ -0,0 +1,55 @@
1
+ import { defineComponent as g, toRefs as x, computed as a, resolveComponent as b, openBlock as o, createElementBlock as n, Fragment as h, renderList as V, unref as k, createBlock as B, normalizeStyle as C, withCtx as N, createTextVNode as S, toDisplayString as s, createCommentVNode as j } from "vue";
2
+ import { d as r } from "./main-nvsTmKXH.js";
3
+ const w = { class: "text-dictionary" }, D = {
4
+ key: 0,
5
+ class: "suffix"
6
+ }, T = /* @__PURE__ */ g({
7
+ __name: "Dictionary",
8
+ props: {
9
+ schema: {},
10
+ table: {},
11
+ field: {},
12
+ set: {},
13
+ row: {},
14
+ modelValue: { type: [String, Number, Boolean] }
15
+ },
16
+ emits: ["submit", "change", "update:modelValue"],
17
+ setup(i, { emit: c }) {
18
+ let u = c, m = i, { table: E, field: d, set: z, modelValue: f } = x(m), t = a({
19
+ get() {
20
+ return f.value;
21
+ },
22
+ set(e) {
23
+ u("update:modelValue", e), u("change", e);
24
+ }
25
+ }), p = a(() => {
26
+ if (t.value == null)
27
+ return [];
28
+ if (r.object.isNumber(t.value))
29
+ return [t.value];
30
+ if (r.object.isBoolean(t.value))
31
+ return [t.value];
32
+ let e = t.value.toString();
33
+ return r.string.isEmpty(e) ? [] : e.split(",");
34
+ }), _ = a(() => r.array.fromValues(p.value, d.value.control.data.data, "value", "text"));
35
+ return (e, F) => {
36
+ const v = b("el-tag");
37
+ return o(), n("div", w, [
38
+ (o(!0), n(h, null, V(k(_), (l, y) => (o(), B(v, {
39
+ type: "info",
40
+ style: C({ color: l.color }),
41
+ key: y
42
+ }, {
43
+ default: N(() => [
44
+ S(s(l.text) + " ", 1),
45
+ l.suffix ? (o(), n("span", D, "(" + s(l.suffix) + ")", 1)) : j("", !0)
46
+ ]),
47
+ _: 2
48
+ }, 1032, ["style"]))), 128))
49
+ ]);
50
+ };
51
+ }
52
+ });
53
+ export {
54
+ T as default
55
+ };
@@ -1,6 +1,5 @@
1
- import { defineComponent as f, toRefs as _, computed as V, resolveComponent as b, openBlock as h, createBlock as y, unref as e, withKeys as x, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as C } from "vue";
2
- import { j as K } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
1
+ import { defineComponent as f, toRefs as V, computed as _, resolveComponent as b, openBlock as h, createBlock as x, unref as e, withKeys as y, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as C } from "vue";
2
+ import { h as K } from "./main-nvsTmKXH.js";
4
3
  const D = /* @__PURE__ */ f({
5
4
  __name: "Email",
6
5
  props: {
@@ -12,12 +11,12 @@ const D = /* @__PURE__ */ f({
12
11
  modelValue: {}
13
12
  },
14
13
  emits: ["submit", "change", "update:modelValue"],
15
- setup(i, { emit: d }) {
16
- let o = d, p = i, { table: r, field: t, set: B, modelValue: u } = _(p), s = () => {
14
+ setup(i, { emit: s }) {
15
+ let o = s, u = i, { table: d, field: t, set: B, modelValue: p } = V(u), r = () => {
17
16
  o("submit");
18
- }, l = V({
17
+ }, l = _({
19
18
  get() {
20
- return u.value;
19
+ return p.value;
21
20
  },
22
21
  set(a) {
23
22
  o("update:modelValue", a), o("change", a);
@@ -25,11 +24,11 @@ const D = /* @__PURE__ */ f({
25
24
  });
26
25
  return (a, n) => {
27
26
  const c = b("el-input");
28
- return h(), y(c, {
27
+ return h(), x(c, {
29
28
  type: "email",
30
29
  disabled: e(t).control.readonly,
31
- placeholder: e(K)(e(r).name, e(t).name),
32
- onKeyup: x(e(s), ["enter", "native"]),
30
+ placeholder: e(K)(e(d).name, e(t).name),
31
+ onKeyup: y(e(r), ["enter", "native"]),
33
32
  modelValue: e(l),
34
33
  "onUpdate:modelValue": n[0] || (n[0] = (m) => g(l) ? l.value = m : l = m)
35
34
  }, k({ _: 2 }, [
@@ -1,17 +1,16 @@
1
- import { defineComponent as P, toRefs as T, ref as A, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as g, unref as e, withCtx as r, createElementVNode as n, normalizeClass as x, Fragment as L, renderList as q, createBlock as y, toDisplayString as d, createTextVNode as w, createCommentVNode as S } from "vue";
2
- import { useRoute as G, useRouter as H } from "vue-router";
3
- import { E as I, b as J, B as m, t as K, h as M, c as O } from "./main-BLb5AIWJ.js";
4
- import "./assets/moment-h96o7c8I.js";
1
+ import { defineComponent as P, toRefs as T, ref as Z, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as g, unref as e, withCtx as r, createElementVNode as s, normalizeClass as x, Fragment as L, renderList as q, createBlock as y, toDisplayString as _, createTextVNode as w, createCommentVNode as S } from "vue";
2
+ import { useRoute as A, useRouter as G } from "vue-router";
3
+ import { v as H, S as I, Z as m, f as J, _ as K, g as M } from "./main-nvsTmKXH.js";
5
4
  import "element-plus";
6
5
  import "./assets/intro.js-Cg1adLK7.js";
7
- import { _ as Q } from "./SearchForm.vue_vue_type_style_index_0_lang-Dx26ti3G.js";
8
- const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
6
+ import { _ as O } from "./SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js";
7
+ const Q = { class: "file-layout" }, U = { class: "toolbar" }, W = {
9
8
  key: 0,
10
9
  class: "files-image"
11
- }, Y = { class: "file-image" }, Z = ["src"], ee = { class: "file-title" }, te = { class: "file-name" }, ae = ["src", "alt"], oe = { class: "file-title" }, le = {
10
+ }, X = { class: "file-image" }, Y = ["src"], ee = { class: "file-title" }, te = { class: "file-name" }, ae = ["src", "alt"], oe = { class: "file-title" }, le = {
12
11
  key: 2,
13
12
  class: "not-support"
14
- }, de = /* @__PURE__ */ P({
13
+ }, pe = /* @__PURE__ */ P({
15
14
  __name: "File",
16
15
  props: {
17
16
  searchData: {},
@@ -23,117 +22,117 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
23
22
  set: {}
24
23
  },
25
24
  setup(z) {
26
- let B = z, { schema: F, table: s, layout: i, next: _, set: b, searchData: ne } = T(B), f = G(), v = H(), k = A(), C = (o) => {
25
+ let F = z, { schema: N, table: n, layout: i, next: d, set: b, searchData: se } = T(F), f = A(), v = G(), k = Z(), C = (o) => {
27
26
  let t = { type: "fileLayout", value: o };
28
- M.post("/config/save", t).then((h) => {
27
+ K.post("/config/save", t).then((h) => {
29
28
  m.fileLayout = o;
30
29
  });
31
- }, N = (o) => {
30
+ }, V = (o) => {
32
31
  let t = { ...f.query };
33
- t.page = o, v.push({ path: _.value.paging.route, query: t });
34
- }, V = () => {
32
+ t.page = o, v.push({ path: d.value.paging.route, query: t });
33
+ }, B = () => {
35
34
  let o = { ...f.query };
36
- o.page = "1", o.condition = O.encode(k.value);
37
- let t = { path: _.value.paging.route, query: o };
35
+ o.page = "1", o.condition = M.encode(k.value);
36
+ let t = { path: d.value.paging.route, query: o };
38
37
  v.push(t);
39
38
  };
40
39
  return (o, t) => {
41
- const h = p("router-link"), D = p("el-table-column"), E = p("el-table"), R = p("el-button"), j = p("el-pagination");
42
- return l(), u("div", U, [
43
- g(e(I), {
44
- title: e(J)(o.module.type, o.module.name)
40
+ const h = p("router-link"), D = p("el-table-column"), R = p("el-table"), E = p("el-button"), j = p("el-pagination");
41
+ return l(), u("div", Q, [
42
+ g(e(H), {
43
+ title: e(I)(o.module.type, o.module.name)
45
44
  }, {
46
45
  operation: r(() => [
47
- n("div", W, [
48
- n("a", {
46
+ s("div", U, [
47
+ s("a", {
49
48
  class: x({ active: e(m).fileLayout == "list" }),
50
49
  onClick: t[0] || (t[0] = (a) => e(C)("list"))
51
50
  }, t[2] || (t[2] = [
52
- n("i", { class: "fa fa-list" }, null, -1)
51
+ s("i", { class: "fa fa-list" }, null, -1)
53
52
  ]), 2),
54
- n("a", {
53
+ s("a", {
55
54
  class: x({ active: e(m).fileLayout == "image" }),
56
55
  onClick: t[1] || (t[1] = (a) => e(C)("image"))
57
56
  }, t[3] || (t[3] = [
58
- n("i", { class: "fa fa-image" }, null, -1)
57
+ s("i", { class: "fa fa-image" }, null, -1)
59
58
  ]), 2)
60
59
  ])
61
60
  ]),
62
61
  append: r(() => [
63
- e(m).fileLayout == "image" ? (l(), u("div", X, [
64
- (l(!0), u(L, null, q(e(b)[e(s).name], (a, $) => (l(), y(h, {
62
+ e(m).fileLayout == "image" ? (l(), u("div", W, [
63
+ (l(!0), u(L, null, q(e(b)[e(n).name], (a, $) => (l(), y(h, {
65
64
  class: "file",
66
- to: { path: e(_).detail.route, query: { id: a[e(s).key.name], m: e(f).query.m } },
65
+ to: { path: e(d).detail.route, query: { id: a[e(n).key.name], m: e(f).query.m } },
67
66
  key: $
68
67
  }, {
69
68
  default: r(() => [
70
- n("div", Y, [
71
- n("img", {
69
+ s("div", X, [
70
+ s("img", {
72
71
  src: a[e(i).url],
73
72
  alt: ""
74
- }, null, 8, Z)
73
+ }, null, 8, Y)
75
74
  ]),
76
- n("div", ee, d(a[e(i).name]), 1)
75
+ s("div", ee, _(a[e(i).name]), 1)
77
76
  ]),
78
77
  _: 2
79
78
  }, 1032, ["to"]))), 128))
80
- ])) : e(m).fileLayout == "list" ? (l(), y(E, {
79
+ ])) : e(m).fileLayout == "list" ? (l(), y(R, {
81
80
  key: 1,
82
81
  class: "files-list",
83
82
  border: "",
84
- data: e(b)[e(s).name]
83
+ data: e(b)[e(n).name]
85
84
  }, {
86
85
  empty: r(() => [
87
- w(d(e(K)("common.no_data")), 1)
86
+ w(_(e(J)("common.no_data")), 1)
88
87
  ]),
89
88
  default: r(() => [
90
- (l(!0), u(L, null, q(e(s).show, (a, $) => (l(), y(D, {
89
+ (l(!0), u(L, null, q(e(n).show, (a, $) => (l(), y(D, {
91
90
  "show-overflow-tooltip": "",
92
- sortable: e(s) ? "custom" : !1,
91
+ sortable: e(n) ? "custom" : !1,
93
92
  "min-width": "180",
94
93
  "sort-orders": ["descending", "ascending"],
95
94
  prop: a.name,
96
95
  label: `${a.label}${a.prefix || a.suffix ? "(" + (a.prefix || a.suffix) + ")" : ""}`,
97
- key: `${e(s).name}.${a.name}`
96
+ key: `${e(n).name}.${a.name}`
98
97
  }, {
99
98
  default: r((c) => [
100
- n("div", te, [
99
+ s("div", te, [
101
100
  c.column.property == e(i).name ? (l(), u("img", {
102
101
  key: 0,
103
102
  class: "file-image",
104
103
  src: c.row[e(i).url],
105
104
  alt: c.row[e(i).name]
106
105
  }, null, 8, ae)) : S("", !0),
107
- n("div", oe, d(c.row[c.column.property]), 1)
106
+ s("div", oe, _(c.row[c.column.property]), 1)
108
107
  ])
109
108
  ]),
110
109
  _: 2
111
110
  }, 1032, ["sortable", "prop", "label"]))), 128))
112
111
  ]),
113
112
  _: 1
114
- }, 8, ["data"])) : (l(), u("div", le, "未支持的文件布局:" + d(e(m).fileLayout), 1))
113
+ }, 8, ["data"])) : (l(), u("div", le, "未支持的文件布局:" + _(e(m).fileLayout), 1))
115
114
  ]),
116
115
  default: r(() => [
117
- e(s).search.length > 0 ? (l(), y(Q, {
116
+ e(n).search.length > 0 ? (l(), y(O, {
118
117
  key: 0,
119
- schema: e(F),
120
- table: e(s),
118
+ schema: e(N),
119
+ table: e(n),
121
120
  search: e(k),
122
- onSubmit: e(V)
121
+ onSubmit: e(B)
123
122
  }, null, 8, ["schema", "table", "search", "onSubmit"])) : S("", !0)
124
123
  ]),
125
124
  _: 1
126
125
  }, 8, ["title"]),
127
- g(R, {
126
+ g(E, {
128
127
  type: "primary",
129
128
  icon: "el-icon-plus"
130
129
  }, {
131
130
  default: r(() => [
132
131
  g(h, {
133
- to: { path: e(_).insert.route, query: { m: e(f).query.m } }
132
+ to: { path: e(d).insert.route, query: { m: e(f).query.m } }
134
133
  }, {
135
134
  default: r(() => [
136
- w("添加新" + d(e(s).title), 1)
135
+ w("添加新" + _(e(n).title), 1)
137
136
  ]),
138
137
  _: 1
139
138
  }, 8, ["to"])
@@ -144,14 +143,14 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
144
143
  background: "",
145
144
  layout: "total, prev, pager, next, jumper",
146
145
  "current-page": e(i).page,
147
- "page-size": e(i).pageSize,
146
+ "page-size": e(i).size,
148
147
  total: e(i).count,
149
- onCurrentChange: e(N)
148
+ onCurrentChange: e(V)
150
149
  }, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
151
150
  ]);
152
151
  };
153
152
  }
154
153
  });
155
154
  export {
156
- de as default
155
+ pe as default
157
156
  };
@@ -0,0 +1,9 @@
1
+ import { l as e } from "./main-nvsTmKXH.js";
2
+ const r = {};
3
+ function c(n, t) {
4
+ return null;
5
+ }
6
+ const o = /* @__PURE__ */ e(r, [["render", c]]);
7
+ export {
8
+ o as default
9
+ };
@@ -1,7 +1,6 @@
1
- import { defineComponent as C, defineAsyncComponent as U, toRefs as D, computed as p, unref as e, openBlock as c, createBlock as f, withCtx as v, resolveDynamicComponent as y, isRef as b, createElementVNode as w, toDisplayString as h } from "vue";
2
- import { U as N, t as x } from "./main-BLb5AIWJ.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- const E = /* @__PURE__ */ C({
1
+ import { defineComponent as C, defineAsyncComponent as D, toRefs as N, computed as p, unref as e, openBlock as c, createBlock as f, withCtx as v, resolveDynamicComponent as y, isRef as b, createElementVNode as w, toDisplayString as h } from "vue";
2
+ import { d as B, f as x } from "./main-nvsTmKXH.js";
3
+ const A = /* @__PURE__ */ C({
5
4
  __name: "Index",
6
5
  props: {
7
6
  schema: {},
@@ -12,11 +11,11 @@ const E = /* @__PURE__ */ C({
12
11
  config: {}
13
12
  },
14
13
  emits: ["submit", "change"],
15
- setup(g, { emit: B }) {
16
- let V = U(() => import("./TextLink-Bn_Z4Ajl.js")), k = g, { schema: u, table: s, field: l, set: i, row: a, config: m } = D(k), d = p(() => {
14
+ setup(g, { emit: R }) {
15
+ let V = D(() => import("./TextLink-SAnZ7BfX.js")), k = g, { schema: u, table: s, field: l, set: d, row: a, config: m } = N(k), i = p(() => {
17
16
  let o = l.value.control.type;
18
17
  return m.value && m.value.control && m.value.control.type ? m.value.control.type : o;
19
- }), _ = p(() => `text-${N.string.getDashName(d.value)}`), t = p({
18
+ }), _ = p(() => `text-${B.string.getDashName(i.value)}`), t = p({
20
19
  get() {
21
20
  return a.value[l.value.name];
22
21
  },
@@ -24,12 +23,12 @@ const E = /* @__PURE__ */ C({
24
23
  a.value[l.value.name] = o;
25
24
  }
26
25
  });
27
- return (o, r) => e(l).link ? (c(), f(e(V), {
26
+ return (o, n) => e(l).link ? (c(), f(e(V), {
28
27
  key: 0,
29
28
  schema: e(u),
30
29
  table: e(s),
31
30
  field: e(l),
32
- set: e(i),
31
+ set: e(d),
33
32
  row: e(a)
34
33
  }, {
35
34
  default: v(() => [
@@ -37,13 +36,13 @@ const E = /* @__PURE__ */ C({
37
36
  schema: e(u),
38
37
  table: e(s),
39
38
  field: e(l),
40
- set: e(i),
39
+ set: e(d),
41
40
  row: e(a),
42
41
  modelValue: e(t),
43
- "onUpdate:modelValue": r[0] || (r[0] = (n) => b(t) ? t.value = n : t = n)
42
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => b(t) ? t.value = r : t = r)
44
43
  }, {
45
44
  default: v(() => [
46
- w("div", null, h(e(x)("common.unsupported_text_control", e(d))), 1)
45
+ w("div", null, h(e(x)("common.unsupported_text_control", e(i))), 1)
47
46
  ]),
48
47
  _: 1
49
48
  }, 8, ["schema", "table", "field", "set", "row", "modelValue"]))
@@ -54,18 +53,18 @@ const E = /* @__PURE__ */ C({
54
53
  schema: e(u),
55
54
  table: e(s),
56
55
  field: e(l),
57
- set: e(i),
56
+ set: e(d),
58
57
  row: e(a),
59
58
  modelValue: e(t),
60
- "onUpdate:modelValue": r[1] || (r[1] = (n) => b(t) ? t.value = n : t = n)
59
+ "onUpdate:modelValue": n[1] || (n[1] = (r) => b(t) ? t.value = r : t = r)
61
60
  }, {
62
61
  default: v(() => [
63
- w("div", null, h(e(x)("common.unsupported_text_control", e(d))), 1)
62
+ w("div", null, h(e(x)("common.unsupported_text_control", e(i))), 1)
64
63
  ]),
65
64
  _: 1
66
65
  }, 8, ["schema", "table", "field", "set", "row", "modelValue"]));
67
66
  }
68
67
  });
69
68
  export {
70
- E as default
69
+ A as default
71
70
  };
@@ -0,0 +1,4 @@
1
+ import { e } from "./main-nvsTmKXH.js";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { a as f } from "./main-nvsTmKXH.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { L as f } from "./main-nvsTmKXH.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { p as f } from "./main-nvsTmKXH.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-IX-mfiEH.js";
1
+ import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,173 @@
1
+ import { defineComponent as S, ref as u, onMounted as j, computed as D, watch as J, resolveComponent as p, openBlock as d, createElementBlock as R, createVNode as g, unref as t, withCtx as m, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as U, isRef as L, withKeys as T, normalizeClass as P, withModifiers as Z, createTextVNode as $, Fragment as G, renderList as W, nextTick as M } from "vue";
2
+ import { useRoute as X } from "vue-router";
3
+ import { M as Y, Q as w, J as ee, f as i, d as A, I as K, r as z, z as le } from "./main-nvsTmKXH.js";
4
+ const te = { class: "login-container" }, oe = { class: "title-container" }, re = { class: "title" }, se = { class: "btn-others" }, ne = ["href"], ae = ["innerHTML"], pe = /* @__PURE__ */ S({
5
+ __name: "Index",
6
+ setup(ie) {
7
+ let a = u({ id: "", secret: "" }), f = u("password"), s = u(!1), y = u(!1), V = u(), h = u(), b = u(), x = X(), F = {
8
+ id: [{
9
+ required: !0,
10
+ trigger: "blur",
11
+ validator: (l, e, r) => {
12
+ e ? e.indexOf("@") > -1 ? A.string.isEmail(e) ? r() : r(new Error("邮箱格式不正确")) : r() : r(new Error(i("common.username_or_email") + " " + i("common.should_not_null")));
13
+ }
14
+ }]
15
+ // secret: [{required: true, trigger: 'blur', validator: validateSecret}]
16
+ }, I = (l) => {
17
+ l.key && l.key.length == 1 && (l.shiftKey && l.key >= "a" && l.key <= "z" || !l.shiftKey && l.key >= "A" && l.key <= "Z" ? s.value = !0 : s.value = !1), l.key == "CapsLock" && s.value == !0 && (s.value = !1);
18
+ }, B = () => {
19
+ f.value == "password" ? f.value = "" : f.value = "password", M(() => {
20
+ b.value.focus();
21
+ });
22
+ }, E = async (l) => {
23
+ y.value = !0, V.value.validate(async (e) => {
24
+ if (!e)
25
+ return y.value = !1, !1;
26
+ (await K.sso.createAsync(l)).login(a.value).then(({ data: c }) => {
27
+ A.url.getBackUrl() ? z.toBackUrl() : z.to("/");
28
+ }).finally(() => {
29
+ M(() => {
30
+ y.value = !1;
31
+ });
32
+ });
33
+ });
34
+ }, N = async (l) => {
35
+ let e = await K.sso.createAsync(l), r = x.query.return_url, c = `${window.location.origin}/sso/callback?type=${l.toLowerCase()}&return_url=${r}`;
36
+ return e.loginUrl(le.api.url + `/user/login?type=${l.toLowerCase()}&callback_url=` + encodeURIComponent(c));
37
+ }, O = (l) => Object.keys(l).reduce((e, r) => (e[r] = l[r], e), {});
38
+ j(async () => {
39
+ Y.setI18nTitle("common.login");
40
+ for (let l = 0; l < w.ssos.length; l++) {
41
+ let e = w.ssos[l];
42
+ e.loginUrl = await N(e.type);
43
+ }
44
+ _.value != null && (a.value.id == "" ? h.value.focus() : a.value.secret == "" && b.value.focus());
45
+ });
46
+ let _ = D(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
47
+ return J(() => x, (l) => {
48
+ debugger;
49
+ const e = l.query;
50
+ e && O(e);
51
+ }), (l, e) => {
52
+ const r = p("el-input"), c = p("el-form-item"), C = p("el-tooltip"), q = p("el-button"), Q = p("router-link"), H = p("el-form");
53
+ return d(), R("div", te, [
54
+ g(H, {
55
+ ref_key: "loginFormRef",
56
+ ref: V,
57
+ autocomplete: "on",
58
+ "label-position": "left",
59
+ model: t(a),
60
+ rules: t(F)
61
+ }, {
62
+ default: m(() => [
63
+ n("div", oe, [
64
+ n("h3", re, k(t(ee)("title")), 1)
65
+ ]),
66
+ t(_) ? (d(), v(c, {
67
+ key: 0,
68
+ prop: "id"
69
+ }, {
70
+ default: m(() => [
71
+ e[7] || (e[7] = n("span", { class: "svg-container" }, [
72
+ n("i", { class: "fa fa-user" })
73
+ ], -1)),
74
+ g(r, {
75
+ ref_key: "idRef",
76
+ ref: h,
77
+ placeholder: t(i)("common.username_or_email"),
78
+ name: "id",
79
+ type: "text",
80
+ tabindex: "1",
81
+ autocomplete: "on",
82
+ modelValue: t(a).id,
83
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => t(a).id = o)
84
+ }, null, 8, ["placeholder", "modelValue"])
85
+ ]),
86
+ _: 1
87
+ })) : U("", !0),
88
+ t(_) ? (d(), v(C, {
89
+ key: 1,
90
+ content: "Caps lock is On",
91
+ placement: "right",
92
+ manual: "",
93
+ modelValue: t(s),
94
+ "onUpdate:modelValue": e[5] || (e[5] = (o) => L(s) ? s.value = o : s = o)
95
+ }, {
96
+ default: m(() => [
97
+ g(c, { prop: "secret" }, {
98
+ default: m(() => [
99
+ e[8] || (e[8] = n("span", { class: "svg-container" }, [
100
+ n("i", { class: "fa fa-key" })
101
+ ], -1)),
102
+ (d(), v(r, {
103
+ ref_key: "secretRef",
104
+ ref: b,
105
+ key: t(f),
106
+ type: t(f),
107
+ placeholder: t(i)("common.password"),
108
+ name: "secret",
109
+ tabindex: "2",
110
+ autocomplete: "on",
111
+ onKeyup: [
112
+ T(t(I), ["native"]),
113
+ e[2] || (e[2] = T((o) => t(E)("Bearer"), ["enter", "native"]))
114
+ ],
115
+ onBlur: e[1] || (e[1] = (o) => L(s) ? s.value = !1 : s = !1),
116
+ modelValue: t(a).secret,
117
+ "onUpdate:modelValue": e[3] || (e[3] = (o) => t(a).secret = o)
118
+ }, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
119
+ n("span", {
120
+ class: "btn-pwd",
121
+ onClick: e[4] || (e[4] = //@ts-ignore
122
+ (...o) => t(B) && t(B)(...o))
123
+ }, [
124
+ n("i", {
125
+ class: P(t(f) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
126
+ }, null, 2)
127
+ ])
128
+ ]),
129
+ _: 1
130
+ })
131
+ ]),
132
+ _: 1
133
+ }, 8, ["modelValue"])) : U("", !0),
134
+ t(_) ? (d(), v(q, {
135
+ key: 2,
136
+ type: "primary",
137
+ class: "btn-login",
138
+ loading: t(y),
139
+ onClick: e[6] || (e[6] = Z((o) => t(E)("Bearer"), ["prevent"]))
140
+ }, {
141
+ default: m(() => [
142
+ $(k(t(i)("common.login")), 1)
143
+ ]),
144
+ _: 1
145
+ }, 8, ["loading"])) : U("", !0),
146
+ n("div", se, [
147
+ (d(!0), R(G, null, W(t(w).ssos.filter((o) => o.type.toUpperCase() != "BEARER"), (o) => (d(), R("a", {
148
+ href: o.loginUrl
149
+ }, k(t(i)(o.text)), 9, ne))), 256)),
150
+ g(Q, {
151
+ class: "btn-register",
152
+ to: "/register"
153
+ }, {
154
+ default: m(() => [
155
+ $(k(t(i)("common.register")), 1)
156
+ ]),
157
+ _: 1
158
+ })
159
+ ])
160
+ ]),
161
+ _: 1
162
+ }, 8, ["model", "rules"]),
163
+ n("div", {
164
+ class: "powered-by",
165
+ innerHTML: t(i)("sys.powered_by")
166
+ }, null, 8, ae)
167
+ ]);
168
+ };
169
+ }
170
+ });
171
+ export {
172
+ pe as default
173
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-C-7l_RSt.js";
1
+ import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js";
2
2
  export {
3
3
  f as default
4
4
  };