@topdatasec/report 1.1.36 → 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 +345 -346
- package/lib/t-report-ui.umd.js +4 -4
- package/package.json +1 -1
package/lib/t-report-ui.es.js
CHANGED
|
@@ -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: {
|
|
@@ -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 : {
|
|
@@ -1224,7 +1223,7 @@ const qo = /* @__PURE__ */ q({
|
|
|
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: {}
|
|
@@ -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
|
}
|
|
@@ -1482,9 +1481,9 @@ const jo = /* @__PURE__ */ et(yl, [["__scopeId", "data-v-2c52b725"]]), Cl = {
|
|
|
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: "",
|
|
@@ -1561,29 +1560,29 @@ const jo = /* @__PURE__ */ et(yl, [["__scopeId", "data-v-2c52b725"]]), Cl = {
|
|
|
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
|
}
|
|
@@ -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) {
|
|
@@ -1880,7 +1879,7 @@ function on(t) {
|
|
|
1880
1879
|
return e && e.dom ? e.dom(t).cloneNode(!0) : o ? o(t).clone(!0)[0] : t.cloneNode(!0);
|
|
1881
1880
|
}
|
|
1882
1881
|
var ye = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
1883
|
-
function
|
|
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,
|
|
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;
|
|
2001
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,20 +2065,20 @@ 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
2084
|
var l = a[ye].options.emptyInsertThreshold;
|
|
@@ -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,7 +2120,7 @@ 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)
|
|
@@ -2129,7 +2128,7 @@ var He = function(e) {
|
|
|
2129
2128
|
n.target = n.rootEl = o, n.preventDefault = void 0, n.stopPropagation = void 0, o[ye]._onDragOver(n);
|
|
2130
2129
|
}
|
|
2131
2130
|
}
|
|
2132
|
-
},
|
|
2131
|
+
}, $l = function(e) {
|
|
2133
2132
|
y && y.parentNode[ye]._isOutsideThisEl(e.target);
|
|
2134
2133
|
};
|
|
2135
2134
|
function B(t, e) {
|
|
@@ -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 = De(i), it = De(i, a.draggable), typeof
|
|
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,
|
|
@@ -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,7 +2403,7 @@ 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
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
|
}
|
|
@@ -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,8 +2440,8 @@ 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
2447
|
var x = De(y);
|
|
@@ -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);
|
|
@@ -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
|
/**
|
|
@@ -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[ye],
|
|
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 <
|
|
2663
|
+
return f = f || r, f && (i < p + u * l / 2 || i > c - u * l / 2) ? i > p + u / 2 ? 1 : -1 : 0;
|
|
2665
2664
|
}
|
|
2666
|
-
function
|
|
2665
|
+
function la(t) {
|
|
2667
2666
|
return De(y) < De(t) ? 1 : -1;
|
|
2668
2667
|
}
|
|
2669
|
-
function
|
|
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,7 +2694,7 @@ 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,
|
|
@@ -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 = {
|
|
@@ -3165,7 +3164,7 @@ const ca = q({
|
|
|
3165
3164
|
}, i = (_) => {
|
|
3166
3165
|
r.setActiveComponents(_);
|
|
3167
3166
|
}, u = () => d("div", null, [X("未找到对应组件")]);
|
|
3168
|
-
function
|
|
3167
|
+
function p(_) {
|
|
3169
3168
|
console.log(_, "evt");
|
|
3170
3169
|
const T = _.draggedContext.index;
|
|
3171
3170
|
if (T < xo)
|
|
@@ -3173,7 +3172,7 @@ const ca = q({
|
|
|
3173
3172
|
const S = _.draggedContext.futureIndex;
|
|
3174
3173
|
return S < xo ? (console.log(`禁止将元素移动到固定位置,目标索引为 ${S}。`), !1) : !0;
|
|
3175
3174
|
}
|
|
3176
|
-
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 = (_) => {
|
|
3177
3176
|
console.log(_, "evt");
|
|
3178
3177
|
}, g = P(!1), C = () => {
|
|
3179
3178
|
g.value = !0;
|
|
@@ -3182,7 +3181,7 @@ const ca = q({
|
|
|
3182
3181
|
};
|
|
3183
3182
|
return (_, T) => {
|
|
3184
3183
|
const S = h("CircleClose"), Y = h("el-icon");
|
|
3185
|
-
return v(), D("div",
|
|
3184
|
+
return v(), D("div", fa, [M("div", {
|
|
3186
3185
|
class: Je(["editor-content edit flex flex-start", [{
|
|
3187
3186
|
active: V(n).id === "filter"
|
|
3188
3187
|
}]]),
|
|
@@ -3199,7 +3198,7 @@ const ca = q({
|
|
|
3199
3198
|
}, {
|
|
3200
3199
|
default: m(() => [X(Ce(k.data), 1)]),
|
|
3201
3200
|
_: 2
|
|
3202
|
-
}, 1032, ["value"])) : ee("", !0)]))), 128))], 2), d(V(
|
|
3201
|
+
}, 1032, ["value"])) : ee("", !0)]))), 128))], 2), d(V(Aa), {
|
|
3203
3202
|
ref: "el",
|
|
3204
3203
|
modelValue: V(o),
|
|
3205
3204
|
"onUpdate:modelValue": T[1] || (T[1] = (k) => gn(o) ? o.value = k : null),
|
|
@@ -3208,7 +3207,7 @@ const ca = q({
|
|
|
3208
3207
|
animation: 150,
|
|
3209
3208
|
onStart: C,
|
|
3210
3209
|
onEnd: b,
|
|
3211
|
-
move:
|
|
3210
|
+
move: p
|
|
3212
3211
|
}, {
|
|
3213
3212
|
default: m(() => [(v(!0), D(G, null, J(V(o), (k) => (v(), D("div", {
|
|
3214
3213
|
key: k.id,
|
|
@@ -3227,7 +3226,7 @@ const ca = q({
|
|
|
3227
3226
|
}, {
|
|
3228
3227
|
default: m(() => [d(S)]),
|
|
3229
3228
|
_: 1
|
|
3230
|
-
})], 8,
|
|
3229
|
+
})], 8, ga), k.type !== "p" ? (v(), U(Dt(c(k.type)), {
|
|
3231
3230
|
key: 0,
|
|
3232
3231
|
class: Je(["editor" + k.type]),
|
|
3233
3232
|
value: k,
|
|
@@ -3239,12 +3238,12 @@ const ca = q({
|
|
|
3239
3238
|
key: 1,
|
|
3240
3239
|
innerHTML: k.data,
|
|
3241
3240
|
draggable: g.value
|
|
3242
|
-
}, null, 8,
|
|
3241
|
+
}, null, 8, ha))], 10, ma))), 128))]),
|
|
3243
3242
|
_: 1
|
|
3244
3243
|
}, 8, ["modelValue"])]);
|
|
3245
3244
|
};
|
|
3246
3245
|
}
|
|
3247
|
-
}),
|
|
3246
|
+
}), ba = { class: "label" }, _a = { class: "flex item-switch" }, wa = { class: "flex item-switch" }, ya = { class: "flex item-switch" }, dn = /* @__PURE__ */ q({
|
|
3248
3247
|
__name: "SettingTable",
|
|
3249
3248
|
setup(t) {
|
|
3250
3249
|
const e = xe(), o = Ee(() => e.getActiveComponents);
|
|
@@ -3257,10 +3256,10 @@ const ca = q({
|
|
|
3257
3256
|
class: "flex item-switch",
|
|
3258
3257
|
key: u
|
|
3259
3258
|
}, [
|
|
3260
|
-
M("span",
|
|
3259
|
+
M("span", ba, Ce(i.name), 1),
|
|
3261
3260
|
d(l, {
|
|
3262
3261
|
modelValue: o.value.options.showColumn[i.key],
|
|
3263
|
-
"onUpdate:modelValue": (
|
|
3262
|
+
"onUpdate:modelValue": (p) => o.value.options.showColumn[i.key] = p
|
|
3264
3263
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
3265
3264
|
]))), 128))
|
|
3266
3265
|
]),
|
|
@@ -3269,21 +3268,21 @@ const ca = q({
|
|
|
3269
3268
|
d(s),
|
|
3270
3269
|
d(r, { label: "表格样式" }, {
|
|
3271
3270
|
default: m(() => [
|
|
3272
|
-
M("p",
|
|
3271
|
+
M("p", _a, [
|
|
3273
3272
|
a[3] || (a[3] = M("span", { class: "label" }, "斑马纹", -1)),
|
|
3274
3273
|
d(l, {
|
|
3275
3274
|
modelValue: o.value.options.stripe,
|
|
3276
3275
|
"onUpdate:modelValue": a[0] || (a[0] = (i) => o.value.options.stripe = i)
|
|
3277
3276
|
}, null, 8, ["modelValue"])
|
|
3278
3277
|
]),
|
|
3279
|
-
M("p",
|
|
3278
|
+
M("p", wa, [
|
|
3280
3279
|
a[4] || (a[4] = M("span", { class: "label" }, "边框", -1)),
|
|
3281
3280
|
d(l, {
|
|
3282
3281
|
modelValue: o.value.options.border,
|
|
3283
3282
|
"onUpdate:modelValue": a[1] || (a[1] = (i) => o.value.options.border = i)
|
|
3284
3283
|
}, null, 8, ["modelValue"])
|
|
3285
3284
|
]),
|
|
3286
|
-
M("p",
|
|
3285
|
+
M("p", ya, [
|
|
3287
3286
|
a[5] || (a[5] = M("span", { class: "label" }, "表头", -1)),
|
|
3288
3287
|
d(l, {
|
|
3289
3288
|
modelValue: o.value.options.showHeader,
|
|
@@ -3296,7 +3295,7 @@ const ca = q({
|
|
|
3296
3295
|
]);
|
|
3297
3296
|
};
|
|
3298
3297
|
}
|
|
3299
|
-
}),
|
|
3298
|
+
}), Ca = { key: 0 }, Ea = /* @__PURE__ */ q({
|
|
3300
3299
|
__name: "ChartsUniConfig",
|
|
3301
3300
|
setup(t) {
|
|
3302
3301
|
const e = xe(), o = Ee(() => e.activeComponents);
|
|
@@ -3304,8 +3303,8 @@ const ca = q({
|
|
|
3304
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);
|
|
3305
3304
|
}
|
|
3306
3305
|
return P("rgb(46, 145, 255)"), (a, l) => {
|
|
3307
|
-
const r = h("el-input"), s = h("el-form-item"), i = h("el-switch"), u = h("el-col"),
|
|
3308
|
-
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, [
|
|
3309
3308
|
d(s, { label: "标题" }, {
|
|
3310
3309
|
default: m(() => [
|
|
3311
3310
|
d(r, {
|
|
@@ -3336,7 +3335,7 @@ const ca = q({
|
|
|
3336
3335
|
}),
|
|
3337
3336
|
d(u, { span: 12 }, {
|
|
3338
3337
|
default: m(() => [
|
|
3339
|
-
d(
|
|
3338
|
+
d(p, {
|
|
3340
3339
|
modelValue: o.value.options.title.textStyle.color,
|
|
3341
3340
|
"onUpdate:modelValue": l[2] || (l[2] = (b) => o.value.options.title.textStyle.color = b),
|
|
3342
3341
|
"show-alpha": ""
|
|
@@ -3347,7 +3346,7 @@ const ca = q({
|
|
|
3347
3346
|
}),
|
|
3348
3347
|
d(u, { span: 12 }, {
|
|
3349
3348
|
default: m(() => [
|
|
3350
|
-
d(
|
|
3349
|
+
d(c, {
|
|
3351
3350
|
modelValue: o.value.options.title.textStyle.fontSize,
|
|
3352
3351
|
"onUpdate:modelValue": l[3] || (l[3] = (b) => o.value.options.title.textStyle.fontSize = b),
|
|
3353
3352
|
"controls-position": "right"
|
|
@@ -3358,7 +3357,7 @@ const ca = q({
|
|
|
3358
3357
|
}),
|
|
3359
3358
|
d(u, { span: 12 }, {
|
|
3360
3359
|
default: m(() => [
|
|
3361
|
-
d(
|
|
3360
|
+
d(c, {
|
|
3362
3361
|
modelValue: o.value.options.title.x,
|
|
3363
3362
|
"onUpdate:modelValue": l[4] || (l[4] = (b) => o.value.options.title.x = b),
|
|
3364
3363
|
"controls-position": "right"
|
|
@@ -3369,7 +3368,7 @@ const ca = q({
|
|
|
3369
3368
|
}),
|
|
3370
3369
|
d(u, { span: 12 }, {
|
|
3371
3370
|
default: m(() => [
|
|
3372
|
-
d(
|
|
3371
|
+
d(c, {
|
|
3373
3372
|
modelValue: o.value.options.title.y,
|
|
3374
3373
|
"onUpdate:modelValue": l[5] || (l[5] = (b) => o.value.options.title.y = b),
|
|
3375
3374
|
"controls-position": "right"
|
|
@@ -3439,18 +3438,18 @@ const ca = q({
|
|
|
3439
3438
|
};
|
|
3440
3439
|
}
|
|
3441
3440
|
});
|
|
3442
|
-
const
|
|
3441
|
+
const Da = /* @__PURE__ */ et(Ea, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @__PURE__ */ q({
|
|
3443
3442
|
__name: "SettingDescribe",
|
|
3444
3443
|
setup(t) {
|
|
3445
3444
|
const e = xe(), o = Ee(() => e.getActiveComponents);
|
|
3446
3445
|
return (n, a) => {
|
|
3447
|
-
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");
|
|
3448
3447
|
return v(), D("div", null, [
|
|
3449
3448
|
d(r, { label: "标题" }, {
|
|
3450
3449
|
default: m(() => [
|
|
3451
3450
|
d(l, {
|
|
3452
3451
|
modelValue: o.value.options.title,
|
|
3453
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
3452
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => o.value.options.title = c)
|
|
3454
3453
|
}, null, 8, ["modelValue"])
|
|
3455
3454
|
]),
|
|
3456
3455
|
_: 1
|
|
@@ -3459,7 +3458,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3459
3458
|
default: m(() => [
|
|
3460
3459
|
d(s, {
|
|
3461
3460
|
modelValue: o.value.options.border,
|
|
3462
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
3461
|
+
"onUpdate:modelValue": a[1] || (a[1] = (c) => o.value.options.border = c)
|
|
3463
3462
|
}, null, 8, ["modelValue"])
|
|
3464
3463
|
]),
|
|
3465
3464
|
_: 1
|
|
@@ -3468,7 +3467,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3468
3467
|
default: m(() => [
|
|
3469
3468
|
d(i, {
|
|
3470
3469
|
modelValue: o.value.options.column,
|
|
3471
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
3470
|
+
"onUpdate:modelValue": a[2] || (a[2] = (c) => o.value.options.column = c),
|
|
3472
3471
|
min: 1,
|
|
3473
3472
|
max: 10,
|
|
3474
3473
|
controls: !1
|
|
@@ -3478,9 +3477,9 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3478
3477
|
}),
|
|
3479
3478
|
d(r, { label: "排列方向" }, {
|
|
3480
3479
|
default: m(() => [
|
|
3481
|
-
d(
|
|
3480
|
+
d(p, {
|
|
3482
3481
|
modelValue: o.value.options.direction,
|
|
3483
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
3482
|
+
"onUpdate:modelValue": a[3] || (a[3] = (c) => o.value.options.direction = c)
|
|
3484
3483
|
}, {
|
|
3485
3484
|
default: m(() => [
|
|
3486
3485
|
d(u, { value: "horizontal" }, {
|
|
@@ -3504,7 +3503,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3504
3503
|
]);
|
|
3505
3504
|
};
|
|
3506
3505
|
}
|
|
3507
|
-
}),
|
|
3506
|
+
}), xa = /* @__PURE__ */ q({
|
|
3508
3507
|
__name: "SettingCharts",
|
|
3509
3508
|
setup(t) {
|
|
3510
3509
|
const e = xe(), o = P(!1), n = Ee(() => e.getActiveComponents), a = [
|
|
@@ -3515,19 +3514,19 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3515
3514
|
{ value: "bar", name: "柱状图" },
|
|
3516
3515
|
{ value: "wordcloud", name: "词云图" }
|
|
3517
3516
|
], l = P(""), r = P();
|
|
3518
|
-
async function s(
|
|
3519
|
-
const
|
|
3517
|
+
async function s(p) {
|
|
3518
|
+
const c = window.windowGlobalVar.SYSTEM_NORMAL, f = await Ro({
|
|
3520
3519
|
prod_type: window.$prodType,
|
|
3521
|
-
chart_type:
|
|
3520
|
+
chart_type: p,
|
|
3522
3521
|
filter_temp_uuid: e.filterForm.filter_temp_uuid,
|
|
3523
|
-
cg_linkage:
|
|
3522
|
+
cg_linkage: c ? 1 : c ? void 0 : 0
|
|
3524
3523
|
});
|
|
3525
3524
|
r.value = f.data;
|
|
3526
3525
|
}
|
|
3527
|
-
function i(
|
|
3528
|
-
let
|
|
3529
|
-
const f =
|
|
3530
|
-
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") {
|
|
3531
3530
|
let g = [];
|
|
3532
3531
|
f.data.forEach((b) => {
|
|
3533
3532
|
g = b.data.map((_, T) => ({ name: _.name, value: "value" + T }));
|
|
@@ -3546,26 +3545,26 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3546
3545
|
}
|
|
3547
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) => {
|
|
3548
3547
|
g.textStyle = { color: Xe() };
|
|
3549
|
-
})), 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;
|
|
3550
3549
|
}
|
|
3551
3550
|
dt(async () => {
|
|
3552
3551
|
l.value = n.value.type, await s(l.value);
|
|
3553
3552
|
});
|
|
3554
|
-
async function u(
|
|
3553
|
+
async function u(p) {
|
|
3555
3554
|
try {
|
|
3556
|
-
o.value = !0, await s(
|
|
3557
|
-
} catch (
|
|
3558
|
-
console.error("加载报告项失败:",
|
|
3555
|
+
o.value = !0, await s(p);
|
|
3556
|
+
} catch (c) {
|
|
3557
|
+
console.error("加载报告项失败:", c);
|
|
3559
3558
|
} finally {
|
|
3560
|
-
Object.assign(e.activeComponents, sl(
|
|
3559
|
+
Object.assign(e.activeComponents, sl(p)), o.value = !1;
|
|
3561
3560
|
}
|
|
3562
3561
|
}
|
|
3563
3562
|
return Bt(
|
|
3564
3563
|
() => n.value,
|
|
3565
|
-
(
|
|
3566
|
-
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));
|
|
3567
3566
|
}
|
|
3568
|
-
), (
|
|
3567
|
+
), (p, c) => {
|
|
3569
3568
|
const f = h("el-option"), g = h("el-select"), C = h("el-form-item"), b = h("el-form"), _ = Bo("loading");
|
|
3570
3569
|
return no((v(), D("div", null, [
|
|
3571
3570
|
d(b, { "label-position": "top" }, {
|
|
@@ -3575,7 +3574,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3575
3574
|
d(g, {
|
|
3576
3575
|
style: { width: "100%" },
|
|
3577
3576
|
modelValue: l.value,
|
|
3578
|
-
"onUpdate:modelValue":
|
|
3577
|
+
"onUpdate:modelValue": c[0] || (c[0] = (T) => l.value = T),
|
|
3579
3578
|
onChange: u
|
|
3580
3579
|
}, {
|
|
3581
3580
|
default: m(() => [
|
|
@@ -3595,7 +3594,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3595
3594
|
d(g, {
|
|
3596
3595
|
style: { width: "100%" },
|
|
3597
3596
|
modelValue: V(e).activeComponents.rp_item_uuid,
|
|
3598
|
-
"onUpdate:modelValue":
|
|
3597
|
+
"onUpdate:modelValue": c[1] || (c[1] = (T) => V(e).activeComponents.rp_item_uuid = T),
|
|
3599
3598
|
onChange: i
|
|
3600
3599
|
}, {
|
|
3601
3600
|
default: m(() => [
|
|
@@ -3611,7 +3610,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3611
3610
|
_: 1
|
|
3612
3611
|
}),
|
|
3613
3612
|
l.value === "report-table" && n.value.options.showColumn ? (v(), U(dn, { key: 0 })) : ee("", !0),
|
|
3614
|
-
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),
|
|
3615
3614
|
l.value === "report-describe" ? (v(), U(pn, { key: 2 })) : ee("", !0)
|
|
3616
3615
|
]),
|
|
3617
3616
|
_: 1
|
|
@@ -3621,22 +3620,22 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3621
3620
|
]);
|
|
3622
3621
|
};
|
|
3623
3622
|
}
|
|
3624
|
-
}),
|
|
3623
|
+
}), Ta = { key: 0 }, Sa = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, To = "default", Oa = /* @__PURE__ */ q({
|
|
3625
3624
|
__name: "SettingText",
|
|
3626
3625
|
setup(t) {
|
|
3627
3626
|
const e = xe(), o = vn(), n = P();
|
|
3628
|
-
function a(
|
|
3629
|
-
const
|
|
3630
|
-
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) || "");
|
|
3631
3630
|
}
|
|
3632
3631
|
async function l() {
|
|
3633
|
-
const
|
|
3632
|
+
const p = window.windowGlobalVar.SYSTEM_NORMAL, c = await Ro({
|
|
3634
3633
|
prod_type: window.$prodType,
|
|
3635
3634
|
chart_type: "p",
|
|
3636
3635
|
filter_temp_uuid: e.filterForm.filter_temp_uuid,
|
|
3637
|
-
cg_linkage:
|
|
3636
|
+
cg_linkage: p ? 1 : p ? void 0 : 0
|
|
3638
3637
|
});
|
|
3639
|
-
n.value =
|
|
3638
|
+
n.value = c.data;
|
|
3640
3639
|
}
|
|
3641
3640
|
l();
|
|
3642
3641
|
const r = {
|
|
@@ -3661,16 +3660,16 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3661
3660
|
"justifyJustify",
|
|
3662
3661
|
"lineHeight"
|
|
3663
3662
|
]
|
|
3664
|
-
}, s = { placeholder: "请输入内容..." }, i = (
|
|
3665
|
-
o.value =
|
|
3666
|
-
}, u = (
|
|
3663
|
+
}, s = { placeholder: "请输入内容..." }, i = (p) => {
|
|
3664
|
+
o.value = p;
|
|
3665
|
+
}, u = (p) => {
|
|
3667
3666
|
};
|
|
3668
3667
|
return ko(() => {
|
|
3669
|
-
const
|
|
3670
|
-
|
|
3671
|
-
}), (
|
|
3668
|
+
const p = o.value;
|
|
3669
|
+
p != null && p.destroy();
|
|
3670
|
+
}), (p, c) => {
|
|
3672
3671
|
const f = h("el-option"), g = h("el-select"), C = h("el-form-item"), b = h("el-form");
|
|
3673
|
-
return V(e).activeComponents.id ? (v(), D("div",
|
|
3672
|
+
return V(e).activeComponents.id ? (v(), D("div", Ta, [
|
|
3674
3673
|
d(b, { "label-position": "top" }, {
|
|
3675
3674
|
default: m(() => [
|
|
3676
3675
|
d(C, { label: "组件库" }, {
|
|
@@ -3678,7 +3677,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3678
3677
|
d(g, {
|
|
3679
3678
|
style: { width: "100%" },
|
|
3680
3679
|
modelValue: V(e).activeComponents.rp_item_uuid,
|
|
3681
|
-
"onUpdate:modelValue":
|
|
3680
|
+
"onUpdate:modelValue": c[0] || (c[0] = (_) => V(e).activeComponents.rp_item_uuid = _),
|
|
3682
3681
|
onChange: a
|
|
3683
3682
|
}, {
|
|
3684
3683
|
default: m(() => [
|
|
@@ -3695,7 +3694,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3695
3694
|
}),
|
|
3696
3695
|
d(C, { label: "文本内容" }, {
|
|
3697
3696
|
default: m(() => [
|
|
3698
|
-
M("div",
|
|
3697
|
+
M("div", Sa, [
|
|
3699
3698
|
d(V(Tn), {
|
|
3700
3699
|
style: { "border-bottom": "1px solid #ccc" },
|
|
3701
3700
|
editor: o.value,
|
|
@@ -3706,7 +3705,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3706
3705
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
3707
3706
|
onOnChange: u,
|
|
3708
3707
|
modelValue: V(e).activeComponents.data,
|
|
3709
|
-
"onUpdate:modelValue":
|
|
3708
|
+
"onUpdate:modelValue": c[1] || (c[1] = (_) => V(e).activeComponents.data = _),
|
|
3710
3709
|
"default-config": s,
|
|
3711
3710
|
mode: To,
|
|
3712
3711
|
onOnCreated: i
|
|
@@ -3721,7 +3720,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3721
3720
|
])) : ee("", !0);
|
|
3722
3721
|
};
|
|
3723
3722
|
}
|
|
3724
|
-
}),
|
|
3723
|
+
}), ka = /* @__PURE__ */ q({
|
|
3725
3724
|
__name: "SettingFilter",
|
|
3726
3725
|
setup(t) {
|
|
3727
3726
|
const e = P([]), o = xe();
|
|
@@ -3737,8 +3736,8 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3737
3736
|
i.value.push(Qo()), o.setNotDraggableList(i.value);
|
|
3738
3737
|
}
|
|
3739
3738
|
return (l, r) => {
|
|
3740
|
-
const s = h("el-option"), i = h("el-select"), u = h("el-form-item"),
|
|
3741
|
-
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, {
|
|
3742
3741
|
"label-width": "80px",
|
|
3743
3742
|
"label-position": "top"
|
|
3744
3743
|
}, {
|
|
@@ -3765,7 +3764,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3765
3764
|
}),
|
|
3766
3765
|
d(u, null, {
|
|
3767
3766
|
default: m(() => [
|
|
3768
|
-
d(
|
|
3767
|
+
d(p, {
|
|
3769
3768
|
modelValue: V(o).filterForm.range_time,
|
|
3770
3769
|
"onUpdate:modelValue": r[1] || (r[1] = (f) => V(o).filterForm.range_time = f),
|
|
3771
3770
|
"true-value": 1,
|
|
@@ -3780,12 +3779,12 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3780
3779
|
});
|
|
3781
3780
|
};
|
|
3782
3781
|
}
|
|
3783
|
-
}),
|
|
3782
|
+
}), Va = /* @__PURE__ */ q({
|
|
3784
3783
|
__name: "SettingTitle",
|
|
3785
3784
|
setup(t) {
|
|
3786
3785
|
const e = xe();
|
|
3787
3786
|
return (o, n) => {
|
|
3788
|
-
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");
|
|
3789
3788
|
return v(), U(f, {
|
|
3790
3789
|
"label-width": "auto",
|
|
3791
3790
|
"label-position": "top"
|
|
@@ -3805,7 +3804,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3805
3804
|
}),
|
|
3806
3805
|
d(l, { label: "样式" }, {
|
|
3807
3806
|
default: m(() => [
|
|
3808
|
-
d(
|
|
3807
|
+
d(c, { gutter: 20 }, {
|
|
3809
3808
|
default: m(() => [
|
|
3810
3809
|
d(s, { span: 12 }, {
|
|
3811
3810
|
default: m(() => [
|
|
@@ -3831,7 +3830,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3831
3830
|
}),
|
|
3832
3831
|
d(s, { span: 12 }, {
|
|
3833
3832
|
default: m(() => [
|
|
3834
|
-
d(
|
|
3833
|
+
d(p, {
|
|
3835
3834
|
modelValue: V(e).activeComponents.options.fontWeight,
|
|
3836
3835
|
"onUpdate:modelValue": n[3] || (n[3] = (g) => V(e).activeComponents.options.fontWeight = g)
|
|
3837
3836
|
}, {
|
|
@@ -3875,7 +3874,7 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3875
3874
|
}),
|
|
3876
3875
|
d(s, { span: 12 }, {
|
|
3877
3876
|
default: m(() => [
|
|
3878
|
-
d(
|
|
3877
|
+
d(p, {
|
|
3879
3878
|
modelValue: V(e).activeComponents.options.textAlign,
|
|
3880
3879
|
"onUpdate:modelValue": n[6] || (n[6] = (g) => V(e).activeComponents.options.textAlign = g)
|
|
3881
3880
|
}, {
|
|
@@ -3911,20 +3910,20 @@ const Ea = /* @__PURE__ */ et(Ca, [["__scopeId", "data-v-e9859d3b"]]), pn = /* @
|
|
|
3911
3910
|
};
|
|
3912
3911
|
}
|
|
3913
3912
|
});
|
|
3914
|
-
const
|
|
3913
|
+
const Ia = /* @__PURE__ */ et(Va, [["__scopeId", "data-v-56fef84c"]]), Ba = /* @__PURE__ */ q({
|
|
3915
3914
|
__name: "Setting",
|
|
3916
3915
|
setup(t) {
|
|
3917
3916
|
const e = {
|
|
3918
3917
|
SettingTable: dn,
|
|
3919
|
-
SettingCharts:
|
|
3918
|
+
SettingCharts: xa,
|
|
3920
3919
|
SettingDescribe: pn,
|
|
3921
|
-
SettingText:
|
|
3922
|
-
SettingFilter:
|
|
3923
|
-
SettingTitle:
|
|
3920
|
+
SettingText: Oa,
|
|
3921
|
+
SettingFilter: ka,
|
|
3922
|
+
SettingTitle: Ia
|
|
3924
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";
|
|
3925
3924
|
return (i, u) => {
|
|
3926
|
-
const
|
|
3927
|
-
return v(), U(
|
|
3925
|
+
const p = h("el-card");
|
|
3926
|
+
return v(), U(p, { class: "config-wrapper" }, {
|
|
3928
3927
|
default: m(() => [
|
|
3929
3928
|
(v(), U(Dt(s(n.value.type))))
|
|
3930
3929
|
]),
|
|
@@ -3932,7 +3931,7 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
3932
3931
|
});
|
|
3933
3932
|
};
|
|
3934
3933
|
}
|
|
3935
|
-
}),
|
|
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({
|
|
3936
3935
|
__name: "index",
|
|
3937
3936
|
props: /* @__PURE__ */ Vo({
|
|
3938
3937
|
reportId: {
|
|
@@ -3987,18 +3986,18 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
3987
3986
|
return bn(() => {
|
|
3988
3987
|
e.clearComponents();
|
|
3989
3988
|
}), (i, u) => {
|
|
3990
|
-
const
|
|
3991
|
-
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, [
|
|
3992
3991
|
d(f, { class: "view-wrapper" }, {
|
|
3993
3992
|
default: m(() => [
|
|
3994
|
-
M("div",
|
|
3995
|
-
M("div",
|
|
3996
|
-
d(
|
|
3993
|
+
M("div", Pa, [
|
|
3994
|
+
M("div", Ra, [
|
|
3995
|
+
d(c, null, {
|
|
3997
3996
|
default: m(() => [
|
|
3998
3997
|
(v(!0), D(G, null, J(V(il), (g) => (v(), D(G, {
|
|
3999
3998
|
key: g.type
|
|
4000
3999
|
}, [
|
|
4001
|
-
g != null && g.hide ? ee("", !0) : (v(), U(
|
|
4000
|
+
g != null && g.hide ? ee("", !0) : (v(), U(p, {
|
|
4002
4001
|
key: 0,
|
|
4003
4002
|
onClick: (C) => a(g)
|
|
4004
4003
|
}, {
|
|
@@ -4012,9 +4011,9 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4012
4011
|
_: 1
|
|
4013
4012
|
})
|
|
4014
4013
|
]),
|
|
4015
|
-
d(
|
|
4014
|
+
d(c, null, {
|
|
4016
4015
|
default: m(() => [
|
|
4017
|
-
d(
|
|
4016
|
+
d(p, {
|
|
4018
4017
|
type: "primary",
|
|
4019
4018
|
onClick: s
|
|
4020
4019
|
}, {
|
|
@@ -4023,7 +4022,7 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4023
4022
|
])),
|
|
4024
4023
|
_: 1
|
|
4025
4024
|
}),
|
|
4026
|
-
d(
|
|
4025
|
+
d(p, { onClick: l }, {
|
|
4027
4026
|
default: m(() => u[1] || (u[1] = [
|
|
4028
4027
|
X("退出")
|
|
4029
4028
|
])),
|
|
@@ -4033,17 +4032,17 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4033
4032
|
_: 1
|
|
4034
4033
|
})
|
|
4035
4034
|
]),
|
|
4036
|
-
d(
|
|
4035
|
+
d(va)
|
|
4037
4036
|
]),
|
|
4038
4037
|
_: 1
|
|
4039
4038
|
}),
|
|
4040
|
-
d(
|
|
4039
|
+
d(Ba)
|
|
4041
4040
|
]);
|
|
4042
4041
|
};
|
|
4043
4042
|
}
|
|
4044
|
-
}),
|
|
4043
|
+
}), Ma = {
|
|
4045
4044
|
class: "table-box"
|
|
4046
|
-
},
|
|
4045
|
+
}, Fa = /* @__PURE__ */ q({
|
|
4047
4046
|
__name: "Report",
|
|
4048
4047
|
emits: ["click"],
|
|
4049
4048
|
setup(t, {
|
|
@@ -4060,13 +4059,13 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4060
4059
|
l("click", "", "editor");
|
|
4061
4060
|
}, u = (g) => {
|
|
4062
4061
|
console.log(g);
|
|
4063
|
-
},
|
|
4062
|
+
}, p = (g) => {
|
|
4064
4063
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
4065
4064
|
await Rn({
|
|
4066
4065
|
report_uuids: g
|
|
4067
4066
|
}), a.value.getTableList();
|
|
4068
4067
|
});
|
|
4069
|
-
},
|
|
4068
|
+
}, c = (g) => g.report_type === 1, f = Ne([
|
|
4070
4069
|
// { type: 'selection', fixed: 'left', width: 70 },
|
|
4071
4070
|
{
|
|
4072
4071
|
type: "selection",
|
|
@@ -4114,13 +4113,13 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4114
4113
|
icon: "Delete",
|
|
4115
4114
|
title: "删除",
|
|
4116
4115
|
disabled: g.row.report_type === 0,
|
|
4117
|
-
onClick: () =>
|
|
4116
|
+
onClick: () => p([g.row.report_uuid])
|
|
4118
4117
|
}, null)])
|
|
4119
4118
|
}
|
|
4120
4119
|
]);
|
|
4121
4120
|
return (g, C) => {
|
|
4122
4121
|
const b = h("el-button"), _ = h("TdsTable");
|
|
4123
|
-
return v(), D("div",
|
|
4122
|
+
return v(), D("div", Ma, [d(_, {
|
|
4124
4123
|
ref_key: "refTdsTable",
|
|
4125
4124
|
ref: a,
|
|
4126
4125
|
columns: f,
|
|
@@ -4129,7 +4128,7 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4129
4128
|
"row-key": "report_uuid",
|
|
4130
4129
|
options: g.$tableOptions(),
|
|
4131
4130
|
"search-col": 6,
|
|
4132
|
-
selectable:
|
|
4131
|
+
selectable: c,
|
|
4133
4132
|
onSelectionChange: u
|
|
4134
4133
|
}, {
|
|
4135
4134
|
tableHeader: m((T) => [d(b, {
|
|
@@ -4145,7 +4144,7 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4145
4144
|
plain: "",
|
|
4146
4145
|
type: "danger",
|
|
4147
4146
|
icon: "Delete",
|
|
4148
|
-
onClick: (S) =>
|
|
4147
|
+
onClick: (S) => p(T.selectedListIds)
|
|
4149
4148
|
}, {
|
|
4150
4149
|
default: m(() => C[1] || (C[1] = [X("删除")])),
|
|
4151
4150
|
_: 2
|
|
@@ -4155,17 +4154,17 @@ const Va = /* @__PURE__ */ et(ka, [["__scopeId", "data-v-56fef84c"]]), Ia = /* @
|
|
|
4155
4154
|
};
|
|
4156
4155
|
}
|
|
4157
4156
|
});
|
|
4158
|
-
const
|
|
4157
|
+
const Na = { style: { height: "100%" } }, Qa = /* @__PURE__ */ q({
|
|
4159
4158
|
name: "TCReport",
|
|
4160
4159
|
__name: "index",
|
|
4161
4160
|
setup(t) {
|
|
4162
4161
|
const e = P(), o = P("table"), n = (a, l) => {
|
|
4163
4162
|
e.value = a, o.value = l;
|
|
4164
4163
|
};
|
|
4165
|
-
return (a, l) => (v(), D("div",
|
|
4164
|
+
return (a, l) => (v(), D("div", Na, [
|
|
4166
4165
|
d(_n, { name: "slide-fade" }, {
|
|
4167
4166
|
default: m(() => [
|
|
4168
|
-
o.value === "table" ? (v(), U(
|
|
4167
|
+
o.value === "table" ? (v(), U(Fa, {
|
|
4169
4168
|
key: 0,
|
|
4170
4169
|
onClick: n
|
|
4171
4170
|
})) : ee("", !0),
|
|
@@ -4175,7 +4174,7 @@ const Fa = { style: { height: "100%" } }, Na = /* @__PURE__ */ q({
|
|
|
4175
4174
|
modelValue: o.value,
|
|
4176
4175
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => o.value = r)
|
|
4177
4176
|
}, null, 8, ["report-id", "modelValue"])) : ee("", !0),
|
|
4178
|
-
o.value === "editor" ? (v(), U(
|
|
4177
|
+
o.value === "editor" ? (v(), U(Ua, {
|
|
4179
4178
|
key: 2,
|
|
4180
4179
|
"report-id": e.value,
|
|
4181
4180
|
modelValue: o.value,
|
|
@@ -4195,7 +4194,7 @@ const At = (t, e) => {
|
|
|
4195
4194
|
for (const [o, n] of Object.entries(e))
|
|
4196
4195
|
t[o] = n;
|
|
4197
4196
|
return t;
|
|
4198
|
-
},
|
|
4197
|
+
}, Ka = At(Qa), Ha = [
|
|
4199
4198
|
{
|
|
4200
4199
|
label: "正文",
|
|
4201
4200
|
value: "p"
|
|
@@ -4220,7 +4219,7 @@ const At = (t, e) => {
|
|
|
4220
4219
|
label: "描述列表",
|
|
4221
4220
|
value: "report-describe"
|
|
4222
4221
|
}
|
|
4223
|
-
],
|
|
4222
|
+
], za = [
|
|
4224
4223
|
{
|
|
4225
4224
|
value: "p",
|
|
4226
4225
|
fields: ["table_key_relation"]
|
|
@@ -4245,9 +4244,9 @@ const At = (t, e) => {
|
|
|
4245
4244
|
value: "report-describe",
|
|
4246
4245
|
fields: ["p_text"]
|
|
4247
4246
|
}
|
|
4248
|
-
],
|
|
4247
|
+
], qa = {
|
|
4249
4248
|
class: "table-box"
|
|
4250
|
-
},
|
|
4249
|
+
}, Ya = /* @__PURE__ */ q({
|
|
4251
4250
|
name: "TCModule",
|
|
4252
4251
|
__name: "index",
|
|
4253
4252
|
setup(t) {
|
|
@@ -4280,9 +4279,9 @@ const At = (t, e) => {
|
|
|
4280
4279
|
data: _
|
|
4281
4280
|
})), e.value.getTableList(), o.value.close();
|
|
4282
4281
|
}
|
|
4283
|
-
const
|
|
4282
|
+
const p = (b) => {
|
|
4284
4283
|
n.value.table_key_relation.splice(b, 1);
|
|
4285
|
-
},
|
|
4284
|
+
}, c = () => {
|
|
4286
4285
|
n.value.table_key_relation.push({
|
|
4287
4286
|
name: "",
|
|
4288
4287
|
key: "",
|
|
@@ -4325,10 +4324,10 @@ const At = (t, e) => {
|
|
|
4325
4324
|
}, {
|
|
4326
4325
|
field: "chart_type",
|
|
4327
4326
|
name: "组件类型",
|
|
4328
|
-
enum:
|
|
4327
|
+
enum: Ha,
|
|
4329
4328
|
show: {
|
|
4330
4329
|
type: "select",
|
|
4331
|
-
display:
|
|
4330
|
+
display: za
|
|
4332
4331
|
},
|
|
4333
4332
|
rules: [{
|
|
4334
4333
|
required: !0
|
|
@@ -4383,13 +4382,13 @@ const At = (t, e) => {
|
|
|
4383
4382
|
}), n.value.table_key_relation.length > 1 && d("div", {
|
|
4384
4383
|
class: "report-btn-remove absolute right--13px text-#f56c6c hover:cursor-pointer"
|
|
4385
4384
|
}, [d(h("el-icon"), {
|
|
4386
|
-
onClick: () =>
|
|
4385
|
+
onClick: () => p(T)
|
|
4387
4386
|
}, {
|
|
4388
4387
|
default: () => [d(On, null, null)]
|
|
4389
4388
|
})])])), d(h("el-button"), {
|
|
4390
4389
|
class: "report-btn ",
|
|
4391
4390
|
icon: "Plus",
|
|
4392
|
-
onClick: () =>
|
|
4391
|
+
onClick: () => c()
|
|
4393
4392
|
}, {
|
|
4394
4393
|
default: () => [X("新增表头与KEY")]
|
|
4395
4394
|
})]);
|
|
@@ -4445,7 +4444,7 @@ const At = (t, e) => {
|
|
|
4445
4444
|
}]);
|
|
4446
4445
|
return (b, _) => {
|
|
4447
4446
|
const T = h("el-button"), S = h("TdsTable"), Y = h("TdsForm");
|
|
4448
|
-
return v(), D("div",
|
|
4447
|
+
return v(), D("div", qa, [d(S, {
|
|
4449
4448
|
ref_key: "refTdsTable",
|
|
4450
4449
|
ref: e,
|
|
4451
4450
|
columns: C,
|
|
@@ -4488,13 +4487,13 @@ const At = (t, e) => {
|
|
|
4488
4487
|
};
|
|
4489
4488
|
}
|
|
4490
4489
|
});
|
|
4491
|
-
const
|
|
4490
|
+
const Xa = At(Ya), Ga = {
|
|
4492
4491
|
class: "table-box"
|
|
4493
4492
|
};
|
|
4494
|
-
function
|
|
4493
|
+
function ja(t) {
|
|
4495
4494
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !lo(t);
|
|
4496
4495
|
}
|
|
4497
|
-
const
|
|
4496
|
+
const Wa = /* @__PURE__ */ q({
|
|
4498
4497
|
__name: "index",
|
|
4499
4498
|
setup(t) {
|
|
4500
4499
|
const e = P(), {
|
|
@@ -4512,13 +4511,13 @@ const ja = /* @__PURE__ */ q({
|
|
|
4512
4511
|
s(e.value.selectedList);
|
|
4513
4512
|
}
|
|
4514
4513
|
const u = (x) => {
|
|
4515
|
-
|
|
4514
|
+
p(), x && Object.assign(l, x), a.value = x ? "编辑报表订阅" : "新增报表订阅", r.value = !0;
|
|
4516
4515
|
};
|
|
4517
|
-
function
|
|
4516
|
+
function p() {
|
|
4518
4517
|
for (const x in l)
|
|
4519
4518
|
delete l[x];
|
|
4520
4519
|
}
|
|
4521
|
-
async function
|
|
4520
|
+
async function c() {
|
|
4522
4521
|
const x = Object.assign({}, l);
|
|
4523
4522
|
k.value.forEach((w) => {
|
|
4524
4523
|
var j;
|
|
@@ -4603,7 +4602,7 @@ const ja = /* @__PURE__ */ q({
|
|
|
4603
4602
|
render: (x) => d(G, null, [x.row.receiver_email.map((w) => d(h("el-tag"), {
|
|
4604
4603
|
class: "mr-10px",
|
|
4605
4604
|
type: "info"
|
|
4606
|
-
},
|
|
4605
|
+
}, ja(w) ? w : {
|
|
4607
4606
|
default: () => [w]
|
|
4608
4607
|
}))])
|
|
4609
4608
|
}, {
|
|
@@ -4779,7 +4778,7 @@ const ja = /* @__PURE__ */ q({
|
|
|
4779
4778
|
}
|
|
4780
4779
|
return (x, w) => {
|
|
4781
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");
|
|
4782
|
-
return v(), D("div",
|
|
4781
|
+
return v(), D("div", Ga, [d(V(Po), {
|
|
4783
4782
|
ref_key: "refTdsTable",
|
|
4784
4783
|
ref: e,
|
|
4785
4784
|
"row-key": "subscript_uuid",
|
|
@@ -4822,7 +4821,7 @@ const ja = /* @__PURE__ */ q({
|
|
|
4822
4821
|
}), d(j, {
|
|
4823
4822
|
icon: "Check",
|
|
4824
4823
|
type: "primary",
|
|
4825
|
-
onClick:
|
|
4824
|
+
onClick: c
|
|
4826
4825
|
}, {
|
|
4827
4826
|
default: m(() => w[17] || (w[17] = [X("确定")])),
|
|
4828
4827
|
_: 1
|
|
@@ -5040,11 +5039,11 @@ const ja = /* @__PURE__ */ q({
|
|
|
5040
5039
|
}, 8, ["modelValue", "title"])]);
|
|
5041
5040
|
};
|
|
5042
5041
|
}
|
|
5043
|
-
}),
|
|
5042
|
+
}), Ja = At(Wa), $a = {
|
|
5044
5043
|
class: "main-wrapper"
|
|
5045
|
-
},
|
|
5044
|
+
}, Za = {
|
|
5046
5045
|
class: "el-dropdown-link"
|
|
5047
|
-
},
|
|
5046
|
+
}, er = /* @__PURE__ */ q({
|
|
5048
5047
|
name: "TCBuildin",
|
|
5049
5048
|
__name: "index",
|
|
5050
5049
|
setup(t) {
|
|
@@ -5056,9 +5055,9 @@ const ja = /* @__PURE__ */ q({
|
|
|
5056
5055
|
});
|
|
5057
5056
|
o.value = i.data[0].report_uuid;
|
|
5058
5057
|
const u = {};
|
|
5059
|
-
i.data.forEach((
|
|
5060
|
-
const
|
|
5061
|
-
u[
|
|
5058
|
+
i.data.forEach((p) => {
|
|
5059
|
+
const c = p.report_category || p.report_uuid;
|
|
5060
|
+
u[c] || (u[c] = []), u[c].push(p);
|
|
5062
5061
|
}), e.value = u;
|
|
5063
5062
|
}
|
|
5064
5063
|
const l = (s, i) => {
|
|
@@ -5067,8 +5066,8 @@ const ja = /* @__PURE__ */ q({
|
|
|
5067
5066
|
n.value = "";
|
|
5068
5067
|
};
|
|
5069
5068
|
return a(), (s, i) => {
|
|
5070
|
-
const u = h("arrow-down"),
|
|
5071
|
-
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, {
|
|
5072
5071
|
modelValue: o.value,
|
|
5073
5072
|
"onUpdate:modelValue": i[0] || (i[0] = (_) => o.value = _),
|
|
5074
5073
|
class: "report-tabs",
|
|
@@ -5099,7 +5098,7 @@ const ja = /* @__PURE__ */ q({
|
|
|
5099
5098
|
onCommand: (S) => l(S, _[0].report_uuid)
|
|
5100
5099
|
}, {
|
|
5101
5100
|
dropdown: m(() => [d(f, null, {
|
|
5102
|
-
default: m(() => [(v(!0), D(G, null, J(_, (S) => (v(), U(
|
|
5101
|
+
default: m(() => [(v(!0), D(G, null, J(_, (S) => (v(), U(c, {
|
|
5103
5102
|
key: S.report_uuid,
|
|
5104
5103
|
class: "mt-10px",
|
|
5105
5104
|
command: S.report_uuid
|
|
@@ -5109,7 +5108,7 @@ const ja = /* @__PURE__ */ q({
|
|
|
5109
5108
|
}, 1032, ["command"]))), 128))]),
|
|
5110
5109
|
_: 2
|
|
5111
5110
|
}, 1024)]),
|
|
5112
|
-
default: m(() => [M("span",
|
|
5111
|
+
default: m(() => [M("span", Za, [X(Ce(T) + " ", 1), d(p, {
|
|
5113
5112
|
class: "el-icon--right"
|
|
5114
5113
|
}, {
|
|
5115
5114
|
default: m(() => [d(u)]),
|
|
@@ -5124,24 +5123,24 @@ const ja = /* @__PURE__ */ q({
|
|
|
5124
5123
|
};
|
|
5125
5124
|
}
|
|
5126
5125
|
});
|
|
5127
|
-
const
|
|
5128
|
-
function
|
|
5126
|
+
const tr = /* @__PURE__ */ et(er, [["__scopeId", "data-v-99a69fda"]]), or = At(tr);
|
|
5127
|
+
function nr(t, e, o) {
|
|
5129
5128
|
const n = atob(t), a = [];
|
|
5130
5129
|
for (let i = 0; i < n.length; i += 512) {
|
|
5131
|
-
const u = n.slice(i, i + 512),
|
|
5130
|
+
const u = n.slice(i, i + 512), p = new Array(u.length);
|
|
5132
5131
|
for (let f = 0; f < u.length; f++)
|
|
5133
|
-
|
|
5134
|
-
const
|
|
5135
|
-
a.push(
|
|
5132
|
+
p[f] = u.charCodeAt(f);
|
|
5133
|
+
const c = new Uint8Array(p);
|
|
5134
|
+
a.push(c);
|
|
5136
5135
|
}
|
|
5137
5136
|
const l = new Blob(a, { type: o }), r = URL.createObjectURL(l), s = document.createElement("a");
|
|
5138
5137
|
s.href = r, s.download = e, document.body.appendChild(s), s.click(), setTimeout(() => {
|
|
5139
5138
|
document.body.removeChild(s), URL.revokeObjectURL(r);
|
|
5140
5139
|
}, 0);
|
|
5141
5140
|
}
|
|
5142
|
-
const
|
|
5141
|
+
const lr = {
|
|
5143
5142
|
class: "table-box"
|
|
5144
|
-
},
|
|
5143
|
+
}, ar = /* @__PURE__ */ q({
|
|
5145
5144
|
name: "TCDownload",
|
|
5146
5145
|
__name: "index",
|
|
5147
5146
|
setup(t) {
|
|
@@ -5151,7 +5150,7 @@ const nr = {
|
|
|
5151
5150
|
const s = await Wn({
|
|
5152
5151
|
export_uuid: r.export_uuid
|
|
5153
5152
|
}), i = r.export_format === 1 ? "application/pdf" : "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
5154
|
-
|
|
5153
|
+
nr(s.file_data, s.file_name, i), o.value.getTableList();
|
|
5155
5154
|
}, a = (r) => {
|
|
5156
5155
|
window.$messageBox("确定要删除吗?", "", "删除", "error").then(async () => {
|
|
5157
5156
|
await Jn({
|
|
@@ -5227,7 +5226,7 @@ const nr = {
|
|
|
5227
5226
|
}]);
|
|
5228
5227
|
return (r, s) => {
|
|
5229
5228
|
const i = h("el-button");
|
|
5230
|
-
return v(), D("div",
|
|
5229
|
+
return v(), D("div", lr, [d(V(Po), {
|
|
5231
5230
|
ref_key: "proTable",
|
|
5232
5231
|
ref: o,
|
|
5233
5232
|
columns: l,
|
|
@@ -5245,7 +5244,7 @@ const nr = {
|
|
|
5245
5244
|
plain: "",
|
|
5246
5245
|
type: "danger",
|
|
5247
5246
|
icon: "Delete",
|
|
5248
|
-
onClick: (
|
|
5247
|
+
onClick: (p) => a(u.selectedListIds)
|
|
5249
5248
|
}, {
|
|
5250
5249
|
default: m(() => s[0] || (s[0] = [X("删除")])),
|
|
5251
5250
|
_: 2
|
|
@@ -5254,24 +5253,24 @@ const nr = {
|
|
|
5254
5253
|
}, 8, ["columns", "request-api", "init-param", "options"])]);
|
|
5255
5254
|
};
|
|
5256
5255
|
}
|
|
5257
|
-
}),
|
|
5258
|
-
TCReport:
|
|
5259
|
-
TCModule:
|
|
5260
|
-
TCSubscribe:
|
|
5261
|
-
TCBuildin:
|
|
5262
|
-
TCDownload:
|
|
5263
|
-
},
|
|
5256
|
+
}), rr = At(ar), ir = {
|
|
5257
|
+
TCReport: Ka,
|
|
5258
|
+
TCModule: Xa,
|
|
5259
|
+
TCSubscribe: Ja,
|
|
5260
|
+
TCBuildin: or,
|
|
5261
|
+
TCDownload: rr
|
|
5262
|
+
}, mr = {
|
|
5264
5263
|
install(t, e) {
|
|
5265
|
-
Object.entries(
|
|
5264
|
+
Object.entries(ir).forEach(([o, n]) => {
|
|
5266
5265
|
t.component(o, n);
|
|
5267
5266
|
}), e.prodType && (window.$prodType = e.prodType), e.envURL && (window.$reportURL = e.envURL);
|
|
5268
5267
|
}
|
|
5269
5268
|
};
|
|
5270
5269
|
export {
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5270
|
+
or as TCBuildin,
|
|
5271
|
+
rr as TCDownload,
|
|
5272
|
+
Xa as TCModule,
|
|
5273
|
+
Ka as TCReport,
|
|
5274
|
+
Ja as TCSubscribe,
|
|
5275
|
+
mr as default
|
|
5277
5276
|
};
|