halo-pc 1.0.13 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/Article-DASEvkfO.js +194 -0
  2. package/dist/{ArticleFooter-BbDi3-MM.js → ArticleFooter-BSesl8iy.js} +17 -24
  3. package/dist/{Autocomplete-KcemMig-.js → Autocomplete-ClAQY5V5.js} +1 -1
  4. package/dist/Autocomplete-CzfOoMve.js +48 -0
  5. package/dist/Autocomplete-DToic2Cg.js +49 -0
  6. package/dist/{CSharp-Re2Hef51.js → CSharp-23QccebX.js} +1 -1
  7. package/dist/{Calender-BdLz8uVu.js → Calender-DZkQaIeV.js} +3 -3
  8. package/dist/Callback-CWBDUe_C.js +20 -0
  9. package/dist/Cascader-BDfFyqiv.js +41 -0
  10. package/dist/Cascader-CpD_hbhQ.js +81 -0
  11. package/dist/Checkbox--gCBkIuI.js +70 -0
  12. package/dist/{Checkbox-C4vv9clz.js → Checkbox-SLi7MK1r.js} +1 -1
  13. package/dist/Code-BVTjF5rW.js +54 -0
  14. package/dist/{Code-oAwc2PqM.js → Code-C4hdU4t4.js} +1 -1
  15. package/dist/Code-CO4WPAe_.js +4 -0
  16. package/dist/Code-nrn4wOhB.js +36 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
  18. package/dist/Column-DcMAu4JL.js +68 -0
  19. package/dist/Comment-CPxVIapg.js +98 -0
  20. package/dist/Compare-C2oFy0EZ.js +56 -0
  21. package/dist/Compare-P9zOBC1v.js +26 -0
  22. package/dist/Copy-B5vrho98.js +43 -0
  23. package/dist/Custom-BETJLilj.js +51 -0
  24. package/dist/{DataExport-Bfcwgxhl.js → DataExport-YTc4EX6l.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-DxEJA5Ee.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
  26. package/dist/{DataImport-BPx3VvYv.js → DataImport-ByV8MQkV.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-5gkTElFL.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
  28. package/dist/{Date-FuMiaUxd.js → Date-DbTzQla9.js} +1 -1
  29. package/dist/Date-DpiWNuFs.js +37 -0
  30. package/dist/DateRange-Su0Q2cwY.js +57 -0
  31. package/dist/{DateTime-CyCcFf_l.js → DateTime-C3NrioJi.js} +1 -1
  32. package/dist/DateTime-QyKfqaVG.js +38 -0
  33. package/dist/{DateTimeRange-Db9BDn2x.js → DateTimeRange-lytkhCjC.js} +11 -18
  34. package/dist/Daterange-D7ZHkOmo.js +57 -0
  35. package/dist/{Decimal-F1-H75HK.js → Decimal-CTTT98BQ.js} +1 -1
  36. package/dist/Delete-MfXy7gUi.js +56 -0
  37. package/dist/{Detail-AhGw1lSI.js → Detail-CUiSzyT7.js} +16 -23
  38. package/dist/Dictionary-Dd_IU-Hn.js +55 -0
  39. package/dist/Email-BzN4JpJv.js +48 -0
  40. package/dist/{File-1ATMHoXy.js → File-Ckh37Ne2.js} +42 -49
  41. package/dist/Image-Dkd69DoD.js +9 -0
  42. package/dist/Index-CGJLRExG.js +4 -0
  43. package/dist/Index-CLzHDG05.js +4 -0
  44. package/dist/{Index-BlsoOd-w.js → Index-DJJcNPgN.js} +61 -67
  45. package/dist/{Index-Bk0v21aV.js → Index-DlrpDUD3.js} +1 -1
  46. package/dist/Index-DxvVjg9S.js +70 -0
  47. package/dist/{Index-CXbpni6W.js → Index-G36KYPCK.js} +1 -1
  48. package/dist/Index-dTIwhIau.js +4 -0
  49. package/dist/{Index-CY3JroZR.js → Index-x4c71OJZ.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DqLF_iyM.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-C5HbpsSj.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-fOkzw7J1.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
  53. package/dist/{Install-DWNrbMRl.js → Install-BW_ulT9I.js} +21 -28
  54. package/dist/Int-BRqYiJo7.js +41 -0
  55. package/dist/{Int-E-wewJ2r.js → Int-BYSjwPG_.js} +9 -16
  56. package/dist/List-DAFqVlam.js +73 -0
  57. package/dist/Maintaince-B8mM4PEp.js +14 -0
  58. package/dist/{Markdown-DBvQ_Q4I.js → Markdown-BXKlgSON.js} +1 -1
  59. package/dist/Month-BHvq72xE.js +37 -0
  60. package/dist/Month-BiW1DL44.js +38 -0
  61. package/dist/{Month-BMgXtQVp.js → Month-DKeTzNrD.js} +1 -1
  62. package/dist/{Normal-TE2XNiGu.js → Normal-CgSREifM.js} +48 -54
  63. package/dist/Paging-D02YApLL.js +94 -0
  64. package/dist/{PagingHeader-DHI1x6n2.js → PagingHeader-DJ7MmfGl.js} +37 -44
  65. package/dist/{PagingRow-CdXpvFNC.js → PagingRow-BM1GMtrr.js} +21 -28
  66. package/dist/QueryApi-ChpV_S8J.js +13 -0
  67. package/dist/{Racebar-CZVxC7hF.js → Racebar-CZlaC5Gm.js} +43 -49
  68. package/dist/{Radio-BdXipXA2.js → Radio-BPq3WJa4.js} +1 -1
  69. package/dist/{Register-t3oEydyQ.js → Register-ByxrZyWq.js} +71 -77
  70. package/dist/RichText-BtQDAhn9.js +41 -0
  71. package/dist/{SearchFooter-BpJrsqZV.js → SearchFooter-B61gsy3w.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-XXawph5O.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
  73. package/dist/{SearchForm-CwRcTMlw.js → SearchForm-CLvZoPGQ.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-DU69JJ1z.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
  75. package/dist/Select-C_afSAvf.js +111 -0
  76. package/dist/{Select-DGGUWJY4.js → Select-DGXJMnE9.js} +19 -26
  77. package/dist/{Select-UUymDTLU.js → Select-Nb9K2FMY.js} +1 -1
  78. package/dist/{Single-C7v2P3LF.js → Single-C-2qA2MU.js} +111 -117
  79. package/dist/{Statistic-C6J7v2xF.js → Statistic-B1K-qIZb.js} +43 -51
  80. package/dist/{Stock-Ct-HKlln.js → Stock-C560McFR.js} +1 -1
  81. package/dist/{Stock-DSnE1Bzv.js → Stock-_rnn0B8I.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-DtH6bO8x.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +31 -39
  83. package/dist/{Switch-Bi8hhG_X.js → Switch-BadvkLSw.js} +1 -1
  84. package/dist/{Table-SSfqvIzl.js → Table-B46N43V3.js} +67 -72
  85. package/dist/{Table-D0P60c_b.js → Table-Dk48tQ1r.js} +63 -70
  86. package/dist/Text-CNF204mx.js +53 -0
  87. package/dist/Text-DblKaz4m.js +52 -0
  88. package/dist/Text-y-q7UXlg.js +4 -0
  89. package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
  90. package/dist/TextLink-B4Q0zX1K.js +59 -0
  91. package/dist/{Textarea-CzUa7wZ2.js → Textarea-D1BOQFgK.js} +1 -1
  92. package/dist/Time-DZQxglEi.js +37 -0
  93. package/dist/Timeline-8QaD9H_I.js +53 -0
  94. package/dist/Tree-BUcyK0i_.js +117 -0
  95. package/dist/{Tree-6sdSDjF7.js → Tree-DVeTdmmL.js} +64 -70
  96. package/dist/TreeNode-BScAFHPZ.js +37 -0
  97. package/dist/{Update-Bgn_-Tk7.js → Update-BbU5H_Qf.js} +14 -21
  98. package/dist/{UpdateChild-BOHAM_TM.js → UpdateChild-BbXuXfOR.js} +19 -26
  99. package/dist/Upload-C1obfZui.js +146 -0
  100. package/dist/Upload-CmtHETKR.js +67 -0
  101. package/dist/UploadApi-2sfpKCMa.js +13 -0
  102. package/dist/Year-CRd3PkNx.js +41 -0
  103. package/dist/{Year-BbZI6olW.js → Year-CTo-9KjE.js} +1 -1
  104. package/dist/main-65efBfek.js +19835 -0
  105. package/dist/main.js +47 -49
  106. package/dist/style.css +1 -1
  107. package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
  108. package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
  109. package/esm/vite.config.d.ts +6 -0
  110. package/package.json +2 -2
  111. package/dist/Article-X51Oz1hI.js +0 -198
  112. package/dist/Autocomplete-Ci1CXGQE.js +0 -55
  113. package/dist/Autocomplete-Co_6LMOR.js +0 -54
  114. package/dist/Callback-DwiifiR-.js +0 -27
  115. package/dist/Cascader-BrjhyzSI.js +0 -88
  116. package/dist/Cascader-DuG1TFF-.js +0 -48
  117. package/dist/Checkbox-DAsy2Gtb.js +0 -77
  118. package/dist/Code-CNioVNv0.js +0 -4
  119. package/dist/Code-CQQJJ5Jx.js +0 -61
  120. package/dist/Code-DAMTIprA.js +0 -43
  121. package/dist/Code.vue_vue_type_style_index_0_lang-G1i4uKJp.js +0 -66
  122. package/dist/Column-DMN_0BnR.js +0 -75
  123. package/dist/Comment-D4gvdlOG.js +0 -105
  124. package/dist/Compare-B9ms7AkH.js +0 -63
  125. package/dist/Compare-OHWeHehJ.js +0 -33
  126. package/dist/Copy-B6pQ--3T.js +0 -50
  127. package/dist/Custom-Dt_-KfRY.js +0 -58
  128. package/dist/Date-DAud0Tf9.js +0 -44
  129. package/dist/DateRange-ClHpJNRt.js +0 -64
  130. package/dist/DateTime-BO1c3xG2.js +0 -45
  131. package/dist/Daterange-BlMa4jnq.js +0 -64
  132. package/dist/Delete-BVH0G9h3.js +0 -63
  133. package/dist/Dictionary-DwcOV9xl.js +0 -60
  134. package/dist/Email-BljE8jDr.js +0 -55
  135. package/dist/Image-Bv2Ducoj.js +0 -9
  136. package/dist/Index-BFuHqDAs.js +0 -4
  137. package/dist/Index-D-TyDnGW.js +0 -4
  138. package/dist/Index-D2H5yTHn.js +0 -4
  139. package/dist/Index-YG1SBeIv.js +0 -76
  140. package/dist/Int-g8pM8ZyY.js +0 -47
  141. package/dist/List-ow09enu_.js +0 -80
  142. package/dist/Maintaince-Ctz2-ztL.js +0 -21
  143. package/dist/Month-CPMc1YrA.js +0 -45
  144. package/dist/Month-bDRWnCLy.js +0 -44
  145. package/dist/Paging-668tf97P.js +0 -100
  146. package/dist/QueryApi-UJNYVuJd.js +0 -21
  147. package/dist/RichText-BDRC1veI.js +0 -48
  148. package/dist/Select-RlOWoUwz.js +0 -118
  149. package/dist/Text-McD2Rcic.js +0 -59
  150. package/dist/Text-Stj6-whX.js +0 -4
  151. package/dist/Text-V0WQUxoe.js +0 -60
  152. package/dist/Text.vue_vue_type_style_index_0_lang-BuHdoSkB.js +0 -60
  153. package/dist/TextLink-DmRFUHgF.js +0 -66
  154. package/dist/Time-CgOW3aic.js +0 -44
  155. package/dist/Timeline-BV-wfL2F.js +0 -60
  156. package/dist/Tree-r6FMB9WN.js +0 -123
  157. package/dist/TreeNode-Y4ktCxAQ.js +0 -43
  158. package/dist/Upload-BGYLdPIM.js +0 -151
  159. package/dist/Upload-Df16iaP1.js +0 -73
  160. package/dist/UploadApi-CnAUAXVp.js +0 -21
  161. package/dist/Year-OqMhzqjx.js +0 -48
  162. package/dist/assets/@intlify-BISCQg1h.js +0 -2189
  163. package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
  164. package/dist/assets/@vue-aVYGocXp.js +0 -93
  165. package/dist/assets/clone-BZn0cTAu.js +0 -134
  166. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  167. package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
  168. package/dist/assets/moment-h96o7c8I.js +0 -2578
  169. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  170. package/dist/assets/state-local-CEworIRt.js +0 -131
  171. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  172. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  173. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  174. package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
  175. package/dist/main-RpQODrQa.js +0 -8936
@@ -0,0 +1,54 @@
1
+ import { defineComponent as h, toRefs as b, ref as F, computed as T, watch as _, openBlock as w, createBlock as N, unref as n, isRef as k } from "vue";
2
+ import { h as x } from "./main-65efBfek.js";
3
+ const R = /* @__PURE__ */ h({
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 c = g, f = d, { table: s, field: a, set: y, row: i, modelValue: p } = b(f), 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 = `${s.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 ? s.value.fields.find((u) => u.name == e) : null;
31
+ V();
32
+ let t = T({
33
+ get() {
34
+ return p.value ?? "";
35
+ },
36
+ set(e) {
37
+ c("update:modelValue", e), c("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
+ config: 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, ["config", "onScroll", "modelValue"]));
50
+ }
51
+ });
52
+ export {
53
+ R as default
54
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, toRefs as u, openBlock as p, createBlock as _, unref as e } from "vue";
2
- import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-G1i4uKJp.js";
2
+ import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js";
3
3
  const b = /* @__PURE__ */ r({
4
4
  __name: "Code",
5
5
  props: {
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,36 @@
1
+ import { defineComponent as h, toRefs as v, ref as i, openBlock as V, createBlock as y, unref as n, normalizeStyle as x, isRef as F } from "vue";
2
+ import { h as _ } from "./main-65efBfek.js";
3
+ const C = /* @__PURE__ */ h({
4
+ __name: "Code",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ set: {},
10
+ row: {},
11
+ modelValue: {}
12
+ },
13
+ setup(f) {
14
+ let g = f, { table: s, field: t, set: b, row: d, modelValue: a } = v(g), o = i(), r = i({ language: null, readonly: !0, lineNumbers: "off" }), m = () => t.value.control.height ? `height: ${t.value.control.height}px` : "min-height: 200px;", c = (e) => e ? s.value.fields.find((u) => u.name == e) : null, p = (e) => {
15
+ let l = c(e);
16
+ return l ? d.value[l.name] : null;
17
+ };
18
+ return (() => {
19
+ if (o.value = m(), t.value.control.languageField == null)
20
+ r.value.language = t.value.control.language;
21
+ else {
22
+ let e = p(t.value.control.languageField);
23
+ e && (r.value.language = e);
24
+ }
25
+ })(), (e, l) => (V(), y(n(_), {
26
+ class: "text-code",
27
+ config: n(r),
28
+ style: x(n(o)),
29
+ modelValue: n(a),
30
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => F(a) ? a.value = u : a = u)
31
+ }, null, 8, ["config", "style", "modelValue"]));
32
+ }
33
+ });
34
+ export {
35
+ C as default
36
+ };
@@ -0,0 +1,59 @@
1
+ import { defineComponent as y, toRefs as C, ref as s, onMounted as b, resolveComponent as m, openBlock as n, createElementBlock as u, createVNode as i, unref as e, isRef as k, withCtx as p, Fragment as c, renderList as B, createBlock as E, createTextVNode as f, toDisplayString as _, createCommentVNode as L } from "vue";
2
+ import { h as N } from "./main-65efBfek.js";
3
+ import { Q } from "./QueryApi-ChpV_S8J.js";
4
+ const R = { class: "ha-code-layout" }, q = /* @__PURE__ */ y({
5
+ __name: "Code",
6
+ props: {
7
+ route: {},
8
+ validateErrors: {},
9
+ module: {},
10
+ schema: {},
11
+ table: {},
12
+ layout: {},
13
+ next: {},
14
+ set: {}
15
+ },
16
+ emits: ["submit", "change"],
17
+ setup(g, { emit: U }) {
18
+ let V = g, { module: w, schema: A, table: D, layout: l, next: F, set: M } = C(V), r = s({}), t = s(), v = () => {
19
+ t.value = l.value.languages[0];
20
+ };
21
+ return b(() => {
22
+ v(), Q.loadCodeLanguage().then((d) => {
23
+ d.forEach((a) => {
24
+ r.value[a.text] = a.suffix;
25
+ });
26
+ });
27
+ }), (d, a) => {
28
+ const x = m("el-radio"), h = m("el-radio-group");
29
+ return n(), u("div", R, [
30
+ i(h, {
31
+ modelValue: e(t),
32
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => k(t) ? t.value = o : t = o)
33
+ }, {
34
+ default: p(() => [
35
+ (n(!0), u(c, null, B(e(l).languages, (o) => (n(), E(x, { value: o }, {
36
+ default: p(() => [
37
+ f(_(o) + " ", 1),
38
+ e(r)[o] ? (n(), u(c, { key: 0 }, [
39
+ f("(" + _(e(r)[o]) + ")", 1)
40
+ ], 64)) : L("", !0)
41
+ ]),
42
+ _: 2
43
+ }, 1032, ["value"]))), 256))
44
+ ]),
45
+ _: 1
46
+ }, 8, ["modelValue"]),
47
+ i(e(N), {
48
+ border: "",
49
+ config: { language: e(r)[e(t)] },
50
+ modelValue: e(l).codes[e(t)],
51
+ "onUpdate:modelValue": a[1] || (a[1] = (o) => e(l).codes[e(t)] = o)
52
+ }, null, 8, ["config", "modelValue"])
53
+ ]);
54
+ };
55
+ }
56
+ });
57
+ export {
58
+ q as _
59
+ };
@@ -0,0 +1,68 @@
1
+ import { defineComponent as M, toRefs as b, onMounted as D, computed as h, openBlock as l, createBlock as f, unref as e, withCtx as k, createElementBlock as o, Fragment as E, renderList as H, normalizeClass as L, createCommentVNode as u, createElementVNode as a, toDisplayString as i, resolveDynamicComponent as S, createVNode as z, createTextVNode as s } from "vue";
2
+ import { B as F, W as C, v as P, H as R } from "./main-65efBfek.js";
3
+ import "vue-router";
4
+ import "./assets/intro.js-DxWjEdp_.js";
5
+ const T = {
6
+ key: 0,
7
+ class: "menus"
8
+ }, W = ["onClick"], $ = { class: "title" }, j = {
9
+ key: 1,
10
+ class: "column-empty"
11
+ }, q = /* @__PURE__ */ a("br", null, null, -1), A = /* @__PURE__ */ a("br", null, null, -1), Q = /* @__PURE__ */ M({
12
+ __name: "Column",
13
+ props: {
14
+ view: {},
15
+ url: {},
16
+ win: {}
17
+ },
18
+ emits: ["loaded", "navigate"],
19
+ setup(y, { expose: g, emit: x }) {
20
+ let c = x, B = y, { url: m, view: d } = b(B), w = (t) => !0, N = (t) => !0, U = () => {
21
+ p();
22
+ }, p = () => {
23
+ c("loaded", n.value.title);
24
+ }, V = (t) => {
25
+ let v = C.getUrl(t.url, { m: t.id });
26
+ c("navigate", v);
27
+ };
28
+ D(() => {
29
+ p();
30
+ });
31
+ let n = h(() => F.getMenuByUrl(m.value)), _ = h(() => C.getPath(m.value));
32
+ return g({ shouldLoad: w, shouldSpin: N, refresh: U }), (t, v) => (l(), f(e(P), null, {
33
+ default: k(() => [
34
+ e(n) ? (l(), o("div", T, [
35
+ (l(!0), o(E, null, H(e(n).children, (r) => (l(), o("div", {
36
+ class: "menu",
37
+ key: r.id,
38
+ onClick: (G) => e(V)(r)
39
+ }, [
40
+ r.icon ? (l(), o("i", {
41
+ key: 0,
42
+ class: L(r.icon)
43
+ }, null, 2)) : u("", !0),
44
+ a("div", $, i(r.title), 1)
45
+ ], 8, W))), 128))
46
+ ])) : u("", !0),
47
+ (l(), f(S(e(d)))),
48
+ (!e(n) || e(n).children == 0) && !e(d) ? (l(), o("div", j, [
49
+ z(e(R), null, {
50
+ default: k(() => [
51
+ s(" 此栏目页不存在子菜单或自定义部分视图,无内容可展示 ")
52
+ ]),
53
+ _: 1
54
+ }),
55
+ s(" 可考虑以下任一选项:"),
56
+ q,
57
+ s(" 1. 在 src/views 中实现自定义页面:" + i(e(_)), 1),
58
+ A,
59
+ s(" 2. 在 src/components/partials 中实现自定义首页部分视图:" + i(e(_)), 1)
60
+ ])) : u("", !0)
61
+ ]),
62
+ _: 1
63
+ }));
64
+ }
65
+ });
66
+ export {
67
+ Q as default
68
+ };
@@ -0,0 +1,98 @@
1
+ import { defineComponent as E, toRefs as N, ref as S, computed as y, resolveComponent as u, openBlock as m, createElementBlock as p, createElementVNode as t, createVNode as v, createTextVNode as a, toDisplayString as l, unref as e, withCtx as b, Fragment as j, renderList as B, createBlock as T, createCommentVNode as q } from "vue";
2
+ import { W as D } from "./main-65efBfek.js";
3
+ const F = { class: "ha-comment-layout" }, L = { class: "comment-add" }, M = { class: "add-footer" }, R = { class: "footer-title" }, U = /* @__PURE__ */ t("i", { class: "el-icon-s-comment" }, null, -1), W = { class: "comment-user" }, $ = { class: "avatar" }, A = /* @__PURE__ */ t("img", {
4
+ src: "https://upload.jianshu.io/users/upload_avatars/2859365/cce8943353eb.jpeg?imageMogr2/auto-orient/strip|imageView2/1/w/80/h/80/format/webp",
5
+ alt: ""
6
+ }, null, -1), G = { class: "comment-body" }, H = { class: "comment-time" }, J = { class: "comment-content" }, K = /* @__PURE__ */ t("div", { class: "content-footer" }, [
7
+ /* @__PURE__ */ t("span", null, [
8
+ /* @__PURE__ */ t("i", { class: "fa fa-thumbs-up" }),
9
+ /* @__PURE__ */ a("20")
10
+ ]),
11
+ /* @__PURE__ */ t("span", null, [
12
+ /* @__PURE__ */ t("i", { class: "el-icon-s-comment" }),
13
+ /* @__PURE__ */ a("回复")
14
+ ])
15
+ ], -1), O = { class: "comment-footer" }, Z = /* @__PURE__ */ E({
16
+ __name: "Comment",
17
+ props: {
18
+ route: {},
19
+ validateErrors: {},
20
+ module: {},
21
+ schema: {},
22
+ table: {},
23
+ layout: {},
24
+ next: {},
25
+ set: {}
26
+ },
27
+ setup(C) {
28
+ let x = C, { schema: P, table: r, layout: o, set: _, validateErrors: Q } = N(x), c = S(1), k = (n) => {
29
+ c.value = n;
30
+ }, w = y(() => {
31
+ let n = (c.value - 1) * o.value.pageSize, i = c.value * o.value.pageSize - 1;
32
+ return _.value[r.value.name].filter((f, d) => d >= n && d <= i);
33
+ }), h = y(() => r.value.fields.find((i) => i.name == o.value.userId));
34
+ return (n, i) => {
35
+ const g = u("el-input"), f = u("el-button"), d = u("router-link"), I = u("el-pagination");
36
+ return m(), p("div", F, [
37
+ t("div", L, [
38
+ v(g, { type: "textarea" }),
39
+ t("div", M, [
40
+ t("div", R, [
41
+ U,
42
+ a("全部评论 (" + l(e(_)[e(r).name].length) + ")", 1)
43
+ ]),
44
+ v(f, {
45
+ type: "primary",
46
+ class: "btn-comment",
47
+ icon: "el-icon-s-promotion"
48
+ }, {
49
+ default: b(() => [
50
+ a("评论")
51
+ ]),
52
+ _: 1
53
+ })
54
+ ])
55
+ ]),
56
+ (m(!0), p(j, null, B(e(w), (s, z) => (m(), p("div", {
57
+ class: "comment",
58
+ key: z
59
+ }, [
60
+ t("div", W, [
61
+ t("div", $, [
62
+ A,
63
+ a(" " + l(s[e(o).avatar]), 1)
64
+ ])
65
+ ]),
66
+ t("div", G, [
67
+ e(h) ? (m(), T(d, {
68
+ key: 0,
69
+ class: "comment-name",
70
+ to: e(D).getUrl("/sys_user/detail", { id: s[e(o).userId], m: n.$route.query.m })
71
+ }, {
72
+ default: b(() => [
73
+ a(l(e(h).control.data.data.find((V) => V.value == s[e(o).userId]).text), 1)
74
+ ]),
75
+ _: 2
76
+ }, 1032, ["to"])) : q("", !0),
77
+ t("div", H, l(s[e(o).commentTime]), 1),
78
+ t("div", J, l(s[e(o).content]), 1),
79
+ K
80
+ ])
81
+ ]))), 128)),
82
+ t("div", O, [
83
+ v(I, {
84
+ background: "",
85
+ layout: "total, prev, pager, next, jumper",
86
+ "current-page": e(c),
87
+ "page-size": e(o).pageSize,
88
+ total: e(_)[e(r).name].length,
89
+ onCurrentChange: e(k)
90
+ }, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
91
+ ])
92
+ ]);
93
+ };
94
+ }
95
+ });
96
+ export {
97
+ Z as default
98
+ };
@@ -0,0 +1,56 @@
1
+ import { defineComponent as b, toRefs as k, ref as h, computed as S, watch as v, openBlock as w, createElementBlock as B, normalizeStyle as D, unref as R, nextTick as W } from "vue";
2
+ import { J as z } from "./main-65efBfek.js";
3
+ const T = /* @__PURE__ */ b({
4
+ __name: "Compare",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ set: {},
10
+ row: {},
11
+ modelValue: {}
12
+ },
13
+ emits: ["submit", "change", "update:modelValue"],
14
+ setup(V, { emit: E }) {
15
+ let m = E, M = V, { table: y, field: o, set: J, row: n, modelValue: c } = k(M), r = null, f = null, g = null, l = null, t = null, p = h(), s = h(), _ = (e) => {
16
+ s.value = C(), W(() => {
17
+ let a = n.value[d.value.name], i = o.value.control.language;
18
+ f = e.editor.createModel(c.value, i), g = e.editor.createModel(a, i), r = e.editor.createDiffEditor(p.value, {
19
+ originalEditable: !0,
20
+ automaticLayout: !0,
21
+ renderSideBySide: !o.value.control.inline
22
+ //是否启用行内模式
23
+ }), r.setModel({ original: f, modified: g }), l = r.getOriginalEditor(), l.onDidChangeModelContent((x) => {
24
+ let u = l.getValue();
25
+ m("update:modelValue", u), m("change", u);
26
+ }), t = r.getModifiedEditor(), t.onDidChangeModelContent((x) => {
27
+ let u = t.getValue();
28
+ n.value[d.value.name] = u;
29
+ });
30
+ });
31
+ }, C = () => o.value.control.height ? `height: ${o.value.control.height}px` : "min-height: 200px;";
32
+ z.init().then((e) => {
33
+ _(e);
34
+ });
35
+ let d = S(() => y.value.fields.find((a) => a.name == o.value.control.compareWith));
36
+ return v(() => c.value, (e, a) => {
37
+ if (!l)
38
+ return;
39
+ let i = l.getValue();
40
+ e != i && l.setValue(e ?? "");
41
+ }), v(() => n.value[d.value.name], (e, a) => {
42
+ if (!t)
43
+ return;
44
+ let i = t.getValue();
45
+ e != i && t.setValue(e ?? "");
46
+ }), (e, a) => (w(), B("div", {
47
+ ref_key: "compareRef",
48
+ ref: p,
49
+ class: "control-compare",
50
+ style: D(R(s))
51
+ }, null, 4));
52
+ }
53
+ });
54
+ export {
55
+ T as default
56
+ };
@@ -0,0 +1,26 @@
1
+ import { defineComponent as d, toRefs as i, computed as l, unref as a, openBlock as f, createElementBlock as v, normalizeClass as _, createCommentVNode as C } from "vue";
2
+ import { J as x } from "./main-65efBfek.js";
3
+ const V = /* @__PURE__ */ d({
4
+ __name: "Compare",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ set: {},
10
+ row: {},
11
+ modelValue: {}
12
+ },
13
+ setup(o) {
14
+ let r = o, { table: e, field: t, set: m, row: n, modelValue: u } = i(r), s = e.value.name + "-" + t.value.name + "-" + m.value[e.value.name].indexOf(n.value);
15
+ x.init().then((p) => {
16
+ });
17
+ let c = l(() => u || "");
18
+ return l(() => t.value.control.type.toLowerCase()), (p, h) => a(c) ? (f(), v("div", {
19
+ key: 0,
20
+ class: _(`text-compare ${a(s)}`)
21
+ }, null, 2)) : C("", !0);
22
+ }
23
+ });
24
+ export {
25
+ V as default
26
+ };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as y, toRefs as v, computed as _, unref as l, renderSlot as n, openBlock as g, createElementBlock as b, createElementVNode as c } from "vue";
2
+ import { a } from "./main-65efBfek.js";
3
+ import { C } from "./assets/clipboard-DjQPoCBJ.js";
4
+ const k = {
5
+ key: 1,
6
+ class: "copy-container"
7
+ }, J = /* @__PURE__ */ c("img", {
8
+ src: "/default/images/clippy.svg",
9
+ alt: "复制文本"
10
+ }, null, -1), h = [
11
+ J
12
+ ], E = /* @__PURE__ */ y({
13
+ __name: "Copy",
14
+ props: {
15
+ schema: {},
16
+ table: {},
17
+ field: {},
18
+ set: {},
19
+ row: {},
20
+ modelValue: {}
21
+ },
22
+ setup(p) {
23
+ let u = p, { table: w, field: r, set: N, row: S, modelValue: i } = v(u), d = (e) => JSON.stringify(JSON.parse(e), null, 2), f = () => o.value && r.value.control.type == "Json" ? d(o.value).replace(/"/g, "'") : o.value, s = () => {
24
+ let e = new C(".btn-copy", { text: () => f() });
25
+ e.on("success", function(t) {
26
+ a.success("复制成功"), e.destroy();
27
+ }), e.on("error", function(t) {
28
+ a.error("复制失败"), e.destroy();
29
+ });
30
+ }, o = _(() => i.value);
31
+ return (e, t) => l(r).control.copy ? (g(), b("div", k, [
32
+ c("i", {
33
+ class: "btn-copy",
34
+ onClick: t[0] || (t[0] = //@ts-ignore
35
+ (...m) => l(s) && l(s)(...m))
36
+ }, h),
37
+ n(e.$slots, "default")
38
+ ])) : n(e.$slots, "default", { key: 0 });
39
+ }
40
+ });
41
+ export {
42
+ E as default
43
+ };
@@ -0,0 +1,51 @@
1
+ import { defineComponent as x, toRefs as U, ref as z, openBlock as n, createBlock as i, KeepAlive as L, resolveDynamicComponent as R, unref as a } from "vue";
2
+ import { W as B, a as N, U as A } from "./main-65efBfek.js";
3
+ const P = /* @__PURE__ */ x({
4
+ __name: "Custom",
5
+ props: {
6
+ view: {},
7
+ url: {},
8
+ win: {}
9
+ },
10
+ emits: ["loaded", "navigate"],
11
+ setup(s, { expose: u, emit: f }) {
12
+ let o = f, d = s, { url: v, view: m, win: p } = U(d), t = z(), c = (e, r) => {
13
+ if (!t.value || !t.value.keyboard)
14
+ return !1;
15
+ t.value.keyboard(e, r);
16
+ }, h = (e) => !0, g = (e) => !0, w = () => {
17
+ var r;
18
+ let e = (r = t.value) == null ? void 0 : r.refresh;
19
+ if (!e) {
20
+ let l = B.getPath(v.value);
21
+ N.notify(A("common.tips"), `要实现自定义刷新功能,请在组件 ${l} 内部定义并暴露refresh方法即可`, "warning");
22
+ return;
23
+ }
24
+ e();
25
+ }, _ = (e) => {
26
+ var l;
27
+ let r = (l = t.value) == null ? void 0 : l.beforeClose;
28
+ r && r(e);
29
+ }, b = (e) => {
30
+ t.value && t.value.resize && t.value.resize(e);
31
+ }, k = (e) => {
32
+ t.value.handler(e);
33
+ }, y = (e) => {
34
+ o("loaded", e);
35
+ }, C = (e) => {
36
+ o("navigate", e);
37
+ };
38
+ return u({ shouldLoad: h, shouldSpin: g, refresh: w, beforeClose: _, keyboard: c, resize: b, handler: k }), (e, r) => (n(), i(L, null, [
39
+ (n(), i(R(a(m)), {
40
+ ref_key: "customRef",
41
+ ref: t,
42
+ win: a(p),
43
+ onLoaded: a(y),
44
+ onNavigate: a(C)
45
+ }, null, 40, ["win", "onLoaded", "onNavigate"]))
46
+ ], 1024));
47
+ }
48
+ });
49
+ export {
50
+ P as default
51
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DataExport.vue_vue_type_script_setup_true_lang-DxEJA5Ee.js";
1
+ import { _ as f } from "./DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,12 +1,6 @@
1
- import { defineComponent as q, toRefs as D, ref as _, resolveComponent as r, openBlock as F, createBlock as R, unref as e, isRef as S, withCtx as a, createElementVNode as f, toDisplayString as c, createVNode as n, createTextVNode as v } from "vue";
2
- import "./assets/underscore-B0BCaBxV.js";
3
- import "./assets/underscore.string-DVXD2SZo.js";
4
- import "./assets/clone-BZn0cTAu.js";
5
- import { t as d, h as H, F as T, m as j } from "./main-RpQODrQa.js";
6
- import "./assets/@monaco-editor-BCDRi0Ti.js";
7
- import "./assets/moment-h96o7c8I.js";
8
- import "./assets/liquidjs-C-LVcoaY.js";
9
- const z = { class: "footer-content" }, P = /* @__PURE__ */ q({
1
+ import { defineComponent as h, toRefs as q, ref as _, resolveComponent as a, openBlock as R, createBlock as S, unref as e, isRef as L, withCtx as r, createElementVNode as f, toDisplayString as c, createVNode as n, createTextVNode as v } from "vue";
2
+ import { U as m, L as T, D as j, a as z } from "./main-65efBfek.js";
3
+ const A = { class: "footer-content" }, H = /* @__PURE__ */ h({
10
4
  __name: "DataExport",
11
5
  props: {
12
6
  route: { type: String },
@@ -15,61 +9,61 @@ const z = { class: "footer-content" }, P = /* @__PURE__ */ q({
15
9
  },
16
10
  emits: ["close", "update:modelValue"],
17
11
  setup(V, { emit: x }) {
18
- let C = x, y = V, { route: b, pageCount: m, modelValue: s } = D(y), u = _(!1), o = _({ start: 1, end: 100 }), E = (p, t, i) => {
19
- o.value.end < o.value.start ? i(new Error("结束页不能小于起始页")) : i();
20
- }, h = () => {
12
+ let C = x, y = V, { route: b, pageCount: d, modelValue: i } = q(y), p = _(!1), o = _({ start: 1, end: 100 }), E = (u, t, s) => {
13
+ o.value.end < o.value.start ? s(new Error("结束页不能小于起始页")) : s();
14
+ }, U = () => {
21
15
  C("update:modelValue", !1);
22
16
  }, k = () => {
23
- u.value = !0, H.get(b.value, o.value).then(({ data: p, message: t }) => {
24
- T.save(p.content, p.name), j.success(t);
17
+ p.value = !0, T.get(b.value, o.value).then(({ data: u, message: t }) => {
18
+ j.save(u.content, u.name), z.success(t);
25
19
  }).finally(() => {
26
- u.value = !1;
20
+ p.value = !1;
27
21
  });
28
22
  };
29
- return (p, t) => {
30
- const i = r("el-input-number"), g = r("el-form-item"), N = r("el-form"), w = r("el-divider"), B = r("el-button"), U = r("el-dialog");
31
- return F(), R(U, {
23
+ return (u, t) => {
24
+ const s = a("el-input-number"), g = a("el-form-item"), D = a("el-form"), N = a("el-divider"), w = a("el-button"), B = a("el-dialog");
25
+ return R(), S(B, {
32
26
  class: "data-export",
33
27
  draggable: "",
34
28
  "destroy-on-close": "",
35
- title: e(d)("paging.data_export"),
29
+ title: e(m)("paging.data_export"),
36
30
  width: "350px",
37
- onClose: e(h),
38
- modelValue: e(s),
39
- "onUpdate:modelValue": t[3] || (t[3] = (l) => S(s) ? s.value = l : s = l)
31
+ onClose: e(U),
32
+ modelValue: e(i),
33
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => L(i) ? i.value = l : i = l)
40
34
  }, {
41
- footer: a(() => [
35
+ footer: r(() => [
42
36
  f("div", {
43
37
  class: "footer-operation",
44
- onClick: t[2] || (t[2] = (l) => e(o).end = e(m))
45
- }, c(e(d)("paging.total_page", [e(m)])), 1),
46
- f("div", z, [
47
- n(B, {
38
+ onClick: t[2] || (t[2] = (l) => e(o).end = e(d))
39
+ }, c(e(m)("paging.total_page", [e(d)])), 1),
40
+ f("div", A, [
41
+ n(w, {
48
42
  type: "primary",
49
43
  plain: "",
50
- loading: e(u),
44
+ loading: e(p),
51
45
  onClick: e(k)
52
46
  }, {
53
- default: a(() => [
54
- v(c(e(d)("paging.export")), 1)
47
+ default: r(() => [
48
+ v(c(e(m)("paging.export")), 1)
55
49
  ]),
56
50
  _: 1
57
51
  }, 8, ["loading", "onClick"])
58
52
  ])
59
53
  ]),
60
- default: a(() => [
61
- n(N, {
54
+ default: r(() => [
55
+ n(D, {
62
56
  ref: "export",
63
57
  inline: "",
64
58
  model: e(o)
65
59
  }, {
66
- default: a(() => [
60
+ default: r(() => [
67
61
  n(g, {
68
62
  prop: "start",
69
63
  rules: [{ required: !0, message: "起始页不能为空", trigger: "change" }]
70
64
  }, {
71
- default: a(() => [
72
- n(i, {
65
+ default: r(() => [
66
+ n(s, {
73
67
  "controls-position": "right",
74
68
  min: 1,
75
69
  step: 100,
@@ -87,11 +81,11 @@ const z = { class: "footer-content" }, P = /* @__PURE__ */ q({
87
81
  { validator: e(E), trigger: "change" }
88
82
  ]
89
83
  }, {
90
- default: a(() => [
91
- n(i, {
84
+ default: r(() => [
85
+ n(s, {
92
86
  "controls-position": "right",
93
87
  min: e(o).start,
94
- max: e(m),
88
+ max: e(d),
95
89
  step: 100,
96
90
  modelValue: e(o).end,
97
91
  "onUpdate:modelValue": t[1] || (t[1] = (l) => e(o).end = l)
@@ -102,7 +96,7 @@ const z = { class: "footer-content" }, P = /* @__PURE__ */ q({
102
96
  ]),
103
97
  _: 1
104
98
  }, 8, ["model"]),
105
- n(w)
99
+ n(N)
106
100
  ]),
107
101
  _: 1
108
102
  }, 8, ["title", "onClose", "modelValue"]);
@@ -110,5 +104,5 @@ const z = { class: "footer-content" }, P = /* @__PURE__ */ q({
110
104
  }
111
105
  });
112
106
  export {
113
- P as _
107
+ H as _
114
108
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DataImport.vue_vue_type_script_setup_true_lang-5gkTElFL.js";
1
+ import { _ as f } from "./DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js";
2
2
  export {
3
3
  f as default
4
4
  };