halo-pc 1.0.36 → 1.0.37
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-CSL7LnKj.js → Article-DSuvpyeC.js} +58 -60
- package/dist/{ArticleFooter-_CUySAZu.js → ArticleFooter-Cx3OC7sV.js} +1 -1
- package/dist/{Autocomplete-CIRk6M3c.js → Autocomplete-1jt0wRMS.js} +1 -1
- package/dist/{Autocomplete-Buw1Hs35.js → Autocomplete-C7CYy8w6.js} +3 -3
- package/dist/{Autocomplete-BTBqlR6B.js → Autocomplete-DASTUS8d.js} +2 -2
- package/dist/{CSharp-CMmXPS2i.js → CSharp-CebNTVPd.js} +1 -1
- package/dist/{Calender-P8tmSbW2.js → Calender-BBILvX8n.js} +4 -4
- package/dist/{Callback-SEWVfpG_.js → Callback-CLA9Ab9q.js} +1 -1
- package/dist/{Cascader-DWNTommi.js → Cascader-DY2zOwsa.js} +1 -1
- package/dist/{Cascader-CeQ0jUxU.js → Cascader-DyQ312mS.js} +5 -5
- package/dist/{Checkbox-Fddc4Zgy.js → Checkbox-CHmMU0Cs.js} +1 -1
- package/dist/{Checkbox--pNX7Slb.js → Checkbox-CyC_mo50.js} +1 -1
- package/dist/{Code-CXMdFELH.js → Code-B4Z7WuUc.js} +1 -1
- package/dist/{Code-THGJ7IzI.js → Code-BOTf1uZ5.js} +1 -1
- package/dist/{Code-C6A3DOQp.js → Code-CIFJJJo3.js} +1 -1
- package/dist/Code-Da4PjT9q.js +4 -0
- package/dist/{Code.vue_vue_type_style_index_0_lang-BXOFkrGK.js → Code.vue_vue_type_style_index_0_lang-ChjwMs7I.js} +3 -3
- package/dist/{Column-CucHIBYv.js → Column-9A6-8_Y7.js} +1 -1
- package/dist/{Comment-T5XWLthu.js → Comment-D78rr4-n.js} +27 -27
- package/dist/{Compare-jjtb6UdZ.js → Compare-Cb9vYPl5.js} +9 -9
- package/dist/{Compare-KV2Q7Tb7.js → Compare-DLiL32cA.js} +6 -6
- package/dist/{Copy-Ck1HeTdy.js → Copy-CH2_hawJ.js} +1 -1
- package/dist/Custom-D9qN9bwa.js +59 -0
- package/dist/{DataExport-BY1fIwSd.js → DataExport-D8cqXPrh.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Bv4Pc10r.js → DataExport.vue_vue_type_script_setup_true_lang-DmB5AeGR.js} +1 -1
- package/dist/{DataImport--xUxoWAq.js → DataImport-3KwXYYGw.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-BhPGLJCz.js → DataImport.vue_vue_type_script_setup_true_lang-C9xs1_ec.js} +1 -1
- package/dist/{Date-C3H04U5q.js → Date-OZxdofhB.js} +1 -1
- package/dist/{Date-DRk7BsnD.js → Date-yHlD-Lw2.js} +1 -1
- package/dist/{DateRange-CICZ9gVp.js → DateRange-BLSxDHKv.js} +1 -1
- package/dist/{DateTime-CjTCtAm4.js → DateTime-8tbpOKOK.js} +1 -1
- package/dist/{DateTime-DXHkaHtE.js → DateTime-B7GzMj8Q.js} +1 -1
- package/dist/{DateTimeRange-CuEYJBUE.js → DateTimeRange-COFWmQoO.js} +1 -1
- package/dist/{Daterange-cmpjJVxl.js → Daterange-Cy8l4CfJ.js} +1 -1
- package/dist/{Decimal-BzR8o8bv.js → Decimal-Dw6EtZOm.js} +1 -1
- package/dist/{Delete-B2VzOnk8.js → Delete-DjXSCUKp.js} +1 -1
- package/dist/{Detail-ayakHymC.js → Detail-DU8mI4u2.js} +1 -1
- package/dist/{Dictionary-BiSpx7nU.js → Dictionary-CAAvUqf-.js} +1 -1
- package/dist/{Email-BbipkOFP.js → Email-AHWpz5Ck.js} +3 -3
- package/dist/{File-B131KRit.js → File-DUxwHR5G.js} +16 -16
- package/dist/Image-BJ5q87B6.js +9 -0
- package/dist/Index-CF44rsZW.js +4 -0
- package/dist/Index-CnFjsuQV.js +4 -0
- package/dist/{Index-CymZGuJo.js → Index-D223MCYD.js} +17 -17
- package/dist/Index-DCIDLocj.js +4 -0
- package/dist/{Index-Bps1k5-m.js → Index-Jt1omrn-.js} +1 -1
- package/dist/{Index-B20QLMmF.js → Index-KTv20XtO.js} +1 -1
- package/dist/{Index-BnudlpyF.js → Index-Z8HW5XAm.js} +2 -2
- package/dist/Index-qIfIbiFH.js +4 -0
- package/dist/{Index.vue_vue_type_script_setup_true_lang-IX-mfiEH.js → Index.vue_vue_type_script_setup_true_lang-BznVrY52.js} +15 -17
- package/dist/{Index.vue_vue_type_script_setup_true_lang-C-7l_RSt.js → Index.vue_vue_type_script_setup_true_lang-_8v_4G-B.js} +4 -4
- package/dist/{Install-BnCA1XK8.js → Install-C-xxCx9D.js} +8 -8
- package/dist/{Int-BlwraOyw.js → Int-1QpMyTPB.js} +1 -1
- package/dist/{Int-BSA4Srky.js → Int-BsHpY5Gt.js} +1 -1
- package/dist/List-DW7FpMfd.js +72 -0
- package/dist/{Maintaince-CwL7tseR.js → Maintaince-CjUfJUr7.js} +3 -3
- package/dist/{Markdown-Can2d8HC.js → Markdown-BZhSwheI.js} +1 -1
- package/dist/{Month-Dyt_wc8r.js → Month-BKXtBi6i.js} +1 -1
- package/dist/{Month-ClTpaaAr.js → Month-IJnA7Kgl.js} +3 -3
- package/dist/{Month-CRmTCjQr.js → Month-m0FiTmBK.js} +1 -1
- package/dist/{Normal-DBRpkCNs.js → Normal-CettIwbU.js} +72 -72
- package/dist/{Paging-ByJhfHCh.js → Paging-J9vCBFzM.js} +33 -35
- package/dist/{PagingHeader-BQ-8s0NC.js → PagingHeader-irWrEKGQ.js} +1 -1
- package/dist/{PagingRow-CqAYVjxH.js → PagingRow-Bft1brFD.js} +1 -1
- package/dist/{Racebar-BhRmArVA.js → Racebar-D3VFwM1V.js} +7 -7
- package/dist/{Radio-DCVAYEgh.js → Radio-C-IwNXnz.js} +1 -1
- package/dist/{Register-Dr5HF0B6.js → Register-XTfqbbgr.js} +15 -15
- package/dist/{RichText-Dj93TxtW.js → RichText-D3aLlQph.js} +8 -8
- package/dist/{SearchFooter-D02JAZez.js → SearchFooter-hC7sQBez.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-dBZJFNo0.js → SearchFooter.vue_vue_type_style_index_0_lang-DgM6JntR.js} +1 -1
- package/dist/{SearchForm-DhrX5Akr.js → SearchForm-BTux7Adt.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-Dx26ti3G.js → SearchForm.vue_vue_type_style_index_0_lang-Ddpe-p19.js} +27 -29
- package/dist/{Select-ChwyjjbN.js → Select-ClAK8aNJ.js} +8 -8
- package/dist/{Select-CaGb3SAi.js → Select-DlM_C-60.js} +1 -1
- package/dist/{Select-DK5-x-rC.js → Select-K1dU20i2.js} +11 -11
- package/dist/{Single-DIyLnILS.js → Single-DYDwq041.js} +66 -68
- package/dist/{Statistic-ArzDDFwp.js → Statistic-CidgrAcU.js} +21 -21
- package/dist/{Stock-DapT2McI.js → Stock-BFszdaCn.js} +1 -1
- package/dist/{Stock-CsVIZtQ4.js → Stock-BiuhsKPB.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-JABRw23-.js → Stock.vue_vue_type_style_index_0_lang-O1UAbsov.js} +8 -8
- package/dist/{Switch-B0VJc80B.js → Switch-TI8J8-E2.js} +1 -1
- package/dist/{Table-C5kHBVpV.js → Table-DJOSPNrn.js} +79 -81
- package/dist/{Table-Cwe8QuVi.js → Table-DYELgaTY.js} +56 -56
- package/dist/Text-DAliAA9U.js +4 -0
- package/dist/{Text-CK1PT6x8.js → Text-DEv-wMFU.js} +3 -3
- package/dist/Text-Dy6uYSm3.js +49 -0
- package/dist/{Text.vue_vue_type_style_index_0_lang-epPB32IU.js → Text.vue_vue_type_style_index_0_lang-Cm-1AGNB.js} +1 -1
- package/dist/{TextLink-Bn_Z4Ajl.js → TextLink-CKPExcuj.js} +1 -1
- package/dist/{Textarea-C6Pi4p9b.js → Textarea-CEv7HYqY.js} +1 -1
- package/dist/{Time-DWG3pwjK.js → Time-BeTq6Tq3.js} +1 -1
- package/dist/{Timeline-Bqq3rFbX.js → Timeline-BI2o8Kug.js} +1 -1
- package/dist/{Tree-CU2UHknq.js → Tree-BPeNz1X4.js} +58 -60
- package/dist/{Tree-DRUGEHR3.js → Tree-DlIrY3e2.js} +33 -33
- package/dist/{TreeNode-DD-YfbgL.js → TreeNode-CzM6Npi5.js} +1 -1
- package/dist/{Update-BdbT4B2n.js → Update-Bv6Lp8LZ.js} +1 -1
- package/dist/{UpdateChild-CVgQs6_A.js → UpdateChild-mrF1t5G8.js} +1 -1
- package/dist/{Upload-BCGGzOTn.js → Upload-B0dBN1oH.js} +9 -9
- package/dist/{Upload-CKHSikDI.js → Upload-BCdzJlzR.js} +13 -13
- package/dist/{Year-CnA4ZUPj.js → Year-2hJSZcj_.js} +7 -7
- package/dist/{Year-nGY1S5_T.js → Year-DLITl-_8.js} +1 -1
- package/dist/{main-BLb5AIWJ.js → main-SNlEeN01.js} +3045 -2957
- package/dist/main.js +136 -133
- package/dist/style.css +1 -1
- package/esm/coms/business/Form.vue.d.ts +2 -1
- package/esm/coms/drivers/@types/DriverEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/DriverKindEmit.d.ts +18 -0
- package/esm/coms/drivers/@types/KindFormProps.d.ts +3 -6
- package/esm/coms/drivers/@types/index.d.ts +3 -1
- package/esm/coms/drivers/Index.vue.d.ts +26 -29
- package/esm/coms/drivers/Kind.vue.d.ts +8 -8
- 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 +2 -1
- package/esm/coms/pages/@types/index.d.ts +1 -2
- package/esm/coms/pages/Custom.vue.d.ts +2 -1
- package/esm/coms/pages/List.vue.d.ts +1 -1
- package/esm/coms/pages/Paging.vue.d.ts +2 -1
- package/esm/coms/pages/Single.vue.d.ts +2 -1
- package/esm/coms/pagings/Article.vue.d.ts +2 -1
- package/esm/coms/pagings/Index.vue.d.ts +2 -1
- package/esm/coms/pagings/Table.vue.d.ts +2 -1
- package/esm/coms/searches/Text.vue.d.ts +5 -7
- package/esm/svcs/ModuleSvc.d.ts +40 -0
- package/esm/svcs/index.d.ts +3 -3
- package/package.json +9 -9
- package/dist/Code-CQSTwwc4.js +0 -4
- package/dist/Custom-CkyWaXAB.js +0 -61
- package/dist/Image-Cb1PzLpD.js +0 -9
- package/dist/Index-2vdi0Nq0.js +0 -4
- package/dist/Index-BOKSKn0N.js +0 -4
- package/dist/Index-Cz0Ti6rP.js +0 -4
- package/dist/Index-Dhg6Vts6.js +0 -4
- package/dist/List-BnT_8B_q.js +0 -74
- package/dist/Text-D2P-_cQT.js +0 -54
- package/dist/Text-oKVRjuSR.js +0 -4
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as Be, toRefs as
|
2
|
-
import { U as b,
|
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 { _ as
|
5
|
-
import { _ as
|
6
|
-
import { _ as
|
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";
|
7
7
|
import "vue-router";
|
8
8
|
import "./assets/intro.js-Cg1adLK7.js";
|
9
|
-
import { _ as
|
10
|
-
const
|
9
|
+
import { _ as Ze } from "./SearchFooter.vue_vue_type_style_index_0_lang-DgM6JntR.js";
|
10
|
+
const et = {
|
11
11
|
key: 0,
|
12
12
|
class: "required"
|
13
|
-
},
|
13
|
+
}, tt = ["onMouseenter"], at = { class: "el-drawer__title" }, lt = { key: 0 }, ot = ["href"], vt = /* @__PURE__ */ Be({
|
14
14
|
__name: "Table",
|
15
15
|
props: {
|
16
16
|
searchData: {},
|
@@ -23,7 +23,7 @@ const Ze = {
|
|
23
23
|
},
|
24
24
|
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
25
25
|
setup(ne, { expose: re, emit: se }) {
|
26
|
-
let w = se,
|
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
27
|
R("insert", null, t);
|
28
28
|
}, me = (t, a) => {
|
29
29
|
R("detail", t, a);
|
@@ -33,10 +33,10 @@ const Ze = {
|
|
33
33
|
R("copy", t, a);
|
34
34
|
}, ve = (t, a) => {
|
35
35
|
R("delete", t, a);
|
36
|
-
},
|
36
|
+
}, G = async (t) => {
|
37
37
|
let a = t.map((o) => o[r.value.key.name]);
|
38
38
|
await Oe.post(p.value.delete.route, a).then((o) => {
|
39
|
-
Fe.success(o.message),
|
39
|
+
Fe.success(o.message), N();
|
40
40
|
});
|
41
41
|
}, R = (t, a, o) => {
|
42
42
|
let s = fe(t, a);
|
@@ -51,24 +51,24 @@ const Ze = {
|
|
51
51
|
}, he = () => {
|
52
52
|
n.value.visible = !1, w("close");
|
53
53
|
}, ye = (t) => {
|
54
|
-
n.value.title =
|
55
|
-
},
|
54
|
+
n.value.title = Je(t.module.type, t.module.name), n.value.env = t.module.env;
|
55
|
+
}, N = () => {
|
56
56
|
n.value.visible = !1;
|
57
|
-
let t =
|
57
|
+
let t = D.value;
|
58
58
|
w("succeed", async (a) => {
|
59
59
|
let o = a.data.set[r.value.name];
|
60
60
|
if (!o.length)
|
61
61
|
return;
|
62
|
-
await
|
62
|
+
await j();
|
63
63
|
let s = r.value.key, c = n.value.row;
|
64
64
|
if (c != null) {
|
65
65
|
let d = o.find((_) => _[s.name] == c[s.name]);
|
66
|
-
d &&
|
66
|
+
d && E.value.setCurrentRow(d);
|
67
67
|
}
|
68
68
|
if (t.length > 0)
|
69
69
|
for (let d of t) {
|
70
70
|
let _ = o.find((l) => l[s.name] == d[s.name]);
|
71
|
-
_ != null &&
|
71
|
+
_ != null && E.value.toggleRowSelection(_, !0);
|
72
72
|
}
|
73
73
|
});
|
74
74
|
}, Q = (t) => {
|
@@ -84,7 +84,7 @@ const Ze = {
|
|
84
84
|
}, Ce = (t) => {
|
85
85
|
F.value = t;
|
86
86
|
}, Re = (t, a) => {
|
87
|
-
|
87
|
+
D.value = t;
|
88
88
|
}, ke = (t, a, o) => {
|
89
89
|
let s = t.target.children[0], c = b.dom.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
|
90
90
|
o._headerTooltip = c > d;
|
@@ -92,66 +92,64 @@ const Ze = {
|
|
92
92
|
await oe.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
|
93
93
|
}, X = () => {
|
94
94
|
var s, c, d;
|
95
|
-
let t = b.dom.getHeight(V.value), a = b.dom.getHeight([(s = L.value) == null ? void 0 : s.$el, (c =
|
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
96
|
O.value = `${o}px`;
|
97
97
|
}, Y = () => {
|
98
|
-
let t =
|
98
|
+
let t = W.value;
|
99
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";
|
100
100
|
}, ze = (t, a) => {
|
101
|
-
|
102
|
-
return !1;
|
103
|
-
W.value.keyboard(t, a);
|
101
|
+
Ge.triggerKeyboardHandler(I.value, t, a);
|
104
102
|
}, $e = (t) => {
|
105
|
-
L.value.resize(t),
|
103
|
+
L.value.resize(t), W.value = b.dom.getWidth(V.value), Y(), j(() => {
|
106
104
|
X();
|
107
105
|
});
|
108
106
|
};
|
109
|
-
|
110
|
-
await de.openAsync("sys", "page",
|
107
|
+
Ue(async () => {
|
108
|
+
await de.openAsync("sys", "page", J.value), W.value = b.dom.getWidth(V.value), Y(), await j(), X();
|
111
109
|
});
|
112
110
|
let Ve = ae(() => {
|
113
|
-
let a = Object.keys(
|
111
|
+
let a = Object.keys(u.value.orderBys)[0], o = u.value.orderBys[a];
|
114
112
|
return { prop: a, order: o ? "ascending" : "descending" };
|
115
113
|
}), We = ae(() => {
|
116
114
|
let t = `/${r.value.name}/paging-row`;
|
117
|
-
return
|
115
|
+
return Ne.getComponent(t, "partial", "paging-row");
|
118
116
|
});
|
119
|
-
return re({
|
117
|
+
return re({ keyboardHandler: ze, resize: $e }), (t, a) => {
|
120
118
|
const o = k("el-table-column"), s = k("el-tooltip"), c = k("el-table"), d = k("el-pagination"), _ = k("el-drawer");
|
121
|
-
return f(),
|
119
|
+
return f(), H("div", {
|
122
120
|
ref_key: "pagingRef",
|
123
121
|
ref: V,
|
124
122
|
class: "paging-table"
|
125
123
|
}, [
|
126
|
-
v(
|
124
|
+
v(Qe, {
|
127
125
|
ref_key: "searchRef",
|
128
126
|
ref: L,
|
129
|
-
schema: e(
|
127
|
+
schema: e(T),
|
130
128
|
table: e(r),
|
131
|
-
layout: e(
|
132
|
-
"search-data": e(
|
129
|
+
layout: e(u),
|
130
|
+
"search-data": e(K),
|
133
131
|
onSubmit: e(Q)
|
134
132
|
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
135
|
-
v(
|
133
|
+
v(Ze, {
|
136
134
|
ref_key: "headerRef",
|
137
|
-
ref:
|
138
|
-
schema: e(
|
135
|
+
ref: P,
|
136
|
+
schema: e(T),
|
139
137
|
table: e(r),
|
140
|
-
layout: e(
|
138
|
+
layout: e(u),
|
141
139
|
set: e(C),
|
142
140
|
next: e(p),
|
143
|
-
selection: e(
|
144
|
-
"search-data": e(
|
141
|
+
selection: e(D),
|
142
|
+
"search-data": e(K),
|
145
143
|
onAdd: e(pe),
|
146
|
-
onRemove: e(
|
144
|
+
onRemove: e(G),
|
147
145
|
onShowImport: a[0] || (a[0] = (l) => x(m) ? m.value = !0 : m = !0),
|
148
146
|
onShowExport: a[1] || (a[1] = (l) => x(g) ? g.value = !0 : g = !0),
|
149
147
|
onSearch: e(Q)
|
150
148
|
}, null, 8, ["schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
|
151
149
|
v(c, {
|
152
150
|
ref_key: "tableRef",
|
153
|
-
ref:
|
154
|
-
class:
|
151
|
+
ref: E,
|
152
|
+
class: Te([{ "hide-nav": e(Me).hideNav }, "table-default table-paging"]),
|
155
153
|
size: "small",
|
156
154
|
border: "",
|
157
155
|
"highlight-current-row": "",
|
@@ -163,63 +161,63 @@ const Ze = {
|
|
163
161
|
onHeaderDragend: e(Se)
|
164
162
|
}, {
|
165
163
|
empty: h(() => [
|
166
|
-
le(S(e(
|
164
|
+
le(S(e(A)("common.no_data")), 1)
|
167
165
|
]),
|
168
166
|
default: h(() => [
|
169
167
|
v(o, {
|
170
168
|
type: "selection",
|
171
169
|
width: "30"
|
172
170
|
}),
|
173
|
-
(f(!0),
|
171
|
+
(f(!0), H(De, null, Ee(e(r).show, (l, nt) => {
|
174
172
|
var Z, ee, te;
|
175
173
|
return f(), z(o, {
|
176
174
|
sortable: e(r) ? "custom" : !1,
|
177
175
|
prop: l.name,
|
178
176
|
"sort-orders": ["descending", "ascending"],
|
179
|
-
fixed: e(
|
180
|
-
"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,
|
181
179
|
label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
|
182
180
|
key: `${e(r).name}.${l.name}`
|
183
181
|
}, {
|
184
|
-
header: h((
|
185
|
-
l.control.required && l.control.editable ? (f(),
|
182
|
+
header: h((B) => [
|
183
|
+
l.control.required && l.control.editable ? (f(), H("i", et)) : $("", !0),
|
186
184
|
v(s, {
|
187
185
|
placement: "top",
|
188
186
|
content: l.label,
|
189
187
|
disabled: !l._headerTooltip
|
190
188
|
}, {
|
191
189
|
default: h(() => [
|
192
|
-
|
193
|
-
onMouseenter: (
|
190
|
+
U("span", {
|
191
|
+
onMouseenter: (M) => e(ke)(M, B.column, l)
|
194
192
|
}, [
|
195
|
-
|
196
|
-
], 40,
|
193
|
+
U("span", null, S(e(je)(e(r).name, l.name)), 1)
|
194
|
+
], 40, tt)
|
197
195
|
]),
|
198
196
|
_: 2
|
199
197
|
}, 1032, ["content", "disabled"])
|
200
198
|
]),
|
201
|
-
default: h((
|
202
|
-
v(
|
203
|
-
schema: e(
|
199
|
+
default: h((B) => [
|
200
|
+
v(Ae, {
|
201
|
+
schema: e(T),
|
204
202
|
table: e(r),
|
205
203
|
field: l,
|
206
204
|
set: e(C),
|
207
|
-
row:
|
208
|
-
config: e(
|
209
|
-
onChange: (
|
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)
|
210
208
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
211
209
|
]),
|
212
210
|
_: 2
|
213
211
|
}, 1032, ["sortable", "prop", "fixed", "min-width", "label"]);
|
214
212
|
}), 128)),
|
215
213
|
v(o, {
|
216
|
-
label: e(
|
214
|
+
label: e(A)("common.operation"),
|
217
215
|
fixed: "right",
|
218
216
|
"show-overflow-tooltip": "",
|
219
217
|
"min-width": e(F)
|
220
218
|
}, {
|
221
219
|
default: h((l) => [
|
222
|
-
(f(), z(
|
220
|
+
(f(), z(Le(e(We)), {
|
223
221
|
table: e(r),
|
224
222
|
next: e(p),
|
225
223
|
set: e(C),
|
@@ -228,7 +226,7 @@ const Ze = {
|
|
228
226
|
onEdit: e(ge),
|
229
227
|
onCopy: e(ce),
|
230
228
|
onBeforeRemove: e(ve),
|
231
|
-
onRemove: e(
|
229
|
+
onRemove: e(G),
|
232
230
|
onChangeWidth: e(Ce)
|
233
231
|
}, null, 40, ["table", "next", "set", "row", "onPreview", "onEdit", "onCopy", "onBeforeRemove", "onRemove", "onChangeWidth"]))
|
234
232
|
]),
|
@@ -237,39 +235,39 @@ const Ze = {
|
|
237
235
|
]),
|
238
236
|
_: 1
|
239
237
|
}, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
|
240
|
-
v(e(
|
238
|
+
v(e(Pe), {
|
241
239
|
ref_key: "footerRef",
|
242
|
-
ref:
|
240
|
+
ref: q,
|
243
241
|
class: "list-toolbar"
|
244
242
|
}, {
|
245
243
|
default: h(() => [
|
246
244
|
v(d, {
|
247
245
|
background: "",
|
248
246
|
layout: e(y).layout,
|
249
|
-
"current-page": e(
|
247
|
+
"current-page": e(u).page,
|
250
248
|
"pager-count": e(y).count,
|
251
|
-
total: e(
|
249
|
+
total: e(u).count,
|
252
250
|
"page-sizes": e(y).sizes,
|
253
251
|
onCurrentChange: e(we),
|
254
252
|
onSizeChange: e(be),
|
255
|
-
"page-size": e(
|
256
|
-
"onUpdate:pageSize": a[4] || (a[4] = (l) => e(
|
253
|
+
"page-size": e(u).size,
|
254
|
+
"onUpdate:pageSize": a[4] || (a[4] = (l) => e(u).size = l)
|
257
255
|
}, null, 8, ["layout", "current-page", "pager-count", "total", "page-sizes", "onCurrentChange", "onSizeChange", "page-size"])
|
258
256
|
]),
|
259
257
|
_: 1
|
260
258
|
}, 512),
|
261
|
-
e(p).import ? (f(), z(
|
259
|
+
e(p).import ? (f(), z(Xe, {
|
262
260
|
key: 0,
|
263
261
|
next: e(p),
|
264
262
|
onClose: a[5] || (a[5] = (l) => x(m) ? m.value = !1 : m = !1),
|
265
|
-
onSucceed: e(
|
263
|
+
onSucceed: e(N),
|
266
264
|
modelValue: e(m),
|
267
265
|
"onUpdate:modelValue": a[6] || (a[6] = (l) => x(m) ? m.value = l : m = l)
|
268
266
|
}, null, 8, ["next", "onSucceed", "modelValue"])) : $("", !0),
|
269
|
-
e(p).export ? (f(), z(
|
267
|
+
e(p).export ? (f(), z(Ye, {
|
270
268
|
key: 1,
|
271
269
|
route: e(p).export.route,
|
272
|
-
"page-count": e(b).math.pageCount(e(
|
270
|
+
"page-count": e(b).math.pageCount(e(u).count, e(u).size),
|
273
271
|
onClose: a[7] || (a[7] = (l) => x(g) ? g.value = !1 : g = !1),
|
274
272
|
modelValue: e(g),
|
275
273
|
"onUpdate:modelValue": a[8] || (a[8] = (l) => x(g) ? g.value = l : g = l)
|
@@ -278,27 +276,27 @@ const Ze = {
|
|
278
276
|
key: 2,
|
279
277
|
"destroy-on-close": "",
|
280
278
|
"append-to-body": e(n).appendToBody,
|
281
|
-
size: e(oe).getDrawerWidth(e(
|
279
|
+
size: e(oe).getDrawerWidth(e(W)),
|
282
280
|
modelValue: e(n).visible,
|
283
281
|
"onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
|
284
282
|
}, {
|
285
283
|
header: h(() => [
|
286
|
-
|
284
|
+
U("div", at, [
|
287
285
|
le(S(e(n).title) + " ", 1),
|
288
|
-
e(n).env ? (f(),
|
289
|
-
|
286
|
+
e(n).env ? (f(), H("span", lt, "[" + S(e(n).env) + "]", 1)) : $("", !0),
|
287
|
+
U("a", {
|
290
288
|
class: "drawer-copy",
|
291
289
|
href: e(b).url.getToUrl(e(n).url)
|
292
|
-
}, S(e(
|
290
|
+
}, S(e(A)("common.link")), 9, ot)
|
293
291
|
])
|
294
292
|
]),
|
295
293
|
default: h(() => [
|
296
|
-
v(e(
|
294
|
+
v(e(qe), {
|
297
295
|
ref_key: "pageRef",
|
298
|
-
ref:
|
296
|
+
ref: I,
|
299
297
|
url: e(n).url,
|
300
298
|
onLoaded: e(ye),
|
301
|
-
onSucceed: e(
|
299
|
+
onSucceed: e(N),
|
302
300
|
onClose: e(he)
|
303
301
|
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
304
302
|
]),
|
@@ -309,5 +307,5 @@ const Ze = {
|
|
309
307
|
}
|
310
308
|
});
|
311
309
|
export {
|
312
|
-
|
310
|
+
vt as default
|
313
311
|
};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent as be, defineAsyncComponent as Ce, toRefs as
|
2
|
-
import { U as d,
|
1
|
+
import { defineComponent as be, defineAsyncComponent as Ce, toRefs as Re, ref as c, onMounted as ke, computed as K, watch as Se, resolveComponent as b, openBlock as v, createElementBlock as z, Fragment as Q, createVNode as R, unref as e, withCtx as g, createTextVNode as $e, toDisplayString as N, createBlock as F, createCommentVNode as D, renderList as ze, createElementVNode as C, normalizeStyle as Fe, resolveDynamicComponent as De, nextTick as X } from "vue";
|
2
|
+
import { U as d, f as He, t as Be, j as Ie, w as Y, d as T, S as Ne, L as Te, N as U } from "./main-SNlEeN01.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
const
|
4
|
+
const Ue = {
|
5
5
|
key: 0,
|
6
6
|
class: "required"
|
7
|
-
},
|
7
|
+
}, We = ["onMouseenter"], qe = { class: "footer-left" }, Ae = { class: "footer-right" }, Oe = /* @__PURE__ */ be({
|
8
8
|
__name: "Table",
|
9
9
|
props: {
|
10
10
|
route: {},
|
@@ -18,7 +18,7 @@ const We = {
|
|
18
18
|
},
|
19
19
|
emits: ["submit", "change", "row-edit"],
|
20
20
|
setup(Z, { expose: ee, emit: te }) {
|
21
|
-
let le = Ce(() => import("./Index-
|
21
|
+
let le = Ce(() => import("./Index-CnFjsuQV.js")), H = te, ae = Z, { schema: W, table: l, layout: m, set: s, next: Ee, route: q, module: k, validateErrors: A } = Re(ae), w = c({ page: 1 }), E = c({}), p = c([]), oe = c(!0), S = c(), M = c(), V = c(), j = c(), h = c({ layout: "prev, pager, next", count: 5 }), ne = new Ne(), re = (t, a, n) => {
|
22
22
|
H("row-edit", t, l.value, n);
|
23
23
|
}, ue = (t) => {
|
24
24
|
H("submit", t);
|
@@ -30,29 +30,29 @@ const We = {
|
|
30
30
|
u._headerWidth = n;
|
31
31
|
}, de = (t, a, n, u, o) => {
|
32
32
|
H("change", t, a, n, u, o);
|
33
|
-
},
|
33
|
+
}, O = (t) => s.value[l.value.name].indexOf(t), me = (t) => {
|
34
34
|
p.value = t;
|
35
35
|
}, pe = async (t, a, n, u, o) => {
|
36
|
-
await
|
36
|
+
await Te.setColumnWidth(q.value, o.name, n.property, t);
|
37
37
|
}, ce = (t) => {
|
38
38
|
L(t.contentRect.width), X(() => {
|
39
|
-
|
39
|
+
P(t.contentRect.height);
|
40
40
|
});
|
41
41
|
}, L = (t = null) => {
|
42
|
-
let a = d.dom.parentUntil(
|
42
|
+
let a = d.dom.parentUntil(S.value.$el, ".ha-main-form");
|
43
43
|
t == null && (t = d.dom.getWidth(a)), t <= 690 ? h.value.count = 5 : h.value.count = 7, t <= 300 ? h.value.layout = "pager" : t <= 620 ? h.value.layout = "prev, pager, next" : h.value.layout = "total, prev, pager, next, jumper";
|
44
|
-
},
|
45
|
-
let a = d.dom.parentUntil(
|
44
|
+
}, P = (t = null) => {
|
45
|
+
let a = d.dom.parentUntil(S.value.$el, ".ha-main-form");
|
46
46
|
t || (t = d.dom.getHeight(a));
|
47
|
-
let n = d.dom.getHeight(
|
48
|
-
|
47
|
+
let n = d.dom.getHeight(M.value), u = d.dom.find(a, ".main-footer"), o = d.dom.getHeight(u), i = t - n - o;
|
48
|
+
j.value = `${i}px`;
|
49
49
|
}, fe = async () => {
|
50
|
-
let t = s.value[l.value.name].length, a =
|
50
|
+
let t = s.value[l.value.name].length, a = T.getDefaultRow(l.value);
|
51
51
|
s.value[l.value.name].push(a);
|
52
52
|
let n = l.value.fields.filter((o) => o.feature != null);
|
53
53
|
for (let o = 0; o < n.length; o++) {
|
54
54
|
let i = n[o];
|
55
|
-
(await
|
55
|
+
(await U.feature.createAsync(i.feature.type)).add(l.value, i, s.value, a);
|
56
56
|
}
|
57
57
|
B(t);
|
58
58
|
let u = d.scroll.isBottom(".tree-detail");
|
@@ -60,10 +60,10 @@ const We = {
|
|
60
60
|
u && d.scroll.scrollToBottom(".tree-detail");
|
61
61
|
});
|
62
62
|
}, ve = async (t = null) => {
|
63
|
-
let a = p.value[0], n =
|
63
|
+
let a = p.value[0], n = T.getDefaultRow(l.value), u = d.array.insert(s.value[l.value.name], a, n), o = l.value.fields.filter((i) => i.feature != null);
|
64
64
|
for (let i = 0; i < o.length; i++) {
|
65
65
|
let f = o[i];
|
66
|
-
(await
|
66
|
+
(await U.feature.create(f.feature.type)).insert(l.value, f, s.value, a, n);
|
67
67
|
}
|
68
68
|
B(u), t == null || t(u);
|
69
69
|
}, ge = async () => {
|
@@ -77,51 +77,51 @@ const We = {
|
|
77
77
|
let u = l.value.fields.filter((o) => o.feature != null);
|
78
78
|
for (let o = 0; o < u.length; o++) {
|
79
79
|
let i = u[o];
|
80
|
-
(await
|
80
|
+
(await U.feature.create(i.feature.type)).copy(l.value, i, s.value);
|
81
81
|
}
|
82
82
|
B(n);
|
83
83
|
}, he = () => {
|
84
84
|
d.array.remove(s.value[l.value.name], p.value), p.value = [];
|
85
85
|
}, B = (t) => {
|
86
|
-
let a = d.math.pageCount(t + 1, m.value.
|
86
|
+
let a = d.math.pageCount(t + 1, m.value.size);
|
87
87
|
w.value.page = a;
|
88
88
|
}, ye = (t) => {
|
89
89
|
w.value.page = t;
|
90
90
|
}, we = () => {
|
91
|
-
|
91
|
+
S.value.$el.querySelector("tbody");
|
92
92
|
};
|
93
|
-
|
94
|
-
await ne.openAsync("sys", "page",
|
95
|
-
|
93
|
+
ke(async () => {
|
94
|
+
await ne.openAsync("sys", "page", E.value), we(), L(), d.component.detectLoaded(V, () => {
|
95
|
+
P();
|
96
96
|
});
|
97
97
|
});
|
98
|
-
let _e =
|
99
|
-
let t = (w.value.page - 1) * m.value.
|
98
|
+
let _e = K(() => {
|
99
|
+
let t = (w.value.page - 1) * m.value.size, a = w.value.page * m.value.size - 1;
|
100
100
|
return s.value[l.value.name].filter((u, o) => o >= t && o <= a);
|
101
|
-
}), xe =
|
102
|
-
let t = l.value.main ? `/${l.value.name}` : `/${
|
101
|
+
}), xe = K(() => {
|
102
|
+
let t = l.value.main ? `/${l.value.name}` : `/${W.value[0].name}/${l.value.name}`;
|
103
103
|
return He.getComponent(`${t}/update-child`, "partial", "update-child");
|
104
104
|
});
|
105
|
-
return
|
105
|
+
return Se(A, (t, a) => {
|
106
106
|
let n = t.find((u) => u.table == l.value.name);
|
107
|
-
n != null && (w.value.page = Math.ceil((n.index + 1) / m.value.
|
107
|
+
n != null && (w.value.page = Math.ceil((n.index + 1) / m.value.size));
|
108
108
|
}), ee({ resize: ce }), (t, a) => {
|
109
|
-
const n = b("el-table-column"), u = b("el-tooltip"), o = b("el-popover"), i = b("el-form-item"), f = b("el-table"),
|
109
|
+
const n = b("el-table-column"), u = b("el-tooltip"), o = b("el-popover"), i = b("el-form-item"), f = b("el-table"), G = b("el-pagination");
|
110
110
|
return v(), z(Q, null, [
|
111
|
-
|
111
|
+
R(f, {
|
112
112
|
ref_key: "tableRef",
|
113
|
-
ref:
|
113
|
+
ref: S,
|
114
114
|
class: "ha-table-layout table-default",
|
115
115
|
size: "small",
|
116
116
|
border: "",
|
117
|
-
"max-height": e(
|
117
|
+
"max-height": e(j),
|
118
118
|
data: e(_e),
|
119
119
|
onRowClick: a[0] || (a[0] = (r, y, _) => e(re)(r, y, _)),
|
120
120
|
onSelectionChange: e(me),
|
121
121
|
onHeaderDragend: a[1] || (a[1] = (r, y, _, $) => e(pe)(r, y, _, $, e(l)))
|
122
122
|
}, {
|
123
123
|
empty: g(() => [
|
124
|
-
$e(
|
124
|
+
$e(N(e(Be)("common.no_data")), 1)
|
125
125
|
]),
|
126
126
|
default: g(() => [
|
127
127
|
e(oe) ? (v(), F(n, {
|
@@ -131,18 +131,18 @@ const We = {
|
|
131
131
|
fixed: ""
|
132
132
|
})) : D("", !0),
|
133
133
|
(v(!0), z(Q, null, ze(e(l).show, (r, y) => {
|
134
|
-
var _, $,
|
134
|
+
var _, $, J;
|
135
135
|
return v(), F(n, {
|
136
136
|
key: r.name,
|
137
137
|
"show-overflow-tooltip": "",
|
138
138
|
prop: r.name,
|
139
139
|
label: r.label,
|
140
|
-
"min-width": ((
|
140
|
+
"min-width": ((J = ($ = (_ = e(E)) == null ? void 0 : _[e(q)]) == null ? void 0 : $[e(l).name]) == null ? void 0 : J[r.name]) ?? r.control.width,
|
141
141
|
fixed: e(m).fixed.length > 0 ? e(m).fixed.indexOf(r.name) > -1 : y == 0
|
142
142
|
}, {
|
143
143
|
header: g((x) => [
|
144
|
-
e(
|
145
|
-
|
144
|
+
e(k).type != "Detail" && r.control.required ? (v(), z("i", Ue, "*")) : D("", !0),
|
145
|
+
R(u, {
|
146
146
|
placement: "top",
|
147
147
|
content: r.label,
|
148
148
|
disabled: e(ie)(x, y)
|
@@ -151,8 +151,8 @@ const We = {
|
|
151
151
|
C("span", {
|
152
152
|
onMouseenter: (I) => e(se)(I, y)
|
153
153
|
}, [
|
154
|
-
C("span", null,
|
155
|
-
], 40,
|
154
|
+
C("span", null, N(e(Ie)(e(l).table, r.name)), 1)
|
155
|
+
], 40, We)
|
156
156
|
]),
|
157
157
|
_: 2
|
158
158
|
}, 1032, ["content", "disabled"]),
|
@@ -167,27 +167,27 @@ const We = {
|
|
167
167
|
C("i", { class: "fa fa-question-circle icon-question" }, null, -1)
|
168
168
|
])),
|
169
169
|
default: g(() => [
|
170
|
-
C("pre", null,
|
170
|
+
C("pre", null, N(r.control.tooltip.content), 1)
|
171
171
|
]),
|
172
172
|
_: 2
|
173
173
|
}, 1032, ["title"])) : D("", !0)
|
174
174
|
]),
|
175
175
|
default: g((x) => [
|
176
|
-
|
177
|
-
style: Fe(e(Y).getStyle(r, e(
|
178
|
-
rules: e(
|
179
|
-
prop: `[${e(l).name}][${e(
|
176
|
+
R(i, {
|
177
|
+
style: Fe(e(Y).getStyle(r, e(k).type, e(m).type)),
|
178
|
+
rules: e(T).getRules(e(A), e(l), r, x.$index),
|
179
|
+
prop: `[${e(l).name}][${e(O)(x.row)}][${r.name}]`
|
180
180
|
}, {
|
181
181
|
default: g(() => [
|
182
|
-
|
183
|
-
schema: e(
|
182
|
+
R(e(le), {
|
183
|
+
schema: e(W),
|
184
184
|
table: e(l),
|
185
185
|
field: r,
|
186
186
|
set: e(s),
|
187
187
|
row: x.row,
|
188
|
-
config: e(Y).getConfig(r, e(
|
188
|
+
config: e(Y).getConfig(r, e(k).type, e(m).type),
|
189
189
|
onSubmit: e(ue),
|
190
|
-
onChange: (I) => e(de)(I, e(s), e(l), r, e(
|
190
|
+
onChange: (I) => e(de)(I, e(s), e(l), r, e(O)(x.row))
|
191
191
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onSubmit", "onChange"])
|
192
192
|
]),
|
193
193
|
_: 2
|
@@ -202,14 +202,14 @@ const We = {
|
|
202
202
|
e(l).main ? D("", !0) : (v(), z("div", {
|
203
203
|
key: 0,
|
204
204
|
ref_key: "footerRef",
|
205
|
-
ref:
|
205
|
+
ref: M,
|
206
206
|
class: "table-footer"
|
207
207
|
}, [
|
208
|
-
C("div",
|
208
|
+
C("div", qe, [
|
209
209
|
(v(), F(De(e(xe)), {
|
210
210
|
ref_key: "operationRef",
|
211
211
|
ref: V,
|
212
|
-
module: e(
|
212
|
+
module: e(k),
|
213
213
|
table: e(l),
|
214
214
|
set: e(s),
|
215
215
|
selection: e(p),
|
@@ -219,12 +219,12 @@ const We = {
|
|
219
219
|
onRemove: e(he)
|
220
220
|
}, null, 40, ["module", "table", "set", "selection", "onAdd", "onInsert", "onCopy", "onRemove"]))
|
221
221
|
]),
|
222
|
-
C("div",
|
223
|
-
|
222
|
+
C("div", Ae, [
|
223
|
+
R(G, {
|
224
224
|
background: "",
|
225
225
|
layout: e(h).layout,
|
226
226
|
"current-page": e(w).page,
|
227
|
-
"page-size": e(m).
|
227
|
+
"page-size": e(m).size,
|
228
228
|
"pager-count": e(h).count,
|
229
229
|
total: e(s)[e(l).name].length,
|
230
230
|
onCurrentChange: e(ye)
|
@@ -236,5 +236,5 @@ const We = {
|
|
236
236
|
}
|
237
237
|
});
|
238
238
|
export {
|
239
|
-
|
239
|
+
Oe as default
|
240
240
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as _, toRefs as b, computed as x, resolveComponent as V, openBlock as h, createBlock as y, unref as e, withKeys as C, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as K } from "vue";
|
2
|
-
import {
|
2
|
+
import { l as B } from "./main-SNlEeN01.js";
|
3
3
|
import "./assets/moment-h96o7c8I.js";
|
4
|
-
const
|
4
|
+
const N = /* @__PURE__ */ _({
|
5
5
|
__name: "Text",
|
6
6
|
props: {
|
7
7
|
schema: {},
|
@@ -49,5 +49,5 @@ const D = /* @__PURE__ */ _({
|
|
49
49
|
}
|
50
50
|
});
|
51
51
|
export {
|
52
|
-
|
52
|
+
N as default
|
53
53
|
};
|