halo-pc 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-7pMF1N-k.js → Article-BbJTCOkX.js} +66 -62
- package/dist/{Autocomplete-CEjjKXwo.js → Autocomplete-A0m1RW7z.js} +1 -1
- package/dist/Autocomplete-C3d_yunJ.js +52 -0
- package/dist/Autocomplete-H0_xgWsN.js +53 -0
- package/dist/{CSharp-DatSqpip.js → CSharp-Bwl97exE.js} +1 -1
- package/dist/{Calender-B1HoFiQg.js → Calender-C3vbVYIN.js} +1 -1
- package/dist/Callback-oU2ap8v9.js +24 -0
- package/dist/Cascader-ClSabtOx.js +45 -0
- package/dist/Cascader-DRErYyH6.js +84 -0
- package/dist/{Checkbox-B6IkMrWB.js → Checkbox-BJS0a1NT.js} +1 -1
- package/dist/{Code-SZuIImtp.js → Code-9I77CMRV.js} +1 -1
- package/dist/Code-B2DrYXDa.js +58 -0
- package/dist/Code-BgqGTky1.js +40 -0
- package/dist/Code-Cv1pm18C.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-IHZepbsi.js +63 -0
- package/dist/Column-Dgs0SdWX.js +71 -0
- package/dist/Comment-Cy6lpmqk.js +102 -0
- package/dist/Compare-5cTiHEdo.js +30 -0
- package/dist/Compare-CWeuLw9n.js +60 -0
- package/dist/Copy-C6WEtRhC.js +47 -0
- package/dist/Custom-QDHQJoxC.js +53 -0
- package/dist/{DataExport-I9iG4oEo.js → DataExport-BHh7NvbT.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-BgKetUGv.js → DataExport.vue_vue_type_script_setup_true_lang-C9t5j7Gi.js} +37 -33
- package/dist/{DataImport-2KtOy-of.js → DataImport-CtBsCyNb.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DgzKdC2g.js → DataImport.vue_vue_type_script_setup_true_lang-bI0HP38b.js} +59 -55
- package/dist/{Date-PERpDDy_.js → Date-IV1FwqTW.js} +1 -1
- package/dist/{DateRange-BaxHMjcx.js → DateRange-IWmDLSuy.js} +11 -7
- package/dist/{DateTime-B7gHENiu.js → DateTime-Di6sr-tq.js} +1 -1
- package/dist/{DateTimeRange-yI9Y2qgC.js → DateTimeRange-BNUGYgWf.js} +14 -10
- package/dist/{Daterange-DqvBvK-B.js → Daterange-rrlMT4tD.js} +17 -13
- package/dist/{Decimal-AXwMeqBW.js → Decimal-D9TVQqyS.js} +1 -1
- package/dist/Delete-B-k4PTWk.js +59 -0
- package/dist/{Detail-aWACqVnM.js → Detail-HAblGKTY.js} +20 -16
- package/dist/Dictionary-BUmany6B.js +59 -0
- package/dist/{File--NsXL6XX.js → File-MF1QgEQX.js} +45 -41
- package/dist/{Image-CuwfJLKW.js → Image-Dps_vfcZ.js} +1 -1
- package/dist/{Index-BNOFdDjW.js → Index-7cTFT9Xb.js} +19 -15
- package/dist/{Index-CQ9S2R9b.js → Index-C_mfWEwr.js} +1 -1
- package/dist/Index-Cgets8DK.js +4 -0
- package/dist/Index-DGnHsBz4.js +4 -0
- package/dist/{Index-Cewv4-Ik.js → Index-DupYRMRj.js} +45 -41
- package/dist/{Index-DA2wAurY.js → Index-XBFHPLbK.js} +1 -1
- package/dist/{Index-Cj79dCuO.js → Index-hgpg_5ma.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-D6_VOLX-.js → Index.vue_vue_type_script_setup_true_lang-C1Bw7evJ.js} +15 -11
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DjiARPz7.js → Index.vue_vue_type_script_setup_true_lang-yOf2ubuo.js} +16 -12
- package/dist/{Index.vue_vue_type_style_index_0_lang-DApNHvNX.js → Index.vue_vue_type_style_index_0_lang-DBERwM_v.js} +31 -27
- package/dist/{Install-BWdNbtVx.js → Install-A9qs4Vg-.js} +20 -16
- package/dist/{Int-nmVkFRqG.js → Int-B3L54Gcc.js} +16 -12
- package/dist/List-Om6OdbbR.js +76 -0
- package/dist/Maintaince-CrfEX-5B.js +19 -0
- package/dist/{Markdown-DD6ufwhM.js → Markdown-wcGRlabe.js} +1 -1
- package/dist/{Month-BqbTFGgo.js → Month-C1tCQKvO.js} +1 -1
- package/dist/{Normal-f4HN1ciI.js → Normal-HoU_elKy.js} +51 -47
- package/dist/Paging-C_StoYuZ.js +94 -0
- package/dist/QueryApi-BrYyIwqV.js +18 -0
- package/dist/{Racebar-Bou-XNCm.js → Racebar-BXuP1N9F.js} +27 -23
- package/dist/{Radio-BmikzeCv.js → Radio-D6W9guyM.js} +1 -1
- package/dist/{Register-CgbRZH9W.js → Register-DGhIjRDD.js} +79 -75
- package/dist/{RichText-BeK3zZam.js → RichText-B3Br1uzj.js} +22 -18
- package/dist/{SearchFooter-C4PeAkaR.js → SearchFooter-D3-9GTr1.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-BaO7vJ-n.js → SearchFooter.vue_vue_type_style_index_0_lang-DP32ZjvQ.js} +1 -1
- package/dist/{SearchForm-C7fZiQaW.js → SearchForm-rWozLa4B.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-BumSLQVy.js → SearchForm.vue_vue_type_style_index_0_lang-F2we6KP-.js} +30 -26
- package/dist/{Select-C1-NVZdG.js → Select-64nQiHNA.js} +21 -17
- package/dist/{Select-DR5fQH0d.js → Select-CAmBUDp3.js} +40 -36
- package/dist/{Select-DlbQvxQu.js → Select-qCdhL7vC.js} +1 -1
- package/dist/{Single-BLRyJKB-.js → Single-Bnrt5Hxb.js} +81 -77
- package/dist/{Statistic-BOtmYiRA.js → Statistic-BTbwlH9l.js} +35 -31
- package/dist/{Stock-Dnwof0R1.js → Stock-Br_02hsI.js} +1 -1
- package/dist/{Stock-BqQ6lM5B.js → Stock-DbExd680.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-Az2jx3JN.js → Stock.vue_vue_type_style_index_0_lang-MTvhmHlz.js} +26 -22
- package/dist/{Switch-DuMBV0AX.js → Switch-J2GIv4Wa.js} +1 -1
- package/dist/{Table-Be-rPXr_.js → Table-DjBx2UGm.js} +68 -64
- package/dist/{Table-RMVT0hlE.js → Table-X4vTHlpm.js} +52 -48
- package/dist/{Text-DSXRKFPa.js → Text-BFZc81F2.js} +1 -1
- package/dist/Text.vue_vue_type_style_index_0_lang-Cw7QQbFk.js +56 -0
- package/dist/TextLink-C_lFWaZv.js +66 -0
- package/dist/{Textarea-3ypOGE1S.js → Textarea-Dw_qLc3Y.js} +1 -1
- package/dist/{Timeline-CLezCcgQ.js → Timeline-DaaRGmGd.js} +21 -17
- package/dist/Tree-CDD2Nd6q.js +121 -0
- package/dist/{Tree-B6RBRT1y.js → Tree-Cmp10DWw.js} +85 -81
- package/dist/TreeNode-BM8-GyIc.js +38 -0
- package/dist/{Update-Dc3Tdkn0.js → Update-PffbXMXH.js} +17 -13
- package/dist/Upload-F6HXe76H.js +71 -0
- package/dist/Upload-kwwpaDe6.js +147 -0
- package/dist/{UploadApi-Bs507D0w.js → UploadApi-D2W_aGKA.js} +8 -3
- package/dist/{Year-DKxOQNyS.js → Year-Dr5ST0Pk.js} +1 -1
- package/dist/main-B8RC13GR.js +6528 -0
- package/dist/main.js +113 -113
- package/dist/style.css +1 -1
- package/dist/vendor-@monaco-editor-DKC4UNw_.js +258 -0
- package/dist/{vendor-clipboard-DjQPoCBJ.js → vendor-clipboard-BqjesuiY.js} +130 -110
- package/dist/vendor-clone-BPtCWdXG.js +134 -0
- package/dist/vendor-crypto-js-ftX_aBC-.js +4995 -0
- package/dist/vendor-file-saver-CytTIJ-3.js +74 -0
- package/dist/{vendor-intro.js-DwWqhM1v.js → vendor-intro.js-CZkClzQO.js} +1 -1
- package/dist/vendor-moment-h96o7c8I.js +2578 -0
- package/dist/vendor-sprintf-js-BPTdvBYM.js +148 -0
- package/dist/vendor-state-local-CEworIRt.js +131 -0
- package/dist/vendor-underscore-DVTek3G4.js +1070 -0
- package/dist/vendor-underscore.string-BEHfJwHl.js +425 -0
- package/dist/vendor-util-deprecate-DzpNkCzj.js +28 -0
- package/esm/coms/controls/Text.vue.d.ts +1 -1
- package/esm/coms/globals/HaMenu.vue.d.ts +1 -1
- package/esm/coms/globals/HaWindow.vue.d.ts +1 -1
- package/esm/coms/pages/Delete.vue.d.ts +2 -2
- package/esm/coms/pages/Single.vue.d.ts +2 -2
- package/esm/coms/pagings/Article.vue.d.ts +2 -2
- package/esm/coms/pagings/DataExport.vue.d.ts +2 -2
- package/esm/coms/pagings/DataImport.vue.d.ts +2 -2
- package/esm/coms/pagings/Index.vue.d.ts +2 -2
- package/esm/coms/pagings/SearchFooter.vue.d.ts +1 -1
- package/esm/coms/pagings/Table.vue.d.ts +2 -2
- package/esm/main.d.ts +4 -3
- package/esm/services/ServiceFactory.d.ts +3 -0
- package/esm/types/PcOptions.d.ts +18 -0
- package/esm/types/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/Autocomplete-DqKo5NiJ.js +0 -49
- package/dist/Autocomplete-K5ipzchR.js +0 -48
- package/dist/Callback-PyCjejiv.js +0 -20
- package/dist/Cascader-B9lLRKjA.js +0 -80
- package/dist/Cascader-BNvlqc5t.js +0 -41
- package/dist/Code-BdK547kD.js +0 -4
- package/dist/Code-DfFF-84i.js +0 -36
- package/dist/Code-LFQVJotC.js +0 -54
- package/dist/Code.vue_vue_type_style_index_0_lang-nX113anq.js +0 -59
- package/dist/Column-DVjYrrr7.js +0 -67
- package/dist/Comment-Do7Mjpjr.js +0 -98
- package/dist/Compare-C_iDn27Q.js +0 -56
- package/dist/Compare-CrX3yfD4.js +0 -26
- package/dist/Copy-_sbdQvHJ.js +0 -43
- package/dist/Custom-DarpQFG8.js +0 -49
- package/dist/Delete-BY3vAVWa.js +0 -55
- package/dist/Dictionary-DpQuFYQ5.js +0 -55
- package/dist/Index-B_a_HzsB.js +0 -4
- package/dist/Index-Cx2J_P37.js +0 -4
- package/dist/List-BjdY1rMk.js +0 -72
- package/dist/Maintaince-DzYzyrAc.js +0 -15
- package/dist/Paging-BMPtLi8P.js +0 -90
- package/dist/QueryApi-CbP5cCyH.js +0 -13
- package/dist/Text.vue_vue_type_style_index_0_lang-CeDusQl6.js +0 -52
- package/dist/TextLink-BZW-y_FS.js +0 -62
- package/dist/Tree-CLpCeirT.js +0 -117
- package/dist/TreeNode-C16N8jqm.js +0 -34
- package/dist/Upload-DvWyjK3a.js +0 -143
- package/dist/Upload-SEu1V1yX.js +0 -67
- package/dist/main-QtNG6p7a.js +0 -16673
- package/dist/vendor-pinia-yrN6kSxh.js +0 -861
- package/dist/vendor-vue-demi-CIhrFbpB.js +0 -17
@@ -1,16 +1,20 @@
|
|
1
|
-
import { defineComponent as $e, toRefs as Ve, ref as u, onMounted as We, nextTick as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import {
|
5
|
-
import
|
6
|
-
import
|
1
|
+
import { defineComponent as $e, toRefs as Ve, ref as u, onMounted as We, nextTick as A, computed as Y, resolveComponent as S, openBlock as f, createElementBlock as D, createVNode as v, unref as e, isRef as w, normalizeClass as He, withCtx as h, createTextVNode as Z, toDisplayString as k, Fragment as Be, renderList as De, createBlock as R, createCommentVNode as z, createElementVNode as T, resolveDynamicComponent as Te } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import { v as Ue, i as Ee, l as Me, u as Ne, D as $, P as j, C as Pe, w as Le, x as Ae, g as je, p as qe, h as Ie, m as Ke } from "./main-B8RC13GR.js";
|
5
|
+
import "xlsx-js-style";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
7
|
+
import { _ as Oe } from "./SearchForm.vue_vue_type_style_index_0_lang-F2we6KP-.js";
|
8
|
+
import { _ as Fe } from "./DataImport.vue_vue_type_script_setup_true_lang-bI0HP38b.js";
|
9
|
+
import { _ as Ge } from "./DataExport.vue_vue_type_script_setup_true_lang-C9t5j7Gi.js";
|
10
|
+
import { _ as Je } from "./Index.vue_vue_type_style_index_0_lang-DBERwM_v.js";
|
7
11
|
import "vue-router";
|
8
|
-
import "./vendor-intro.js-
|
9
|
-
import { _ as Qe } from "./SearchFooter.vue_vue_type_style_index_0_lang-
|
12
|
+
import "./vendor-intro.js-CZkClzQO.js";
|
13
|
+
import { _ as Qe } from "./SearchFooter.vue_vue_type_style_index_0_lang-DP32ZjvQ.js";
|
10
14
|
const Xe = {
|
11
15
|
key: 0,
|
12
16
|
class: "required"
|
13
|
-
}, Ye = ["onMouseenter"], Ze = { class: "el-drawer__title" }, et = { key: 0 }, tt = ["href"],
|
17
|
+
}, Ye = ["onMouseenter"], Ze = { class: "el-drawer__title" }, et = { key: 0 }, tt = ["href"], ft = /* @__PURE__ */ $e({
|
14
18
|
__name: "Table",
|
15
19
|
props: {
|
16
20
|
searchData: {},
|
@@ -23,9 +27,9 @@ const Xe = {
|
|
23
27
|
},
|
24
28
|
emits: ["search", "navigate", "sort", "page-change", "size-change", "succeed", "close"],
|
25
29
|
setup(ee, { expose: te, emit: ae }) {
|
26
|
-
let b = ae, le = ee, { module: oe, schema: U, table: r, layout: i, next: p, set: _, searchData:
|
30
|
+
let b = ae, le = ee, { module: oe, schema: U, table: r, layout: i, next: p, set: _, searchData: q } = Ve(le), E = u([]), V = u(), M = u(), N = u(), I = u(), K = u(), W = u(), ne = Ue();
|
27
31
|
Ee();
|
28
|
-
let re =
|
32
|
+
let re = Me(), { t_module: se } = Ne(), m = u(!1), g = u(!1), O = u(), F = u("120px"), y = u({ layout: "prev, pager, next", count: 5, sizes: [20, 50, 200, 500, 2e3] }), H = u(), n = u({ title: null, env: null, page: null, url: null, row: null, visible: !1, appendToBody: !1 }), ue = (t) => {
|
29
33
|
C("insert", null, t);
|
30
34
|
}, ie = (t, a) => {
|
31
35
|
C("detail", t, a);
|
@@ -37,8 +41,8 @@ const Xe = {
|
|
37
41
|
C("delete", t, a);
|
38
42
|
}, G = (t) => {
|
39
43
|
let a = t.map((o) => o[r.value.key.name]);
|
40
|
-
|
41
|
-
Ke.success(o.message),
|
44
|
+
Ie.post(p.value.delete.route, a).then((o) => {
|
45
|
+
Ke.success(o.message), P();
|
42
46
|
});
|
43
47
|
}, C = (t, a, o) => {
|
44
48
|
let s = ge(t, a);
|
@@ -54,7 +58,7 @@ const Xe = {
|
|
54
58
|
n.value.visible = !1, b("close");
|
55
59
|
}, ve = (t) => {
|
56
60
|
n.value.title = se(t.module.type, t.module.name), n.value.env = t.module.env;
|
57
|
-
},
|
61
|
+
}, P = () => {
|
58
62
|
n.value.visible = !1;
|
59
63
|
let t = E.value;
|
60
64
|
b("succeed", (a) => {
|
@@ -62,16 +66,16 @@ const Xe = {
|
|
62
66
|
if (!o.length)
|
63
67
|
return;
|
64
68
|
let s = r.value.key;
|
65
|
-
|
69
|
+
A(() => {
|
66
70
|
let c = n.value.row;
|
67
71
|
if (c) {
|
68
72
|
let d = o.find((x) => x[s.name] == c[s.name]);
|
69
|
-
d &&
|
73
|
+
d && M.value.setCurrentRow(d);
|
70
74
|
}
|
71
75
|
if (t.length > 0)
|
72
76
|
for (let d of t) {
|
73
77
|
let x = o.find((l) => l[s.name] == d[s.name]);
|
74
|
-
|
78
|
+
M.value.toggleRowSelection(x, !0);
|
75
79
|
}
|
76
80
|
});
|
77
81
|
});
|
@@ -93,61 +97,61 @@ const Xe = {
|
|
93
97
|
let s = t.target.children[0], c = $.getWidth(s) + 16 + 14, d = a.realWidth || a.width;
|
94
98
|
o._headerTooltip = c > d;
|
95
99
|
}, xe = (t, a, o, s) => {
|
96
|
-
|
100
|
+
j.setColumnWidth(p.value.paging.route, r.value.name, o.property, t);
|
97
101
|
}, Q = () => {
|
98
102
|
var s, c, d;
|
99
|
-
let t = $.getHeight(V.value), a = $.getHeight([(s =
|
103
|
+
let t = $.getHeight(V.value), a = $.getHeight([(s = N.value) == null ? void 0 : s.$el, (c = I.value) == null ? void 0 : c.$el, (d = K.value) == null ? void 0 : d.$el]), o = t - a;
|
100
104
|
O.value = `${o}px`;
|
101
105
|
}, X = () => {
|
102
|
-
let t =
|
106
|
+
let t = H.value;
|
103
107
|
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";
|
104
|
-
},
|
108
|
+
}, Se = (t, a) => {
|
105
109
|
if (!W.value || !W.value.keyboard)
|
106
110
|
return !1;
|
107
111
|
W.value.keyboard(t, a);
|
108
|
-
},
|
109
|
-
|
112
|
+
}, ke = (t) => {
|
113
|
+
N.value.resize(t), H.value = $.getWidth(V.value), X(), A(() => {
|
110
114
|
Q();
|
111
115
|
});
|
112
116
|
};
|
113
117
|
We(() => {
|
114
|
-
|
118
|
+
H.value = $.getWidth(V.value), X(), A(() => {
|
115
119
|
Q();
|
116
120
|
});
|
117
121
|
});
|
118
|
-
let
|
122
|
+
let Re = Y(() => {
|
119
123
|
let a = Object.keys(i.value.orderBys)[0], o = i.value.orderBys[a];
|
120
124
|
return { prop: a, order: o ? "ascending" : "descending" };
|
121
125
|
}), ze = Y(() => {
|
122
126
|
let t = `/${r.value.name}/paging-row`;
|
123
127
|
return re.getComponent(t, "partial", "paging-row");
|
124
128
|
});
|
125
|
-
return te({ keyboard:
|
126
|
-
const o =
|
127
|
-
return f(),
|
129
|
+
return te({ keyboard: Se, resize: ke }), (t, a) => {
|
130
|
+
const o = S("el-table-column"), s = S("el-tooltip"), c = S("el-table"), d = S("el-pagination"), x = S("el-drawer");
|
131
|
+
return f(), D("div", {
|
128
132
|
ref_key: "pagingRef",
|
129
133
|
ref: V,
|
130
134
|
class: "paging-table"
|
131
135
|
}, [
|
132
136
|
v(Oe, {
|
133
137
|
ref_key: "searchRef",
|
134
|
-
ref:
|
138
|
+
ref: N,
|
135
139
|
schema: e(U),
|
136
140
|
table: e(r),
|
137
141
|
layout: e(i),
|
138
|
-
"search-data": e(
|
142
|
+
"search-data": e(q),
|
139
143
|
onSubmit: e(J)
|
140
144
|
}, null, 8, ["schema", "table", "layout", "search-data", "onSubmit"]),
|
141
145
|
v(Qe, {
|
142
146
|
ref_key: "headerRef",
|
143
|
-
ref:
|
147
|
+
ref: I,
|
144
148
|
schema: e(U),
|
145
149
|
table: e(r),
|
146
150
|
layout: e(i),
|
147
151
|
set: e(_),
|
148
152
|
next: e(p),
|
149
153
|
selection: e(E),
|
150
|
-
"search-data": e(
|
154
|
+
"search-data": e(q),
|
151
155
|
onAdd: e(ue),
|
152
156
|
onRemove: e(G),
|
153
157
|
onShowImport: a[0] || (a[0] = (l) => w(m) ? m.value = !0 : m = !0),
|
@@ -156,61 +160,61 @@ const Xe = {
|
|
156
160
|
}, null, 8, ["schema", "table", "layout", "set", "next", "selection", "search-data", "onAdd", "onRemove", "onSearch"]),
|
157
161
|
v(c, {
|
158
162
|
ref_key: "tableRef",
|
159
|
-
ref:
|
160
|
-
class:
|
163
|
+
ref: M,
|
164
|
+
class: He([{ "hide-nav": e(ne).hideNav }, "table-default table-paging"]),
|
161
165
|
size: "small",
|
162
166
|
border: "",
|
163
167
|
"highlight-current-row": "",
|
164
168
|
"max-height": e(O),
|
165
169
|
data: e(_)[e(r).name],
|
166
|
-
"default-sort": e(
|
170
|
+
"default-sort": e(Re),
|
167
171
|
onSelectionChange: a[2] || (a[2] = (l) => e(_e)(l, e(r))),
|
168
172
|
onSortChange: a[3] || (a[3] = (l) => e(ye)(l, e(r))),
|
169
173
|
onHeaderDragend: e(xe)
|
170
174
|
}, {
|
171
175
|
empty: h(() => [
|
172
|
-
Z(
|
176
|
+
Z(k(t.t("common.no_data")), 1)
|
173
177
|
]),
|
174
178
|
default: h(() => [
|
175
179
|
v(o, {
|
176
180
|
type: "selection",
|
177
181
|
width: "30"
|
178
182
|
}),
|
179
|
-
(f(!0),
|
183
|
+
(f(!0), D(Be, null, De(e(r).show, (l, at) => (f(), R(o, {
|
180
184
|
sortable: e(r) ? "custom" : !1,
|
181
185
|
prop: l.name,
|
182
186
|
"sort-orders": ["descending", "ascending"],
|
183
187
|
fixed: e(i).fixed.indexOf(l.name) > -1,
|
184
|
-
"min-width": e(
|
188
|
+
"min-width": e(j).getColumnWidth(e(p).paging.route, e(r).name, l),
|
185
189
|
label: `${l.label}${l.control.prefix || l.suffix ? "(" + (l.control.prefix || l.suffix) + ")" : ""}`,
|
186
190
|
key: `${e(r).name}.${l.name}`
|
187
191
|
}, {
|
188
|
-
header: h((
|
189
|
-
l.control.required && l.control.editable ? (f(),
|
192
|
+
header: h((B) => [
|
193
|
+
l.control.required && l.control.editable ? (f(), D("i", Xe)) : z("", !0),
|
190
194
|
v(s, {
|
191
195
|
placement: "top",
|
192
196
|
content: l.label,
|
193
197
|
disabled: !l._headerTooltip
|
194
198
|
}, {
|
195
199
|
default: h(() => [
|
196
|
-
|
197
|
-
onMouseenter: (
|
200
|
+
T("span", {
|
201
|
+
onMouseenter: (L) => e(Ce)(L, B.column, l)
|
198
202
|
}, [
|
199
|
-
|
203
|
+
T("span", null, k(t.t_field(e(r).name, l.name)), 1)
|
200
204
|
], 40, Ye)
|
201
205
|
]),
|
202
206
|
_: 2
|
203
207
|
}, 1032, ["content", "disabled"])
|
204
208
|
]),
|
205
|
-
default: h((
|
209
|
+
default: h((B) => [
|
206
210
|
v(Je, {
|
207
211
|
schema: e(U),
|
208
212
|
table: e(r),
|
209
213
|
field: l,
|
210
214
|
set: e(_),
|
211
|
-
row:
|
212
|
-
config: e(
|
213
|
-
onChange: (
|
215
|
+
row: B.row,
|
216
|
+
config: e(Pe).getConfig(l, e(oe).type, e(i).type),
|
217
|
+
onChange: (L) => e(be)(L, e(r), l, e(_), B.row)
|
214
218
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onChange"])
|
215
219
|
]),
|
216
220
|
_: 2
|
@@ -222,7 +226,7 @@ const Xe = {
|
|
222
226
|
"min-width": e(F)
|
223
227
|
}, {
|
224
228
|
default: h((l) => [
|
225
|
-
(f(),
|
229
|
+
(f(), R(Te(e(ze)), {
|
226
230
|
table: e(r),
|
227
231
|
next: e(p),
|
228
232
|
set: e(_),
|
@@ -240,7 +244,7 @@ const Xe = {
|
|
240
244
|
]),
|
241
245
|
_: 1
|
242
246
|
}, 8, ["class", "max-height", "data", "default-sort", "onHeaderDragend"]),
|
243
|
-
v(e(
|
247
|
+
v(e(Le), {
|
244
248
|
ref_key: "footerRef",
|
245
249
|
ref: K,
|
246
250
|
class: "list-toolbar"
|
@@ -261,47 +265,47 @@ const Xe = {
|
|
261
265
|
]),
|
262
266
|
_: 1
|
263
267
|
}, 512),
|
264
|
-
e(p).import ? (f(),
|
268
|
+
e(p).import ? (f(), R(Fe, {
|
265
269
|
key: 0,
|
266
270
|
next: e(p),
|
267
271
|
onClose: a[5] || (a[5] = (l) => w(m) ? m.value = !1 : m = !1),
|
268
|
-
onSucceed: e(
|
272
|
+
onSucceed: e(P),
|
269
273
|
modelValue: e(m),
|
270
274
|
"onUpdate:modelValue": a[6] || (a[6] = (l) => w(m) ? m.value = l : m = l)
|
271
275
|
}, null, 8, ["next", "onSucceed", "modelValue"])) : z("", !0),
|
272
|
-
e(p).export ? (f(),
|
276
|
+
e(p).export ? (f(), R(Ge, {
|
273
277
|
key: 1,
|
274
278
|
route: e(p).export.route,
|
275
|
-
"page-count": e(
|
279
|
+
"page-count": e(Ae).pageCount(e(i).count, e(i).pageSize),
|
276
280
|
onClose: a[7] || (a[7] = (l) => w(g) ? g.value = !1 : g = !1),
|
277
281
|
modelValue: e(g),
|
278
282
|
"onUpdate:modelValue": a[8] || (a[8] = (l) => w(g) ? g.value = l : g = l)
|
279
283
|
}, null, 8, ["route", "page-count", "modelValue"])) : z("", !0),
|
280
|
-
e(n).page ? (f(),
|
284
|
+
e(n).page ? (f(), R(x, {
|
281
285
|
key: 2,
|
282
286
|
"destroy-on-close": "",
|
283
287
|
"append-to-body": e(n).appendToBody,
|
284
|
-
size: e(
|
288
|
+
size: e(j).getDrawerWidth(e(H)),
|
285
289
|
modelValue: e(n).visible,
|
286
290
|
"onUpdate:modelValue": a[9] || (a[9] = (l) => e(n).visible = l)
|
287
291
|
}, {
|
288
292
|
header: h(() => [
|
289
|
-
|
290
|
-
Z(
|
291
|
-
e(n).env ? (f(),
|
292
|
-
|
293
|
+
T("div", Ze, [
|
294
|
+
Z(k(e(n).title) + " ", 1),
|
295
|
+
e(n).env ? (f(), D("span", et, "[" + k(e(n).env) + "]", 1)) : z("", !0),
|
296
|
+
T("a", {
|
293
297
|
class: "drawer-copy",
|
294
|
-
href: e(
|
295
|
-
},
|
298
|
+
href: e(je).getToUrl(e(n).url)
|
299
|
+
}, k(t.t("common.link")), 9, tt)
|
296
300
|
])
|
297
301
|
]),
|
298
302
|
default: h(() => [
|
299
|
-
v(e(
|
303
|
+
v(e(qe), {
|
300
304
|
ref_key: "pageRef",
|
301
305
|
ref: W,
|
302
306
|
url: e(n).url,
|
303
307
|
onLoaded: e(ve),
|
304
|
-
onSucceed: e(
|
308
|
+
onSucceed: e(P),
|
305
309
|
onClose: e(ce)
|
306
310
|
}, null, 8, ["url", "onLoaded", "onSucceed", "onClose"])
|
307
311
|
]),
|
@@ -312,5 +316,5 @@ const Xe = {
|
|
312
316
|
}
|
313
317
|
});
|
314
318
|
export {
|
315
|
-
|
319
|
+
ft as default
|
316
320
|
};
|
@@ -1,9 +1,13 @@
|
|
1
|
-
import { defineComponent as be, defineAsyncComponent as xe, toRefs as Ce, ref as c, onMounted as Se, computed as
|
2
|
-
import
|
1
|
+
import { defineComponent as be, defineAsyncComponent as xe, toRefs as Ce, ref as c, onMounted as Se, computed as L, watch as Re, resolveComponent as b, openBlock as v, createElementBlock as F, Fragment as U, createVNode as S, unref as e, withCtx as f, createTextVNode as ke, toDisplayString as W, createBlock as H, createCommentVNode as $, renderList as Fe, createElementVNode as x, normalizeStyle as He, resolveDynamicComponent as $e, nextTick as G } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import "xlsx-js-style";
|
5
|
+
import { l as ze, y as De, P as J, C as K, j as B, D as y, r as I, z as Q, A as M, O as We, x as Be } from "./main-B8RC13GR.js";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
3
7
|
const Ie = {
|
4
8
|
key: 0,
|
5
9
|
class: "required"
|
6
|
-
},
|
10
|
+
}, Me = ["onMouseenter"], Oe = /* @__PURE__ */ x("i", { class: "fa fa-question-circle icon-question" }, null, -1), Te = { class: "footer-left" }, qe = { class: "footer-right" }, Ue = /* @__PURE__ */ be({
|
7
11
|
__name: "Table",
|
8
12
|
props: {
|
9
13
|
route: {},
|
@@ -17,10 +21,10 @@ const Ie = {
|
|
17
21
|
},
|
18
22
|
emits: ["submit", "change", "row-edit"],
|
19
23
|
setup(X, { expose: Y, emit: Z }) {
|
20
|
-
let ee = xe(() => import("./Index-
|
21
|
-
|
24
|
+
let ee = xe(() => import("./Index-C_mfWEwr.js")), z = Z, te = X, { schema: O, table: a, layout: m, set: i, next: Ae, route: T, module: R, validateErrors: q } = Ce(te), _ = c({ page: 1 }), le = ze(), p = c([]), ae = c(!0), k = c(), A = c(), E = c(), N = c(), g = c({ layout: "prev, pager, next", count: 5 }), oe = (t, o, n) => {
|
25
|
+
z("row-edit", t, a.value, n);
|
22
26
|
}, ne = (t) => {
|
23
|
-
|
27
|
+
z("submit", t);
|
24
28
|
}, re = (t, o) => {
|
25
29
|
let n = a.value.show[o];
|
26
30
|
return n._headerWidth ? (t.column.realWidth || t.column.width) > n._headerWidth + 20 : !0;
|
@@ -28,23 +32,23 @@ const Ie = {
|
|
28
32
|
let n = t.target.children[0].offsetWidth, u = a.value.show[o];
|
29
33
|
u._headerWidth = n;
|
30
34
|
}, ie = (t, o, n, u, l) => {
|
31
|
-
|
32
|
-
},
|
35
|
+
z("change", t, o, n, u, l);
|
36
|
+
}, V = (t) => i.value[a.value.name].indexOf(t), se = (t) => {
|
33
37
|
p.value = t;
|
34
38
|
}, de = (t, o, n, u, l) => {
|
35
|
-
|
39
|
+
J.setColumnWidth(T.value, l.name, n.property, t);
|
36
40
|
}, me = (t) => {
|
37
|
-
j(t.contentRect.width),
|
38
|
-
|
41
|
+
j(t.contentRect.width), G(() => {
|
42
|
+
P(t.contentRect.height);
|
39
43
|
});
|
40
44
|
}, j = (t = null) => {
|
41
45
|
let o = y.parentUntil(k.value.$el, ".ha-main-form");
|
42
46
|
t == null && (t = y.getWidth(o)), t <= 690 ? g.value.count = 5 : g.value.count = 7, t <= 300 ? g.value.layout = "pager" : t <= 620 ? g.value.layout = "prev, pager, next" : g.value.layout = "total, prev, pager, next, jumper";
|
43
|
-
},
|
47
|
+
}, P = (t = null) => {
|
44
48
|
let o = y.parentUntil(k.value.$el, ".ha-main-form");
|
45
49
|
t || (t = y.getHeight(o));
|
46
|
-
let n = y.getHeight(
|
47
|
-
|
50
|
+
let n = y.getHeight(A.value), u = y.find(o, ".main-footer"), l = y.getHeight(u), s = t - n - l;
|
51
|
+
N.value = `${s}px`;
|
48
52
|
}, pe = () => {
|
49
53
|
let t = i.value[a.value.name].length, o = B.getDefaultRow(a.value);
|
50
54
|
i.value[a.value.name].push(o);
|
@@ -55,11 +59,11 @@ const Ie = {
|
|
55
59
|
}
|
56
60
|
D(t);
|
57
61
|
let u = Q.isBottom(".tree-detail");
|
58
|
-
|
62
|
+
G(() => {
|
59
63
|
u && Q.scrollToBottom(".tree-detail");
|
60
64
|
});
|
61
65
|
}, ce = () => {
|
62
|
-
let t = p.value[0], o = B.getDefaultRow(a.value), n =
|
66
|
+
let t = p.value[0], o = B.getDefaultRow(a.value), n = M.insert(i.value[a.value.name], t, o), u = a.value.fields.filter((l) => l.feature != null);
|
63
67
|
for (let l = 0; l < u.length; l++) {
|
64
68
|
let s = u[l];
|
65
69
|
I.getFeature(s.feature.type).insert(a.value, s, i.value, t, o);
|
@@ -71,7 +75,7 @@ const Ie = {
|
|
71
75
|
}), n = i.value[a.value.name].indexOf(p.value[0]);
|
72
76
|
for (let l = 0; l < p.value.length; l++) {
|
73
77
|
let s = p.value[l], w = o[l];
|
74
|
-
|
78
|
+
M.append(i.value[a.value.name], s, w);
|
75
79
|
}
|
76
80
|
let u = a.value.fields.filter((l) => l.feature != null);
|
77
81
|
for (let l = 0; l < u.length; l++) {
|
@@ -80,7 +84,7 @@ const Ie = {
|
|
80
84
|
}
|
81
85
|
D(n);
|
82
86
|
}, fe = () => {
|
83
|
-
|
87
|
+
M.remove(i.value[a.value.name], p.value), p.value = [];
|
84
88
|
}, D = (t) => {
|
85
89
|
let o = Be.pageCount(t + 1, m.value.pageSize);
|
86
90
|
_.value.page = o;
|
@@ -90,30 +94,30 @@ const Ie = {
|
|
90
94
|
k.value.$el.querySelector("tbody");
|
91
95
|
};
|
92
96
|
Se(() => {
|
93
|
-
he(), j(), De.detectLoaded(
|
94
|
-
|
97
|
+
he(), j(), De.detectLoaded(E, () => {
|
98
|
+
P();
|
95
99
|
});
|
96
100
|
});
|
97
|
-
let ye =
|
101
|
+
let ye = L(() => {
|
98
102
|
let t = (_.value.page - 1) * m.value.pageSize, o = _.value.page * m.value.pageSize - 1;
|
99
103
|
return i.value[a.value.name].filter((u, l) => l >= t && l <= o);
|
100
|
-
}), _e =
|
101
|
-
let t = a.value.main ? `/${a.value.name}` : `/${
|
104
|
+
}), _e = L(() => {
|
105
|
+
let t = a.value.main ? `/${a.value.name}` : `/${O.value[0].name}/${a.value.name}`;
|
102
106
|
return le.getComponent(`${t}/update-child`, "partial", "update-child");
|
103
107
|
});
|
104
|
-
return Re(
|
108
|
+
return Re(q, (t, o) => {
|
105
109
|
let n = t.find((u) => u.table == a.value.name);
|
106
110
|
n != null && (_.value.page = Math.ceil((n.index + 1) / m.value.pageSize));
|
107
111
|
}), Y({ resize: me }), (t, o) => {
|
108
112
|
const n = b("el-table-column"), u = b("el-tooltip"), l = b("el-popover"), s = b("el-form-item"), w = b("el-table"), we = b("el-pagination");
|
109
|
-
return v(),
|
113
|
+
return v(), F(U, null, [
|
110
114
|
S(w, {
|
111
115
|
ref_key: "tableRef",
|
112
116
|
ref: k,
|
113
117
|
class: "ha-table-layout table-default",
|
114
118
|
size: "small",
|
115
119
|
border: "",
|
116
|
-
"max-height": e(
|
120
|
+
"max-height": e(N),
|
117
121
|
data: e(ye),
|
118
122
|
onRowClick: o[0] || (o[0] = (r, h, d) => e(oe)(r, h, d)),
|
119
123
|
onSelectionChange: e(se),
|
@@ -123,22 +127,22 @@ const Ie = {
|
|
123
127
|
ke(W(t.t("common.no_data")), 1)
|
124
128
|
]),
|
125
129
|
default: f(() => [
|
126
|
-
e(ae) ? (v(),
|
130
|
+
e(ae) ? (v(), H(n, {
|
127
131
|
key: 0,
|
128
132
|
type: "selection",
|
129
133
|
width: "40",
|
130
134
|
fixed: ""
|
131
|
-
})) :
|
132
|
-
(v(!0),
|
135
|
+
})) : $("", !0),
|
136
|
+
(v(!0), F(U, null, Fe(e(a).show, (r, h) => (v(), H(n, {
|
133
137
|
key: r.name,
|
134
138
|
"show-overflow-tooltip": "",
|
135
139
|
prop: r.name,
|
136
140
|
label: r.label,
|
137
|
-
"min-width": e(
|
141
|
+
"min-width": e(J).getColumnWidth(e(T), e(a).name, r),
|
138
142
|
fixed: e(m).fixed.length > 0 ? e(m).fixed.indexOf(r.name) > -1 : h == 0
|
139
143
|
}, {
|
140
144
|
header: f((d) => [
|
141
|
-
e(R).type != "Detail" && r.control.required ? (v(),
|
145
|
+
e(R).type != "Detail" && r.control.required ? (v(), F("i", Ie, "*")) : $("", !0),
|
142
146
|
S(u, {
|
143
147
|
placement: "top",
|
144
148
|
content: r.label,
|
@@ -149,11 +153,11 @@ const Ie = {
|
|
149
153
|
onMouseenter: (C) => e(ue)(C, h)
|
150
154
|
}, [
|
151
155
|
x("span", null, W(t.t_field(e(a).table, r.name)), 1)
|
152
|
-
], 40,
|
156
|
+
], 40, Me)
|
153
157
|
]),
|
154
158
|
_: 2
|
155
159
|
}, 1032, ["content", "disabled"]),
|
156
|
-
r.control.tooltip ? (v(),
|
160
|
+
r.control.tooltip ? (v(), H(l, {
|
157
161
|
key: 1,
|
158
162
|
trigger: "hover",
|
159
163
|
placement: "top",
|
@@ -161,30 +165,30 @@ const Ie = {
|
|
161
165
|
title: r.control.tooltip.title
|
162
166
|
}, {
|
163
167
|
reference: f(() => [
|
164
|
-
|
168
|
+
Oe
|
165
169
|
]),
|
166
170
|
default: f(() => [
|
167
171
|
x("pre", null, W(r.control.tooltip.content), 1)
|
168
172
|
]),
|
169
173
|
_: 2
|
170
|
-
}, 1032, ["title"])) :
|
174
|
+
}, 1032, ["title"])) : $("", !0)
|
171
175
|
]),
|
172
176
|
default: f((d) => [
|
173
177
|
S(s, {
|
174
|
-
style:
|
175
|
-
rules: e(B).getRules(e(
|
176
|
-
prop: `[${e(a).name}][${e(
|
178
|
+
style: He(e(K).getStyle(r, e(R).type, e(m).type)),
|
179
|
+
rules: e(B).getRules(e(q), e(a), r, d.$index),
|
180
|
+
prop: `[${e(a).name}][${e(V)(d.row)}][${r.name}]`
|
177
181
|
}, {
|
178
182
|
default: f(() => [
|
179
183
|
S(e(ee), {
|
180
|
-
schema: e(
|
184
|
+
schema: e(O),
|
181
185
|
table: e(a),
|
182
186
|
field: r,
|
183
187
|
set: e(i),
|
184
188
|
row: d.row,
|
185
|
-
config: e(
|
189
|
+
config: e(K).getConfig(r, e(R).type, e(m).type),
|
186
190
|
onSubmit: e(ne),
|
187
|
-
onChange: (C) => e(ie)(C, e(i), e(a), r, e(
|
191
|
+
onChange: (C) => e(ie)(C, e(i), e(a), r, e(V)(d.row))
|
188
192
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onSubmit", "onChange"])
|
189
193
|
]),
|
190
194
|
_: 2
|
@@ -195,16 +199,16 @@ const Ie = {
|
|
195
199
|
]),
|
196
200
|
_: 1
|
197
201
|
}, 8, ["max-height", "data", "onSelectionChange"]),
|
198
|
-
e(a).main ?
|
202
|
+
e(a).main ? $("", !0) : (v(), F("div", {
|
199
203
|
key: 0,
|
200
204
|
ref_key: "footerRef",
|
201
|
-
ref:
|
205
|
+
ref: A,
|
202
206
|
class: "table-footer"
|
203
207
|
}, [
|
204
|
-
x("div",
|
205
|
-
(v(),
|
208
|
+
x("div", Te, [
|
209
|
+
(v(), H($e(e(_e)), {
|
206
210
|
ref_key: "operationRef",
|
207
|
-
ref:
|
211
|
+
ref: E,
|
208
212
|
module: e(R),
|
209
213
|
table: e(a),
|
210
214
|
set: e(i),
|
@@ -215,7 +219,7 @@ const Ie = {
|
|
215
219
|
onRemove: e(fe)
|
216
220
|
}, null, 40, ["module", "table", "set", "selection", "onAdd", "onInsert", "onCopy", "onRemove"]))
|
217
221
|
]),
|
218
|
-
x("div",
|
222
|
+
x("div", qe, [
|
219
223
|
S(we, {
|
220
224
|
background: "",
|
221
225
|
layout: e(g).layout,
|
@@ -232,5 +236,5 @@ const Ie = {
|
|
232
236
|
}
|
233
237
|
});
|
234
238
|
export {
|
235
|
-
|
239
|
+
Ue as default
|
236
240
|
};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { defineComponent as x, toRefs as v, ref as p, computed as V, resolveComponent as H, openBlock as r, createElementBlock as s, Fragment as y, unref as l, createBlock as B, isRef as f, createCommentVNode as C, nextTick as R, createElementVNode as T } from "vue";
|
2
|
+
import "./vendor-@monaco-editor-DKC4UNw_.js";
|
3
|
+
import "./vendor-moment-h96o7c8I.js";
|
4
|
+
import "xlsx-js-style";
|
5
|
+
import { H as g } from "./main-B8RC13GR.js";
|
6
|
+
import "./vendor-crypto-js-ftX_aBC-.js";
|
7
|
+
const b = ["innerHTML"], w = /* @__PURE__ */ T("i", { class: "fa fa-edit" }, null, -1), E = [
|
8
|
+
w
|
9
|
+
], A = /* @__PURE__ */ x({
|
10
|
+
__name: "Text",
|
11
|
+
props: {
|
12
|
+
schema: {},
|
13
|
+
table: {},
|
14
|
+
field: {},
|
15
|
+
set: {},
|
16
|
+
row: {},
|
17
|
+
modelValue: {}
|
18
|
+
},
|
19
|
+
setup(d) {
|
20
|
+
let c = d, { table: L, field: i, set: M, row: N, modelValue: _ } = v(c), t = p(!1), u = p(), a = () => {
|
21
|
+
t.value = !0, R(() => {
|
22
|
+
u.value.focus();
|
23
|
+
});
|
24
|
+
}, o = V(() => {
|
25
|
+
let m = g.getHtml(_.value);
|
26
|
+
return (i.value.control.prefix || "") + (m || "") + (i.value.control.suffix || "");
|
27
|
+
});
|
28
|
+
return (m, e) => {
|
29
|
+
const k = H("el-input");
|
30
|
+
return r(), s(y, null, [
|
31
|
+
l(t) ? (r(), B(k, {
|
32
|
+
key: 1,
|
33
|
+
ref_key: "editRef",
|
34
|
+
ref: u,
|
35
|
+
type: "text",
|
36
|
+
onBlur: e[0] || (e[0] = (n) => f(t) ? t.value = !1 : t = !1),
|
37
|
+
modelValue: l(o),
|
38
|
+
"onUpdate:modelValue": e[1] || (e[1] = (n) => f(o) ? o.value = n : o = n)
|
39
|
+
}, null, 8, ["modelValue"])) : (r(), s("span", {
|
40
|
+
key: 0,
|
41
|
+
class: "text-text",
|
42
|
+
innerHTML: l(o)
|
43
|
+
}, null, 8, b)),
|
44
|
+
l(t) ? C("", !0) : (r(), s("span", {
|
45
|
+
key: 2,
|
46
|
+
class: "edit-inline",
|
47
|
+
onClick: e[2] || (e[2] = //@ts-ignore
|
48
|
+
(...n) => l(a) && l(a)(...n))
|
49
|
+
}, E))
|
50
|
+
], 64);
|
51
|
+
};
|
52
|
+
}
|
53
|
+
});
|
54
|
+
export {
|
55
|
+
A as _
|
56
|
+
};
|