halo-pc 1.0.35 → 1.0.37
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-BqULjBoz.js → Article-DSuvpyeC.js} +59 -62
- package/dist/{ArticleFooter-CRepUD0G.js → ArticleFooter-Cx3OC7sV.js} +3 -4
- package/dist/{Autocomplete-DW-EQzP_.js → Autocomplete-1jt0wRMS.js} +1 -1
- package/dist/{Autocomplete-DxWoCy2-.js → Autocomplete-C7CYy8w6.js} +8 -9
- package/dist/{Autocomplete-Dl8yr0gI.js → Autocomplete-DASTUS8d.js} +5 -6
- package/dist/{CSharp-CHmrfPD-.js → CSharp-CebNTVPd.js} +1 -1
- package/dist/{Calender-BX22DnMb.js → Calender-BBILvX8n.js} +4 -4
- package/dist/{Callback-BGchl5Pt.js → Callback-CLA9Ab9q.js} +5 -6
- package/dist/Cascader-DY2zOwsa.js +47 -0
- package/dist/{Cascader-Wmh_fOfd.js → Cascader-DyQ312mS.js} +12 -13
- package/dist/{Checkbox-ClYubr5_.js → Checkbox-CHmMU0Cs.js} +1 -1
- package/dist/{Checkbox-BhDHYVQv.js → Checkbox-CyC_mo50.js} +3 -4
- package/dist/Code-B4Z7WuUc.js +42 -0
- package/dist/Code-BOTf1uZ5.js +60 -0
- package/dist/{Code-Dw8__whP.js → Code-CIFJJJo3.js} +1 -1
- package/dist/Code-Da4PjT9q.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-ChjwMs7I.js +63 -0
- package/dist/{Column-CNqrSNAW.js → Column-9A6-8_Y7.js} +23 -19
- package/dist/{Comment-BNLLGPGB.js → Comment-D78rr4-n.js} +34 -30
- package/dist/{Compare-BjIr4vt8.js → Compare-Cb9vYPl5.js} +3 -4
- package/dist/{Compare-C5P2t4Iq.js → Compare-DLiL32cA.js} +3 -4
- package/dist/{Copy-CvBsdMqw.js → Copy-CH2_hawJ.js} +8 -9
- package/dist/Custom-D9qN9bwa.js +59 -0
- package/dist/{DataExport-J7a12xRD.js → DataExport-D8cqXPrh.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BQ0WNRqq.js → DataExport.vue_vue_type_script_setup_true_lang-DmB5AeGR.js} +12 -13
- package/dist/{DataImport-BgrxhdBP.js → DataImport-3KwXYYGw.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-0AgII-Ro.js → DataImport.vue_vue_type_script_setup_true_lang-C9xs1_ec.js} +3 -4
- package/dist/{Date-CqL3Xp1L.js → Date-OZxdofhB.js} +1 -1
- package/dist/{Date-iWorFEXN.js → Date-yHlD-Lw2.js} +8 -9
- package/dist/{DateRange-Cfpeirwq.js → DateRange-BLSxDHKv.js} +3 -4
- package/dist/{DateTime-Dv0U5rlW.js → DateTime-8tbpOKOK.js} +5 -6
- package/dist/{DateTime-fa-BOHE8.js → DateTime-B7GzMj8Q.js} +1 -1
- package/dist/{DateTimeRange-B0pw5ZiA.js → DateTimeRange-COFWmQoO.js} +6 -7
- package/dist/{Daterange-DMGOeSyF.js → Daterange-Cy8l4CfJ.js} +8 -9
- package/dist/{Decimal-ynN-XKqW.js → Decimal-Dw6EtZOm.js} +1 -1
- package/dist/{Delete-DKYI0lCr.js → Delete-DjXSCUKp.js} +15 -16
- package/dist/{Detail-Br-ULMjV.js → Detail-DU8mI4u2.js} +3 -4
- package/dist/{Dictionary-C3z2FWDL.js → Dictionary-CAAvUqf-.js} +10 -6
- package/dist/{Email-B2DsICjF.js → Email-AHWpz5Ck.js} +5 -6
- package/dist/{File-hdUkjji3.js → File-DUxwHR5G.js} +19 -20
- package/dist/Image-BJ5q87B6.js +9 -0
- package/dist/Index-CF44rsZW.js +4 -0
- package/dist/Index-CnFjsuQV.js +4 -0
- package/dist/{Index-ChcEoqTf.js → Index-D223MCYD.js} +35 -36
- package/dist/Index-DCIDLocj.js +4 -0
- package/dist/{Index-ySmCcOc1.js → Index-Jt1omrn-.js} +1 -1
- package/dist/{Index-BQB6vWfH.js → Index-KTv20XtO.js} +1 -1
- package/dist/{Index-Bnw6u3PZ.js → Index-Z8HW5XAm.js} +4 -5
- package/dist/Index-qIfIbiFH.js +4 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-CZXsC-E_.js → Index.vue_vue_type_script_setup_true_lang-BznVrY52.js} +27 -25
- package/dist/{Index.vue_vue_type_script_setup_true_lang-GUuR0vzO.js → Index.vue_vue_type_script_setup_true_lang-_8v_4G-B.js} +6 -7
- package/dist/{Install-0oA4rPM7.js → Install-C-xxCx9D.js} +10 -11
- package/dist/{Int-CNHen_OB.js → Int-1QpMyTPB.js} +3 -4
- package/dist/{Int-CYCrDfkF.js → Int-BsHpY5Gt.js} +6 -7
- package/dist/List-DW7FpMfd.js +72 -0
- package/dist/Maintaince-CjUfJUr7.js +20 -0
- package/dist/{Markdown-CcnI9mz9.js → Markdown-BZhSwheI.js} +1 -1
- package/dist/{Month-D_9DFUV2.js → Month-BKXtBi6i.js} +1 -1
- package/dist/{Month-N0iGv8-c.js → Month-IJnA7Kgl.js} +8 -9
- package/dist/{Month-BBF1HARy.js → Month-m0FiTmBK.js} +6 -7
- package/dist/{Normal-DwZJydUM.js → Normal-CettIwbU.js} +65 -66
- package/dist/Paging-J9vCBFzM.js +93 -0
- package/dist/{PagingHeader-GXUua6cK.js → PagingHeader-irWrEKGQ.js} +4 -5
- package/dist/{PagingRow-DeZCXdLB.js → PagingRow-Bft1brFD.js} +3 -4
- package/dist/{Racebar-BXFHoJrk.js → Racebar-D3VFwM1V.js} +28 -24
- package/dist/{Radio-nUkqPIGx.js → Radio-C-IwNXnz.js} +1 -1
- package/dist/{Register-DNXmULLI.js → Register-XTfqbbgr.js} +38 -39
- package/dist/{RichText-COY92auQ.js → RichText-D3aLlQph.js} +14 -10
- package/dist/{SearchFooter-B-2TAXcZ.js → SearchFooter-hC7sQBez.js} +1 -1
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-DgM6JntR.js +55 -0
- package/dist/{SearchForm-B1KLbbyY.js → SearchForm-BTux7Adt.js} +1 -1
- package/dist/SearchForm.vue_vue_type_style_index_0_lang-Ddpe-p19.js +143 -0
- package/dist/{Select-Bw_B6ufE.js → Select-ClAK8aNJ.js} +10 -11
- package/dist/{Select-CGamhz-L.js → Select-DlM_C-60.js} +1 -1
- package/dist/{Select-D8xfJf8j.js → Select-K1dU20i2.js} +13 -14
- package/dist/{Single-DIveQskP.js → Single-DYDwq041.js} +66 -69
- package/dist/{Statistic-D5iiPISQ.js → Statistic-CidgrAcU.js} +6 -7
- package/dist/{Stock-B3zJIs1k.js → Stock-BFszdaCn.js} +1 -1
- package/dist/{Stock-bO6XUouM.js → Stock-BiuhsKPB.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-CCOJ4-No.js → Stock.vue_vue_type_style_index_0_lang-O1UAbsov.js} +6 -7
- package/dist/{Switch-DssI1IBh.js → Switch-TI8J8-E2.js} +1 -1
- package/dist/{Table-BO316Cbq.js → Table-DJOSPNrn.js} +123 -130
- package/dist/{Table-DXcpuTmH.js → Table-DYELgaTY.js} +60 -61
- package/dist/{Text-BCIG-FSm.js → Text-DAliAA9U.js} +1 -1
- package/dist/{Text-Eu5ow8IQ.js → Text-DEv-wMFU.js} +3 -4
- package/dist/Text-Dy6uYSm3.js +49 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-Cm-1AGNB.js +59 -0
- package/dist/{TextLink-jLpxiMgK.js → TextLink-CKPExcuj.js} +5 -6
- package/dist/{Textarea-Bx3eU0TB.js → Textarea-CEv7HYqY.js} +1 -1
- package/dist/{Time-CwdRY8H-.js → Time-BeTq6Tq3.js} +9 -10
- package/dist/{Timeline-BPtq0iG0.js → Timeline-BI2o8Kug.js} +14 -10
- package/dist/{Tree-DxerBKds.js → Tree-BPeNz1X4.js} +60 -63
- package/dist/{Tree-IuRYghPt.js → Tree-DlIrY3e2.js} +34 -30
- package/dist/{TreeNode-DAY80hF6.js → TreeNode-CzM6Npi5.js} +5 -6
- package/dist/{Update-CSuOw8uK.js → Update-Bv6Lp8LZ.js} +3 -4
- package/dist/{UpdateChild-d6-0uHpZ.js → UpdateChild-mrF1t5G8.js} +3 -4
- package/dist/{Upload-CQoGLh54.js → Upload-B0dBN1oH.js} +18 -14
- package/dist/{Upload-Qrc2AkBp.js → Upload-BCdzJlzR.js} +15 -16
- package/dist/{Year-FnibDcf1.js → Year-2hJSZcj_.js} +12 -13
- package/dist/{Year-DmEcvxnt.js → Year-DLITl-_8.js} +1 -1
- package/dist/assets/{liquidjs-B8dqQyVv.js → liquidjs-C2HVw1Ra.js} +82 -81
- package/dist/main-SNlEeN01.js +10337 -0
- package/dist/main.js +144 -135
- package/dist/style.css +1 -1
- package/esm/coms/business/@types/DriverProps.d.ts +1 -6
- package/esm/coms/business/@types/FormProps.d.ts +0 -12
- package/esm/coms/business/@types/index.d.ts +1 -3
- package/esm/coms/business/Condition.vue.d.ts +6 -3
- package/esm/coms/business/Drawer.vue.d.ts +9 -4
- package/esm/coms/business/Driver.vue.d.ts +1 -0
- package/esm/coms/business/Form.vue.d.ts +1 -5
- package/esm/coms/business/index.d.ts +1 -3
- package/esm/coms/commons/index.d.ts +1 -2
- package/esm/coms/controls/RichText.vue.d.ts +1 -1
- package/esm/coms/drivers/@types/CrudProps.d.ts +22 -0
- package/esm/coms/drivers/@types/DriverBaseProps.d.ts +14 -0
- package/esm/coms/drivers/@types/DriverEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/DriverFormProps.d.ts +15 -0
- package/esm/coms/drivers/@types/DriverKindEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/DriverProps.d.ts +29 -0
- package/esm/coms/drivers/@types/KindFormProps.d.ts +17 -0
- package/esm/coms/drivers/@types/KindProps.d.ts +21 -0
- package/esm/coms/drivers/@types/index.d.ts +6 -0
- package/esm/coms/drivers/Crud.vue.d.ts +27 -0
- package/esm/coms/drivers/Index.vue.d.ts +114 -0
- package/esm/coms/drivers/Kind.vue.d.ts +33 -0
- package/esm/coms/drivers/index.d.ts +5 -0
- package/esm/coms/globals/@types/WindowEmit.d.ts +14 -0
- package/esm/coms/globals/@types/index.d.ts +2 -1
- package/esm/coms/globals/HeaderTabs.vue.d.ts +6 -3
- package/esm/coms/globals/Window.vue.d.ts +1 -38
- package/esm/coms/index.d.ts +1 -0
- package/esm/coms/layouts/Index.vue.d.ts +7 -3
- package/esm/coms/layouts/Side.vue.d.ts +5 -2
- package/esm/coms/layouts/Top.vue.d.ts +4 -1
- package/esm/coms/lists/Tree.vue.d.ts +4 -3
- package/esm/coms/pages/@types/index.d.ts +1 -2
- package/esm/coms/pages/Custom.vue.d.ts +2 -1
- package/esm/coms/pages/Delete.vue.d.ts +2 -2
- package/esm/coms/pages/List.vue.d.ts +3 -3
- package/esm/coms/pages/Paging.vue.d.ts +4 -3
- package/esm/coms/pages/Single.vue.d.ts +6 -5
- package/esm/coms/pagings/@types/SearchFooterProps.d.ts +10 -0
- package/esm/coms/pagings/@types/SearchFormProps.d.ts +7 -0
- package/esm/coms/pagings/@types/index.d.ts +3 -1
- package/esm/coms/pagings/Article.vue.d.ts +4 -3
- package/esm/coms/pagings/Index.vue.d.ts +4 -3
- package/esm/coms/pagings/SearchFooter.vue.d.ts +6 -109
- package/esm/coms/pagings/SearchForm.vue.d.ts +6 -65
- package/esm/coms/pagings/Table.vue.d.ts +4 -3
- package/esm/coms/panels/Operation.vue.d.ts +3 -2
- package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
- package/esm/coms/partials/Detail.vue.d.ts +1 -1
- package/esm/coms/partials/PagingHeader.vue.d.ts +3 -3
- package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
- package/esm/coms/partials/Update.vue.d.ts +1 -1
- package/esm/coms/partials/UpdateChild.vue.d.ts +1 -1
- package/esm/coms/searches/Text.vue.d.ts +5 -7
- package/esm/repos/index.d.ts +1 -2
- package/esm/svcs/ModuleSvc.d.ts +40 -0
- package/esm/svcs/RouterSvc.d.ts +1 -1
- package/esm/svcs/StandardSvc.d.ts +2 -6
- package/esm/svcs/WindowSvc.d.ts +2 -2
- package/esm/svcs/index.d.ts +3 -3
- package/package.json +11 -11
- package/dist/Cascader-BpXwryCx.js +0 -43
- package/dist/Code-BQxUo4S4.js +0 -38
- package/dist/Code-BjpkNJAb.js +0 -4
- package/dist/Code-Co49-iRF.js +0 -56
- package/dist/Code.vue_vue_type_style_index_0_lang-DNzXcIII.js +0 -60
- package/dist/Custom-QVZ_RHXN.js +0 -62
- package/dist/Image-CwVoPF1W.js +0 -9
- package/dist/Index-BC2FQhAY.js +0 -4
- package/dist/Index-CBDxaC44.js +0 -4
- package/dist/Index-CT0cKXYs.js +0 -4
- package/dist/Index-D1ZbAjix.js +0 -4
- package/dist/List-Ci3F9DOP.js +0 -75
- package/dist/Maintaince-D7QKNnFc.js +0 -16
- package/dist/Paging-bRw8LIxA.js +0 -96
- package/dist/SearchFooter.vue_vue_type_style_index_0_lang-97vAug1N.js +0 -55
- package/dist/SearchForm.vue_vue_type_style_index_0_lang-B3LUX2ZJ.js +0 -146
- package/dist/Text-BhvhxnY_.js +0 -55
- package/dist/Text.vue_vue_type_style_index_0_lang-C2rphbrS.js +0 -55
- package/dist/main-BCxKY4GT.js +0 -9933
@@ -1,17 +1,16 @@
|
|
1
|
-
import { defineComponent as Be, toRefs as
|
2
|
-
import { U as
|
1
|
+
import { defineComponent as Be, toRefs as He, ref as i, onMounted as Ue, nextTick as j, computed as ae, resolveComponent as k, openBlock as f, createElementBlock as H, createVNode as v, unref as e, isRef as x, normalizeClass as Te, withCtx as h, createTextVNode as le, toDisplayString as S, Fragment as De, renderList as Ee, createBlock as z, createCommentVNode as $, createElementVNode as U, resolveDynamicComponent as Le } from "vue";
|
2
|
+
import { U as b, f as Ne, I as Me, t as A, j as je, k as Ae, w as Ke, J as Pe, L as oe, b as qe, S as Ie, h as Oe, m as Fe, c as Je, a as Ge } from "./main-SNlEeN01.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
import "./
|
5
|
-
import { _ as
|
6
|
-
import { _ as
|
7
|
-
import { _ as Xe } from "./DataExport.vue_vue_type_script_setup_true_lang-BQ0WNRqq.js";
|
4
|
+
import { _ as Qe } from "./SearchForm.vue_vue_type_style_index_0_lang-Ddpe-p19.js";
|
5
|
+
import { _ as Xe } from "./DataImport.vue_vue_type_script_setup_true_lang-C9xs1_ec.js";
|
6
|
+
import { _ as Ye } from "./DataExport.vue_vue_type_script_setup_true_lang-DmB5AeGR.js";
|
8
7
|
import "vue-router";
|
9
8
|
import "./assets/intro.js-Cg1adLK7.js";
|
10
|
-
import { _ as
|
11
|
-
const
|
9
|
+
import { _ as Ze } from "./SearchFooter.vue_vue_type_style_index_0_lang-DgM6JntR.js";
|
10
|
+
const et = {
|
12
11
|
key: 0,
|
13
12
|
class: "required"
|
14
|
-
},
|
13
|
+
}, tt = ["onMouseenter"], at = { class: "el-drawer__title" }, lt = { key: 0 }, ot = ["href"], vt = /* @__PURE__ */ Be({
|
15
14
|
__name: "Table",
|
16
15
|
props: {
|
17
16
|
searchData: {},
|
@@ -24,24 +23,24 @@ const Ze = {
|
|
24
23
|
},
|
25
24
|
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
26
25
|
setup(ne, { expose: re, emit: se }) {
|
27
|
-
let
|
28
|
-
|
26
|
+
let w = se, ie = ne, { module: ue, schema: T, table: r, layout: u, next: p, set: C, searchData: K } = He(ie), D = i([]), V = i(), E = i(), L = i(), P = i(), q = i(), I = i(), m = i(!1), g = i(!1), O = i(), F = i("120px"), J = i({}), y = i({ layout: "prev, pager, next", count: 5, sizes: [20, 50, 200, 500, 2e3] }), W = i(), n = i({ title: null, env: null, page: null, url: null, row: null, visible: !1, appendToBody: !1 }), de = new Ie(), pe = (t) => {
|
27
|
+
R("insert", null, t);
|
29
28
|
}, me = (t, a) => {
|
30
|
-
|
29
|
+
R("detail", t, a);
|
31
30
|
}, ge = (t, a) => {
|
32
|
-
|
31
|
+
R("update", t, a);
|
33
32
|
}, ce = (t, a) => {
|
34
|
-
|
33
|
+
R("copy", t, a);
|
35
34
|
}, ve = (t, a) => {
|
36
|
-
|
37
|
-
},
|
35
|
+
R("delete", t, a);
|
36
|
+
}, G = async (t) => {
|
38
37
|
let a = t.map((o) => o[r.value.key.name]);
|
39
|
-
|
40
|
-
|
38
|
+
await Oe.post(p.value.delete.route, a).then((o) => {
|
39
|
+
Fe.success(o.message), N();
|
41
40
|
});
|
42
|
-
},
|
41
|
+
}, R = (t, a, o) => {
|
43
42
|
let s = fe(t, a);
|
44
|
-
o.ctrlKey ? (n.value.row = null,
|
43
|
+
o.ctrlKey ? (n.value.row = null, w("navigate", s)) : (n.value.appendToBody = o.altKey, n.value.page = t, n.value.url = s, n.value.row = a, n.value.visible = !0);
|
45
44
|
}, fe = (t, a = null) => {
|
46
45
|
let o = `${p.value[t].route}`;
|
47
46
|
if (a != null) {
|
@@ -50,190 +49,184 @@ const Ze = {
|
|
50
49
|
}
|
51
50
|
return o;
|
52
51
|
}, he = () => {
|
53
|
-
n.value.visible = !1,
|
52
|
+
n.value.visible = !1, w("close");
|
54
53
|
}, ye = (t) => {
|
55
|
-
n.value.title =
|
56
|
-
},
|
54
|
+
n.value.title = Je(t.module.type, t.module.name), n.value.env = t.module.env;
|
55
|
+
}, N = () => {
|
57
56
|
n.value.visible = !1;
|
58
|
-
let t =
|
59
|
-
|
57
|
+
let t = D.value;
|
58
|
+
w("succeed", async (a) => {
|
60
59
|
let o = a.data.set[r.value.name];
|
61
60
|
if (!o.length)
|
62
61
|
return;
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
62
|
+
await j();
|
63
|
+
let s = r.value.key, c = n.value.row;
|
64
|
+
if (c != null) {
|
65
|
+
let d = o.find((_) => _[s.name] == c[s.name]);
|
66
|
+
d && E.value.setCurrentRow(d);
|
67
|
+
}
|
68
|
+
if (t.length > 0)
|
69
|
+
for (let d of t) {
|
70
|
+
let _ = o.find((l) => l[s.name] == d[s.name]);
|
71
|
+
_ != null && E.value.toggleRowSelection(_, !0);
|
69
72
|
}
|
70
|
-
if (t.length > 0)
|
71
|
-
for (let d of t) {
|
72
|
-
let k = o.find((l) => l[s.name] == d[s.name]);
|
73
|
-
N.value.toggleRowSelection(k, !0);
|
74
|
-
}
|
75
|
-
});
|
76
73
|
});
|
77
74
|
}, Q = (t) => {
|
78
|
-
|
79
|
-
}, be = (t) => {
|
80
|
-
b("page-change", t);
|
75
|
+
w("search", t);
|
81
76
|
}, we = (t) => {
|
82
|
-
|
77
|
+
w("page-change", t);
|
78
|
+
}, be = (t) => {
|
79
|
+
w("size-change", t);
|
83
80
|
}, _e = (t, a) => {
|
84
81
|
let o = { [a.name]: { [t.prop]: t.order != "descending" ? "asc" : "desc" } };
|
85
|
-
|
82
|
+
w("sort", o);
|
86
83
|
}, xe = (t, a, o, s, c) => {
|
87
84
|
}, Ce = (t) => {
|
88
|
-
|
89
|
-
},
|
90
|
-
|
91
|
-
},
|
92
|
-
let s = t.target.children[0], c =
|
85
|
+
F.value = t;
|
86
|
+
}, Re = (t, a) => {
|
87
|
+
D.value = t;
|
88
|
+
}, ke = (t, a, o) => {
|
89
|
+
let s = t.target.children[0], c = b.dom.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
|
93
90
|
o._headerTooltip = c > d;
|
94
91
|
}, Se = async (t, a, o, s) => {
|
95
92
|
await oe.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
|
96
93
|
}, X = () => {
|
97
94
|
var s, c, d;
|
98
|
-
let t =
|
99
|
-
|
95
|
+
let t = b.dom.getHeight(V.value), a = b.dom.getHeight([(s = L.value) == null ? void 0 : s.$el, (c = P.value) == null ? void 0 : c.$el, (d = q.value) == null ? void 0 : d.$el]), o = t - a;
|
96
|
+
O.value = `${o}px`;
|
100
97
|
}, Y = () => {
|
101
|
-
let t =
|
98
|
+
let t = W.value;
|
102
99
|
t <= 690 ? y.value.count = 5 : y.value.count = 7, t <= 300 ? y.value.layout = "pager" : t <= 620 ? y.value.layout = "prev, pager, next" : y.value.layout = "sizes, total, prev, pager, next, jumper";
|
103
100
|
}, ze = (t, a) => {
|
104
|
-
|
105
|
-
return !1;
|
106
|
-
W.value.keyboard(t, a);
|
101
|
+
Ge.triggerKeyboardHandler(I.value, t, a);
|
107
102
|
}, $e = (t) => {
|
108
|
-
L.value.resize(t),
|
103
|
+
L.value.resize(t), W.value = b.dom.getWidth(V.value), Y(), j(() => {
|
109
104
|
X();
|
110
105
|
});
|
111
106
|
};
|
112
|
-
|
113
|
-
await de.
|
114
|
-
X();
|
115
|
-
});
|
107
|
+
Ue(async () => {
|
108
|
+
await de.openAsync("sys", "page", J.value), W.value = b.dom.getWidth(V.value), Y(), await j(), X();
|
116
109
|
});
|
117
110
|
let Ve = ae(() => {
|
118
|
-
let a = Object.keys(
|
111
|
+
let a = Object.keys(u.value.orderBys)[0], o = u.value.orderBys[a];
|
119
112
|
return { prop: a, order: o ? "ascending" : "descending" };
|
120
113
|
}), We = ae(() => {
|
121
114
|
let t = `/${r.value.name}/paging-row`;
|
122
|
-
return
|
115
|
+
return Ne.getComponent(t, "partial", "paging-row");
|
123
116
|
});
|
124
|
-
return re({
|
125
|
-
const o =
|
126
|
-
return f(),
|
117
|
+
return re({ keyboardHandler: ze, resize: $e }), (t, a) => {
|
118
|
+
const o = k("el-table-column"), s = k("el-tooltip"), c = k("el-table"), d = k("el-pagination"), _ = k("el-drawer");
|
119
|
+
return f(), H("div", {
|
127
120
|
ref_key: "pagingRef",
|
128
121
|
ref: V,
|
129
122
|
class: "paging-table"
|
130
123
|
}, [
|
131
|
-
v(
|
124
|
+
v(Qe, {
|
132
125
|
ref_key: "searchRef",
|
133
126
|
ref: L,
|
134
|
-
schema: e(
|
127
|
+
schema: e(T),
|
135
128
|
table: e(r),
|
136
|
-
layout: e(
|
137
|
-
"search-data": e(
|
129
|
+
layout: e(u),
|
130
|
+
"search-data": e(K),
|
138
131
|
onSubmit: e(Q)
|
139
132
|
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
140
|
-
v(
|
133
|
+
v(Ze, {
|
141
134
|
ref_key: "headerRef",
|
142
|
-
ref:
|
143
|
-
schema: e(
|
135
|
+
ref: P,
|
136
|
+
schema: e(T),
|
144
137
|
table: e(r),
|
145
|
-
layout: e(
|
146
|
-
set: e(
|
138
|
+
layout: e(u),
|
139
|
+
set: e(C),
|
147
140
|
next: e(p),
|
148
|
-
selection: e(
|
149
|
-
"search-data": e(
|
141
|
+
selection: e(D),
|
142
|
+
"search-data": e(K),
|
150
143
|
onAdd: e(pe),
|
151
|
-
onRemove: e(
|
152
|
-
onShowImport: a[0] || (a[0] = (l) =>
|
153
|
-
onShowExport: a[1] || (a[1] = (l) =>
|
144
|
+
onRemove: e(G),
|
145
|
+
onShowImport: a[0] || (a[0] = (l) => x(m) ? m.value = !0 : m = !0),
|
146
|
+
onShowExport: a[1] || (a[1] = (l) => x(g) ? g.value = !0 : g = !0),
|
154
147
|
onSearch: e(Q)
|
155
148
|
}, null, 8, ["schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
|
156
149
|
v(c, {
|
157
150
|
ref_key: "tableRef",
|
158
|
-
ref:
|
159
|
-
class:
|
151
|
+
ref: E,
|
152
|
+
class: Te([{ "hide-nav": e(Me).hideNav }, "table-default table-paging"]),
|
160
153
|
size: "small",
|
161
154
|
border: "",
|
162
155
|
"highlight-current-row": "",
|
163
|
-
"max-height": e(
|
164
|
-
data: e(
|
156
|
+
"max-height": e(O),
|
157
|
+
data: e(C)[e(r).name],
|
165
158
|
"default-sort": e(Ve),
|
166
|
-
onSelectionChange: a[2] || (a[2] = (l) => e(
|
159
|
+
onSelectionChange: a[2] || (a[2] = (l) => e(Re)(l, e(r))),
|
167
160
|
onSortChange: a[3] || (a[3] = (l) => e(_e)(l, e(r))),
|
168
161
|
onHeaderDragend: e(Se)
|
169
162
|
}, {
|
170
163
|
empty: h(() => [
|
171
|
-
le(S(e(
|
164
|
+
le(S(e(A)("common.no_data")), 1)
|
172
165
|
]),
|
173
166
|
default: h(() => [
|
174
167
|
v(o, {
|
175
168
|
type: "selection",
|
176
169
|
width: "30"
|
177
170
|
}),
|
178
|
-
(f(!0),
|
171
|
+
(f(!0), H(De, null, Ee(e(r).show, (l, nt) => {
|
179
172
|
var Z, ee, te;
|
180
173
|
return f(), z(o, {
|
181
174
|
sortable: e(r) ? "custom" : !1,
|
182
175
|
prop: l.name,
|
183
176
|
"sort-orders": ["descending", "ascending"],
|
184
|
-
fixed: e(
|
185
|
-
"min-width": ((te = (ee = (Z = e(
|
177
|
+
fixed: e(u).fixed.indexOf(l.name) > -1,
|
178
|
+
"min-width": ((te = (ee = (Z = e(J)) == null ? void 0 : Z[e(p).paging.route]) == null ? void 0 : ee[e(r).name]) == null ? void 0 : te[l.name]) ?? l.control.width,
|
186
179
|
label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
|
187
180
|
key: `${e(r).name}.${l.name}`
|
188
181
|
}, {
|
189
|
-
header: h((
|
190
|
-
l.control.required && l.control.editable ? (f(),
|
182
|
+
header: h((B) => [
|
183
|
+
l.control.required && l.control.editable ? (f(), H("i", et)) : $("", !0),
|
191
184
|
v(s, {
|
192
185
|
placement: "top",
|
193
186
|
content: l.label,
|
194
187
|
disabled: !l._headerTooltip
|
195
188
|
}, {
|
196
189
|
default: h(() => [
|
197
|
-
|
198
|
-
onMouseenter: (
|
190
|
+
U("span", {
|
191
|
+
onMouseenter: (M) => e(ke)(M, B.column, l)
|
199
192
|
}, [
|
200
|
-
|
201
|
-
], 40,
|
193
|
+
U("span", null, S(e(je)(e(r).name, l.name)), 1)
|
194
|
+
], 40, tt)
|
202
195
|
]),
|
203
196
|
_: 2
|
204
197
|
}, 1032, ["content", "disabled"])
|
205
198
|
]),
|
206
|
-
default: h((
|
207
|
-
v(
|
208
|
-
schema: e(
|
199
|
+
default: h((B) => [
|
200
|
+
v(Ae, {
|
201
|
+
schema: e(T),
|
209
202
|
table: e(r),
|
210
203
|
field: l,
|
211
|
-
set: e(
|
212
|
-
row:
|
213
|
-
config: e(
|
214
|
-
onChange: (
|
204
|
+
set: e(C),
|
205
|
+
row: B.row,
|
206
|
+
config: e(Ke).getConfig(l, e(ue).type, e(u).type),
|
207
|
+
onChange: (M) => e(xe)(M, e(r), l, e(C), B.row)
|
215
208
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
216
209
|
]),
|
217
210
|
_: 2
|
218
211
|
}, 1032, ["sortable", "prop", "fixed", "min-width", "label"]);
|
219
212
|
}), 128)),
|
220
213
|
v(o, {
|
221
|
-
label: e(
|
214
|
+
label: e(A)("common.operation"),
|
222
215
|
fixed: "right",
|
223
216
|
"show-overflow-tooltip": "",
|
224
|
-
"min-width": e(
|
217
|
+
"min-width": e(F)
|
225
218
|
}, {
|
226
219
|
default: h((l) => [
|
227
|
-
(f(), z(
|
220
|
+
(f(), z(Le(e(We)), {
|
228
221
|
table: e(r),
|
229
222
|
next: e(p),
|
230
|
-
set: e(
|
223
|
+
set: e(C),
|
231
224
|
row: l.row,
|
232
225
|
onPreview: e(me),
|
233
226
|
onEdit: e(ge),
|
234
227
|
onCopy: e(ce),
|
235
228
|
onBeforeRemove: e(ve),
|
236
|
-
onRemove: e(
|
229
|
+
onRemove: e(G),
|
237
230
|
onChangeWidth: e(Ce)
|
238
231
|
}, null, 40, ["table", "next", "set", "row", "onPreview", "onEdit", "onCopy", "onBeforeRemove", "onRemove", "onChangeWidth"]))
|
239
232
|
]),
|
@@ -242,68 +235,68 @@ const Ze = {
|
|
242
235
|
]),
|
243
236
|
_: 1
|
244
237
|
}, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
|
245
|
-
v(e(
|
238
|
+
v(e(Pe), {
|
246
239
|
ref_key: "footerRef",
|
247
|
-
ref:
|
240
|
+
ref: q,
|
248
241
|
class: "list-toolbar"
|
249
242
|
}, {
|
250
243
|
default: h(() => [
|
251
244
|
v(d, {
|
252
245
|
background: "",
|
253
246
|
layout: e(y).layout,
|
254
|
-
"current-page": e(
|
247
|
+
"current-page": e(u).page,
|
255
248
|
"pager-count": e(y).count,
|
256
|
-
total: e(
|
249
|
+
total: e(u).count,
|
257
250
|
"page-sizes": e(y).sizes,
|
258
|
-
onCurrentChange: e(
|
259
|
-
onSizeChange: e(
|
260
|
-
"page-size": e(
|
261
|
-
"onUpdate:pageSize": a[4] || (a[4] = (l) => e(
|
251
|
+
onCurrentChange: e(we),
|
252
|
+
onSizeChange: e(be),
|
253
|
+
"page-size": e(u).size,
|
254
|
+
"onUpdate:pageSize": a[4] || (a[4] = (l) => e(u).size = l)
|
262
255
|
}, null, 8, ["layout", "current-page", "pager-count", "total", "page-sizes", "onCurrentChange", "onSizeChange", "page-size"])
|
263
256
|
]),
|
264
257
|
_: 1
|
265
258
|
}, 512),
|
266
|
-
e(p).import ? (f(), z(
|
259
|
+
e(p).import ? (f(), z(Xe, {
|
267
260
|
key: 0,
|
268
261
|
next: e(p),
|
269
|
-
onClose: a[5] || (a[5] = (l) =>
|
270
|
-
onSucceed: e(
|
262
|
+
onClose: a[5] || (a[5] = (l) => x(m) ? m.value = !1 : m = !1),
|
263
|
+
onSucceed: e(N),
|
271
264
|
modelValue: e(m),
|
272
|
-
"onUpdate:modelValue": a[6] || (a[6] = (l) =>
|
265
|
+
"onUpdate:modelValue": a[6] || (a[6] = (l) => x(m) ? m.value = l : m = l)
|
273
266
|
}, null, 8, ["next", "onSucceed", "modelValue"])) : $("", !0),
|
274
|
-
e(p).export ? (f(), z(
|
267
|
+
e(p).export ? (f(), z(Ye, {
|
275
268
|
key: 1,
|
276
269
|
route: e(p).export.route,
|
277
|
-
"page-count": e(
|
278
|
-
onClose: a[7] || (a[7] = (l) =>
|
270
|
+
"page-count": e(b).math.pageCount(e(u).count, e(u).size),
|
271
|
+
onClose: a[7] || (a[7] = (l) => x(g) ? g.value = !1 : g = !1),
|
279
272
|
modelValue: e(g),
|
280
|
-
"onUpdate:modelValue": a[8] || (a[8] = (l) =>
|
273
|
+
"onUpdate:modelValue": a[8] || (a[8] = (l) => x(g) ? g.value = l : g = l)
|
281
274
|
}, null, 8, ["route", "page-count", "modelValue"])) : $("", !0),
|
282
|
-
e(n).page ? (f(), z(
|
275
|
+
e(n).page ? (f(), z(_, {
|
283
276
|
key: 2,
|
284
277
|
"destroy-on-close": "",
|
285
278
|
"append-to-body": e(n).appendToBody,
|
286
|
-
size: e(oe).getDrawerWidth(e(
|
279
|
+
size: e(oe).getDrawerWidth(e(W)),
|
287
280
|
modelValue: e(n).visible,
|
288
281
|
"onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
|
289
282
|
}, {
|
290
283
|
header: h(() => [
|
291
|
-
|
284
|
+
U("div", at, [
|
292
285
|
le(S(e(n).title) + " ", 1),
|
293
|
-
e(n).env ? (f(),
|
294
|
-
|
286
|
+
e(n).env ? (f(), H("span", lt, "[" + S(e(n).env) + "]", 1)) : $("", !0),
|
287
|
+
U("a", {
|
295
288
|
class: "drawer-copy",
|
296
|
-
href: e(
|
297
|
-
}, S(e(
|
289
|
+
href: e(b).url.getToUrl(e(n).url)
|
290
|
+
}, S(e(A)("common.link")), 9, ot)
|
298
291
|
])
|
299
292
|
]),
|
300
293
|
default: h(() => [
|
301
|
-
v(e(
|
294
|
+
v(e(qe), {
|
302
295
|
ref_key: "pageRef",
|
303
|
-
ref:
|
296
|
+
ref: I,
|
304
297
|
url: e(n).url,
|
305
298
|
onLoaded: e(ye),
|
306
|
-
onSucceed: e(
|
299
|
+
onSucceed: e(N),
|
307
300
|
onClose: e(he)
|
308
301
|
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
309
302
|
]),
|