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
@@ -1,16 +1,9 @@
1
- import { defineComponent as K, toRefs as R, ref as i, computed as S, resolveComponent as p, openBlock as r, createBlock as c, unref as t, withKeys as M, withModifiers as N, isRef as F, withCtx as f, createElementBlock as h, Fragment as L, renderList as U, createElementVNode as j, toDisplayString as _, createCommentVNode as q } from "vue";
2
- import "./assets/underscore-B0BCaBxV.js";
3
- import "./assets/underscore.string-DVXD2SZo.js";
4
- import "./assets/clone-BZn0cTAu.js";
5
- import "./assets/file-saver-CwlpTZSc.js";
6
- import "./assets/@monaco-editor-BCDRi0Ti.js";
7
- import "./assets/moment-h96o7c8I.js";
8
- import { t as z, f as A, h as G } from "./main-RpQODrQa.js";
9
- import "./assets/liquidjs-C-LVcoaY.js";
1
+ import { defineComponent as K, toRefs as R, ref as d, computed as S, resolveComponent as c, openBlock as s, createBlock as f, unref as t, withKeys as U, withModifiers as q, isRef as L, withCtx as p, createElementBlock as h, Fragment as M, renderList as N, createElementVNode as F, toDisplayString as _, createCommentVNode as j } from "vue";
2
+ import { U as z, q as A, L as G } from "./main-65efBfek.js";
10
3
  const H = { class: "option-text" }, I = {
11
4
  key: 0,
12
5
  class: "option-suffix"
13
- }, te = /* @__PURE__ */ K({
6
+ }, T = /* @__PURE__ */ K({
14
7
  __name: "Select",
15
8
  props: {
16
9
  schema: {},
@@ -21,18 +14,18 @@ const H = { class: "option-text" }, I = {
21
14
  },
22
15
  emits: ["change", "submit", "update:modelValue"],
23
16
  setup(v, { emit: x }) {
24
- let s = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), k = i(!1), m = i(), d = i(a.value.control.data.data), C = () => {
25
- s("submit");
17
+ let r = x, b = v, { schema: J, table: g, field: a, searchData: y, modelValue: V } = R(b), k = d(!1), i = d(), m = d(a.value.control.data.data), C = () => {
18
+ r("submit");
26
19
  }, w = () => {
27
20
  }, B = (l) => {
28
- m.value = l, D();
21
+ i.value = l, D();
29
22
  }, D = () => {
30
- let l = { text: m.value, conditions: [] };
23
+ let l = { text: i.value, conditions: [] };
31
24
  a.value.control.data.conditions.forEach((o) => {
32
25
  let u = y.value[o.table][o.field];
33
26
  l.conditions.push({ name: o.name, value: u });
34
27
  }), G.post(a.value.control.data.route, l).then(({ data: o }) => {
35
- d.value = o;
28
+ m.value = o;
36
29
  }).finally(() => {
37
30
  k.value = !1;
38
31
  });
@@ -41,12 +34,12 @@ const H = { class: "option-text" }, I = {
41
34
  return V.value;
42
35
  },
43
36
  set(l) {
44
- s("update:modelValue", l), s("change", l);
37
+ r("update:modelValue", l), r("change", l);
45
38
  }
46
39
  });
47
40
  return (l, o) => {
48
- const u = p("el-option"), E = p("el-select");
49
- return r(), c(E, {
41
+ const u = c("el-option"), E = c("el-select");
42
+ return s(), f(E, {
50
43
  ref: "selectRef",
51
44
  filterable: "",
52
45
  remote: "",
@@ -59,20 +52,20 @@ const H = { class: "option-text" }, I = {
59
52
  "loading-text": "加载中",
60
53
  "remote-method": t(B),
61
54
  disabled: t(a).control.readonly,
62
- onKeyup: M(N(t(C), ["alt"]), ["enter", "native"]),
55
+ onKeyup: U(q(t(C), ["alt"]), ["enter", "native"]),
63
56
  onChange: t(w),
64
57
  modelValue: t(n),
65
- "onUpdate:modelValue": o[0] || (o[0] = (e) => F(n) ? n.value = e : n = e)
58
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => L(n) ? n.value = e : n = e)
66
59
  }, {
67
- default: f(() => [
68
- (r(!0), h(L, null, U(t(d), (e, O) => (r(), c(u, {
60
+ default: p(() => [
61
+ (s(!0), h(M, null, N(t(m), (e, O) => (s(), f(u, {
69
62
  label: e.text + (e.suffix ? "(" + e.suffix + ")" : ""),
70
63
  value: e.value,
71
64
  key: e.value
72
65
  }, {
73
- default: f(() => [
74
- j("span", H, _(e.text), 1),
75
- e.suffix ? (r(), h("span", I, "(" + _(e.suffix) + ")", 1)) : q("", !0)
66
+ default: p(() => [
67
+ F("span", H, _(e.text), 1),
68
+ e.suffix ? (s(), h("span", I, "(" + _(e.suffix) + ")", 1)) : j("", !0)
76
69
  ]),
77
70
  _: 2
78
71
  }, 1032, ["label", "value"]))), 128))
@@ -83,5 +76,5 @@ const H = { class: "option-text" }, I = {
83
76
  }
84
77
  });
85
78
  export {
86
- te as default
79
+ T as default
87
80
  };
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ u({
10
10
  modelValue: { type: [String, Number, Boolean] }
11
11
  },
12
12
  setup(a) {
13
- let r = f(() => import("./Dictionary-DwcOV9xl.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
13
+ let r = f(() => import("./Dictionary-Dd_IU-Hn.js")), n = a, { schema: m, table: s, field: d, set: i, row: p, modelValue: l } = c(n);
14
14
  return (_, t) => (b(), V(e(r), {
15
15
  schema: e(m),
16
16
  table: e(s),
@@ -1,16 +1,10 @@
1
- import { defineComponent as Ue, toRefs as $e, ref as r, computed as Y, watch as Be, resolveComponent as v, openBlock as d, createElementBlock as H, normalizeClass as De, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as Le, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as B, resolveDynamicComponent as Ne, normalizeStyle as Oe, createTextVNode as te, nextTick as ae } from "vue";
2
- import "./assets/underscore-B0BCaBxV.js";
3
- import "./assets/underscore.string-DVXD2SZo.js";
4
- import { d as Pe, e as qe, t as oe, f as Ke, U as q, a as je, O as Fe, h as He, m as re, b as Me, i as Ae, s as ue } from "./main-RpQODrQa.js";
5
- import "./assets/file-saver-CwlpTZSc.js";
6
- import "./assets/@monaco-editor-BCDRi0Ti.js";
7
- import "./assets/moment-h96o7c8I.js";
8
- import "./assets/liquidjs-C-LVcoaY.js";
9
- import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-fOkzw7J1.js";
10
- import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-C5HbpsSj.js";
11
- const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class: "row-title" }, We = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), Xe = [
12
- We
13
- ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], cl = /* @__PURE__ */ Ue({
1
+ import { defineComponent as Ue, toRefs as $e, ref as u, computed as Y, watch as Le, resolveComponent as f, openBlock as d, createElementBlock as W, normalizeClass as Be, unref as e, createElementVNode as m, createVNode as h, withCtx as s, withModifiers as De, createBlock as g, isRef as Z, Fragment as ee, renderList as le, toDisplayString as x, createCommentVNode as L, resolveDynamicComponent as qe, normalizeStyle as Ke, createTextVNode as te, nextTick as ae } from "vue";
2
+ import { c as Ne, K as Pe, U as oe, q as Fe, W as P, _ as Me, t as Oe, L as We, a as ue, b as je, G as Ae, s as re } from "./main-65efBfek.js";
3
+ import { _ as Ge } from "./Index.vue_vue_type_style_index_0_lang-DVYceMeD.js";
4
+ import { _ as ne } from "./Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js";
5
+ const He = { class: "ha-main-form" }, Ie = { class: "row-header" }, Je = { class: "row-title" }, Qe = /* @__PURE__ */ m("i", { class: "fa fa-close" }, null, -1), Xe = [
6
+ Qe
7
+ ], Ye = /* @__PURE__ */ m("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ze = { class: "el-drawer__title" }, el = ["href"], rl = /* @__PURE__ */ Ue({
14
8
  __name: "Single",
15
9
  props: {
16
10
  base: {},
@@ -20,68 +14,68 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
20
14
  },
21
15
  emits: ["navigate", "load", "succeed", "close"],
22
16
  setup(se, { expose: ie, emit: de }) {
23
- let D = de, me = se, { url: ce, base: M, route: z } = $e(me), f = r(), b = r(), c = r(), u = r(), _ = r(), L = r(), p = r({ table: null, layout: null }), w = r(), N = r([]), pe = r(), E = r(), S = r(), K = r(), C = r(), O = r(), i = r({ page: null, url: null, visible: !1, appendToBody: !1 }), k = r(!1), j = r(), R = r(), ve = (l) => !0, fe = (l) => {
24
- let t = q.getPath(ce.value), a = q.getPath(l);
17
+ let B = de, me = se, { url: ce, base: j, route: z } = $e(me), p = u(), b = u(), c = u(), r = u(), y = u(), D = u(), v = u({ table: null, layout: null }), w = u(), q = u([]), ve = u(), E = u(), R = u(), F = u(), C = u(), K = u(), i = u({ page: null, url: null, visible: !1, appendToBody: !1 }), k = u(!1), M = u(), S = u(), fe = (l) => !0, pe = (l) => {
18
+ let t = P.getPath(ce.value), a = P.getPath(l);
25
19
  return t != a;
26
20
  }, be = () => {
27
21
  Ve();
28
- }, _e = (l, t) => {
29
- A("copy", l, t);
30
22
  }, ye = (l, t) => {
23
+ A("copy", l, t);
24
+ }, _e = (l, t) => {
31
25
  A("update", l, t);
32
26
  }, he = () => {
33
27
  i.value.visible = !1;
34
28
  }, A = (l, t, a) => {
35
29
  let n = ge(l, t);
36
- a.ctrlKey ? D("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
30
+ a.ctrlKey ? B("navigate", n) : (i.value.appendToBody = a.altKey, i.value.page = l, i.value.url = n, i.value.visible = !0);
37
31
  }, ge = (l, t = null) => {
38
32
  let a = `${b.value[l].route}`;
39
33
  if (t != null) {
40
- let n = t[_.value.key.name];
34
+ let n = t[y.value.key.name];
41
35
  a += `?id=${n}`;
42
36
  }
43
37
  return a;
44
38
  }, we = (l, t, a) => {
45
- (a.ctrlKey || k.value) && (j.value = l, R.value = Fe.clone(t), k.value = !0, R.value.fields.forEach((n) => {
39
+ (a.ctrlKey || k.value) && (M.value = l, S.value = Oe.clone(t), k.value = !0, S.value.fields.forEach((n) => {
46
40
  n.control.textualize = !1;
47
41
  }));
48
42
  }, G = (l) => {
49
- i.value.visible = !1, D("succeed", W.value, l);
43
+ i.value.visible = !1, B("succeed", Q.value, l);
50
44
  }, Ce = () => {
51
- D("close");
52
- }, I = (l, t, a, n, T) => {
53
- }, J = (l, t) => {
45
+ B("close");
46
+ }, H = (l, t, a, n, T) => {
47
+ }, I = (l, t) => {
54
48
  if (t) {
55
- L.value = _.value.layouts.find((a) => a.type == l);
49
+ D.value = y.value.layouts.find((a) => a.type == l);
56
50
  return;
57
51
  }
58
- p.value.layout = p.value.table.layouts.find((a) => a.type == l);
52
+ v.value.layout = v.value.table.layouts.find((a) => a.type == l);
59
53
  }, ke = (l) => {
60
- let t = u.value.find((a) => a.name == l);
61
- p.value.table = t, p.value.layout = t.layouts[0];
54
+ let t = r.value.find((a) => a.name == l);
55
+ v.value.table = t, v.value.layout = t.layouts[0];
62
56
  }, xe = (l) => {
63
57
  let t = Object.keys(l)[0], a = t.substring(1, t.indexOf("]"));
64
- u.value.find((T) => T.name == a).main || (w.value = a);
65
- }, Se = (l, t = null, a = null) => {
58
+ r.value.find((T) => T.name == a).main || (w.value = a);
59
+ }, Re = (l, t = null, a = null) => {
66
60
  ae(() => {
67
61
  E.value.validate((n, T) => {
68
62
  if (!n)
69
63
  return xe(T), a && a(!1), !1;
70
- let U = f.value.type == "Update" ? b.value.update.route : b.value.insert.route;
71
- t && t(U, c.value), He.post(U, c.value).then(({ data: $, message: V }) => {
72
- E.value.clearValidate(), re.success(V), G(c.value);
64
+ let U = p.value.type == "Update" ? b.value.update.route : b.value.insert.route;
65
+ t && t(U, c.value), We.post(U, c.value).then(({ data: $, message: V }) => {
66
+ E.value.clearValidate(), ue.success(V), G(c.value);
73
67
  }).catch(({ code: $, data: V, message: X }) => {
74
68
  if ($ != "ValidateError")
75
69
  return;
76
- N.value = V;
77
- let P = V.find((y) => y.table !== _.value.name);
78
- if (P) {
79
- let y = u.value.find((o) => o.name == P.table);
80
- y && (w.value = y.name);
70
+ q.value = V;
71
+ let N = V.find((_) => _.table !== y.value.name);
72
+ if (N) {
73
+ let _ = r.value.find((o) => o.name == N.table);
74
+ _ && (w.value = _.name);
81
75
  }
82
76
  ae(() => {
83
- E.value.clearValidate(), E.value.validate((y, o) => {
84
- y || (a && a(!1), N.value = []);
77
+ E.value.clearValidate(), E.value.validate((_, o) => {
78
+ _ || (a && a(!1), q.value = []);
85
79
  });
86
80
  });
87
81
  }).finally(() => {
@@ -89,76 +83,76 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
89
83
  });
90
84
  });
91
85
  });
92
- }, Q = (l) => {
86
+ }, J = (l) => {
93
87
  var a, n;
94
- let t = Me(l.module.type, l.module.name);
95
- Ae.setTitle(t, l.module.env), f.value = l.module, b.value = l.next, c.value = ue.expandSet(l.schema, l.set), u.value = ue.expandSchema(l.schema), _.value = (a = u.value) == null ? void 0 : a[0], L.value = _.value.layouts[0], ((n = u.value) == null ? void 0 : n.length) > 1 && (w.value = u.value[1].name, p.value.table = u.value[1], p.value.layout = u.value[1].layouts[0]);
96
- }, Re = (l) => {
97
- S.value && S.value.resize && S.value.resize(l), C.value && C.value.resize && C.value.resize(l);
88
+ let t = je(l.module.type, l.module.name);
89
+ Ae.setTitle(t, l.module.env), p.value = l.module, b.value = l.next, c.value = re.expandSet(l.schema, l.set), r.value = re.expandSchema(l.schema), y.value = (a = r.value) == null ? void 0 : a[0], D.value = y.value.layouts[0], ((n = r.value) == null ? void 0 : n.length) > 1 && (w.value = r.value[1].name, v.value.table = r.value[1], v.value.layout = r.value[1].layouts[0]);
90
+ }, Se = (l) => {
91
+ R.value && R.value.resize && R.value.resize(l), C.value && C.value.resize && C.value.resize(l);
98
92
  }, Te = (l, t) => {
99
93
  if (l == "ctrlS") {
100
- if (f.value.type == "Detail") {
101
- if (!O.value || !O.value.keyboard)
94
+ if (p.value.type == "Detail") {
95
+ if (!K.value || !K.value.keyboard)
102
96
  return !1;
103
- O.value.keyboard(l, t);
97
+ K.value.keyboard(l, t);
104
98
  return;
105
99
  }
106
- F(t);
100
+ O(t);
107
101
  }
108
102
  }, Ve = () => {
109
- let l = q.getUrl(z.value.path, z.value.query);
110
- D("load", l, !1, (t) => {
103
+ let l = P.getUrl(z.value.path, z.value.query);
104
+ B("load", l, !1, (t) => {
111
105
  });
112
106
  };
113
107
  (() => {
114
- Q(M.value.data);
108
+ J(j.value.data);
115
109
  })();
116
- let F = (l) => {
117
- if (!K.value.submit) {
118
- re.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
110
+ let O = (l) => {
111
+ if (!F.value.submit) {
112
+ ue.notify("提示", "请在子组件暴露submit方法来实现快捷提交", "warning");
119
113
  return;
120
114
  }
121
- K.value.submit(l);
115
+ F.value.submit(l);
122
116
  }, ze = Y(() => {
123
- let l = `/${_.value.name}/update`, t = f.value.type == "Detail" ? "detail" : "update";
124
- return Pe.getComponent(l, "partial", t);
125
- }), W = Y(() => f.value.type.toLowerCase());
126
- return Be(() => M.value, (l) => {
127
- Q(l.data), S.value.update && S.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
128
- }), ie({ shouldLoad: ve, shouldSpin: fe, keyboard: Te, refresh: be, resize: Re }), (l, t) => {
129
- const a = v("el-tooltip"), n = v("el-tab-pane"), T = v("el-tabs"), U = v("el-form"), $ = v("el-scrollbar"), V = v("el-popover"), X = v("el-form-item"), P = v("el-card"), y = v("el-drawer");
130
- return d(), H("div", {
117
+ let l = `/${y.value.name}/update`, t = p.value.type == "Detail" ? "detail" : "update";
118
+ return Ne.getComponent(l, "partial", t);
119
+ }), Q = Y(() => p.value.type.toLowerCase());
120
+ return Le(() => j.value, (l) => {
121
+ J(l.data), R.value.update && R.value.update(l.data), C.value && C.value.update && C.value.update(l.data);
122
+ }), ie({ shouldLoad: fe, shouldSpin: pe, keyboard: Te, refresh: be, resize: Se }), (l, t) => {
123
+ const a = f("el-tooltip"), n = f("el-tab-pane"), T = f("el-tabs"), U = f("el-form"), $ = f("el-scrollbar"), V = f("el-popover"), X = f("el-form-item"), N = f("el-card"), _ = f("el-drawer");
124
+ return d(), W("div", {
131
125
  ref_key: "singleRef",
132
- ref: pe,
133
- class: De(["ha-single-page", { [e(W) + "-page"]: !0, editing: e(k) }])
126
+ ref: ve,
127
+ class: Be(["ha-single-page", { [e(Q) + "-page"]: !0, editing: e(k) }])
134
128
  }, [
135
- m("div", Ie, [
129
+ m("div", He, [
136
130
  h($, { class: "main-scroller" }, {
137
131
  default: s(() => [
138
132
  h(U, {
139
133
  ref_key: "formRef",
140
134
  ref: E,
141
135
  model: e(c),
142
- onSubmit: t[3] || (t[3] = Le(() => {
136
+ onSubmit: t[3] || (t[3] = De(() => {
143
137
  }, ["prevent"]))
144
138
  }, {
145
139
  default: s(() => [
146
140
  h(ne, {
147
141
  ref_key: "mainRef",
148
- ref: S,
149
- module: e(f),
150
- schema: e(u),
151
- table: e(_),
152
- layout: e(L),
142
+ ref: R,
143
+ module: e(p),
144
+ schema: e(r),
145
+ table: e(y),
146
+ layout: e(D),
153
147
  next: e(b),
154
148
  set: e(c),
155
149
  route: e(z),
156
- "validate-errors": e(N),
157
- onChange: e(I),
158
- onLayoutChange: t[0] || (t[0] = (o) => e(J)(o, !0)),
159
- onSubmit: e(F)
150
+ "validate-errors": e(q),
151
+ onChange: e(H),
152
+ onLayoutChange: t[0] || (t[0] = (o) => e(I)(o, !0)),
153
+ onSubmit: e(O)
160
154
  }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onChange", "onSubmit"]),
161
- e(u).length > 1 ? (d(), g(T, {
155
+ e(r).length > 1 ? (d(), g(T, {
162
156
  key: 0,
163
157
  type: "border-card",
164
158
  onTabChange: e(ke),
@@ -166,7 +160,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
166
160
  "onUpdate:modelValue": t[1] || (t[1] = (o) => Z(w) ? w.value = o : w = o)
167
161
  }, {
168
162
  default: s(() => [
169
- (d(!0), H(ee, null, le(e(u).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
163
+ (d(!0), W(ee, null, le(e(r).filter((o, Ee) => Ee > 0), (o) => (d(), g(n, {
170
164
  name: o.name,
171
165
  key: o.name
172
166
  }, {
@@ -177,7 +171,7 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
177
171
  disabled: !o.tooltip
178
172
  }, {
179
173
  default: s(() => [
180
- m("div", null, x(e(qe)(o.table)), 1)
174
+ m("div", null, x(e(Pe)(o.table)), 1)
181
175
  ]),
182
176
  _: 2
183
177
  }, 1032, ["content", "disabled"])
@@ -186,53 +180,53 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
186
180
  }, 1032, ["name"]))), 128))
187
181
  ]),
188
182
  _: 1
189
- }, 8, ["onTabChange", "modelValue"])) : B("", !0),
190
- e(p).table ? (d(), g(ne, {
183
+ }, 8, ["onTabChange", "modelValue"])) : L("", !0),
184
+ e(v).table ? (d(), g(ne, {
191
185
  key: 1,
192
186
  ref_key: "childRef",
193
187
  ref: C,
194
- module: e(f),
195
- schema: e(u),
196
- table: e(p).table,
197
- layout: e(p).layout,
188
+ module: e(p),
189
+ schema: e(r),
190
+ table: e(v).table,
191
+ layout: e(v).layout,
198
192
  next: e(b),
199
193
  set: e(c),
200
194
  route: e(z),
201
- "validate-errors": e(N),
195
+ "validate-errors": e(q),
202
196
  onRowEdit: e(we),
203
- onChange: e(I),
204
- onLayoutChange: t[2] || (t[2] = (o) => e(J)(o, !1)),
205
- onSubmit: e(F)
206
- }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : B("", !0)
197
+ onChange: e(H),
198
+ onLayoutChange: t[2] || (t[2] = (o) => e(I)(o, !1)),
199
+ onSubmit: e(O)
200
+ }, null, 8, ["module", "schema", "table", "layout", "next", "set", "route", "validate-errors", "onRowEdit", "onChange", "onSubmit"])) : L("", !0)
207
201
  ]),
208
202
  _: 1
209
203
  }, 8, ["model"])
210
204
  ]),
211
205
  _: 1
212
206
  }),
213
- (d(), g(Ne(e(ze)), {
207
+ (d(), g(qe(e(ze)), {
214
208
  ref_key: "updateRef",
215
- ref: K,
209
+ ref: F,
216
210
  class: "main-footer",
217
- schema: e(u),
218
- table: e(_),
219
- layout: e(L),
211
+ schema: e(r),
212
+ table: e(y),
213
+ layout: e(D),
220
214
  next: e(b),
221
215
  set: e(c),
222
216
  route: e(z),
223
- onCopy: e(_e),
224
- onEdit: e(ye),
225
- onSubmit: e(Se),
217
+ onCopy: e(ye),
218
+ onEdit: e(_e),
219
+ onSubmit: e(Re),
226
220
  onClose: e(Ce)
227
221
  }, null, 40, ["schema", "table", "layout", "next", "set", "route", "onCopy", "onEdit", "onSubmit", "onClose"]))
228
222
  ]),
229
- e(k) ? (d(), g(P, {
223
+ e(k) ? (d(), g(N, {
230
224
  key: 0,
231
225
  class: "side-form"
232
226
  }, {
233
227
  header: s(() => [
234
- m("div", Je, [
235
- m("div", Qe, x(e(oe)("common.modify")) + " " + x(e(j)[e(R).show[0].name]), 1),
228
+ m("div", Ie, [
229
+ m("div", Je, x(e(oe)("common.modify")) + " " + x(e(M)[e(S).show[0].name]), 1),
236
230
  m("div", {
237
231
  class: "row-close",
238
232
  onClick: t[4] || (t[4] = (o) => Z(k) ? k.value = !1 : k = !1)
@@ -247,12 +241,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
247
241
  "label-width": "80px"
248
242
  }, {
249
243
  default: s(() => [
250
- (d(!0), H(ee, null, le(e(R).show, (o) => (d(), g(X, {
251
- style: Oe(o.control.height ? `height: ${o.control.height}px;` : ""),
244
+ (d(!0), W(ee, null, le(e(S).show, (o) => (d(), g(X, {
245
+ style: Ke(o.control.height ? `height: ${o.control.height}px;` : ""),
252
246
  rules: o.rules
253
247
  }, {
254
248
  label: s(() => [
255
- te(x(e(Ke)(e(R).name, o.name)) + " ", 1),
249
+ te(x(e(Fe)(e(S).name, o.name)) + " ", 1),
256
250
  o.control.tooltip ? (d(), g(V, {
257
251
  key: 0,
258
252
  trigger: "hover",
@@ -267,15 +261,15 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
267
261
  m("pre", null, x(o.control.tooltip.content), 1)
268
262
  ]),
269
263
  _: 2
270
- }, 1032, ["title"])) : B("", !0)
264
+ }, 1032, ["title"])) : L("", !0)
271
265
  ]),
272
266
  default: s(() => [
273
267
  h(Ge, {
274
- schema: e(u),
275
- table: e(R),
268
+ schema: e(r),
269
+ table: e(S),
276
270
  field: o,
277
271
  set: e(c),
278
- row: e(j)
272
+ row: e(M)
279
273
  }, null, 8, ["schema", "table", "field", "set", "row"])
280
274
  ]),
281
275
  _: 2
@@ -288,12 +282,12 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
288
282
  })
289
283
  ]),
290
284
  _: 1
291
- })) : B("", !0),
292
- e(i).page ? (d(), g(y, {
285
+ })) : L("", !0),
286
+ e(i).page ? (d(), g(_, {
293
287
  key: 1,
294
288
  "destroy-on-close": "",
295
289
  "append-to-body": e(i).appendToBody,
296
- size: `${e(f).width ?? "60%"}`,
290
+ size: `${e(p).width ?? "60%"}`,
297
291
  modelValue: e(i).visible,
298
292
  "onUpdate:modelValue": t[5] || (t[5] = (o) => e(i).visible = o)
299
293
  }, {
@@ -302,25 +296,25 @@ const Ie = { class: "ha-main-form" }, Je = { class: "row-header" }, Qe = { class
302
296
  te(x(e(b)[e(i).page].title) + " ", 1),
303
297
  m("a", {
304
298
  class: "drawer-copy",
305
- href: `${e(q).getToUrl(e(i).url)}`
299
+ href: `${e(P).getToUrl(e(i).url)}`
306
300
  }, x(e(oe)("common.link")), 9, el)
307
301
  ])
308
302
  ]),
309
303
  default: s(() => [
310
- h(e(je), {
304
+ h(e(Me), {
311
305
  ref_key: "pageRef",
312
- ref: O,
306
+ ref: K,
313
307
  url: e(i).url,
314
308
  onSucceed: e(G),
315
309
  onClose: e(he)
316
310
  }, null, 8, ["url", "onSucceed", "onClose"])
317
311
  ]),
318
312
  _: 1
319
- }, 8, ["append-to-body", "size", "modelValue"])) : B("", !0)
313
+ }, 8, ["append-to-body", "size", "modelValue"])) : L("", !0)
320
314
  ], 2);
321
315
  };
322
316
  }
323
317
  });
324
318
  export {
325
- cl as default
319
+ rl as default
326
320
  };