@topdatasec/report 1.1.35 → 1.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/t-report-ui.es.js +391 -391
- package/lib/t-report-ui.umd.js +4 -4
- package/package.json +1 -1
package/lib/t-report-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, computed as
|
|
1
|
+
import { defineComponent as q, computed as Ee, resolveComponent as h, openBlock as v, createElementBlock as D, createElementVNode as M, Fragment as G, renderList as J, normalizeClass as Je, createBlock as U, createCommentVNode as ee, withDirectives as no, createTextVNode as X, toDisplayString as Ce, unref as V, ref as P, createVNode as d, toRef as cn, withCtx as m, onMounted as dt, normalizeProps as So, guardReactiveProps as Oo, isVNode as lo, normalizeStyle as An, useCssVars as fn, nextTick as bt, onBeforeUnmount as ko, watch as Bt, mergeModels as Vo, useModel as Io, resolveDirective as Bo, resolveDynamicComponent as Dt, getCurrentInstance as mn, h as Rt, isRef as gn, withModifiers as hn, shallowRef as vn, onUnmounted as bn, reactive as Ne, TransitionGroup as _n, mergeProps as wn, createSlots as yn } from "vue";
|
|
2
2
|
import { defineStore as Cn, storeToRefs as En } from "pinia";
|
|
3
3
|
import "echarts-wordcloud";
|
|
4
4
|
import * as Dn from "echarts";
|
|
@@ -6,7 +6,7 @@ import { ElNotification as xn, ElMessage as Lo } from "element-plus";
|
|
|
6
6
|
import { Toolbar as Tn, Editor as Sn } from "@wangeditor/editor-for-vue";
|
|
7
7
|
import { CircleClose as On } from "@element-plus/icons-vue";
|
|
8
8
|
import { TdsTable as Po } from "topdatasec-ui";
|
|
9
|
-
const _e = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), xt = (t) => JSON.parse(JSON.stringify(t)), kn = (t) => t.replace(/-([a-z])/g, (e, o) => o.toUpperCase()).replace(/^[a-z]/, (e) => e.toUpperCase()),
|
|
9
|
+
const _e = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), xt = (t) => JSON.parse(JSON.stringify(t)), kn = (t) => t.replace(/-([a-z])/g, (e, o) => o.toUpperCase()).replace(/^[a-z]/, (e) => e.toUpperCase()), we = (t, e) => t[kn(e)], Vn = (t) => window.$http.request({
|
|
10
10
|
url: `${window.$reportURL}/tds/report/demo/get`,
|
|
11
11
|
method: "get",
|
|
12
12
|
params: t,
|
|
@@ -347,9 +347,9 @@ const _e = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Mat
|
|
|
347
347
|
trigger: "item",
|
|
348
348
|
show: !0,
|
|
349
349
|
formatter: (i) => {
|
|
350
|
-
const { name: u, value:
|
|
350
|
+
const { name: u, value: p } = i;
|
|
351
351
|
return `<div style="color: ${i.color}; font-size: 14px;">${u} </div>
|
|
352
|
-
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${
|
|
352
|
+
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${p}</span></div>`;
|
|
353
353
|
}
|
|
354
354
|
},
|
|
355
355
|
title: {
|
|
@@ -366,8 +366,8 @@ const _e = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Mat
|
|
|
366
366
|
show: n,
|
|
367
367
|
left: "70%",
|
|
368
368
|
formatter: (i) => {
|
|
369
|
-
var
|
|
370
|
-
const u = (
|
|
369
|
+
var p;
|
|
370
|
+
const u = (p = s.series[0]) == null ? void 0 : p.data.find((c) => c.name === i).value;
|
|
371
371
|
return ` ${i} | ${u}`;
|
|
372
372
|
},
|
|
373
373
|
textStyle: {
|
|
@@ -1031,7 +1031,7 @@ const _e = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Mat
|
|
|
1031
1031
|
data: { default: () => [] }
|
|
1032
1032
|
},
|
|
1033
1033
|
setup(t) {
|
|
1034
|
-
const e = t, o =
|
|
1034
|
+
const e = t, o = Ee(() => e.data.filter((n) => ["h2", "h3", "h4"].includes(n.type)));
|
|
1035
1035
|
return (n, a) => {
|
|
1036
1036
|
const l = h("el-divider");
|
|
1037
1037
|
return v(), D("div", dl, [
|
|
@@ -1049,7 +1049,7 @@ const _e = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Mat
|
|
|
1049
1049
|
href: "#" + r.id,
|
|
1050
1050
|
title: r.data
|
|
1051
1051
|
}, [
|
|
1052
|
-
X(
|
|
1052
|
+
X(Ce(r.data), 1)
|
|
1053
1053
|
], 8, pl)), [
|
|
1054
1054
|
[V(ul)]
|
|
1055
1055
|
])
|
|
@@ -1071,7 +1071,7 @@ const et = (t, e) => {
|
|
|
1071
1071
|
value: {}
|
|
1072
1072
|
},
|
|
1073
1073
|
setup(t) {
|
|
1074
|
-
const e = t, o =
|
|
1074
|
+
const e = t, o = Ee(() => e.value.options);
|
|
1075
1075
|
return P(!1), (n, a) => {
|
|
1076
1076
|
const l = h("TdsChart");
|
|
1077
1077
|
return v(), D("div", fl, [d(l, {
|
|
@@ -1085,7 +1085,7 @@ const et = (t, e) => {
|
|
|
1085
1085
|
value: {}
|
|
1086
1086
|
},
|
|
1087
1087
|
setup(t) {
|
|
1088
|
-
const e = t, o =
|
|
1088
|
+
const e = t, o = Ee(() => e.value.options);
|
|
1089
1089
|
return (n, a) => {
|
|
1090
1090
|
const l = h("TdsChart");
|
|
1091
1091
|
return v(), D("div", ml, [
|
|
@@ -1099,7 +1099,7 @@ const et = (t, e) => {
|
|
|
1099
1099
|
value: {}
|
|
1100
1100
|
},
|
|
1101
1101
|
setup(t) {
|
|
1102
|
-
const e = t, o =
|
|
1102
|
+
const e = t, o = Ee(() => e.value.options);
|
|
1103
1103
|
return (n, a) => {
|
|
1104
1104
|
const l = h("TdsChart");
|
|
1105
1105
|
return v(), D("div", gl, [
|
|
@@ -1110,10 +1110,7 @@ const et = (t, e) => {
|
|
|
1110
1110
|
}), hl = {
|
|
1111
1111
|
key: 0,
|
|
1112
1112
|
class: "flex items-center"
|
|
1113
|
-
}, vl = {
|
|
1114
|
-
key: 0,
|
|
1115
|
-
style: { width: "50px" }
|
|
1116
|
-
}, jt = /* @__PURE__ */ q({
|
|
1113
|
+
}, vl = { key: 0 }, bl = { style: { "flex-grow": "1", "margin-left": "10px" } }, jt = /* @__PURE__ */ q({
|
|
1117
1114
|
__name: "ReportSelect",
|
|
1118
1115
|
props: {
|
|
1119
1116
|
value: {},
|
|
@@ -1121,30 +1118,32 @@ const et = (t, e) => {
|
|
|
1121
1118
|
},
|
|
1122
1119
|
emits: ["change"],
|
|
1123
1120
|
setup(t, { emit: e }) {
|
|
1124
|
-
const o = e, n = (r) => {
|
|
1125
|
-
o("change",
|
|
1121
|
+
const o = e, n = (r, s) => {
|
|
1122
|
+
o("change", s);
|
|
1126
1123
|
}, l = cn(t, "value");
|
|
1127
1124
|
return (r, s) => {
|
|
1128
1125
|
const i = h("el-option"), u = h("el-select");
|
|
1129
1126
|
return l.value.data ? (v(), D("div", hl, [
|
|
1130
|
-
r.label ? (v(), D("
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1127
|
+
r.label ? (v(), D("span", vl, Ce(r.label), 1)) : ee("", !0),
|
|
1128
|
+
M("div", bl, [
|
|
1129
|
+
d(u, {
|
|
1130
|
+
modelValue: l.value.value,
|
|
1131
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => l.value.value = p),
|
|
1132
|
+
multiple: "",
|
|
1133
|
+
style: { width: "100%" },
|
|
1134
|
+
onChange: s[1] || (s[1] = (p) => n(p, l.value)),
|
|
1135
|
+
placeholder: "全部"
|
|
1136
|
+
}, {
|
|
1137
|
+
default: m(() => [
|
|
1138
|
+
(v(!0), D(G, null, J(l.value.data, (p) => (v(), U(i, {
|
|
1139
|
+
key: p.data,
|
|
1140
|
+
label: p.label,
|
|
1141
|
+
value: p.data
|
|
1142
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
1143
|
+
]),
|
|
1144
|
+
_: 1
|
|
1145
|
+
}, 8, ["modelValue"])
|
|
1146
|
+
])
|
|
1148
1147
|
])) : ee("", !0);
|
|
1149
1148
|
};
|
|
1150
1149
|
}
|
|
@@ -1166,7 +1165,7 @@ const et = (t, e) => {
|
|
|
1166
1165
|
return v(), D("div", null, [
|
|
1167
1166
|
d(u, {
|
|
1168
1167
|
modelValue: l.value,
|
|
1169
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1168
|
+
"onUpdate:modelValue": i[0] || (i[0] = (p) => l.value = p),
|
|
1170
1169
|
type: "datetimerange",
|
|
1171
1170
|
placeholder: "Pick a Date",
|
|
1172
1171
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
@@ -1178,7 +1177,7 @@ const et = (t, e) => {
|
|
|
1178
1177
|
};
|
|
1179
1178
|
}
|
|
1180
1179
|
});
|
|
1181
|
-
function
|
|
1180
|
+
function _l(t) {
|
|
1182
1181
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !lo(t);
|
|
1183
1182
|
}
|
|
1184
1183
|
const qo = /* @__PURE__ */ q({
|
|
@@ -1194,7 +1193,7 @@ const qo = /* @__PURE__ */ q({
|
|
|
1194
1193
|
border: e.value.options.border,
|
|
1195
1194
|
"show-header": !!e.value.options.showHeader,
|
|
1196
1195
|
stripe: e.value.options.stripe
|
|
1197
|
-
},
|
|
1196
|
+
}, _l(a = n.showColumn.map((l) => e.value.options.showColumn[l.key] === !0 ? d(h("el-table-column"), {
|
|
1198
1197
|
prop: l.key,
|
|
1199
1198
|
label: l.name
|
|
1200
1199
|
}, null) : null)) ? a : {
|
|
@@ -1222,15 +1221,15 @@ const qo = /* @__PURE__ */ q({
|
|
|
1222
1221
|
};
|
|
1223
1222
|
return (n, a) => (v(), D("div", {
|
|
1224
1223
|
style: An(o())
|
|
1225
|
-
},
|
|
1224
|
+
}, Ce(n.value.data), 5));
|
|
1226
1225
|
}
|
|
1227
|
-
}),
|
|
1226
|
+
}), wl = { class: "chart-components" }, Xo = /* @__PURE__ */ q({
|
|
1228
1227
|
__name: "ReportChart",
|
|
1229
1228
|
props: {
|
|
1230
1229
|
value: {}
|
|
1231
1230
|
},
|
|
1232
1231
|
setup(t) {
|
|
1233
|
-
const e = t, o =
|
|
1232
|
+
const e = t, o = Ee(() => e.value), n = Ee(() => {
|
|
1234
1233
|
const a = o.value.options;
|
|
1235
1234
|
if (o.value.type === "bar") {
|
|
1236
1235
|
a.series = Lt([]).series;
|
|
@@ -1246,7 +1245,7 @@ const qo = /* @__PURE__ */ q({
|
|
|
1246
1245
|
if (o.value.type === "pie" && (a.series = ao({ isLegend: !0 }).series, Zn({ chartOption: a, data: o.value.data })), o.value.type === "line") {
|
|
1247
1246
|
let l = [];
|
|
1248
1247
|
o.value.data.forEach((i) => {
|
|
1249
|
-
l = i.data.map((u,
|
|
1248
|
+
l = i.data.map((u, p) => ({ name: u.name, value: "value" + p }));
|
|
1250
1249
|
});
|
|
1251
1250
|
const r = {
|
|
1252
1251
|
name: "name",
|
|
@@ -1255,8 +1254,8 @@ const qo = /* @__PURE__ */ q({
|
|
|
1255
1254
|
const u = {
|
|
1256
1255
|
name: i.label
|
|
1257
1256
|
};
|
|
1258
|
-
return l.forEach((
|
|
1259
|
-
u[
|
|
1257
|
+
return l.forEach((p, c) => {
|
|
1258
|
+
u[p.value] = i.data[c].value;
|
|
1260
1259
|
}), u;
|
|
1261
1260
|
});
|
|
1262
1261
|
console.log(Tt([], r), "chartsLine([], params)"), a.series = Tt([], r).series, tl(a, s, r);
|
|
@@ -1265,13 +1264,13 @@ const qo = /* @__PURE__ */ q({
|
|
|
1265
1264
|
});
|
|
1266
1265
|
return (a, l) => {
|
|
1267
1266
|
const r = h("TdsChart");
|
|
1268
|
-
return v(), D("div",
|
|
1267
|
+
return v(), D("div", wl, [
|
|
1269
1268
|
d(r, { option: n.value }, null, 8, ["option"])
|
|
1270
1269
|
]);
|
|
1271
1270
|
};
|
|
1272
1271
|
}
|
|
1273
1272
|
});
|
|
1274
|
-
function
|
|
1273
|
+
function yl(t) {
|
|
1275
1274
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !lo(t);
|
|
1276
1275
|
}
|
|
1277
1276
|
const Go = /* @__PURE__ */ q({
|
|
@@ -1287,7 +1286,7 @@ const Go = /* @__PURE__ */ q({
|
|
|
1287
1286
|
border: e.value.options.border,
|
|
1288
1287
|
column: e.value.options.column,
|
|
1289
1288
|
direction: e.value.options.direction
|
|
1290
|
-
},
|
|
1289
|
+
}, yl(a = n.showColumn.map((l) => d(h("el-descriptions-item"), {
|
|
1291
1290
|
label: l.name
|
|
1292
1291
|
}, {
|
|
1293
1292
|
default: () => [d("div", {
|
|
@@ -1299,7 +1298,7 @@ const Go = /* @__PURE__ */ q({
|
|
|
1299
1298
|
};
|
|
1300
1299
|
return (n, a) => (v(), D("div", null, [d(o, So(Oo(n.value)), null, 16)]));
|
|
1301
1300
|
}
|
|
1302
|
-
}),
|
|
1301
|
+
}), Cl = /* @__PURE__ */ q({
|
|
1303
1302
|
__name: "WordCloudChart",
|
|
1304
1303
|
props: {
|
|
1305
1304
|
value: { default: null },
|
|
@@ -1384,21 +1383,21 @@ const Go = /* @__PURE__ */ q({
|
|
|
1384
1383
|
}, null, 512));
|
|
1385
1384
|
}
|
|
1386
1385
|
});
|
|
1387
|
-
const jo = /* @__PURE__ */ et(
|
|
1386
|
+
const jo = /* @__PURE__ */ et(Cl, [["__scopeId", "data-v-2c52b725"]]), El = {
|
|
1388
1387
|
class: "editor-box"
|
|
1389
|
-
},
|
|
1388
|
+
}, Dl = {
|
|
1390
1389
|
class: "editor",
|
|
1391
1390
|
id: "editor",
|
|
1392
1391
|
style: {
|
|
1393
1392
|
width: "100%"
|
|
1394
1393
|
}
|
|
1395
|
-
}, Dl = {
|
|
1396
|
-
class: "editor-content flex flex-start"
|
|
1397
1394
|
}, xl = {
|
|
1395
|
+
class: "editor-content flex flex-start"
|
|
1396
|
+
}, Tl = {
|
|
1398
1397
|
style: {
|
|
1399
1398
|
"margin-left": "auto"
|
|
1400
1399
|
}
|
|
1401
|
-
},
|
|
1400
|
+
}, Sl = ["id"], Ol = ["innerHTML"], kl = /* @__PURE__ */ q({
|
|
1402
1401
|
__name: "index",
|
|
1403
1402
|
props: /* @__PURE__ */ Vo({
|
|
1404
1403
|
reportId: {
|
|
@@ -1424,15 +1423,15 @@ const jo = /* @__PURE__ */ et(yl, [["__scopeId", "data-v-2c52b725"]]), Cl = {
|
|
|
1424
1423
|
WordCloudChart: jo
|
|
1425
1424
|
}, n = xe(), a = t, l = Io(t, "modelValue"), r = P([]), s = P([]);
|
|
1426
1425
|
P([]);
|
|
1427
|
-
const i = P({}), u = /* @__PURE__ */ new Date(),
|
|
1428
|
-
|
|
1429
|
-
function
|
|
1426
|
+
const i = P({}), u = /* @__PURE__ */ new Date(), p = new Date(u);
|
|
1427
|
+
p.setMonth(u.getMonth() - 1);
|
|
1428
|
+
function c(O) {
|
|
1430
1429
|
return O < 10 ? "0" + O : O;
|
|
1431
1430
|
}
|
|
1432
1431
|
function f(O) {
|
|
1433
|
-
return O.getFullYear() + "-" +
|
|
1432
|
+
return O.getFullYear() + "-" + c(O.getMonth() + 1) + "-" + c(O.getDate()) + " " + c(O.getHours()) + ":" + c(O.getMinutes()) + ":" + c(O.getSeconds());
|
|
1434
1433
|
}
|
|
1435
|
-
const g = P(f(
|
|
1434
|
+
const g = P(f(p)), C = P(f(u));
|
|
1436
1435
|
function b() {
|
|
1437
1436
|
l.value = "table";
|
|
1438
1437
|
}
|
|
@@ -1475,16 +1474,16 @@ const jo = /* @__PURE__ */ et(yl, [["__scopeId", "data-v-2c52b725"]]), Cl = {
|
|
|
1475
1474
|
Bt(() => a.reportId, () => {
|
|
1476
1475
|
Y();
|
|
1477
1476
|
});
|
|
1478
|
-
const le = (O) => O === "h2" || O === "h3" || O === "h4" ?
|
|
1477
|
+
const le = (O) => O === "h2" || O === "h3" || O === "h4" ? we(o, "ReportText") : O === "bar" || O === "pie" || O === "line" ? we(o, "ReportChart") : O === "wordcloud" ? we(o, "WordCloudChart") : O ? we(o, O) : d(k, null, null);
|
|
1479
1478
|
return (O, Q) => {
|
|
1480
1479
|
const ae = h("el-button"), z = h("el-card"), ge = Bo("loading");
|
|
1481
1480
|
return no((v(), U(z, {
|
|
1482
1481
|
class: "editor view",
|
|
1483
1482
|
"element-loading-text": "加载中..."
|
|
1484
1483
|
}, {
|
|
1485
|
-
default: m(() => [M("div",
|
|
1484
|
+
default: m(() => [M("div", El, [d(Al, {
|
|
1486
1485
|
data: s.value
|
|
1487
|
-
}, null, 8, ["data"]), M("div",
|
|
1486
|
+
}, null, 8, ["data"]), M("div", Dl, [M("div", xl, [(v(!0), D(G, null, J(r.value, (N) => (v(), D("div", {
|
|
1488
1487
|
class: "item-input",
|
|
1489
1488
|
style: {
|
|
1490
1489
|
width: "22%"
|
|
@@ -1499,7 +1498,7 @@ const jo = /* @__PURE__ */ et(yl, [["__scopeId", "data-v-2c52b725"]]), Cl = {
|
|
|
1499
1498
|
key: 1,
|
|
1500
1499
|
onChange: S,
|
|
1501
1500
|
value: N
|
|
1502
|
-
}, null, 8, ["value"])) : ee("", !0)]))), 128)), M("div",
|
|
1501
|
+
}, null, 8, ["value"])) : ee("", !0)]))), 128)), M("div", Tl, [Q[5] || (Q[5] = M("span", {
|
|
1503
1502
|
class: "font-export"
|
|
1504
1503
|
}, "导出为:", -1)), d(ae, {
|
|
1505
1504
|
link: "",
|
|
@@ -1556,34 +1555,34 @@ const jo = /* @__PURE__ */ et(yl, [["__scopeId", "data-v-2c52b725"]]), Cl = {
|
|
|
1556
1555
|
class: Je(["editor" + N.type]),
|
|
1557
1556
|
value: N
|
|
1558
1557
|
}, {
|
|
1559
|
-
default: m(() => [X(
|
|
1558
|
+
default: m(() => [X(Ce(N.data), 1)]),
|
|
1560
1559
|
_: 2
|
|
1561
1560
|
}, 1032, ["class", "value"])) : (v(), D("p", {
|
|
1562
1561
|
key: 1,
|
|
1563
1562
|
innerHTML: N.data
|
|
1564
|
-
}, null, 8,
|
|
1563
|
+
}, null, 8, Ol))], 10, Sl))), 128))])])]),
|
|
1565
1564
|
_: 1
|
|
1566
1565
|
})), [[ge, e.value]]);
|
|
1567
1566
|
};
|
|
1568
1567
|
}
|
|
1569
1568
|
});
|
|
1570
|
-
const Wo = /* @__PURE__ */ et(
|
|
1569
|
+
const Wo = /* @__PURE__ */ et(kl, [["__scopeId", "data-v-e0e122eb"]]);
|
|
1571
1570
|
/*!
|
|
1572
1571
|
* vue-draggable-next v2.3.0
|
|
1573
1572
|
* (c) 2025 Anish George
|
|
1574
1573
|
* @license MIT
|
|
1575
1574
|
*/
|
|
1576
|
-
function
|
|
1575
|
+
function Vl() {
|
|
1577
1576
|
return typeof window < "u" ? window.console : global.console;
|
|
1578
1577
|
}
|
|
1579
|
-
const
|
|
1580
|
-
function
|
|
1578
|
+
const Il = Vl();
|
|
1579
|
+
function Bl(t) {
|
|
1581
1580
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1582
1581
|
return function(n) {
|
|
1583
1582
|
return e[n] || (e[n] = t(n));
|
|
1584
1583
|
};
|
|
1585
1584
|
}
|
|
1586
|
-
const
|
|
1585
|
+
const Ll = /-(\w)/g, fo = Bl((t) => t.replace(Ll, (e, o) => o ? o.toUpperCase() : ""));
|
|
1587
1586
|
function Ut(t) {
|
|
1588
1587
|
t.parentElement !== null && t.parentElement.removeChild(t);
|
|
1589
1588
|
}
|
|
@@ -1611,7 +1610,7 @@ function Ve(t) {
|
|
|
1611
1610
|
for (var e = 1; e < arguments.length; e++) {
|
|
1612
1611
|
var o = arguments[e] != null ? arguments[e] : {};
|
|
1613
1612
|
e % 2 ? go(Object(o), !0).forEach(function(n) {
|
|
1614
|
-
|
|
1613
|
+
Pl(t, n, o[n]);
|
|
1615
1614
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : go(Object(o)).forEach(function(n) {
|
|
1616
1615
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(o, n));
|
|
1617
1616
|
});
|
|
@@ -1626,7 +1625,7 @@ function _t(t) {
|
|
|
1626
1625
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1627
1626
|
}, _t(t);
|
|
1628
1627
|
}
|
|
1629
|
-
function
|
|
1628
|
+
function Pl(t, e, o) {
|
|
1630
1629
|
return e in t ? Object.defineProperty(t, e, {
|
|
1631
1630
|
value: o,
|
|
1632
1631
|
enumerable: !0,
|
|
@@ -1644,7 +1643,7 @@ function Be() {
|
|
|
1644
1643
|
return t;
|
|
1645
1644
|
}, Be.apply(this, arguments);
|
|
1646
1645
|
}
|
|
1647
|
-
function
|
|
1646
|
+
function Rl(t, e) {
|
|
1648
1647
|
if (t == null)
|
|
1649
1648
|
return {};
|
|
1650
1649
|
var o = {}, n = Object.keys(t), a, l;
|
|
@@ -1652,10 +1651,10 @@ function Pl(t, e) {
|
|
|
1652
1651
|
a = n[l], !(e.indexOf(a) >= 0) && (o[a] = t[a]);
|
|
1653
1652
|
return o;
|
|
1654
1653
|
}
|
|
1655
|
-
function
|
|
1654
|
+
function Ul(t, e) {
|
|
1656
1655
|
if (t == null)
|
|
1657
1656
|
return {};
|
|
1658
|
-
var o =
|
|
1657
|
+
var o = Rl(t, e), n, a;
|
|
1659
1658
|
if (Object.getOwnPropertySymbols) {
|
|
1660
1659
|
var l = Object.getOwnPropertySymbols(t);
|
|
1661
1660
|
for (a = 0; a < l.length; a++)
|
|
@@ -1663,12 +1662,12 @@ function Rl(t, e) {
|
|
|
1663
1662
|
}
|
|
1664
1663
|
return o;
|
|
1665
1664
|
}
|
|
1666
|
-
var
|
|
1665
|
+
var Ml = "1.14.0";
|
|
1667
1666
|
function Ie(t) {
|
|
1668
1667
|
if (typeof window < "u" && window.navigator)
|
|
1669
1668
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
1670
1669
|
}
|
|
1671
|
-
var Le = Ie(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), pt = Ie(/Edge/i), ho = Ie(/firefox/i), at = Ie(/safari/i) && !Ie(/chrome/i) && !Ie(/android/i), Jo = Ie(/iP(ad|od|hone)/i),
|
|
1670
|
+
var Le = Ie(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), pt = Ie(/Edge/i), ho = Ie(/firefox/i), at = Ie(/safari/i) && !Ie(/chrome/i) && !Ie(/android/i), Jo = Ie(/iP(ad|od|hone)/i), Fl = Ie(/chrome/i) && Ie(/android/i), $o = {
|
|
1672
1671
|
capture: !1,
|
|
1673
1672
|
passive: !1
|
|
1674
1673
|
};
|
|
@@ -1694,7 +1693,7 @@ function St(t, e) {
|
|
|
1694
1693
|
return !1;
|
|
1695
1694
|
}
|
|
1696
1695
|
}
|
|
1697
|
-
function
|
|
1696
|
+
function Nl(t) {
|
|
1698
1697
|
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
1699
1698
|
}
|
|
1700
1699
|
function Oe(t, e, o, n) {
|
|
@@ -1705,7 +1704,7 @@ function Oe(t, e, o, n) {
|
|
|
1705
1704
|
return t;
|
|
1706
1705
|
if (t === o)
|
|
1707
1706
|
break;
|
|
1708
|
-
} while (t =
|
|
1707
|
+
} while (t = Nl(t));
|
|
1709
1708
|
}
|
|
1710
1709
|
return null;
|
|
1711
1710
|
}
|
|
@@ -1755,8 +1754,8 @@ function ke() {
|
|
|
1755
1754
|
}
|
|
1756
1755
|
function ne(t, e, o, n, a) {
|
|
1757
1756
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
1758
|
-
var l, r, s, i, u,
|
|
1759
|
-
if (t !== window && t.parentNode && t !== ke() ? (l = t.getBoundingClientRect(), r = l.top, s = l.left, i = l.bottom, u = l.right,
|
|
1757
|
+
var l, r, s, i, u, p, c;
|
|
1758
|
+
if (t !== window && t.parentNode && t !== ke() ? (l = t.getBoundingClientRect(), r = l.top, s = l.left, i = l.bottom, u = l.right, p = l.height, c = l.width) : (r = 0, s = 0, i = window.innerHeight, u = window.innerWidth, p = window.innerHeight, c = window.innerWidth), (e || o) && t !== window && (a = a || t.parentNode, !Le))
|
|
1760
1759
|
do
|
|
1761
1760
|
if (a && a.getBoundingClientRect && (I(a, "transform") !== "none" || o && I(a, "position") !== "static")) {
|
|
1762
1761
|
var f = a.getBoundingClientRect();
|
|
@@ -1766,15 +1765,15 @@ function ne(t, e, o, n, a) {
|
|
|
1766
1765
|
while (a = a.parentNode);
|
|
1767
1766
|
if (n && t !== window) {
|
|
1768
1767
|
var g = $e(a || t), C = g && g.a, b = g && g.d;
|
|
1769
|
-
g && (r /= b, s /= C,
|
|
1768
|
+
g && (r /= b, s /= C, c /= C, p /= b, i = r + p, u = s + c);
|
|
1770
1769
|
}
|
|
1771
1770
|
return {
|
|
1772
1771
|
top: r,
|
|
1773
1772
|
left: s,
|
|
1774
1773
|
bottom: i,
|
|
1775
1774
|
right: u,
|
|
1776
|
-
width:
|
|
1777
|
-
height:
|
|
1775
|
+
width: c,
|
|
1776
|
+
height: p
|
|
1778
1777
|
};
|
|
1779
1778
|
}
|
|
1780
1779
|
}
|
|
@@ -1805,7 +1804,7 @@ function so(t, e) {
|
|
|
1805
1804
|
o = o.previousElementSibling;
|
|
1806
1805
|
return o || null;
|
|
1807
1806
|
}
|
|
1808
|
-
function
|
|
1807
|
+
function De(t, e) {
|
|
1809
1808
|
var o = 0;
|
|
1810
1809
|
if (!t || !t.parentNode)
|
|
1811
1810
|
return -1;
|
|
@@ -1822,7 +1821,7 @@ function _o(t) {
|
|
|
1822
1821
|
} while (t !== n && (t = t.parentNode));
|
|
1823
1822
|
return [e, o];
|
|
1824
1823
|
}
|
|
1825
|
-
function
|
|
1824
|
+
function Ql(t, e) {
|
|
1826
1825
|
for (var o in t)
|
|
1827
1826
|
if (t.hasOwnProperty(o)) {
|
|
1828
1827
|
for (var n in e)
|
|
@@ -1849,7 +1848,7 @@ function Fe(t, e) {
|
|
|
1849
1848
|
while (o = o.parentNode);
|
|
1850
1849
|
return ke();
|
|
1851
1850
|
}
|
|
1852
|
-
function
|
|
1851
|
+
function Kl(t, e) {
|
|
1853
1852
|
if (t && e)
|
|
1854
1853
|
for (var o in e)
|
|
1855
1854
|
e.hasOwnProperty(o) && (t[o] = e[o]);
|
|
@@ -1869,7 +1868,7 @@ function en(t, e) {
|
|
|
1869
1868
|
}
|
|
1870
1869
|
};
|
|
1871
1870
|
}
|
|
1872
|
-
function
|
|
1871
|
+
function Hl() {
|
|
1873
1872
|
clearTimeout(rt), rt = void 0;
|
|
1874
1873
|
}
|
|
1875
1874
|
function tn(t, e, o) {
|
|
@@ -1879,8 +1878,8 @@ function on(t) {
|
|
|
1879
1878
|
var e = window.Polymer, o = window.jQuery || window.Zepto;
|
|
1880
1879
|
return e && e.dom ? e.dom(t).cloneNode(!0) : o ? o(t).clone(!0)[0] : t.cloneNode(!0);
|
|
1881
1880
|
}
|
|
1882
|
-
var
|
|
1883
|
-
function
|
|
1881
|
+
var ye = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1882
|
+
function zl() {
|
|
1884
1883
|
var t = [], e;
|
|
1885
1884
|
return {
|
|
1886
1885
|
captureAnimationState: function() {
|
|
@@ -1906,7 +1905,7 @@ function Hl() {
|
|
|
1906
1905
|
t.push(n);
|
|
1907
1906
|
},
|
|
1908
1907
|
removeAnimationState: function(n) {
|
|
1909
|
-
t.splice(
|
|
1908
|
+
t.splice(Ql(t, {
|
|
1910
1909
|
target: n
|
|
1911
1910
|
}), 1);
|
|
1912
1911
|
},
|
|
@@ -1918,9 +1917,9 @@ function Hl() {
|
|
|
1918
1917
|
}
|
|
1919
1918
|
var l = !1, r = 0;
|
|
1920
1919
|
t.forEach(function(s) {
|
|
1921
|
-
var i = 0, u = s.target,
|
|
1922
|
-
b && (
|
|
1923
|
-
(C.top -
|
|
1920
|
+
var i = 0, u = s.target, p = u.fromRect, c = ne(u), f = u.prevFromRect, g = u.prevToRect, C = s.rect, b = $e(u, !0);
|
|
1921
|
+
b && (c.top -= b.f, c.left -= b.e), u.toRect = c, u.thisAnimationDuration && Mt(f, c) && !Mt(p, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1922
|
+
(C.top - c.top) / (C.left - c.left) === (p.top - c.top) / (p.left - c.left) && (i = Yl(C, f, g, a.options)), Mt(c, p) || (u.prevFromRect = p, u.prevToRect = c, i || (i = a.options.animation), a.animate(u, C, c, i)), i && (l = !0, r = Math.max(r, i), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
1924
1923
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
1925
1924
|
}, i), u.thisAnimationDuration = i);
|
|
1926
1925
|
}), clearTimeout(e), l ? e = setTimeout(function() {
|
|
@@ -1930,18 +1929,18 @@ function Hl() {
|
|
|
1930
1929
|
animate: function(n, a, l, r) {
|
|
1931
1930
|
if (r) {
|
|
1932
1931
|
I(n, "transition", ""), I(n, "transform", "");
|
|
1933
|
-
var s = $e(this.el), i = s && s.a, u = s && s.d,
|
|
1934
|
-
n.animatingX = !!
|
|
1932
|
+
var s = $e(this.el), i = s && s.a, u = s && s.d, p = (a.left - l.left) / (i || 1), c = (a.top - l.top) / (u || 1);
|
|
1933
|
+
n.animatingX = !!p, n.animatingY = !!c, I(n, "transform", "translate3d(" + p + "px," + c + "px,0)"), this.forRepaintDummy = ql(n), I(n, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), I(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
1935
1934
|
I(n, "transition", ""), I(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
1936
1935
|
}, r);
|
|
1937
1936
|
}
|
|
1938
1937
|
}
|
|
1939
1938
|
};
|
|
1940
1939
|
}
|
|
1941
|
-
function
|
|
1940
|
+
function ql(t) {
|
|
1942
1941
|
return t.offsetWidth;
|
|
1943
1942
|
}
|
|
1944
|
-
function
|
|
1943
|
+
function Yl(t, e, o, n) {
|
|
1945
1944
|
return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) * n.animation;
|
|
1946
1945
|
}
|
|
1947
1946
|
var qe = [], Ft = {
|
|
@@ -1996,22 +1995,22 @@ var qe = [], Ft = {
|
|
|
1996
1995
|
}), a;
|
|
1997
1996
|
}
|
|
1998
1997
|
};
|
|
1999
|
-
function
|
|
2000
|
-
var e = t.sortable, o = t.rootEl, n = t.name, a = t.targetEl, l = t.cloneEl, r = t.toEl, s = t.fromEl, i = t.oldIndex, u = t.newIndex,
|
|
2001
|
-
if (e = e || o && o[
|
|
1998
|
+
function Xl(t) {
|
|
1999
|
+
var e = t.sortable, o = t.rootEl, n = t.name, a = t.targetEl, l = t.cloneEl, r = t.toEl, s = t.fromEl, i = t.oldIndex, u = t.newIndex, p = t.oldDraggableIndex, c = t.newDraggableIndex, f = t.originalEvent, g = t.putSortable, C = t.extraEventProperties;
|
|
2000
|
+
if (e = e || o && o[ye], !!e) {
|
|
2002
2001
|
var b, _ = e.options, T = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
2003
2002
|
window.CustomEvent && !Le && !pt ? b = new CustomEvent(n, {
|
|
2004
2003
|
bubbles: !0,
|
|
2005
2004
|
cancelable: !0
|
|
2006
|
-
}) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = r || o, b.from = s || o, b.item = a || o, b.clone = l, b.oldIndex = i, b.newIndex = u, b.oldDraggableIndex =
|
|
2005
|
+
}) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = r || o, b.from = s || o, b.item = a || o, b.clone = l, b.oldIndex = i, b.newIndex = u, b.oldDraggableIndex = p, b.newDraggableIndex = c, b.originalEvent = f, b.pullMode = g ? g.lastPutMode : void 0;
|
|
2007
2006
|
var S = Ve(Ve({}, C), ct.getEventProperties(n, e));
|
|
2008
2007
|
for (var Y in S)
|
|
2009
2008
|
b[Y] = S[Y];
|
|
2010
2009
|
o && o.dispatchEvent(b), _[T] && _[T].call(e, b);
|
|
2011
2010
|
}
|
|
2012
2011
|
}
|
|
2013
|
-
var
|
|
2014
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = n.evt, l =
|
|
2012
|
+
var Gl = ["evt"], me = function(e, o) {
|
|
2013
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = n.evt, l = Ul(n, Gl);
|
|
2015
2014
|
ct.pluginEvent.bind(B)(e, o, Ve({
|
|
2016
2015
|
dragEl: y,
|
|
2017
2016
|
parentEl: $,
|
|
@@ -2047,7 +2046,7 @@ var Xl = ["evt"], me = function(e, o) {
|
|
|
2047
2046
|
}, l));
|
|
2048
2047
|
};
|
|
2049
2048
|
function pe(t) {
|
|
2050
|
-
|
|
2049
|
+
Xl(Ve({
|
|
2051
2050
|
putSortable: re,
|
|
2052
2051
|
cloneEl: Z,
|
|
2053
2052
|
targetEl: y,
|
|
@@ -2058,7 +2057,7 @@ function pe(t) {
|
|
|
2058
2057
|
newDraggableIndex: Re
|
|
2059
2058
|
}, t));
|
|
2060
2059
|
}
|
|
2061
|
-
var y, $, R, W, ze, wt, Z, Ue, We, be, it, Re, mt, re, Ge = !1, Ot = !1, kt = [], Ke, Te, Nt, Qt, wo, yo, ot, Ye, st, ut = !1, gt = !1, yt, ue, Kt = [], Jt = !1, Vt = [], Pt = typeof document < "u", ht = Jo, Co = pt || Le ? "cssFloat" : "float",
|
|
2060
|
+
var y, $, R, W, ze, wt, Z, Ue, We, be, it, Re, mt, re, Ge = !1, Ot = !1, kt = [], Ke, Te, Nt, Qt, wo, yo, ot, Ye, st, ut = !1, gt = !1, yt, ue, Kt = [], Jt = !1, Vt = [], Pt = typeof document < "u", ht = Jo, Co = pt || Le ? "cssFloat" : "float", jl = Pt && !Fl && !Jo && "draggable" in document.createElement("div"), nn = function() {
|
|
2062
2061
|
if (Pt) {
|
|
2063
2062
|
if (Le)
|
|
2064
2063
|
return !1;
|
|
@@ -2066,23 +2065,23 @@ var y, $, R, W, ze, wt, Z, Ue, We, be, it, Re, mt, re, Ge = !1, Ot = !1, kt = []
|
|
|
2066
2065
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
2067
2066
|
}
|
|
2068
2067
|
}(), ln = function(e, o) {
|
|
2069
|
-
var n = I(e), a = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), l = Ze(e, 0, o), r = Ze(e, 1, o), s = l && I(l), i = r && I(r), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + ne(l).width,
|
|
2068
|
+
var n = I(e), a = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), l = Ze(e, 0, o), r = Ze(e, 1, o), s = l && I(l), i = r && I(r), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + ne(l).width, p = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + ne(r).width;
|
|
2070
2069
|
if (n.display === "flex")
|
|
2071
2070
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2072
2071
|
if (n.display === "grid")
|
|
2073
2072
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
2074
2073
|
if (l && s.float && s.float !== "none") {
|
|
2075
|
-
var
|
|
2076
|
-
return r && (i.clear === "both" || i.clear ===
|
|
2074
|
+
var c = s.float === "left" ? "left" : "right";
|
|
2075
|
+
return r && (i.clear === "both" || i.clear === c) ? "vertical" : "horizontal";
|
|
2077
2076
|
}
|
|
2078
|
-
return l && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= a && n[Co] === "none" || r && n[Co] === "none" && u +
|
|
2079
|
-
},
|
|
2077
|
+
return l && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= a && n[Co] === "none" || r && n[Co] === "none" && u + p > a) ? "vertical" : "horizontal";
|
|
2078
|
+
}, Wl = function(e, o, n) {
|
|
2080
2079
|
var a = n ? e.left : e.top, l = n ? e.right : e.bottom, r = n ? e.width : e.height, s = n ? o.left : o.top, i = n ? o.right : o.bottom, u = n ? o.width : o.height;
|
|
2081
2080
|
return a === s || l === i || a + r / 2 === s + u / 2;
|
|
2082
|
-
},
|
|
2081
|
+
}, Jl = function(e, o) {
|
|
2083
2082
|
var n;
|
|
2084
2083
|
return kt.some(function(a) {
|
|
2085
|
-
var l = a[
|
|
2084
|
+
var l = a[ye].options.emptyInsertThreshold;
|
|
2086
2085
|
if (!(!l || so(a))) {
|
|
2087
2086
|
var r = ne(a), s = e >= r.left - l && e <= r.right + l, i = o >= r.top - l && o <= r.bottom + l;
|
|
2088
2087
|
if (s && i)
|
|
@@ -2091,16 +2090,16 @@ var y, $, R, W, ze, wt, Z, Ue, We, be, it, Re, mt, re, Ge = !1, Ot = !1, kt = []
|
|
|
2091
2090
|
}), n;
|
|
2092
2091
|
}, an = function(e) {
|
|
2093
2092
|
function o(l, r) {
|
|
2094
|
-
return function(s, i, u,
|
|
2095
|
-
var
|
|
2096
|
-
if (l == null && (r ||
|
|
2093
|
+
return function(s, i, u, p) {
|
|
2094
|
+
var c = s.options.group.name && i.options.group.name && s.options.group.name === i.options.group.name;
|
|
2095
|
+
if (l == null && (r || c))
|
|
2097
2096
|
return !0;
|
|
2098
2097
|
if (l == null || l === !1)
|
|
2099
2098
|
return !1;
|
|
2100
2099
|
if (r && l === "clone")
|
|
2101
2100
|
return l;
|
|
2102
2101
|
if (typeof l == "function")
|
|
2103
|
-
return o(l(s, i, u,
|
|
2102
|
+
return o(l(s, i, u, p), r)(s, i, u, p);
|
|
2104
2103
|
var f = (r ? s : i).options.group.name;
|
|
2105
2104
|
return l === !0 || typeof l == "string" && l === f || l.join && l.indexOf(f) > -1;
|
|
2106
2105
|
};
|
|
@@ -2121,21 +2120,21 @@ Pt && document.addEventListener("click", function(t) {
|
|
|
2121
2120
|
var He = function(e) {
|
|
2122
2121
|
if (y) {
|
|
2123
2122
|
e = e.touches ? e.touches[0] : e;
|
|
2124
|
-
var o =
|
|
2123
|
+
var o = Jl(e.clientX, e.clientY);
|
|
2125
2124
|
if (o) {
|
|
2126
2125
|
var n = {};
|
|
2127
2126
|
for (var a in e)
|
|
2128
2127
|
e.hasOwnProperty(a) && (n[a] = e[a]);
|
|
2129
|
-
n.target = n.rootEl = o, n.preventDefault = void 0, n.stopPropagation = void 0, o[
|
|
2128
|
+
n.target = n.rootEl = o, n.preventDefault = void 0, n.stopPropagation = void 0, o[ye]._onDragOver(n);
|
|
2130
2129
|
}
|
|
2131
2130
|
}
|
|
2132
|
-
},
|
|
2133
|
-
y && y.parentNode[
|
|
2131
|
+
}, $l = function(e) {
|
|
2132
|
+
y && y.parentNode[ye]._isOutsideThisEl(e.target);
|
|
2134
2133
|
};
|
|
2135
2134
|
function B(t, e) {
|
|
2136
2135
|
if (!(t && t.nodeType && t.nodeType === 1))
|
|
2137
2136
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
2138
|
-
this.el = t, this.options = e = Be({}, e), t[
|
|
2137
|
+
this.el = t, this.options = e = Be({}, e), t[ye] = this;
|
|
2139
2138
|
var o = {
|
|
2140
2139
|
group: null,
|
|
2141
2140
|
sort: !0,
|
|
@@ -2187,7 +2186,7 @@ function B(t, e) {
|
|
|
2187
2186
|
an(e);
|
|
2188
2187
|
for (var a in this)
|
|
2189
2188
|
a.charAt(0) === "_" && typeof this[a] == "function" && (this[a] = this[a].bind(this));
|
|
2190
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
2189
|
+
this.nativeDraggable = e.forceFallback ? !1 : jl, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? K(t, "pointerdown", this._onTapStart) : (K(t, "mousedown", this._onTapStart), K(t, "touchstart", this._onTapStart)), this.nativeDraggable && (K(t, "dragover", this), K(t, "dragenter", this)), kt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Be(this, zl());
|
|
2191
2190
|
}
|
|
2192
2191
|
B.prototype = /** @lends Sortable.prototype */
|
|
2193
2192
|
{
|
|
@@ -2200,10 +2199,10 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2200
2199
|
},
|
|
2201
2200
|
_onTapStart: function(e) {
|
|
2202
2201
|
if (e.cancelable) {
|
|
2203
|
-
var o = this, n = this.el, a = this.options, l = a.preventOnFilter, r = e.type, s = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, i = (s || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || i,
|
|
2204
|
-
if (
|
|
2205
|
-
if (We =
|
|
2206
|
-
if (
|
|
2202
|
+
var o = this, n = this.el, a = this.options, l = a.preventOnFilter, r = e.type, s = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, i = (s || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || i, p = a.filter;
|
|
2203
|
+
if (ra(n), !y && !(/mousedown|pointerdown/.test(r) && e.button !== 0 || a.disabled) && !u.isContentEditable && !(!this.nativeDraggable && at && i && i.tagName.toUpperCase() === "SELECT") && (i = Oe(i, a.draggable, n, !1), !(i && i.animated) && wt !== i)) {
|
|
2204
|
+
if (We = De(i), it = De(i, a.draggable), typeof p == "function") {
|
|
2205
|
+
if (p.call(this, e, i, this)) {
|
|
2207
2206
|
pe({
|
|
2208
2207
|
sortable: o,
|
|
2209
2208
|
rootEl: u,
|
|
@@ -2216,11 +2215,11 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2216
2215
|
}), l && e.cancelable && e.preventDefault();
|
|
2217
2216
|
return;
|
|
2218
2217
|
}
|
|
2219
|
-
} else if (
|
|
2220
|
-
if (
|
|
2218
|
+
} else if (p && (p = p.split(",").some(function(c) {
|
|
2219
|
+
if (c = Oe(u, c.trim(), n, !1), c)
|
|
2221
2220
|
return pe({
|
|
2222
2221
|
sortable: o,
|
|
2223
|
-
rootEl:
|
|
2222
|
+
rootEl: c,
|
|
2224
2223
|
name: "filter",
|
|
2225
2224
|
targetEl: i,
|
|
2226
2225
|
fromEl: n,
|
|
@@ -2228,7 +2227,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2228
2227
|
}), me("filter", o, {
|
|
2229
2228
|
evt: e
|
|
2230
2229
|
}), !0;
|
|
2231
|
-
}),
|
|
2230
|
+
}), p)) {
|
|
2232
2231
|
l && e.cancelable && e.preventDefault();
|
|
2233
2232
|
return;
|
|
2234
2233
|
}
|
|
@@ -2256,8 +2255,8 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2256
2255
|
name: "choose",
|
|
2257
2256
|
originalEvent: e
|
|
2258
2257
|
}), ve(y, r.chosenClass, !0);
|
|
2259
|
-
}, r.ignore.split(",").forEach(function(
|
|
2260
|
-
Zo(y,
|
|
2258
|
+
}, r.ignore.split(",").forEach(function(p) {
|
|
2259
|
+
Zo(y, p.trim(), Ht);
|
|
2261
2260
|
}), K(s, "dragover", He), K(s, "mousemove", He), K(s, "touchmove", He), K(s, "mouseup", a._onDrop), K(s, "touchend", a._onDrop), K(s, "touchcancel", a._onDrop), ho && this.nativeDraggable && (this.options.touchStartThreshold = 4, y.draggable = !0), me("delayStart", this, {
|
|
2262
2261
|
evt: e
|
|
2263
2262
|
}), r.delay && (!r.delayOnTouchOnly || o) && (!this.nativeDraggable || !(pt || Le))) {
|
|
@@ -2294,7 +2293,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2294
2293
|
if (Ge = !1, W && y) {
|
|
2295
2294
|
me("dragStarted", this, {
|
|
2296
2295
|
evt: o
|
|
2297
|
-
}), this.nativeDraggable && K(document, "dragover",
|
|
2296
|
+
}), this.nativeDraggable && K(document, "dragover", $l);
|
|
2298
2297
|
var n = this.options;
|
|
2299
2298
|
!e && ve(y, n.dragClass, !1), ve(y, n.ghostClass, !0), B.active = this, e && this._appendGhost(), pe({
|
|
2300
2299
|
sortable: this,
|
|
@@ -2309,11 +2308,11 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2309
2308
|
this._lastX = Te.clientX, this._lastY = Te.clientY, rn();
|
|
2310
2309
|
for (var e = document.elementFromPoint(Te.clientX, Te.clientY), o = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Te.clientX, Te.clientY), e !== o); )
|
|
2311
2310
|
o = e;
|
|
2312
|
-
if (y.parentNode[
|
|
2311
|
+
if (y.parentNode[ye]._isOutsideThisEl(e), o)
|
|
2313
2312
|
do {
|
|
2314
|
-
if (o[
|
|
2313
|
+
if (o[ye]) {
|
|
2315
2314
|
var n = void 0;
|
|
2316
|
-
if (n = o[
|
|
2315
|
+
if (n = o[ye]._onDragOver({
|
|
2317
2316
|
clientX: Te.clientX,
|
|
2318
2317
|
clientY: Te.clientY,
|
|
2319
2318
|
target: e,
|
|
@@ -2328,23 +2327,23 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2328
2327
|
},
|
|
2329
2328
|
_onTouchMove: function(e) {
|
|
2330
2329
|
if (Ke) {
|
|
2331
|
-
var o = this.options, n = o.fallbackTolerance, a = o.fallbackOffset, l = e.touches ? e.touches[0] : e, r = R && $e(R, !0), s = R && r && r.a, i = R && r && r.d, u = ht && ue && _o(ue),
|
|
2330
|
+
var o = this.options, n = o.fallbackTolerance, a = o.fallbackOffset, l = e.touches ? e.touches[0] : e, r = R && $e(R, !0), s = R && r && r.a, i = R && r && r.d, u = ht && ue && _o(ue), p = (l.clientX - Ke.clientX + a.x) / (s || 1) + (u ? u[0] - Kt[0] : 0) / (s || 1), c = (l.clientY - Ke.clientY + a.y) / (i || 1) + (u ? u[1] - Kt[1] : 0) / (i || 1);
|
|
2332
2331
|
if (!B.active && !Ge) {
|
|
2333
2332
|
if (n && Math.max(Math.abs(l.clientX - this._lastX), Math.abs(l.clientY - this._lastY)) < n)
|
|
2334
2333
|
return;
|
|
2335
2334
|
this._onDragStart(e, !0);
|
|
2336
2335
|
}
|
|
2337
2336
|
if (R) {
|
|
2338
|
-
r ? (r.e +=
|
|
2337
|
+
r ? (r.e += p - (Nt || 0), r.f += c - (Qt || 0)) : r = {
|
|
2339
2338
|
a: 1,
|
|
2340
2339
|
b: 0,
|
|
2341
2340
|
c: 0,
|
|
2342
2341
|
d: 1,
|
|
2343
|
-
e:
|
|
2344
|
-
f:
|
|
2342
|
+
e: p,
|
|
2343
|
+
f: c
|
|
2345
2344
|
};
|
|
2346
2345
|
var f = "matrix(".concat(r.a, ",").concat(r.b, ",").concat(r.c, ",").concat(r.d, ",").concat(r.e, ",").concat(r.f, ")");
|
|
2347
|
-
I(R, "webkitTransform", f), I(R, "mozTransform", f), I(R, "msTransform", f), I(R, "transform", f), Nt =
|
|
2346
|
+
I(R, "webkitTransform", f), I(R, "mozTransform", f), I(R, "msTransform", f), I(R, "transform", f), Nt = p, Qt = c, Te = l;
|
|
2348
2347
|
}
|
|
2349
2348
|
e.cancelable && e.preventDefault();
|
|
2350
2349
|
}
|
|
@@ -2377,18 +2376,18 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2377
2376
|
},
|
|
2378
2377
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2379
2378
|
_onDragOver: function(e) {
|
|
2380
|
-
var o = this.el, n = e.target, a, l, r, s = this.options, i = s.group, u = B.active,
|
|
2379
|
+
var o = this.el, n = e.target, a, l, r, s = this.options, i = s.group, u = B.active, p = mt === i, c = s.sort, f = re || u, g, C = this, b = !1;
|
|
2381
2380
|
if (Jt)
|
|
2382
2381
|
return;
|
|
2383
2382
|
function _(H, se) {
|
|
2384
2383
|
me(H, C, Ve({
|
|
2385
2384
|
evt: e,
|
|
2386
|
-
isOwner:
|
|
2385
|
+
isOwner: p,
|
|
2387
2386
|
axis: g ? "vertical" : "horizontal",
|
|
2388
2387
|
revert: r,
|
|
2389
2388
|
dragRect: a,
|
|
2390
2389
|
targetRect: l,
|
|
2391
|
-
canSort:
|
|
2390
|
+
canSort: c,
|
|
2392
2391
|
fromSortable: f,
|
|
2393
2392
|
target: n,
|
|
2394
2393
|
completed: S,
|
|
@@ -2404,12 +2403,12 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2404
2403
|
function S(H) {
|
|
2405
2404
|
return _("dragOverCompleted", {
|
|
2406
2405
|
insertion: H
|
|
2407
|
-
}), H && (
|
|
2406
|
+
}), H && (p ? u._hideClone() : u._showClone(C), C !== f && (ve(y, re ? re.options.ghostClass : u.options.ghostClass, !1), ve(y, s.ghostClass, !0)), re !== C && C !== B.active ? re = C : C === B.active && re && (re = null), f === C && (C._ignoreWhileAnimating = n), C.animateAll(function() {
|
|
2408
2407
|
_("dragOverAnimationComplete"), C._ignoreWhileAnimating = null;
|
|
2409
|
-
}), C !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (n === y && !y.animated || n === o && !n.animated) && (Ye = null), !s.dragoverBubble && !e.rootEl && n !== document && (y.parentNode[
|
|
2408
|
+
}), C !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (n === y && !y.animated || n === o && !n.animated) && (Ye = null), !s.dragoverBubble && !e.rootEl && n !== document && (y.parentNode[ye]._isOutsideThisEl(e.target), !H && He(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), b = !0;
|
|
2410
2409
|
}
|
|
2411
2410
|
function Y() {
|
|
2412
|
-
be =
|
|
2411
|
+
be = De(y), Re = De(y, s.draggable), pe({
|
|
2413
2412
|
sortable: C,
|
|
2414
2413
|
name: "change",
|
|
2415
2414
|
toEl: o,
|
|
@@ -2422,18 +2421,18 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2422
2421
|
return b;
|
|
2423
2422
|
if (y.contains(e.target) || n.animated && n.animatingX && n.animatingY || C._ignoreWhileAnimating === n)
|
|
2424
2423
|
return S(!1);
|
|
2425
|
-
if (Ot = !1, u && !s.disabled && (
|
|
2424
|
+
if (Ot = !1, u && !s.disabled && (p ? c || (r = $ !== W) : re === this || (this.lastPutMode = mt.checkPull(this, u, y, e)) && i.checkPut(this, u, y, e))) {
|
|
2426
2425
|
if (g = this._getDirection(e, n) === "vertical", a = ne(y), _("dragOverValid"), B.eventCanceled)
|
|
2427
2426
|
return b;
|
|
2428
2427
|
if (r)
|
|
2429
2428
|
return $ = W, T(), this._hideClone(), _("revert"), B.eventCanceled || (ze ? W.insertBefore(y, ze) : W.appendChild(y)), S(!0);
|
|
2430
2429
|
var k = so(o, s.draggable);
|
|
2431
|
-
if (!k ||
|
|
2430
|
+
if (!k || oa(e, g, this) && !k.animated) {
|
|
2432
2431
|
if (k === y)
|
|
2433
2432
|
return S(!1);
|
|
2434
2433
|
if (k && o === e.target && (n = k), n && (l = ne(n)), vt(W, o, y, a, n, l, e, !!n) !== !1)
|
|
2435
2434
|
return T(), o.appendChild(y), $ = o, Y(), S(!0);
|
|
2436
|
-
} else if (k &&
|
|
2435
|
+
} else if (k && ta(e, g, this)) {
|
|
2437
2436
|
var le = Ze(o, 0, s, !0);
|
|
2438
2437
|
if (le === y)
|
|
2439
2438
|
return S(!1);
|
|
@@ -2441,11 +2440,11 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2441
2440
|
return T(), o.insertBefore(y, le), $ = o, Y(), S(!0);
|
|
2442
2441
|
} else if (n.parentNode === o) {
|
|
2443
2442
|
l = ne(n);
|
|
2444
|
-
var O = 0, Q, ae = y.parentNode !== o, z = !
|
|
2445
|
-
Ye !== n && (Q = l[ge], ut = !1, gt = !z && s.invertSwap || ae), O =
|
|
2443
|
+
var O = 0, Q, ae = y.parentNode !== o, z = !Wl(y.animated && y.toRect || a, n.animated && n.toRect || l, g), ge = g ? "top" : "left", N = bo(n, "top", "top") || bo(y, "top", "top"), Se = N ? N.scrollTop : void 0;
|
|
2444
|
+
Ye !== n && (Q = l[ge], ut = !1, gt = !z && s.invertSwap || ae), O = na(e, n, l, g, z ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, gt, Ye === n);
|
|
2446
2445
|
var he;
|
|
2447
2446
|
if (O !== 0) {
|
|
2448
|
-
var x =
|
|
2447
|
+
var x = De(y);
|
|
2449
2448
|
do
|
|
2450
2449
|
x -= O, he = $.children[x];
|
|
2451
2450
|
while (he && (I(he, "display") === "none" || he === R));
|
|
@@ -2457,7 +2456,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2457
2456
|
j = O === 1;
|
|
2458
2457
|
var ce = vt(W, o, y, a, n, l, e, j);
|
|
2459
2458
|
if (ce !== !1)
|
|
2460
|
-
return (ce === 1 || ce === -1) && (j = ce === 1), Jt = !0, setTimeout(
|
|
2459
|
+
return (ce === 1 || ce === -1) && (j = ce === 1), Jt = !0, setTimeout(ea, 30), T(), j && !w ? o.appendChild(y) : n.parentNode.insertBefore(y, j ? w : n), N && tn(N, 0, Se - N.scrollTop), $ = y.parentNode, Q !== void 0 && !gt && (yt = Math.abs(Q - ne(n)[ge])), Y(), S(!0);
|
|
2461
2460
|
}
|
|
2462
2461
|
if (o.contains(y))
|
|
2463
2462
|
return S(!1);
|
|
@@ -2474,9 +2473,9 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2474
2473
|
},
|
|
2475
2474
|
_onDrop: function(e) {
|
|
2476
2475
|
var o = this.el, n = this.options;
|
|
2477
|
-
if (be =
|
|
2476
|
+
if (be = De(y), Re = De(y, n.draggable), me("drop", this, {
|
|
2478
2477
|
evt: e
|
|
2479
|
-
}), $ = y && y.parentNode, be =
|
|
2478
|
+
}), $ = y && y.parentNode, be = De(y), Re = De(y, n.draggable), B.eventCanceled) {
|
|
2480
2479
|
this._nulling();
|
|
2481
2480
|
return;
|
|
2482
2481
|
}
|
|
@@ -2539,7 +2538,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2539
2538
|
break;
|
|
2540
2539
|
case "dragenter":
|
|
2541
2540
|
case "dragover":
|
|
2542
|
-
y && (this._onDragOver(e),
|
|
2541
|
+
y && (this._onDragOver(e), Zl(e));
|
|
2543
2542
|
break;
|
|
2544
2543
|
case "selectstart":
|
|
2545
2544
|
e.preventDefault();
|
|
@@ -2552,7 +2551,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2552
2551
|
*/
|
|
2553
2552
|
toArray: function() {
|
|
2554
2553
|
for (var e = [], o, n = this.el.children, a = 0, l = n.length, r = this.options; a < l; a++)
|
|
2555
|
-
o = n[a], Oe(o, r.draggable, this.el, !1) && e.push(o.getAttribute(r.dataIdAttr) ||
|
|
2554
|
+
o = n[a], Oe(o, r.draggable, this.el, !1) && e.push(o.getAttribute(r.dataIdAttr) || aa(o));
|
|
2556
2555
|
return e;
|
|
2557
2556
|
},
|
|
2558
2557
|
/**
|
|
@@ -2603,7 +2602,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2603
2602
|
destroy: function() {
|
|
2604
2603
|
me("destroy", this);
|
|
2605
2604
|
var e = this.el;
|
|
2606
|
-
e[
|
|
2605
|
+
e[ye] = null, F(e, "mousedown", this._onTapStart), F(e, "touchstart", this._onTapStart), F(e, "pointerdown", this._onTapStart), this.nativeDraggable && (F(e, "dragover", this), F(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(o) {
|
|
2607
2606
|
o.removeAttribute("draggable");
|
|
2608
2607
|
}), this._onDrop(), this._disableDelayedDragEvents(), kt.splice(kt.indexOf(this.el), 1), this.el = e = null;
|
|
2609
2608
|
},
|
|
@@ -2626,52 +2625,52 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2626
2625
|
}
|
|
2627
2626
|
}
|
|
2628
2627
|
};
|
|
2629
|
-
function
|
|
2628
|
+
function Zl(t) {
|
|
2630
2629
|
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
2631
2630
|
}
|
|
2632
2631
|
function vt(t, e, o, n, a, l, r, s) {
|
|
2633
|
-
var i, u = t[
|
|
2632
|
+
var i, u = t[ye], p = u.options.onMove, c;
|
|
2634
2633
|
return window.CustomEvent && !Le && !pt ? i = new CustomEvent("move", {
|
|
2635
2634
|
bubbles: !0,
|
|
2636
2635
|
cancelable: !0
|
|
2637
|
-
}) : (i = document.createEvent("Event"), i.initEvent("move", !0, !0)), i.to = e, i.from = t, i.dragged = o, i.draggedRect = n, i.related = a || e, i.relatedRect = l || ne(e), i.willInsertAfter = s, i.originalEvent = r, t.dispatchEvent(i),
|
|
2636
|
+
}) : (i = document.createEvent("Event"), i.initEvent("move", !0, !0)), i.to = e, i.from = t, i.dragged = o, i.draggedRect = n, i.related = a || e, i.relatedRect = l || ne(e), i.willInsertAfter = s, i.originalEvent = r, t.dispatchEvent(i), p && (c = p.call(u, i, r)), c;
|
|
2638
2637
|
}
|
|
2639
2638
|
function Ht(t) {
|
|
2640
2639
|
t.draggable = !1;
|
|
2641
2640
|
}
|
|
2642
|
-
function
|
|
2641
|
+
function ea() {
|
|
2643
2642
|
Jt = !1;
|
|
2644
2643
|
}
|
|
2645
|
-
function
|
|
2644
|
+
function ta(t, e, o) {
|
|
2646
2645
|
var n = ne(Ze(o.el, 0, o.options, !0)), a = 10;
|
|
2647
2646
|
return e ? t.clientX < n.left - a || t.clientY < n.top && t.clientX < n.right : t.clientY < n.top - a || t.clientY < n.bottom && t.clientX < n.left;
|
|
2648
2647
|
}
|
|
2649
|
-
function
|
|
2648
|
+
function oa(t, e, o) {
|
|
2650
2649
|
var n = ne(so(o.el, o.options.draggable)), a = 10;
|
|
2651
2650
|
return e ? t.clientX > n.right + a || t.clientX <= n.right && t.clientY > n.bottom && t.clientX >= n.left : t.clientX > n.right && t.clientY > n.top || t.clientX <= n.right && t.clientY > n.bottom + a;
|
|
2652
2651
|
}
|
|
2653
|
-
function
|
|
2654
|
-
var i = n ? t.clientY : t.clientX, u = n ? o.height : o.width,
|
|
2652
|
+
function na(t, e, o, n, a, l, r, s) {
|
|
2653
|
+
var i = n ? t.clientY : t.clientX, u = n ? o.height : o.width, p = n ? o.top : o.left, c = n ? o.bottom : o.right, f = !1;
|
|
2655
2654
|
if (!r) {
|
|
2656
2655
|
if (s && yt < u * a) {
|
|
2657
|
-
if (!ut && (st === 1 ? i >
|
|
2656
|
+
if (!ut && (st === 1 ? i > p + u * l / 2 : i < c - u * l / 2) && (ut = !0), ut)
|
|
2658
2657
|
f = !0;
|
|
2659
|
-
else if (st === 1 ? i <
|
|
2658
|
+
else if (st === 1 ? i < p + yt : i > c - yt)
|
|
2660
2659
|
return -st;
|
|
2661
|
-
} else if (i >
|
|
2662
|
-
return
|
|
2660
|
+
} else if (i > p + u * (1 - a) / 2 && i < c - u * (1 - a) / 2)
|
|
2661
|
+
return la(e);
|
|
2663
2662
|
}
|
|
2664
|
-
return f = f || r, f && (i <
|
|
2665
|
-
}
|
|
2666
|
-
function na(t) {
|
|
2667
|
-
return Ee(y) < Ee(t) ? 1 : -1;
|
|
2663
|
+
return f = f || r, f && (i < p + u * l / 2 || i > c - u * l / 2) ? i > p + u / 2 ? 1 : -1 : 0;
|
|
2668
2664
|
}
|
|
2669
2665
|
function la(t) {
|
|
2666
|
+
return De(y) < De(t) ? 1 : -1;
|
|
2667
|
+
}
|
|
2668
|
+
function aa(t) {
|
|
2670
2669
|
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, o = e.length, n = 0; o--; )
|
|
2671
2670
|
n += e.charCodeAt(o);
|
|
2672
2671
|
return n.toString(36);
|
|
2673
2672
|
}
|
|
2674
|
-
function
|
|
2673
|
+
function ra(t) {
|
|
2675
2674
|
Vt.length = 0;
|
|
2676
2675
|
for (var e = t.getElementsByTagName("input"), o = e.length; o--; ) {
|
|
2677
2676
|
var n = e[o];
|
|
@@ -2695,19 +2694,19 @@ B.utils = {
|
|
|
2695
2694
|
is: function(e, o) {
|
|
2696
2695
|
return !!Oe(e, o, e, !1);
|
|
2697
2696
|
},
|
|
2698
|
-
extend:
|
|
2697
|
+
extend: Kl,
|
|
2699
2698
|
throttle: en,
|
|
2700
2699
|
closest: Oe,
|
|
2701
2700
|
toggleClass: ve,
|
|
2702
2701
|
clone: on,
|
|
2703
|
-
index:
|
|
2702
|
+
index: De,
|
|
2704
2703
|
nextTick: Ct,
|
|
2705
2704
|
cancelNextTick: $t,
|
|
2706
2705
|
detectDirection: ln,
|
|
2707
2706
|
getChild: Ze
|
|
2708
2707
|
};
|
|
2709
2708
|
B.get = function(t) {
|
|
2710
|
-
return t[
|
|
2709
|
+
return t[ye];
|
|
2711
2710
|
};
|
|
2712
2711
|
B.mount = function() {
|
|
2713
2712
|
for (var t = arguments.length, e = new Array(t), o = 0; o < t; o++)
|
|
@@ -2721,9 +2720,9 @@ B.mount = function() {
|
|
|
2721
2720
|
B.create = function(t, e) {
|
|
2722
2721
|
return new B(t, e);
|
|
2723
2722
|
};
|
|
2724
|
-
B.version =
|
|
2723
|
+
B.version = Ml;
|
|
2725
2724
|
var oe = [], nt, Zt, eo = !1, zt, qt, It, lt;
|
|
2726
|
-
function
|
|
2725
|
+
function ia() {
|
|
2727
2726
|
function t() {
|
|
2728
2727
|
this.defaults = {
|
|
2729
2728
|
scroll: !0,
|
|
@@ -2745,7 +2744,7 @@ function ra() {
|
|
|
2745
2744
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
2746
2745
|
},
|
|
2747
2746
|
drop: function() {
|
|
2748
|
-
this.sortable.nativeDraggable ? F(document, "dragover", this._handleAutoScroll) : (F(document, "pointermove", this._handleFallbackAutoScroll), F(document, "touchmove", this._handleFallbackAutoScroll), F(document, "mousemove", this._handleFallbackAutoScroll)), Eo(), Et(),
|
|
2747
|
+
this.sortable.nativeDraggable ? F(document, "dragover", this._handleAutoScroll) : (F(document, "pointermove", this._handleFallbackAutoScroll), F(document, "touchmove", this._handleFallbackAutoScroll), F(document, "mousemove", this._handleFallbackAutoScroll)), Eo(), Et(), Hl();
|
|
2749
2748
|
},
|
|
2750
2749
|
nulling: function() {
|
|
2751
2750
|
It = Zt = nt = eo = lt = zt = qt = null, oe.length = 0;
|
|
@@ -2785,23 +2784,23 @@ function Eo() {
|
|
|
2785
2784
|
}
|
|
2786
2785
|
var Yt = en(function(t, e, o, n) {
|
|
2787
2786
|
if (e.scroll) {
|
|
2788
|
-
var a = (t.touches ? t.touches[0] : t).clientX, l = (t.touches ? t.touches[0] : t).clientY, r = e.scrollSensitivity, s = e.scrollSpeed, i = ke(), u = !1,
|
|
2789
|
-
Zt !== o && (Zt = o, Et(), nt = e.scroll,
|
|
2790
|
-
var
|
|
2787
|
+
var a = (t.touches ? t.touches[0] : t).clientX, l = (t.touches ? t.touches[0] : t).clientY, r = e.scrollSensitivity, s = e.scrollSpeed, i = ke(), u = !1, p;
|
|
2788
|
+
Zt !== o && (Zt = o, Et(), nt = e.scroll, p = e.scrollFn, nt === !0 && (nt = Fe(o, !0)));
|
|
2789
|
+
var c = 0, f = nt;
|
|
2791
2790
|
do {
|
|
2792
2791
|
var g = f, C = ne(g), b = C.top, _ = C.bottom, T = C.left, S = C.right, Y = C.width, k = C.height, le = void 0, O = void 0, Q = g.scrollWidth, ae = g.scrollHeight, z = I(g), ge = g.scrollLeft, N = g.scrollTop;
|
|
2793
2792
|
g === i ? (le = Y < Q && (z.overflowX === "auto" || z.overflowX === "scroll" || z.overflowX === "visible"), O = k < ae && (z.overflowY === "auto" || z.overflowY === "scroll" || z.overflowY === "visible")) : (le = Y < Q && (z.overflowX === "auto" || z.overflowX === "scroll"), O = k < ae && (z.overflowY === "auto" || z.overflowY === "scroll"));
|
|
2794
2793
|
var Se = le && (Math.abs(S - a) <= r && ge + Y < Q) - (Math.abs(T - a) <= r && !!ge), he = O && (Math.abs(_ - l) <= r && N + k < ae) - (Math.abs(b - l) <= r && !!N);
|
|
2795
|
-
if (!oe[
|
|
2796
|
-
for (var x = 0; x <=
|
|
2794
|
+
if (!oe[c])
|
|
2795
|
+
for (var x = 0; x <= c; x++)
|
|
2797
2796
|
oe[x] || (oe[x] = {});
|
|
2798
|
-
(oe[
|
|
2797
|
+
(oe[c].vx != Se || oe[c].vy != he || oe[c].el !== g) && (oe[c].el = g, oe[c].vx = Se, oe[c].vy = he, clearInterval(oe[c].pid), (Se != 0 || he != 0) && (u = !0, oe[c].pid = setInterval((function() {
|
|
2799
2798
|
n && this.layer === 0 && B.active._onTouchMove(It);
|
|
2800
2799
|
var w = oe[this.layer].vy ? oe[this.layer].vy * s : 0, j = oe[this.layer].vx ? oe[this.layer].vx * s : 0;
|
|
2801
|
-
typeof
|
|
2800
|
+
typeof p == "function" && p.call(B.dragged.parentNode[ye], j, w, t, It, oe[this.layer].el) !== "continue" || tn(oe[this.layer].el, j, w);
|
|
2802
2801
|
}).bind({
|
|
2803
|
-
layer:
|
|
2804
|
-
}), 24))),
|
|
2802
|
+
layer: c
|
|
2803
|
+
}), 24))), c++;
|
|
2805
2804
|
} while (e.bubbleScroll && f !== i && (f = Fe(f, !1)));
|
|
2806
2805
|
eo = u;
|
|
2807
2806
|
}
|
|
@@ -2810,8 +2809,8 @@ var Yt = en(function(t, e, o, n) {
|
|
|
2810
2809
|
if (o) {
|
|
2811
2810
|
var u = n || l;
|
|
2812
2811
|
s();
|
|
2813
|
-
var
|
|
2814
|
-
i(), u && !u.el.contains(
|
|
2812
|
+
var p = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, c = document.elementFromPoint(p.clientX, p.clientY);
|
|
2813
|
+
i(), u && !u.el.contains(c) && (r("spill"), this.onSpill({
|
|
2815
2814
|
dragEl: a,
|
|
2816
2815
|
putSortable: n
|
|
2817
2816
|
}));
|
|
@@ -2848,32 +2847,32 @@ po.prototype = {
|
|
|
2848
2847
|
Be(po, {
|
|
2849
2848
|
pluginName: "removeOnSpill"
|
|
2850
2849
|
});
|
|
2851
|
-
B.mount(new
|
|
2850
|
+
B.mount(new ia());
|
|
2852
2851
|
B.mount(po, uo);
|
|
2853
|
-
function
|
|
2852
|
+
function sa(t, e) {
|
|
2854
2853
|
return Object.values(t).indexOf(e);
|
|
2855
2854
|
}
|
|
2856
|
-
function
|
|
2855
|
+
function ua(t, e, o, n) {
|
|
2857
2856
|
if (!t)
|
|
2858
2857
|
return [];
|
|
2859
2858
|
const a = Object.values(t), l = e.length - n;
|
|
2860
2859
|
return [...e].map((s, i) => i >= l ? a.length : a.indexOf(s));
|
|
2861
2860
|
}
|
|
2862
|
-
function
|
|
2861
|
+
function da(t) {
|
|
2863
2862
|
return ["transition-group", "TransitionGroup"].includes(t);
|
|
2864
2863
|
}
|
|
2865
2864
|
function Do(t) {
|
|
2866
2865
|
if (!t || t.length !== 1)
|
|
2867
2866
|
return !1;
|
|
2868
2867
|
const [{ type: e }] = t;
|
|
2869
|
-
return e ?
|
|
2868
|
+
return e ? da(e.name) : !1;
|
|
2870
2869
|
}
|
|
2871
|
-
function
|
|
2870
|
+
function pa(t, e) {
|
|
2872
2871
|
return e ? { ...e.props, ...e.attrs } : t;
|
|
2873
2872
|
}
|
|
2874
|
-
const to = ["Start", "Add", "Remove", "Update", "End"], oo = ["Choose", "Unchoose", "Sort", "Filter", "Clone"],
|
|
2873
|
+
const to = ["Start", "Add", "Remove", "Update", "End"], oo = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], ca = ["Move", ...to, ...oo].map((t) => "on" + t);
|
|
2875
2874
|
let Xt = null;
|
|
2876
|
-
const
|
|
2875
|
+
const Aa = q({
|
|
2877
2876
|
name: "VueDraggableNext",
|
|
2878
2877
|
inheritAttrs: !1,
|
|
2879
2878
|
props: {
|
|
@@ -2922,15 +2921,15 @@ const ca = q({
|
|
|
2922
2921
|
...oo.map((t) => t.toLowerCase())
|
|
2923
2922
|
],
|
|
2924
2923
|
setup(t, { emit: e, slots: o, attrs: n }) {
|
|
2925
|
-
const a = P(!1), l = P(!1), r = P(0), s = P(0), i = P([]), u = P(null),
|
|
2924
|
+
const a = P(!1), l = P(!1), r = P(0), s = P(0), i = P([]), u = P(null), p = P(null), c = Ee(() => t.list ? t.list : t.modelValue), f = mn();
|
|
2926
2925
|
function g() {
|
|
2927
2926
|
return t.component ? h(t.component) : t.tag;
|
|
2928
2927
|
}
|
|
2929
2928
|
function C(A) {
|
|
2930
|
-
if (
|
|
2929
|
+
if (p.value)
|
|
2931
2930
|
for (const E in A) {
|
|
2932
2931
|
const L = fo(E);
|
|
2933
|
-
|
|
2932
|
+
ca.indexOf(L) === -1 && p.value.option(L, A[E]);
|
|
2934
2933
|
}
|
|
2935
2934
|
}
|
|
2936
2935
|
function b() {
|
|
@@ -2939,13 +2938,13 @@ const ca = q({
|
|
|
2939
2938
|
}
|
|
2940
2939
|
async function _() {
|
|
2941
2940
|
var A;
|
|
2942
|
-
await bt(), i.value =
|
|
2941
|
+
await bt(), i.value = ua(b(), ((A = f == null ? void 0 : f.proxy) == null ? void 0 : A.$el.children) || [], a.value, s.value);
|
|
2943
2942
|
}
|
|
2944
2943
|
function T(A) {
|
|
2945
|
-
const E =
|
|
2944
|
+
const E = sa(b() || [], A);
|
|
2946
2945
|
if (E === -1)
|
|
2947
2946
|
return null;
|
|
2948
|
-
const L =
|
|
2947
|
+
const L = c.value ? c.value[E] : null;
|
|
2949
2948
|
return { index: E, element: L };
|
|
2950
2949
|
}
|
|
2951
2950
|
function S(A) {
|
|
@@ -3049,14 +3048,14 @@ const ca = q({
|
|
|
3049
3048
|
});
|
|
3050
3049
|
"draggable" in L || (L.draggable = ">*");
|
|
3051
3050
|
const te = ((de = f == null ? void 0 : f.proxy) == null ? void 0 : de.$el.nodeType) === 1 ? f.proxy.$el : ((Pe = f == null ? void 0 : f.proxy) == null ? void 0 : Pe.$el.parentElement) || null;
|
|
3052
|
-
te && (
|
|
3051
|
+
te && (p.value = new B(te, L), te.__draggable_component__ = f == null ? void 0 : f.proxy, _());
|
|
3053
3052
|
};
|
|
3054
3053
|
function H(A, E) {
|
|
3055
3054
|
bt(() => e(A.toLowerCase(), E));
|
|
3056
3055
|
}
|
|
3057
3056
|
function se(A) {
|
|
3058
3057
|
return (E) => {
|
|
3059
|
-
if (
|
|
3058
|
+
if (c.value !== null) {
|
|
3060
3059
|
const L = "onDrag" + A, te = tt[L];
|
|
3061
3060
|
te && te(E);
|
|
3062
3061
|
}
|
|
@@ -3065,7 +3064,7 @@ const ca = q({
|
|
|
3065
3064
|
}
|
|
3066
3065
|
function Ae(A, E) {
|
|
3067
3066
|
const L = t.move;
|
|
3068
|
-
if (!L || !
|
|
3067
|
+
if (!L || !c.value)
|
|
3069
3068
|
return !0;
|
|
3070
3069
|
const te = w(A), de = u.value, Pe = j(te, A);
|
|
3071
3070
|
de && Object.assign(de, { futureIndex: Pe });
|
|
@@ -3088,9 +3087,9 @@ const ca = q({
|
|
|
3088
3087
|
};
|
|
3089
3088
|
return dt(() => {
|
|
3090
3089
|
ce();
|
|
3091
|
-
}), t.list !== null && t.modelValue !== null &&
|
|
3090
|
+
}), t.list !== null && t.modelValue !== null && Il.error("list props are mutually exclusive! Please set one."), {
|
|
3092
3091
|
getTag: g,
|
|
3093
|
-
realList:
|
|
3092
|
+
realList: c,
|
|
3094
3093
|
visibleIndexes: i,
|
|
3095
3094
|
noneFunctionalComponentMode: l,
|
|
3096
3095
|
headerOffset: r,
|
|
@@ -3116,7 +3115,7 @@ const ca = q({
|
|
|
3116
3115
|
onDragEnd: Qe,
|
|
3117
3116
|
mounted: ce,
|
|
3118
3117
|
context: u,
|
|
3119
|
-
sortableInstance:
|
|
3118
|
+
sortableInstance: p,
|
|
3120
3119
|
getRelatedContextFromMoveEvent: w,
|
|
3121
3120
|
getTargetedComponent: x,
|
|
3122
3121
|
computeFutureIndex: j
|
|
@@ -3124,7 +3123,7 @@ const ca = q({
|
|
|
3124
3123
|
};
|
|
3125
3124
|
},
|
|
3126
3125
|
render() {
|
|
3127
|
-
const t = this.getTag(), e =
|
|
3126
|
+
const t = this.getTag(), e = pa(this.$attrs, this.componentData);
|
|
3128
3127
|
if (typeof t == "string") {
|
|
3129
3128
|
const n = this.$slots.default && typeof this.$slots.default == "function" ? this.$slots.default() : null;
|
|
3130
3129
|
return n ? (this.transitionMode = Do(n), Rt(t, e, n)) : Rt(t, e, []);
|
|
@@ -3136,9 +3135,9 @@ const ca = q({
|
|
|
3136
3135
|
}
|
|
3137
3136
|
return Rt(t, e, o);
|
|
3138
3137
|
}
|
|
3139
|
-
}),
|
|
3138
|
+
}), fa = {
|
|
3140
3139
|
class: "editor"
|
|
3141
|
-
},
|
|
3140
|
+
}, ma = ["onClick"], ga = ["onClick"], ha = ["innerHTML", "draggable"], xo = 1, va = /* @__PURE__ */ q({
|
|
3142
3141
|
__name: "Editor",
|
|
3143
3142
|
setup(t) {
|
|
3144
3143
|
const e = {
|
|
@@ -3151,7 +3150,8 @@ const ca = q({
|
|
|
3151
3150
|
ReportText: Yo,
|
|
3152
3151
|
ReportChart: Xo,
|
|
3153
3152
|
ReportDescribe: Go,
|
|
3154
|
-
WordCloudChart: jo
|
|
3153
|
+
WordCloudChart: jo,
|
|
3154
|
+
H1: "H1"
|
|
3155
3155
|
}, {
|
|
3156
3156
|
componentList: o,
|
|
3157
3157
|
activeComponents: n,
|
|
@@ -3164,7 +3164,7 @@ const ca = q({
|
|
|
3164
3164
|
}, i = (_) => {
|
|
3165
3165
|
r.setActiveComponents(_);
|
|
3166
3166
|
}, u = () => d("div", null, [X("未找到对应组件")]);
|
|
3167
|
-
function
|
|
3167
|
+
function p(_) {
|
|
3168
3168
|
console.log(_, "evt");
|
|
3169
3169
|
const T = _.draggedContext.index;
|
|
3170
3170
|
if (T < xo)
|
|
@@ -3172,7 +3172,7 @@ const ca = q({
|
|
|
3172
3172
|
const S = _.draggedContext.futureIndex;
|
|
3173
3173
|
return S < xo ? (console.log(`禁止将元素移动到固定位置,目标索引为 ${S}。`), !1) : !0;
|
|
3174
3174
|
}
|
|
3175
|
-
const
|
|
3175
|
+
const c = (_) => _ === "h2" || _ === "h3" || _ === "h4" ? we(e, "ReportText") : _ === "bar" || _ === "pie" || _ === "line" ? we(e, "ReportChart") : _ === "wordcloud" ? we(e, "WordCloudChart") : _ ? we(e, _) : d(u, null, null), f = (_) => {
|
|
3176
3176
|
console.log(_, "evt");
|
|
3177
3177
|
}, g = P(!1), C = () => {
|
|
3178
3178
|
g.value = !0;
|
|
@@ -3181,7 +3181,7 @@ const ca = q({
|
|
|
3181
3181
|
};
|
|
3182
3182
|
return (_, T) => {
|
|
3183
3183
|
const S = h("CircleClose"), Y = h("el-icon");
|
|
3184
|
-
return v(), D("div",
|
|
3184
|
+
return v(), D("div", fa, [M("div", {
|
|
3185
3185
|
class: Je(["editor-content edit flex flex-start", [{
|
|
3186
3186
|
active: V(n).id === "filter"
|
|
3187
3187
|
}]]),
|
|
@@ -3192,13 +3192,13 @@ const ca = q({
|
|
|
3192
3192
|
}, [(v(!0), D(G, null, J(V(a), (k) => (v(), D("div", {
|
|
3193
3193
|
class: "item-input",
|
|
3194
3194
|
key: k.id
|
|
3195
|
-
}, [k.type === "report-select" || k.type === "range-time" && V(r).filterForm.range_time ? (v(), U(Dt(V(
|
|
3195
|
+
}, [k.type === "report-select" || k.type === "range-time" && V(r).filterForm.range_time ? (v(), U(Dt(V(we)(e, k.type)), {
|
|
3196
3196
|
key: 0,
|
|
3197
3197
|
value: k
|
|
3198
3198
|
}, {
|
|
3199
|
-
default: m(() => [X(
|
|
3199
|
+
default: m(() => [X(Ce(k.data), 1)]),
|
|
3200
3200
|
_: 2
|
|
3201
|
-
}, 1032, ["value"])) : ee("", !0)]))), 128))], 2), d(V(
|
|
3201
|
+
}, 1032, ["value"])) : ee("", !0)]))), 128))], 2), d(V(Aa), {
|
|
3202
3202
|
ref: "el",
|
|
3203
3203
|
modelValue: V(o),
|
|
3204
3204
|
"onUpdate:modelValue": T[1] || (T[1] = (k) => gn(o) ? o.value = k : null),
|
|
@@ -3207,7 +3207,7 @@ const ca = q({
|
|
|
3207
3207
|
animation: 150,
|
|
3208
3208
|
onStart: C,
|
|
3209
3209
|
onEnd: b,
|
|
3210
|
-
move:
|
|
3210
|
+
move: p
|
|
3211
3211
|
}, {
|
|
3212
3212
|
default: m(() => [(v(!0), D(G, null, J(V(o), (k) => (v(), D("div", {
|
|
3213
3213
|
key: k.id,
|
|
@@ -3226,27 +3226,27 @@ const ca = q({
|
|
|
3226
3226
|
}, {
|
|
3227
3227
|
default: m(() => [d(S)]),
|
|
3228
3228
|
_: 1
|
|
3229
|
-
})], 8,
|
|
3229
|
+
})], 8, ga), k.type !== "p" ? (v(), U(Dt(c(k.type)), {
|
|
3230
3230
|
key: 0,
|
|
3231
3231
|
class: Je(["editor" + k.type]),
|
|
3232
3232
|
value: k,
|
|
3233
3233
|
draggable: g.value
|
|
3234
3234
|
}, {
|
|
3235
|
-
default: m(() => [X(
|
|
3235
|
+
default: m(() => [X(Ce(k.data), 1)]),
|
|
3236
3236
|
_: 2
|
|
3237
3237
|
}, 1032, ["class", "value", "draggable"])) : (v(), D("p", {
|
|
3238
3238
|
key: 1,
|
|
3239
3239
|
innerHTML: k.data,
|
|
3240
3240
|
draggable: g.value
|
|
3241
|
-
}, null, 8,
|
|
3241
|
+
}, null, 8, ha))], 10, ma))), 128))]),
|
|
3242
3242
|
_: 1
|
|
3243
3243
|
}, 8, ["modelValue"])]);
|
|
3244
3244
|
};
|
|
3245
3245
|
}
|
|
3246
|
-
}),
|
|
3246
|
+
}), ba = { class: "label" }, _a = { class: "flex item-switch" }, wa = { class: "flex item-switch" }, ya = { class: "flex item-switch" }, dn = /* @__PURE__ */ q({
|
|
3247
3247
|
__name: "SettingTable",
|
|
3248
3248
|
setup(t) {
|
|
3249
|
-
const e = xe(), o =
|
|
3249
|
+
const e = xe(), o = Ee(() => e.getActiveComponents);
|
|
3250
3250
|
return (n, a) => {
|
|
3251
3251
|
const l = h("el-switch"), r = h("el-form-item"), s = h("el-divider");
|
|
3252
3252
|
return v(), D("div", null, [
|
|
@@ -3256,10 +3256,10 @@ const ca = q({
|
|
|
3256
3256
|
class: "flex item-switch",
|
|
3257
3257
|
key: u
|
|
3258
3258
|
}, [
|
|
3259
|
-
M("span",
|
|
3259
|
+
M("span", ba, Ce(i.name), 1),
|
|
3260
3260
|
d(l, {
|
|
3261
3261
|
modelValue: o.value.options.showColumn[i.key],
|
|
3262
|
-
"onUpdate:modelValue": (
|
|
3262
|
+
"onUpdate:modelValue": (p) => o.value.options.showColumn[i.key] = p
|
|
3263
3263
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
3264
3264
|
]))), 128))
|
|
3265
3265
|
]),
|
|
@@ -3268,21 +3268,21 @@ const ca = q({
|
|
|
3268
3268
|
d(s),
|
|
3269
3269
|
d(r, { label: "表格样式" }, {
|
|
3270
3270
|
default: m(() => [
|
|
3271
|
-
M("p",
|
|
3271
|
+
M("p", _a, [
|
|
3272
3272
|
a[3] || (a[3] = M("span", { class: "label" }, "斑马纹", -1)),
|
|
3273
3273
|
d(l, {
|
|
3274
3274
|
modelValue: o.value.options.stripe,
|
|
3275
3275
|
"onUpdate:modelValue": a[0] || (a[0] = (i) => o.value.options.stripe = i)
|
|
3276
3276
|
}, null, 8, ["modelValue"])
|
|
3277
3277
|
]),
|
|
3278
|
-
M("p",
|
|
3278
|
+
M("p", wa, [
|
|
3279
3279
|
a[4] || (a[4] = M("span", { class: "label" }, "边框", -1)),
|
|
3280
3280
|
d(l, {
|
|
3281
3281
|
modelValue: o.value.options.border,
|
|
3282
3282
|
"onUpdate:modelValue": a[1] || (a[1] = (i) => o.value.options.border = i)
|
|
3283
3283
|
}, null, 8, ["modelValue"])
|
|
3284
3284
|
]),
|
|
3285
|
-
M("p",
|
|
3285
|
+
M("p", ya, [
|
|
3286
3286
|
a[5] || (a[5] = M("span", { class: "label" }, "表头", -1)),
|
|
3287
3287
|
d(l, {
|
|
3288
3288
|
modelValue: o.value.options.showHeader,
|
|
@@ -3295,16 +3295,16 @@ const ca = q({
|
|
|
3295
3295
|
]);
|
|
3296
3296
|
};
|
|
3297
3297
|
}
|
|
3298
|
-
}),
|
|
3298
|
+
}), Ca = { key: 0 }, Ea = /* @__PURE__ */ q({
|
|
3299
3299
|
__name: "ChartsUniConfig",
|
|
3300
3300
|
setup(t) {
|
|
3301
|
-
const e = xe(), o =
|
|
3301
|
+
const e = xe(), o = Ee(() => e.activeComponents);
|
|
3302
3302
|
function n(a) {
|
|
3303
3303
|
a ? (o.value.options.series[0].radius = ["10%", "65%"], o.value.options.graphic[0].invisible = !0, o.value.options.graphic[1].invisible = !0) : (o.value.options.series[0].radius = ["45%", "70%"], o.value.options.graphic[0].invisible = !1, o.value.options.graphic[1].invisible = !1);
|
|
3304
3304
|
}
|
|
3305
3305
|
return P("rgb(46, 145, 255)"), (a, l) => {
|
|
3306
|
-
const r = h("el-input"), s = h("el-form-item"), i = h("el-switch"), u = h("el-col"),
|
|
3307
|
-
return o.value.options.title ? (v(), D("div",
|
|
3306
|
+
const r = h("el-input"), s = h("el-form-item"), i = h("el-switch"), u = h("el-col"), p = h("el-color-picker"), c = h("el-input-number"), f = h("el-row"), g = h("el-collapse-item"), C = h("el-collapse");
|
|
3307
|
+
return o.value.options.title ? (v(), D("div", Ca, [
|
|
3308
3308
|
d(s, { label: "标题" }, {
|
|
3309
3309
|
default: m(() => [
|
|
3310
3310
|
d(r, {
|
|
@@ -3335,7 +3335,7 @@ const ca = q({
|
|
|
3335
3335
|
}),
|
|
3336
3336
|
d(u, { span: 12 }, {
|
|
3337
3337
|
default: m(() => [
|
|
3338
|
-
d(
|
|
3338
|
+
d(p, {
|
|
3339
3339
|
modelValue: o.value.options.title.textStyle.color,
|
|
3340
3340
|
"onUpdate:modelValue": l[2] || (l[2] = (b) => o.value.options.title.textStyle.color = b),
|
|
3341
3341
|
"show-alpha": ""
|
|
@@ -3346,7 +3346,7 @@ const ca = q({
|
|
|
3346
3346
|
}),
|
|
3347
3347
|
d(u, { span: 12 }, {
|
|
3348
3348
|
default: m(() => [
|
|
3349
|
-
d(
|
|
3349
|
+
d(c, {
|
|
3350
3350
|
modelValue: o.value.options.title.textStyle.fontSize,
|
|
3351
3351
|
"onUpdate:modelValue": l[3] || (l[3] = (b) => o.value.options.title.textStyle.fontSize = b),
|
|
3352
3352
|
"controls-position": "right"
|
|
@@ -3357,7 +3357,7 @@ const ca = q({
|
|
|
3357
3357
|
}),
|
|
3358
3358
|
d(u, { span: 12 }, {
|
|
3359
3359
|
default: m(() => [
|
|
3360
|
-
d(
|
|
3360
|
+
d(c, {
|
|
3361
3361
|
modelValue: o.value.options.title.x,
|
|
3362
3362
|
"onUpdate:modelValue": l[4] || (l[4] = (b) => o.value.options.title.x = b),
|
|
3363
3363
|
"controls-position": "right"
|
|
@@ -3368,7 +3368,7 @@ const ca = q({
|
|
|
3368
3368
|
}),
|
|
3369
3369
|
d(u, { span: 12 }, {
|
|
3370
3370
|
default: m(() => [
|
|
3371
|
-
d(
|
|
3371
|
+
d(c, {
|
|
3372
3372
|
modelValue: o.value.options.title.y,
|
|
3373
3373
|
"onUpdate:modelValue": l[5] || (l[5] = (b) => o.value.options.title.y = b),
|
|
3374
3374
|
"controls-position": "right"
|
|
@@ -3438,18 +3438,18 @@ const ca = q({
|
|
|
3438
3438
|
};
|
|
3439
3439
|
}
|
|
3440
3440
|
});
|
|
3441
|
-
const
|
|
3441
|
+
const Da = /* @__PURE__ */ et(Ea, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @__PURE__ */ q({
|
|
3442
3442
|
__name: "SettingDescribe",
|
|
3443
3443
|
setup(t) {
|
|
3444
|
-
const e = xe(), o =
|
|
3444
|
+
const e = xe(), o = Ee(() => e.getActiveComponents);
|
|
3445
3445
|
return (n, a) => {
|
|
3446
|
-
const l = h("el-input"), r = h("el-form-item"), s = h("el-switch"), i = h("el-input-number"), u = h("el-radio"),
|
|
3446
|
+
const l = h("el-input"), r = h("el-form-item"), s = h("el-switch"), i = h("el-input-number"), u = h("el-radio"), p = h("el-radio-group");
|
|
3447
3447
|
return v(), D("div", null, [
|
|
3448
3448
|
d(r, { label: "标题" }, {
|
|
3449
3449
|
default: m(() => [
|
|
3450
3450
|
d(l, {
|
|
3451
3451
|
modelValue: o.value.options.title,
|
|
3452
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
3452
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => o.value.options.title = c)
|
|
3453
3453
|
}, null, 8, ["modelValue"])
|
|
3454
3454
|
]),
|
|
3455
3455
|
_: 1
|
|
@@ -3458,7 +3458,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3458
3458
|
default: m(() => [
|
|
3459
3459
|
d(s, {
|
|
3460
3460
|
modelValue: o.value.options.border,
|
|
3461
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
3461
|
+
"onUpdate:modelValue": a[1] || (a[1] = (c) => o.value.options.border = c)
|
|
3462
3462
|
}, null, 8, ["modelValue"])
|
|
3463
3463
|
]),
|
|
3464
3464
|
_: 1
|
|
@@ -3467,7 +3467,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3467
3467
|
default: m(() => [
|
|
3468
3468
|
d(i, {
|
|
3469
3469
|
modelValue: o.value.options.column,
|
|
3470
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
3470
|
+
"onUpdate:modelValue": a[2] || (a[2] = (c) => o.value.options.column = c),
|
|
3471
3471
|
min: 1,
|
|
3472
3472
|
max: 10,
|
|
3473
3473
|
controls: !1
|
|
@@ -3477,9 +3477,9 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3477
3477
|
}),
|
|
3478
3478
|
d(r, { label: "排列方向" }, {
|
|
3479
3479
|
default: m(() => [
|
|
3480
|
-
d(
|
|
3480
|
+
d(p, {
|
|
3481
3481
|
modelValue: o.value.options.direction,
|
|
3482
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
3482
|
+
"onUpdate:modelValue": a[3] || (a[3] = (c) => o.value.options.direction = c)
|
|
3483
3483
|
}, {
|
|
3484
3484
|
default: m(() => [
|
|
3485
3485
|
d(u, { value: "horizontal" }, {
|
|
@@ -3503,10 +3503,10 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3503
3503
|
]);
|
|
3504
3504
|
};
|
|
3505
3505
|
}
|
|
3506
|
-
}),
|
|
3506
|
+
}), xa = /* @__PURE__ */ q({
|
|
3507
3507
|
__name: "SettingCharts",
|
|
3508
3508
|
setup(t) {
|
|
3509
|
-
const e = xe(), o = P(!1), n =
|
|
3509
|
+
const e = xe(), o = P(!1), n = Ee(() => e.getActiveComponents), a = [
|
|
3510
3510
|
{ value: "report-describe", name: "描述列表" },
|
|
3511
3511
|
{ value: "report-table", name: "表格" },
|
|
3512
3512
|
{ value: "line", name: "趋势图" },
|
|
@@ -3514,19 +3514,19 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3514
3514
|
{ value: "bar", name: "柱状图" },
|
|
3515
3515
|
{ value: "wordcloud", name: "词云图" }
|
|
3516
3516
|
], l = P(""), r = P();
|
|
3517
|
-
async function s(
|
|
3518
|
-
const
|
|
3517
|
+
async function s(p) {
|
|
3518
|
+
const c = window.windowGlobalVar.SYSTEM_NORMAL, f = await Ro({
|
|
3519
3519
|
prod_type: window.$prodType,
|
|
3520
|
-
chart_type:
|
|
3520
|
+
chart_type: p,
|
|
3521
3521
|
filter_temp_uuid: e.filterForm.filter_temp_uuid,
|
|
3522
|
-
cg_linkage:
|
|
3522
|
+
cg_linkage: c ? 1 : c ? void 0 : 0
|
|
3523
3523
|
});
|
|
3524
3524
|
r.value = f.data;
|
|
3525
3525
|
}
|
|
3526
|
-
function i(
|
|
3527
|
-
let
|
|
3528
|
-
const f =
|
|
3529
|
-
if (
|
|
3526
|
+
function i(p) {
|
|
3527
|
+
let c = r.value.find((g) => g.rp_item_uuid === p);
|
|
3528
|
+
const f = c.rp_item_content;
|
|
3529
|
+
if (c.rp_item_content.type === "bar" && (f.options = Lt()), f.type === "pie" && (f.options = ao({ isLegend: !0 })), f.type === "line") {
|
|
3530
3530
|
let g = [];
|
|
3531
3531
|
f.data.forEach((b) => {
|
|
3532
3532
|
g = b.data.map((_, T) => ({ name: _.name, value: "value" + T }));
|
|
@@ -3545,26 +3545,26 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3545
3545
|
}
|
|
3546
3546
|
f.type === "report-describe" && (f.options = { ...f.options, title: "", border: !0, column: 1, direction: "horizontal", ...n.value.options }), f.type === "wordcloud" && (f.options = { ...f.options, title: "", ...n.value.options }, f.data.forEach((g) => {
|
|
3547
3547
|
g.textStyle = { color: Xe() };
|
|
3548
|
-
})), Object.assign(e.activeComponents, f), e.activeComponents.rp_item_uuid =
|
|
3548
|
+
})), Object.assign(e.activeComponents, f), e.activeComponents.rp_item_uuid = c.rp_item_uuid;
|
|
3549
3549
|
}
|
|
3550
3550
|
dt(async () => {
|
|
3551
3551
|
l.value = n.value.type, await s(l.value);
|
|
3552
3552
|
});
|
|
3553
|
-
async function u(
|
|
3553
|
+
async function u(p) {
|
|
3554
3554
|
try {
|
|
3555
|
-
o.value = !0, await s(
|
|
3556
|
-
} catch (
|
|
3557
|
-
console.error("加载报告项失败:",
|
|
3555
|
+
o.value = !0, await s(p);
|
|
3556
|
+
} catch (c) {
|
|
3557
|
+
console.error("加载报告项失败:", c);
|
|
3558
3558
|
} finally {
|
|
3559
|
-
Object.assign(e.activeComponents, sl(
|
|
3559
|
+
Object.assign(e.activeComponents, sl(p)), o.value = !1;
|
|
3560
3560
|
}
|
|
3561
3561
|
}
|
|
3562
3562
|
return Bt(
|
|
3563
3563
|
() => n.value,
|
|
3564
|
-
(
|
|
3565
|
-
console.log(
|
|
3564
|
+
(p) => {
|
|
3565
|
+
console.log(p, "activeComponents"), ~["bar", "pie", "line", "report-table", "report-describe", "wordcloud"].indexOf(p.type) && (l.value = n.value.type, s(l.value));
|
|
3566
3566
|
}
|
|
3567
|
-
), (
|
|
3567
|
+
), (p, c) => {
|
|
3568
3568
|
const f = h("el-option"), g = h("el-select"), C = h("el-form-item"), b = h("el-form"), _ = Bo("loading");
|
|
3569
3569
|
return no((v(), D("div", null, [
|
|
3570
3570
|
d(b, { "label-position": "top" }, {
|
|
@@ -3574,7 +3574,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3574
3574
|
d(g, {
|
|
3575
3575
|
style: { width: "100%" },
|
|
3576
3576
|
modelValue: l.value,
|
|
3577
|
-
"onUpdate:modelValue":
|
|
3577
|
+
"onUpdate:modelValue": c[0] || (c[0] = (T) => l.value = T),
|
|
3578
3578
|
onChange: u
|
|
3579
3579
|
}, {
|
|
3580
3580
|
default: m(() => [
|
|
@@ -3594,7 +3594,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3594
3594
|
d(g, {
|
|
3595
3595
|
style: { width: "100%" },
|
|
3596
3596
|
modelValue: V(e).activeComponents.rp_item_uuid,
|
|
3597
|
-
"onUpdate:modelValue":
|
|
3597
|
+
"onUpdate:modelValue": c[1] || (c[1] = (T) => V(e).activeComponents.rp_item_uuid = T),
|
|
3598
3598
|
onChange: i
|
|
3599
3599
|
}, {
|
|
3600
3600
|
default: m(() => [
|
|
@@ -3610,7 +3610,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3610
3610
|
_: 1
|
|
3611
3611
|
}),
|
|
3612
3612
|
l.value === "report-table" && n.value.options.showColumn ? (v(), U(dn, { key: 0 })) : ee("", !0),
|
|
3613
|
-
l.value === "pie" || l.value === "bar" || l.value === "line" ? (v(), U(
|
|
3613
|
+
l.value === "pie" || l.value === "bar" || l.value === "line" ? (v(), U(Da, { key: 1 })) : ee("", !0),
|
|
3614
3614
|
l.value === "report-describe" ? (v(), U(pn, { key: 2 })) : ee("", !0)
|
|
3615
3615
|
]),
|
|
3616
3616
|
_: 1
|
|
@@ -3620,22 +3620,22 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3620
3620
|
]);
|
|
3621
3621
|
};
|
|
3622
3622
|
}
|
|
3623
|
-
}),
|
|
3623
|
+
}), Ta = { key: 0 }, Sa = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, To = "default", Oa = /* @__PURE__ */ q({
|
|
3624
3624
|
__name: "SettingText",
|
|
3625
3625
|
setup(t) {
|
|
3626
3626
|
const e = xe(), o = vn(), n = P();
|
|
3627
|
-
function a(
|
|
3628
|
-
const
|
|
3629
|
-
e.activeComponents.uri =
|
|
3627
|
+
function a(p) {
|
|
3628
|
+
const c = n.value.find((f) => f.rp_item_uuid === p);
|
|
3629
|
+
e.activeComponents.uri = c.rp_item_content.uri, o.value.setHtml((c == null ? void 0 : c.rp_item_content.data) || "");
|
|
3630
3630
|
}
|
|
3631
3631
|
async function l() {
|
|
3632
|
-
const
|
|
3632
|
+
const p = window.windowGlobalVar.SYSTEM_NORMAL, c = await Ro({
|
|
3633
3633
|
prod_type: window.$prodType,
|
|
3634
3634
|
chart_type: "p",
|
|
3635
3635
|
filter_temp_uuid: e.filterForm.filter_temp_uuid,
|
|
3636
|
-
cg_linkage:
|
|
3636
|
+
cg_linkage: p ? 1 : p ? void 0 : 0
|
|
3637
3637
|
});
|
|
3638
|
-
n.value =
|
|
3638
|
+
n.value = c.data;
|
|
3639
3639
|
}
|
|
3640
3640
|
l();
|
|
3641
3641
|
const r = {
|
|
@@ -3660,16 +3660,16 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3660
3660
|
"justifyJustify",
|
|
3661
3661
|
"lineHeight"
|
|
3662
3662
|
]
|
|
3663
|
-
}, s = { placeholder: "请输入内容..." }, i = (
|
|
3664
|
-
o.value =
|
|
3665
|
-
}, u = (
|
|
3663
|
+
}, s = { placeholder: "请输入内容..." }, i = (p) => {
|
|
3664
|
+
o.value = p;
|
|
3665
|
+
}, u = (p) => {
|
|
3666
3666
|
};
|
|
3667
3667
|
return ko(() => {
|
|
3668
|
-
const
|
|
3669
|
-
|
|
3670
|
-
}), (
|
|
3668
|
+
const p = o.value;
|
|
3669
|
+
p != null && p.destroy();
|
|
3670
|
+
}), (p, c) => {
|
|
3671
3671
|
const f = h("el-option"), g = h("el-select"), C = h("el-form-item"), b = h("el-form");
|
|
3672
|
-
return V(e).activeComponents.id ? (v(), D("div",
|
|
3672
|
+
return V(e).activeComponents.id ? (v(), D("div", Ta, [
|
|
3673
3673
|
d(b, { "label-position": "top" }, {
|
|
3674
3674
|
default: m(() => [
|
|
3675
3675
|
d(C, { label: "组件库" }, {
|
|
@@ -3677,7 +3677,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3677
3677
|
d(g, {
|
|
3678
3678
|
style: { width: "100%" },
|
|
3679
3679
|
modelValue: V(e).activeComponents.rp_item_uuid,
|
|
3680
|
-
"onUpdate:modelValue":
|
|
3680
|
+
"onUpdate:modelValue": c[0] || (c[0] = (_) => V(e).activeComponents.rp_item_uuid = _),
|
|
3681
3681
|
onChange: a
|
|
3682
3682
|
}, {
|
|
3683
3683
|
default: m(() => [
|
|
@@ -3694,7 +3694,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3694
3694
|
}),
|
|
3695
3695
|
d(C, { label: "文本内容" }, {
|
|
3696
3696
|
default: m(() => [
|
|
3697
|
-
M("div",
|
|
3697
|
+
M("div", Sa, [
|
|
3698
3698
|
d(V(Tn), {
|
|
3699
3699
|
style: { "border-bottom": "1px solid #ccc" },
|
|
3700
3700
|
editor: o.value,
|
|
@@ -3705,7 +3705,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3705
3705
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
3706
3706
|
onOnChange: u,
|
|
3707
3707
|
modelValue: V(e).activeComponents.data,
|
|
3708
|
-
"onUpdate:modelValue":
|
|
3708
|
+
"onUpdate:modelValue": c[1] || (c[1] = (_) => V(e).activeComponents.data = _),
|
|
3709
3709
|
"default-config": s,
|
|
3710
3710
|
mode: To,
|
|
3711
3711
|
onOnCreated: i
|
|
@@ -3720,7 +3720,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3720
3720
|
])) : ee("", !0);
|
|
3721
3721
|
};
|
|
3722
3722
|
}
|
|
3723
|
-
}),
|
|
3723
|
+
}), ka = /* @__PURE__ */ q({
|
|
3724
3724
|
__name: "SettingFilter",
|
|
3725
3725
|
setup(t) {
|
|
3726
3726
|
const e = P([]), o = xe();
|
|
@@ -3736,8 +3736,8 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3736
3736
|
i.value.push(Qo()), o.setNotDraggableList(i.value);
|
|
3737
3737
|
}
|
|
3738
3738
|
return (l, r) => {
|
|
3739
|
-
const s = h("el-option"), i = h("el-select"), u = h("el-form-item"),
|
|
3740
|
-
return v(), U(
|
|
3739
|
+
const s = h("el-option"), i = h("el-select"), u = h("el-form-item"), p = h("el-checkbox"), c = h("el-form");
|
|
3740
|
+
return v(), U(c, {
|
|
3741
3741
|
"label-width": "80px",
|
|
3742
3742
|
"label-position": "top"
|
|
3743
3743
|
}, {
|
|
@@ -3764,7 +3764,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3764
3764
|
}),
|
|
3765
3765
|
d(u, null, {
|
|
3766
3766
|
default: m(() => [
|
|
3767
|
-
d(
|
|
3767
|
+
d(p, {
|
|
3768
3768
|
modelValue: V(o).filterForm.range_time,
|
|
3769
3769
|
"onUpdate:modelValue": r[1] || (r[1] = (f) => V(o).filterForm.range_time = f),
|
|
3770
3770
|
"true-value": 1,
|
|
@@ -3779,12 +3779,12 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3779
3779
|
});
|
|
3780
3780
|
};
|
|
3781
3781
|
}
|
|
3782
|
-
}),
|
|
3782
|
+
}), Va = /* @__PURE__ */ q({
|
|
3783
3783
|
__name: "SettingTitle",
|
|
3784
3784
|
setup(t) {
|
|
3785
3785
|
const e = xe();
|
|
3786
3786
|
return (o, n) => {
|
|
3787
|
-
const a = h("el-input"), l = h("el-form-item"), r = h("el-color-picker"), s = h("el-col"), i = h("el-input-number"), u = h("el-option"),
|
|
3787
|
+
const a = h("el-input"), l = h("el-form-item"), r = h("el-color-picker"), s = h("el-col"), i = h("el-input-number"), u = h("el-option"), p = h("el-select"), c = h("el-row"), f = h("el-form");
|
|
3788
3788
|
return v(), U(f, {
|
|
3789
3789
|
"label-width": "auto",
|
|
3790
3790
|
"label-position": "top"
|
|
@@ -3804,7 +3804,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3804
3804
|
}),
|
|
3805
3805
|
d(l, { label: "样式" }, {
|
|
3806
3806
|
default: m(() => [
|
|
3807
|
-
d(
|
|
3807
|
+
d(c, { gutter: 20 }, {
|
|
3808
3808
|
default: m(() => [
|
|
3809
3809
|
d(s, { span: 12 }, {
|
|
3810
3810
|
default: m(() => [
|
|
@@ -3830,7 +3830,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3830
3830
|
}),
|
|
3831
3831
|
d(s, { span: 12 }, {
|
|
3832
3832
|
default: m(() => [
|
|
3833
|
-
d(
|
|
3833
|
+
d(p, {
|
|
3834
3834
|
modelValue: V(e).activeComponents.options.fontWeight,
|
|
3835
3835
|
"onUpdate:modelValue": n[3] || (n[3] = (g) => V(e).activeComponents.options.fontWeight = g)
|
|
3836
3836
|
}, {
|
|
@@ -3874,7 +3874,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3874
3874
|
}),
|
|
3875
3875
|
d(s, { span: 12 }, {
|
|
3876
3876
|
default: m(() => [
|
|
3877
|
-
d(
|
|
3877
|
+
d(p, {
|
|
3878
3878
|
modelValue: V(e).activeComponents.options.textAlign,
|
|
3879
3879
|
"onUpdate:modelValue": n[6] || (n[6] = (g) => V(e).activeComponents.options.textAlign = g)
|
|
3880
3880
|
}, {
|
|
@@ -3910,20 +3910,20 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3910
3910
|
};
|
|
3911
3911
|
}
|
|
3912
3912
|
});
|
|
3913
|
-
const
|
|
3913
|
+
const Ia = /* @__PURE__ */ et(Va, [["__scopeId", "data-v-56fef84c"]]), Ba = /* @__PURE__ */ q({
|
|
3914
3914
|
__name: "Setting",
|
|
3915
3915
|
setup(t) {
|
|
3916
3916
|
const e = {
|
|
3917
3917
|
SettingTable: dn,
|
|
3918
|
-
SettingCharts:
|
|
3918
|
+
SettingCharts: xa,
|
|
3919
3919
|
SettingDescribe: pn,
|
|
3920
|
-
SettingText:
|
|
3921
|
-
SettingFilter:
|
|
3922
|
-
SettingTitle:
|
|
3923
|
-
}, o = xe(), n =
|
|
3920
|
+
SettingText: Oa,
|
|
3921
|
+
SettingFilter: ka,
|
|
3922
|
+
SettingTitle: Ia
|
|
3923
|
+
}, o = xe(), n = Ee(() => o.activeComponents), a = ["h1", "h2", "h3", "h4"], l = ["p"], r = ["report-table", "bar", "line", "pie", "report-describe", "wordcloud"], s = (i) => a.includes(i) ? we(e, "SettingTitle") : l.includes(i) ? we(e, "SettingText") : r.includes(i) ? we(e, "SettingCharts") : i === "filter" ? we(e, "SettingFilter") : "DefaultEditor";
|
|
3924
3924
|
return (i, u) => {
|
|
3925
|
-
const
|
|
3926
|
-
return v(), U(
|
|
3925
|
+
const p = h("el-card");
|
|
3926
|
+
return v(), U(p, { class: "config-wrapper" }, {
|
|
3927
3927
|
default: m(() => [
|
|
3928
3928
|
(v(), U(Dt(s(n.value.type))))
|
|
3929
3929
|
]),
|
|
@@ -3931,7 +3931,7 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
3931
3931
|
});
|
|
3932
3932
|
};
|
|
3933
3933
|
}
|
|
3934
|
-
}),
|
|
3934
|
+
}), La = { class: "editor-wrapper flex items-center space-between start" }, Pa = { class: "flex items-center space-between" }, Ra = { class: "btn-group" }, Ua = /* @__PURE__ */ q({
|
|
3935
3935
|
__name: "index",
|
|
3936
3936
|
props: /* @__PURE__ */ Vo({
|
|
3937
3937
|
reportId: {
|
|
@@ -3986,23 +3986,23 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
3986
3986
|
return bn(() => {
|
|
3987
3987
|
e.clearComponents();
|
|
3988
3988
|
}), (i, u) => {
|
|
3989
|
-
const
|
|
3990
|
-
return v(), D("div",
|
|
3989
|
+
const p = h("el-button"), c = h("el-button-group"), f = h("el-card");
|
|
3990
|
+
return v(), D("div", La, [
|
|
3991
3991
|
d(f, { class: "view-wrapper" }, {
|
|
3992
3992
|
default: m(() => [
|
|
3993
|
-
M("div",
|
|
3994
|
-
M("div",
|
|
3995
|
-
d(
|
|
3993
|
+
M("div", Pa, [
|
|
3994
|
+
M("div", Ra, [
|
|
3995
|
+
d(c, null, {
|
|
3996
3996
|
default: m(() => [
|
|
3997
3997
|
(v(!0), D(G, null, J(V(il), (g) => (v(), D(G, {
|
|
3998
3998
|
key: g.type
|
|
3999
3999
|
}, [
|
|
4000
|
-
g != null && g.hide ? ee("", !0) : (v(), U(
|
|
4000
|
+
g != null && g.hide ? ee("", !0) : (v(), U(p, {
|
|
4001
4001
|
key: 0,
|
|
4002
4002
|
onClick: (C) => a(g)
|
|
4003
4003
|
}, {
|
|
4004
4004
|
default: m(() => [
|
|
4005
|
-
X(
|
|
4005
|
+
X(Ce(g.name), 1)
|
|
4006
4006
|
]),
|
|
4007
4007
|
_: 2
|
|
4008
4008
|
}, 1032, ["onClick"]))
|
|
@@ -4011,9 +4011,9 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4011
4011
|
_: 1
|
|
4012
4012
|
})
|
|
4013
4013
|
]),
|
|
4014
|
-
d(
|
|
4014
|
+
d(c, null, {
|
|
4015
4015
|
default: m(() => [
|
|
4016
|
-
d(
|
|
4016
|
+
d(p, {
|
|
4017
4017
|
type: "primary",
|
|
4018
4018
|
onClick: s
|
|
4019
4019
|
}, {
|
|
@@ -4022,7 +4022,7 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4022
4022
|
])),
|
|
4023
4023
|
_: 1
|
|
4024
4024
|
}),
|
|
4025
|
-
d(
|
|
4025
|
+
d(p, { onClick: l }, {
|
|
4026
4026
|
default: m(() => u[1] || (u[1] = [
|
|
4027
4027
|
X("退出")
|
|
4028
4028
|
])),
|
|
@@ -4032,23 +4032,23 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4032
4032
|
_: 1
|
|
4033
4033
|
})
|
|
4034
4034
|
]),
|
|
4035
|
-
d(
|
|
4035
|
+
d(va)
|
|
4036
4036
|
]),
|
|
4037
4037
|
_: 1
|
|
4038
4038
|
}),
|
|
4039
|
-
d(
|
|
4039
|
+
d(Ba)
|
|
4040
4040
|
]);
|
|
4041
4041
|
};
|
|
4042
4042
|
}
|
|
4043
|
-
}),
|
|
4043
|
+
}), Ma = {
|
|
4044
4044
|
class: "table-box"
|
|
4045
|
-
},
|
|
4045
|
+
}, Fa = /* @__PURE__ */ q({
|
|
4046
4046
|
__name: "Report",
|
|
4047
4047
|
emits: ["click"],
|
|
4048
4048
|
setup(t, {
|
|
4049
4049
|
emit: e
|
|
4050
4050
|
}) {
|
|
4051
|
-
const o = window.windowGlobalVar.SYSTEM_NORMAL, n =
|
|
4051
|
+
const o = window.windowGlobalVar.SYSTEM_NORMAL, n = Ee(() => ({
|
|
4052
4052
|
prod_type: window.$prodType,
|
|
4053
4053
|
cg_linkage: o ? 1 : o ? void 0 : 0
|
|
4054
4054
|
})), a = P(), l = e, r = (g) => {
|
|
@@ -4059,13 +4059,13 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4059
4059
|
l("click", "", "editor");
|
|
4060
4060
|
}, u = (g) => {
|
|
4061
4061
|
console.log(g);
|
|
4062
|
-
},
|
|
4062
|
+
}, p = (g) => {
|
|
4063
4063
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
4064
4064
|
await Rn({
|
|
4065
4065
|
report_uuids: g
|
|
4066
4066
|
}), a.value.getTableList();
|
|
4067
4067
|
});
|
|
4068
|
-
},
|
|
4068
|
+
}, c = (g) => g.report_type === 1, f = Ne([
|
|
4069
4069
|
// { type: 'selection', fixed: 'left', width: 70 },
|
|
4070
4070
|
{
|
|
4071
4071
|
type: "selection",
|
|
@@ -4113,13 +4113,13 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4113
4113
|
icon: "Delete",
|
|
4114
4114
|
title: "删除",
|
|
4115
4115
|
disabled: g.row.report_type === 0,
|
|
4116
|
-
onClick: () =>
|
|
4116
|
+
onClick: () => p([g.row.report_uuid])
|
|
4117
4117
|
}, null)])
|
|
4118
4118
|
}
|
|
4119
4119
|
]);
|
|
4120
4120
|
return (g, C) => {
|
|
4121
4121
|
const b = h("el-button"), _ = h("TdsTable");
|
|
4122
|
-
return v(), D("div",
|
|
4122
|
+
return v(), D("div", Ma, [d(_, {
|
|
4123
4123
|
ref_key: "refTdsTable",
|
|
4124
4124
|
ref: a,
|
|
4125
4125
|
columns: f,
|
|
@@ -4128,7 +4128,7 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4128
4128
|
"row-key": "report_uuid",
|
|
4129
4129
|
options: g.$tableOptions(),
|
|
4130
4130
|
"search-col": 6,
|
|
4131
|
-
selectable:
|
|
4131
|
+
selectable: c,
|
|
4132
4132
|
onSelectionChange: u
|
|
4133
4133
|
}, {
|
|
4134
4134
|
tableHeader: m((T) => [d(b, {
|
|
@@ -4144,7 +4144,7 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4144
4144
|
plain: "",
|
|
4145
4145
|
type: "danger",
|
|
4146
4146
|
icon: "Delete",
|
|
4147
|
-
onClick: (S) =>
|
|
4147
|
+
onClick: (S) => p(T.selectedListIds)
|
|
4148
4148
|
}, {
|
|
4149
4149
|
default: m(() => C[1] || (C[1] = [X("删除")])),
|
|
4150
4150
|
_: 2
|
|
@@ -4154,17 +4154,17 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4154
4154
|
};
|
|
4155
4155
|
}
|
|
4156
4156
|
});
|
|
4157
|
-
const
|
|
4157
|
+
const Na = { style: { height: "100%" } }, Qa = /* @__PURE__ */ q({
|
|
4158
4158
|
name: "TCReport",
|
|
4159
4159
|
__name: "index",
|
|
4160
4160
|
setup(t) {
|
|
4161
4161
|
const e = P(), o = P("table"), n = (a, l) => {
|
|
4162
4162
|
e.value = a, o.value = l;
|
|
4163
4163
|
};
|
|
4164
|
-
return (a, l) => (v(), D("div",
|
|
4164
|
+
return (a, l) => (v(), D("div", Na, [
|
|
4165
4165
|
d(_n, { name: "slide-fade" }, {
|
|
4166
4166
|
default: m(() => [
|
|
4167
|
-
o.value === "table" ? (v(), U(
|
|
4167
|
+
o.value === "table" ? (v(), U(Fa, {
|
|
4168
4168
|
key: 0,
|
|
4169
4169
|
onClick: n
|
|
4170
4170
|
})) : ee("", !0),
|
|
@@ -4174,7 +4174,7 @@ const Fa = { style: { height: "100%" } }, Na = /* @__PURE__ */ q({
|
|
|
4174
4174
|
modelValue: o.value,
|
|
4175
4175
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => o.value = r)
|
|
4176
4176
|
}, null, 8, ["report-id", "modelValue"])) : ee("", !0),
|
|
4177
|
-
o.value === "editor" ? (v(), U(
|
|
4177
|
+
o.value === "editor" ? (v(), U(Ua, {
|
|
4178
4178
|
key: 2,
|
|
4179
4179
|
"report-id": e.value,
|
|
4180
4180
|
modelValue: o.value,
|
|
@@ -4194,7 +4194,7 @@ const At = (t, e) => {
|
|
|
4194
4194
|
for (const [o, n] of Object.entries(e))
|
|
4195
4195
|
t[o] = n;
|
|
4196
4196
|
return t;
|
|
4197
|
-
},
|
|
4197
|
+
}, Ka = At(Qa), Ha = [
|
|
4198
4198
|
{
|
|
4199
4199
|
label: "正文",
|
|
4200
4200
|
value: "p"
|
|
@@ -4219,7 +4219,7 @@ const At = (t, e) => {
|
|
|
4219
4219
|
label: "描述列表",
|
|
4220
4220
|
value: "report-describe"
|
|
4221
4221
|
}
|
|
4222
|
-
],
|
|
4222
|
+
], za = [
|
|
4223
4223
|
{
|
|
4224
4224
|
value: "p",
|
|
4225
4225
|
fields: ["table_key_relation"]
|
|
@@ -4244,9 +4244,9 @@ const At = (t, e) => {
|
|
|
4244
4244
|
value: "report-describe",
|
|
4245
4245
|
fields: ["p_text"]
|
|
4246
4246
|
}
|
|
4247
|
-
],
|
|
4247
|
+
], qa = {
|
|
4248
4248
|
class: "table-box"
|
|
4249
|
-
},
|
|
4249
|
+
}, Ya = /* @__PURE__ */ q({
|
|
4250
4250
|
name: "TCModule",
|
|
4251
4251
|
__name: "index",
|
|
4252
4252
|
setup(t) {
|
|
@@ -4279,9 +4279,9 @@ const At = (t, e) => {
|
|
|
4279
4279
|
data: _
|
|
4280
4280
|
})), e.value.getTableList(), o.value.close();
|
|
4281
4281
|
}
|
|
4282
|
-
const
|
|
4282
|
+
const p = (b) => {
|
|
4283
4283
|
n.value.table_key_relation.splice(b, 1);
|
|
4284
|
-
},
|
|
4284
|
+
}, c = () => {
|
|
4285
4285
|
n.value.table_key_relation.push({
|
|
4286
4286
|
name: "",
|
|
4287
4287
|
key: "",
|
|
@@ -4324,10 +4324,10 @@ const At = (t, e) => {
|
|
|
4324
4324
|
}, {
|
|
4325
4325
|
field: "chart_type",
|
|
4326
4326
|
name: "组件类型",
|
|
4327
|
-
enum:
|
|
4327
|
+
enum: Ha,
|
|
4328
4328
|
show: {
|
|
4329
4329
|
type: "select",
|
|
4330
|
-
display:
|
|
4330
|
+
display: za
|
|
4331
4331
|
},
|
|
4332
4332
|
rules: [{
|
|
4333
4333
|
required: !0
|
|
@@ -4382,13 +4382,13 @@ const At = (t, e) => {
|
|
|
4382
4382
|
}), n.value.table_key_relation.length > 1 && d("div", {
|
|
4383
4383
|
class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
|
|
4384
4384
|
}, [d(h("el-icon"), {
|
|
4385
|
-
onClick: () =>
|
|
4385
|
+
onClick: () => p(T)
|
|
4386
4386
|
}, {
|
|
4387
4387
|
default: () => [d(On, null, null)]
|
|
4388
4388
|
})])])), d(h("el-button"), {
|
|
4389
4389
|
class: "report-btn ",
|
|
4390
4390
|
icon: "Plus",
|
|
4391
|
-
onClick: () =>
|
|
4391
|
+
onClick: () => c()
|
|
4392
4392
|
}, {
|
|
4393
4393
|
default: () => [X("新增表头与KEY")]
|
|
4394
4394
|
})]);
|
|
@@ -4444,7 +4444,7 @@ const At = (t, e) => {
|
|
|
4444
4444
|
}]);
|
|
4445
4445
|
return (b, _) => {
|
|
4446
4446
|
const T = h("el-button"), S = h("TdsTable"), Y = h("TdsForm");
|
|
4447
|
-
return v(), D("div",
|
|
4447
|
+
return v(), D("div", qa, [d(S, {
|
|
4448
4448
|
ref_key: "refTdsTable",
|
|
4449
4449
|
ref: e,
|
|
4450
4450
|
columns: C,
|
|
@@ -4487,13 +4487,13 @@ const At = (t, e) => {
|
|
|
4487
4487
|
};
|
|
4488
4488
|
}
|
|
4489
4489
|
});
|
|
4490
|
-
const
|
|
4490
|
+
const Xa = At(Ya), Ga = {
|
|
4491
4491
|
class: "table-box"
|
|
4492
4492
|
};
|
|
4493
|
-
function
|
|
4493
|
+
function ja(t) {
|
|
4494
4494
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !lo(t);
|
|
4495
4495
|
}
|
|
4496
|
-
const
|
|
4496
|
+
const Wa = /* @__PURE__ */ q({
|
|
4497
4497
|
__name: "index",
|
|
4498
4498
|
setup(t) {
|
|
4499
4499
|
const e = P(), {
|
|
@@ -4511,13 +4511,13 @@ const ja = /* @__PURE__ */ q({
|
|
|
4511
4511
|
s(e.value.selectedList);
|
|
4512
4512
|
}
|
|
4513
4513
|
const u = (x) => {
|
|
4514
|
-
|
|
4514
|
+
p(), x && Object.assign(l, x), a.value = x ? "编辑报表订阅" : "新增报表订阅", r.value = !0;
|
|
4515
4515
|
};
|
|
4516
|
-
function
|
|
4516
|
+
function p() {
|
|
4517
4517
|
for (const x in l)
|
|
4518
4518
|
delete l[x];
|
|
4519
4519
|
}
|
|
4520
|
-
async function
|
|
4520
|
+
async function c() {
|
|
4521
4521
|
const x = Object.assign({}, l);
|
|
4522
4522
|
k.value.forEach((w) => {
|
|
4523
4523
|
var j;
|
|
@@ -4602,7 +4602,7 @@ const ja = /* @__PURE__ */ q({
|
|
|
4602
4602
|
render: (x) => d(G, null, [x.row.receiver_email.map((w) => d(h("el-tag"), {
|
|
4603
4603
|
class: "mr-10px",
|
|
4604
4604
|
type: "info"
|
|
4605
|
-
},
|
|
4605
|
+
}, ja(w) ? w : {
|
|
4606
4606
|
default: () => [w]
|
|
4607
4607
|
}))])
|
|
4608
4608
|
}, {
|
|
@@ -4778,7 +4778,7 @@ const ja = /* @__PURE__ */ q({
|
|
|
4778
4778
|
}
|
|
4779
4779
|
return (x, w) => {
|
|
4780
4780
|
const j = h("el-button"), ce = h("el-input"), H = h("el-form-item"), se = h("el-option"), Ae = h("el-select"), Qe = h("el-form"), tt = h("TdsDialog");
|
|
4781
|
-
return v(), D("div",
|
|
4781
|
+
return v(), D("div", Ga, [d(V(Po), {
|
|
4782
4782
|
ref_key: "refTdsTable",
|
|
4783
4783
|
ref: e,
|
|
4784
4784
|
"row-key": "subscript_uuid",
|
|
@@ -4793,7 +4793,7 @@ const ja = /* @__PURE__ */ q({
|
|
|
4793
4793
|
plain: "",
|
|
4794
4794
|
onClick: w[0] || (w[0] = (E) => u())
|
|
4795
4795
|
}, {
|
|
4796
|
-
default: m(() => [X(
|
|
4796
|
+
default: m(() => [X(Ce(V(o)("button.add")), 1)]),
|
|
4797
4797
|
_: 1
|
|
4798
4798
|
}), d(j, {
|
|
4799
4799
|
type: "danger",
|
|
@@ -4802,7 +4802,7 @@ const ja = /* @__PURE__ */ q({
|
|
|
4802
4802
|
onClick: i,
|
|
4803
4803
|
disabled: !A.selectedListIds.length
|
|
4804
4804
|
}, {
|
|
4805
|
-
default: m(() => [X(
|
|
4805
|
+
default: m(() => [X(Ce(V(o)("button.delete")), 1)]),
|
|
4806
4806
|
_: 2
|
|
4807
4807
|
}, 1032, ["disabled"])]),
|
|
4808
4808
|
_: 1
|
|
@@ -4821,7 +4821,7 @@ const ja = /* @__PURE__ */ q({
|
|
|
4821
4821
|
}), d(j, {
|
|
4822
4822
|
icon: "Check",
|
|
4823
4823
|
type: "primary",
|
|
4824
|
-
onClick:
|
|
4824
|
+
onClick: c
|
|
4825
4825
|
}, {
|
|
4826
4826
|
default: m(() => w[17] || (w[17] = [X("确定")])),
|
|
4827
4827
|
_: 1
|
|
@@ -5039,11 +5039,11 @@ const ja = /* @__PURE__ */ q({
|
|
|
5039
5039
|
}, 8, ["modelValue", "title"])]);
|
|
5040
5040
|
};
|
|
5041
5041
|
}
|
|
5042
|
-
}),
|
|
5042
|
+
}), Ja = At(Wa), $a = {
|
|
5043
5043
|
class: "main-wrapper"
|
|
5044
|
-
},
|
|
5044
|
+
}, Za = {
|
|
5045
5045
|
class: "el-dropdown-link"
|
|
5046
|
-
},
|
|
5046
|
+
}, er = /* @__PURE__ */ q({
|
|
5047
5047
|
name: "TCBuildin",
|
|
5048
5048
|
__name: "index",
|
|
5049
5049
|
setup(t) {
|
|
@@ -5055,9 +5055,9 @@ const ja = /* @__PURE__ */ q({
|
|
|
5055
5055
|
});
|
|
5056
5056
|
o.value = i.data[0].report_uuid;
|
|
5057
5057
|
const u = {};
|
|
5058
|
-
i.data.forEach((
|
|
5059
|
-
const
|
|
5060
|
-
u[
|
|
5058
|
+
i.data.forEach((p) => {
|
|
5059
|
+
const c = p.report_category || p.report_uuid;
|
|
5060
|
+
u[c] || (u[c] = []), u[c].push(p);
|
|
5061
5061
|
}), e.value = u;
|
|
5062
5062
|
}
|
|
5063
5063
|
const l = (s, i) => {
|
|
@@ -5066,8 +5066,8 @@ const ja = /* @__PURE__ */ q({
|
|
|
5066
5066
|
n.value = "";
|
|
5067
5067
|
};
|
|
5068
5068
|
return a(), (s, i) => {
|
|
5069
|
-
const u = h("arrow-down"),
|
|
5070
|
-
return v(), D("div",
|
|
5069
|
+
const u = h("arrow-down"), p = h("el-icon"), c = h("el-dropdown-item"), f = h("el-dropdown-menu"), g = h("el-dropdown"), C = h("el-tab-pane"), b = h("el-tabs");
|
|
5070
|
+
return v(), D("div", $a, [d(b, {
|
|
5071
5071
|
modelValue: o.value,
|
|
5072
5072
|
"onUpdate:modelValue": i[0] || (i[0] = (_) => o.value = _),
|
|
5073
5073
|
class: "report-tabs",
|
|
@@ -5090,7 +5090,7 @@ const ja = /* @__PURE__ */ q({
|
|
|
5090
5090
|
_: 2
|
|
5091
5091
|
}, [_.length === 1 ? {
|
|
5092
5092
|
name: "label",
|
|
5093
|
-
fn: m(() => [X(
|
|
5093
|
+
fn: m(() => [X(Ce(_[0].report_name), 1)]),
|
|
5094
5094
|
key: "0"
|
|
5095
5095
|
} : {
|
|
5096
5096
|
name: "label",
|
|
@@ -5098,17 +5098,17 @@ const ja = /* @__PURE__ */ q({
|
|
|
5098
5098
|
onCommand: (S) => l(S, _[0].report_uuid)
|
|
5099
5099
|
}, {
|
|
5100
5100
|
dropdown: m(() => [d(f, null, {
|
|
5101
|
-
default: m(() => [(v(!0), D(G, null, J(_, (S) => (v(), U(
|
|
5101
|
+
default: m(() => [(v(!0), D(G, null, J(_, (S) => (v(), U(c, {
|
|
5102
5102
|
key: S.report_uuid,
|
|
5103
5103
|
class: "mt-10px",
|
|
5104
5104
|
command: S.report_uuid
|
|
5105
5105
|
}, {
|
|
5106
|
-
default: m(() => [X(
|
|
5106
|
+
default: m(() => [X(Ce(S.report_name), 1)]),
|
|
5107
5107
|
_: 2
|
|
5108
5108
|
}, 1032, ["command"]))), 128))]),
|
|
5109
5109
|
_: 2
|
|
5110
5110
|
}, 1024)]),
|
|
5111
|
-
default: m(() => [M("span",
|
|
5111
|
+
default: m(() => [M("span", Za, [X(Ce(T) + " ", 1), d(p, {
|
|
5112
5112
|
class: "el-icon--right"
|
|
5113
5113
|
}, {
|
|
5114
5114
|
default: m(() => [d(u)]),
|
|
@@ -5123,24 +5123,24 @@ const ja = /* @__PURE__ */ q({
|
|
|
5123
5123
|
};
|
|
5124
5124
|
}
|
|
5125
5125
|
});
|
|
5126
|
-
const
|
|
5127
|
-
function
|
|
5126
|
+
const tr = /* @__PURE__ */ et(er, [["__scopeId", "data-v-99a69fda"]]), or = At(tr);
|
|
5127
|
+
function nr(t, e, o) {
|
|
5128
5128
|
const n = atob(t), a = [];
|
|
5129
5129
|
for (let i = 0; i < n.length; i += 512) {
|
|
5130
|
-
const u = n.slice(i, i + 512),
|
|
5130
|
+
const u = n.slice(i, i + 512), p = new Array(u.length);
|
|
5131
5131
|
for (let f = 0; f < u.length; f++)
|
|
5132
|
-
|
|
5133
|
-
const
|
|
5134
|
-
a.push(
|
|
5132
|
+
p[f] = u.charCodeAt(f);
|
|
5133
|
+
const c = new Uint8Array(p);
|
|
5134
|
+
a.push(c);
|
|
5135
5135
|
}
|
|
5136
5136
|
const l = new Blob(a, { type: o }), r = URL.createObjectURL(l), s = document.createElement("a");
|
|
5137
5137
|
s.href = r, s.download = e, document.body.appendChild(s), s.click(), setTimeout(() => {
|
|
5138
5138
|
document.body.removeChild(s), URL.revokeObjectURL(r);
|
|
5139
5139
|
}, 0);
|
|
5140
5140
|
}
|
|
5141
|
-
const
|
|
5141
|
+
const lr = {
|
|
5142
5142
|
class: "table-box"
|
|
5143
|
-
},
|
|
5143
|
+
}, ar = /* @__PURE__ */ q({
|
|
5144
5144
|
name: "TCDownload",
|
|
5145
5145
|
__name: "index",
|
|
5146
5146
|
setup(t) {
|
|
@@ -5150,7 +5150,7 @@ const nr = {
|
|
|
5150
5150
|
const s = await Wn({
|
|
5151
5151
|
export_uuid: r.export_uuid
|
|
5152
5152
|
}), i = r.export_format === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
5153
|
-
|
|
5153
|
+
nr(s.file_data, s.file_name, i), o.value.getTableList();
|
|
5154
5154
|
}, a = (r) => {
|
|
5155
5155
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
5156
5156
|
await Jn({
|
|
@@ -5226,7 +5226,7 @@ const nr = {
|
|
|
5226
5226
|
}]);
|
|
5227
5227
|
return (r, s) => {
|
|
5228
5228
|
const i = h("el-button");
|
|
5229
|
-
return v(), D("div",
|
|
5229
|
+
return v(), D("div", lr, [d(V(Po), {
|
|
5230
5230
|
ref_key: "proTable",
|
|
5231
5231
|
ref: o,
|
|
5232
5232
|
columns: l,
|
|
@@ -5244,7 +5244,7 @@ const nr = {
|
|
|
5244
5244
|
plain: "",
|
|
5245
5245
|
type: "danger",
|
|
5246
5246
|
icon: "Delete",
|
|
5247
|
-
onClick: (
|
|
5247
|
+
onClick: (p) => a(u.selectedListIds)
|
|
5248
5248
|
}, {
|
|
5249
5249
|
default: m(() => s[0] || (s[0] = [X("删除")])),
|
|
5250
5250
|
_: 2
|
|
@@ -5253,24 +5253,24 @@ const nr = {
|
|
|
5253
5253
|
}, 8, ["columns", "request-api", "init-param", "options"])]);
|
|
5254
5254
|
};
|
|
5255
5255
|
}
|
|
5256
|
-
}),
|
|
5257
|
-
TCReport:
|
|
5258
|
-
TCModule:
|
|
5259
|
-
TCSubscribe:
|
|
5260
|
-
TCBuildin:
|
|
5261
|
-
TCDownload:
|
|
5262
|
-
},
|
|
5256
|
+
}), rr = At(ar), ir = {
|
|
5257
|
+
TCReport: Ka,
|
|
5258
|
+
TCModule: Xa,
|
|
5259
|
+
TCSubscribe: Ja,
|
|
5260
|
+
TCBuildin: or,
|
|
5261
|
+
TCDownload: rr
|
|
5262
|
+
}, mr = {
|
|
5263
5263
|
install(t, e) {
|
|
5264
|
-
Object.entries(
|
|
5264
|
+
Object.entries(ir).forEach(([o, n]) => {
|
|
5265
5265
|
t.component(o, n);
|
|
5266
5266
|
}), e.prodType && (window.$prodType = e.prodType), e.envURL && (window.$reportURL = e.envURL);
|
|
5267
5267
|
}
|
|
5268
5268
|
};
|
|
5269
5269
|
export {
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5270
|
+
or as TCBuildin,
|
|
5271
|
+
rr as TCDownload,
|
|
5272
|
+
Xa as TCModule,
|
|
5273
|
+
Ka as TCReport,
|
|
5274
|
+
Ja as TCSubscribe,
|
|
5275
|
+
mr as default
|
|
5276
5276
|
};
|