halo-pc 1.0.20 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. package/dist/Article-C_3LULzy.js +200 -0
  2. package/dist/{ArticleFooter-CsCnjrJ1.js → ArticleFooter-Do6I1mma.js} +24 -18
  3. package/dist/{Autocomplete-BGkHGSX_.js → Autocomplete-BLOOqTTn.js} +1 -1
  4. package/dist/Autocomplete-BLrbt1wN.js +53 -0
  5. package/dist/Autocomplete-C27XN8Sp.js +54 -0
  6. package/dist/{CSharp-NuDfWEq7.js → CSharp-BGn9jf2B.js} +1 -1
  7. package/dist/{Calender-C2YaNTHk.js → Calender-4bSMqUzx.js} +4 -4
  8. package/dist/Callback-BHYDtogL.js +26 -0
  9. package/dist/Cascader-D3y3WjFF.js +87 -0
  10. package/dist/Cascader-D9Y8L7X2.js +47 -0
  11. package/dist/{Checkbox-BAcK--1U.js → Checkbox-DnTLeLjt.js} +1 -1
  12. package/dist/Checkbox-dDfYBhhc.js +76 -0
  13. package/dist/{Code-CbsVyhOv.js → Code-Af5URLnL.js} +1 -1
  14. package/dist/Code-Bi9Y45vV.js +42 -0
  15. package/dist/Code-CWsSgkJq.js +60 -0
  16. package/dist/{Code-BHEes80c.js → Code-QYs-sjcG.js} +1 -1
  17. package/dist/Code.vue_vue_type_style_index_0_lang-CI6sLXKy.js +65 -0
  18. package/dist/Column-wzxM_-Vp.js +74 -0
  19. package/dist/Comment-BF8L1umD.js +104 -0
  20. package/dist/Compare-CjSQcnd3.js +43 -0
  21. package/dist/{Compare-gEOPuGLB.js → Compare-Cj_CPjIV.js} +25 -19
  22. package/dist/Copy-BNt-Dwoo.js +49 -0
  23. package/dist/Custom-CYPkAqpf.js +57 -0
  24. package/dist/{DataExport-hwoZoZUN.js → DataExport-CHQtRKzA.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dkq4fSkZ.js → DataExport.vue_vue_type_script_setup_true_lang-Dt2BAaAO.js} +41 -36
  26. package/dist/{DataImport-CQYeF50z.js → DataImport-CDcmH3Du.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-dULXjbl_.js +176 -0
  28. package/dist/{Date-a3T1YbHN.js → Date-BStpsA7n.js} +1 -1
  29. package/dist/Date-U1py5NaK.js +43 -0
  30. package/dist/DateRange-DxAx2gxI.js +63 -0
  31. package/dist/DateTime-B3609Ct6.js +44 -0
  32. package/dist/{DateTime-BUYojCOY.js → DateTime-CmJw1-WA.js} +1 -1
  33. package/dist/{DateTimeRange-D9K4am0p.js → DateTimeRange-aDw57sTG.js} +17 -11
  34. package/dist/Daterange-C48t6usd.js +63 -0
  35. package/dist/{Decimal-CNhxJUZg.js → Decimal-Ca0K6NoZ.js} +1 -1
  36. package/dist/Delete-FhIvONUV.js +62 -0
  37. package/dist/{Detail-BXkTd6Wh.js → Detail-qqW0J946.js} +21 -15
  38. package/dist/Dictionary-CaXytFmK.js +59 -0
  39. package/dist/Email-H2DHJhMe.js +54 -0
  40. package/dist/{File-CAnAcqJX.js → File-CjXewuui.js} +33 -27
  41. package/dist/Image-BSuCHshD.js +9 -0
  42. package/dist/Index-9KImKLrj.js +4 -0
  43. package/dist/Index-BIbR8SAU.js +178 -0
  44. package/dist/Index-BaoxkF9F.js +4 -0
  45. package/dist/{Index-DJvB04cS.js → Index-BrI9x7i7.js} +1 -1
  46. package/dist/Index-CXR5RC6-.js +4 -0
  47. package/dist/{Index-RZT6JXBO.js → Index-CpGonJ_m.js} +1 -1
  48. package/dist/{Index-CseSUp2Z.js → Index-DUgprnVp.js} +1 -1
  49. package/dist/{Index-BqjKndKz.js → Index-icEhc88J.js} +25 -20
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DtNDN8Ex.js → Index.vue_vue_type_script_setup_true_lang-Beb5UD_S.js} +21 -15
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-C8ZEc4nU.js → Index.vue_vue_type_script_setup_true_lang-DJ8ZzZ2K.js} +22 -16
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-T12lwRy6.js → Index.vue_vue_type_style_index_0_lang-D7LuD-a2.js} +40 -35
  53. package/dist/{Install-DWWpscrR.js → Install-FwXpJIWk.js} +26 -20
  54. package/dist/Int-CXl1QpEL.js +44 -0
  55. package/dist/Int-DAxz3ETu.js +46 -0
  56. package/dist/List-CV9bkdrq.js +79 -0
  57. package/dist/Maintaince-DZNq9aHX.js +20 -0
  58. package/dist/{Markdown-d8PCfAFf.js → Markdown-BhwqDlwa.js} +1 -1
  59. package/dist/{Month-COEkKDL_.js → Month-BEmnA7zU.js} +1 -1
  60. package/dist/Month-DXQBHoJU.js +43 -0
  61. package/dist/Month-bgEd_K7_.js +44 -0
  62. package/dist/{Normal-BD7sNr-b.js → Normal-Dya4aqc7.js} +56 -51
  63. package/dist/Paging-JXDzxoM0.js +99 -0
  64. package/dist/{PagingHeader-CznmI0kr.js → PagingHeader-BETGBySb.js} +31 -25
  65. package/dist/{PagingRow-BJ-VLpfV.js → PagingRow-BLqp1c9E.js} +28 -22
  66. package/dist/QueryApi-B5jI3sBl.js +20 -0
  67. package/dist/{Racebar-BkwhD-rw.js → Racebar-CozeXwLJ.js} +42 -37
  68. package/dist/{Radio-CS12bajp.js → Radio-CuAxYw7j.js} +1 -1
  69. package/dist/{Register-l_X4fDPP.js → Register-B11jE2Ox.js} +78 -73
  70. package/dist/RichText-CxBE_cVg.js +47 -0
  71. package/dist/{SearchFooter-C8N9ku25.js → SearchFooter-agTqPUGE.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-6WvYHIn1.js → SearchFooter.vue_vue_type_style_index_0_lang-C-1Yr5_9.js} +1 -1
  73. package/dist/{SearchForm-DX0mN20A.js → SearchForm-DNKmE8W0.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-23AxHYiw.js → SearchForm.vue_vue_type_style_index_0_lang-BzrMV0Wr.js} +40 -35
  75. package/dist/Select-BPa5rx_H.js +86 -0
  76. package/dist/Select-CRfEAtba.js +117 -0
  77. package/dist/{Select-DYjvtHyi.js → Select-MqDjnB-C.js} +1 -1
  78. package/dist/{Single-DErvX9y_.js → Single-C5Kkr9SY.js} +112 -107
  79. package/dist/{Statistic-CQxXdu-V.js → Statistic-Ce_FMw5O.js} +36 -31
  80. package/dist/{Stock-CsoHCwV6.js → Stock-BTjhpaxv.js} +1 -1
  81. package/dist/{Stock-DXLdfC3r.js → Stock-D8AJmsvb.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-B-b3Lj_h.js → Stock.vue_vue_type_style_index_0_lang-DTj2ITJ6.js} +28 -23
  83. package/dist/{Switch-BCgZXfWo.js → Switch-gwGbi34o.js} +1 -1
  84. package/dist/{Table-CAVxyUTD.js → Table-C03eUBYm.js} +69 -63
  85. package/dist/{Table-DkJYgLFt.js → Table-DA8aGGEH.js} +74 -70
  86. package/dist/{Text-Cn0cOTli.js → Text-B5uPrGof.js} +18 -12
  87. package/dist/Text-D-VS-lCk.js +59 -0
  88. package/dist/Text-NRww74M3.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-Fsbur1tJ.js +59 -0
  90. package/dist/TextLink-B_Qg6CnF.js +65 -0
  91. package/dist/{Textarea-Pc4TfoC3.js → Textarea-gtXLL6Qe.js} +1 -1
  92. package/dist/Time-DYOIZ2Rv.js +43 -0
  93. package/dist/Timeline-B4AYezYA.js +59 -0
  94. package/dist/{Tree-01Sb-9zi.js → Tree-CRDb0vS5.js} +67 -62
  95. package/dist/Tree-CTmXjN1O.js +122 -0
  96. package/dist/TreeNode-HFcGpAOb.js +42 -0
  97. package/dist/{Update-Cy1lFPVv.js → Update-EHyhYK5k.js} +18 -12
  98. package/dist/{UpdateChild-DV_8KV9G.js → UpdateChild-CC3b9evd.js} +23 -17
  99. package/dist/Upload-CkQ-5tVg.js +72 -0
  100. package/dist/Upload-um4BYzwO.js +150 -0
  101. package/dist/UploadApi-BmdGJGjh.js +20 -0
  102. package/dist/Year-DKBG5ihv.js +47 -0
  103. package/dist/{Year-BFZPXXq0.js → Year-Lhvyb9Vk.js} +1 -1
  104. package/dist/assets/@intlify-BISCQg1h.js +2189 -0
  105. package/dist/assets/@vue-aVYGocXp.js +93 -0
  106. package/dist/assets/clone-BZn0cTAu.js +134 -0
  107. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  108. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  109. package/dist/assets/moment-h96o7c8I.js +2578 -0
  110. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  111. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  112. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  113. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  114. package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
  115. package/dist/main-C1iALE1f.js +8947 -0
  116. package/dist/main.js +42 -41
  117. package/package.json +2 -2
  118. package/dist/Article-aps_F4Uq.js +0 -194
  119. package/dist/Autocomplete-CGoxGIM2.js +0 -48
  120. package/dist/Autocomplete-XdLV4jzi.js +0 -49
  121. package/dist/Callback-Czdr_dVp.js +0 -20
  122. package/dist/Cascader-D3Kr80fH.js +0 -81
  123. package/dist/Cascader-DRvnD4Xc.js +0 -41
  124. package/dist/Checkbox-5pSKww4M.js +0 -70
  125. package/dist/Code-BxQxsVD8.js +0 -54
  126. package/dist/Code-CtDTGfBy.js +0 -36
  127. package/dist/Code.vue_vue_type_style_index_0_lang-CPZKY3vQ.js +0 -59
  128. package/dist/Column-D3PMyaiE.js +0 -68
  129. package/dist/Comment-B3fvVYJF.js +0 -98
  130. package/dist/Compare-BXxJuIXf.js +0 -37
  131. package/dist/Copy-1znXP-dt.js +0 -43
  132. package/dist/Custom-C_15ZImX.js +0 -51
  133. package/dist/DataImport.vue_vue_type_script_setup_true_lang-ChWRjj2W.js +0 -172
  134. package/dist/Date-0bIUTNCs.js +0 -37
  135. package/dist/DateRange-Cxu9FXTE.js +0 -57
  136. package/dist/DateTime-IlsYZL-l.js +0 -38
  137. package/dist/Daterange-CX0Klog4.js +0 -57
  138. package/dist/Delete-DFl8Tr27.js +0 -56
  139. package/dist/Dictionary-DmarNVsi.js +0 -55
  140. package/dist/Email-BBjDCCOK.js +0 -48
  141. package/dist/Image-pufFvop2.js +0 -9
  142. package/dist/Index-C4D5pwwu.js +0 -173
  143. package/dist/Index-CD_KS2lO.js +0 -4
  144. package/dist/Index-CEh3KlPE.js +0 -4
  145. package/dist/Index-XmvSiC1h.js +0 -4
  146. package/dist/Int-Bi3P8XeV.js +0 -41
  147. package/dist/Int-Bn2p1DqA.js +0 -38
  148. package/dist/List-CeQRwXop.js +0 -73
  149. package/dist/Maintaince-CVMjhqSO.js +0 -14
  150. package/dist/Month-BfUSQ3xa.js +0 -38
  151. package/dist/Month-DQKfNQzN.js +0 -37
  152. package/dist/Paging-d_-VefNv.js +0 -94
  153. package/dist/QueryApi-Cdniq3mZ.js +0 -13
  154. package/dist/RichText-9MwwjuZi.js +0 -41
  155. package/dist/Select-CQE5kY-n.js +0 -111
  156. package/dist/Select-DaEqum3a.js +0 -80
  157. package/dist/Text-Dk5tNNZo.js +0 -53
  158. package/dist/Text-DvVWvaMO.js +0 -4
  159. package/dist/Text.vue_vue_type_style_index_0_lang-I01JEYAx.js +0 -53
  160. package/dist/TextLink-D3nvnLHn.js +0 -59
  161. package/dist/Time-CToG3p0T.js +0 -37
  162. package/dist/Timeline-DphvhX0U.js +0 -53
  163. package/dist/Tree-CH1RoUqu.js +0 -117
  164. package/dist/TreeNode-C54d29V-.js +0 -37
  165. package/dist/Upload-BalaO4wz.js +0 -146
  166. package/dist/Upload-DQVaPUdG.js +0 -67
  167. package/dist/UploadApi-Cfm5DM_x.js +0 -13
  168. package/dist/Year-Swm3VSzj.js +0 -41
  169. package/dist/main-BYJVoHlf.js +0 -19457
@@ -1,57 +0,0 @@
1
- import { defineComponent as f, toRefs as h, ref as k, computed as V, resolveComponent as b, openBlock as g, createBlock as v, unref as o, isRef as x } from "vue";
2
- import { l as e, P as l } from "./main-BYJVoHlf.js";
3
- const R = /* @__PURE__ */ f({
4
- __name: "DateRange",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(m, { emit: p }) {
15
- let n = p, u = m, { table: M, field: c, set: Y, modelValue: i } = h(u), t = e.formatDate(/* @__PURE__ */ new Date()), D = k({
16
- shortcuts: [{
17
- text: l("common.latest_one_week"),
18
- value() {
19
- return [e.formatDate(e.addDays(t, -7)), t];
20
- }
21
- }, {
22
- text: l("common.latest_one_month"),
23
- value() {
24
- return [e.formatDate(e.addMonths(t, -1)), t];
25
- }
26
- }, {
27
- text: l("common.latest_three_months"),
28
- value() {
29
- return [e.formatDate(e.addMonths(t, -3)), t];
30
- }
31
- }]
32
- }), r = V({
33
- get() {
34
- return i.value;
35
- },
36
- set(a) {
37
- n("update:modelValue", a), n("change", a);
38
- }
39
- });
40
- return (a, s) => {
41
- const _ = b("el-date-picker");
42
- return g(), v(_, {
43
- type: "daterange",
44
- "value-dataat": "YYYY-MM-DD",
45
- "start-placeholder": o(l)("common.start_date"),
46
- "end-placeholder": o(l)("common.end_date"),
47
- "picker-options": o(D),
48
- disabled: o(c).control.readonly,
49
- modelValue: o(r),
50
- "onUpdate:modelValue": s[0] || (s[0] = (d) => x(r) ? r.value = d : r = d)
51
- }, null, 8, ["start-placeholder", "end-placeholder", "picker-options", "disabled", "modelValue"]);
52
- };
53
- }
54
- });
55
- export {
56
- R as default
57
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as c, toRefs as f, computed as _, resolveComponent as V, openBlock as b, createBlock as h, unref as e, isRef as k } from "vue";
2
- import { q as Y } from "./main-BYJVoHlf.js";
3
- const q = /* @__PURE__ */ c({
4
- __name: "DateTime",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(r, { emit: n }) {
15
- let o = n, s = r, { table: p, field: a, set: g, modelValue: u } = f(s), l = _({
16
- get() {
17
- return u.value;
18
- },
19
- set(t) {
20
- o("update:modelValue", t), o("change", t);
21
- }
22
- });
23
- return (t, m) => {
24
- const i = V("el-date-picker");
25
- return b(), h(i, {
26
- type: "datetime",
27
- "value-format": "YYYY-MM-DD HH:mm:ss SSS",
28
- disabled: e(a).control.readonly,
29
- placeholder: e(Y)(e(p).name, e(a).name),
30
- modelValue: e(l),
31
- "onUpdate:modelValue": m[0] || (m[0] = (d) => k(l) ? l.value = d : l = d)
32
- }, null, 8, ["disabled", "placeholder", "modelValue"]);
33
- };
34
- }
35
- });
36
- export {
37
- q as default
38
- };
@@ -1,57 +0,0 @@
1
- import { defineComponent as i, toRefs as g, ref as V, computed as k, resolveComponent as v, openBlock as x, createBlock as b, unref as o, isRef as C } from "vue";
2
- import { l as t, P as l } from "./main-BYJVoHlf.js";
3
- const B = /* @__PURE__ */ i({
4
- __name: "Daterange",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- searchData: {},
10
- modelValue: {}
11
- },
12
- emits: ["change", "update:modelValue"],
13
- setup(m, { emit: c }) {
14
- let n = c, u = m, { table: M, field: p, searchData: Y, modelValue: h } = g(u), a = t.formatDate(/* @__PURE__ */ new Date()), D = V([{
15
- text: l("common.latest_one_week"),
16
- value() {
17
- return [t.formatDate(t.addDays(a, -7)), a];
18
- }
19
- }, {
20
- text: l("common.latest_one_month"),
21
- value() {
22
- return [t.formatDate(t.addMonths(a, -1)), a];
23
- }
24
- }, {
25
- text: l("common.latest_three_months"),
26
- value() {
27
- return [t.formatDate(t.addMonths(a, -3)), a];
28
- }
29
- }]), f = (e) => {
30
- n("change", e);
31
- }, r = k({
32
- get() {
33
- return h.value;
34
- },
35
- set(e) {
36
- n("update:modelValue", e), n("change", e);
37
- }
38
- });
39
- return (e, s) => {
40
- const _ = v("el-date-picker");
41
- return x(), b(_, {
42
- type: "daterange",
43
- "value-format": "YYYY-MM-DD",
44
- "start-placeholder": o(l)("common.start_date"),
45
- "end-placeholder": o(l)("common.end_date"),
46
- shortcuts: o(D),
47
- disabled: o(p).control.readonly,
48
- onChange: o(f),
49
- modelValue: o(r),
50
- "onUpdate:modelValue": s[0] || (s[0] = (d) => C(r) ? r.value = d : r = d)
51
- }, null, 8, ["start-placeholder", "end-placeholder", "shortcuts", "disabled", "onChange", "modelValue"]);
52
- };
53
- }
54
- });
55
- export {
56
- B as default
57
- };
@@ -1,56 +0,0 @@
1
- import { defineComponent as x, toRefs as g, ref as y, resolveComponent as B, openBlock as D, createElementBlock as N, createElementVNode as i, toDisplayString as o, unref as e, createVNode as r, withCtx as d, createTextVNode as m } from "vue";
2
- import { P as l, L as V, b as w, r as E } from "./main-BYJVoHlf.js";
3
- const P = { class: "delete" }, S = { class: "delete-title" }, q = { class: "delete-buttons" }, U = /* @__PURE__ */ x({
4
- __name: "Delete",
5
- props: {
6
- base: {},
7
- route: {},
8
- url: {},
9
- win: {}
10
- },
11
- emits: ["navigate", "succeed", "close"],
12
- setup(u, { emit: _ }) {
13
- let c = _, p = u, { base: f, route: v } = g(p), n = y(), b = (t) => {
14
- n.value = t.next;
15
- };
16
- (() => {
17
- b(f.value.data);
18
- })();
19
- let k = () => {
20
- let t = [v.value.query.id];
21
- V.post(n.value.delete.route, t).then((s) => {
22
- w.success(s.message), C();
23
- });
24
- }, C = () => {
25
- E.toBackUrl(), c("succeed", "delete");
26
- }, h = () => {
27
- c("close");
28
- };
29
- return (t, s) => {
30
- const a = B("el-button");
31
- return D(), N("div", P, [
32
- i("div", S, o(e(l)("common.confirm_delete")), 1),
33
- i("div", q, [
34
- r(a, {
35
- type: "danger",
36
- onClick: e(k)
37
- }, {
38
- default: d(() => [
39
- m(o(e(l)("common.confirm")), 1)
40
- ]),
41
- _: 1
42
- }, 8, ["onClick"]),
43
- r(a, { onClick: e(h) }, {
44
- default: d(() => [
45
- m(o(e(l)("common.cancel")), 1)
46
- ]),
47
- _: 1
48
- }, 8, ["onClick"])
49
- ])
50
- ]);
51
- };
52
- }
53
- });
54
- export {
55
- U as default
56
- };
@@ -1,55 +0,0 @@
1
- import { defineComponent as g, toRefs as x, computed as r, resolveComponent as h, openBlock as o, createElementBlock as a, Fragment as V, renderList as b, unref as k, createBlock as B, normalizeStyle as C, withCtx as N, createTextVNode as S, toDisplayString as u, createCommentVNode as w } from "vue";
2
- import { U as s, Q as D, n as E } from "./main-BYJVoHlf.js";
3
- const z = { class: "text-dictionary" }, F = {
4
- key: 0,
5
- class: "suffix"
6
- }, j = /* @__PURE__ */ g({
7
- __name: "Dictionary",
8
- props: {
9
- schema: {},
10
- table: {},
11
- field: {},
12
- set: {},
13
- row: {},
14
- modelValue: { type: [String, Number, Boolean] }
15
- },
16
- emits: ["submit", "change", "update:modelValue"],
17
- setup(i, { emit: c }) {
18
- let n = c, m = i, { table: L, field: d, set: Q, modelValue: f } = x(m), t = r({
19
- get() {
20
- return f.value;
21
- },
22
- set(e) {
23
- n("update:modelValue", e), n("change", e);
24
- }
25
- }), p = r(() => {
26
- if (t.value == null)
27
- return [];
28
- if (s.isNumber(t.value))
29
- return [t.value];
30
- if (s.isBoolean(t.value))
31
- return [t.value];
32
- let e = t.value.toString();
33
- return D.isEmpty(e) ? [] : e.split(",");
34
- }), _ = r(() => E.fromValues(p.value, d.value.control.data.data, "value", "text"));
35
- return (e, R) => {
36
- const v = h("el-tag");
37
- return o(), a("div", z, [
38
- (o(!0), a(V, null, b(k(_), (l, y) => (o(), B(v, {
39
- type: "info",
40
- style: C({ color: l.color }),
41
- key: y
42
- }, {
43
- default: N(() => [
44
- S(u(l.text) + " ", 1),
45
- l.suffix ? (o(), a("span", F, "(" + u(l.suffix) + ")", 1)) : w("", !0)
46
- ]),
47
- _: 2
48
- }, 1032, ["style"]))), 128))
49
- ]);
50
- };
51
- }
52
- });
53
- export {
54
- j as default
55
- };
@@ -1,48 +0,0 @@
1
- import { defineComponent as f, toRefs as V, computed as _, resolveComponent as b, openBlock as y, createBlock as h, unref as e, withKeys as x, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as C } from "vue";
2
- import { V as K } from "./main-BYJVoHlf.js";
3
- const D = /* @__PURE__ */ f({
4
- __name: "Email",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(i, { emit: s }) {
15
- let o = s, u = i, { table: d, field: t, set: B, modelValue: p } = V(u), r = () => {
16
- o("submit");
17
- }, l = _({
18
- get() {
19
- return p.value;
20
- },
21
- set(a) {
22
- o("update:modelValue", a), o("change", a);
23
- }
24
- });
25
- return (a, n) => {
26
- const c = b("el-input");
27
- return y(), h(c, {
28
- type: "email",
29
- disabled: e(t).control.readonly,
30
- placeholder: e(K)(e(d).name, e(t).name),
31
- onKeyup: x(e(r), ["enter", "native"]),
32
- modelValue: e(l),
33
- "onUpdate:modelValue": n[0] || (n[0] = (m) => g(l) ? l.value = m : l = m)
34
- }, k({ _: 2 }, [
35
- e(t).suffix ? {
36
- name: "append",
37
- fn: v(() => [
38
- w(C(e(t).suffix), 1)
39
- ]),
40
- key: "0"
41
- } : void 0
42
- ]), 1032, ["disabled", "placeholder", "onKeyup", "modelValue"]);
43
- };
44
- }
45
- });
46
- export {
47
- D as default
48
- };
@@ -1,9 +0,0 @@
1
- import { g as e } from "./main-BYJVoHlf.js";
2
- const r = {};
3
- function c(n, t) {
4
- return null;
5
- }
6
- const o = /* @__PURE__ */ e(r, [["render", c]]);
7
- export {
8
- o as default
9
- };
@@ -1,173 +0,0 @@
1
- import { defineComponent as H, ref as u, onMounted as Q, computed as S, watch as j, resolveComponent as c, openBlock as d, createElementBlock as C, createVNode as g, unref as l, withCtx as p, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as R, isRef as $, withKeys as L, normalizeClass as D, withModifiers as G, createTextVNode as T, Fragment as Z, renderList as J, nextTick as K } from "vue";
2
- import { useRoute as W } from "vue-router";
3
- import { G as X, o as w, R as Y, P as i, Q as ee, $ as F, K as te, r as I, I as le } from "./main-BYJVoHlf.js";
4
- const oe = { class: "login-container" }, re = { class: "title-container" }, se = { class: "title" }, ne = /* @__PURE__ */ n("span", { class: "svg-container" }, [
5
- /* @__PURE__ */ n("i", { class: "fa fa-user" })
6
- ], -1), ae = /* @__PURE__ */ n("span", { class: "svg-container" }, [
7
- /* @__PURE__ */ n("i", { class: "fa fa-key" })
8
- ], -1), ie = { class: "btn-others" }, ue = ["href"], de = ["innerHTML"], _e = /* @__PURE__ */ H({
9
- __name: "Index",
10
- setup(fe) {
11
- let a = u({ id: "", secret: "" }), f = u("password"), s = u(!1), _ = u(!1), U = u(), V = u(), h = u(), x = W(), M = {
12
- id: [{
13
- required: !0,
14
- trigger: "blur",
15
- validator: (t, e, r) => {
16
- e ? e.indexOf("@") > -1 ? ee.isEmail(e) ? r() : r(new Error("邮箱格式不正确")) : r() : r(new Error(i("common.username_or_email") + " " + i("common.should_not_null")));
17
- }
18
- }]
19
- // secret: [{required: true, trigger: 'blur', validator: validateSecret}]
20
- }, N = (t) => {
21
- t.key && t.key.length == 1 && (t.shiftKey && t.key >= "a" && t.key <= "z" || !t.shiftKey && t.key >= "A" && t.key <= "Z" ? s.value = !0 : s.value = !1), t.key == "CapsLock" && s.value == !0 && (s.value = !1);
22
- }, B = () => {
23
- f.value == "password" ? f.value = "" : f.value = "password", K(() => {
24
- h.value.focus();
25
- });
26
- }, E = async (t) => {
27
- _.value = !0, U.value.validate(async (e) => {
28
- if (!e)
29
- return _.value = !1, !1;
30
- (await F.sso.create(t)).login(a.value).then(({ data: m }) => {
31
- te.getBackUrl() ? I.toBackUrl() : I.to("/");
32
- }).finally(() => {
33
- K(() => {
34
- _.value = !1;
35
- });
36
- });
37
- });
38
- }, O = async (t) => {
39
- let e = await F.sso.create(t), r = x.query.return_url, m = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${r}`;
40
- return e.loginUrl(le.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(m));
41
- }, q = (t) => Object.keys(t).reduce((e, r) => (e[r] = t[r], e), {});
42
- Q(async () => {
43
- X.setI18nTitle("common.login");
44
- for (let t = 0; t < w.ssos.length; t++) {
45
- let e = w.ssos[t];
46
- e.loginUrl = await O(e.type);
47
- }
48
- y.value != null && (a.value.id == "" ? V.value.focus() : a.value.secret == "" && h.value.focus());
49
- });
50
- let y = S(() => w.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
51
- return j(() => x, (t) => {
52
- debugger;
53
- const e = t.query;
54
- e && q(e);
55
- }), (t, e) => {
56
- const r = c("el-input"), m = c("el-form-item"), b = c("el-tooltip"), A = c("el-button"), P = c("router-link"), z = c("el-form");
57
- return d(), C("div", oe, [
58
- g(z, {
59
- ref_key: "loginFormRef",
60
- ref: U,
61
- autocomplete: "on",
62
- "label-position": "left",
63
- model: l(a),
64
- rules: l(M)
65
- }, {
66
- default: p(() => [
67
- n("div", re, [
68
- n("h3", se, k(l(Y)("title")), 1)
69
- ]),
70
- l(y) ? (d(), v(m, {
71
- key: 0,
72
- prop: "id"
73
- }, {
74
- default: p(() => [
75
- ne,
76
- g(r, {
77
- ref_key: "idRef",
78
- ref: V,
79
- placeholder: l(i)("common.username_or_email"),
80
- name: "id",
81
- type: "text",
82
- tabindex: "1",
83
- autocomplete: "on",
84
- modelValue: l(a).id,
85
- "onUpdate:modelValue": e[0] || (e[0] = (o) => l(a).id = o)
86
- }, null, 8, ["placeholder", "modelValue"])
87
- ]),
88
- _: 1
89
- })) : R("", !0),
90
- l(y) ? (d(), v(b, {
91
- key: 1,
92
- content: "Caps lock is On",
93
- placement: "right",
94
- manual: "",
95
- modelValue: l(s),
96
- "onUpdate:modelValue": e[5] || (e[5] = (o) => $(s) ? s.value = o : s = o)
97
- }, {
98
- default: p(() => [
99
- g(m, { prop: "secret" }, {
100
- default: p(() => [
101
- ae,
102
- (d(), v(r, {
103
- ref_key: "secretRef",
104
- ref: h,
105
- key: l(f),
106
- type: l(f),
107
- placeholder: l(i)("common.password"),
108
- name: "secret",
109
- tabindex: "2",
110
- autocomplete: "on",
111
- onKeyup: [
112
- L(l(N), ["native"]),
113
- e[2] || (e[2] = L((o) => l(E)("Bearer"), ["enter", "native"]))
114
- ],
115
- onBlur: e[1] || (e[1] = (o) => $(s) ? s.value = !1 : s = !1),
116
- modelValue: l(a).secret,
117
- "onUpdate:modelValue": e[3] || (e[3] = (o) => l(a).secret = o)
118
- }, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
119
- n("span", {
120
- class: "btn-pwd",
121
- onClick: e[4] || (e[4] = //@ts-ignore
122
- (...o) => l(B) && l(B)(...o))
123
- }, [
124
- n("i", {
125
- class: D(l(f) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
126
- }, null, 2)
127
- ])
128
- ]),
129
- _: 1
130
- })
131
- ]),
132
- _: 1
133
- }, 8, ["modelValue"])) : R("", !0),
134
- l(y) ? (d(), v(A, {
135
- key: 2,
136
- type: "primary",
137
- class: "btn-login",
138
- loading: l(_),
139
- onClick: e[6] || (e[6] = G((o) => l(E)("Bearer"), ["prevent"]))
140
- }, {
141
- default: p(() => [
142
- T(k(l(i)("common.login")), 1)
143
- ]),
144
- _: 1
145
- }, 8, ["loading"])) : R("", !0),
146
- n("div", ie, [
147
- (d(!0), C(Z, null, J(l(w).ssos.filter((o) => o.type.toUpperCase() != "BEARER"), (o) => (d(), C("a", {
148
- href: o.loginUrl
149
- }, k(l(i)(o.text)), 9, ue))), 256)),
150
- g(P, {
151
- class: "btn-register",
152
- to: "/register"
153
- }, {
154
- default: p(() => [
155
- T(k(l(i)("common.register")), 1)
156
- ]),
157
- _: 1
158
- })
159
- ])
160
- ]),
161
- _: 1
162
- }, 8, ["model", "rules"]),
163
- n("div", {
164
- class: "powered-by",
165
- innerHTML: l(i)("sys.powered_by")
166
- }, null, 8, de)
167
- ]);
168
- };
169
- }
170
- });
171
- export {
172
- _e as default
173
- };
@@ -1,4 +0,0 @@
1
- import { W as f } from "./main-BYJVoHlf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { w as f } from "./main-BYJVoHlf.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { a as f } from "./main-BYJVoHlf.js";
2
- export {
3
- f as default
4
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as c, toRefs as f, computed as V, resolveComponent as _, openBlock as g, createBlock as h, unref as e, withKeys as v, isRef as y } from "vue";
2
- import { Q as K, V as k } from "./main-BYJVoHlf.js";
3
- const C = /* @__PURE__ */ c({
4
- __name: "Int",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- set: {},
10
- row: {},
11
- modelValue: {}
12
- },
13
- emits: ["submit", "change", "update:modelValue"],
14
- setup(r, { emit: i }) {
15
- let l = i, s = r, { table: d, field: n, set: w, modelValue: a } = f(s), p = () => {
16
- l("submit");
17
- }, t = V({
18
- get() {
19
- if (K.isNumber(a.value))
20
- return a.value;
21
- },
22
- set(o) {
23
- l("update:modelValue", o), l("change", o);
24
- }
25
- });
26
- return (o, u) => {
27
- const b = _("el-input-number");
28
- return g(), h(b, {
29
- "aria-label": e(k)(e(d).name, e(n).name),
30
- "controls-position": "right",
31
- disabled: e(n).control.readonly,
32
- onKeyup: v(e(p), ["enter", "native"]),
33
- modelValue: e(t),
34
- "onUpdate:modelValue": u[0] || (u[0] = (m) => y(t) ? t.value = m : t = m)
35
- }, null, 8, ["aria-label", "disabled", "onKeyup", "modelValue"]);
36
- };
37
- }
38
- });
39
- export {
40
- C as default
41
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as f, toRefs as _, computed as h, resolveComponent as b, openBlock as V, createBlock as g, unref as e, withKeys as N, isRef as y } from "vue";
2
- import { P as K, N as k } from "./main-BYJVoHlf.js";
3
- const D = /* @__PURE__ */ f({
4
- __name: "Int",
5
- props: {
6
- schema: {},
7
- table: {},
8
- field: {},
9
- searchData: {},
10
- modelValue: {}
11
- },
12
- emits: ["change", "submit", "update:modelValue"],
13
- setup(m, { emit: u }) {
14
- let l = u, s = m, { table: p, field: r, searchData: x, modelValue: i } = _(s), d = () => {
15
- l("submit");
16
- }, o = h({
17
- get() {
18
- return i.value;
19
- },
20
- set(t) {
21
- isNaN(t) && (t = null), l("update:modelValue", t), l("change", t);
22
- }
23
- });
24
- return (t, n) => {
25
- const c = b("el-input-number");
26
- return V(), g(c, {
27
- placeholder: e(K)("common.please_input") + e(k)(e(p).name, e(r).name),
28
- "controls-position": "right",
29
- onKeyup: N(e(d), ["enter", "native"]),
30
- modelValue: e(o),
31
- "onUpdate:modelValue": n[0] || (n[0] = (a) => y(o) ? o.value = a : o = a)
32
- }, null, 8, ["placeholder", "onKeyup", "modelValue"]);
33
- };
34
- }
35
- });
36
- export {
37
- D as default
38
- };
@@ -1,73 +0,0 @@
1
- import { defineComponent as B, toRefs as K, ref as u, watch as E, openBlock as F, createBlock as G, resolveDynamicComponent as T, unref as t, withCtx as U, createElementVNode as V, toDisplayString as $ } from "vue";
2
- import { K as n, c as j, G as A, s as v, d as H } from "./main-BYJVoHlf.js";
3
- const I = { class: "not-support" }, Q = /* @__PURE__ */ B({
4
- __name: "List",
5
- props: {
6
- base: {},
7
- route: {},
8
- url: {},
9
- win: {}
10
- },
11
- emits: ["load", "navigate"],
12
- setup(b, { expose: S, emit: P }) {
13
- let h = P, k = b, { url: m, base: p, route: r } = K(k), f = u(), i = u(), s = u(), y = u(), g = u(), o = u(), c = u(), q = (e) => {
14
- let l = n.getPath(e), a = n.getPath(m.value);
15
- return l != a;
16
- }, C = (e) => {
17
- let l = n.getPath(m.value), a = n.getPath(e);
18
- return l != a;
19
- }, x = (e) => {
20
- var a;
21
- let l = j(e.module.type, e.module.name);
22
- A.setTitle(l, e.module.env), f.value = e.module, i.value = v.expandSchema(e.schema), s.value = (a = i.value) == null ? void 0 : a[0], y.value = e.next, g.value = v.expandSet(e.schema, e.set), c.value = v.getConditionForm(i.value, r.value.query.condition);
23
- }, d = (e = null, l = null) => {
24
- let a = e ?? r.value.query, N = n.getUrl(r.value.path, a);
25
- h("load", N, !1, l);
26
- }, R = (e) => {
27
- d(null, e);
28
- }, w = (e) => {
29
- h("navigate", e);
30
- }, D = async (e) => {
31
- let l = r.value.query;
32
- l.condition = H.encode(c.value), d(l, e);
33
- }, _ = () => {
34
- d();
35
- }, z = (e, l) => {
36
- if (!o.value || !o.value.keyboard)
37
- return !1;
38
- o.value.keyboard(e, l);
39
- }, L = (e) => {
40
- if (!o.value || !o.value.resize)
41
- return !1;
42
- o.value.resize(e);
43
- };
44
- return (() => {
45
- x(p.value.data);
46
- })(), E(() => p.value, (e) => {
47
- x(e.data);
48
- }), S({ shouldLoad: q, shouldSpin: C, refresh: _, keyboard: z, resize: L }), (e, l) => (F(), G(T(`list-${t(s).layouts[0].type.toLowerCase()}`), {
49
- ref_key: "listRef",
50
- ref: o,
51
- route: t(r),
52
- module: t(f),
53
- schema: t(i),
54
- table: t(s),
55
- layout: t(s).layouts[0],
56
- next: t(y),
57
- set: t(g),
58
- "search-data": t(c),
59
- onSucceed: t(R),
60
- onSearch: t(D),
61
- onNavigate: t(w),
62
- onRefresh: t(_)
63
- }, {
64
- default: U(() => [
65
- V("div", I, "未支持的列表布局方式:" + $(t(s).layouts[0].type), 1)
66
- ]),
67
- _: 1
68
- }, 40, ["route", "module", "schema", "table", "layout", "next", "set", "search-data", "onSucceed", "onSearch", "onNavigate", "onRefresh"]));
69
- }
70
- });
71
- export {
72
- Q as default
73
- };