halo-pc 1.0.39 → 1.0.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. package/dist/{Article-DZlstqWL.js → Article-CqtkXVmQ.js} +37 -36
  2. package/dist/{ArticleFooter-BkduiKh8.js → ArticleFooter-DeJdTtZD.js} +12 -13
  3. package/dist/{Autocomplete-DMKnFezN.js → Autocomplete-0fxB2_FC.js} +1 -1
  4. package/dist/Autocomplete-BfhYwZ5G.js +49 -0
  5. package/dist/{Autocomplete-0Yf6lJQ7.js → Autocomplete-LQiKcvz1.js} +10 -11
  6. package/dist/{CSharp-q8eOBm4y.js → CSharp-BIFRQLaK.js} +1 -1
  7. package/dist/{Calender-CseGNCuW.js → Calender-DPNTn-S4.js} +2 -2
  8. package/dist/Callback-Ci5KrWOC.js +20 -0
  9. package/dist/Cascader-CnOEgPDf.js +41 -0
  10. package/dist/{Cascader-BG5ev35M.js → Cascader-Vhc81TDV.js} +17 -18
  11. package/dist/{Checkbox-CsCA6iQb.js → Checkbox-CIim5NiB.js} +1 -1
  12. package/dist/{Checkbox-dw8RNAGt.js → Checkbox-D9Sp6ZGQ.js} +11 -12
  13. package/dist/Code-BEjqqeFZ.js +54 -0
  14. package/dist/Code-BSrEPuXk.js +4 -0
  15. package/dist/Code-Dp1-k8sW.js +36 -0
  16. package/dist/{Code-BE8YLGaE.js → Code-yDKaH1uF.js} +10 -8
  17. package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +59 -0
  18. package/dist/Column-B0ViSver.js +69 -0
  19. package/dist/{Comment-kTmfTlbF.js → Comment-tU2wBvGO.js} +22 -26
  20. package/dist/{Compare-DlyQBCat.js → Compare-D7Gz-lE9.js} +10 -11
  21. package/dist/{Compare-DVWaiCUC.js → Compare-DqvGyQWA.js} +8 -9
  22. package/dist/Copy-Dm1LH9qB.js +43 -0
  23. package/dist/Custom-CLKAPWEo.js +49 -0
  24. package/dist/{DataExport-Um1wXyRe.js → DataExport-BDftKI0U.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-2YoqwEmA.js → DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js} +27 -28
  26. package/dist/{DataImport-CPMLup4P.js → DataImport-CRYaaQfA.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DsCp0vWo.js → DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js} +30 -31
  28. package/dist/{Date-BhZ8ltgp.js → Date-DPPiYLWw.js} +7 -8
  29. package/dist/{Date-Cj9lCW_Y.js → Date-Dlh1_S7p.js} +1 -1
  30. package/dist/{DateRange-Bw_Oyawz.js → DateRange-BgF_T3ls.js} +5 -6
  31. package/dist/{DateTime-Cv-SRE88.js → DateTime-CNjPeK9t.js} +1 -1
  32. package/dist/{DateTime-BU6JaBPk.js → DateTime-DP-VfmtN.js} +7 -8
  33. package/dist/{DateTimeRange-B4Ah6LQY.js → DateTimeRange-DbEpW4nB.js} +9 -10
  34. package/dist/{Daterange-CSZe4XGO.js → Daterange-DHVjhrK9.js} +4 -5
  35. package/dist/{Decimal-DSDuwW9Z.js → Decimal-BDEWVSsK.js} +1 -1
  36. package/dist/{Delete-CjPgg-5G.js → Delete-Bl0GmthL.js} +19 -20
  37. package/dist/{Detail-gj--ICe8.js → Detail-BozyhOTt.js} +10 -11
  38. package/dist/{Dictionary-Ck_02mWa.js → Dictionary-CJwZPQz6.js} +9 -15
  39. package/dist/{Email-BSQbDvh1.js → Email-D5X1SzuJ.js} +11 -12
  40. package/dist/{File-FW4usX43.js → File-DixK0K7p.js} +44 -43
  41. package/dist/Image-BrelhCGo.js +9 -0
  42. package/dist/Index-BeM6hKX9.js +4 -0
  43. package/dist/Index-BkfLyqpm.js +173 -0
  44. package/dist/{Index-MUgqP8jJ.js → Index-D2FOeoNQ.js} +1 -1
  45. package/dist/Index-D8UVsXwf.js +4 -0
  46. package/dist/{Index-Dq5Vp-ts.js → Index-DbXgnBz6.js} +15 -16
  47. package/dist/Index-FL-dxfFB.js +4 -0
  48. package/dist/Index-fWOqfFkG.js +4 -0
  49. package/dist/{Index-BibWDRoP.js → Index-j15c7lwJ.js} +1 -1
  50. package/dist/Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js +80 -0
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js → Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js} +21 -22
  52. package/dist/{Install-Cpp3BDCS.js → Install-WR3b4IfI.js} +13 -14
  53. package/dist/{Int-Ck1SvK7R.js → Int-CWsDtoxE.js} +9 -10
  54. package/dist/{Int-DcQsipaO.js → Int-GGWiUqO2.js} +13 -14
  55. package/dist/List-kRCsHp6d.js +71 -0
  56. package/dist/Maintaince-BG8MUi3A.js +14 -0
  57. package/dist/{Markdown-BEUz4VZ7.js → Markdown-nVfQs7kc.js} +1 -1
  58. package/dist/Month-B1icZmL4.js +37 -0
  59. package/dist/{Month-DmUiyF1G.js → Month-CxKMP4kO.js} +1 -1
  60. package/dist/{Month-DJGGGrZr.js → Month-DnYlAi7k.js} +10 -11
  61. package/dist/{Normal-ACcTHsXb.js → Normal-RcqEyIFN.js} +47 -46
  62. package/dist/Paging-DrdGzxeP.js +94 -0
  63. package/dist/{PagingHeader-DDkmqv98.js → PagingHeader-C8UpM9Kj.js} +18 -17
  64. package/dist/{PagingRow-B4Nfa2Vk.js → PagingRow-oQWCofO4.js} +13 -14
  65. package/dist/{Racebar-LfnPLNOY.js → Racebar-CvoF2ySW.js} +32 -36
  66. package/dist/{Radio-DcEZI4m7.js → Radio-DhjfkC14.js} +1 -1
  67. package/dist/{Register-B4x_zgyH.js → Register-B0Vx60wY.js} +55 -56
  68. package/dist/RichText-4wrLw9cy.js +41 -0
  69. package/dist/{SearchForm-DU5QLTbe.js → SearchForm-BHVnQaSL.js} +1 -1
  70. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js → SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js} +50 -51
  71. package/dist/SearchHeader-C9yovXli.js +4 -0
  72. package/dist/SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js +60 -0
  73. package/dist/{Select-C3gUeHmu.js → Select-BDoCqD3I.js} +10 -11
  74. package/dist/{Select-CMxubJIV.js → Select-CX4i5KPQ.js} +1 -1
  75. package/dist/{Select-DrDDVJtz.js → Select-vgwpegBi.js} +20 -21
  76. package/dist/{Single-De-YyuVk.js → Single-C3629BdC.js} +127 -128
  77. package/dist/{Statistic-CTxHNeof.js → Statistic-Dxa-CZ8G.js} +10 -8
  78. package/dist/{Statistic-SvjQ7uGI.js → Statistic-WPezAlUn.js} +34 -33
  79. package/dist/{Stock-C2b9p3-N.js → Stock-BD5Acf8y.js} +8 -6
  80. package/dist/{Stock-XZkBSQw1.js → Stock-EPM3j2f_.js} +1 -1
  81. package/dist/{Stock.vue_vue_type_style_index_0_lang-DwxyyM7p.js → Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js} +22 -21
  82. package/dist/{Switch-PJT-5dDt.js → Switch-B0XN4K-9.js} +1 -1
  83. package/dist/{Table-Dy1H2IHN.js → Table-BklK1hSh.js} +142 -136
  84. package/dist/{Table-CkoZ8OjZ.js → Table-JFdOXuME.js} +61 -60
  85. package/dist/Text-CNtHdodK.js +4 -0
  86. package/dist/{Text-CytgR_l_.js → Text-DrJkdxZF.js} +12 -13
  87. package/dist/Text-KAuEjP7I.js +48 -0
  88. package/dist/Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js +53 -0
  89. package/dist/{TextLink-DINdFWzs.js → TextLink-BnijIoEJ.js} +8 -9
  90. package/dist/{Textarea-DakZXfN6.js → Textarea-3SWLqQvO.js} +1 -1
  91. package/dist/{Time-Bn1Av2wo.js → Time-C3qlNZkJ.js} +9 -10
  92. package/dist/{Timeline-B32cUvwI.js → Timeline-B6hUIYhL.js} +11 -15
  93. package/dist/{Tree-BGfHm4k_.js → Tree-DBvFF4Rj.js} +77 -76
  94. package/dist/{Tree-BItAXuSC.js → Tree-JexLPBXX.js} +38 -42
  95. package/dist/{TreeNode-DmiM_a2n.js → TreeNode-BOWB2WN9.js} +9 -10
  96. package/dist/{Update-DSTmaeT8.js → Update-CDLYYwgj.js} +5 -6
  97. package/dist/{UpdateChild-BgBJJwT3.js → UpdateChild-DUG7pAuO.js} +19 -20
  98. package/dist/{Upload-DMqlcxCt.js → Upload-B2hbxDsT.js} +46 -47
  99. package/dist/Upload-mlk6Y4Po.js +65 -0
  100. package/dist/{Year-DckBNPK_.js → Year-BRsJ7b1J.js} +1 -1
  101. package/dist/{Year-Cv92J5pF.js → Year-BUF60NmB.js} +7 -8
  102. package/dist/assets/{clipboard-DjQPoCBJ.js → clipboard-ClN4QccS.js} +1 -3
  103. package/dist/main-DymfKjqO.js +16480 -0
  104. package/dist/main.js +144 -142
  105. package/dist/style.css +1 -1
  106. package/esm/coms/commons/Table.vue.d.ts +1 -1
  107. package/esm/coms/drivers/Index.vue.d.ts +2 -2
  108. package/esm/coms/globals/Menu.vue.d.ts +1 -1
  109. package/esm/coms/globals/MenuItem.vue.d.ts +1 -1
  110. package/esm/coms/headers/@types/HeaderProps.d.ts +1 -1
  111. package/esm/coms/headers/Index.vue.d.ts +1 -1
  112. package/esm/coms/layouts/Index.vue.d.ts +3 -3
  113. package/esm/coms/layouts/Side.vue.d.ts +2 -2
  114. package/esm/coms/layouts/Top.vue.d.ts +1 -1
  115. package/esm/coms/lists/Racebar.vue.d.ts +1 -1
  116. package/esm/coms/lists/Statistic.vue.d.ts +1 -1
  117. package/esm/coms/lists/Tree.vue.d.ts +3 -3
  118. package/esm/coms/pages/@types/SchemaProps.d.ts +2 -1
  119. package/esm/coms/pages/Column.vue.d.ts +1 -1
  120. package/esm/coms/pages/Custom.vue.d.ts +6 -6
  121. package/esm/coms/pages/List.vue.d.ts +5 -3
  122. package/esm/coms/pages/Paging.vue.d.ts +5 -3
  123. package/esm/coms/pages/Single.vue.d.ts +3 -3
  124. package/esm/coms/pagings/@types/SearchHeaderProps.d.ts +9 -0
  125. package/esm/coms/pagings/@types/index.d.ts +2 -2
  126. package/esm/coms/pagings/Article.vue.d.ts +2 -2
  127. package/esm/coms/pagings/Index.vue.d.ts +4 -2
  128. package/esm/coms/pagings/SearchForm.vue.d.ts +1 -1
  129. package/esm/coms/pagings/SearchHeader.vue.d.ts +19 -0
  130. package/esm/coms/pagings/Table.vue.d.ts +4 -2
  131. package/esm/coms/partials/@types/PagingHeaderProps.d.ts +2 -1
  132. package/esm/coms/singles/Index.vue.d.ts +1 -1
  133. package/esm/coms/singles/Normal.vue.d.ts +1 -1
  134. package/esm/coms/singles/Table.vue.d.ts +1 -1
  135. package/esm/coms/singles/Tree.vue.d.ts +1 -1
  136. package/package.json +6 -6
  137. package/dist/Autocomplete-bc-9LfGa.js +0 -50
  138. package/dist/Callback-D_dFJlfv.js +0 -21
  139. package/dist/Cascader-Dzeoz7ss.js +0 -47
  140. package/dist/Code-BRe68AIa.js +0 -42
  141. package/dist/Code-C5QfTMNw.js +0 -60
  142. package/dist/Code-_XoN6vQE.js +0 -4
  143. package/dist/Code.vue_vue_type_style_index_0_lang-D2hJ7lYF.js +0 -63
  144. package/dist/Column-C-NHhT2v.js +0 -75
  145. package/dist/Copy-DQFJy3uX.js +0 -44
  146. package/dist/Custom-D5HoD0nQ.js +0 -59
  147. package/dist/Image-DiAw_6jM.js +0 -9
  148. package/dist/Index-B_5hshjJ.js +0 -4
  149. package/dist/Index-BtlD6ocN.js +0 -4
  150. package/dist/Index-C3f38zw0.js +0 -4
  151. package/dist/Index-CB_TnEaw.js +0 -4
  152. package/dist/Index-hgTZyQps.js +0 -174
  153. package/dist/Index.vue_vue_type_script_setup_true_lang-BzPCaYCg.js +0 -82
  154. package/dist/List-hWB41wF_.js +0 -72
  155. package/dist/Maintaince-l-Tdveur.js +0 -20
  156. package/dist/Month-DkafiRHq.js +0 -38
  157. package/dist/Paging-Vfz2RDBo.js +0 -93
  158. package/dist/RichText-B1Iogpgr.js +0 -47
  159. package/dist/SearchFooter-CmM8qnxP.js +0 -4
  160. package/dist/SearchFooter.vue_vue_type_style_index_0_lang-fRS96yRX.js +0 -55
  161. package/dist/Text-Bt5jL_KV.js +0 -49
  162. package/dist/Text-vHouxGHU.js +0 -4
  163. package/dist/Text.vue_vue_type_style_index_0_lang-CgxtY5ch.js +0 -59
  164. package/dist/Upload-DpQu3z1T.js +0 -71
  165. package/dist/assets/clone-BZn0cTAu.js +0 -134
  166. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  167. package/dist/assets/liquidjs-C2HVw1Ra.js +0 -2901
  168. package/dist/assets/moment-h96o7c8I.js +0 -2578
  169. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  170. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  171. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  172. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  173. package/dist/main-KNkwb0pq.js +0 -10515
@@ -1,17 +1,16 @@
1
- import { defineComponent as P, toRefs as T, ref as A, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as g, unref as e, withCtx as r, createElementVNode as n, normalizeClass as x, Fragment as L, renderList as q, createBlock as y, toDisplayString as d, createTextVNode as w, createCommentVNode as F } from "vue";
1
+ import { defineComponent as P, toRefs as T, ref as A, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as y, unref as e, withCtx as r, createElementVNode as s, normalizeClass as w, Fragment as x, renderList as L, createBlock as g, toDisplayString as _, createTextVNode as q, createCommentVNode as z } from "vue";
2
2
  import { useRoute as G, useRouter as H } from "vue-router";
3
- import { F as I, c as J, C as m, t as K, h as M, e as O } from "./main-KNkwb0pq.js";
4
- import "./assets/moment-h96o7c8I.js";
3
+ import { s as I, $ as J, n as m, p as K, _ as M, w as O } from "./main-DymfKjqO.js";
5
4
  import "element-plus";
6
5
  import "./assets/intro.js-Cg1adLK7.js";
7
- import { _ as Q } from "./SearchForm.vue_vue_type_style_index_0_lang-BHZrYG6_.js";
6
+ import { _ as Q } from "./SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js";
8
7
  const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
9
8
  key: 0,
10
9
  class: "files-image"
11
10
  }, Y = { class: "file-image" }, Z = ["src"], ee = { class: "file-title" }, te = { class: "file-name" }, ae = ["src", "alt"], oe = { class: "file-title" }, le = {
12
11
  key: 2,
13
12
  class: "not-support"
14
- }, de = /* @__PURE__ */ P({
13
+ }, pe = /* @__PURE__ */ P({
15
14
  __name: "File",
16
15
  props: {
17
16
  searchData: {},
@@ -20,127 +19,129 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
20
19
  table: {},
21
20
  layout: {},
22
21
  next: {},
23
- set: {}
22
+ set: {},
23
+ url: {},
24
+ win: {}
24
25
  },
25
- setup(S) {
26
- let z = S, { schema: N, table: s, layout: i, next: _, set: b, searchData: ne } = T(z), f = G(), v = H(), k = A(), C = (o) => {
26
+ setup(F) {
27
+ let N = F, { schema: S, table: n, layout: i, next: d, set: b, searchData: se } = T(N), f = G(), v = H(), k = A(), C = (o) => {
27
28
  let t = { type: "fileLayout", value: o };
28
29
  M.post("/config/save", t).then((h) => {
29
30
  m.fileLayout = o;
30
31
  });
31
32
  }, V = (o) => {
32
33
  let t = { ...f.query };
33
- t.page = o, v.push({ path: _.value.paging.route, query: t });
34
+ t.page = o, v.push({ path: d.value.paging.route, query: t });
34
35
  }, B = () => {
35
36
  let o = { ...f.query };
36
37
  o.page = "1", o.condition = O.encode(k.value);
37
- let t = { path: _.value.paging.route, query: o };
38
+ let t = { path: d.value.paging.route, query: o };
38
39
  v.push(t);
39
40
  };
40
41
  return (o, t) => {
41
42
  const h = p("router-link"), D = p("el-table-column"), R = p("el-table"), E = p("el-button"), j = p("el-pagination");
42
43
  return l(), u("div", U, [
43
- g(e(I), {
44
+ y(e(I), {
44
45
  title: e(J)(o.module.type, o.module.name)
45
46
  }, {
46
47
  operation: r(() => [
47
- n("div", W, [
48
- n("a", {
49
- class: x({ active: e(m).fileLayout == "list" }),
48
+ s("div", W, [
49
+ s("a", {
50
+ class: w({ active: e(m).fileLayout == "list" }),
50
51
  onClick: t[0] || (t[0] = (a) => e(C)("list"))
51
52
  }, t[2] || (t[2] = [
52
- n("i", { class: "fa fa-list" }, null, -1)
53
+ s("i", { class: "fa fa-list" }, null, -1)
53
54
  ]), 2),
54
- n("a", {
55
- class: x({ active: e(m).fileLayout == "image" }),
55
+ s("a", {
56
+ class: w({ active: e(m).fileLayout == "image" }),
56
57
  onClick: t[1] || (t[1] = (a) => e(C)("image"))
57
58
  }, t[3] || (t[3] = [
58
- n("i", { class: "fa fa-image" }, null, -1)
59
+ s("i", { class: "fa fa-image" }, null, -1)
59
60
  ]), 2)
60
61
  ])
61
62
  ]),
62
63
  append: r(() => [
63
64
  e(m).fileLayout == "image" ? (l(), u("div", X, [
64
- (l(!0), u(L, null, q(e(b)[e(s).name], (a, $) => (l(), y(h, {
65
+ (l(!0), u(x, null, L(e(b)[e(n).name], (a, $) => (l(), g(h, {
65
66
  class: "file",
66
- to: { path: e(_).detail.route, query: { id: a[e(s).key.name], m: e(f).query.m } },
67
+ to: { path: e(d).detail.route, query: { id: a[e(n).key.name], m: e(f).query.m } },
67
68
  key: $
68
69
  }, {
69
70
  default: r(() => [
70
- n("div", Y, [
71
- n("img", {
71
+ s("div", Y, [
72
+ s("img", {
72
73
  src: a[e(i).url],
73
74
  alt: ""
74
75
  }, null, 8, Z)
75
76
  ]),
76
- n("div", ee, d(a[e(i).name]), 1)
77
+ s("div", ee, _(a[e(i).name]), 1)
77
78
  ]),
78
79
  _: 2
79
80
  }, 1032, ["to"]))), 128))
80
- ])) : e(m).fileLayout == "list" ? (l(), y(R, {
81
+ ])) : e(m).fileLayout == "list" ? (l(), g(R, {
81
82
  key: 1,
82
83
  class: "files-list",
83
84
  border: "",
84
- data: e(b)[e(s).name]
85
+ data: e(b)[e(n).name]
85
86
  }, {
86
87
  empty: r(() => [
87
- w(d(e(K)("common.no_data")), 1)
88
+ q(_(e(K)("common.no_data")), 1)
88
89
  ]),
89
90
  default: r(() => [
90
- (l(!0), u(L, null, q(e(s).show, (a, $) => (l(), y(D, {
91
+ (l(!0), u(x, null, L(e(n).show, (a, $) => (l(), g(D, {
91
92
  "show-overflow-tooltip": "",
92
- sortable: e(s) ? "custom" : !1,
93
+ sortable: e(n) ? "custom" : !1,
93
94
  "min-width": "180",
94
95
  "sort-orders": ["descending", "ascending"],
95
96
  prop: a.name,
96
97
  label: `${a.label}${a.prefix || a.suffix ? "(" + (a.prefix || a.suffix) + ")" : ""}`,
97
- key: `${e(s).name}.${a.name}`
98
+ key: `${e(n).name}.${a.name}`
98
99
  }, {
99
100
  default: r((c) => [
100
- n("div", te, [
101
+ s("div", te, [
101
102
  c.column.property == e(i).name ? (l(), u("img", {
102
103
  key: 0,
103
104
  class: "file-image",
104
105
  src: c.row[e(i).url],
105
106
  alt: c.row[e(i).name]
106
- }, null, 8, ae)) : F("", !0),
107
- n("div", oe, d(c.row[c.column.property]), 1)
107
+ }, null, 8, ae)) : z("", !0),
108
+ s("div", oe, _(c.row[c.column.property]), 1)
108
109
  ])
109
110
  ]),
110
111
  _: 2
111
112
  }, 1032, ["sortable", "prop", "label"]))), 128))
112
113
  ]),
113
114
  _: 1
114
- }, 8, ["data"])) : (l(), u("div", le, "未支持的文件布局:" + d(e(m).fileLayout), 1))
115
+ }, 8, ["data"])) : (l(), u("div", le, "未支持的文件布局:" + _(e(m).fileLayout), 1))
115
116
  ]),
116
117
  default: r(() => [
117
- e(s).search.length > 0 ? (l(), y(Q, {
118
+ e(n).search.length > 0 ? (l(), g(Q, {
118
119
  key: 0,
119
- schema: e(N),
120
- table: e(s),
120
+ schema: e(S),
121
+ table: e(n),
121
122
  search: e(k),
122
123
  onSubmit: e(B)
123
- }, null, 8, ["schema", "table", "search", "onSubmit"])) : F("", !0)
124
+ }, null, 8, ["schema", "table", "search", "onSubmit"])) : z("", !0)
124
125
  ]),
125
126
  _: 1
126
127
  }, 8, ["title"]),
127
- g(E, {
128
+ y(E, {
128
129
  type: "primary",
129
130
  icon: "el-icon-plus"
130
131
  }, {
131
132
  default: r(() => [
132
- g(h, {
133
- to: { path: e(_).insert.route, query: { m: e(f).query.m } }
133
+ y(h, {
134
+ to: { path: e(d).insert.route, query: { m: e(f).query.m } }
134
135
  }, {
135
136
  default: r(() => [
136
- w("添加新" + d(e(s).title), 1)
137
+ q("添加新" + _(e(n).title), 1)
137
138
  ]),
138
139
  _: 1
139
140
  }, 8, ["to"])
140
141
  ]),
141
142
  _: 1
142
143
  }),
143
- g(j, {
144
+ y(j, {
144
145
  background: "",
145
146
  layout: "total, prev, pager, next, jumper",
146
147
  "current-page": e(i).page,
@@ -153,5 +154,5 @@ const U = { class: "file-layout" }, W = { class: "toolbar" }, X = {
153
154
  }
154
155
  });
155
156
  export {
156
- de as default
157
+ pe as default
157
158
  };
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,4 @@
1
+ import { b as f } from "./main-DymfKjqO.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,173 @@
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 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-CiBvC9Cu.js";
1
+ import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { o } from "./main-DymfKjqO.js";
2
+ export {
3
+ o as default
4
+ };
@@ -1,7 +1,6 @@
1
- import { defineComponent as C, defineAsyncComponent as U, toRefs as D, computed as p, unref as e, openBlock as c, createBlock as f, withCtx as v, resolveDynamicComponent as y, isRef as b, createElementVNode as w, toDisplayString as h } from "vue";
2
- import { U as N, t as x } from "./main-KNkwb0pq.js";
3
- import "./assets/moment-h96o7c8I.js";
4
- const E = /* @__PURE__ */ C({
1
+ import { defineComponent as C, defineAsyncComponent as D, toRefs as N, computed as p, unref as e, openBlock as c, createBlock as f, withCtx as v, resolveDynamicComponent as y, isRef as b, createElementVNode as w, toDisplayString as h } from "vue";
2
+ import { d as B, p as x } from "./main-DymfKjqO.js";
3
+ const A = /* @__PURE__ */ C({
5
4
  __name: "Index",
6
5
  props: {
7
6
  schema: {},
@@ -12,11 +11,11 @@ const E = /* @__PURE__ */ C({
12
11
  config: {}
13
12
  },
14
13
  emits: ["submit", "change"],
15
- setup(g, { emit: B }) {
16
- let V = U(() => import("./TextLink-DINdFWzs.js")), k = g, { schema: u, table: s, field: l, set: i, row: a, config: m } = D(k), d = p(() => {
14
+ setup(g, { emit: R }) {
15
+ let V = D(() => import("./TextLink-BnijIoEJ.js")), k = g, { schema: u, table: s, field: l, set: d, row: a, config: m } = N(k), i = p(() => {
17
16
  let o = l.value.control.type;
18
17
  return m.value && m.value.control && m.value.control.type ? m.value.control.type : o;
19
- }), _ = p(() => `text-${N.string.getDashName(d.value)}`), t = p({
18
+ }), _ = p(() => `text-${B.string.getDashName(i.value)}`), t = p({
20
19
  get() {
21
20
  return a.value[l.value.name];
22
21
  },
@@ -24,12 +23,12 @@ const E = /* @__PURE__ */ C({
24
23
  a.value[l.value.name] = o;
25
24
  }
26
25
  });
27
- return (o, r) => e(l).link ? (c(), f(e(V), {
26
+ return (o, n) => e(l).link ? (c(), f(e(V), {
28
27
  key: 0,
29
28
  schema: e(u),
30
29
  table: e(s),
31
30
  field: e(l),
32
- set: e(i),
31
+ set: e(d),
33
32
  row: e(a)
34
33
  }, {
35
34
  default: v(() => [
@@ -37,13 +36,13 @@ const E = /* @__PURE__ */ C({
37
36
  schema: e(u),
38
37
  table: e(s),
39
38
  field: e(l),
40
- set: e(i),
39
+ set: e(d),
41
40
  row: e(a),
42
41
  modelValue: e(t),
43
- "onUpdate:modelValue": r[0] || (r[0] = (n) => b(t) ? t.value = n : t = n)
42
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => b(t) ? t.value = r : t = r)
44
43
  }, {
45
44
  default: v(() => [
46
- w("div", null, h(e(x)("common.unsupported_text_control", e(d))), 1)
45
+ w("div", null, h(e(x)("common.unsupported_text_control", e(i))), 1)
47
46
  ]),
48
47
  _: 1
49
48
  }, 8, ["schema", "table", "field", "set", "row", "modelValue"]))
@@ -54,18 +53,18 @@ const E = /* @__PURE__ */ C({
54
53
  schema: e(u),
55
54
  table: e(s),
56
55
  field: e(l),
57
- set: e(i),
56
+ set: e(d),
58
57
  row: e(a),
59
58
  modelValue: e(t),
60
- "onUpdate:modelValue": r[1] || (r[1] = (n) => b(t) ? t.value = n : t = n)
59
+ "onUpdate:modelValue": n[1] || (n[1] = (r) => b(t) ? t.value = r : t = r)
61
60
  }, {
62
61
  default: v(() => [
63
- w("div", null, h(e(x)("common.unsupported_text_control", e(d))), 1)
62
+ w("div", null, h(e(x)("common.unsupported_text_control", e(i))), 1)
64
63
  ]),
65
64
  _: 1
66
65
  }, 8, ["schema", "table", "field", "set", "row", "modelValue"]));
67
66
  }
68
67
  });
69
68
  export {
70
- E as default
69
+ A as default
71
70
  };
@@ -0,0 +1,4 @@
1
+ import { a as f } from "./main-DymfKjqO.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { N as f } from "./main-DymfKjqO.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-BzPCaYCg.js";
1
+ import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,80 @@
1
+ import { defineComponent as D, toRefs as N, ref as B, openBlock as c, createElementBlock as K, Fragment as L, createVNode as E, unref as e, createBlock as P, resolveDynamicComponent as V, withCtx as $, createElementVNode as F, toDisplayString as I } from "vue";
2
+ import { g as j, S as r } from "./main-DymfKjqO.js";
3
+ import "element-plus";
4
+ import "vue-router";
5
+ import "./assets/intro.js-Cg1adLK7.js";
6
+ const q = { class: "not-support" }, U = /* @__PURE__ */ D({
7
+ __name: "Index",
8
+ props: {
9
+ searchData: {},
10
+ module: {},
11
+ schema: {},
12
+ table: {},
13
+ layout: {},
14
+ next: {},
15
+ set: {},
16
+ url: {},
17
+ win: {}
18
+ },
19
+ emits: ["navigate", "sort", "search", "page-change", "size-change", "succeed", "close", "layout-change"],
20
+ setup(g, { expose: i, emit: u }) {
21
+ let o = u, h = g, { url: m, win: p, module: d, schema: y, table: s, layout: n, next: C, set: S, searchData: f } = N(h), l = B(), _ = (t, a) => {
22
+ o("navigate", t, a);
23
+ }, v = (t, a) => {
24
+ o("sort", t, a);
25
+ }, b = (t) => {
26
+ o("search", t);
27
+ }, x = (t, a = null) => {
28
+ o("page-change", t, a);
29
+ }, z = (t, a = null) => {
30
+ o("size-change", t, a);
31
+ }, k = (t = null) => {
32
+ o("succeed", t);
33
+ }, w = () => {
34
+ o("close");
35
+ }, R = (t) => {
36
+ o("layout-change", t);
37
+ };
38
+ return i({ onResize: (t) => {
39
+ r.triggerResize(l.value, t);
40
+ }, onKeyboard: (t, a) => {
41
+ r.triggerKeyboard(l.value, t, a);
42
+ }, onSocket: (t) => {
43
+ r.triggerSocket(l.value, t);
44
+ } }), (t, a) => (c(), K(L, null, [
45
+ E(e(j), {
46
+ layout: e(n),
47
+ table: e(s),
48
+ onLayoutChange: e(R)
49
+ }, null, 8, ["layout", "table", "onLayoutChange"]),
50
+ (c(), P(V(`paging-${e(n).type.toLowerCase()}`), {
51
+ ref_key: "pagingRef",
52
+ ref: l,
53
+ url: e(m),
54
+ win: e(p),
55
+ module: e(d),
56
+ schema: e(y),
57
+ table: e(s),
58
+ layout: e(n),
59
+ next: e(C),
60
+ set: e(S),
61
+ "search-data": e(f),
62
+ onNavigate: e(_),
63
+ onSort: e(v),
64
+ onSearch: e(b),
65
+ onPageChange: e(x),
66
+ onSizeChange: e(z),
67
+ onSucceed: e(k),
68
+ onClose: e(w)
69
+ }, {
70
+ default: $(() => [
71
+ F("div", q, "未支持的分页布局方式:" + I(e(n).type), 1)
72
+ ]),
73
+ _: 1
74
+ }, 40, ["url", "win", "module", "schema", "table", "layout", "next", "set", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onSucceed", "onClose"]))
75
+ ], 64));
76
+ }
77
+ });
78
+ export {
79
+ U as _
80
+ };
@@ -1,10 +1,9 @@
1
- import { defineComponent as x, toRefs as E, ref as R, onMounted as k, openBlock as u, createElementBlock as z, Fragment as B, createVNode as L, unref as e, createBlock as S, resolveDynamicComponent as D, withCtx as N, createElementVNode as V, toDisplayString as $ } from "vue";
2
- import { v as F, t as I } from "./main-KNkwb0pq.js";
3
- import "./assets/moment-h96o7c8I.js";
1
+ import { defineComponent as x, toRefs as E, ref as R, onMounted as S, openBlock as u, createElementBlock as k, Fragment as B, createVNode as L, unref as e, createBlock as z, resolveDynamicComponent as D, withCtx as N, createElementVNode as V, toDisplayString as $ } from "vue";
2
+ import { g as F, p as I, S as M } from "./main-DymfKjqO.js";
4
3
  import "element-plus";
5
4
  import "vue-router";
6
5
  import "./assets/intro.js-Cg1adLK7.js";
7
- const M = { class: "not-support" }, K = /* @__PURE__ */ x({
6
+ const j = { class: "not-support" }, K = /* @__PURE__ */ x({
8
7
  __name: "Index",
9
8
  props: {
10
9
  route: {},
@@ -14,48 +13,48 @@ const M = { class: "not-support" }, K = /* @__PURE__ */ x({
14
13
  table: {},
15
14
  layout: {},
16
15
  next: {},
17
- set: {}
16
+ set: {},
17
+ url: {},
18
+ win: {}
18
19
  },
19
20
  emits: ["layout-change", "row-edit", "change", "submit"],
20
21
  setup(s, { expose: i, emit: m }) {
21
- let o = m, d = s, { module: p, schema: c, table: r, layout: a, next: y, set: h } = E(d), l = R(), f = (t) => {
22
+ let o = m, p = s, { module: d, schema: c, table: l, layout: a, next: y, set: h } = E(p), n = R(), g = (t) => {
22
23
  o("layout-change", t);
23
- }, g = (t, n, w) => {
24
- o("row-edit", t, n, w);
24
+ }, f = (t, r, v) => {
25
+ o("row-edit", t, r, v);
25
26
  }, _ = () => {
26
27
  o("change");
27
28
  }, b = (t) => {
28
29
  o("submit", t);
29
- }, v = (t) => {
30
30
  }, C = (t) => {
31
- if (!l.value || !l.value.resize)
32
- return !1;
33
- l.value.resize(t);
31
+ }, w = (t) => {
32
+ M.triggerResize(n.value, t);
34
33
  };
35
- return k(() => {
36
- }), i({ update: v, resize: C }), (t, n) => (u(), z(B, null, [
34
+ return S(() => {
35
+ }), i({ update: C, onResize: w }), (t, r) => (u(), k(B, null, [
37
36
  L(e(F), {
38
37
  layout: e(a),
39
- table: e(r),
40
- onLayoutChange: e(f)
38
+ table: e(l),
39
+ onLayoutChange: e(g)
41
40
  }, null, 8, ["layout", "table", "onLayoutChange"]),
42
- (u(), S(D(`update-${e(a).type.toLowerCase()}`), {
41
+ (u(), z(D(`update-${e(a).type.toLowerCase()}`), {
43
42
  ref_key: "layoutRef",
44
- ref: l,
45
- module: e(p),
43
+ ref: n,
44
+ module: e(d),
46
45
  schema: e(c),
47
- table: e(r),
46
+ table: e(l),
48
47
  layout: e(a),
49
48
  next: e(y),
50
49
  set: e(h),
51
50
  route: t.route,
52
51
  "validate-errors": t.validateErrors,
53
- onRowEdit: e(g),
52
+ onRowEdit: e(f),
54
53
  onChange: e(_),
55
54
  onSubmit: e(b)
56
55
  }, {
57
56
  default: N(() => [
58
- V("div", M, $(e(I)("single.not_supported_layout", e(a).type)), 1)
57
+ V("div", j, $(e(I)("single.not_supported_layout", e(a).type)), 1)
59
58
  ]),
60
59
  _: 1
61
60
  }, 40, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"]))