@ecan-bi/indicator-library 1.0.20 → 1.0.21
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/dist/assets/editor.worker-02df2e61.js +1 -1
- package/dist/assets/json.worker-867823a6.js +1 -1
- package/dist/assets/ts.worker-7254b425.js +1 -1
- package/dist/index.es.js +126 -126
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/indicator-library@1.0.
|
|
2
|
-
import { defineComponent as ue, inject as ee, unref as c, computed as j, ref as B, reactive as In, onMounted as Pe, resolveComponent as I, openBlock as y, createElementBlock as N, createVNode as A, withCtx as O, createElementVNode as G, Fragment as
|
|
1
|
+
/*! @ecan-bi/indicator-library@1.0.21 */
|
|
2
|
+
import { defineComponent as ue, inject as ee, unref as c, computed as j, ref as B, reactive as In, onMounted as Pe, resolveComponent as I, openBlock as y, createElementBlock as N, createVNode as A, withCtx as O, createElementVNode as G, Fragment as oe, renderList as de, createTextVNode as Q, toDisplayString as le, h as ro, nextTick as bn, normalizeClass as $n, createBlock as H, createCommentVNode as ce, watch as he, resolveDirective as En, withModifiers as ye, withDirectives as Dn, normalizeStyle as be, pushScopeId as on, popScopeId as an, provide as ke, mergeProps as Ot, createSlots as er, withKeys as tr, onBeforeUnmount as oa, onUnmounted as aa, Teleport as nr, Transition as or, toRaw as ar, resolveDynamicComponent as tn, toHandlers as lo } from "vue";
|
|
3
3
|
import { debounce as ra, cloneDeep as Ie, reduce as rr, pick as la, without as lr } from "lodash-es";
|
|
4
4
|
import { Spin as Fn, TreeSelect as ir, InputSearch as sr, Pagination as ur, Modal as Dt, Button as rn, Select as Je, SelectOption as Ft, Input as rt, Checkbox as ia, Collapse as sa, CollapsePanel as ua, Tag as cr, CheckableTag as dr, message as He, DatePicker as fr, Dropdown as ca, Menu as da, MenuItem as fa, SubMenu as pa, Popover as pr, Tabs as va, TabPane as ma, RadioGroup as ha, Radio as vr, InputNumber as Pn, Row as mr, Col as hr, Textarea as Nn, Form as gr, FormItem as ga, Card as yr, MenuDivider as br, RadioButton as Cr, Switch as ya } from "ant-design-vue";
|
|
5
5
|
import ba from "vuedraggable";
|
|
@@ -463,7 +463,7 @@ function Fr(e, t, n, o, a, r) {
|
|
|
463
463
|
tip: "数据加载中..."
|
|
464
464
|
}, {
|
|
465
465
|
default: O(() => [
|
|
466
|
-
(y(!0), N(
|
|
466
|
+
(y(!0), N(oe, null, de(e.dataViewList, (s) => (y(), N("div", {
|
|
467
467
|
key: s.id
|
|
468
468
|
}, [
|
|
469
469
|
G("div", {
|
|
@@ -1547,8 +1547,8 @@ const ui = Yn, ci = ue({
|
|
|
1547
1547
|
const { rows: b = [], total: $ = 0 } = x;
|
|
1548
1548
|
b == null || b.forEach((z) => {
|
|
1549
1549
|
var K;
|
|
1550
|
-
z.show = !1, (K = z.dataViewColumns) == null || K.forEach((
|
|
1551
|
-
|
|
1550
|
+
z.show = !1, (K = z.dataViewColumns) == null || K.forEach((te) => {
|
|
1551
|
+
te.show = !0, te.edit = !1, te.title && (te.label = te.title);
|
|
1552
1552
|
});
|
|
1553
1553
|
}), l.value = b, s.totalResult = +$;
|
|
1554
1554
|
}
|
|
@@ -1625,7 +1625,7 @@ function yi(e, t, n, o, a, r) {
|
|
|
1625
1625
|
tip: "数据源加载中..."
|
|
1626
1626
|
}, {
|
|
1627
1627
|
default: O(() => [
|
|
1628
|
-
(y(!0), N(
|
|
1628
|
+
(y(!0), N(oe, null, de(e.dataSourceList, (d, v) => (y(), N("div", {
|
|
1629
1629
|
key: d.id,
|
|
1630
1630
|
class: $n(e.setItemDisabled(d.dataViewColumns) ? "column-disabled" : "")
|
|
1631
1631
|
}, [
|
|
@@ -1639,14 +1639,14 @@ function yi(e, t, n, o, a, r) {
|
|
|
1639
1639
|
], 8, vi)
|
|
1640
1640
|
]),
|
|
1641
1641
|
d.show ? (y(), N("div", mi, [
|
|
1642
|
-
(y(!0), N(
|
|
1642
|
+
(y(!0), N(oe, null, de(d.dataViewColumns, (h) => (y(), N("div", {
|
|
1643
1643
|
class: "column-child-item",
|
|
1644
1644
|
key: h.id,
|
|
1645
1645
|
draggable: !e.setItemDisabled(d.dataViewColumns),
|
|
1646
1646
|
onDragstart: (g) => e.onDragstart(g, h)
|
|
1647
1647
|
}, [
|
|
1648
1648
|
Q(" 【" + le(e.mapScope(h.scope)) + "】 ", 1),
|
|
1649
|
-
G("span", gi, le(h.
|
|
1649
|
+
G("span", gi, le(h.label), 1)
|
|
1650
1650
|
], 40, hi))), 128))
|
|
1651
1651
|
])) : ce("", !0)
|
|
1652
1652
|
], 2))), 128))
|
|
@@ -1667,7 +1667,7 @@ function yi(e, t, n, o, a, r) {
|
|
|
1667
1667
|
}, null, 8, ["pageSize", "total", "show-total", "current", "onChange"])
|
|
1668
1668
|
]);
|
|
1669
1669
|
}
|
|
1670
|
-
const bi = /* @__PURE__ */ pe(ci, [["render", yi], ["__scopeId", "data-v-
|
|
1670
|
+
const bi = /* @__PURE__ */ pe(ci, [["render", yi], ["__scopeId", "data-v-aae84526"]]), Ci = ue({
|
|
1671
1671
|
name: "DataList",
|
|
1672
1672
|
components: {
|
|
1673
1673
|
DataSourceList: bi,
|
|
@@ -1681,7 +1681,7 @@ const bi = /* @__PURE__ */ pe(ci, [["render", yi], ["__scopeId", "data-v-d62be4d
|
|
|
1681
1681
|
});
|
|
1682
1682
|
function wi(e, t, n, o, a, r) {
|
|
1683
1683
|
const l = I("data-view-list"), u = I("data-source-list");
|
|
1684
|
-
return y(), N(
|
|
1684
|
+
return y(), N(oe, null, [
|
|
1685
1685
|
e.source === "SQL_VIEW" ? (y(), H(l, { key: 0 })) : ce("", !0),
|
|
1686
1686
|
e.source === "INDICATOR_LIB" ? (y(), H(u, { key: 1 })) : ce("", !0)
|
|
1687
1687
|
], 64);
|
|
@@ -1952,7 +1952,7 @@ const ki = /* @__PURE__ */ pe(xi, [["render", Li], ["__scopeId", "data-v-7293d3f
|
|
|
1952
1952
|
$.value = !0;
|
|
1953
1953
|
}, K = () => {
|
|
1954
1954
|
$.value = !1;
|
|
1955
|
-
},
|
|
1955
|
+
}, te = () => {
|
|
1956
1956
|
K(), r && b(), r = !1;
|
|
1957
1957
|
}, q = () => {
|
|
1958
1958
|
r = !0;
|
|
@@ -2023,7 +2023,7 @@ const ki = /* @__PURE__ */ pe(xi, [["render", Li], ["__scopeId", "data-v-7293d3f
|
|
|
2023
2023
|
title: l,
|
|
2024
2024
|
activeKey: s,
|
|
2025
2025
|
customGroupList: i,
|
|
2026
|
-
onCancel:
|
|
2026
|
+
onCancel: te,
|
|
2027
2027
|
useOtherGroup: x,
|
|
2028
2028
|
selectCount: v,
|
|
2029
2029
|
createGroupTitle: u,
|
|
@@ -2072,7 +2072,7 @@ function Ri(e, t, n, o, a, r) {
|
|
|
2072
2072
|
placeholder: "请选择移入分组"
|
|
2073
2073
|
}, {
|
|
2074
2074
|
default: O(() => [
|
|
2075
|
-
(y(!0), N(
|
|
2075
|
+
(y(!0), N(oe, null, de(e.customGroupList, (C, P) => (y(), H(l, { key: P }, {
|
|
2076
2076
|
default: O(() => [
|
|
2077
2077
|
Q(le(C.title), 1)
|
|
2078
2078
|
]),
|
|
@@ -2119,7 +2119,7 @@ function Ri(e, t, n, o, a, r) {
|
|
|
2119
2119
|
ghost: ""
|
|
2120
2120
|
}, {
|
|
2121
2121
|
default: O(() => [
|
|
2122
|
-
(y(!0), N(
|
|
2122
|
+
(y(!0), N(oe, null, de(e.customGroupList, (C, P) => (y(), H(g, { key: P }, {
|
|
2123
2123
|
header: O(() => [
|
|
2124
2124
|
e.customGroupEditTitleList[P] ? Dn((y(), H(i, {
|
|
2125
2125
|
key: 1,
|
|
@@ -2148,7 +2148,7 @@ function Ri(e, t, n, o, a, r) {
|
|
|
2148
2148
|
]),
|
|
2149
2149
|
_: 1
|
|
2150
2150
|
})) : ce("", !0),
|
|
2151
|
-
P !== 0 ? (y(), N(
|
|
2151
|
+
P !== 0 ? (y(), N(oe, { key: 1 }, [
|
|
2152
2152
|
A(d, {
|
|
2153
2153
|
class: "tag",
|
|
2154
2154
|
color: "green"
|
|
@@ -2166,7 +2166,7 @@ function Ri(e, t, n, o, a, r) {
|
|
|
2166
2166
|
]),
|
|
2167
2167
|
default: O(() => [
|
|
2168
2168
|
G("div", Mi, [
|
|
2169
|
-
(y(!0), N(
|
|
2169
|
+
(y(!0), N(oe, null, de(C.data, (k, D) => (y(), H(h, {
|
|
2170
2170
|
color: "red",
|
|
2171
2171
|
checked: k.checked,
|
|
2172
2172
|
"onUpdate:checked": (_) => k.checked = _,
|
|
@@ -2271,12 +2271,12 @@ const zi = ue({
|
|
|
2271
2271
|
const t = (R = window == null ? void 0 : window.config) == null ? void 0 : R.pageId, n = ee(Ne), o = ee(Qe), a = c(ee(qe)), r = ee(La), l = j(() => {
|
|
2272
2272
|
var L, E;
|
|
2273
2273
|
return (E = (L = c(n)) == null ? void 0 : L.controlList) == null ? void 0 : E.map((W) => {
|
|
2274
|
-
const { keyName:
|
|
2274
|
+
const { keyName: ne = "", id: se = "", prop: we = "" } = W;
|
|
2275
2275
|
let ge = "";
|
|
2276
2276
|
return we === "startTime" ? ge = "-开始时间值" : we === "endTime" && (ge = "-结束时间值"), {
|
|
2277
2277
|
...W,
|
|
2278
|
-
label: `${
|
|
2279
|
-
value: `${
|
|
2278
|
+
label: `${ne || se}${ge}`,
|
|
2279
|
+
value: `${ne || se}-${we}`
|
|
2280
2280
|
};
|
|
2281
2281
|
});
|
|
2282
2282
|
}), u = j(() => {
|
|
@@ -2327,9 +2327,9 @@ const zi = ue({
|
|
|
2327
2327
|
let E = [];
|
|
2328
2328
|
if (["classificationList", "seriesList", "rowHeaderList"].includes(L)) {
|
|
2329
2329
|
let W = [];
|
|
2330
|
-
for (const
|
|
2331
|
-
if (Object.prototype.hasOwnProperty.call(c(n),
|
|
2332
|
-
const se = c(n)[
|
|
2330
|
+
for (const ne in c(n))
|
|
2331
|
+
if (Object.prototype.hasOwnProperty.call(c(n), ne) && !["controlList", "sqlConditions"].includes(ne)) {
|
|
2332
|
+
const se = c(n)[ne];
|
|
2333
2333
|
Array.isArray(se) && (W = W.concat(se));
|
|
2334
2334
|
}
|
|
2335
2335
|
E = W;
|
|
@@ -2356,15 +2356,15 @@ const zi = ue({
|
|
|
2356
2356
|
deep: !0
|
|
2357
2357
|
});
|
|
2358
2358
|
const _ = (L, E) => {
|
|
2359
|
-
const { name: W, genericType:
|
|
2359
|
+
const { name: W, genericType: ne, id: se, label: we, typeGuid: ge } = E;
|
|
2360
2360
|
m.value = {
|
|
2361
2361
|
id: se,
|
|
2362
2362
|
fieldName: W,
|
|
2363
|
-
fieldType:
|
|
2363
|
+
fieldType: ne,
|
|
2364
2364
|
label: we,
|
|
2365
2365
|
// 重置规则
|
|
2366
2366
|
rule: void 0,
|
|
2367
|
-
fieldValue:
|
|
2367
|
+
fieldValue: ne === "DATE" ? null : void 0,
|
|
2368
2368
|
targetSource: "",
|
|
2369
2369
|
typeGuid: ge
|
|
2370
2370
|
};
|
|
@@ -2428,30 +2428,30 @@ const zi = ue({
|
|
|
2428
2428
|
Authentication: a,
|
|
2429
2429
|
operateContext: "ygt"
|
|
2430
2430
|
}
|
|
2431
|
-
}), { success: W, data:
|
|
2432
|
-
W && ($.value = (L =
|
|
2431
|
+
}), { success: W, data: ne = [] } = E.data;
|
|
2432
|
+
W && ($.value = (L = ne == null ? void 0 : ne.slice(0, 200)) == null ? void 0 : L.map((se) => ({ label: se, value: se })));
|
|
2433
2433
|
} catch (E) {
|
|
2434
2434
|
console.error(E);
|
|
2435
2435
|
}
|
|
2436
2436
|
}, K = (L) => {
|
|
2437
2437
|
c(m).rule = L, c(m).fieldValue = c(m).fieldType === "DATE" ? null : void 0, ["IN", "NOT_IN"].includes(L) && z();
|
|
2438
|
-
},
|
|
2439
|
-
|
|
2438
|
+
}, te = B(), q = (L) => {
|
|
2439
|
+
te.value = L, c(m).fieldValue = (L == null ? void 0 : L.join(",")) || "";
|
|
2440
2440
|
}, X = (L) => {
|
|
2441
2441
|
const { keyPath: E } = L;
|
|
2442
2442
|
c(m).rule = E[0], c(m).dataType = E[1], c(m).dateFormat = E[2], c(m).fieldValue = "";
|
|
2443
2443
|
};
|
|
2444
2444
|
Pe(() => {
|
|
2445
|
-
var
|
|
2445
|
+
var ne, se, we, ge, tt, ht, gt, lt;
|
|
2446
2446
|
if (c(m).fieldType === "DATE") {
|
|
2447
|
-
c(m).dateFormat = (
|
|
2447
|
+
c(m).dateFormat = (ne = e.data) == null ? void 0 : ne.dateFormat, c(m).dataType = ((se = e.data) == null ? void 0 : se.dataType) || "", c(m).activeKey = (we = e.data) == null ? void 0 : we.activeKey, c(m).radioValue = ((ge = e.data) == null ? void 0 : ge.radioValue) || "", c(m).calcWays = ((tt = e.data) == null ? void 0 : tt.calcWays) || [], c(m).dateCalcTypes = ((ht = e.data) == null ? void 0 : ht.dateCalcTypes) || [];
|
|
2448
2448
|
const yt = c(v).find((Mt) => {
|
|
2449
2449
|
var bt;
|
|
2450
2450
|
return Mt.key === ((bt = e.data) == null ? void 0 : bt.activeKey);
|
|
2451
2451
|
});
|
|
2452
2452
|
yt && F(yt, e.data);
|
|
2453
2453
|
} else
|
|
2454
|
-
|
|
2454
|
+
te.value = ((lt = (gt = e.data) == null ? void 0 : gt.fieldValue) == null ? void 0 : lt.split(",")) || [];
|
|
2455
2455
|
const { fieldType: L, fieldName: E, rule: W } = m.value;
|
|
2456
2456
|
L !== "DATE" && E && W && ["IN", "NOT_IN"].includes(W) && z();
|
|
2457
2457
|
});
|
|
@@ -2465,19 +2465,19 @@ const zi = ue({
|
|
|
2465
2465
|
});
|
|
2466
2466
|
}, ae = (L, E) => {
|
|
2467
2467
|
i.value = !0;
|
|
2468
|
-
const W = L.target.value,
|
|
2469
|
-
E.value = V(W,
|
|
2468
|
+
const W = L.target.value, ne = E.type, se = c(m).dateFormat, we = Math.abs(E.beforeNum), ge = E.afterNum;
|
|
2469
|
+
E.value = V(W, ne, se, we, ge);
|
|
2470
2470
|
}, re = (L) => {
|
|
2471
2471
|
const E = c(m).activeKey;
|
|
2472
2472
|
if (L !== E)
|
|
2473
2473
|
return;
|
|
2474
2474
|
let W = "";
|
|
2475
2475
|
E === 0 ? W = "years" : E === 1 ? W = "quarters" : E === 2 ? W = "months" : E === 3 ? W = "weeks" : E === 4 && (W = "days");
|
|
2476
|
-
const
|
|
2476
|
+
const ne = c(m).dateFormat, se = c(m).radioValue;
|
|
2477
2477
|
let we = 0, ge = 0;
|
|
2478
|
-
return se === "1" ? we = Math.abs(c(m).calcWays[0]) : se === "2" && (ge = c(m).calcWays[0]), V(se, W,
|
|
2479
|
-
}, w = (L, E, W,
|
|
2480
|
-
if (i.value = !0, E.radioValue ===
|
|
2478
|
+
return se === "1" ? we = Math.abs(c(m).calcWays[0]) : se === "2" && (ge = c(m).calcWays[0]), V(se, W, ne, we, ge);
|
|
2479
|
+
}, w = (L, E, W, ne) => {
|
|
2480
|
+
if (i.value = !0, E.radioValue === ne) {
|
|
2481
2481
|
const se = L.target.value;
|
|
2482
2482
|
W === "+" ? E.value = xe().add(se, E.type).format(c(m).dateFormat) : E.value = xe().subtract(se, E.type).format(c(m).dateFormat);
|
|
2483
2483
|
}
|
|
@@ -2485,12 +2485,12 @@ const zi = ue({
|
|
|
2485
2485
|
(c(m).fieldType !== "DATE" || c(m).dataType !== "component") && (m.value.fieldValue = xe(L.value, c(m).dateFormat)), c(m).calcWays || (c(m).calcWays = []), c(m).activeKey = E, c(m).radioValue = L.radioValue, L.radioValue === "1" ? c(m).calcWays[0] = "-" + L.beforeNum : L.radioValue === "2" ? c(m).calcWays[0] = L.afterNum : L.radioValue === "3" ? E === 4 ? c(m).calcWays[0] = "0" : c(m).calcWays[0] = "BEGIN" : L.radioValue === "4" && (c(m).calcWays[0] = "END"), E === 0 ? c(m).dateCalcTypes = ["YEAR"] : E === 1 ? c(m).dateCalcTypes = ["QUARTER"] : E === 2 ? c(m).dateCalcTypes = ["MONTH"] : E === 3 ? c(m).dateCalcTypes = ["WEEK"] : E === 4 && (c(m).dateCalcTypes = ["DAY"]), T.value = !1;
|
|
2486
2486
|
};
|
|
2487
2487
|
function F(L, E) {
|
|
2488
|
-
const { radioValue: W = "", calcWays:
|
|
2489
|
-
L.radioValue = W,
|
|
2488
|
+
const { radioValue: W = "", calcWays: ne = [] } = E;
|
|
2489
|
+
L.radioValue = W, ne != null && ne.length && (W === "1" ? L.beforeNum = Math.abs(ne[0]) : W === "2" && (L.afterNum = ne[0]));
|
|
2490
2490
|
}
|
|
2491
|
-
function V(L, E, W,
|
|
2491
|
+
function V(L, E, W, ne, se) {
|
|
2492
2492
|
if (L === "1")
|
|
2493
|
-
return xe().subtract(
|
|
2493
|
+
return xe().subtract(ne, E).format(W);
|
|
2494
2494
|
if (L === "2")
|
|
2495
2495
|
return xe().add(se, E).format(W);
|
|
2496
2496
|
if (L === "3") {
|
|
@@ -2520,7 +2520,7 @@ const zi = ue({
|
|
|
2520
2520
|
valueOptions: $,
|
|
2521
2521
|
onRuleChange: K,
|
|
2522
2522
|
onFieldValueSelectChange: q,
|
|
2523
|
-
fieldValues:
|
|
2523
|
+
fieldValues: te,
|
|
2524
2524
|
onDelete: D,
|
|
2525
2525
|
isDateType: M,
|
|
2526
2526
|
formatList: d,
|
|
@@ -2566,7 +2566,7 @@ function ts(e, t, n, o, a, r) {
|
|
|
2566
2566
|
overlay: O(() => [
|
|
2567
2567
|
A(i, { onClick: e.handleMenuClick }, {
|
|
2568
2568
|
default: O(() => [
|
|
2569
|
-
(y(!0), N(
|
|
2569
|
+
(y(!0), N(oe, null, de(e.ruleOptions, (p) => (y(), H(s, {
|
|
2570
2570
|
key: p.value
|
|
2571
2571
|
}, {
|
|
2572
2572
|
title: O(() => [
|
|
@@ -2575,7 +2575,7 @@ function ts(e, t, n, o, a, r) {
|
|
|
2575
2575
|
}, le(p.label), 5)
|
|
2576
2576
|
]),
|
|
2577
2577
|
default: O(() => [
|
|
2578
|
-
(y(!0), N(
|
|
2578
|
+
(y(!0), N(oe, null, de(e.menuRule, (x) => {
|
|
2579
2579
|
var b;
|
|
2580
2580
|
return y(), H(s, {
|
|
2581
2581
|
key: x.value,
|
|
@@ -2587,7 +2587,7 @@ function ts(e, t, n, o, a, r) {
|
|
|
2587
2587
|
}, le(x.label), 5)
|
|
2588
2588
|
]),
|
|
2589
2589
|
default: O(() => [
|
|
2590
|
-
(y(!0), N(
|
|
2590
|
+
(y(!0), N(oe, null, de(e.formatList, ($) => (y(), H(u, {
|
|
2591
2591
|
key: $.value
|
|
2592
2592
|
}, {
|
|
2593
2593
|
default: O(() => [
|
|
@@ -2655,7 +2655,7 @@ function ts(e, t, n, o, a, r) {
|
|
|
2655
2655
|
onChange: e.changeTabInitDate
|
|
2656
2656
|
}, {
|
|
2657
2657
|
default: O(() => [
|
|
2658
|
-
(y(!0), N(
|
|
2658
|
+
(y(!0), N(oe, null, de(e.tabDateList, (p, x) => (y(), H(M, {
|
|
2659
2659
|
key: x,
|
|
2660
2660
|
tab: p.label
|
|
2661
2661
|
}, {
|
|
@@ -2816,9 +2816,9 @@ const as = {
|
|
|
2816
2816
|
function us(e, t, n, o, a, r) {
|
|
2817
2817
|
const l = I("condition-list", !0), u = I("condition");
|
|
2818
2818
|
return Array.isArray(e.list) ? (y(), N("div", as, [
|
|
2819
|
-
(y(!0), N(
|
|
2819
|
+
(y(!0), N(oe, null, de(e.list, (s, i) => (y(), N(oe, { key: i }, [
|
|
2820
2820
|
s.join && s.conditions && Array.isArray(s.conditions) ? (y(), N("div", rs, [
|
|
2821
|
-
s.conditions.length > 1 ? (y(), N(
|
|
2821
|
+
s.conditions.length > 1 ? (y(), N(oe, { key: 0 }, [
|
|
2822
2822
|
s.join === "||" ? (y(), N("div", ls, "或")) : ce("", !0),
|
|
2823
2823
|
s.join === "&&" ? (y(), N("div", is, "且")) : ce("", !0)
|
|
2824
2824
|
], 64)) : ce("", !0),
|
|
@@ -2880,7 +2880,7 @@ const Na = (e) => (on("data-v-714a3b8f"), e = e(), an(), e), fs = { class: "trun
|
|
|
2880
2880
|
function ys(e, t, n, o, a, r) {
|
|
2881
2881
|
const l = I("a-select"), u = I("a-input-number"), s = I("a-input");
|
|
2882
2882
|
return y(), N("div", fs, [
|
|
2883
|
-
(y(!0), N(
|
|
2883
|
+
(y(!0), N(oe, null, de(e.truncationList, (i, f) => (y(), N("div", {
|
|
2884
2884
|
class: "item",
|
|
2885
2885
|
key: f
|
|
2886
2886
|
}, [
|
|
@@ -2975,8 +2975,8 @@ const bs = /* @__PURE__ */ pe(ds, [["render", ys], ["__scopeId", "data-v-714a3b8
|
|
|
2975
2975
|
b = ($ = b[0]) == null ? void 0 : $.conditions;
|
|
2976
2976
|
if (Array.isArray(b) && b[x] && (b.splice(x, 1), b.length === 1)) {
|
|
2977
2977
|
let K = c(l);
|
|
2978
|
-
const
|
|
2979
|
-
for (let q = 0; q <
|
|
2978
|
+
const te = p - 2 > 0 ? p - 2 : 0;
|
|
2979
|
+
for (let q = 0; q < te && K[0]; q++)
|
|
2980
2980
|
K = (z = K[0]) == null ? void 0 : z.conditions;
|
|
2981
2981
|
K[0].join === b[0].join ? K[0].conditions = [
|
|
2982
2982
|
...b[0].conditions,
|
|
@@ -3076,7 +3076,7 @@ function xs(e, t, n, o, a, r) {
|
|
|
3076
3076
|
}, {
|
|
3077
3077
|
default: O(() => [
|
|
3078
3078
|
G("div", ws, [
|
|
3079
|
-
Array.isArray(e.conditionList) && e.conditionList.length > 0 ? (y(), N(
|
|
3079
|
+
Array.isArray(e.conditionList) && e.conditionList.length > 0 ? (y(), N(oe, { key: 0 }, [
|
|
3080
3080
|
A(l, {
|
|
3081
3081
|
class: "add-and-condition",
|
|
3082
3082
|
onClick: t[0] || (t[0] = (v) => e.addCondition("&&"))
|
|
@@ -3128,9 +3128,9 @@ function xs(e, t, n, o, a, r) {
|
|
|
3128
3128
|
})
|
|
3129
3129
|
]),
|
|
3130
3130
|
_: 1
|
|
3131
|
-
}, 8, ["activeKey"])) : (y(), N(
|
|
3131
|
+
}, 8, ["activeKey"])) : (y(), N(oe, { key: 1 }, [
|
|
3132
3132
|
G("div", _s, [
|
|
3133
|
-
Array.isArray(e.conditionList) && e.conditionList.length > 0 ? (y(), N(
|
|
3133
|
+
Array.isArray(e.conditionList) && e.conditionList.length > 0 ? (y(), N(oe, { key: 0 }, [
|
|
3134
3134
|
A(l, {
|
|
3135
3135
|
class: "add-and-condition",
|
|
3136
3136
|
onClick: t[4] || (t[4] = (v) => e.addCondition("&&"))
|
|
@@ -3230,7 +3230,7 @@ function Is(e, t, n, o, a, r) {
|
|
|
3230
3230
|
default: O(() => [
|
|
3231
3231
|
G("div", Os, [
|
|
3232
3232
|
G("div", null, "数值字段(" + le(e.fieldList.length) + ")", 1),
|
|
3233
|
-
(y(!0), N(
|
|
3233
|
+
(y(!0), N(oe, null, de(e.fieldList, (i, f) => (y(), N("div", {
|
|
3234
3234
|
class: "field",
|
|
3235
3235
|
key: f,
|
|
3236
3236
|
onClick: (d) => e.insertText(i.label)
|
|
@@ -3319,7 +3319,7 @@ const $s = /* @__PURE__ */ pe(Ls, [["render", Is], ["__scopeId", "data-v-8b06248
|
|
|
3319
3319
|
formula: $,
|
|
3320
3320
|
builtInValueSource: z,
|
|
3321
3321
|
builtInFormula: K,
|
|
3322
|
-
builtInCalcWay:
|
|
3322
|
+
builtInCalcWay: te
|
|
3323
3323
|
} = e.item;
|
|
3324
3324
|
d.value = {
|
|
3325
3325
|
label: x,
|
|
@@ -3327,7 +3327,7 @@ const $s = /* @__PURE__ */ pe(Ls, [["render", Is], ["__scopeId", "data-v-8b06248
|
|
|
3327
3327
|
formula: $,
|
|
3328
3328
|
builtInValueSource: z,
|
|
3329
3329
|
builtInFormula: K,
|
|
3330
|
-
builtInCalcWay:
|
|
3330
|
+
builtInCalcWay: te
|
|
3331
3331
|
};
|
|
3332
3332
|
} else
|
|
3333
3333
|
e.mode === "add" && (d.value = Ie(s));
|
|
@@ -3574,7 +3574,7 @@ function Fs(e, t, n, o, a, r) {
|
|
|
3574
3574
|
item: e.item,
|
|
3575
3575
|
onChange: e.onChange
|
|
3576
3576
|
}, null, 8, ["value", "item", "onChange"])) : ce("", !0),
|
|
3577
|
-
e.formState.calcType === "BUILT_IN" ? (y(), N(
|
|
3577
|
+
e.formState.calcType === "BUILT_IN" ? (y(), N(oe, { key: 1 }, [
|
|
3578
3578
|
A(u, {
|
|
3579
3579
|
label: "内置公式",
|
|
3580
3580
|
"label-col": e.labelCol,
|
|
@@ -3631,7 +3631,7 @@ function Fs(e, t, n, o, a, r) {
|
|
|
3631
3631
|
onChange: e.onChange
|
|
3632
3632
|
}, {
|
|
3633
3633
|
default: O(() => [
|
|
3634
|
-
(y(!0), N(
|
|
3634
|
+
(y(!0), N(oe, null, de(e.builtInValueSourceList, (g, m) => (y(), H(s, {
|
|
3635
3635
|
key: m,
|
|
3636
3636
|
value: g.name,
|
|
3637
3637
|
disabled: e.item.label === g.name
|
|
@@ -3662,7 +3662,7 @@ function Fs(e, t, n, o, a, r) {
|
|
|
3662
3662
|
default: O(() => [
|
|
3663
3663
|
["BUILT_IN_ALL_VALUE", "BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(
|
|
3664
3664
|
e.formState.builtInFormula || ""
|
|
3665
|
-
) ? (y(), N(
|
|
3665
|
+
) ? (y(), N(oe, { key: 0 }, [
|
|
3666
3666
|
A(s, { value: "SUM" }, {
|
|
3667
3667
|
default: O(() => [
|
|
3668
3668
|
Q("求和")
|
|
@@ -3687,7 +3687,7 @@ function Fs(e, t, n, o, a, r) {
|
|
|
3687
3687
|
]),
|
|
3688
3688
|
_: 1
|
|
3689
3689
|
})
|
|
3690
|
-
], 64)) : (y(), N(
|
|
3690
|
+
], 64)) : (y(), N(oe, { key: 1 }, [
|
|
3691
3691
|
A(s, { value: "ASC" }, {
|
|
3692
3692
|
default: O(() => [
|
|
3693
3693
|
Q("升序")
|
|
@@ -3790,11 +3790,11 @@ const Ps = /* @__PURE__ */ pe(Es, [["render", Fs], ["__scopeId", "data-v-698df0b
|
|
|
3790
3790
|
const { cardItem: L, type: E, index: W } = JSON.parse(U);
|
|
3791
3791
|
if (E === e.type)
|
|
3792
3792
|
return;
|
|
3793
|
-
const
|
|
3794
|
-
l(
|
|
3793
|
+
const ne = ((Y = c(n)[e.type]) == null ? void 0 : Y.slice()) || [];
|
|
3794
|
+
l(ne, L), ne.push(L);
|
|
3795
3795
|
const se = c(n)[E].slice() || [];
|
|
3796
3796
|
se.splice(W, 1), o({
|
|
3797
|
-
[e.type]:
|
|
3797
|
+
[e.type]: ne,
|
|
3798
3798
|
[E]: se
|
|
3799
3799
|
});
|
|
3800
3800
|
} catch (L) {
|
|
@@ -3814,8 +3814,8 @@ const Ps = /* @__PURE__ */ pe(Es, [["render", Fs], ["__scopeId", "data-v-698df0b
|
|
|
3814
3814
|
}
|
|
3815
3815
|
}
|
|
3816
3816
|
const u = (U, Y) => {
|
|
3817
|
-
var W,
|
|
3818
|
-
const L = (W = U.target) == null ? void 0 : W.checked, E = ((
|
|
3817
|
+
var W, ne;
|
|
3818
|
+
const L = (W = U.target) == null ? void 0 : W.checked, E = ((ne = c(n)[e.type]) == null ? void 0 : ne.slice()) || [];
|
|
3819
3819
|
["classificationList", "seriesList"].includes(e.type) && E.forEach((se) => {
|
|
3820
3820
|
se.show = !1;
|
|
3821
3821
|
}), E[Y].show = L, o({
|
|
@@ -3868,9 +3868,9 @@ const Ps = /* @__PURE__ */ pe(Es, [["render", Fs], ["__scopeId", "data-v-698df0b
|
|
|
3868
3868
|
}, P = (U, Y) => {
|
|
3869
3869
|
var L, E;
|
|
3870
3870
|
if (g.value[Y] = !1, m) {
|
|
3871
|
-
const W = (L = U.target) == null ? void 0 : L.value,
|
|
3872
|
-
|
|
3873
|
-
[e.type]:
|
|
3871
|
+
const W = (L = U.target) == null ? void 0 : L.value, ne = ((E = c(n)[e.type]) == null ? void 0 : E.slice()) || [];
|
|
3872
|
+
ne[Y].label = W, o({
|
|
3873
|
+
[e.type]: ne
|
|
3874
3874
|
});
|
|
3875
3875
|
}
|
|
3876
3876
|
m = !1;
|
|
@@ -3893,8 +3893,8 @@ const Ps = /* @__PURE__ */ pe(Es, [["render", Fs], ["__scopeId", "data-v-698df0b
|
|
|
3893
3893
|
];
|
|
3894
3894
|
}), _ = (U = {}, Y, L = "ASC") => {
|
|
3895
3895
|
var we;
|
|
3896
|
-
const { label: E, name: W, id:
|
|
3897
|
-
|
|
3896
|
+
const { label: E, name: W, id: ne } = U, se = ((we = c(n)[e.type]) == null ? void 0 : we.slice()) || [];
|
|
3897
|
+
ne === k ? delete se[Y].sort : se[Y].sort = {
|
|
3898
3898
|
label: E,
|
|
3899
3899
|
columnName: W,
|
|
3900
3900
|
type: "NORMAL",
|
|
@@ -3906,12 +3906,12 @@ const Ps = /* @__PURE__ */ pe(Es, [["render", Fs], ["__scopeId", "data-v-698df0b
|
|
|
3906
3906
|
const E = {
|
|
3907
3907
|
ASC: "升序",
|
|
3908
3908
|
DESC: "降序"
|
|
3909
|
-
}[Y], { sort: W } = U, { label:
|
|
3910
|
-
return
|
|
3909
|
+
}[Y], { sort: W } = U, { label: ne, order: se } = W || {};
|
|
3910
|
+
return ne && se === Y ? `${E}(${ne})` : E;
|
|
3911
3911
|
}, x = B(), b = B(), $ = B(), z = B(), K = (U = {}, Y) => {
|
|
3912
3912
|
var L;
|
|
3913
3913
|
x.value = U, b.value = Y, (L = c($)) == null || L.showModal();
|
|
3914
|
-
},
|
|
3914
|
+
}, te = (U) => {
|
|
3915
3915
|
var Y;
|
|
3916
3916
|
return "自定义排序" + (((Y = U == null ? void 0 : U.sort) == null ? void 0 : Y.type) === "CUSTOM" ? "(已配置)" : "");
|
|
3917
3917
|
}, q = (U = {}, Y) => {
|
|
@@ -4002,7 +4002,7 @@ const Ps = /* @__PURE__ */ pe(Es, [["render", Fs], ["__scopeId", "data-v-698df0b
|
|
|
4002
4002
|
customSortModalRef: $,
|
|
4003
4003
|
currentItem: x,
|
|
4004
4004
|
currentIndex: b,
|
|
4005
|
-
handleCustomSortTitle:
|
|
4005
|
+
handleCustomSortTitle: te,
|
|
4006
4006
|
handleCustomGroupTitle: X,
|
|
4007
4007
|
customGroupModalRef: z,
|
|
4008
4008
|
showCustomGroupModal: q,
|
|
@@ -4025,7 +4025,7 @@ const Ps = /* @__PURE__ */ pe(Es, [["render", Fs], ["__scopeId", "data-v-698df0b
|
|
|
4025
4025
|
};
|
|
4026
4026
|
}
|
|
4027
4027
|
});
|
|
4028
|
-
const Kn = (e) => (on("data-v-
|
|
4028
|
+
const Kn = (e) => (on("data-v-52ad7e63"), e = e(), an(), e), Ms = { class: "title" }, js = { class: "title-text" }, Rs = { class: "field-wrap" }, Vs = { class: "field-item" }, Bs = /* @__PURE__ */ Kn(() => /* @__PURE__ */ G("div", { class: "item-label" }, "名称:", -1)), Gs = { class: "field-item" }, Us = /* @__PURE__ */ Kn(() => /* @__PURE__ */ G("div", { class: "item-label" }, "值:", -1)), zs = { class: "title" }, Hs = { class: "title-text" }, Ws = /* @__PURE__ */ Kn(() => /* @__PURE__ */ G("span", null, "添加计算指标", -1)), qs = ["onDragstart"], Ys = { class: "card-item-inner" }, Ks = ["onClick"], Xs = ["onClick"], Js = ["onClick"];
|
|
4029
4029
|
function Qs(e, t, n, o, a, r) {
|
|
4030
4030
|
const l = I("a-select"), u = I("a-card"), s = I("plus-outlined"), i = I("a-input"), f = I("setting-outlined"), d = I("a-menu-item"), v = I("a-sub-menu"), h = I("a-menu-divider"), g = I("a-menu"), m = I("a-dropdown"), T = I("delete-outlined"), M = I("a-checkbox"), C = I("custom-sort-modal"), P = I("custom-group-modal"), k = I("filter-modal"), D = I("calculation-modal"), _ = En("focus");
|
|
4031
4031
|
return e.type === "formFields" ? (y(), H(u, {
|
|
@@ -4096,7 +4096,7 @@ function Qs(e, t, n, o, a, r) {
|
|
|
4096
4096
|
G("div", {
|
|
4097
4097
|
class: $n(e.type + "-list")
|
|
4098
4098
|
}, [
|
|
4099
|
-
(y(!0), N(
|
|
4099
|
+
(y(!0), N(oe, null, de(e.cardItemList, (p, x) => (y(), N("div", {
|
|
4100
4100
|
key: x,
|
|
4101
4101
|
draggable: !0,
|
|
4102
4102
|
onDragstart: ye((b) => e.onDropStart(b, p, x), ["stop"]),
|
|
@@ -4115,7 +4115,7 @@ function Qs(e, t, n, o, a, r) {
|
|
|
4115
4115
|
key: 0,
|
|
4116
4116
|
class: "name",
|
|
4117
4117
|
onClick: ye((b) => e.onEdit(x), ["prevent", "stop"])
|
|
4118
|
-
}, le(p.
|
|
4118
|
+
}, le(p.label), 9, Ks)) : ce("", !0),
|
|
4119
4119
|
!e.editLabelList[x] && !p.label ? (y(), N("div", {
|
|
4120
4120
|
key: 1,
|
|
4121
4121
|
class: "name placeholder",
|
|
@@ -4140,13 +4140,13 @@ function Qs(e, t, n, o, a, r) {
|
|
|
4140
4140
|
overlay: O(() => [
|
|
4141
4141
|
A(g, null, {
|
|
4142
4142
|
default: O(() => [
|
|
4143
|
-
["classificationList", "seriesList"].includes(e.type) ? (y(), N(
|
|
4143
|
+
["classificationList", "seriesList"].includes(e.type) ? (y(), N(oe, { key: 0 }, [
|
|
4144
4144
|
A(v, {
|
|
4145
4145
|
title: e.handleSortTitle(p, "ASC"),
|
|
4146
4146
|
key: "0"
|
|
4147
4147
|
}, {
|
|
4148
4148
|
default: O(() => [
|
|
4149
|
-
(y(!0), N(
|
|
4149
|
+
(y(!0), N(oe, null, de(e.sortList, (b) => (y(), H(d, {
|
|
4150
4150
|
style: { "white-space": "nowrap" },
|
|
4151
4151
|
key: b.id,
|
|
4152
4152
|
onClick: ($) => e.onSort(b, x, "ASC")
|
|
@@ -4164,7 +4164,7 @@ function Qs(e, t, n, o, a, r) {
|
|
|
4164
4164
|
key: "1"
|
|
4165
4165
|
}, {
|
|
4166
4166
|
default: O(() => [
|
|
4167
|
-
(y(!0), N(
|
|
4167
|
+
(y(!0), N(oe, null, de(e.sortList, (b) => (y(), H(d, {
|
|
4168
4168
|
class: "menu-item",
|
|
4169
4169
|
style: { "white-space": "nowrap" },
|
|
4170
4170
|
key: b.id,
|
|
@@ -4196,10 +4196,10 @@ function Qs(e, t, n, o, a, r) {
|
|
|
4196
4196
|
_: 2
|
|
4197
4197
|
}, 1032, ["onClick"]),
|
|
4198
4198
|
A(h),
|
|
4199
|
-
p.genericType === "DATE" ? (y(), N(
|
|
4199
|
+
p.genericType === "DATE" ? (y(), N(oe, { key: 0 }, [
|
|
4200
4200
|
A(v, { title: "日期格式化" }, {
|
|
4201
4201
|
default: O(() => [
|
|
4202
|
-
(y(!0), N(
|
|
4202
|
+
(y(!0), N(oe, null, de(e.formatList, (b) => (y(), H(d, {
|
|
4203
4203
|
style: { "white-space": "nowrap" },
|
|
4204
4204
|
key: b.value,
|
|
4205
4205
|
onClick: ($) => e.onDateFormatChange(b.value, x)
|
|
@@ -4225,12 +4225,12 @@ function Qs(e, t, n, o, a, r) {
|
|
|
4225
4225
|
]),
|
|
4226
4226
|
_: 2
|
|
4227
4227
|
}, 1032, ["onClick"]),
|
|
4228
|
-
["classificationList", "seriesList"].includes(e.type) ? ce("", !0) : (y(), N(
|
|
4228
|
+
["classificationList", "seriesList"].includes(e.type) ? ce("", !0) : (y(), N(oe, { key: 1 }, [
|
|
4229
4229
|
A(v, {
|
|
4230
4230
|
title: e.handleAggregateTitle(p.aggregate)
|
|
4231
4231
|
}, {
|
|
4232
4232
|
default: O(() => [
|
|
4233
|
-
(y(!0), N(
|
|
4233
|
+
(y(!0), N(oe, null, de(e.aggregateList, (b) => (y(), H(d, {
|
|
4234
4234
|
style: { "white-space": "nowrap" },
|
|
4235
4235
|
key: b.value,
|
|
4236
4236
|
onClick: ($) => e.onAggregateChange(b.value, x)
|
|
@@ -4293,7 +4293,7 @@ function Qs(e, t, n, o, a, r) {
|
|
|
4293
4293
|
_: 1
|
|
4294
4294
|
}, 8, ["head-style", "onDrop"]));
|
|
4295
4295
|
}
|
|
4296
|
-
const Zs = /* @__PURE__ */ pe(Ns, [["render", Qs], ["__scopeId", "data-v-
|
|
4296
|
+
const Zs = /* @__PURE__ */ pe(Ns, [["render", Qs], ["__scopeId", "data-v-52ad7e63"]]), eu = {
|
|
4297
4297
|
classificationList: {
|
|
4298
4298
|
title: "分类"
|
|
4299
4299
|
},
|
|
@@ -4375,7 +4375,7 @@ const nu = { class: "data-group" };
|
|
|
4375
4375
|
function ou(e, t, n, o, a, r) {
|
|
4376
4376
|
const l = I("data-config-card");
|
|
4377
4377
|
return y(), N("div", nu, [
|
|
4378
|
-
(y(!0), N(
|
|
4378
|
+
(y(!0), N(oe, null, de(e.cards, (u) => (y(), H(l, Ot({
|
|
4379
4379
|
key: u.type,
|
|
4380
4380
|
class: "data-config-card",
|
|
4381
4381
|
type: u.type
|
|
@@ -5287,7 +5287,7 @@ function fu(e, t, n, o, a, r) {
|
|
|
5287
5287
|
onChange: e.onPrefixChange
|
|
5288
5288
|
}, {
|
|
5289
5289
|
default: O(() => [
|
|
5290
|
-
(y(!0), N(
|
|
5290
|
+
(y(!0), N(oe, null, de(e.prefix, ({ label: i, value: f }, d) => (y(), H(l, {
|
|
5291
5291
|
key: d,
|
|
5292
5292
|
value: f
|
|
5293
5293
|
}, {
|
|
@@ -5311,7 +5311,7 @@ function fu(e, t, n, o, a, r) {
|
|
|
5311
5311
|
onChange: e.onSuffixChange
|
|
5312
5312
|
}, {
|
|
5313
5313
|
default: O(() => [
|
|
5314
|
-
(y(!0), N(
|
|
5314
|
+
(y(!0), N(oe, null, de(e.suffix, ({ label: i, value: f }, d) => (y(), H(l, {
|
|
5315
5315
|
key: d,
|
|
5316
5316
|
value: f
|
|
5317
5317
|
}, {
|
|
@@ -5369,7 +5369,7 @@ function vu(e, t, n, o, a, r) {
|
|
|
5369
5369
|
onChange: e.onRadioChange
|
|
5370
5370
|
}, {
|
|
5371
5371
|
default: O(() => [
|
|
5372
|
-
(y(!0), N(
|
|
5372
|
+
(y(!0), N(oe, null, de(e.options, (s) => (y(), H(l, {
|
|
5373
5373
|
key: s.value,
|
|
5374
5374
|
value: s.value
|
|
5375
5375
|
}, {
|
|
@@ -5414,7 +5414,7 @@ function gu(e, t, n, o, a, r) {
|
|
|
5414
5414
|
onChange: e.onSelectChange
|
|
5415
5415
|
}, {
|
|
5416
5416
|
default: O(() => [
|
|
5417
|
-
(y(!0), N(
|
|
5417
|
+
(y(!0), N(oe, null, de(e.options, (s) => (y(), H(l, {
|
|
5418
5418
|
key: s.value,
|
|
5419
5419
|
value: s.value
|
|
5420
5420
|
}, {
|
|
@@ -5748,8 +5748,8 @@ function Fo(e) {
|
|
|
5748
5748
|
y: m
|
|
5749
5749
|
};
|
|
5750
5750
|
if (h = K.x, m = K.y, s) {
|
|
5751
|
-
var
|
|
5752
|
-
return Object.assign({}, z, (
|
|
5751
|
+
var te;
|
|
5752
|
+
return Object.assign({}, z, (te = {}, te[k] = C ? "0" : "", te[P] = M ? "0" : "", te.transform = (D.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", te));
|
|
5753
5753
|
}
|
|
5754
5754
|
return Object.assign({}, z, (t = {}, t[k] = C ? m + "px" : "", t[P] = M ? h + "px" : "", t.transform = "", t));
|
|
5755
5755
|
}
|
|
@@ -5964,9 +5964,9 @@ function It(e, t) {
|
|
|
5964
5964
|
}, z = e.modifiersData.offset;
|
|
5965
5965
|
if (v === _t && z) {
|
|
5966
5966
|
var K = z[a];
|
|
5967
|
-
Object.keys($).forEach(function(
|
|
5968
|
-
var q = [Fe, De].indexOf(
|
|
5969
|
-
$[
|
|
5967
|
+
Object.keys($).forEach(function(te) {
|
|
5968
|
+
var q = [Fe, De].indexOf(te) >= 0 ? 1 : -1, X = [Se, De].indexOf(te) >= 0 ? "y" : "x";
|
|
5969
|
+
$[te] += K[X] * q;
|
|
5970
5970
|
});
|
|
5971
5971
|
}
|
|
5972
5972
|
return $;
|
|
@@ -6010,13 +6010,13 @@ function rc(e) {
|
|
|
6010
6010
|
allowedAutoPlacements: m
|
|
6011
6011
|
}) : ie);
|
|
6012
6012
|
}, []), D = t.rects.reference, _ = t.rects.popper, p = /* @__PURE__ */ new Map(), x = !0, b = k[0], $ = 0; $ < k.length; $++) {
|
|
6013
|
-
var z = k[$], K = Be(z),
|
|
6013
|
+
var z = k[$], K = Be(z), te = pt(z) === ct, q = [Se, De].indexOf(K) >= 0, X = q ? "width" : "height", Z = It(t, {
|
|
6014
6014
|
placement: z,
|
|
6015
6015
|
boundary: f,
|
|
6016
6016
|
rootBoundary: d,
|
|
6017
6017
|
altBoundary: v,
|
|
6018
6018
|
padding: i
|
|
6019
|
-
}), ae = q ?
|
|
6019
|
+
}), ae = q ? te ? Fe : Ae : te ? De : Se;
|
|
6020
6020
|
D[X] > _[X] && (ae = Ht(ae));
|
|
6021
6021
|
var re = Ht(ae), w = [];
|
|
6022
6022
|
if (r && w.push(Z[K] <= 0), u && w.push(Z[ae] <= 0, Z[re] <= 0), w.every(function(J) {
|
|
@@ -6159,14 +6159,14 @@ function mc(e) {
|
|
|
6159
6159
|
};
|
|
6160
6160
|
if (_) {
|
|
6161
6161
|
if (r) {
|
|
6162
|
-
var
|
|
6162
|
+
var te, q = k === "y" ? Se : Ae, X = k === "y" ? De : Fe, Z = k === "y" ? "height" : "width", ae = _[k], re = ae + T[q], w = ae - T[X], S = h ? -x[Z] / 2 : 0, F = C === ct ? p[Z] : x[Z], V = C === ct ? -x[Z] : -p[Z], R = t.elements.arrow, J = h && R ? Qn(R) : {
|
|
6163
6163
|
width: 0,
|
|
6164
6164
|
height: 0
|
|
6165
|
-
}, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ga(), fe = ie[q], ve = ie[X], me = At(0, p[Z], J[Z]), _e = P ? p[Z] / 2 - S - me - fe - $.mainAxis : F - me - fe - $.mainAxis, Ce = P ? -p[Z] / 2 + S + me + ve + $.mainAxis : V + me + ve + $.mainAxis, je = t.elements.arrow && Nt(t.elements.arrow), U = je ? k === "y" ? je.clientTop || 0 : je.clientLeft || 0 : 0, Y = (
|
|
6165
|
+
}, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ga(), fe = ie[q], ve = ie[X], me = At(0, p[Z], J[Z]), _e = P ? p[Z] / 2 - S - me - fe - $.mainAxis : F - me - fe - $.mainAxis, Ce = P ? -p[Z] / 2 + S + me + ve + $.mainAxis : V + me + ve + $.mainAxis, je = t.elements.arrow && Nt(t.elements.arrow), U = je ? k === "y" ? je.clientTop || 0 : je.clientLeft || 0 : 0, Y = (te = z == null ? void 0 : z[k]) != null ? te : 0, L = ae + _e - Y - U, E = ae + Ce - Y, W = At(h ? nn(re, L) : re, ae, h ? ot(w, E) : w);
|
|
6166
6166
|
_[k] = W, K[k] = W - ae;
|
|
6167
6167
|
}
|
|
6168
6168
|
if (u) {
|
|
6169
|
-
var
|
|
6169
|
+
var ne, se = k === "x" ? Se : Ae, we = k === "x" ? De : Fe, ge = _[D], tt = D === "y" ? "height" : "width", ht = ge + T[se], gt = ge - T[we], lt = [Se, Ae].indexOf(M) !== -1, yt = (ne = z == null ? void 0 : z[D]) != null ? ne : 0, Mt = lt ? ht : ge - p[tt] - x[tt] - yt + $.altAxis, bt = lt ? ge + p[tt] + x[tt] - yt - $.altAxis : gt, ao = h && lt ? Ru(Mt, ge, bt) : At(h ? Mt : ht, ge, h ? bt : gt);
|
|
6170
6170
|
_[D] = ao, K[D] = ao - ge;
|
|
6171
6171
|
}
|
|
6172
6172
|
t.modifiersData[o] = K;
|
|
@@ -6459,7 +6459,7 @@ var Ya = { exports: {} }, Uo = { exports: {} };
|
|
|
6459
6459
|
}
|
|
6460
6460
|
function h(w, S, F, V) {
|
|
6461
6461
|
var R = S && S.prototype instanceof k ? S : k, J = Object.create(R.prototype), ie = new ae(V || []);
|
|
6462
|
-
return u(J, "_invoke", { value:
|
|
6462
|
+
return u(J, "_invoke", { value: te(w, F, ie) }), J;
|
|
6463
6463
|
}
|
|
6464
6464
|
function g(w, S, F) {
|
|
6465
6465
|
try {
|
|
@@ -6517,7 +6517,7 @@ var Ya = { exports: {} }, Uo = { exports: {} };
|
|
|
6517
6517
|
return V = V ? V.then(ie, ie) : ie();
|
|
6518
6518
|
} });
|
|
6519
6519
|
}
|
|
6520
|
-
function
|
|
6520
|
+
function te(w, S, F) {
|
|
6521
6521
|
var V = m;
|
|
6522
6522
|
return function(R, J) {
|
|
6523
6523
|
if (V === M)
|
|
@@ -7104,7 +7104,7 @@ function Re(e) {
|
|
|
7104
7104
|
}
|
|
7105
7105
|
Ye(".colors[data-v-0f8b52a8]{align-items:center;display:flex;flex-wrap:wrap;margin-top:5px}.color-item[data-v-0f8b52a8]{margin:5px}"), Qt.render = function(e, t, n, o, a, r) {
|
|
7106
7106
|
var l = I("color-item");
|
|
7107
|
-
return y(), N("div", jc, [(y(!0), N(
|
|
7107
|
+
return y(), N("div", jc, [(y(!0), N(oe, null, de(e.useColors, function(u, s) {
|
|
7108
7108
|
return y(), H(l, { key: s, class: "color-item", size: 16, value: u, border: !1, "border-radius": 3, selected: e.selectedIndex === s, onClick: ye(function(i) {
|
|
7109
7109
|
return e.onSelectColor(u, +s);
|
|
7110
7110
|
}, ["stop", "prevent"]) }, null, 8, ["value", "selected", "onClick"]);
|
|
@@ -7315,7 +7315,7 @@ var nt = null, ut = ue({ name: "ColorPicker", components: { ColorItem: kt, Picke
|
|
|
7315
7315
|
var q;
|
|
7316
7316
|
nt && ((q = nt) === null || q === void 0 || q.destroy(), nt = null);
|
|
7317
7317
|
}), { instance: nt, style: d }), C = M.style, P = function() {
|
|
7318
|
-
c(m) == null && (m.value = c(
|
|
7318
|
+
c(m) == null && (m.value = c(te)[0], r.value = 0), e.showPicker === void 0 ? u.value = !0 : n("update:showPicker", !0);
|
|
7319
7319
|
}, k = function() {
|
|
7320
7320
|
r.value = void 0, e.showPicker === void 0 ? u.value = !1 : n("update:showPicker", !1), n("closePicker", ar(Array.isArray(e.value) || e.addColor ? c(o) : c(o)[0]));
|
|
7321
7321
|
}, D = B(), _ = function() {
|
|
@@ -7399,7 +7399,7 @@ var nt = null, ut = ue({ name: "ColorPicker", components: { ColorItem: kt, Picke
|
|
|
7399
7399
|
(q = c(D)) === null || q === void 0 || q.setAttribute("pick-colors-theme", c(K)), (X = c(T)) === null || X === void 0 || (X = X.$el) === null || X === void 0 || X.setAttribute("pick-colors-theme", c(K));
|
|
7400
7400
|
});
|
|
7401
7401
|
}, { immediate: !0 }), ke("theme", { theme: K });
|
|
7402
|
-
var
|
|
7402
|
+
var te = B([]);
|
|
7403
7403
|
return Pe(function() {
|
|
7404
7404
|
document.addEventListener("mouseup", p, !1), e.showPicker && P();
|
|
7405
7405
|
}), aa(function() {
|
|
@@ -7423,7 +7423,7 @@ var nt = null, ut = ue({ name: "ColorPicker", components: { ColorItem: kt, Picke
|
|
|
7423
7423
|
Z.splice(x, 1);
|
|
7424
7424
|
var re = Z.slice(0, X), w = Z.splice(X), S = re.concat([ae]).concat(w);
|
|
7425
7425
|
n("update:value", S), n("change", S, S[x], x);
|
|
7426
|
-
}, colorItemsRef:
|
|
7426
|
+
}, colorItemsRef: te, pickerStyle: C, values: a, teleportDisabled: z, toPopupContainer: $ };
|
|
7427
7427
|
} });
|
|
7428
7428
|
Ye(".color-picker[data-v-3c43ade8]{display:inline-block}.color-item[data-v-3c43ade8]{margin:5px}.add-color-item[data-v-3c43ade8]{display:inline-block;margin:5px}.picker[data-v-3c43ade8]{overflow:hidden}.v-enter-active[data-v-3c43ade8],.v-leave-active[data-v-3c43ade8]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-3c43ade8],.v-leave-to[data-v-3c43ade8]{opacity:0;transform:scaleY(0)}"), ut.render = function(e, t, n, o, a, r) {
|
|
7429
7429
|
var l = I("color-item"), u = I("add-color-item"), s = I("picker");
|
|
@@ -7435,7 +7435,7 @@ Ye(".color-picker[data-v-3c43ade8]{display:inline-block}.color-item[data-v-3c43a
|
|
|
7435
7435
|
return e.onColorItemDrop && e.onColorItemDrop.apply(e, arguments);
|
|
7436
7436
|
}, ["prevent", "stop"])), onClick: t[3] || (t[3] = ye(function() {
|
|
7437
7437
|
return e.onColorClick && e.onColorClick.apply(e, arguments);
|
|
7438
|
-
}, ["stop"])) }, [(y(!0), N(
|
|
7438
|
+
}, ["stop"])) }, [(y(!0), N(oe, null, de(e.values, function(i, f) {
|
|
7439
7439
|
return y(), H(l, { class: "color-item", key: f, ref_for: !0, ref: function(d) {
|
|
7440
7440
|
return e.colorItemsRef[f] = d;
|
|
7441
7441
|
}, size: e.size, width: e.width, height: e.height, value: i, selected: e.colorItemSelected(f), "data-index": f, draggable: e.valueList.length > 1, format: e.format }, null, 8, ["size", "width", "height", "value", "selected", "data-index", "draggable", "format"]);
|
|
@@ -7638,7 +7638,7 @@ function nd(e, t, n, o, a, r) {
|
|
|
7638
7638
|
}, {
|
|
7639
7639
|
item: O(({ element: i, index: f }) => [
|
|
7640
7640
|
G("div", Qc, [
|
|
7641
|
-
(y(!0), N(
|
|
7641
|
+
(y(!0), N(oe, null, de(e.format, (d, v) => (y(), N("div", {
|
|
7642
7642
|
class: "form-item",
|
|
7643
7643
|
key: v
|
|
7644
7644
|
}, [
|
|
@@ -7660,7 +7660,7 @@ function nd(e, t, n, o, a, r) {
|
|
|
7660
7660
|
_: 1
|
|
7661
7661
|
}, 8, ["modelValue"]),
|
|
7662
7662
|
G("div", td, [
|
|
7663
|
-
(y(!0), N(
|
|
7663
|
+
(y(!0), N(oe, null, de(e.myValue, (i, f) => (y(), N("div", {
|
|
7664
7664
|
class: "icon-item",
|
|
7665
7665
|
key: f
|
|
7666
7666
|
}, [
|
|
@@ -7783,19 +7783,19 @@ const ld = /* @__PURE__ */ pe(ad, [["render", rd]]), id = ue({
|
|
|
7783
7783
|
const sd = { class: "props-to-form" }, ud = { class: "label" }, cd = { class: "component-wrapper" };
|
|
7784
7784
|
function dd(e, t, n, o, a, r) {
|
|
7785
7785
|
return y(), N("div", sd, [
|
|
7786
|
-
(y(!0), N(
|
|
7786
|
+
(y(!0), N(oe, null, de(e.formProps, (l, u) => (y(), N("div", {
|
|
7787
7787
|
key: u,
|
|
7788
7788
|
class: "prop-item"
|
|
7789
7789
|
}, [
|
|
7790
7790
|
G("span", ud, le(l.label), 1),
|
|
7791
7791
|
G("div", cd, [
|
|
7792
|
-
Array.isArray(l) ? (y(!0), N(
|
|
7792
|
+
Array.isArray(l) ? (y(!0), N(oe, { key: 0 }, de(l, (s, i) => (y(), H(tn(s.component), Ot({
|
|
7793
7793
|
key: i,
|
|
7794
7794
|
class: "component",
|
|
7795
7795
|
style: s.style,
|
|
7796
7796
|
disabled: e.disabled
|
|
7797
7797
|
}, s.props, lo(s.events)), null, 16, ["style", "disabled"]))), 128)) : ce("", !0),
|
|
7798
|
-
Array.isArray(l) ? ce("", !0) : (y(), N(
|
|
7798
|
+
Array.isArray(l) ? ce("", !0) : (y(), N(oe, { key: 1 }, [
|
|
7799
7799
|
l.component ? (y(), H(tn(l.component), Ot({
|
|
7800
7800
|
key: 0,
|
|
7801
7801
|
class: "component",
|
|
@@ -8064,10 +8064,10 @@ function _d(e, t, n, o, a, r) {
|
|
|
8064
8064
|
"onUpdate:activeKey": t[1] || (t[1] = (g) => e.activePanel = g)
|
|
8065
8065
|
}, {
|
|
8066
8066
|
default: O(() => [
|
|
8067
|
-
(y(!0), N(
|
|
8067
|
+
(y(!0), N(oe, null, de(e.detailPropsGroups, (g) => (y(), N(oe, {
|
|
8068
8068
|
key: g.title
|
|
8069
8069
|
}, [
|
|
8070
|
-
e.isRenderForm(g, e.type) ? (y(), N(
|
|
8070
|
+
e.isRenderForm(g, e.type) ? (y(), N(oe, { key: 0 }, [
|
|
8071
8071
|
g.title ? (y(), H(d, {
|
|
8072
8072
|
header: g.title,
|
|
8073
8073
|
key: g.title
|
|
@@ -8180,10 +8180,10 @@ const xd = /* @__PURE__ */ pe(Cd, [["render", _d], ["__scopeId", "data-v-6513400
|
|
|
8180
8180
|
if (Array.isArray(v) && v.length > 0) {
|
|
8181
8181
|
const $ = v.length;
|
|
8182
8182
|
for (let z = 0; z < $; z++) {
|
|
8183
|
-
const K = v[z] || {}, { label:
|
|
8183
|
+
const K = v[z] || {}, { label: te = "", name: q = "", show: X = !1, sort: Z, customGroup: ae, conditions: re } = K;
|
|
8184
8184
|
if (X || $ === 1) {
|
|
8185
8185
|
D = {
|
|
8186
|
-
label:
|
|
8186
|
+
label: te,
|
|
8187
8187
|
columnName: q,
|
|
8188
8188
|
show: X,
|
|
8189
8189
|
sort: Z,
|
|
@@ -8198,10 +8198,10 @@ const xd = /* @__PURE__ */ pe(Cd, [["render", _d], ["__scopeId", "data-v-6513400
|
|
|
8198
8198
|
if (Array.isArray(h) && h.length > 0) {
|
|
8199
8199
|
const $ = h.length;
|
|
8200
8200
|
for (let z = 0; z < $; z++) {
|
|
8201
|
-
const K = h[z] || {}, { label:
|
|
8201
|
+
const K = h[z] || {}, { label: te = "", name: q = "", show: X = !1, sort: Z, customGroup: ae, conditions: re } = K;
|
|
8202
8202
|
if (X || $ === 1) {
|
|
8203
8203
|
_ = {
|
|
8204
|
-
label:
|
|
8204
|
+
label: te,
|
|
8205
8205
|
columnName: q,
|
|
8206
8206
|
show: X,
|
|
8207
8207
|
sort: Z,
|
|
@@ -8964,24 +8964,24 @@ const xd = /* @__PURE__ */ pe(Cd, [["render", _d], ["__scopeId", "data-v-6513400
|
|
|
8964
8964
|
i.value = !0;
|
|
8965
8965
|
const $ = await b(), { columns: z = [], rows: K = [] } = ((p = $ == null ? void 0 : $.data) == null ? void 0 : p.data) ?? {};
|
|
8966
8966
|
if (((x = c(n.value)) == null ? void 0 : x.type) === "pie") {
|
|
8967
|
-
let
|
|
8967
|
+
let te = [];
|
|
8968
8968
|
if (z.length > 0) {
|
|
8969
8969
|
const q = z[0], X = z[1];
|
|
8970
|
-
|
|
8970
|
+
te = K.map((Z) => ({
|
|
8971
8971
|
name: Z[q],
|
|
8972
8972
|
value: Z[X]
|
|
8973
8973
|
}));
|
|
8974
8974
|
}
|
|
8975
|
-
T(
|
|
8975
|
+
T(te);
|
|
8976
8976
|
} else {
|
|
8977
|
-
let
|
|
8978
|
-
z.length > 0 && (
|
|
8977
|
+
let te;
|
|
8978
|
+
z.length > 0 && (te = {
|
|
8979
8979
|
name: z[0],
|
|
8980
8980
|
types: z.slice(1).map((q) => ({
|
|
8981
8981
|
label: q,
|
|
8982
8982
|
value: q
|
|
8983
8983
|
}))
|
|
8984
|
-
}), m(K,
|
|
8984
|
+
}), m(K, te, !0);
|
|
8985
8985
|
}
|
|
8986
8986
|
} catch (b) {
|
|
8987
8987
|
console.error(b);
|