halo-pc 1.0.38 → 1.0.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/dist/{Article-H_clf90b.js → Article-DZlstqWL.js} +32 -31
  2. package/dist/{ArticleFooter-BLi4TNA7.js → ArticleFooter-BkduiKh8.js} +4 -3
  3. package/dist/{Autocomplete-CcIzTPSr.js → Autocomplete-0Yf6lJQ7.js} +12 -11
  4. package/dist/{Autocomplete-DMm6oI1g.js → Autocomplete-DMKnFezN.js} +1 -1
  5. package/dist/Autocomplete-bc-9LfGa.js +50 -0
  6. package/dist/{CSharp-CZOchOE-.js → CSharp-q8eOBm4y.js} +1 -1
  7. package/dist/{Calender-BoQV7bhA.js → Calender-CseGNCuW.js} +4 -4
  8. package/dist/Callback-D_dFJlfv.js +21 -0
  9. package/dist/{Cascader-DMhl98vw.js → Cascader-BG5ev35M.js} +28 -27
  10. package/dist/Cascader-Dzeoz7ss.js +47 -0
  11. package/dist/{Checkbox-C6t6S7ii.js → Checkbox-CsCA6iQb.js} +1 -1
  12. package/dist/{Checkbox-DtrXMDBR.js → Checkbox-dw8RNAGt.js} +14 -13
  13. package/dist/{Code-DDacfgvl.js → Code-BE8YLGaE.js} +1 -1
  14. package/dist/Code-BRe68AIa.js +42 -0
  15. package/dist/Code-C5QfTMNw.js +60 -0
  16. package/dist/Code-_XoN6vQE.js +4 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js +63 -0
  18. package/dist/Column-C-NHhT2v.js +75 -0
  19. package/dist/{Comment-Ixu0gPk3.js → Comment-kTmfTlbF.js} +25 -19
  20. package/dist/{Compare-C1uq4lgK.js → Compare-DVWaiCUC.js} +10 -9
  21. package/dist/{Compare-NN40QJWm.js → Compare-DlyQBCat.js} +11 -10
  22. package/dist/{Copy-BcfSvyWG.js → Copy-DQFJy3uX.js} +12 -11
  23. package/dist/{Custom-Dn9_vPuD.js → Custom-D5HoD0nQ.js} +22 -21
  24. package/dist/{DataExport-DNGgWqsx.js → DataExport-Um1wXyRe.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-tTTDFXQV.js → DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js} +25 -24
  26. package/dist/{DataImport-CI9eM5T1.js → DataImport-CPMLup4P.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BCMd1s45.js → DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js} +40 -39
  28. package/dist/{Date-CZGbZKjB.js → Date-BhZ8ltgp.js} +9 -8
  29. package/dist/{Date-CGyzi8yX.js → Date-Cj9lCW_Y.js} +1 -1
  30. package/dist/{DateRange-MbbkmZ_Y.js → DateRange-Bw_Oyawz.js} +10 -9
  31. package/dist/{DateTime-DqUOXGWH.js → DateTime-BU6JaBPk.js} +9 -8
  32. package/dist/{DateTime-DHrHmRLL.js → DateTime-Cv-SRE88.js} +1 -1
  33. package/dist/{DateTimeRange-DgXQkZLx.js → DateTimeRange-B4Ah6LQY.js} +12 -11
  34. package/dist/{Daterange-DLHJuRur.js → Daterange-CSZe4XGO.js} +9 -8
  35. package/dist/{Decimal-BUJuuvfr.js → Decimal-DSDuwW9Z.js} +1 -1
  36. package/dist/{Delete-BGMk0orl.js → Delete-CjPgg-5G.js} +20 -19
  37. package/dist/{Detail-D4KzWdHQ.js → Detail-gj--ICe8.js} +8 -7
  38. package/dist/{Dictionary-Esd3ERAq.js → Dictionary-Ck_02mWa.js} +15 -9
  39. package/dist/{Email-C9K09hwC.js → Email-BSQbDvh1.js} +12 -11
  40. package/dist/{File-ai1eYO7v.js → File-FW4usX43.js} +44 -43
  41. package/dist/{Image-CfY4G1Yn.js → Image-DiAw_6jM.js} +1 -1
  42. package/dist/Index-B_5hshjJ.js +4 -0
  43. package/dist/{Index-DYHrSEZ5.js → Index-BibWDRoP.js} +1 -1
  44. package/dist/Index-BtlD6ocN.js +4 -0
  45. package/dist/Index-C3f38zw0.js +4 -0
  46. package/dist/Index-CB_TnEaw.js +4 -0
  47. package/dist/{Index-B5o7uf36.js → Index-Dq5Vp-ts.js} +16 -15
  48. package/dist/{Index-S1btGSGD.js → Index-MUgqP8jJ.js} +1 -1
  49. package/dist/Index-hgTZyQps.js +174 -0
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js → Index.vue_vue_type_script_setup_true_lang-BzPCaYCg.js} +20 -14
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-BjE0VeTO.js → Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js} +7 -6
  52. package/dist/{Install-D-MgafyF.js → Install-Cpp3BDCS.js} +14 -13
  53. package/dist/{Int-CnvfCxgn.js → Int-Ck1SvK7R.js} +10 -9
  54. package/dist/{Int-D3RqVcmN.js → Int-DcQsipaO.js} +14 -13
  55. package/dist/{List-DA4SO_le.js → List-hWB41wF_.js} +19 -18
  56. package/dist/Maintaince-l-Tdveur.js +20 -0
  57. package/dist/{Markdown-hax8By5O.js → Markdown-BEUz4VZ7.js} +1 -1
  58. package/dist/{Month-BDkwv-vc.js → Month-DJGGGrZr.js} +12 -11
  59. package/dist/Month-DkafiRHq.js +38 -0
  60. package/dist/{Month-CnVTSnyK.js → Month-DmUiyF1G.js} +1 -1
  61. package/dist/{Normal-DoE9t7d7.js → Normal-ACcTHsXb.js} +53 -52
  62. package/dist/Paging-Vfz2RDBo.js +93 -0
  63. package/dist/{PagingHeader-BFtE6jSy.js → PagingHeader-DDkmqv98.js} +36 -35
  64. package/dist/{PagingRow-CSB-kwMz.js → PagingRow-B4Nfa2Vk.js} +20 -19
  65. package/dist/{Racebar-Bc-dDRss.js → Racebar-LfnPLNOY.js} +31 -25
  66. package/dist/{Radio-CMGOtMnx.js → Radio-DcEZI4m7.js} +1 -1
  67. package/dist/{Register-8wi0uixs.js → Register-B4x_zgyH.js} +61 -60
  68. package/dist/RichText-B1Iogpgr.js +47 -0
  69. package/dist/{SearchFooter-DOC21dmS.js → SearchFooter-CmM8qnxP.js} +1 -1
  70. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-CoJZtP84.js → SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js} +3 -3
  71. package/dist/{SearchForm-BMTSPce_.js → SearchForm-DU5QLTbe.js} +1 -1
  72. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-wiTxKu-H.js → SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js} +32 -31
  73. package/dist/{Select-DAxdpZlO.js → Select-C3gUeHmu.js} +16 -15
  74. package/dist/{Select-MBD4Simw.js → Select-CMxubJIV.js} +1 -1
  75. package/dist/{Select-DnFyey0n.js → Select-DrDDVJtz.js} +22 -21
  76. package/dist/{Single-D6x6VV_B.js → Single-De-YyuVk.js} +75 -74
  77. package/dist/{Statistic-BS_DA72m.js → Statistic-SvjQ7uGI.js} +30 -29
  78. package/dist/{Stock-CtmevqBK.js → Stock-C2b9p3-N.js} +1 -1
  79. package/dist/{Stock-CbucObTu.js → Stock-XZkBSQw1.js} +1 -1
  80. package/dist/{Stock.vue_vue_type_style_index_0_lang-LfsWg1Ps.js → Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js} +18 -17
  81. package/dist/{Switch-BlXAy9qH.js → Switch-PJT-5dDt.js} +1 -1
  82. package/dist/{Table-Da9gan1Y.js → Table-CkoZ8OjZ.js} +62 -61
  83. package/dist/{Table-CqsfAMh7.js → Table-Dy1H2IHN.js} +74 -73
  84. package/dist/Text-Bt5jL_KV.js +49 -0
  85. package/dist/{Text-CbZlEVTJ.js → Text-CytgR_l_.js} +12 -11
  86. package/dist/Text-vHouxGHU.js +4 -0
  87. package/dist/Text.vue_vue_type_style_index_0_lang-CgxtY5ch.js +59 -0
  88. package/dist/{TextLink-SAnZ7BfX.js → TextLink-DINdFWzs.js} +11 -10
  89. package/dist/{Textarea-DphCUpXp.js → Textarea-DakZXfN6.js} +1 -1
  90. package/dist/{Time-DjE8yYdK.js → Time-Bn1Av2wo.js} +11 -10
  91. package/dist/{Timeline-D11vjkpZ.js → Timeline-B32cUvwI.js} +19 -13
  92. package/dist/{Tree-kich05vY.js → Tree-BGfHm4k_.js} +80 -79
  93. package/dist/{Tree-DK73Ou_F.js → Tree-BItAXuSC.js} +41 -35
  94. package/dist/{TreeNode-Dx6cZ31Z.js → TreeNode-DmiM_a2n.js} +11 -10
  95. package/dist/{Update-D2Plm_AG.js → Update-DSTmaeT8.js} +15 -14
  96. package/dist/{UpdateChild-BXV7QqaP.js → UpdateChild-BgBJJwT3.js} +21 -20
  97. package/dist/{Upload-B87EDynn.js → Upload-DMqlcxCt.js} +47 -46
  98. package/dist/Upload-DpQu3z1T.js +71 -0
  99. package/dist/{Year-C93IJgc8.js → Year-Cv92J5pF.js} +9 -8
  100. package/dist/{Year-BPFmIiPX.js → Year-DckBNPK_.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-C2HVw1Ra.js +2901 -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-KNkwb0pq.js +10515 -0
  111. package/dist/main.js +46 -45
  112. package/dist/style.css +1 -1
  113. package/package.json +2 -2
  114. package/dist/Autocomplete-BF9x0F4f.js +0 -49
  115. package/dist/Callback-79Bw4RwY.js +0 -20
  116. package/dist/Cascader-D1Ou5OSg.js +0 -41
  117. package/dist/Code-B8ISTTYK.js +0 -54
  118. package/dist/Code-BMlBvnqa.js +0 -4
  119. package/dist/Code-DIGn8Raz.js +0 -36
  120. package/dist/Code.vue_vue_type_style_index_0_lang-hHYTH50F.js +0 -57
  121. package/dist/Column-DjA11efs.js +0 -69
  122. package/dist/Index-CH3nwnPZ.js +0 -4
  123. package/dist/Index-CTjDkp7e.js +0 -4
  124. package/dist/Index-DSZ8wa7U.js +0 -4
  125. package/dist/Index-DVdiF3gr.js +0 -4
  126. package/dist/Index-DsZPtDYE.js +0 -173
  127. package/dist/Maintaince-BIgEbjrq.js +0 -14
  128. package/dist/Month-5lTUiWin.js +0 -37
  129. package/dist/Paging-5qsCTRWy.js +0 -92
  130. package/dist/RichText-BR4Kvx0J.js +0 -41
  131. package/dist/Text-C72NLZMt.js +0 -48
  132. package/dist/Text-CHvsKR9H.js +0 -4
  133. package/dist/Text.vue_vue_type_style_index_0_lang-aMaBccpg.js +0 -53
  134. package/dist/Upload-CHPjMGFZ.js +0 -65
  135. package/dist/main-nvsTmKXH.js +0 -16321
@@ -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-nvsTmKXH.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 { j as x } from "./main-nvsTmKXH.js";
3
- const R = /* @__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
- R as default
54
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-hHYTH50F.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 { j as _ } from "./main-nvsTmKXH.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,57 +0,0 @@
1
- import { defineComponent as C, toRefs as b, ref as d, onMounted as k, resolveComponent as m, openBlock as r, createElementBlock as u, createVNode as i, unref as e, isRef as h, withCtx as p, Fragment as c, renderList as B, createBlock as L, createTextVNode as _, toDisplayString as f, createCommentVNode as N } from "vue";
2
- import { C as w, j as E } from "./main-nvsTmKXH.js";
3
- const R = { class: "ha-code-layout" }, T = /* @__PURE__ */ C({
4
- __name: "Code",
5
- props: {
6
- route: {},
7
- validateErrors: {},
8
- module: {},
9
- schema: {},
10
- table: {},
11
- layout: {},
12
- next: {},
13
- set: {}
14
- },
15
- emits: ["submit", "change"],
16
- setup(g, { emit: S }) {
17
- let V = g, { module: U, schema: j, table: A, layout: l, next: D, set: F } = b(V), n = d({}), t = d(), v = () => {
18
- t.value = l.value.languages[0];
19
- };
20
- return k(async () => {
21
- v();
22
- let s = await w.loadCodeLanguageAsync();
23
- for (let a of s)
24
- n.value[a.text] = a.suffix;
25
- }), (s, a) => {
26
- const x = m("el-radio"), y = m("el-radio-group");
27
- return r(), u("div", R, [
28
- i(y, {
29
- modelValue: e(t),
30
- "onUpdate:modelValue": a[0] || (a[0] = (o) => h(t) ? t.value = o : t = o)
31
- }, {
32
- default: p(() => [
33
- (r(!0), u(c, null, B(e(l).languages, (o) => (r(), L(x, { value: o }, {
34
- default: p(() => [
35
- _(f(o) + " ", 1),
36
- e(n)[o] ? (r(), u(c, { key: 0 }, [
37
- _("(" + f(e(n)[o]) + ")", 1)
38
- ], 64)) : N("", !0)
39
- ]),
40
- _: 2
41
- }, 1032, ["value"]))), 256))
42
- ]),
43
- _: 1
44
- }, 8, ["modelValue"]),
45
- i(e(E), {
46
- border: "",
47
- options: { language: e(n)[e(t)] },
48
- modelValue: e(l).codes[e(t)],
49
- "onUpdate:modelValue": a[1] || (a[1] = (o) => e(l).codes[e(t)] = o)
50
- }, null, 8, ["options", "modelValue"])
51
- ]);
52
- };
53
- }
54
- });
55
- export {
56
- T as _
57
- };
@@ -1,69 +0,0 @@
1
- import { defineComponent as b, toRefs as D, onMounted as E, computed as k, openBlock as r, createBlock as C, unref as e, withCtx as y, createElementBlock as s, Fragment as H, renderList as L, normalizeClass as O, createCommentVNode as i, createElementVNode as a, toDisplayString as m, resolveDynamicComponent as S, createVNode as h, createTextVNode as u } from "vue";
2
- import { O as z, d as _, B as F, H as P } from "./main-nvsTmKXH.js";
3
- import "element-plus";
4
- import "vue-router";
5
- import "./assets/intro.js-Cg1adLK7.js";
6
- const R = {
7
- key: 0,
8
- class: "menus"
9
- }, T = ["onClick"], $ = { class: "title" }, j = {
10
- key: 1,
11
- class: "column-empty"
12
- }, Q = /* @__PURE__ */ b({
13
- __name: "Column",
14
- props: {
15
- view: {},
16
- url: {},
17
- win: {}
18
- },
19
- emits: ["loaded", "navigate"],
20
- setup(g, { expose: x, emit: B }) {
21
- let d = B, w = g, { url: p, view: c } = D(w), N = (l) => !0, U = (l) => !0, V = () => {
22
- v();
23
- }, v = () => {
24
- d("loaded", n.value.title);
25
- }, M = (l) => {
26
- let t = _.url.getUrl(l.url, { m: l.id });
27
- d("navigate", t);
28
- };
29
- E(() => {
30
- v();
31
- });
32
- let n = k(() => z.getMenuByUrl(p.value)), f = k(() => _.url.getPath(p.value));
33
- return x({ shouldLoad: N, shouldSpin: U, refresh: V }), (l, t) => (r(), C(e(F), null, {
34
- default: y(() => [
35
- e(n) ? (r(), s("div", R, [
36
- (r(!0), s(H, null, L(e(n).children, (o) => (r(), s("div", {
37
- class: "menu",
38
- key: o.id,
39
- onClick: (q) => e(M)(o)
40
- }, [
41
- o.icon ? (r(), s("i", {
42
- key: 0,
43
- class: O(o.icon)
44
- }, null, 2)) : i("", !0),
45
- a("div", $, m(o.title), 1)
46
- ], 8, T))), 128))
47
- ])) : i("", !0),
48
- (r(), C(S(e(c)))),
49
- (!e(n) || e(n).children == 0) && !e(c) ? (r(), s("div", j, [
50
- h(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,4 +0,0 @@
1
- import { e } from "./main-nvsTmKXH.js";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a as f } from "./main-nvsTmKXH.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { L as f } from "./main-nvsTmKXH.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { p as f } from "./main-nvsTmKXH.js";
2
- export {
3
- f as default
4
- };
@@ -1,173 +0,0 @@
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,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 { Q as a } from "./main-nvsTmKXH.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
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as i, toRefs as f, computed as h, resolveComponent as _, openBlock as V, createBlock as k, unref as e, isRef as b } from "vue";
2
- import { k as Y } from "./main-nvsTmKXH.js";
3
- const x = /* @__PURE__ */ i({
4
- __name: "Month",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- searchData: {},
10
- modelValue: {}
11
- },
12
- emits: ["submit", "change", "update:modelValue"],
13
- setup(n, { emit: r }) {
14
- let a = r, p = n, { table: u, field: o, searchData: g, modelValue: s } = f(p), l = h({
15
- get() {
16
- return s.value;
17
- },
18
- set(t) {
19
- a("update:modelValue", t), a("change", t);
20
- }
21
- });
22
- return (t, m) => {
23
- const c = _("el-date-picker");
24
- return V(), k(c, {
25
- type: "month",
26
- placeholder: e(Y)(e(u).name, e(o).name),
27
- "value-format": "YYYY-MM",
28
- disabled: e(o).control.readonly,
29
- modelValue: e(l),
30
- "onUpdate:modelValue": m[0] || (m[0] = (d) => b(l) ? l.value = d : l = d)
31
- }, null, 8, ["placeholder", "disabled", "modelValue"]);
32
- };
33
- }
34
- });
35
- export {
36
- x as default
37
- };
@@ -1,92 +0,0 @@
1
- import { defineComponent as O, toRefs as T, ref as r, onMounted as V, watch as $, unref as a, openBlock as E, createBlock as G, createCommentVNode as I } from "vue";
2
- import { d as o, S as Q, M as W, m as d, g as U, A as X } from "./main-nvsTmKXH.js";
3
- import { _ as Y } from "./Index.vue_vue_type_script_setup_true_lang-H8ogKL2I.js";
4
- const te = /* @__PURE__ */ O({
5
- __name: "Paging",
6
- props: {
7
- base: {},
8
- route: {},
9
- url: {},
10
- win: {}
11
- },
12
- emits: ["navigate", "load"],
13
- setup(b, { expose: z, emit: P }) {
14
- let m = P, k = b, { url: p, base: y, route: u } = T(k), f = r(), v = r(), g = r(), c = r(), x = r(), S = r(), h = r(), s = r(), N = (e) => !0, L = (e) => {
15
- let l = o.url.getPath(p.value), t = o.url.getPath(e);
16
- return l != t;
17
- }, M = (e = null) => {
18
- _(e);
19
- }, R = () => {
20
- }, C = (e) => {
21
- var t;
22
- let l = Q(e.module.type, e.module.name);
23
- W.setTitle(l, e.module.env), f.value = e.module, x.value = e.next, S.value = d.expandSet(e.schema, e.set), v.value = d.expandSchema(e.schema, e.set), g.value = (t = v.value) == null ? void 0 : t[0], c.value = g.value.layouts[0], h.value = d.getConditionForm(v.value, u.value.query.condition);
24
- }, q = (e = null, l = null) => {
25
- let t = e ?? u.value.query, n = o.url.getUrl(u.value.path, t);
26
- m("load", n, !1, (K) => {
27
- l && l(K);
28
- });
29
- }, i = (e, l) => {
30
- m("navigate", e, l);
31
- }, w = async (e) => {
32
- let l = u.value.query;
33
- l.page = 1;
34
- let t = o.object.pure(h.value);
35
- l.condition = U.encode(t);
36
- let n = o.url.getUrl(u.value.path, l);
37
- n == p.value ? q(l, e) : i(n, e);
38
- }, A = (e, l) => {
39
- let t = u.value.query;
40
- t.order_by = U.encode(JSON.stringify(e));
41
- let n = o.url.getUrl(u.value.path, t);
42
- i(n, l);
43
- }, B = (e, l = null) => {
44
- let t = u.value.query;
45
- t.page = e;
46
- let n = o.url.getUrl(u.value.path, t);
47
- i(n, l);
48
- }, D = (e, l = null) => {
49
- let t = u.value.query;
50
- t.size = e;
51
- let n = o.url.getUrl(u.value.path, t);
52
- i(n, l);
53
- }, H = (e) => {
54
- c.value = g.value.layouts.find((l) => l.type == e);
55
- }, j = () => {
56
- C(y.value.data);
57
- }, _ = (e = null) => q(null, e), F = (e) => {
58
- if (!s.value || !s.value.resize)
59
- return !1;
60
- s.value.resize(e);
61
- }, J = (e, l) => {
62
- X.triggerKeyboardHandler(s.value, e, l);
63
- };
64
- return V(async () => {
65
- j();
66
- }), $(() => y.value, (e) => {
67
- C(e.data);
68
- }), z({ shouldLoad: N, shouldSpin: L, refresh: _, keyboardHandler: J, resize: F }), (e, l) => a(c) ? (E(), G(Y, {
69
- key: 0,
70
- ref_key: "pagingRef",
71
- ref: s,
72
- module: a(f),
73
- next: a(x),
74
- set: a(S),
75
- schema: a(v),
76
- table: a(g),
77
- layout: a(c),
78
- "search-data": a(h),
79
- onNavigate: a(i),
80
- onSort: a(A),
81
- onSearch: a(w),
82
- onPageChange: a(B),
83
- onSizeChange: a(D),
84
- onLayoutChange: a(H),
85
- onSucceed: a(M),
86
- onClose: a(R)
87
- }, null, 8, ["module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"])) : I("", !0);
88
- }
89
- });
90
- export {
91
- te as default
92
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as g, mergeModels as x, toRefs as R, useModel as S, ref as p, onMounted as M, computed as m, watch as v, openBlock as w, createBlock as b, unref as r, normalizeStyle as k, isRef as B } from "vue";
2
- import { R as C } from "./main-nvsTmKXH.js";
3
- const O = /* @__PURE__ */ g({
4
- __name: "RichText",
5
- props: /* @__PURE__ */ x({
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {}
11
- }, {
12
- modelValue: {},
13
- modelModifiers: {}
14
- }),
15
- emits: ["update:modelValue"],
16
- setup(n) {
17
- let f = n, { field: e, table: h, set: _, row: s } = R(f), u = S(n, "modelValue"), t = p({ readonly: !1, scrollTop: 0 }), i = p(), y = (l) => {
18
- a.value != null && (s.value[a.value.name] = l.scrollTop);
19
- }, T = () => e.value.control.height ? `height: ${e.value.control.height}px` : "min-height: 300px;", V = () => {
20
- t.value.readonly = e.value.control.readonly, t.value.scrollTop = d.value, i.value = T();
21
- };
22
- M(() => {
23
- V();
24
- });
25
- let d = m(() => a.value ? s.value[a.value.name] : null), a = m(() => e.value.control.scrollTop ? h.value.fields.find((o) => o.name == e.value.control.scrollTop) : null);
26
- return v(() => d.value, (l, o) => {
27
- t.value.scrollTop = l;
28
- }), v(() => e.value.control.readonly, (l, o) => {
29
- t.value.readonly = l;
30
- }), (l, o) => (w(), b(r(C), {
31
- style: k(r(i)),
32
- options: r(t),
33
- onScroll: r(y),
34
- modelValue: r(u),
35
- "onUpdate:modelValue": o[0] || (o[0] = (c) => B(u) ? u.value = c : u = c)
36
- }, null, 8, ["style", "options", "onScroll", "modelValue"]));
37
- }
38
- });
39
- export {
40
- O as default
41
- };