halo-pc 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/dist/Article-DASEvkfO.js +194 -0
  2. package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BSesl8iy.js} +17 -24
  3. package/dist/{Autocomplete-CIXGPZaG.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-BGzxI5QJ.js → CSharp-23QccebX.js} +1 -1
  7. package/dist/{Calender-DkBPl9bM.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-CuRjXSPc.js → Checkbox-SLi7MK1r.js} +1 -1
  13. package/dist/Code-BVTjF5rW.js +54 -0
  14. package/dist/{Code-BlwPnx9J.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-C0jItlVY.js → DataExport-YTc4EX6l.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
  26. package/dist/{DataImport-BfBkneEy.js → DataImport-ByV8MQkV.js} +1 -1
  27. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
  28. package/dist/{Date-B8b9JXpP.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-DjhuyxFC.js → DateTime-C3NrioJi.js} +1 -1
  32. package/dist/DateTime-QyKfqaVG.js +38 -0
  33. package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-lytkhCjC.js} +11 -18
  34. package/dist/Daterange-D7ZHkOmo.js +57 -0
  35. package/dist/{Decimal-DqMMTfvl.js → Decimal-CTTT98BQ.js} +1 -1
  36. package/dist/Delete-MfXy7gUi.js +56 -0
  37. package/dist/{Detail-C-OFWPso.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-C2fLmTcj.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-DJJcNPgN.js +173 -0
  45. package/dist/{Index-B90giDWQ.js → Index-DlrpDUD3.js} +1 -1
  46. package/dist/Index-DxvVjg9S.js +70 -0
  47. package/dist/{Index-CQURvmzd.js → Index-G36KYPCK.js} +1 -1
  48. package/dist/Index-dTIwhIau.js +4 -0
  49. package/dist/{Index-D7DerkIw.js → Index-x4c71OJZ.js} +1 -1
  50. package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
  52. package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
  53. package/dist/{Install-Cqj44p9F.js → Install-BW_ulT9I.js} +20 -27
  54. package/dist/Int-BRqYiJo7.js +41 -0
  55. package/dist/{Int-Bj3Gagp5.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-COY9enBf.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-B7jIGlKI.js → Month-DKeTzNrD.js} +1 -1
  62. package/dist/{Normal-B8YL2DeI.js → Normal-CgSREifM.js} +52 -58
  63. package/dist/Paging-D02YApLL.js +94 -0
  64. package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-DJ7MmfGl.js} +37 -44
  65. package/dist/{PagingRow-CHDlm8UI.js → PagingRow-BM1GMtrr.js} +21 -28
  66. package/dist/QueryApi-ChpV_S8J.js +13 -0
  67. package/dist/{Racebar-ClsuYbRj.js → Racebar-CZlaC5Gm.js} +43 -49
  68. package/dist/{Radio-C6j5nvI9.js → Radio-BPq3WJa4.js} +1 -1
  69. package/dist/{Register-BnwfjjXP.js → Register-ByxrZyWq.js} +74 -80
  70. package/dist/RichText-BtQDAhn9.js +41 -0
  71. package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-B61gsy3w.js} +1 -1
  72. package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
  73. package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CLvZoPGQ.js} +1 -1
  74. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.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-Z8b2t5QQ.js → Select-DGXJMnE9.js} +19 -26
  77. package/dist/{Select-BiFIpc5-.js → Select-Nb9K2FMY.js} +1 -1
  78. package/dist/{Single-DdcVVH9V.js → Single-C-2qA2MU.js} +111 -117
  79. package/dist/{Statistic-B7niMPBf.js → Statistic-B1K-qIZb.js} +30 -36
  80. package/dist/{Stock-CRsu1vcy.js → Stock-C560McFR.js} +1 -1
  81. package/dist/{Stock-xm8v4vDf.js → Stock-_rnn0B8I.js} +1 -1
  82. package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +26 -32
  83. package/dist/{Switch-BaER4xWy.js → Switch-BadvkLSw.js} +1 -1
  84. package/dist/{Table-a5uj25Nj.js → Table-B46N43V3.js} +69 -74
  85. package/dist/{Table-C2dYPoGi.js → Table-Dk48tQ1r.js} +59 -66
  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-DAICkidp.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-BwQkDP2T.js → Tree-DVeTdmmL.js} +66 -72
  96. package/dist/TreeNode-BScAFHPZ.js +37 -0
  97. package/dist/{Update-BZe92EwV.js → Update-BbU5H_Qf.js} +14 -21
  98. package/dist/{UpdateChild-DN6pwrUK.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-2tcz8PDF.js → Year-CTo-9KjE.js} +1 -1
  104. package/dist/main-65efBfek.js +19835 -0
  105. package/dist/main.js +53 -54
  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 +1 -1
  111. package/dist/Article-BH4dl6Bf.js +0 -201
  112. package/dist/Autocomplete-DYxWYClO.js +0 -55
  113. package/dist/Autocomplete-SOenNkH4.js +0 -54
  114. package/dist/Callback-B57W83N1.js +0 -27
  115. package/dist/Cascader-BI6T7N-q.js +0 -88
  116. package/dist/Cascader-BoN_F8v4.js +0 -48
  117. package/dist/Checkbox-DdolP6wO.js +0 -77
  118. package/dist/Code--y8oCkjX.js +0 -43
  119. package/dist/Code-C48Gf7gU.js +0 -61
  120. package/dist/Code-DiOQvIZv.js +0 -4
  121. package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
  122. package/dist/Column-BNGw36Iq.js +0 -75
  123. package/dist/Comment-D37SdQb6.js +0 -105
  124. package/dist/Compare-C09T8aaU.js +0 -33
  125. package/dist/Compare-CnnCTG12.js +0 -63
  126. package/dist/Copy-DNrXXJRQ.js +0 -50
  127. package/dist/Custom--I04Jyzr.js +0 -58
  128. package/dist/Date-TKW4HbCJ.js +0 -44
  129. package/dist/DateRange-JCP1Eokf.js +0 -64
  130. package/dist/DateTime-DVOVXS_f.js +0 -45
  131. package/dist/Daterange-CqHXC9JN.js +0 -64
  132. package/dist/Delete-PcTE_3Cp.js +0 -63
  133. package/dist/Dictionary-Cfhmc2OQ.js +0 -60
  134. package/dist/Email-Rj-ZvdfJ.js +0 -55
  135. package/dist/Image-zgBgvAup.js +0 -9
  136. package/dist/Index-9fyKz8TT.js +0 -4
  137. package/dist/Index-CAlWNb2l.js +0 -179
  138. package/dist/Index-CjFLlnmH.js +0 -4
  139. package/dist/Index-Cr2WAY6Z.js +0 -76
  140. package/dist/Index-Izl4chSJ.js +0 -4
  141. package/dist/Int-dlbcQ6_t.js +0 -47
  142. package/dist/List-BsAOvgmQ.js +0 -80
  143. package/dist/Maintaince-DjSvIfbu.js +0 -21
  144. package/dist/Month-BhNUuzcc.js +0 -44
  145. package/dist/Month-KDuTRSA0.js +0 -45
  146. package/dist/Paging-BlFnu-w0.js +0 -100
  147. package/dist/QueryApi-Bc_kmvgs.js +0 -21
  148. package/dist/RichText-BImFNkHQ.js +0 -48
  149. package/dist/Select-f15Y0Ko-.js +0 -118
  150. package/dist/Text-CMEzogZ8.js +0 -4
  151. package/dist/Text-CqKE2xDo.js +0 -59
  152. package/dist/Text-DfqLW_KH.js +0 -60
  153. package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
  154. package/dist/TextLink-XJurKE8Q.js +0 -66
  155. package/dist/Time-BmdIHgOY.js +0 -44
  156. package/dist/Timeline-BOPAiaK-.js +0 -60
  157. package/dist/Tree-BR8gmBBa.js +0 -123
  158. package/dist/TreeNode-CdBVgaRW.js +0 -43
  159. package/dist/Upload-BtErvzEO.js +0 -151
  160. package/dist/Upload-vPTA8ndw.js +0 -73
  161. package/dist/UploadApi-CpwS4Kf1.js +0 -21
  162. package/dist/Year-CVqwpSLR.js +0 -48
  163. package/dist/assets/@intlify-BISCQg1h.js +0 -2189
  164. package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
  165. package/dist/assets/@vue-aVYGocXp.js +0 -93
  166. package/dist/assets/clone-BZn0cTAu.js +0 -134
  167. package/dist/assets/file-saver-CwlpTZSc.js +0 -74
  168. package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
  169. package/dist/assets/moment-h96o7c8I.js +0 -2578
  170. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  171. package/dist/assets/state-local-CEworIRt.js +0 -131
  172. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  173. package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
  174. package/dist/assets/util-deprecate-Dzun97re.js +0 -28
  175. package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
  176. package/dist/main-BS_9gx1M.js +0 -8937
@@ -0,0 +1,37 @@
1
+ import { defineComponent as i, toRefs as f, computed as V, resolveComponent as h, openBlock as _, createBlock as b, unref as e, isRef as k } from "vue";
2
+ import { V as Y } from "./main-65efBfek.js";
3
+ const x = /* @__PURE__ */ i({
4
+ __name: "Month",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ searchData: {},
10
+ modelValue: {}
11
+ },
12
+ emits: ["submit", "change", "update:modelValue"],
13
+ setup(n, { emit: r }) {
14
+ let a = r, p = n, { table: u, field: o, searchData: g, modelValue: s } = f(p), l = V({
15
+ get() {
16
+ return s.value;
17
+ },
18
+ set(t) {
19
+ a("update:modelValue", t), a("change", t);
20
+ }
21
+ });
22
+ return (t, m) => {
23
+ const c = h("el-date-picker");
24
+ return _(), b(c, {
25
+ type: "month",
26
+ placeholder: e(Y)(e(u).name, e(o).name),
27
+ "value-format": "YYYY-MM",
28
+ disabled: e(o).control.readonly,
29
+ modelValue: e(l),
30
+ "onUpdate:modelValue": m[0] || (m[0] = (d) => k(l) ? l.value = d : l = d)
31
+ }, null, 8, ["placeholder", "disabled", "modelValue"]);
32
+ };
33
+ }
34
+ });
35
+ export {
36
+ x as default
37
+ };
@@ -0,0 +1,38 @@
1
+ import { defineComponent as i, toRefs as f, computed as V, resolveComponent as _, openBlock as h, createBlock as b, unref as e, isRef as k } from "vue";
2
+ import { V as Y } from "./main-65efBfek.js";
3
+ const x = /* @__PURE__ */ i({
4
+ __name: "Month",
5
+ props: {
6
+ schema: {},
7
+ table: {},
8
+ field: {},
9
+ set: {},
10
+ row: {},
11
+ modelValue: {}
12
+ },
13
+ emits: ["submit", "change", "update:modelValue"],
14
+ setup(n, { emit: r }) {
15
+ let o = r, p = n, { table: u, field: a, set: g, modelValue: s } = f(p), l = V({
16
+ get() {
17
+ return s.value;
18
+ },
19
+ set(t) {
20
+ o("update:modelValue", t), o("change", t);
21
+ }
22
+ });
23
+ return (t, m) => {
24
+ const c = _("el-date-picker");
25
+ return h(), b(c, {
26
+ type: "month",
27
+ placeholder: e(Y)(e(u).name, e(a).name),
28
+ "value-format": "YYYY-MM",
29
+ disabled: e(a).control.readonly,
30
+ modelValue: e(l),
31
+ "onUpdate:modelValue": m[0] || (m[0] = (d) => k(l) ? l.value = d : l = d)
32
+ }, null, 8, ["placeholder", "disabled", "modelValue"]);
33
+ };
34
+ }
35
+ });
36
+ export {
37
+ x as default
38
+ };
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ u({
10
10
  modelValue: {}
11
11
  },
12
12
  setup(a) {
13
- let s = i(() => import("./Text-CMEzogZ8.js")), m = a, { schema: n, table: r, field: d, set: f, row: p, modelValue: l } = c(m);
13
+ let s = i(() => import("./Text-y-q7UXlg.js")), m = a, { schema: n, table: r, field: d, set: f, row: p, modelValue: l } = c(m);
14
14
  return (w, t) => (V(), b(e(s), {
15
15
  schema: e(n),
16
16
  table: e(r),
@@ -1,14 +1,8 @@
1
- import { defineComponent as de, toRefs as he, ref as w, onMounted as fe, computed as z, watch as D, resolveComponent as _, openBlock as n, createElementBlock as v, normalizeClass as G, unref as e, createBlock as g, withCtx as m, Fragment as S, renderList as R, createVNode as C, createCommentVNode as E, toDisplayString as F, createElementVNode as B, normalizeStyle as ge, createTextVNode as _e, resolveDynamicComponent as be } from "vue";
2
- import { q as J, s as M, d as ye, P as Ce, t as ke, f as xe, N as we, A as Se } from "./main-BS_9gx1M.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 "./assets/liquidjs-C-LVcoaY.js";
1
+ import { defineComponent as de, toRefs as he, ref as w, onMounted as fe, computed as z, watch as F, resolveComponent as _, openBlock as n, createElementBlock as v, normalizeClass as H, unref as e, createBlock as g, withCtx as m, Fragment as S, renderList as R, createVNode as k, createCommentVNode as E, toDisplayString as I, createElementVNode as B, normalizeStyle as ge, createTextVNode as _e, resolveDynamicComponent as be } from "vue";
2
+ import { i as J, s as M, c as ye, M as ke, U as Ce, q as xe, I as we, k as Se } from "./main-65efBfek.js";
9
3
  import "vue-router";
10
4
  import "./assets/intro.js-DxWjEdp_.js";
11
- import { _ as K } from "./Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js";
5
+ import { _ as K } from "./Index.vue_vue_type_style_index_0_lang-DVYceMeD.js";
12
6
  const Re = {
13
7
  key: 1,
14
8
  class: "ha-empty"
@@ -19,7 +13,7 @@ const Re = {
19
13
  }, ze = {
20
14
  key: 0,
21
15
  class: "normal-selection"
22
- }, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */ B("i", { class: "fa fa-question-circle icon-question" }, null, -1), je = /* @__PURE__ */ de({
16
+ }, Ee = { class: "normal-content" }, Ve = /* @__PURE__ */ B("i", { class: "fa fa-question-circle icon-question" }, null, -1), Me = /* @__PURE__ */ de({
23
17
  __name: "Normal",
24
18
  props: {
25
19
  route: {},
@@ -32,31 +26,31 @@ const Re = {
32
26
  set: {}
33
27
  },
34
28
  emits: ["change", "submit"],
35
- setup(Q, { expose: U, emit: X }) {
36
- let I = X, Y = Q, { module: L, set: c, schema: V, table: t, layout: i, validateErrors: O } = he(Y), p = w({ page: 1, count: c.value[t.value.name].length }), k = w([]), b = w(), H = w([]), j = w(), Z = (l) => {
37
- H.value.push(l);
29
+ setup(P, { expose: Q, emit: X }) {
30
+ let L = X, Y = P, { module: O, set: c, schema: V, table: t, layout: i, validateErrors: A } = he(Y), p = w({ page: 1, count: c.value[t.value.name].length }), C = w([]), b = w(), U = w([]), j = w(), Z = (l) => {
31
+ U.value.push(l);
38
32
  }, ee = () => {
39
33
  p.value.page = 1;
40
34
  }, le = () => {
41
- b.value = P(t.value);
35
+ b.value = T(t.value);
42
36
  let l = M.getDefaultRow(t.value);
43
37
  c.value[t.value.name].push(l);
44
38
  }, te = () => {
45
39
  let l = c.value[t.value.name];
46
- k.value.forEach((a) => {
40
+ C.value.forEach((a) => {
47
41
  l.splice(l.indexOf(a), 1);
48
- }), k.value = [], H.value.forEach((a) => {
42
+ }), C.value = [], U.value.forEach((a) => {
49
43
  a.model && (a.model = !1);
50
44
  });
51
- }, N = (l) => c.value[t.value.name].indexOf(l), ae = (l, a, o, r, d) => {
52
- I("change", l, a, o, r, d);
45
+ }, q = (l) => c.value[t.value.name].indexOf(l), ae = (l, a, o, r, d) => {
46
+ L("change", l, a, o, r, d);
53
47
  }, ne = (l, a) => {
54
- l ? k.value.push(a) : Se.remove(k.value, a);
48
+ l ? C.value.push(a) : Se.remove(C.value, a);
55
49
  }, oe = (l) => {
56
- I("submit", l);
50
+ L("submit", l);
57
51
  }, re = (l, a = null) => {
58
52
  p.value.page = l;
59
- }, P = (l) => {
53
+ }, T = (l) => {
60
54
  if (l.main || l.search.length == 0)
61
55
  return null;
62
56
  let a = {};
@@ -65,22 +59,22 @@ const Re = {
65
59
  });
66
60
  let o = {};
67
61
  return o[l.name] = a, o;
68
- }, T = (l) => {
69
- b.value = P(l);
62
+ }, W = (l) => {
63
+ b.value = T(l);
70
64
  }, ue = () => {
71
- q();
65
+ N();
72
66
  }, se = (l) => {
73
- T(l.schema[0]);
74
- }, q = () => {
67
+ W(l.schema[0]);
68
+ }, N = () => {
75
69
  let l = j.value.clientWidth;
76
70
  i.value.column = Math.ceil(l / 500);
77
71
  }, me = () => {
78
- q(), T(t.value);
72
+ N(), W(t.value);
79
73
  };
80
74
  fe(() => {
81
75
  me();
82
76
  });
83
- let ce = z(() => J.splitRows(t.value.search, i.value.column)), W = z(() => {
77
+ let ce = z(() => J.splitRows(t.value.search, i.value.column)), G = z(() => {
84
78
  if (!b.value)
85
79
  return c.value[t.value.name];
86
80
  let l = b.value[t.value.name], a = (p.value.page - 1) * i.value.pageSize, o = p.value.page * i.value.pageSize - 1, r = c.value[t.value.name].filter(($) => {
@@ -106,20 +100,20 @@ const Re = {
106
100
  let l = t.value.main ? `/${t.value.name}` : `/${V.value[0].name}/${t.value.name}`;
107
101
  return ye.getComponent(`${l}/update-child`, "partial", "update-child");
108
102
  });
109
- return D(() => c.value[t.value.name], (l, a) => {
110
- let o = l.length, r = a.length, d = Ce.pageCount(c.value[t.value.name].length, i.value.pageSize);
103
+ return F(() => c.value[t.value.name], (l, a) => {
104
+ let o = l.length, r = a.length, d = ke.pageCount(c.value[t.value.name].length, i.value.pageSize);
111
105
  (o > r || o < r && p.value.page > d) && (p.value.page = d);
112
- }, { deep: !0 }), D(O, (l, a) => {
106
+ }, { deep: !0 }), F(A, (l, a) => {
113
107
  let o = l.find((r) => r.table == t.value.name);
114
108
  o != null && (p.value.page = Math.ceil((o.index + 1) / i.value.pageSize));
115
- }), D(t, (l, a) => {
116
- q();
117
- }), U({ resize: ue, update: se }), (l, a) => {
109
+ }), F(t, (l, a) => {
110
+ N();
111
+ }), Q({ resize: ue, update: se }), (l, a) => {
118
112
  const o = _("el-form-item"), r = _("el-col"), d = _("el-row"), $ = _("el-form"), f = _("el-checkbox"), x = _("el-popover"), y = _("el-pagination");
119
113
  return n(), v("div", {
120
114
  ref_key: "normalRef",
121
115
  ref: j,
122
- class: G(["ha-normal-layout", { draggable: e(i).sort }])
116
+ class: H(["ha-normal-layout", { draggable: e(i).sort }])
123
117
  }, [
124
118
  e(b) ? (n(), g($, {
125
119
  key: 0,
@@ -131,16 +125,16 @@ const Re = {
131
125
  key: h
132
126
  }, {
133
127
  default: m(() => [
134
- (n(!0), v(S, null, R(s, (u, A) => (n(), g(r, {
128
+ (n(!0), v(S, null, R(s, (u, D) => (n(), g(r, {
135
129
  span: 24 / e(i).column,
136
- key: A
130
+ key: D
137
131
  }, {
138
132
  default: m(() => [
139
- C(o, {
133
+ k(o, {
140
134
  label: u.label
141
135
  }, {
142
136
  default: m(() => [
143
- C(K, {
137
+ k(K, {
144
138
  schema: e(V),
145
139
  table: e(t),
146
140
  field: u,
@@ -159,12 +153,12 @@ const Re = {
159
153
  ]),
160
154
  _: 1
161
155
  })) : E("", !0),
162
- e(W).length ? (n(), v("div", $e, [
163
- (n(!0), v(S, null, R(e(W), (s) => (n(), v("div", {
164
- class: G(["normal-row", { main: e(t).main }])
156
+ e(G).length ? (n(), v("div", $e, [
157
+ (n(!0), v(S, null, R(e(G), (s) => (n(), v("div", {
158
+ class: H(["normal-row", { main: e(t).main }])
165
159
  }, [
166
160
  e(t).main ? E("", !0) : (n(), v("div", ze, [
167
- C(f, {
161
+ k(f, {
168
162
  ref_for: !0,
169
163
  ref: e(Z),
170
164
  class: "normal-checkbox",
@@ -175,19 +169,19 @@ const Re = {
175
169
  B("div", Ee, [
176
170
  (n(!0), v(S, null, R(e(ie), (h) => (n(), g(d, null, {
177
171
  default: m(() => [
178
- (n(!0), v(S, null, R(h, ({ data: u, span: A }) => (n(), g(r, {
179
- span: A,
172
+ (n(!0), v(S, null, R(h, ({ data: u, span: D }) => (n(), g(r, {
173
+ span: D,
180
174
  key: `${e(t).name}.${u.name}`
181
175
  }, {
182
176
  default: m(() => [
183
- C(o, {
184
- style: ge(e(J).getStyle(u, e(L).type, e(i).type)),
177
+ k(o, {
178
+ style: ge(e(J).getStyle(u, e(O).type, e(i).type)),
185
179
  label: u.label,
186
- rules: e(M).getRules(e(O), e(t), u, e(N)(s)),
187
- prop: `[${e(t).name}][${e(N)(s)}][${u.name}]`
180
+ rules: e(M).getRules(e(A), e(t), u, e(q)(s)),
181
+ prop: `[${e(t).name}][${e(q)(s)}][${u.name}]`
188
182
  }, {
189
183
  label: m(() => [
190
- _e(F(e(xe)(e(t).name, u.name)) + " ", 1),
184
+ _e(I(e(xe)(e(t).name, u.name)) + " ", 1),
191
185
  u.control.tooltip ? (n(), g(x, {
192
186
  key: 0,
193
187
  trigger: "hover",
@@ -199,20 +193,20 @@ const Re = {
199
193
  Ve
200
194
  ]),
201
195
  default: m(() => [
202
- B("pre", null, F(u.control.tooltip.content), 1)
196
+ B("pre", null, I(u.control.tooltip.content), 1)
203
197
  ]),
204
198
  _: 2
205
199
  }, 1032, ["title"])) : E("", !0)
206
200
  ]),
207
201
  default: m(() => [
208
- C(K, {
202
+ k(K, {
209
203
  schema: e(V),
210
204
  table: e(t),
211
205
  field: u,
212
206
  set: e(c),
213
207
  row: s,
214
208
  onSubmit: e(oe),
215
- onChange: (ve) => e(ae)(ve, e(c), e(t), u, e(N)(s))
209
+ onChange: (ve) => e(ae)(ve, e(c), e(t), u, e(q)(s))
216
210
  }, null, 8, ["schema", "table", "field", "set", "row", "onSubmit", "onChange"])
217
211
  ]),
218
212
  _: 2
@@ -225,20 +219,20 @@ const Re = {
225
219
  }, 1024))), 256))
226
220
  ])
227
221
  ], 2))), 256))
228
- ], 512)) : (n(), v("div", Re, F(e(ke)("common.no_data")), 1)),
222
+ ], 512)) : (n(), v("div", Re, I(e(Ce)("common.no_data")), 1)),
229
223
  e(t).main ? E("", !0) : (n(), g(e(we), { key: 3 }, {
230
224
  left: m(() => [
231
225
  (n(), g(be(e(pe)), {
232
- module: e(L),
226
+ module: e(O),
233
227
  set: e(c),
234
228
  table: e(t),
235
- selection: e(k),
229
+ selection: e(C),
236
230
  onAdd: e(le),
237
231
  onRemove: e(te)
238
232
  }, null, 40, ["module", "set", "table", "selection", "onAdd", "onRemove"]))
239
233
  ]),
240
234
  default: m(() => [
241
- C(y, {
235
+ k(y, {
242
236
  background: "",
243
237
  layout: "total, prev, pager, next, jumper",
244
238
  "current-page": e(p).page,
@@ -254,5 +248,5 @@ const Re = {
254
248
  }
255
249
  });
256
250
  export {
257
- je as default
251
+ Me as default
258
252
  };
@@ -0,0 +1,94 @@
1
+ import { defineComponent as V, toRefs as $, ref as r, onMounted as j, watch as A, unref as t, openBlock as E, createBlock as H, createCommentVNode as I } from "vue";
2
+ import { W as s, b as K, G as Q, s as d, t as X, l as U } from "./main-65efBfek.js";
3
+ import { _ as Y } from "./Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js";
4
+ const le = /* @__PURE__ */ V({
5
+ __name: "Paging",
6
+ props: {
7
+ base: {},
8
+ route: {},
9
+ url: {},
10
+ win: {}
11
+ },
12
+ emits: ["navigate", "load"],
13
+ setup(b, { expose: k, emit: z }) {
14
+ let m = z, P = b, { url: p, base: y, route: u } = $(P), f = r(), v = r(), c = r(), h = r(), x = r(), C = r(), g = r(), o = r(), N = (e) => !0, L = (e) => {
15
+ let a = s.getPath(p.value), l = s.getPath(e);
16
+ return a != l;
17
+ }, R = (e = null) => {
18
+ _(e);
19
+ }, w = () => {
20
+ }, S = (e) => {
21
+ var l;
22
+ let a = K(e.module.type, e.module.name);
23
+ Q.setTitle(a, e.module.env), f.value = e.module, x.value = e.next, C.value = d.expandSet(e.schema, e.set), v.value = d.expandSchema(e.schema), c.value = (l = v.value) == null ? void 0 : l[0], h.value = c.value.layouts[0], g.value = d.getConditionForm(v.value, u.value.query.condition);
24
+ }, q = (e = null, a = null) => {
25
+ let l = e ?? u.value.query, n = s.getUrl(u.value.path, l);
26
+ m("load", n, !1, (T) => {
27
+ a && a(T);
28
+ });
29
+ }, i = (e, a) => {
30
+ m("navigate", e, a);
31
+ }, B = async (e) => {
32
+ let a = u.value.query;
33
+ a.page = 1;
34
+ let l = X.pure(g.value);
35
+ a.condition = U.encode(l);
36
+ let n = s.getUrl(u.value.path, a);
37
+ n == p.value ? q(a, e) : i(n, e);
38
+ }, D = (e, a) => {
39
+ let l = u.value.query;
40
+ l.order_by = U.encode(JSON.stringify(e));
41
+ let n = s.getUrl(u.value.path, l);
42
+ i(n, a);
43
+ }, W = (e, a = null) => {
44
+ let l = u.value.query;
45
+ l.page = e;
46
+ let n = s.getUrl(u.value.path, l);
47
+ i(n, a);
48
+ }, F = (e, a = null) => {
49
+ let l = u.value.query;
50
+ l.size = e;
51
+ let n = s.getUrl(u.value.path, l);
52
+ i(n, a);
53
+ }, G = (e) => {
54
+ h.value = c.value.layouts.find((a) => a.type == e);
55
+ }, J = () => {
56
+ S(y.value.data);
57
+ }, _ = (e = null) => q(null, e), M = (e) => {
58
+ if (!o.value || !o.value.resize)
59
+ return !1;
60
+ o.value.resize(e);
61
+ }, O = (e, a) => {
62
+ if (!o.value || !o.value.keyboard)
63
+ return !1;
64
+ o.value.keyboard(e, a);
65
+ };
66
+ return j(async () => {
67
+ J();
68
+ }), A(() => y.value, (e) => {
69
+ S(e.data);
70
+ }), k({ shouldLoad: N, shouldSpin: L, refresh: _, keyboard: O, resize: M }), (e, a) => t(h) ? (E(), H(Y, {
71
+ key: 0,
72
+ ref_key: "pagingRef",
73
+ ref: o,
74
+ module: t(f),
75
+ next: t(x),
76
+ set: t(C),
77
+ schema: t(v),
78
+ table: t(c),
79
+ layout: t(h),
80
+ "search-data": t(g),
81
+ onNavigate: t(i),
82
+ onSort: t(D),
83
+ onSearch: t(B),
84
+ onPageChange: t(W),
85
+ onSizeChange: t(F),
86
+ onLayoutChange: t(G),
87
+ onSucceed: t(R),
88
+ onClose: t(w)
89
+ }, null, 8, ["module", "next", "set", "schema", "table", "layout", "search-data", "onNavigate", "onSort", "onSearch", "onPageChange", "onSizeChange", "onLayoutChange", "onSucceed", "onClose"])) : I("", !0);
90
+ }
91
+ });
92
+ export {
93
+ le as default
94
+ };
@@ -1,13 +1,6 @@
1
- import { defineComponent as D, toRefs as F, ref as H, resolveComponent as g, openBlock as s, createElementBlock as I, Fragment as P, createElementVNode as l, unref as e, createBlock as p, withCtx as t, createTextVNode as r, toDisplayString as n, createCommentVNode as d, createVNode as y, createSlots as R } 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 o } from "./main-BS_9gx1M.js";
9
- import "./assets/liquidjs-C-LVcoaY.js";
10
- const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-plus" }, null, -1), j = /* @__PURE__ */ l("i", { class: "fa fa-copy" }, null, -1), z = /* @__PURE__ */ l("i", { class: "fa fa-trash-alt" }, null, -1), A = { class: "search-operation" }, G = /* @__PURE__ */ l("i", { class: "fa fa-search" }, null, -1), J = /* @__PURE__ */ l("i", { class: "fa fa-file-upload" }, null, -1), K = /* @__PURE__ */ l("i", { class: "fa fa-share-square" }, null, -1), ne = /* @__PURE__ */ D({
1
+ import { defineComponent as q, toRefs as D, ref as F, resolveComponent as g, openBlock as i, createElementBlock as H, Fragment as I, createElementVNode as l, unref as e, createBlock as m, withCtx as t, createTextVNode as r, toDisplayString as n, createCommentVNode as p, createVNode as y, createSlots as P } from "vue";
2
+ import { U as o } from "./main-65efBfek.js";
3
+ const R = { class: "search-title" }, T = /* @__PURE__ */ l("i", { class: "fa fa-plus" }, null, -1), $ = /* @__PURE__ */ l("i", { class: "fa fa-copy" }, null, -1), j = /* @__PURE__ */ l("i", { class: "fa fa-trash-alt" }, null, -1), z = { class: "search-operation" }, A = /* @__PURE__ */ l("i", { class: "fa fa-search" }, null, -1), G = /* @__PURE__ */ l("i", { class: "fa fa-file-upload" }, null, -1), J = /* @__PURE__ */ l("i", { class: "fa fa-share-square" }, null, -1), W = /* @__PURE__ */ q({
11
4
  __name: "PagingHeader",
12
5
  props: {
13
6
  schema: {},
@@ -19,55 +12,55 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
19
12
  },
20
13
  emits: ["add", "remove", "copy", "show-import", "show-export", "succeed", "submit"],
21
14
  setup(b, { emit: k }) {
22
- let a = k, x = b, { schema: L, table: C, layout: M, next: m, set: v, selection: i } = F(x), u = H(!1), w = () => {
23
- u.value = !0, a("submit", () => {
15
+ let s = k, x = b, { schema: K, table: C, layout: L, next: d, set: v, selection: a } = D(x), u = F(!1), w = () => {
16
+ u.value = !0, s("submit", () => {
24
17
  u.value = !1;
25
18
  });
26
19
  }, N = (f) => {
27
- a("add", f);
20
+ s("add", f);
28
21
  }, V = () => {
29
- a("show-import");
22
+ s("show-import");
30
23
  }, B = () => {
31
- a("show-export");
24
+ s("show-export");
32
25
  }, E = (f) => {
33
- a("copy", f);
26
+ s("copy", f);
34
27
  }, S = () => {
35
- a("remove", i.value);
28
+ s("remove", a.value);
36
29
  };
37
30
  return (f, _) => {
38
31
  var h;
39
- const c = g("el-button"), q = g("el-popconfirm");
40
- return s(), I(P, null, [
41
- l("div", T, [
42
- e(m).insert ? (s(), p(c, {
32
+ const c = g("el-button"), U = g("el-popconfirm");
33
+ return i(), H(I, null, [
34
+ l("div", R, [
35
+ e(d).insert ? (i(), m(c, {
43
36
  key: 0,
44
37
  type: "primary",
45
38
  class: "btn-insert",
46
39
  onClick: e(N)
47
40
  }, {
48
41
  icon: t(() => [
49
- $
42
+ T
50
43
  ]),
51
44
  default: t(() => [
52
45
  r(" " + n(e(o)("paging.add")), 1)
53
46
  ]),
54
47
  _: 1
55
- }, 8, ["onClick"])) : d("", !0),
56
- e(m).copy ? (s(), p(c, {
48
+ }, 8, ["onClick"])) : p("", !0),
49
+ e(d).copy ? (i(), m(c, {
57
50
  key: 1,
58
51
  type: "primary",
59
- disabled: !e(i).length,
60
- onClick: _[0] || (_[0] = (O) => e(E)(e(i)))
52
+ disabled: !e(a).length,
53
+ onClick: _[0] || (_[0] = (M) => e(E)(e(a)))
61
54
  }, {
62
55
  icon: t(() => [
63
- j
56
+ $
64
57
  ]),
65
58
  default: t(() => [
66
- r(" " + n(e(o)("common.copy")) + n(e(i).length ? "(" + e(i).length + ")" : ""), 1)
59
+ r(" " + n(e(o)("common.copy")) + n(e(a).length ? "(" + e(a).length + ")" : ""), 1)
67
60
  ]),
68
61
  _: 1
69
- }, 8, ["disabled"])) : d("", !0),
70
- e(m).delete ? (s(), p(q, {
62
+ }, 8, ["disabled"])) : p("", !0),
63
+ e(d).delete ? (i(), m(U, {
71
64
  key: 2,
72
65
  width: 180,
73
66
  title: e(o)("common.confirm_delete"),
@@ -80,26 +73,26 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
80
73
  type: "danger",
81
74
  class: "btn-delete",
82
75
  plain: "",
83
- disabled: e(i).length == 0
76
+ disabled: e(a).length == 0
84
77
  }, {
85
78
  icon: t(() => [
86
- z
79
+ j
87
80
  ]),
88
81
  default: t(() => [
89
- r(" " + n(e(o)("common.delete")) + "(" + n(e(i).length) + ") ", 1)
82
+ r(" " + n(e(o)("common.delete")) + "(" + n(e(a).length) + ") ", 1)
90
83
  ]),
91
84
  _: 1
92
85
  }, 8, ["disabled"])
93
86
  ]),
94
87
  _: 1
95
- }, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : d("", !0)
88
+ }, 8, ["title", "confirm-button-text", "cancel-button-text", "onConfirm"])) : p("", !0)
96
89
  ]),
97
- l("div", A, [
90
+ l("div", z, [
98
91
  y(c, {
99
92
  type: "primary",
100
93
  loading: e(u),
101
94
  onClick: e(w)
102
- }, R({
95
+ }, P({
103
96
  default: t(() => [
104
97
  r(" " + n(e(o)("paging.search")), 1)
105
98
  ]),
@@ -108,41 +101,41 @@ const T = { class: "search-title" }, $ = /* @__PURE__ */ l("i", { class: "fa fa-
108
101
  e(u) ? void 0 : {
109
102
  name: "icon",
110
103
  fn: t(() => [
111
- G
104
+ A
112
105
  ]),
113
106
  key: "0"
114
107
  }
115
108
  ]), 1032, ["loading", "onClick"]),
116
- e(m).import ? (s(), p(c, {
109
+ e(d).import ? (i(), m(c, {
117
110
  key: 0,
118
111
  onClick: e(V)
119
112
  }, {
120
113
  icon: t(() => [
121
- J
114
+ G
122
115
  ]),
123
116
  default: t(() => [
124
117
  r(" " + n(e(o)("paging.import")), 1)
125
118
  ]),
126
119
  _: 1
127
- }, 8, ["onClick"])) : d("", !0),
128
- e(m).export ? (s(), p(c, {
120
+ }, 8, ["onClick"])) : p("", !0),
121
+ e(d).export ? (i(), m(c, {
129
122
  key: 1,
130
123
  disabled: ((h = e(v)[e(C).name]) == null ? void 0 : h.length) == 0,
131
124
  onClick: e(B)
132
125
  }, {
133
126
  icon: t(() => [
134
- K
127
+ J
135
128
  ]),
136
129
  default: t(() => [
137
130
  r(" " + n(e(o)("paging.export")), 1)
138
131
  ]),
139
132
  _: 1
140
- }, 8, ["disabled", "onClick"])) : d("", !0)
133
+ }, 8, ["disabled", "onClick"])) : p("", !0)
141
134
  ])
142
135
  ], 64);
143
136
  };
144
137
  }
145
138
  });
146
139
  export {
147
- ne as default
140
+ W as default
148
141
  };