halo-pc 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/dist/Article-DASEvkfO.js +194 -0
  2. package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BSesl8iy.js} +17 -24
  3. package/dist/{Autocomplete-CIXGPZaG.js → Autocomplete-ClAQY5V5.js} +1 -1
  4. package/dist/Autocomplete-CzfOoMve.js +48 -0
  5. package/dist/Autocomplete-DToic2Cg.js +49 -0
  6. package/dist/{CSharp-BGzxI5QJ.js → CSharp-23QccebX.js} +1 -1
  7. package/dist/{Calender-DkBPl9bM.js → Calender-DZkQaIeV.js} +3 -3
  8. package/dist/Callback-CWBDUe_C.js +20 -0
  9. package/dist/Cascader-BDfFyqiv.js +41 -0
  10. package/dist/Cascader-CpD_hbhQ.js +81 -0
  11. package/dist/Checkbox--gCBkIuI.js +70 -0
  12. package/dist/{Checkbox-CuRjXSPc.js → Checkbox-SLi7MK1r.js} +1 -1
  13. package/dist/Code-BVTjF5rW.js +54 -0
  14. package/dist/{Code-BlwPnx9J.js → Code-C4hdU4t4.js} +1 -1
  15. package/dist/Code-CO4WPAe_.js +4 -0
  16. package/dist/Code-nrn4wOhB.js +36 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
  18. package/dist/Column-DcMAu4JL.js +68 -0
  19. package/dist/Comment-CPxVIapg.js +98 -0
  20. package/dist/Compare-C2oFy0EZ.js +56 -0
  21. package/dist/Compare-P9zOBC1v.js +26 -0
  22. package/dist/Copy-B5vrho98.js +43 -0
  23. package/dist/Custom-BETJLilj.js +51 -0
  24. package/dist/{DataExport-C0jItlVY.js → DataExport-YTc4EX6l.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
  26. package/dist/{DataImport-BfBkneEy.js → DataImport-ByV8MQkV.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
  28. package/dist/{Date-B8b9JXpP.js → Date-DbTzQla9.js} +1 -1
  29. package/dist/Date-DpiWNuFs.js +37 -0
  30. package/dist/DateRange-Su0Q2cwY.js +57 -0
  31. package/dist/{DateTime-DjhuyxFC.js → DateTime-C3NrioJi.js} +1 -1
  32. package/dist/DateTime-QyKfqaVG.js +38 -0
  33. package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-lytkhCjC.js} +11 -18
  34. package/dist/Daterange-D7ZHkOmo.js +57 -0
  35. package/dist/{Decimal-DqMMTfvl.js → Decimal-CTTT98BQ.js} +1 -1
  36. package/dist/Delete-MfXy7gUi.js +56 -0
  37. package/dist/{Detail-C-OFWPso.js → Detail-CUiSzyT7.js} +16 -23
  38. package/dist/Dictionary-Dd_IU-Hn.js +55 -0
  39. package/dist/Email-BzN4JpJv.js +48 -0
  40. package/dist/{File-C2fLmTcj.js → File-Ckh37Ne2.js} +42 -49
  41. package/dist/Image-Dkd69DoD.js +9 -0
  42. package/dist/Index-CGJLRExG.js +4 -0
  43. package/dist/Index-CLzHDG05.js +4 -0
  44. package/dist/Index-DJJcNPgN.js +173 -0
  45. package/dist/{Index-B90giDWQ.js → Index-DlrpDUD3.js} +1 -1
  46. package/dist/Index-DxvVjg9S.js +70 -0
  47. package/dist/{Index-CQURvmzd.js → Index-G36KYPCK.js} +1 -1
  48. package/dist/Index-dTIwhIau.js +4 -0
  49. package/dist/{Index-D7DerkIw.js → Index-x4c71OJZ.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
  53. package/dist/{Install-Cqj44p9F.js → Install-BW_ulT9I.js} +20 -27
  54. package/dist/Int-BRqYiJo7.js +41 -0
  55. package/dist/{Int-Bj3Gagp5.js → Int-BYSjwPG_.js} +9 -16
  56. package/dist/List-DAFqVlam.js +73 -0
  57. package/dist/Maintaince-B8mM4PEp.js +14 -0
  58. package/dist/{Markdown-COY9enBf.js → Markdown-BXKlgSON.js} +1 -1
  59. package/dist/Month-BHvq72xE.js +37 -0
  60. package/dist/Month-BiW1DL44.js +38 -0
  61. package/dist/{Month-B7jIGlKI.js → Month-DKeTzNrD.js} +1 -1
  62. package/dist/{Normal-B8YL2DeI.js → Normal-CgSREifM.js} +52 -58
  63. package/dist/Paging-D02YApLL.js +94 -0
  64. package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-DJ7MmfGl.js} +37 -44
  65. package/dist/{PagingRow-CHDlm8UI.js → PagingRow-BM1GMtrr.js} +21 -28
  66. package/dist/QueryApi-ChpV_S8J.js +13 -0
  67. package/dist/{Racebar-ClsuYbRj.js → Racebar-CZlaC5Gm.js} +43 -49
  68. package/dist/{Radio-C6j5nvI9.js → Radio-BPq3WJa4.js} +1 -1
  69. package/dist/{Register-BnwfjjXP.js → Register-ByxrZyWq.js} +74 -80
  70. package/dist/RichText-BtQDAhn9.js +41 -0
  71. package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-B61gsy3w.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
  73. package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CLvZoPGQ.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
  75. package/dist/Select-C_afSAvf.js +111 -0
  76. package/dist/{Select-Z8b2t5QQ.js → Select-DGXJMnE9.js} +19 -26
  77. package/dist/{Select-BiFIpc5-.js → Select-Nb9K2FMY.js} +1 -1
  78. package/dist/{Single-DdcVVH9V.js → Single-C-2qA2MU.js} +111 -117
  79. package/dist/{Statistic-B7niMPBf.js → Statistic-B1K-qIZb.js} +30 -36
  80. package/dist/{Stock-CRsu1vcy.js → Stock-C560McFR.js} +1 -1
  81. package/dist/{Stock-xm8v4vDf.js → Stock-_rnn0B8I.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +26 -32
  83. package/dist/{Switch-BaER4xWy.js → Switch-BadvkLSw.js} +1 -1
  84. package/dist/{Table-a5uj25Nj.js → Table-B46N43V3.js} +69 -74
  85. package/dist/{Table-C2dYPoGi.js → Table-Dk48tQ1r.js} +59 -66
  86. package/dist/Text-CNF204mx.js +53 -0
  87. package/dist/Text-DblKaz4m.js +52 -0
  88. package/dist/Text-y-q7UXlg.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
  90. package/dist/TextLink-B4Q0zX1K.js +59 -0
  91. package/dist/{Textarea-DAICkidp.js → Textarea-D1BOQFgK.js} +1 -1
  92. package/dist/Time-DZQxglEi.js +37 -0
  93. package/dist/Timeline-8QaD9H_I.js +53 -0
  94. package/dist/Tree-BUcyK0i_.js +117 -0
  95. package/dist/{Tree-BwQkDP2T.js → Tree-DVeTdmmL.js} +66 -72
  96. package/dist/TreeNode-BScAFHPZ.js +37 -0
  97. package/dist/{Update-BZe92EwV.js → Update-BbU5H_Qf.js} +14 -21
  98. package/dist/{UpdateChild-DN6pwrUK.js → UpdateChild-BbXuXfOR.js} +19 -26
  99. package/dist/Upload-C1obfZui.js +146 -0
  100. package/dist/Upload-CmtHETKR.js +67 -0
  101. package/dist/UploadApi-2sfpKCMa.js +13 -0
  102. package/dist/Year-CRd3PkNx.js +41 -0
  103. package/dist/{Year-2tcz8PDF.js → Year-CTo-9KjE.js} +1 -1
  104. package/dist/main-65efBfek.js +19835 -0
  105. package/dist/main.js +53 -54
  106. package/dist/style.css +1 -1
  107. package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
  108. package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
  109. package/esm/vite.config.d.ts +6 -0
  110. package/package.json +1 -1
  111. package/dist/Article-BH4dl6Bf.js +0 -201
  112. package/dist/Autocomplete-DYxWYClO.js +0 -55
  113. package/dist/Autocomplete-SOenNkH4.js +0 -54
  114. package/dist/Callback-B57W83N1.js +0 -27
  115. package/dist/Cascader-BI6T7N-q.js +0 -88
  116. package/dist/Cascader-BoN_F8v4.js +0 -48
  117. package/dist/Checkbox-DdolP6wO.js +0 -77
  118. package/dist/Code--y8oCkjX.js +0 -43
  119. package/dist/Code-C48Gf7gU.js +0 -61
  120. package/dist/Code-DiOQvIZv.js +0 -4
  121. package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
  122. package/dist/Column-BNGw36Iq.js +0 -75
  123. package/dist/Comment-D37SdQb6.js +0 -105
  124. package/dist/Compare-C09T8aaU.js +0 -33
  125. package/dist/Compare-CnnCTG12.js +0 -63
  126. package/dist/Copy-DNrXXJRQ.js +0 -50
  127. package/dist/Custom--I04Jyzr.js +0 -58
  128. package/dist/Date-TKW4HbCJ.js +0 -44
  129. package/dist/DateRange-JCP1Eokf.js +0 -64
  130. package/dist/DateTime-DVOVXS_f.js +0 -45
  131. package/dist/Daterange-CqHXC9JN.js +0 -64
  132. package/dist/Delete-PcTE_3Cp.js +0 -63
  133. package/dist/Dictionary-Cfhmc2OQ.js +0 -60
  134. package/dist/Email-Rj-ZvdfJ.js +0 -55
  135. package/dist/Image-zgBgvAup.js +0 -9
  136. package/dist/Index-9fyKz8TT.js +0 -4
  137. package/dist/Index-CAlWNb2l.js +0 -179
  138. package/dist/Index-CjFLlnmH.js +0 -4
  139. package/dist/Index-Cr2WAY6Z.js +0 -76
  140. package/dist/Index-Izl4chSJ.js +0 -4
  141. package/dist/Int-dlbcQ6_t.js +0 -47
  142. package/dist/List-BsAOvgmQ.js +0 -80
  143. package/dist/Maintaince-DjSvIfbu.js +0 -21
  144. package/dist/Month-BhNUuzcc.js +0 -44
  145. package/dist/Month-KDuTRSA0.js +0 -45
  146. package/dist/Paging-BlFnu-w0.js +0 -100
  147. package/dist/QueryApi-Bc_kmvgs.js +0 -21
  148. package/dist/RichText-BImFNkHQ.js +0 -48
  149. package/dist/Select-f15Y0Ko-.js +0 -118
  150. package/dist/Text-CMEzogZ8.js +0 -4
  151. package/dist/Text-CqKE2xDo.js +0 -59
  152. package/dist/Text-DfqLW_KH.js +0 -60
  153. package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
  154. package/dist/TextLink-XJurKE8Q.js +0 -66
  155. package/dist/Time-BmdIHgOY.js +0 -44
  156. package/dist/Timeline-BOPAiaK-.js +0 -60
  157. package/dist/Tree-BR8gmBBa.js +0 -123
  158. package/dist/TreeNode-CdBVgaRW.js +0 -43
  159. package/dist/Upload-BtErvzEO.js +0 -151
  160. package/dist/Upload-vPTA8ndw.js +0 -73
  161. package/dist/UploadApi-CpwS4Kf1.js +0 -21
  162. package/dist/Year-CVqwpSLR.js +0 -48
  163. package/dist/assets/@intlify-BISCQg1h.js +0 -2189
  164. package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
  165. package/dist/assets/@vue-aVYGocXp.js +0 -93
  166. package/dist/assets/clone-BZn0cTAu.js +0 -134
  167. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  168. package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
  169. package/dist/assets/moment-h96o7c8I.js +0 -2578
  170. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  171. package/dist/assets/state-local-CEworIRt.js +0 -131
  172. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  173. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  174. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  175. package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
  176. package/dist/main-BS_9gx1M.js +0 -8937
@@ -1,15 +1,8 @@
1
- import { defineComponent as C, toRefs as h, resolveComponent as v, openBlock as x, createBlock as b, unref as e, withCtx as t, createVNode as l, createTextVNode as c, toDisplayString as a, createElementVNode 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/@monaco-editor-BCDRi0Ti.js";
7
- import "./assets/moment-h96o7c8I.js";
8
- import { N, t as m } from "./main-BS_9gx1M.js";
9
- import "./assets/liquidjs-C-LVcoaY.js";
1
+ import { defineComponent as C, toRefs as h, resolveComponent as v, openBlock as x, createBlock as b, unref as e, withCtx as t, createVNode as c, createTextVNode as a, toDisplayString as i, createElementVNode as m } from "vue";
2
+ import { I as N, U as s } from "./main-65efBfek.js";
10
3
  import "vue-router";
11
4
  import "./assets/intro.js-DxWjEdp_.js";
12
- const V = /* @__PURE__ */ r("i", { class: "fa fa-edit" }, null, -1), g = /* @__PURE__ */ r("i", { class: "fa fa-copy" }, null, -1), B = /* @__PURE__ */ r("i", { class: "fa fa-chevron-left" }, null, -1), I = /* @__PURE__ */ C({
5
+ const V = /* @__PURE__ */ m("i", { class: "fa fa-edit" }, null, -1), g = /* @__PURE__ */ m("i", { class: "fa fa-copy" }, null, -1), B = /* @__PURE__ */ m("i", { class: "fa fa-chevron-left" }, null, -1), T = /* @__PURE__ */ C({
13
6
  __name: "Detail",
14
7
  props: {
15
8
  route: {},
@@ -19,18 +12,18 @@ const V = /* @__PURE__ */ r("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
19
12
  },
20
13
  emits: ["copy", "edit", "close"],
21
14
  setup(_, { emit: f }) {
22
- let i = f, u = _, { route: D, table: p, set: s, next: w } = h(u), d = (o) => {
23
- i("copy", s.value[p.value.name][0], o);
15
+ let n = f, u = _, { route: D, table: r, set: p, next: U } = h(u), d = (o) => {
16
+ n("copy", p.value[r.value.name][0], o);
24
17
  }, y = (o) => {
25
- i("edit", s.value[p.value.name][0], o);
18
+ n("edit", p.value[r.value.name][0], o);
26
19
  }, k = () => {
27
- i("close");
20
+ n("close");
28
21
  };
29
- return (o, E) => {
30
- const n = v("el-button");
22
+ return (o, w) => {
23
+ const l = v("el-button");
31
24
  return x(), b(e(N), { padding: 5 }, {
32
25
  default: t(() => [
33
- l(n, {
26
+ c(l, {
34
27
  type: "primary",
35
28
  onClick: e(y)
36
29
  }, {
@@ -38,11 +31,11 @@ const V = /* @__PURE__ */ r("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
38
31
  V
39
32
  ]),
40
33
  default: t(() => [
41
- c(" " + a(e(m)("common.modify")), 1)
34
+ a(" " + i(e(s)("common.modify")), 1)
42
35
  ]),
43
36
  _: 1
44
37
  }, 8, ["onClick"]),
45
- l(n, {
38
+ c(l, {
46
39
  type: "primary",
47
40
  plain: "",
48
41
  onClick: e(d)
@@ -51,16 +44,16 @@ const V = /* @__PURE__ */ r("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
51
44
  g
52
45
  ]),
53
46
  default: t(() => [
54
- c(" " + a(e(m)("common.copy")), 1)
47
+ a(" " + i(e(s)("common.copy")), 1)
55
48
  ]),
56
49
  _: 1
57
50
  }, 8, ["onClick"]),
58
- l(n, { onClick: e(k) }, {
51
+ c(l, { onClick: e(k) }, {
59
52
  icon: t(() => [
60
53
  B
61
54
  ]),
62
55
  default: t(() => [
63
- c(" " + a(e(m)("common.back")), 1)
56
+ a(" " + i(e(s)("common.back")), 1)
64
57
  ]),
65
58
  _: 1
66
59
  }, 8, ["onClick"])
@@ -71,5 +64,5 @@ const V = /* @__PURE__ */ r("i", { class: "fa fa-edit" }, null, -1), g = /* @__P
71
64
  }
72
65
  });
73
66
  export {
74
- I as default
67
+ T as default
75
68
  };
@@ -0,0 +1,55 @@
1
+ import { defineComponent as g, toRefs as x, computed as r, resolveComponent as h, openBlock as o, createElementBlock as a, Fragment as V, renderList as k, unref as b, createBlock as B, normalizeStyle as C, withCtx as N, createTextVNode as S, toDisplayString as n, createCommentVNode as w } from "vue";
2
+ import { f as s, X as D, k as E } from "./main-65efBfek.js";
3
+ const z = { class: "text-dictionary" }, F = {
4
+ key: 0,
5
+ class: "suffix"
6
+ }, j = /* @__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: L, field: f, set: R, modelValue: d } = x(m), t = r({
19
+ get() {
20
+ return d.value;
21
+ },
22
+ set(e) {
23
+ u("update:modelValue", e), u("change", e);
24
+ }
25
+ }), p = r(() => {
26
+ if (t.value == null)
27
+ return [];
28
+ if (s.isNumber(t.value))
29
+ return [t.value];
30
+ if (s.isBoolean(t.value))
31
+ return [t.value];
32
+ let e = t.value.toString();
33
+ return D.isEmpty(e) ? [] : e.split(",");
34
+ }), _ = r(() => E.fromValues(p.value, f.value.control.data.data, "value", "text"));
35
+ return (e, T) => {
36
+ const v = h("el-tag");
37
+ return o(), a("div", z, [
38
+ (o(!0), a(V, null, k(b(_), (l, y) => (o(), B(v, {
39
+ type: "info",
40
+ style: C({ color: l.color }),
41
+ key: y
42
+ }, {
43
+ default: N(() => [
44
+ S(n(l.text) + " ", 1),
45
+ l.suffix ? (o(), a("span", F, "(" + n(l.suffix) + ")", 1)) : w("", !0)
46
+ ]),
47
+ _: 2
48
+ }, 1032, ["style"]))), 128))
49
+ ]);
50
+ };
51
+ }
52
+ });
53
+ export {
54
+ j as default
55
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as f, toRefs as V, computed as _, resolveComponent as b, openBlock as y, createBlock as h, 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 { z as K } from "./main-65efBfek.js";
3
+ const S = /* @__PURE__ */ f({
4
+ __name: "Email",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ set: {},
10
+ row: {},
11
+ modelValue: {}
12
+ },
13
+ emits: ["submit", "change", "update:modelValue"],
14
+ setup(i, { emit: s }) {
15
+ let o = s, u = i, { table: d, field: t, set: z, modelValue: p } = V(u), r = () => {
16
+ o("submit");
17
+ }, l = _({
18
+ get() {
19
+ return p.value;
20
+ },
21
+ set(a) {
22
+ o("update:modelValue", a), o("change", a);
23
+ }
24
+ });
25
+ return (a, n) => {
26
+ const c = b("el-input");
27
+ return y(), h(c, {
28
+ type: "email",
29
+ disabled: e(t).control.readonly,
30
+ placeholder: e(K)(e(d).name, e(t).name),
31
+ onKeyup: x(e(r), ["enter", "native"]),
32
+ modelValue: e(l),
33
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => g(l) ? l.value = m : l = m)
34
+ }, k({ _: 2 }, [
35
+ e(t).suffix ? {
36
+ name: "append",
37
+ fn: v(() => [
38
+ w(C(e(t).suffix), 1)
39
+ ]),
40
+ key: "0"
41
+ } : void 0
42
+ ]), 1032, ["disabled", "placeholder", "onKeyup", "modelValue"]);
43
+ };
44
+ }
45
+ });
46
+ export {
47
+ S as default
48
+ };
@@ -1,26 +1,19 @@
1
- import { defineComponent as J, toRefs as P, ref as T, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as h, unref as e, withCtx as r, createElementVNode as s, normalizeClass as x, Fragment as L, renderList as q, createBlock as g, toDisplayString as _, createTextVNode as w, createCommentVNode as S } from "vue";
2
- import { useRoute as A, useRouter as G } from "vue-router";
3
- import "./assets/underscore-B0BCaBxV.js";
4
- import "./assets/underscore.string-DVXD2SZo.js";
5
- import "./assets/clone-BZn0cTAu.js";
6
- import "./assets/file-saver-CwlpTZSc.js";
7
- import "./assets/@monaco-editor-BCDRi0Ti.js";
8
- import "./assets/moment-h96o7c8I.js";
9
- import { J as H, b as I, B as c, t as K, h as M, c as O } from "./main-BS_9gx1M.js";
10
- import "./assets/liquidjs-C-LVcoaY.js";
1
+ import { defineComponent as j, toRefs as P, ref as T, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as h, unref as e, withCtx as r, createElementVNode as s, normalizeClass as $, Fragment as q, renderList as x, createBlock as y, toDisplayString as _, createTextVNode as w, createCommentVNode as S } from "vue";
2
+ import { useRoute as W, useRouter as A } from "vue-router";
3
+ import { y as G, b as H, n as c, U as I, L as J, l as K } from "./main-65efBfek.js";
11
4
  import "./assets/intro.js-DxWjEdp_.js";
12
- import { _ as Q } from "./SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js";
13
- const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ */ s("i", { class: "fa fa-list" }, null, -1), Y = [
5
+ import { _ as M } from "./SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js";
6
+ const O = { class: "file-layout" }, Q = { class: "toolbar" }, X = /* @__PURE__ */ s("i", { class: "fa fa-list" }, null, -1), Y = [
14
7
  X
15
8
  ], Z = /* @__PURE__ */ s("i", { class: "fa fa-image" }, null, -1), ee = [
16
9
  Z
17
10
  ], te = {
18
11
  key: 0,
19
12
  class: "files-image"
20
- }, oe = { class: "file-image" }, ae = ["src"], le = { class: "file-title" }, se = { class: "file-name" }, ne = ["src", "alt"], re = { class: "file-title" }, ie = {
13
+ }, ae = { class: "file-image" }, oe = ["src"], le = { class: "file-title" }, se = { class: "file-name" }, ne = ["src", "alt"], re = { class: "file-title" }, ie = {
21
14
  key: 2,
22
15
  class: "not-support"
23
- }, Ce = /* @__PURE__ */ J({
16
+ }, fe = /* @__PURE__ */ j({
24
17
  __name: "File",
25
18
  props: {
26
19
  searchData: {},
@@ -32,67 +25,67 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ *
32
25
  set: {}
33
26
  },
34
27
  setup(z) {
35
- let B = z, { schema: F, table: n, layout: i, next: d, set: b, searchData: ue } = P(B), f = A(), v = G(), k = T(), C = (o) => {
36
- let a = { type: "fileLayout", value: o };
37
- M.post("/user/config", a).then((y) => {
38
- c.fileLayout = o;
28
+ let F = z, { schema: N, table: n, layout: i, next: d, set: b, searchData: ue } = P(F), f = W(), v = A(), k = T(), C = (a) => {
29
+ let o = { type: "fileLayout", value: a };
30
+ J.post("/user/config", o).then((g) => {
31
+ c.fileLayout = a;
39
32
  });
40
- }, N = (o) => {
41
- let a = { ...f.query };
42
- a.page = o, v.push({ path: d.value.paging.route, query: a });
43
- }, V = () => {
33
+ }, V = (a) => {
44
34
  let o = { ...f.query };
45
- o.page = "1", o.condition = O.encode(k.value);
46
- let a = { path: d.value.paging.route, query: o };
47
- v.push(a);
35
+ o.page = a, v.push({ path: d.value.paging.route, query: o });
36
+ }, B = () => {
37
+ let a = { ...f.query };
38
+ a.page = "1", a.condition = K.encode(k.value);
39
+ let o = { path: d.value.paging.route, query: a };
40
+ v.push(o);
48
41
  };
49
- return (o, a) => {
50
- const y = p("router-link"), D = p("el-table-column"), R = p("el-table"), E = p("el-button"), j = p("el-pagination");
51
- return l(), u("div", U, [
52
- h(e(H), {
53
- title: e(I)(o.module.type, o.module.name)
42
+ return (a, o) => {
43
+ const g = p("router-link"), D = p("el-table-column"), R = p("el-table"), E = p("el-button"), U = p("el-pagination");
44
+ return l(), u("div", O, [
45
+ h(e(G), {
46
+ title: e(H)(a.module.type, a.module.name)
54
47
  }, {
55
48
  operation: r(() => [
56
- s("div", W, [
49
+ s("div", Q, [
57
50
  s("a", {
58
- class: x({ active: e(c).fileLayout == "list" }),
59
- onClick: a[0] || (a[0] = (t) => e(C)("list"))
51
+ class: $({ active: e(c).fileLayout == "list" }),
52
+ onClick: o[0] || (o[0] = (t) => e(C)("list"))
60
53
  }, Y, 2),
61
54
  s("a", {
62
- class: x({ active: e(c).fileLayout == "image" }),
63
- onClick: a[1] || (a[1] = (t) => e(C)("image"))
55
+ class: $({ active: e(c).fileLayout == "image" }),
56
+ onClick: o[1] || (o[1] = (t) => e(C)("image"))
64
57
  }, ee, 2)
65
58
  ])
66
59
  ]),
67
60
  append: r(() => [
68
61
  e(c).fileLayout == "image" ? (l(), u("div", te, [
69
- (l(!0), u(L, null, q(e(b)[e(n).name], (t, $) => (l(), g(y, {
62
+ (l(!0), u(q, null, x(e(b)[e(n).name], (t, L) => (l(), y(g, {
70
63
  class: "file",
71
64
  to: { path: e(d).detail.route, query: { id: t[e(n).key.name], m: e(f).query.m } },
72
- key: $
65
+ key: L
73
66
  }, {
74
67
  default: r(() => [
75
- s("div", oe, [
68
+ s("div", ae, [
76
69
  s("img", {
77
70
  src: t[e(i).url],
78
71
  alt: ""
79
- }, null, 8, ae)
72
+ }, null, 8, oe)
80
73
  ]),
81
74
  s("div", le, _(t[e(i).name]), 1)
82
75
  ]),
83
76
  _: 2
84
77
  }, 1032, ["to"]))), 128))
85
- ])) : e(c).fileLayout == "list" ? (l(), g(R, {
78
+ ])) : e(c).fileLayout == "list" ? (l(), y(R, {
86
79
  key: 1,
87
80
  class: "files-list",
88
81
  border: "",
89
82
  data: e(b)[e(n).name]
90
83
  }, {
91
84
  empty: r(() => [
92
- w(_(e(K)("common.no_data")), 1)
85
+ w(_(e(I)("common.no_data")), 1)
93
86
  ]),
94
87
  default: r(() => [
95
- (l(!0), u(L, null, q(e(n).show, (t, $) => (l(), g(D, {
88
+ (l(!0), u(q, null, x(e(n).show, (t, L) => (l(), y(D, {
96
89
  "show-overflow-tooltip": "",
97
90
  sortable: e(n) ? "custom" : !1,
98
91
  "min-width": "180",
@@ -119,12 +112,12 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ *
119
112
  }, 8, ["data"])) : (l(), u("div", ie, "未支持的文件布局:" + _(e(c).fileLayout), 1))
120
113
  ]),
121
114
  default: r(() => [
122
- e(n).search.length > 0 ? (l(), g(Q, {
115
+ e(n).search.length > 0 ? (l(), y(M, {
123
116
  key: 0,
124
- schema: e(F),
117
+ schema: e(N),
125
118
  table: e(n),
126
119
  search: e(k),
127
- onSubmit: e(V)
120
+ onSubmit: e(B)
128
121
  }, null, 8, ["schema", "table", "search", "onSubmit"])) : S("", !0)
129
122
  ]),
130
123
  _: 1
@@ -134,7 +127,7 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ *
134
127
  icon: "el-icon-plus"
135
128
  }, {
136
129
  default: r(() => [
137
- h(y, {
130
+ h(g, {
138
131
  to: { path: e(d).insert.route, query: { m: e(f).query.m } }
139
132
  }, {
140
133
  default: r(() => [
@@ -145,18 +138,18 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = /* @__PURE__ *
145
138
  ]),
146
139
  _: 1
147
140
  }),
148
- h(j, {
141
+ h(U, {
149
142
  background: "",
150
143
  layout: "total, prev, pager, next, jumper",
151
144
  "current-page": e(i).page,
152
145
  "page-size": e(i).pageSize,
153
146
  total: e(i).count,
154
- onCurrentChange: e(N)
147
+ onCurrentChange: e(V)
155
148
  }, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
156
149
  ]);
157
150
  };
158
151
  }
159
152
  });
160
153
  export {
161
- Ce as default
154
+ fe as default
162
155
  };
@@ -0,0 +1,9 @@
1
+ import { e } from "./main-65efBfek.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
+ };
@@ -0,0 +1,4 @@
1
+ import { Z as f } from "./main-65efBfek.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { p as f } from "./main-65efBfek.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,173 @@
1
+ import { defineComponent as P, ref as u, onMounted as S, computed as j, watch as D, resolveComponent as c, openBlock as d, createElementBlock as U, createVNode as g, unref as l, withCtx as p, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as C, isRef as $, withKeys as L, normalizeClass as G, withModifiers as Q, createTextVNode as T, Fragment as W, renderList as X, nextTick as A } from "vue";
2
+ import { useRoute as Z } from "vue-router";
3
+ import { G as J, m as w, P as Y, U as i, X as ee, $ as K, W as te, r as M, A as le } from "./main-65efBfek.js";
4
+ const oe = { class: "login-container" }, re = { class: "title-container" }, se = { class: "title" }, ne = /* @__PURE__ */ n("span", { class: "svg-container" }, [
5
+ /* @__PURE__ */ n("i", { class: "fa fa-user" })
6
+ ], -1), ae = /* @__PURE__ */ n("span", { class: "svg-container" }, [
7
+ /* @__PURE__ */ n("i", { class: "fa fa-key" })
8
+ ], -1), ie = { class: "btn-others" }, ue = ["href"], de = ["innerHTML"], _e = /* @__PURE__ */ P({
9
+ __name: "Index",
10
+ setup(fe) {
11
+ let a = u({ id: "", secret: "" }), f = u("password"), s = u(!1), _ = u(!1), R = u(), V = u(), h = u(), x = Z(), F = {
12
+ id: [{
13
+ required: !0,
14
+ trigger: "blur",
15
+ validator: (t, e, r) => {
16
+ e ? e.indexOf("@") > -1 ? ee.isEmail(e) ? r() : r(new Error("邮箱格式不正确")) : r() : r(new Error(i("common.username_or_email") + " " + i("common.should_not_null")));
17
+ }
18
+ }]
19
+ // secret: [{required: true, trigger: 'blur', validator: validateSecret}]
20
+ }, N = (t) => {
21
+ t.key && t.key.length == 1 && (t.shiftKey && t.key >= "a" && t.key <= "z" || !t.shiftKey && t.key >= "A" && t.key <= "Z" ? s.value = !0 : s.value = !1), t.key == "CapsLock" && s.value == !0 && (s.value = !1);
22
+ }, B = () => {
23
+ f.value == "password" ? f.value = "" : f.value = "password", A(() => {
24
+ h.value.focus();
25
+ });
26
+ }, E = async (t) => {
27
+ _.value = !0, R.value.validate(async (e) => {
28
+ if (!e)
29
+ return _.value = !1, !1;
30
+ (await K.sso.create(t)).login(a.value).then(({ data: m }) => {
31
+ te.getBackUrl() ? M.toBackUrl() : M.to("/");
32
+ }).finally(() => {
33
+ A(() => {
34
+ _.value = !1;
35
+ });
36
+ });
37
+ });
38
+ }, O = async (t) => {
39
+ let e = await K.sso.create(t), r = x.query.return_url, m = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${r}`;
40
+ return e.loginUrl(le.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(m));
41
+ }, q = (t) => Object.keys(t).reduce((e, r) => (e[r] = t[r], e), {});
42
+ S(async () => {
43
+ J.setI18nTitle("common.login");
44
+ for (let t = 0; t < w.ssos.length; t++) {
45
+ let e = w.ssos[t];
46
+ e.loginUrl = await O(e.type);
47
+ }
48
+ y.value != null && (a.value.id == "" ? V.value.focus() : a.value.secret == "" && h.value.focus());
49
+ });
50
+ let y = j(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
51
+ return D(() => x, (t) => {
52
+ debugger;
53
+ const e = t.query;
54
+ e && q(e);
55
+ }), (t, e) => {
56
+ const r = c("el-input"), m = c("el-form-item"), b = c("el-tooltip"), I = c("el-button"), z = c("router-link"), H = c("el-form");
57
+ return d(), U("div", oe, [
58
+ g(H, {
59
+ ref_key: "loginFormRef",
60
+ ref: R,
61
+ autocomplete: "on",
62
+ "label-position": "left",
63
+ model: l(a),
64
+ rules: l(F)
65
+ }, {
66
+ default: p(() => [
67
+ n("div", re, [
68
+ n("h3", se, k(l(Y)("title")), 1)
69
+ ]),
70
+ l(y) ? (d(), v(m, {
71
+ key: 0,
72
+ prop: "id"
73
+ }, {
74
+ default: p(() => [
75
+ ne,
76
+ g(r, {
77
+ ref_key: "idRef",
78
+ ref: V,
79
+ placeholder: l(i)("common.username_or_email"),
80
+ name: "id",
81
+ type: "text",
82
+ tabindex: "1",
83
+ autocomplete: "on",
84
+ modelValue: l(a).id,
85
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => l(a).id = o)
86
+ }, null, 8, ["placeholder", "modelValue"])
87
+ ]),
88
+ _: 1
89
+ })) : C("", !0),
90
+ l(y) ? (d(), v(b, {
91
+ key: 1,
92
+ content: "Caps lock is On",
93
+ placement: "right",
94
+ manual: "",
95
+ modelValue: l(s),
96
+ "onUpdate:modelValue": e[5] || (e[5] = (o) => $(s) ? s.value = o : s = o)
97
+ }, {
98
+ default: p(() => [
99
+ g(m, { prop: "secret" }, {
100
+ default: p(() => [
101
+ ae,
102
+ (d(), v(r, {
103
+ ref_key: "secretRef",
104
+ ref: h,
105
+ key: l(f),
106
+ type: l(f),
107
+ placeholder: l(i)("common.password"),
108
+ name: "secret",
109
+ tabindex: "2",
110
+ autocomplete: "on",
111
+ onKeyup: [
112
+ L(l(N), ["native"]),
113
+ e[2] || (e[2] = L((o) => l(E)("Bearer"), ["enter", "native"]))
114
+ ],
115
+ onBlur: e[1] || (e[1] = (o) => $(s) ? s.value = !1 : s = !1),
116
+ modelValue: l(a).secret,
117
+ "onUpdate:modelValue": e[3] || (e[3] = (o) => l(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) => l(B) && l(B)(...o))
123
+ }, [
124
+ n("i", {
125
+ class: G(l(f) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
126
+ }, null, 2)
127
+ ])
128
+ ]),
129
+ _: 1
130
+ })
131
+ ]),
132
+ _: 1
133
+ }, 8, ["modelValue"])) : C("", !0),
134
+ l(y) ? (d(), v(I, {
135
+ key: 2,
136
+ type: "primary",
137
+ class: "btn-login",
138
+ loading: l(_),
139
+ onClick: e[6] || (e[6] = Q((o) => l(E)("Bearer"), ["prevent"]))
140
+ }, {
141
+ default: p(() => [
142
+ T(k(l(i)("common.login")), 1)
143
+ ]),
144
+ _: 1
145
+ }, 8, ["loading"])) : C("", !0),
146
+ n("div", ie, [
147
+ (d(!0), U(W, null, X(l(w).ssos.filter((o) => o.type.toUpperCase() != "BEARER"), (o) => (d(), U("a", {
148
+ href: o.loginUrl
149
+ }, k(l(i)(o.text)), 9, ue))), 256)),
150
+ g(z, {
151
+ class: "btn-register",
152
+ to: "/register"
153
+ }, {
154
+ default: p(() => [
155
+ T(k(l(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: l(i)("sys.powered_by")
166
+ }, null, 8, de)
167
+ ]);
168
+ };
169
+ }
170
+ });
171
+ export {
172
+ _e as default
173
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js";
1
+ import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,70 @@
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 { X as N, U as x } from "./main-65efBfek.js";
3
+ const A = /* @__PURE__ */ C({
4
+ __name: "Index",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ set: {},
10
+ row: {},
11
+ config: {}
12
+ },
13
+ emits: ["submit", "change"],
14
+ setup(V, { emit: B }) {
15
+ let g = U(() => import("./TextLink-B4Q0zX1K.js")), k = V, { schema: u, table: s, field: l, set: d, row: a, config: m } = D(k), i = p(() => {
16
+ let o = l.value.control.type;
17
+ return m.value && m.value.control && m.value.control.type ? m.value.control.type : o;
18
+ }), _ = p(() => `text-${N.getDashName(i.value)}`), t = p({
19
+ get() {
20
+ return a.value[l.value.name];
21
+ },
22
+ set(o) {
23
+ a.value[l.value.name] = o;
24
+ }
25
+ });
26
+ return (o, n) => e(l).link ? (c(), f(e(g), {
27
+ key: 0,
28
+ schema: e(u),
29
+ table: e(s),
30
+ field: e(l),
31
+ set: e(d),
32
+ row: e(a)
33
+ }, {
34
+ default: v(() => [
35
+ (c(), f(y(e(_)), {
36
+ schema: e(u),
37
+ table: e(s),
38
+ field: e(l),
39
+ set: e(d),
40
+ row: e(a),
41
+ modelValue: e(t),
42
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => b(t) ? t.value = r : t = r)
43
+ }, {
44
+ default: v(() => [
45
+ w("div", null, h(e(x)("common.unsupported_text_control", e(i))), 1)
46
+ ]),
47
+ _: 1
48
+ }, 8, ["schema", "table", "field", "set", "row", "modelValue"]))
49
+ ]),
50
+ _: 1
51
+ }, 8, ["schema", "table", "field", "set", "row"])) : (c(), f(y(e(_)), {
52
+ key: 1,
53
+ schema: e(u),
54
+ table: e(s),
55
+ field: e(l),
56
+ set: e(d),
57
+ row: e(a),
58
+ modelValue: e(t),
59
+ "onUpdate:modelValue": n[1] || (n[1] = (r) => b(t) ? t.value = r : t = r)
60
+ }, {
61
+ default: v(() => [
62
+ w("div", null, h(e(x)("common.unsupported_text_control", e(i))), 1)
63
+ ]),
64
+ _: 1
65
+ }, 8, ["schema", "table", "field", "set", "row", "modelValue"]));
66
+ }
67
+ });
68
+ export {
69
+ A as default
70
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js";
1
+ import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./main-65efBfek.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js";
1
+ import { _ as f } from "./Index.vue_vue_type_style_index_0_lang-DVYceMeD.js";
2
2
  export {
3
3
  f as default
4
4
  };