halo-pc 1.0.40 → 1.0.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/dist/{Article-CqtkXVmQ.js → Article-BMW_FzdK.js} +32 -31
  2. package/dist/{ArticleFooter-DeJdTtZD.js → ArticleFooter-7iPkMQaX.js} +13 -12
  3. package/dist/Autocomplete-B6Mwp9rT.js +50 -0
  4. package/dist/{Autocomplete-0fxB2_FC.js → Autocomplete-C-El55Lz.js} +1 -1
  5. package/dist/{Autocomplete-LQiKcvz1.js → Autocomplete-PZTjEBIx.js} +11 -10
  6. package/dist/{CSharp-BIFRQLaK.js → CSharp-BQUrQwua.js} +1 -1
  7. package/dist/{Calender-DPNTn-S4.js → Calender-CJXR7uhM.js} +2 -2
  8. package/dist/Callback-CyDW9WU2.js +21 -0
  9. package/dist/{Cascader-Vhc81TDV.js → Cascader-CFc_8QSm.js} +18 -17
  10. package/dist/Cascader-DMQjalNv.js +47 -0
  11. package/dist/{Checkbox-D9Sp6ZGQ.js → Checkbox-aU8e779g.js} +12 -11
  12. package/dist/{Checkbox-CIim5NiB.js → Checkbox-pV01os-T.js} +1 -1
  13. package/dist/Code-C0Kxulod.js +4 -0
  14. package/dist/Code-C4pIa8BE.js +60 -0
  15. package/dist/Code-CCJx9RSm.js +42 -0
  16. package/dist/{Code-yDKaH1uF.js → Code-kDBbVC1W.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-36NN7tgP.js +65 -0
  18. package/dist/Column-BebDf5Z9.js +75 -0
  19. package/dist/{Comment-tU2wBvGO.js → Comment-BgfD9WtL.js} +25 -19
  20. package/dist/{Compare-DqvGyQWA.js → Compare-BZucuvFP.js} +9 -8
  21. package/dist/{Compare-D7Gz-lE9.js → Compare-D-Byn_Gq.js} +11 -10
  22. package/dist/Copy-DW4jSNQi.js +44 -0
  23. package/dist/Custom-DIF-RYi3.js +55 -0
  24. package/dist/{DataExport-BDftKI0U.js → DataExport-CyQy2xjO.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js → DataExport.vue_vue_type_script_setup_true_lang-C4n6xWcP.js} +28 -27
  26. package/dist/{DataImport-CRYaaQfA.js → DataImport-BVF83UsQ.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js → DataImport.vue_vue_type_script_setup_true_lang-BZhFLOqB.js} +31 -30
  28. package/dist/{Date-Dlh1_S7p.js → Date-CqpFvbYZ.js} +1 -1
  29. package/dist/{Date-DPPiYLWw.js → Date-g1XKWU4b.js} +8 -7
  30. package/dist/{DateRange-BgF_T3ls.js → DateRange-B2afkdbT.js} +6 -5
  31. package/dist/{DateTime-DP-VfmtN.js → DateTime-D_x_wBZR.js} +8 -7
  32. package/dist/{DateTime-CNjPeK9t.js → DateTime-Zi3vtH77.js} +1 -1
  33. package/dist/{DateTimeRange-DbEpW4nB.js → DateTimeRange-BFWM_U7H.js} +10 -9
  34. package/dist/{Daterange-DHVjhrK9.js → Daterange-tXA0b0Ak.js} +5 -4
  35. package/dist/{Decimal-BDEWVSsK.js → Decimal-DKQ38XS_.js} +1 -1
  36. package/dist/{Delete-Bl0GmthL.js → Delete-BOkBpAGN.js} +20 -19
  37. package/dist/{Detail-BozyhOTt.js → Detail-SWgERqKG.js} +11 -10
  38. package/dist/{Dictionary-CJwZPQz6.js → Dictionary-Xsj_Qorw.js} +15 -9
  39. package/dist/{Email-D5X1SzuJ.js → Email-DILPnLkb.js} +12 -11
  40. package/dist/{File-DixK0K7p.js → File-BDUTK7hV.js} +40 -39
  41. package/dist/Image-Yx3ZHHJK.js +9 -0
  42. package/dist/Index-BTa4YIN9.js +174 -0
  43. package/dist/Index-BWukqxQl.js +4 -0
  44. package/dist/Index-BahY1OIJ.js +4 -0
  45. package/dist/Index-C9ffFYsl.js +4 -0
  46. package/dist/{Index-j15c7lwJ.js → Index-CiQQmYeA.js} +1 -1
  47. package/dist/Index-DG7Hovsx.js +4 -0
  48. package/dist/{Index-D2FOeoNQ.js → Index-DeYqTT9Q.js} +1 -1
  49. package/dist/{Index-DbXgnBz6.js → Index-WVLyjyqt.js} +16 -15
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js → Index.vue_vue_type_script_setup_true_lang-42C0EEto.js} +13 -12
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js → Index.vue_vue_type_script_setup_true_lang-DWMiv0dC.js} +21 -15
  52. package/dist/{Install-WR3b4IfI.js → Install-DW5uDsXF.js} +14 -13
  53. package/dist/{Int-GGWiUqO2.js → Int-BM4sbZvh.js} +14 -13
  54. package/dist/{Int-CWsDtoxE.js → Int-BrFE_Hmm.js} +10 -9
  55. package/dist/List-DWjTqrJR.js +72 -0
  56. package/dist/Maintaince-DF3nu9Jd.js +20 -0
  57. package/dist/{Markdown-nVfQs7kc.js → Markdown-BC8l7O_U.js} +1 -1
  58. package/dist/{Month-CxKMP4kO.js → Month-DRa9o-WC.js} +1 -1
  59. package/dist/{Month-DnYlAi7k.js → Month-QG6OiiLU.js} +11 -10
  60. package/dist/Month-Y0kLXgV7.js +38 -0
  61. package/dist/{Normal-RcqEyIFN.js → Normal-CSy3DFPH.js} +50 -49
  62. package/dist/{Paging-DrdGzxeP.js → Paging-BYccIXmC.js} +43 -42
  63. package/dist/{PagingHeader-C8UpM9Kj.js → PagingHeader-U-oJ1TQE.js} +16 -15
  64. package/dist/{PagingRow-oQWCofO4.js → PagingRow-BmokRXX3.js} +14 -13
  65. package/dist/{Racebar-CvoF2ySW.js → Racebar-BvFHNGb8.js} +28 -22
  66. package/dist/{Radio-DhjfkC14.js → Radio-CjfXrTOE.js} +1 -1
  67. package/dist/{Register-B0Vx60wY.js → Register-BG-3_Q2E.js} +55 -54
  68. package/dist/RichText-C88f59ao.js +47 -0
  69. package/dist/{SearchForm-BHVnQaSL.js → SearchForm-C0zqD7UP.js} +1 -1
  70. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js → SearchForm.vue_vue_type_style_index_0_lang-Bv1_VqSl.js} +46 -45
  71. package/dist/{SearchHeader-C9yovXli.js → SearchHeader-e2LOidgU.js} +1 -1
  72. package/dist/{SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js → SearchHeader.vue_vue_type_style_index_0_lang-DebuWiG6.js} +1 -1
  73. package/dist/{Select-vgwpegBi.js → Select-CfIvGDPS.js} +21 -20
  74. package/dist/{Select-CX4i5KPQ.js → Select-CvP_zGxM.js} +1 -1
  75. package/dist/{Select-BDoCqD3I.js → Select-Cz6MPDCC.js} +11 -10
  76. package/dist/{Single-C3629BdC.js → Single-p-8OfzhQ.js} +101 -100
  77. package/dist/{Statistic-WPezAlUn.js → Statistic-BIKfbZCI.js} +32 -31
  78. package/dist/{Stock-EPM3j2f_.js → Stock-B7RP-SuF.js} +1 -1
  79. package/dist/{Stock-BD5Acf8y.js → Stock-BhOP8J0c.js} +1 -1
  80. package/dist/{Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js → Stock.vue_vue_type_style_index_0_lang-Dpw8BlLu.js} +20 -19
  81. package/dist/{Switch-B0XN4K-9.js → Switch-BcDhe4_E.js} +1 -1
  82. package/dist/{Table-BklK1hSh.js → Table-Cy7FarYr.js} +71 -70
  83. package/dist/{Table-JFdOXuME.js → Table-DK-TaejU.js} +58 -57
  84. package/dist/Text-B580p9od.js +49 -0
  85. package/dist/Text-D89aQLxL.js +4 -0
  86. package/dist/{Text-DrJkdxZF.js → Text-YNB0It4-.js} +13 -12
  87. package/dist/Text.vue_vue_type_style_index_0_lang-Dokzd_qM.js +59 -0
  88. package/dist/{TextLink-BnijIoEJ.js → TextLink-CI-AIgdm.js} +9 -8
  89. package/dist/{Textarea-3SWLqQvO.js → Textarea-86C9lCtg.js} +1 -1
  90. package/dist/{Time-C3qlNZkJ.js → Time-BgArfSc6.js} +10 -9
  91. package/dist/{Timeline-B6hUIYhL.js → Timeline-O_jWjdxT.js} +19 -13
  92. package/dist/{Tree-JexLPBXX.js → Tree-BfFRW-xZ.js} +41 -35
  93. package/dist/{Tree-DBvFF4Rj.js → Tree-DayADkaC.js} +73 -72
  94. package/dist/{TreeNode-BOWB2WN9.js → TreeNode-BZp8w6M5.js} +10 -9
  95. package/dist/{Update-CDLYYwgj.js → Update-Bcdz87R4.js} +6 -5
  96. package/dist/{UpdateChild-DUG7pAuO.js → UpdateChild-YzPMnj_r.js} +20 -19
  97. package/dist/{Upload-B2hbxDsT.js → Upload-DU5VOqXj.js} +47 -46
  98. package/dist/Upload-Dj5nSsug.js +71 -0
  99. package/dist/{Year-BUF60NmB.js → Year-B3E0kOiA.js} +8 -7
  100. package/dist/{Year-BRsJ7b1J.js → Year-CcbzIuwy.js} +1 -1
  101. package/dist/assets/{clipboard-ClN4QccS.js → clipboard-DjQPoCBJ.js} +3 -1
  102. package/dist/assets/clone-BZn0cTAu.js +134 -0
  103. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  104. package/dist/assets/liquidjs-BfOWWjtJ.js +2907 -0
  105. package/dist/assets/moment-h96o7c8I.js +2578 -0
  106. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  107. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  108. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  109. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  110. package/dist/main-DxH9UW19.js +10723 -0
  111. package/dist/main.js +60 -59
  112. package/dist/style.css +1 -1
  113. package/esm/coms/drivers/@types/CrudProps.d.ts +2 -2
  114. package/package.json +1 -1
  115. package/dist/Autocomplete-BfhYwZ5G.js +0 -49
  116. package/dist/Callback-Ci5KrWOC.js +0 -20
  117. package/dist/Cascader-CnOEgPDf.js +0 -41
  118. package/dist/Code-BEjqqeFZ.js +0 -54
  119. package/dist/Code-BSrEPuXk.js +0 -4
  120. package/dist/Code-Dp1-k8sW.js +0 -36
  121. package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +0 -59
  122. package/dist/Column-B0ViSver.js +0 -69
  123. package/dist/Copy-Dm1LH9qB.js +0 -43
  124. package/dist/Custom-CLKAPWEo.js +0 -49
  125. package/dist/Image-BrelhCGo.js +0 -9
  126. package/dist/Index-BeM6hKX9.js +0 -4
  127. package/dist/Index-BkfLyqpm.js +0 -173
  128. package/dist/Index-D8UVsXwf.js +0 -4
  129. package/dist/Index-FL-dxfFB.js +0 -4
  130. package/dist/Index-fWOqfFkG.js +0 -4
  131. package/dist/List-kRCsHp6d.js +0 -71
  132. package/dist/Maintaince-BG8MUi3A.js +0 -14
  133. package/dist/Month-B1icZmL4.js +0 -37
  134. package/dist/RichText-4wrLw9cy.js +0 -41
  135. package/dist/Text-CNtHdodK.js +0 -4
  136. package/dist/Text-KAuEjP7I.js +0 -48
  137. package/dist/Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js +0 -53
  138. package/dist/Upload-mlk6Y4Po.js +0 -65
  139. package/dist/main-DymfKjqO.js +0 -16480
@@ -1,20 +0,0 @@
1
- import { defineComponent as o } from "vue";
2
- import { useRouter as n, useRoute as i } from "vue-router";
3
- import { l as s, I as u } from "./main-DymfKjqO.js";
4
- const _ = /* @__PURE__ */ o({
5
- __name: "Callback",
6
- setup(a) {
7
- let r = n(), t = i().query;
8
- return (async () => {
9
- if (!t.type) {
10
- s.error("缺失type参数");
11
- return;
12
- }
13
- let e = await u.sso.createAsync(t.type.toString());
14
- t.identity = JSON.parse(t.identity.toString()), e.login(t), r.push(t.return_url.toString());
15
- })(), (e, l) => " 登录完毕,处理回调中... ";
16
- }
17
- });
18
- export {
19
- _ as default
20
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as y, toRefs as k, computed as p, openBlock as e, createElementBlock as t, Fragment as d, renderList as m, unref as f, normalizeStyle as x, toDisplayString as h, createCommentVNode as b } from "vue";
2
- import { d as B } from "./main-DymfKjqO.js";
3
- const C = { class: "text-cascader" }, S = {
4
- key: 0,
5
- class: "cascader-seperator"
6
- }, I = /* @__PURE__ */ y({
7
- __name: "Cascader",
8
- props: {
9
- schema: {},
10
- table: {},
11
- field: {},
12
- set: {},
13
- row: {},
14
- modelValue: {}
15
- },
16
- emits: ["submit", "change"],
17
- setup(_, { emit: V }) {
18
- let v = _, { table: w, field: s, set: E, row: z, modelValue: a } = k(v), u = p(() => s.value.control.multiple ? a.value ? a.value.toString().split(",") : [] : a.value), c = p(() => {
19
- if (u.value.length > 0) {
20
- let i = s.value.control.data.data, n = [];
21
- return u.value.forEach((r) => {
22
- let l = B.tree.getParentsById(r, "value", i, "children", !0);
23
- l.length > 0 && n.push(l);
24
- }), n;
25
- }
26
- return [];
27
- });
28
- return (i, n) => (e(), t("div", C, [
29
- (e(!0), t(d, null, m(f(c), (r, l) => (e(), t("span", null, [
30
- (e(!0), t(d, null, m(r, (o, g) => (e(), t("span", {
31
- style: x({ color: o.color }),
32
- key: o.value
33
- }, h(o.text) + h(g == r.length - 1 ? "" : " / "), 5))), 128)),
34
- l != f(c).length - 1 ? (e(), t("span", S, ",")) : b("", !0)
35
- ]))), 256))
36
- ]));
37
- }
38
- });
39
- export {
40
- I as default
41
- };
@@ -1,54 +0,0 @@
1
- import { defineComponent as b, toRefs as h, ref as F, computed as T, watch as _, openBlock as w, createBlock as N, unref as n, isRef as k } from "vue";
2
- import { M as x } from "./main-DymfKjqO.js";
3
- const M = /* @__PURE__ */ b({
4
- __name: "Code",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(d, { emit: g }) {
15
- let s = g, p = d, { table: c, field: a, set: y, row: i, modelValue: f } = h(p), o = F({ language: null, scrollTop: 0, lineNumbers: null, schema: null, category: null }), v = (e) => {
16
- let l = m(a.value.control.scrollTop);
17
- l && (i.value[l.name] = e);
18
- }, V = () => {
19
- let e = r(a.value.control.scrollTop);
20
- if (e && (o.value.scrollTop = parseInt(e)), o.value.lineNumbers = a.value.control.lineNumbers, a.value.control.languageField == null)
21
- o.value.language = a.value.control.language;
22
- else {
23
- let l = r(a.value.control.languageField);
24
- l && (o.value.language = l);
25
- }
26
- a.value.control.schema && (o.value.schema = a.value.control.schema, o.value.category = `${c.value.name}.${a.value.name}`);
27
- }, r = (e) => {
28
- let l = m(e);
29
- return l ? i.value[l.name] : null;
30
- }, m = (e) => e ? c.value.fields.find((u) => u.name == e) : null;
31
- V();
32
- let t = T({
33
- get() {
34
- return f.value ?? "";
35
- },
36
- set(e) {
37
- s("update:modelValue", e), s("change", e);
38
- }
39
- });
40
- return _(() => r(a.value.control.languageField), (e, l) => {
41
- o.value.language = e;
42
- }), (e, l) => (w(), N(n(x), {
43
- class: "control-code",
44
- border: "",
45
- options: n(o),
46
- onScroll: n(v),
47
- modelValue: n(t),
48
- "onUpdate:modelValue": l[0] || (l[0] = (u) => k(t) ? t.value = u : t = u)
49
- }, null, 8, ["options", "onScroll", "modelValue"]));
50
- }
51
- });
52
- export {
53
- M as default
54
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-CmkomJXY.js";
2
- export {
3
- f as default
4
- };
@@ -1,36 +0,0 @@
1
- import { defineComponent as v, toRefs as h, ref as i, openBlock as V, createBlock as y, unref as n, normalizeStyle as x, isRef as F } from "vue";
2
- import { M as _ } from "./main-DymfKjqO.js";
3
- const C = /* @__PURE__ */ v({
4
- __name: "Code",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- setup(s) {
14
- let f = s, { table: g, field: t, set: b, row: d, modelValue: a } = h(f), r = i(), o = i({ language: null, readonly: !0, lineNumbers: "off" }), m = () => t.value.control.height ? `height: ${t.value.control.height}px` : "min-height: 200px;", p = (e) => e ? g.value.fields.find((u) => u.name == e) : null, c = (e) => {
15
- let l = p(e);
16
- return l ? d.value[l.name] : null;
17
- };
18
- return (() => {
19
- if (r.value = m(), t.value.control.languageField == null)
20
- o.value.language = t.value.control.language;
21
- else {
22
- let e = c(t.value.control.languageField);
23
- e && (o.value.language = e);
24
- }
25
- })(), (e, l) => (V(), y(n(_), {
26
- class: "text-code",
27
- options: n(o),
28
- style: x(n(r)),
29
- modelValue: n(a),
30
- "onUpdate:modelValue": l[0] || (l[0] = (u) => F(a) ? a.value = u : a = u)
31
- }, null, 8, ["options", "style", "modelValue"]));
32
- }
33
- });
34
- export {
35
- C as default
36
- };
@@ -1,59 +0,0 @@
1
- import { defineComponent as C, toRefs as b, ref as d, onMounted as k, resolveComponent as i, openBlock as r, createElementBlock as u, createVNode as m, unref as e, isRef as h, withCtx as p, Fragment as c, renderList as w, createBlock as B, createTextVNode as _, toDisplayString as f, createCommentVNode as L } from "vue";
2
- import { v as M, M as N } from "./main-DymfKjqO.js";
3
- const E = { class: "ha-code-layout" }, q = /* @__PURE__ */ C({
4
- __name: "Code",
5
- props: {
6
- route: {},
7
- validateErrors: {},
8
- module: {},
9
- schema: {},
10
- table: {},
11
- layout: {},
12
- next: {},
13
- set: {},
14
- url: {},
15
- win: {}
16
- },
17
- emits: ["submit", "change"],
18
- setup(g, { emit: R }) {
19
- let v = g, { module: U, schema: A, table: D, layout: a, next: F, set: S } = b(v), n = d({}), t = d(), V = () => {
20
- t.value = a.value.languages[0];
21
- };
22
- return k(async () => {
23
- V();
24
- let s = await M.loadCodeLanguageAsync();
25
- for (let l of s)
26
- n.value[l.text] = l.suffix;
27
- }), (s, l) => {
28
- const x = i("el-radio"), y = i("el-radio-group");
29
- return r(), u("div", E, [
30
- m(y, {
31
- modelValue: e(t),
32
- "onUpdate:modelValue": l[0] || (l[0] = (o) => h(t) ? t.value = o : t = o)
33
- }, {
34
- default: p(() => [
35
- (r(!0), u(c, null, w(e(a).languages, (o) => (r(), B(x, { value: o }, {
36
- default: p(() => [
37
- _(f(o) + " ", 1),
38
- e(n)[o] ? (r(), u(c, { key: 0 }, [
39
- _("(" + f(e(n)[o]) + ")", 1)
40
- ], 64)) : L("", !0)
41
- ]),
42
- _: 2
43
- }, 1032, ["value"]))), 256))
44
- ]),
45
- _: 1
46
- }, 8, ["modelValue"]),
47
- m(e(N), {
48
- border: "",
49
- options: { language: e(n)[e(t)] },
50
- modelValue: e(a).codes[e(t)],
51
- "onUpdate:modelValue": l[1] || (l[1] = (o) => e(a).codes[e(t)] = o)
52
- }, null, 8, ["options", "modelValue"])
53
- ]);
54
- };
55
- }
56
- });
57
- export {
58
- q as _
59
- };
@@ -1,69 +0,0 @@
1
- import { defineComponent as M, toRefs as b, onMounted as D, computed as k, openBlock as r, createBlock as C, unref as e, withCtx as y, createElementBlock as s, Fragment as E, renderList as H, normalizeClass as L, createCommentVNode as i, createElementVNode as a, toDisplayString as m, resolveDynamicComponent as R, createVNode as S, createTextVNode as u } from "vue";
2
- import { U as h, d as _, z as F, H as P } from "./main-DymfKjqO.js";
3
- import "element-plus";
4
- import "vue-router";
5
- import "./assets/intro.js-Cg1adLK7.js";
6
- const T = {
7
- key: 0,
8
- class: "menus"
9
- }, $ = ["onClick"], j = { class: "title" }, q = {
10
- key: 1,
11
- class: "column-empty"
12
- }, Q = /* @__PURE__ */ M({
13
- __name: "Column",
14
- props: {
15
- view: {},
16
- url: {},
17
- win: {}
18
- },
19
- emits: ["loaded", "navigate"],
20
- setup(g, { expose: x, emit: U }) {
21
- let d = U, w = g, { url: p, view: c } = b(w), B = (l) => !0, N = (l) => !0, V = () => {
22
- v();
23
- }, v = () => {
24
- d("loaded", n.value.title);
25
- }, z = (l) => {
26
- let t = _.url.getUrl(l.url, { m: l.id });
27
- d("navigate", t);
28
- };
29
- D(() => {
30
- v();
31
- });
32
- let n = k(() => h.getMenuByUrl(p.value)), f = k(() => _.url.getPath(p.value));
33
- return x({ shouldLoad: B, shouldSpin: N, onRefresh: V }), (l, t) => (r(), C(e(F), null, {
34
- default: y(() => [
35
- e(n) ? (r(), s("div", T, [
36
- (r(!0), s(E, null, H(e(n).children, (o) => (r(), s("div", {
37
- class: "menu",
38
- key: o.id,
39
- onClick: (A) => e(z)(o)
40
- }, [
41
- o.icon ? (r(), s("i", {
42
- key: 0,
43
- class: L(o.icon)
44
- }, null, 2)) : i("", !0),
45
- a("div", j, m(o.title), 1)
46
- ], 8, $))), 128))
47
- ])) : i("", !0),
48
- (r(), C(R(e(c)))),
49
- (!e(n) || e(n).children == 0) && !e(c) ? (r(), s("div", q, [
50
- S(e(P), null, {
51
- default: y(() => t[0] || (t[0] = [
52
- u(" 此栏目页不存在子菜单或自定义部分视图,无内容可展示 ")
53
- ])),
54
- _: 1
55
- }),
56
- t[1] || (t[1] = u(" 可考虑以下任一选项:")),
57
- t[2] || (t[2] = a("br", null, null, -1)),
58
- u(" 1. 在 src/views 中实现自定义页面:" + m(e(f)), 1),
59
- t[3] || (t[3] = a("br", null, null, -1)),
60
- u(" 2. 在 src/coms/partials 中实现自定义首页部分视图:" + m(e(f)), 1)
61
- ])) : i("", !0)
62
- ]),
63
- _: 1
64
- }));
65
- }
66
- });
67
- export {
68
- Q as default
69
- };
@@ -1,43 +0,0 @@
1
- import { defineComponent as y, toRefs as g, computed as v, unref as l, renderSlot as s, openBlock as b, createElementBlock as C, createElementVNode as a } from "vue";
2
- import { l as p } from "./main-DymfKjqO.js";
3
- import { C as k } from "./assets/clipboard-ClN4QccS.js";
4
- const J = {
5
- key: 1,
6
- class: "copy-container"
7
- }, E = /* @__PURE__ */ y({
8
- __name: "Copy",
9
- props: {
10
- schema: {},
11
- table: {},
12
- field: {},
13
- set: {},
14
- row: {},
15
- modelValue: {}
16
- },
17
- setup(u) {
18
- let c = u, { table: w, field: r, set: N, row: S, modelValue: i } = g(c), d = (e) => JSON.stringify(JSON.parse(e), null, 2), f = () => o.value && r.value.control.type == "Json" ? d(o.value).replace(/"/g, "'") : o.value, n = () => {
19
- let e = new k(".btn-copy", { text: () => f() });
20
- e.on("success", function(t) {
21
- p.success("复制成功"), e.destroy();
22
- }), e.on("error", function(t) {
23
- p.error("复制失败"), e.destroy();
24
- });
25
- }, o = v(() => i.value);
26
- return (e, t) => l(r).control.copy ? (b(), C("div", J, [
27
- a("i", {
28
- class: "btn-copy",
29
- onClick: t[0] || (t[0] = //@ts-ignore
30
- (...m) => l(n) && l(n)(...m))
31
- }, t[1] || (t[1] = [
32
- a("img", {
33
- src: "/default/images/clippy.svg",
34
- alt: "复制文本"
35
- }, null, -1)
36
- ])),
37
- s(e.$slots, "default")
38
- ])) : s(e.$slots, "default", { key: 0 });
39
- }
40
- });
41
- export {
42
- E as default
43
- };
@@ -1,49 +0,0 @@
1
- import { defineComponent as L, toRefs as b, ref as u, openBlock as i, createBlock as s, KeepAlive as z, resolveDynamicComponent as B, unref as r } from "vue";
2
- import { S as o, d as N } from "./main-DymfKjqO.js";
3
- const D = /* @__PURE__ */ L({
4
- __name: "Custom",
5
- props: {
6
- view: {},
7
- url: {},
8
- win: {}
9
- },
10
- emits: ["loaded", "navigate"],
11
- setup(d, { expose: c, emit: f }) {
12
- let a = f, v = d, { url: n, win: m, view: g } = b(v), t = u(), p = u({}), R = (e) => {
13
- o.triggerClose(t.value, e);
14
- }, h = (e) => {
15
- o.triggerResize(t.value, e);
16
- }, w = (e) => !0, C = (e) => !0, _ = () => {
17
- o.triggerRefresh(t.value);
18
- }, x = (e, l) => {
19
- o.triggerKeyboard(t.value, e, l);
20
- }, S = (e) => {
21
- o.triggerSocket(t.value, e);
22
- }, k = (e) => {
23
- if (e == null)
24
- return;
25
- let l = p.value;
26
- if (l[n.value] != null) {
27
- t.value = l[n.value];
28
- return;
29
- }
30
- N.dictionary.containsValue(l, e) || (l[n.value] = e, t.value = e);
31
- }, y = (e) => {
32
- a("loaded", e);
33
- }, K = (e) => {
34
- a("navigate", e);
35
- };
36
- return c({ shouldLoad: w, shouldSpin: C, onRefresh: _, onClose: R, onKeyboard: x, onResize: h, onSocket: S }), (e, l) => (i(), s(z, null, [
37
- (i(), s(B(r(g)), {
38
- ref: r(k),
39
- url: r(n),
40
- win: r(m),
41
- onLoaded: r(y),
42
- onNavigate: r(K)
43
- }, null, 40, ["url", "win", "onLoaded", "onNavigate"]))
44
- ], 1024));
45
- }
46
- });
47
- export {
48
- D as default
49
- };
@@ -1,9 +0,0 @@
1
- import { f as e } from "./main-DymfKjqO.js";
2
- const r = {};
3
- function c(n, t) {
4
- return null;
5
- }
6
- const f = /* @__PURE__ */ e(r, [["render", c]]);
7
- export {
8
- f as default
9
- };
@@ -1,4 +0,0 @@
1
- import { b as f } from "./main-DymfKjqO.js";
2
- export {
3
- f as default
4
- };
@@ -1,173 +0,0 @@
1
- import { defineComponent as X, 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 K, withKeys as L, normalizeClass as P, withModifiers as Q, createTextVNode as T, Fragment as Z, renderList as G, nextTick as $ } from "vue";
2
- import { useRoute as W } from "vue-router";
3
- import { B as Y, X as w, J as ee, p as i, d as A, I as F, r as I, K as le } from "./main-DymfKjqO.js";
4
- const te = { class: "login-container" }, oe = { class: "title-container" }, re = { class: "title" }, se = { class: "btn-others" }, ne = ["href"], ae = ["innerHTML"], pe = /* @__PURE__ */ X({
5
- __name: "Index",
6
- setup(ie) {
7
- let a = u({ id: "", secret: "" }), f = u("password"), s = u(!1), y = u(!1), B = u(), V = u(), b = u(), h = W(), M = {
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
- }, N = (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
- }, x = () => {
19
- f.value == "password" ? f.value = "" : f.value = "password", $(() => {
20
- b.value.focus();
21
- });
22
- }, E = async (l) => {
23
- y.value = !0, B.value.validate(async (e) => {
24
- if (!e)
25
- return y.value = !1, !1;
26
- (await F.sso.createAsync(l)).login(a.value).then(({ data: c }) => {
27
- A.url.getBackUrl() ? I.toBackUrl() : I.to("/");
28
- }).finally(() => {
29
- $(() => {
30
- y.value = !1;
31
- });
32
- });
33
- });
34
- }, O = async (l) => {
35
- let e = await F.sso.createAsync(l), r = h.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
- }, q = (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 O(e.type);
43
- }
44
- _.value != null && (a.value.id == "" ? V.value.focus() : a.value.secret == "" && b.value.focus());
45
- });
46
- let _ = D(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
47
- return J(() => h, (l) => {
48
- debugger;
49
- const e = l.query;
50
- e && q(e);
51
- }), (l, e) => {
52
- const r = p("el-input"), c = p("el-form-item"), C = p("el-tooltip"), S = p("el-button"), z = p("router-link"), H = p("el-form");
53
- return d(), R("div", te, [
54
- g(H, {
55
- ref_key: "loginFormRef",
56
- ref: B,
57
- autocomplete: "on",
58
- "label-position": "left",
59
- model: t(a),
60
- rules: t(M)
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: V,
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) => K(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
- L(t(N), ["native"]),
113
- e[2] || (e[2] = L((o) => t(E)("Bearer"), ["enter", "native"]))
114
- ],
115
- onBlur: e[1] || (e[1] = (o) => K(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(x) && t(x)(...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(S, {
135
- key: 2,
136
- type: "primary",
137
- class: "btn-login",
138
- loading: t(y),
139
- onClick: e[6] || (e[6] = Q((o) => t(E)("Bearer"), ["prevent"]))
140
- }, {
141
- default: m(() => [
142
- T(k(t(i)("common.login")), 1)
143
- ]),
144
- _: 1
145
- }, 8, ["loading"])) : U("", !0),
146
- n("div", se, [
147
- (d(!0), R(Z, null, G(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(z, {
151
- class: "btn-register",
152
- to: "/register"
153
- }, {
154
- default: m(() => [
155
- T(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 +0,0 @@
1
- import { o } from "./main-DymfKjqO.js";
2
- export {
3
- o as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a as f } from "./main-DymfKjqO.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { N as f } from "./main-DymfKjqO.js";
2
- export {
3
- f as default
4
- };
@@ -1,71 +0,0 @@
1
- import { defineComponent as K, toRefs as E, ref as o, watch as F, openBlock as T, createBlock as U, resolveDynamicComponent as V, unref as t, withCtx as j, createElementVNode as A, toDisplayString as G } from "vue";
2
- import { d as n, $ as H, B as I, m, w as J, S as d } from "./main-DymfKjqO.js";
3
- const M = { class: "not-support" }, X = /* @__PURE__ */ K({
4
- __name: "List",
5
- props: {
6
- base: {},
7
- route: {},
8
- url: {},
9
- win: {}
10
- },
11
- emits: ["load", "navigate"],
12
- setup(b, { expose: P, emit: R }) {
13
- let v = R, w = b, { url: p, base: g, route: u } = E(w), y = o(), s = o(), r = o(), f = o(), S = o(), i = o(), c = o(), k = (e) => {
14
- let l = n.url.getPath(e), a = n.url.getPath(p.value);
15
- return l != a;
16
- }, q = (e) => {
17
- let l = n.url.getPath(p.value), a = n.url.getPath(e);
18
- return l != a;
19
- }, x = (e) => {
20
- var a;
21
- let l = H(e.module.type, e.module.name);
22
- I.setTitle(l, e.module.env), y.value = e.module, s.value = m.expandSchema(e.schema, e.set), r.value = (a = s.value) == null ? void 0 : a[0], f.value = e.next, S.value = m.expandSet(e.schema, e.set), c.value = m.getConditionForm(s.value, u.value.query.condition);
23
- }, h = (e = null, l = null) => {
24
- let a = e ?? u.value.query, z = n.url.getUrl(u.value.path, a);
25
- v("load", z, !1, l);
26
- }, C = (e) => {
27
- h(null, e);
28
- }, B = (e) => {
29
- v("navigate", e);
30
- }, D = async (e) => {
31
- let l = u.value.query;
32
- l.condition = J.encode(c.value), h(l, e);
33
- }, _ = () => {
34
- h();
35
- }, L = (e, l) => {
36
- d.triggerKeyboard(i.value, e, l);
37
- }, N = (e) => {
38
- d.triggerSocket(i.value, e);
39
- }, $ = (e) => {
40
- d.triggerResize(i.value, e);
41
- };
42
- return (() => {
43
- x(g.value.data);
44
- })(), F(() => g.value, (e) => {
45
- x(e.data);
46
- }), P({ shouldLoad: k, shouldSpin: q, onRefresh: _, onKeyboard: L, onSocket: N, onResize: $ }), (e, l) => (T(), U(V(`list-${t(r).layouts[0].type.toLowerCase()}`), {
47
- ref_key: "listRef",
48
- ref: i,
49
- route: t(u),
50
- module: t(y),
51
- schema: t(s),
52
- table: t(r),
53
- layout: t(r).layouts[0],
54
- next: t(f),
55
- set: t(S),
56
- "search-data": t(c),
57
- onSucceed: t(C),
58
- onSearch: t(D),
59
- onNavigate: t(B),
60
- onRefresh: t(_)
61
- }, {
62
- default: j(() => [
63
- A("div", M, "未支持的列表布局方式:" + G(t(r).layouts[0].type), 1)
64
- ]),
65
- _: 1
66
- }, 40, ["route", "module", "schema", "table", "layout", "next", "set", "search-data", "onSucceed", "onSearch", "onNavigate", "onRefresh"]));
67
- }
68
- });
69
- export {
70
- X as default
71
- };
@@ -1,14 +0,0 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as s, createElementVNode as t, toDisplayString as i, unref as r } from "vue";
2
- import { X as a } from "./main-DymfKjqO.js";
3
- const c = { class: "maintenance" }, l = { class: "description" }, f = /* @__PURE__ */ n({
4
- __name: "Maintaince",
5
- setup(m) {
6
- return (p, e) => (o(), s("div", c, [
7
- e[0] || (e[0] = t("div", { class: "title" }, "系统维护中", -1)),
8
- t("div", l, i(r(a)), 1)
9
- ]));
10
- }
11
- });
12
- export {
13
- f as default
14
- };