@ecan-bi/pivot-table 1.0.64 → 1.0.65
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/{DrillModal-7a85df17.mjs → DrillModal-a1b55427.mjs} +3 -3
- package/dist/{DrillModal-7a85df17.mjs.map → DrillModal-a1b55427.mjs.map} +1 -1
- package/dist/{index-1c8a46a1.mjs → index-0859ac36.mjs} +137 -137
- package/dist/{index-1c8a46a1.mjs.map → index-0859ac36.mjs.map} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/pivot-table@1.0.
|
|
1
|
+
/*! @ecan-bi/pivot-table@1.0.65 */
|
|
2
2
|
import { defineComponent as Ze, ref as J, inject as fe, watch as je, unref as I, computed as re, resolveComponent as yt, openBlock as mt, createBlock as we, withCtx as Mt, createVNode as ct, createTextVNode as ai, createCommentVNode as ye, createElementBlock as Et, normalizeClass as yo, Fragment as bi, createElementVNode as Ht, normalizeStyle as ie, renderList as cn, withDirectives as wh, toDisplayString as qe, vShow as Vu, h as vC, nextTick as zi, withModifiers as mr, onMounted as ss, onUnmounted as cm, Transition as dA, withKeys as N2, provide as vn, Teleport as uA, onBeforeUnmount as cA, toRaw as j2, resolveDynamicComponent as V2, mergeProps as $2, reactive as $u, resolveDirective as G2, defineAsyncComponent as U2, watchEffect as K2 } from "vue";
|
|
3
3
|
import br from "dayjs";
|
|
4
4
|
import { cloneDeep as fi } from "lodash-es";
|
|
@@ -1226,9 +1226,9 @@ const Md = (i) => {
|
|
|
1226
1226
|
if (Array.isArray(C) && C.length > 0 && (!["ecanList", "ecanCirculate"].includes(u) || (C == null ? void 0 : C.length) === 1)) {
|
|
1227
1227
|
const lt = C.length;
|
|
1228
1228
|
for (let ot = 0; ot < lt; ot++) {
|
|
1229
|
-
const ft = C[ot] || {}, { label: dt = "", name: At = "", show: gt = !1, sort:
|
|
1229
|
+
const ft = C[ot] || {}, { label: dt = "", name: At = "", show: gt = !1, sort: Nt, customGroup: Zt, conditions: xt, dateFormat: Ft, typeGuid: zt = "", truncations: ue = [] } = ft;
|
|
1230
1230
|
if (gt || lt === 1) {
|
|
1231
|
-
Y =
|
|
1231
|
+
Y = zt, p = { label: dt.trim(), columnName: At, show: gt, sort: IA(ft) || Md(Nt) || Nt, customGroup: Zt, conditions: Ms(xt), typeGuid: zt }, Ft && (p.dateFormat = Ft), At !== "the_date" || p.dateFormat || (p.dateFormat = "YYYY-MM-DD");
|
|
1232
1232
|
const ce = {};
|
|
1233
1233
|
if (Array.isArray(ue) && ue.length > 0) {
|
|
1234
1234
|
const He = ue.length;
|
|
@@ -1246,9 +1246,9 @@ const Md = (i) => {
|
|
|
1246
1246
|
if (Array.isArray(x) && x.length > 0) {
|
|
1247
1247
|
const lt = x.length;
|
|
1248
1248
|
for (let ot = 0; ot < lt; ot++) {
|
|
1249
|
-
const ft = x[ot] || {}, { label: dt = "", name: At = "", show: gt = !1, sort:
|
|
1249
|
+
const ft = x[ot] || {}, { label: dt = "", name: At = "", show: gt = !1, sort: Nt, customGroup: Zt, conditions: xt, typeGuid: Ft, dateFormat: zt = "" } = ft;
|
|
1250
1250
|
if (gt || lt === 1) {
|
|
1251
|
-
K = { label: dt.trim(), columnName: At, show: gt, sort: Md(
|
|
1251
|
+
K = { label: dt.trim(), columnName: At, show: gt, sort: Md(Nt), customGroup: Zt, conditions: Ms(xt), typeGuid: Ft }, zt ? K.dateFormat = zt : At === "the_date" && (K.dateFormat = "YYYY-MM-DD");
|
|
1252
1252
|
break;
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
@@ -1265,14 +1265,14 @@ const Md = (i) => {
|
|
|
1265
1265
|
});
|
|
1266
1266
|
const Z = [];
|
|
1267
1267
|
["ecanList", "ecanCirculate"].includes(u) && (C == null ? void 0 : C.length) > 1 && (T = C), t != null && t.pivotTableCal && (T = ((r = t.pivotTableCal) === null || r === void 0 ? void 0 : r.dimensions) || []), T == null || T.forEach((lt) => {
|
|
1268
|
-
const { label: ot, name: ft, location: dt, show: At, indexCode: gt, sort:
|
|
1269
|
-
let ue = Md(
|
|
1268
|
+
const { label: ot, name: ft, location: dt, show: At, indexCode: gt, sort: Nt, typeGuid: Zt, indexCodeNum: xt, dateFormat: Ft, conditions: zt } = lt;
|
|
1269
|
+
let ue = Md(Nt);
|
|
1270
1270
|
if (t.sort) {
|
|
1271
1271
|
const { field: He, order: Je } = t.sort;
|
|
1272
1272
|
let Oe = V.find((Ve) => Ve.label === He);
|
|
1273
1273
|
Oe || ot !== He || (Oe = lt), Oe && (ue = { columnName: Oe.columnName, label: t.sort.field, order: Je.toUpperCase(), type: "NORMAL" });
|
|
1274
1274
|
}
|
|
1275
|
-
const ce = { label: ot, columnName: ft, location: dt, show: At, sort: ue, calcType: "COLUMN", hrpIndexCode: gt, hrpIndexCodeNum: xt, conditions: Ms(
|
|
1275
|
+
const ce = { label: ot, columnName: ft, location: dt, show: At, sort: ue, calcType: "COLUMN", hrpIndexCode: gt, hrpIndexCodeNum: xt, conditions: Ms(zt), typeGuid: Zt };
|
|
1276
1276
|
Ft && (ce.dateFormat = Ft), ft !== "the_date" || ce.dateFormat || (ce.dateFormat = "YYYY-MM-DD"), Z.push(ce);
|
|
1277
1277
|
});
|
|
1278
1278
|
const st = [];
|
|
@@ -1284,14 +1284,14 @@ const Md = (i) => {
|
|
|
1284
1284
|
if (Array.isArray(w) && w.length > 0 ? St = w : Array.isArray(A) && A.length > 0 && (St = A), St == null ? void 0 : St.length) {
|
|
1285
1285
|
const lt = St.length;
|
|
1286
1286
|
for (let ot = 0; ot < lt; ot++) {
|
|
1287
|
-
const ft = St[ot] || {}, { label: dt = "", name: At = "", show: gt = !1, sort:
|
|
1288
|
-
let ce = Md(
|
|
1287
|
+
const ft = St[ot] || {}, { label: dt = "", name: At = "", show: gt = !1, sort: Nt, customGroup: Zt, conditions: xt, truncations: Ft, typeGuid: zt = "", dateFormat: ue } = ft;
|
|
1288
|
+
let ce = Md(Nt);
|
|
1289
1289
|
if (t.sort) {
|
|
1290
1290
|
const { field: Oe, order: Ve } = t.sort;
|
|
1291
1291
|
let Pt = V.find((bt) => bt.label === Oe);
|
|
1292
1292
|
Pt || ft.label !== Oe || (Pt = ft), Pt && (ce = { columnName: Pt.columnName, label: t.sort.field, order: Ve.toUpperCase(), type: "NORMAL" });
|
|
1293
1293
|
}
|
|
1294
|
-
const He = { label: dt.trim(), columnName: At, show: gt, sort: ce, customGroup: Zt, conditions: Ms(xt), typeGuid:
|
|
1294
|
+
const He = { label: dt.trim(), columnName: At, show: gt, sort: ce, customGroup: Zt, conditions: Ms(xt), typeGuid: zt };
|
|
1295
1295
|
ue && (He.dateFormat = ue), At !== "the_date" || He.dateFormat || (He.dateFormat = "YYYY-MM-DD");
|
|
1296
1296
|
const Je = {};
|
|
1297
1297
|
if (Array.isArray(Ft) && Ft.length > 0) {
|
|
@@ -1308,22 +1308,22 @@ const Md = (i) => {
|
|
|
1308
1308
|
const _t = [];
|
|
1309
1309
|
if (t != null && t.pivotTableCal) {
|
|
1310
1310
|
let lt = [];
|
|
1311
|
-
const { calc: ot = [], filter: ft = [], truncations: dt = [], sorts: At = [], aggregateMethod: gt = [], rowDimensionKeys:
|
|
1311
|
+
const { calc: ot = [], filter: ft = [], truncations: dt = [], sorts: At = [], aggregateMethod: gt = [], rowDimensionKeys: Nt = [], colDimensionKeys: Zt = [] } = t.pivotTableCal;
|
|
1312
1312
|
if (V.push(...ot), ft == null ? void 0 : ft.length) {
|
|
1313
|
-
const xt = function Ft(
|
|
1313
|
+
const xt = function Ft(zt) {
|
|
1314
1314
|
const ue = [];
|
|
1315
|
-
for (const ce of
|
|
1315
|
+
for (const ce of zt)
|
|
1316
1316
|
ce.conditions ? ue.push(...Ft(ce.conditions)) : ce.conditionKey === "the_date" && ue.push(ce);
|
|
1317
1317
|
return ue;
|
|
1318
1318
|
}(F);
|
|
1319
1319
|
for (const Ft of ft) {
|
|
1320
|
-
const { type:
|
|
1321
|
-
|
|
1320
|
+
const { type: zt } = Ft, ue = mC(Ft, ["type"]);
|
|
1321
|
+
zt === "indicators" ? lt = V : zt === "dimension" && (lt = Z);
|
|
1322
1322
|
const ce = lt.find((He) => He.columnName === Ft.fieldName && He.label === Ft.label);
|
|
1323
1323
|
if (ce) {
|
|
1324
|
-
if (
|
|
1324
|
+
if (zt === "indicators")
|
|
1325
1325
|
ce.filter = { rule: ue.rule, fieldValue: ue.fieldValue };
|
|
1326
|
-
else if (
|
|
1326
|
+
else if (zt === "dimension") {
|
|
1327
1327
|
let He = !0;
|
|
1328
1328
|
ue.fieldName === "the_date" && (xt == null ? void 0 : xt.length) === 2 && (He = !1, _t.push(ue)), He && (ce.conditions || (ce.conditions = []), ce.conditions.push(ue));
|
|
1329
1329
|
}
|
|
@@ -1332,24 +1332,24 @@ const Md = (i) => {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
if (dt != null && dt.length)
|
|
1334
1334
|
for (const xt of dt) {
|
|
1335
|
-
const Ft = Z.find((
|
|
1335
|
+
const Ft = Z.find((zt) => zt.label === xt.key);
|
|
1336
1336
|
Ft && (Ft.truncation = { num: xt.num, rule: xt.rule });
|
|
1337
1337
|
}
|
|
1338
1338
|
if (At != null && At.length)
|
|
1339
1339
|
for (const xt of At) {
|
|
1340
|
-
const { fieldType: Ft, columnData:
|
|
1341
|
-
Ft === "indicators" ? (lt = V, Q =
|
|
1340
|
+
const { fieldType: Ft, columnData: zt } = xt, ue = mC(xt, ["fieldType", "columnData"]);
|
|
1341
|
+
Ft === "indicators" ? (lt = V, Q = zt) : Ft === "dimension" && (lt = Z);
|
|
1342
1342
|
const ce = lt.find((He) => He.label === ue.label);
|
|
1343
1343
|
ce && (ce.sort = Object.assign(Object.assign({}, ue), { columnName: ce.columnName }));
|
|
1344
1344
|
}
|
|
1345
1345
|
if (!((l = Object.keys(gt)) === null || l === void 0) && l.length)
|
|
1346
1346
|
for (const xt in gt) {
|
|
1347
|
-
const Ft = Z.find((
|
|
1347
|
+
const Ft = Z.find((zt) => zt.label === xt);
|
|
1348
1348
|
Ft && (!((a = gt[xt]) === null || a === void 0) && a.length) && (Ft.aggregateMethod = gt[xt]);
|
|
1349
1349
|
}
|
|
1350
1350
|
pt = [], it = [];
|
|
1351
1351
|
for (const xt of Z)
|
|
1352
|
-
|
|
1352
|
+
Nt.includes(xt.columnName) ? pt.push(xt) : Zt.includes(xt.columnName) && it.push(xt);
|
|
1353
1353
|
}
|
|
1354
1354
|
if (Bi(u, ["text", "proportion", "counter"]) ? _ = "zb" : Bi(u, ["valueline"]) ? _ = "valueline" : Bi(u, ["indexPanel"]) && (_ = "indexPanel"), g || u === "card") {
|
|
1355
1355
|
if (pt.length === 0 || V.length === 0)
|
|
@@ -1379,7 +1379,7 @@ const Md = (i) => {
|
|
|
1379
1379
|
if (At.sqlConditions)
|
|
1380
1380
|
ft(At.sqlConditions);
|
|
1381
1381
|
else if (At.fieldName === "the_date") {
|
|
1382
|
-
const gt = _t.find((
|
|
1382
|
+
const gt = _t.find((Nt) => Nt.prop === At.prop);
|
|
1383
1383
|
gt && (At.fieldValue = gt.fieldValue);
|
|
1384
1384
|
}
|
|
1385
1385
|
}(ot), wt = Object.assign({ url: "/diagram", source: v, dataViewId: m, plugin: f ? "5" : b, layer: y, chartType: f ? "pivot-table" : _, series: K, indicatorList: V, queryColumns: g ? [] : Z, pageFlag: !0, edvDataSetId: O || "", sqlConditions: ot, idxLibMode: L, dataSourceId: k, preview: D, rowHeaders: pt, keyName: i.keyName, columnData: Q, columnHeaders: it }, lt);
|
|
@@ -19237,8 +19237,8 @@ class zh extends go {
|
|
|
19237
19237
|
if (wL(dt, At, !1))
|
|
19238
19238
|
break;
|
|
19239
19239
|
{
|
|
19240
|
-
const gt = JA(dt, At, !1),
|
|
19241
|
-
|
|
19240
|
+
const gt = JA(dt, At, !1), Nt = (gt.x2 - gt.x1) * (gt.y2 - gt.y1);
|
|
19241
|
+
Nt > it && (it = Nt, Q = _t);
|
|
19242
19242
|
}
|
|
19243
19243
|
}
|
|
19244
19244
|
}
|
|
@@ -29703,7 +29703,7 @@ function z5(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v) {
|
|
|
29703
29703
|
}
|
|
29704
29704
|
let wt = 0, lt = 0, ot = 0;
|
|
29705
29705
|
if (Array.isArray(_t) && _t.length !== 0) {
|
|
29706
|
-
const { leftIconWidth: At, rightIconWidth: gt, absoluteLeftIconWidth:
|
|
29706
|
+
const { leftIconWidth: At, rightIconWidth: gt, absoluteLeftIconWidth: Nt, absoluteRightIconWidth: Zt } = wf(_t, it, p, g);
|
|
29707
29707
|
wt = At + gt, lt = At, ot = gt, it.forEachChildren((xt) => {
|
|
29708
29708
|
xt.role === "icon-left" ? xt.setAttribute("x", xt.attribute.x + h[3]) : xt.role === "icon-right" ? xt.setAttribute("x", xt.attribute.x + r - gt - h[1]) : xt.role === "icon-absolute-right" && xt.setAttribute("x", xt.attribute.x + r - Zt - h[1]);
|
|
29709
29709
|
}), it.forEachChildren((xt) => {
|
|
@@ -30010,7 +30010,7 @@ function Ko(i, t, e, n, o) {
|
|
|
30010
30010
|
const _t = e.getCellValue(i, t), { text: wt, moreThanMaxCharacters: lt } = Gh(_t, e), ot = Ro(i, t, e), ft = j.lineClamp, dt = (w = de(Rt("padding", j, i, t, e))) !== null && w !== void 0 ? w : [0, 0, 0, 0], At = $.text.textAlign;
|
|
30011
30011
|
let gt = 0;
|
|
30012
30012
|
gt = At === "center" ? dt[3] + (St - (dt[1] + dt[3])) / 2 : At === "right" ? dt[3] + St - (dt[1] + dt[3]) : dt[3];
|
|
30013
|
-
const
|
|
30013
|
+
const Nt = {
|
|
30014
30014
|
text: wt.length !== 1 || W ? wt : wt[0],
|
|
30015
30015
|
moreThanMaxCharacters: lt,
|
|
30016
30016
|
maxLineWidth: St - (dt[1] + dt[3] + ot),
|
|
@@ -30023,7 +30023,7 @@ function Ko(i, t, e, n, o) {
|
|
|
30023
30023
|
dx: At === "left" ? ot : 0,
|
|
30024
30024
|
x: gt
|
|
30025
30025
|
};
|
|
30026
|
-
if (it.setAttributes($.text ? Object.assign({}, $.text,
|
|
30026
|
+
if (it.setAttributes($.text ? Object.assign({}, $.text, Nt) : Nt), it.attribute.text) {
|
|
30027
30027
|
const Zt = $.text.textBaseline, xt = Q - (dt[0] + dt[2]);
|
|
30028
30028
|
let Ft = 0;
|
|
30029
30029
|
Ft = Zt === "middle" ? dt[0] + (xt - it.AABBBounds.height()) / 2 : Zt === "bottom" ? dt[0] + xt - it.AABBBounds.height() : dt[0], it.setAttributes({
|
|
@@ -48471,7 +48471,7 @@ function yV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v) {
|
|
|
48471
48471
|
}
|
|
48472
48472
|
let wt = 0, lt = 0;
|
|
48473
48473
|
if (Array.isArray(_t) && _t.length !== 0) {
|
|
48474
|
-
const { leftIconWidth: At, rightIconWidth: gt, absoluteLeftIconWidth:
|
|
48474
|
+
const { leftIconWidth: At, rightIconWidth: gt, absoluteLeftIconWidth: Nt, absoluteRightIconWidth: Zt } = wf(_t, it, p, g);
|
|
48475
48475
|
wt = At, lt = gt, it.forEachChildren((xt) => {
|
|
48476
48476
|
xt.role === "icon-left" ? xt.setAttribute("x", xt.attribute.x + h[3]) : xt.role === "icon-right" ? xt.setAttribute("x", xt.attribute.x + r - gt - h[1]) : xt.role === "icon-absolute-right" && xt.setAttribute("x", xt.attribute.x + r - Zt - h[1]);
|
|
48477
48477
|
}), it.forEachChildren((xt) => {
|
|
@@ -48481,7 +48481,7 @@ function yV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v) {
|
|
|
48481
48481
|
const ot = g.getCellValue(n, o), ft = document.createElement("video");
|
|
48482
48482
|
ft.addEventListener("loadeddata", () => {
|
|
48483
48483
|
a && EM(n, o, ft.videoWidth, ft.videoHeight, g.scenegraph, h, it);
|
|
48484
|
-
const { width: At, height: gt, isMerge:
|
|
48484
|
+
const { width: At, height: gt, isMerge: Nt } = ia(it, g);
|
|
48485
48485
|
if (l) {
|
|
48486
48486
|
const { width: He, height: Je } = yf(ft.videoWidth, ft.videoHeight, At - h[1] - h[3], gt - h[0] - h[2]), Oe = vb(0, 0, At, gt, He, Je, d, u, h);
|
|
48487
48487
|
dt.setAttributes({
|
|
@@ -48499,9 +48499,9 @@ function yV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v) {
|
|
|
48499
48499
|
height: gt - h[2] - h[0],
|
|
48500
48500
|
dy: 0
|
|
48501
48501
|
});
|
|
48502
|
-
|
|
48503
|
-
const { width: Zt, height: xt } = ia(it, g), Ft = Math.floor(Math.min(Zt - h[1] - h[3], xt - h[2] - h[0]) / 2),
|
|
48504
|
-
x:
|
|
48502
|
+
Nt && mb(it.mergeStartCol, it.mergeEndCol, it.mergeStartRow, it.mergeEndRow, g);
|
|
48503
|
+
const { width: Zt, height: xt } = ia(it, g), Ft = Math.floor(Math.min(Zt - h[1] - h[3], xt - h[2] - h[0]) / 2), zt = 0 + (Zt > dt.attribute.width ? dt.attribute.x - 0 + dt.attribute.width / 2 : Zt / 2), ue = 0 + (xt > dt.attribute.height ? dt.attribute.y - 0 + dt.attribute.height / 2 : xt / 2), ce = new Ys({
|
|
48504
|
+
x: zt - Ft / 2,
|
|
48505
48505
|
y: ue - Ft / 2,
|
|
48506
48506
|
width: Ft,
|
|
48507
48507
|
height: Ft,
|
|
@@ -48559,13 +48559,13 @@ function _V(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v, m, b) {
|
|
|
48559
48559
|
clip: !0,
|
|
48560
48560
|
cornerRadius: v.group.cornerRadius
|
|
48561
48561
|
}), gt.role = "cell", gt.col = r, gt.row = s, e == null || e.addCellGroup(gt)), f && gt.appendChild(f), p) {
|
|
48562
|
-
const
|
|
48562
|
+
const Nt = t;
|
|
48563
48563
|
let Zt;
|
|
48564
48564
|
if (g) {
|
|
48565
48565
|
let xt = r, Ft = s;
|
|
48566
48566
|
m && (xt = m.start.col, Ft = m.start.row), Zt = i.getCellIcons(xt, Ft);
|
|
48567
48567
|
}
|
|
48568
|
-
if (I5(gt, Zt,
|
|
48568
|
+
if (I5(gt, Zt, Nt, d, ot, lt, ft, typeof dt == "number" ? dt : void 0, gt.attribute.width, gt.attribute.height, u, c, i, v, m), (St = v == null ? void 0 : v._vtable) === null || St === void 0 ? void 0 : St.marked) {
|
|
48569
48569
|
const xt = Um({
|
|
48570
48570
|
x: gt.attribute.width,
|
|
48571
48571
|
y: 0,
|
|
@@ -48706,7 +48706,7 @@ function wV(i, t, e, n, o, r, s, l, a, h) {
|
|
|
48706
48706
|
top: lt,
|
|
48707
48707
|
width: At,
|
|
48708
48708
|
height: E
|
|
48709
|
-
},
|
|
48709
|
+
}, Nt = pi(S, {
|
|
48710
48710
|
col: r,
|
|
48711
48711
|
row: s,
|
|
48712
48712
|
table: a,
|
|
@@ -48719,7 +48719,7 @@ function wV(i, t, e, n, o, r, s, l, a, h) {
|
|
|
48719
48719
|
y: gt.top,
|
|
48720
48720
|
width: gt.width,
|
|
48721
48721
|
height: gt.height,
|
|
48722
|
-
fill:
|
|
48722
|
+
fill: Nt
|
|
48723
48723
|
});
|
|
48724
48724
|
_.addChild(Zt);
|
|
48725
48725
|
let xt = Math.min(wt * Q * it, wt);
|
|
@@ -48734,7 +48734,7 @@ function wV(i, t, e, n, o, r, s, l, a, h) {
|
|
|
48734
48734
|
top: lt,
|
|
48735
48735
|
width: xt,
|
|
48736
48736
|
height: E
|
|
48737
|
-
},
|
|
48737
|
+
}, zt = pi(x, {
|
|
48738
48738
|
col: r,
|
|
48739
48739
|
row: s,
|
|
48740
48740
|
table: a,
|
|
@@ -48747,7 +48747,7 @@ function wV(i, t, e, n, o, r, s, l, a, h) {
|
|
|
48747
48747
|
y: Ft.top,
|
|
48748
48748
|
width: Ft.width,
|
|
48749
48749
|
height: Ft.height,
|
|
48750
|
-
fill:
|
|
48750
|
+
fill: zt
|
|
48751
48751
|
});
|
|
48752
48752
|
_.addChild(ue);
|
|
48753
48753
|
const ce = T ? gt.left : Ft.left, He = pi(R, {
|
|
@@ -48891,7 +48891,7 @@ function wV(i, t, e, n, o, r, s, l, a, h) {
|
|
|
48891
48891
|
fill: dt
|
|
48892
48892
|
});
|
|
48893
48893
|
if (_.addChild(At), M && Z) {
|
|
48894
|
-
const gt = P,
|
|
48894
|
+
const gt = P, Nt = [];
|
|
48895
48895
|
let Zt;
|
|
48896
48896
|
if (Zt = Z >= 0 ? pi(B, {
|
|
48897
48897
|
col: r,
|
|
@@ -48911,18 +48911,18 @@ function wV(i, t, e, n, o, r, s, l, a, h) {
|
|
|
48911
48911
|
percentile: Q
|
|
48912
48912
|
}) || "#20a8d8", H === "right") {
|
|
48913
48913
|
const Ft = T ? ft.left + P / 2 : ft.left + ft.width - P / 2;
|
|
48914
|
-
|
|
48914
|
+
Nt.push({
|
|
48915
48915
|
x: Ft,
|
|
48916
48916
|
y: ft.top
|
|
48917
|
-
}),
|
|
48917
|
+
}), Nt.push({
|
|
48918
48918
|
x: Ft,
|
|
48919
48919
|
y: ft.top + ft.height
|
|
48920
48920
|
});
|
|
48921
48921
|
} else
|
|
48922
|
-
H === "bottom" && (
|
|
48922
|
+
H === "bottom" && (Nt.push({
|
|
48923
48923
|
x: ft.left,
|
|
48924
48924
|
y: ft.top + ft.height - P / 2
|
|
48925
|
-
}),
|
|
48925
|
+
}), Nt.push({
|
|
48926
48926
|
x: ft.left + ft.width,
|
|
48927
48927
|
y: ft.top + ft.height - P / 2
|
|
48928
48928
|
}));
|
|
@@ -48931,7 +48931,7 @@ function wV(i, t, e, n, o, r, s, l, a, h) {
|
|
|
48931
48931
|
y: 0,
|
|
48932
48932
|
stroke: Zt,
|
|
48933
48933
|
lineWidth: gt,
|
|
48934
|
-
points:
|
|
48934
|
+
points: Nt
|
|
48935
48935
|
});
|
|
48936
48936
|
_.addChild(xt);
|
|
48937
48937
|
}
|
|
@@ -50907,7 +50907,7 @@ class Zh {
|
|
|
50907
50907
|
return o;
|
|
50908
50908
|
}
|
|
50909
50909
|
processRecord(t, e) {
|
|
50910
|
-
var n, o, r, s, l, a, h, d, u, c, g, f, p, v, m, b, y, _, C, w, A, x, S, R, T, M, B, F, P, H, E, k, L, D, O, j, W, $, K, Y, V, G, Z, st, pt, St, Q, it, _t, wt, lt, ot, ft, dt, At, gt,
|
|
50910
|
+
var n, o, r, s, l, a, h, d, u, c, g, f, p, v, m, b, y, _, C, w, A, x, S, R, T, M, B, F, P, H, E, k, L, D, O, j, W, $, K, Y, V, G, Z, st, pt, St, Q, it, _t, wt, lt, ot, ft, dt, At, gt, Nt, Zt, xt, Ft, zt, ue, ce, He, Je;
|
|
50911
50911
|
(n = this.derivedFieldRules) === null || n === void 0 || n.forEach((bt, kt) => {
|
|
50912
50912
|
bt.fieldName && bt.derivedFunc && (t[bt.fieldName] = bt.derivedFunc(t));
|
|
50913
50913
|
});
|
|
@@ -51016,73 +51016,73 @@ class Zh {
|
|
|
51016
51016
|
const Qt = kt.join(this.stringJoinChar), Ut = xe.join(this.stringJoinChar);
|
|
51017
51017
|
if (Oe) {
|
|
51018
51018
|
this.totalRecordsTree[Qt] || (this.totalRecordsTree[Qt] = {}), this.totalRecordsTree[Qt][Ut] || (this.totalRecordsTree[Qt][Ut] = []);
|
|
51019
|
-
const
|
|
51020
|
-
for (let Xt = 0; Xt <
|
|
51021
|
-
if (this.calculatedFiledKeys.indexOf(
|
|
51022
|
-
const pe = (R = this.calculatedFieldRules) === null || R === void 0 ? void 0 : R.find((Di) => Di.key ===
|
|
51019
|
+
const Wt = this.indicatorKeysIncludeCalculatedFieldDependIndicatorKeys;
|
|
51020
|
+
for (let Xt = 0; Xt < Wt.length; Xt++)
|
|
51021
|
+
if (this.calculatedFiledKeys.indexOf(Wt[Xt]) >= 0) {
|
|
51022
|
+
const pe = (R = this.calculatedFieldRules) === null || R === void 0 ? void 0 : R.find((Di) => Di.key === Wt[Xt]);
|
|
51023
51023
|
!((M = (T = this.totalRecordsTree[Qt]) === null || T === void 0 ? void 0 : T[Ut]) === null || M === void 0) && M[Xt] || (this.totalRecordsTree[Qt][Ut][Xt] = new this.aggregators[Gt.RECALCULATE]({
|
|
51024
|
-
key:
|
|
51025
|
-
dimension:
|
|
51024
|
+
key: Wt[Xt],
|
|
51025
|
+
dimension: Wt[Xt],
|
|
51026
51026
|
isRecord: !0,
|
|
51027
|
-
formatFun: (F = (B = this.indicators) === null || B === void 0 ? void 0 : B.find((Di) => typeof Di != "string" && Di.indicatorKey ===
|
|
51027
|
+
formatFun: (F = (B = this.indicators) === null || B === void 0 ? void 0 : B.find((Di) => typeof Di != "string" && Di.indicatorKey === Wt[Xt])) === null || F === void 0 ? void 0 : F.format,
|
|
51028
51028
|
calculateFun: pe == null ? void 0 : pe.calculateFun,
|
|
51029
51029
|
dependAggregators: this.totalRecordsTree[Qt][Ut],
|
|
51030
51030
|
dependIndicatorKeys: pe == null ? void 0 : pe.dependIndicatorKeys
|
|
51031
|
-
})),
|
|
51031
|
+
})), Wt[Xt] in t && ((H = (P = this.totalRecordsTree[Qt]) === null || P === void 0 ? void 0 : P[Ut]) === null || H === void 0 || H[Xt].push(t));
|
|
51032
51032
|
} else {
|
|
51033
|
-
const pe = this.getAggregatorRule(
|
|
51033
|
+
const pe = this.getAggregatorRule(Wt[Xt]);
|
|
51034
51034
|
!((k = (E = this.totalRecordsTree[Qt]) === null || E === void 0 ? void 0 : E[Ut]) === null || k === void 0) && k[Xt] || (this.totalRecordsTree[Qt][Ut][Xt] = new this.aggregators[(L = pe == null ? void 0 : pe.aggregationType) !== null && L !== void 0 ? L : Gt.SUM]({
|
|
51035
|
-
key:
|
|
51036
|
-
dimension: (D = pe == null ? void 0 : pe.field) !== null && D !== void 0 ? D :
|
|
51037
|
-
formatFun: (O = pe == null ? void 0 : pe.formatFun) !== null && O !== void 0 ? O : (W = (j = this.indicators) === null || j === void 0 ? void 0 : j.find((Di) => typeof Di != "string" && Di.indicatorKey ===
|
|
51038
|
-
})),
|
|
51035
|
+
key: Wt[Xt],
|
|
51036
|
+
dimension: (D = pe == null ? void 0 : pe.field) !== null && D !== void 0 ? D : Wt[Xt],
|
|
51037
|
+
formatFun: (O = pe == null ? void 0 : pe.formatFun) !== null && O !== void 0 ? O : (W = (j = this.indicators) === null || j === void 0 ? void 0 : j.find((Di) => typeof Di != "string" && Di.indicatorKey === Wt[Xt])) === null || W === void 0 ? void 0 : W.format
|
|
51038
|
+
})), Wt[Xt] in t && ((K = ($ = this.totalRecordsTree[Qt]) === null || $ === void 0 ? void 0 : $[Ut]) === null || K === void 0 || K[Xt].push(t));
|
|
51039
51039
|
}
|
|
51040
51040
|
return;
|
|
51041
51041
|
}
|
|
51042
51042
|
kt.length !== 0 && (this.rowFlatKeys[Qt] || (this.rowKeys.push(kt), this.rowFlatKeys[Qt] = 1)), xe.length !== 0 && (this.colFlatKeys[Ut] || (this.colKeys.push(xe), this.colFlatKeys[Ut] = 1)), this.tree[Qt] || (this.tree[Qt] = {}), !((Y = this.tree[Qt]) === null || Y === void 0) && Y[Ut] || (this.tree[Qt][Ut] = []);
|
|
51043
51043
|
const ut = this.indicatorKeysIncludeCalculatedFieldDependIndicatorKeys;
|
|
51044
|
-
for (let
|
|
51045
|
-
if (this.calculatedFiledKeys.indexOf(ut[
|
|
51046
|
-
const Xt = (V = this.calculatedFieldRules) === null || V === void 0 ? void 0 : V.find((pe) => pe.key === ut[
|
|
51047
|
-
!((Z = (G = this.tree[Qt]) === null || G === void 0 ? void 0 : G[Ut]) === null || Z === void 0) && Z[
|
|
51048
|
-
key: ut[
|
|
51049
|
-
dimension: ut[
|
|
51044
|
+
for (let Wt = 0; Wt < ut.length; Wt++)
|
|
51045
|
+
if (this.calculatedFiledKeys.indexOf(ut[Wt]) >= 0) {
|
|
51046
|
+
const Xt = (V = this.calculatedFieldRules) === null || V === void 0 ? void 0 : V.find((pe) => pe.key === ut[Wt]);
|
|
51047
|
+
!((Z = (G = this.tree[Qt]) === null || G === void 0 ? void 0 : G[Ut]) === null || Z === void 0) && Z[Wt] || (this.tree[Qt][Ut][Wt] = new this.aggregators[Gt.RECALCULATE]({
|
|
51048
|
+
key: ut[Wt],
|
|
51049
|
+
dimension: ut[Wt],
|
|
51050
51050
|
isRecord: !0,
|
|
51051
|
-
formatFun: (pt = (st = this.indicators) === null || st === void 0 ? void 0 : st.find((pe) => typeof pe != "string" && pe.indicatorKey === ut[
|
|
51051
|
+
formatFun: (pt = (st = this.indicators) === null || st === void 0 ? void 0 : st.find((pe) => typeof pe != "string" && pe.indicatorKey === ut[Wt])) === null || pt === void 0 ? void 0 : pt.format,
|
|
51052
51052
|
calculateFun: Xt == null ? void 0 : Xt.calculateFun,
|
|
51053
51053
|
dependAggregators: this.tree[Qt][Ut],
|
|
51054
51054
|
dependIndicatorKeys: Xt == null ? void 0 : Xt.dependIndicatorKeys
|
|
51055
|
-
})), (Q = (St = this.tree[Qt]) === null || St === void 0 ? void 0 : St[Ut]) === null || Q === void 0 || Q[
|
|
51055
|
+
})), (Q = (St = this.tree[Qt]) === null || St === void 0 ? void 0 : St[Ut]) === null || Q === void 0 || Q[Wt].push(t);
|
|
51056
51056
|
} else {
|
|
51057
|
-
const Xt = this.getAggregatorRule(ut[
|
|
51057
|
+
const Xt = this.getAggregatorRule(ut[Wt]);
|
|
51058
51058
|
let pe = !1;
|
|
51059
|
-
Jt ? e === Jt ? ut[
|
|
51060
|
-
key: ut[
|
|
51061
|
-
dimension: (lt = Xt == null ? void 0 : Xt.field) !== null && lt !== void 0 ? lt : ut[
|
|
51062
|
-
formatFun: (ot = Xt == null ? void 0 : Xt.formatFun) !== null && ot !== void 0 ? ot : (dt = (ft = this.indicators) === null || ft === void 0 ? void 0 : ft.find((Di) => typeof Di != "string" && Di.indicatorKey === ut[
|
|
51063
|
-
})), pe && ((gt = (At = this.tree[Qt]) === null || At === void 0 ? void 0 : At[Ut]) === null || gt === void 0 || gt[
|
|
51059
|
+
Jt ? e === Jt ? ut[Wt] === Jt && (pe = !0) : ut[Wt] === Jt && ut[Wt] in t && (pe = !0) : Xt != null && Xt.field ? typeof (Xt == null ? void 0 : Xt.field) == "string" ? (Xt == null ? void 0 : Xt.field) in t && (pe = !0) : Xt != null && Xt.field.find((Di) => Di in t) && (pe = !0) : ut[Wt] in t && (pe = !0), !(!((_t = (it = this.tree[Qt]) === null || it === void 0 ? void 0 : it[Ut]) === null || _t === void 0) && _t[Wt]) && pe && (this.tree[Qt][Ut][Wt] = new this.aggregators[(wt = Xt == null ? void 0 : Xt.aggregationType) !== null && wt !== void 0 ? wt : Gt.SUM]({
|
|
51060
|
+
key: ut[Wt],
|
|
51061
|
+
dimension: (lt = Xt == null ? void 0 : Xt.field) !== null && lt !== void 0 ? lt : ut[Wt],
|
|
51062
|
+
formatFun: (ot = Xt == null ? void 0 : Xt.formatFun) !== null && ot !== void 0 ? ot : (dt = (ft = this.indicators) === null || ft === void 0 ? void 0 : ft.find((Di) => typeof Di != "string" && Di.indicatorKey === ut[Wt])) === null || dt === void 0 ? void 0 : dt.format
|
|
51063
|
+
})), pe && ((gt = (At = this.tree[Qt]) === null || At === void 0 ? void 0 : At[Ut]) === null || gt === void 0 || gt[Wt].push(t));
|
|
51064
51064
|
}
|
|
51065
51065
|
if (this.mappingRules)
|
|
51066
|
-
for (let
|
|
51067
|
-
if (!this.indicatorStatistics[
|
|
51068
|
-
const Xt = this.getAggregatorRule(this.indicatorKeys[
|
|
51069
|
-
this.indicatorStatistics[
|
|
51066
|
+
for (let Wt = 0; Wt < this.indicatorKeys.length; Wt++) {
|
|
51067
|
+
if (!this.indicatorStatistics[Wt]) {
|
|
51068
|
+
const Xt = this.getAggregatorRule(this.indicatorKeys[Wt]);
|
|
51069
|
+
this.indicatorStatistics[Wt] = {
|
|
51070
51070
|
max: new this.aggregators[Gt.MAX]({
|
|
51071
|
-
key: this.indicatorKeys[
|
|
51072
|
-
dimension: this.indicatorKeys[
|
|
51071
|
+
key: this.indicatorKeys[Wt],
|
|
51072
|
+
dimension: this.indicatorKeys[Wt]
|
|
51073
51073
|
}),
|
|
51074
51074
|
min: new this.aggregators[Gt.MIN]({
|
|
51075
|
-
key: this.indicatorKeys[
|
|
51076
|
-
dimension: this.indicatorKeys[
|
|
51075
|
+
key: this.indicatorKeys[Wt],
|
|
51076
|
+
dimension: this.indicatorKeys[Wt]
|
|
51077
51077
|
}),
|
|
51078
|
-
total: new this.aggregators[(
|
|
51079
|
-
key: this.indicatorKeys[
|
|
51080
|
-
dimension: (Zt = Xt == null ? void 0 : Xt.field) !== null && Zt !== void 0 ? Zt : this.indicatorKeys[
|
|
51081
|
-
formatFun: (xt = Xt == null ? void 0 : Xt.formatFun) !== null && xt !== void 0 ? xt : (
|
|
51078
|
+
total: new this.aggregators[(Nt = Xt == null ? void 0 : Xt.aggregationType) !== null && Nt !== void 0 ? Nt : Gt.SUM]({
|
|
51079
|
+
key: this.indicatorKeys[Wt],
|
|
51080
|
+
dimension: (Zt = Xt == null ? void 0 : Xt.field) !== null && Zt !== void 0 ? Zt : this.indicatorKeys[Wt],
|
|
51081
|
+
formatFun: (xt = Xt == null ? void 0 : Xt.formatFun) !== null && xt !== void 0 ? xt : (zt = (Ft = this.indicators) === null || Ft === void 0 ? void 0 : Ft.find((pe) => typeof pe != "string" && pe.indicatorKey === this.indicatorKeys[Wt])) === null || zt === void 0 ? void 0 : zt.format
|
|
51082
51082
|
})
|
|
51083
51083
|
};
|
|
51084
51084
|
}
|
|
51085
|
-
this.indicatorStatistics[
|
|
51085
|
+
this.indicatorStatistics[Wt].max.push((ce = (ue = this.tree[Qt]) === null || ue === void 0 ? void 0 : ue[Ut]) === null || ce === void 0 ? void 0 : ce[Wt].value()), this.indicatorStatistics[Wt].min.push((Je = (He = this.tree[Qt]) === null || He === void 0 ? void 0 : He[Ut]) === null || Je === void 0 ? void 0 : Je[Wt].value()), this.indicatorStatistics[Wt].total.push(t);
|
|
51086
51086
|
}
|
|
51087
51087
|
}
|
|
51088
51088
|
}
|
|
@@ -51220,7 +51220,7 @@ class Zh {
|
|
|
51220
51220
|
totalStatistics() {
|
|
51221
51221
|
var t, e, n, o, r, s, l, a, h, d, u, c, g, f;
|
|
51222
51222
|
const p = this, v = (m, b) => {
|
|
51223
|
-
var y, _, C, w, A, x, S, R, T, M, B, F, P, H, E, k, L, D, O, j, W, $, K, Y, V, G, Z, st, pt, St, Q, it, _t, wt, lt, ot, ft, dt, At, gt,
|
|
51223
|
+
var y, _, C, w, A, x, S, R, T, M, B, F, P, H, E, k, L, D, O, j, W, $, K, Y, V, G, Z, st, pt, St, Q, it, _t, wt, lt, ot, ft, dt, At, gt, Nt, Zt, xt, Ft, zt, ue, ce, He, Je, Oe;
|
|
51224
51224
|
if (!((_ = (y = this.totalRecordsTree) === null || y === void 0 ? void 0 : y[m]) === null || _ === void 0) && _[b])
|
|
51225
51225
|
return this.tree[m] || (this.tree[m] = {}), void (this.tree[m][b] = (w = (C = this.totalRecordsTree) === null || C === void 0 ? void 0 : C[m]) === null || w === void 0 ? void 0 : w[b]);
|
|
51226
51226
|
const Ve = b.split(this.stringJoinChar);
|
|
@@ -51237,12 +51237,12 @@ class Zh {
|
|
|
51237
51237
|
const Qt = this.indicatorKeysIncludeCalculatedFieldDependIndicatorKeys;
|
|
51238
51238
|
for (let Ut = 0; Ut < Qt.length; Ut++)
|
|
51239
51239
|
if (this.calculatedFiledKeys.indexOf(Qt[Ut]) >= 0) {
|
|
51240
|
-
const ut = (L = this.calculatedFieldRules) === null || L === void 0 ? void 0 : L.find((
|
|
51240
|
+
const ut = (L = this.calculatedFieldRules) === null || L === void 0 ? void 0 : L.find((Wt) => Wt.key === Qt[Ut]);
|
|
51241
51241
|
!((O = (D = this.tree[m]) === null || D === void 0 ? void 0 : D[xe]) === null || O === void 0) && O[Ut] || (this.tree[m][xe][Ut] = new this.aggregators[Gt.RECALCULATE]({
|
|
51242
51242
|
key: Qt[Ut],
|
|
51243
51243
|
dimension: Qt[Ut],
|
|
51244
51244
|
isRecord: !0,
|
|
51245
|
-
formatFun: (W = (j = this.indicators) === null || j === void 0 ? void 0 : j.find((
|
|
51245
|
+
formatFun: (W = (j = this.indicators) === null || j === void 0 ? void 0 : j.find((Wt) => typeof Wt != "string" && Wt.indicatorKey === Qt[Ut])) === null || W === void 0 ? void 0 : W.format,
|
|
51246
51246
|
calculateFun: ut == null ? void 0 : ut.calculateFun,
|
|
51247
51247
|
dependAggregators: this.tree[m][xe],
|
|
51248
51248
|
dependIndicatorKeys: ut == null ? void 0 : ut.dependIndicatorKeys
|
|
@@ -51253,7 +51253,7 @@ class Zh {
|
|
|
51253
51253
|
this.tree[m][xe][Ut] = new this.aggregators[(Y = ut == null ? void 0 : ut.aggregationType) !== null && Y !== void 0 ? Y : Gt.SUM]({
|
|
51254
51254
|
key: Qt[Ut],
|
|
51255
51255
|
dimension: (V = ut == null ? void 0 : ut.field) !== null && V !== void 0 ? V : Qt[Ut],
|
|
51256
|
-
formatFun: (G = ut == null ? void 0 : ut.formatFun) !== null && G !== void 0 ? G : (st = (Z = this.indicators) === null || Z === void 0 ? void 0 : Z.find((
|
|
51256
|
+
formatFun: (G = ut == null ? void 0 : ut.formatFun) !== null && G !== void 0 ? G : (st = (Z = this.indicators) === null || Z === void 0 ? void 0 : Z.find((Wt) => typeof Wt != "string" && Wt.indicatorKey === Qt[Ut])) === null || st === void 0 ? void 0 : st.format
|
|
51257
51257
|
});
|
|
51258
51258
|
}
|
|
51259
51259
|
xe !== b && this.tree[m][xe][Ut].push((St = (pt = p.tree[m]) === null || pt === void 0 ? void 0 : pt[b]) === null || St === void 0 ? void 0 : St[Ut]);
|
|
@@ -51273,7 +51273,7 @@ class Zh {
|
|
|
51273
51273
|
key: bt[kt],
|
|
51274
51274
|
dimension: bt[kt],
|
|
51275
51275
|
isRecord: !0,
|
|
51276
|
-
formatFun: (
|
|
51276
|
+
formatFun: (Nt = (gt = this.indicators) === null || gt === void 0 ? void 0 : gt.find((ne) => typeof ne != "string" && ne.indicatorKey === bt[kt])) === null || Nt === void 0 ? void 0 : Nt.format,
|
|
51277
51277
|
calculateFun: Jt == null ? void 0 : Jt.calculateFun,
|
|
51278
51278
|
dependAggregators: this.tree[m][Pt],
|
|
51279
51279
|
dependIndicatorKeys: Jt == null ? void 0 : Jt.dependIndicatorKeys
|
|
@@ -51283,7 +51283,7 @@ class Zh {
|
|
|
51283
51283
|
const Jt = this.getAggregatorRule(bt[kt]);
|
|
51284
51284
|
this.tree[m][Pt][kt] = new this.aggregators[(Ft = Jt == null ? void 0 : Jt.aggregationType) !== null && Ft !== void 0 ? Ft : Gt.SUM]({
|
|
51285
51285
|
key: bt[kt],
|
|
51286
|
-
dimension: (
|
|
51286
|
+
dimension: (zt = Jt == null ? void 0 : Jt.field) !== null && zt !== void 0 ? zt : bt[kt],
|
|
51287
51287
|
formatFun: (ue = Jt == null ? void 0 : Jt.formatFun) !== null && ue !== void 0 ? ue : (He = (ce = this.indicators) === null || ce === void 0 ? void 0 : ce.find((ne) => typeof ne != "string" && ne.indicatorKey === bt[kt])) === null || He === void 0 ? void 0 : He.format
|
|
51288
51288
|
});
|
|
51289
51289
|
}
|
|
@@ -51309,22 +51309,22 @@ class Zh {
|
|
|
51309
51309
|
for (let gt = 0; gt < At.length; gt++) {
|
|
51310
51310
|
if (!this.tree[dt][_][gt])
|
|
51311
51311
|
if (this.calculatedFiledKeys.indexOf(At[gt]) >= 0) {
|
|
51312
|
-
const
|
|
51312
|
+
const Nt = (B = this.calculatedFieldRules) === null || B === void 0 ? void 0 : B.find((Zt) => Zt.key === At[gt]);
|
|
51313
51313
|
this.tree[dt][_][gt] = new this.aggregators[Gt.RECALCULATE]({
|
|
51314
51314
|
key: At[gt],
|
|
51315
51315
|
dimension: At[gt],
|
|
51316
51316
|
isRecord: !0,
|
|
51317
51317
|
formatFun: (P = (F = this.indicators) === null || F === void 0 ? void 0 : F.find((Zt) => typeof Zt != "string" && Zt.indicatorKey === At[gt])) === null || P === void 0 ? void 0 : P.format,
|
|
51318
|
-
calculateFun:
|
|
51318
|
+
calculateFun: Nt == null ? void 0 : Nt.calculateFun,
|
|
51319
51319
|
dependAggregators: this.tree[dt][_],
|
|
51320
|
-
dependIndicatorKeys:
|
|
51320
|
+
dependIndicatorKeys: Nt == null ? void 0 : Nt.dependIndicatorKeys
|
|
51321
51321
|
});
|
|
51322
51322
|
} else {
|
|
51323
|
-
const
|
|
51324
|
-
this.tree[dt][_][gt] = new this.aggregators[(H =
|
|
51323
|
+
const Nt = this.getAggregatorRule(At[gt]);
|
|
51324
|
+
this.tree[dt][_][gt] = new this.aggregators[(H = Nt == null ? void 0 : Nt.aggregationType) !== null && H !== void 0 ? H : Gt.SUM]({
|
|
51325
51325
|
key: At[gt],
|
|
51326
|
-
dimension: (E =
|
|
51327
|
-
formatFun: (k =
|
|
51326
|
+
dimension: (E = Nt == null ? void 0 : Nt.field) !== null && E !== void 0 ? E : At[gt],
|
|
51327
|
+
formatFun: (k = Nt == null ? void 0 : Nt.formatFun) !== null && k !== void 0 ? k : (D = (L = this.indicators) === null || L === void 0 ? void 0 : L.find((Zt) => typeof Zt != "string" && Zt.indicatorKey === At[gt])) === null || D === void 0 ? void 0 : D.format
|
|
51328
51328
|
});
|
|
51329
51329
|
}
|
|
51330
51330
|
dt !== b && this.tree[dt][_][gt].push((j = (O = p.tree[b]) === null || O === void 0 ? void 0 : O[_]) === null || j === void 0 ? void 0 : j[gt]);
|
|
@@ -53650,16 +53650,16 @@ const o$ = Ze({
|
|
|
53650
53650
|
const Q = {}, { search: it } = (window == null ? void 0 : window.location) || {}, wt = it.slice(1, it.length).split("&");
|
|
53651
53651
|
for (const gt of wt)
|
|
53652
53652
|
if (gt) {
|
|
53653
|
-
const
|
|
53654
|
-
if (
|
|
53655
|
-
if (
|
|
53653
|
+
const Nt = gt.split("=");
|
|
53654
|
+
if (Nt[0])
|
|
53655
|
+
if (Nt[0] === "userInfo")
|
|
53656
53656
|
try {
|
|
53657
|
-
Q
|
|
53657
|
+
Q.token = (At = (dt = JSON.parse(decodeURIComponent(Nt[1]))) == null ? void 0 : dt.baseInfo) == null ? void 0 : At.hrpToken;
|
|
53658
53658
|
} catch (Zt) {
|
|
53659
53659
|
console.log(Zt);
|
|
53660
53660
|
}
|
|
53661
53661
|
else
|
|
53662
|
-
Q[
|
|
53662
|
+
Q[Nt[0]] = Nt[1];
|
|
53663
53663
|
}
|
|
53664
53664
|
const lt = await us.post(
|
|
53665
53665
|
`${I(w)}/diagram/groupvalue`,
|
|
@@ -54027,7 +54027,7 @@ function v$(i, t, e, n, o, r) {
|
|
|
54027
54027
|
_: 1
|
|
54028
54028
|
}, 8, ["wrapClassName", "visible", "title", "bodyStyle", "getContainer", "onOk"]);
|
|
54029
54029
|
}
|
|
54030
|
-
const TB = /* @__PURE__ */ qi(o$, [["render", v$], ["__scopeId", "data-v-
|
|
54030
|
+
const TB = /* @__PURE__ */ qi(o$, [["render", v$], ["__scopeId", "data-v-8f8e78da"]]);
|
|
54031
54031
|
const m$ = Ze({
|
|
54032
54032
|
name: "PivotProperty",
|
|
54033
54033
|
props: {},
|
|
@@ -56506,7 +56506,7 @@ function BK(i) {
|
|
|
56506
56506
|
w[_] = wt, M[_] = wt - E;
|
|
56507
56507
|
}
|
|
56508
56508
|
if (l) {
|
|
56509
|
-
var lt, ot = _ === "x" ? xn : An, ft = _ === "x" ? uo : co, dt = w[C], At = C === "y" ? "height" : "width", gt = dt + v[ot],
|
|
56509
|
+
var lt, ot = _ === "x" ? xn : An, ft = _ === "x" ? uo : co, dt = w[C], At = C === "y" ? "height" : "width", gt = dt + v[ot], Nt = dt - v[ft], Zt = [xn, An].indexOf(m) !== -1, xt = (lt = T == null ? void 0 : T[C]) != null ? lt : 0, Ft = Zt ? gt : dt - A[At] - x[At] - xt + R.altAxis, zt = Zt ? dt + A[At] + x[At] - xt - R.altAxis : Nt, ue = g && Zt ? QU(Ft, dt, zt) : Ch(g ? Ft : gt, dt, g ? zt : Nt);
|
|
56510
56510
|
w[C] = ue, M[C] = ue - dt;
|
|
56511
56511
|
}
|
|
56512
56512
|
t.modifiersData[n] = M;
|
|
@@ -59800,7 +59800,7 @@ const RX = Ze({
|
|
|
59800
59800
|
IndSourceList: vX,
|
|
59801
59801
|
DragArea: CX,
|
|
59802
59802
|
PivotDetail: jY,
|
|
59803
|
-
DrillModal: AX(() => import("./DrillModal-
|
|
59803
|
+
DrillModal: AX(() => import("./DrillModal-a1b55427.mjs")),
|
|
59804
59804
|
SettingOutlined: uU,
|
|
59805
59805
|
DatabaseOutlined: PG,
|
|
59806
59806
|
ArrowsAltOutlined: fG,
|
|
@@ -59822,7 +59822,7 @@ const RX = Ze({
|
|
|
59822
59822
|
vn("splitSymbol", ot), vn("indicatorUrl", i.indicatorUrl), vn("indicatorToken", i.indicatorToken), vn("theme", i.theme), vn("pageId", i.pageId), vn("context", i.context), vn("graphicConfig", i.graphicConfig), vn("theDateInfo", Z), vn("scaleValue", i.scaleValue), vn("getContainer", () => document.querySelector(i.modalContainer) || document.body);
|
|
59823
59823
|
const dt = J({}), At = () => {
|
|
59824
59824
|
const N = {
|
|
59825
|
-
borderColor: I(
|
|
59825
|
+
borderColor: I(zt).borderColor
|
|
59826
59826
|
};
|
|
59827
59827
|
dt.value = N;
|
|
59828
59828
|
}, gt = re(() => {
|
|
@@ -59869,19 +59869,19 @@ const RX = Ze({
|
|
|
59869
59869
|
// 下拉菜单-菜单项高亮颜色
|
|
59870
59870
|
dropDownMenuHightLightColor: "#2E68CF"
|
|
59871
59871
|
};
|
|
59872
|
-
}),
|
|
59872
|
+
}), Nt = J(1), Zt = J();
|
|
59873
59873
|
new ResizeObserver((N) => {
|
|
59874
59874
|
for (const U of N) {
|
|
59875
59875
|
const { width: q } = U.contentRect;
|
|
59876
|
-
Zt.value = q,
|
|
59876
|
+
Zt.value = q, Nt.value++, zi(() => {
|
|
59877
59877
|
oC();
|
|
59878
59878
|
});
|
|
59879
59879
|
}
|
|
59880
59880
|
}).observe(document.body);
|
|
59881
59881
|
const Ft = re(() => {
|
|
59882
59882
|
const { width: N } = i;
|
|
59883
|
-
return N.includes("%") &&
|
|
59884
|
-
}),
|
|
59883
|
+
return N.includes("%") && Nt.value ? i.isIframeMode ? Zt.value : document.querySelector(`#pivotWrap_${i.id}`).clientWidth : parseFloat(N);
|
|
59884
|
+
}), zt = re(() => {
|
|
59885
59885
|
var nt;
|
|
59886
59886
|
const N = {}, { styleConfig: U } = i;
|
|
59887
59887
|
let q = {};
|
|
@@ -59891,7 +59891,7 @@ const RX = Ze({
|
|
|
59891
59891
|
return N;
|
|
59892
59892
|
}), ue = J({}), ce = () => {
|
|
59893
59893
|
const N = sl();
|
|
59894
|
-
N && (I(ue).width = N.width + 2 + "px"), I(ue).backgroundColor = KC(I(
|
|
59894
|
+
N && (I(ue).width = N.width + 2 + "px"), I(ue).backgroundColor = KC(I(zt).headerBgColor, 2);
|
|
59895
59895
|
};
|
|
59896
59896
|
je(() => i.theme, () => {
|
|
59897
59897
|
n && (n == null || n.updateOption(ut));
|
|
@@ -59908,8 +59908,8 @@ const RX = Ze({
|
|
|
59908
59908
|
top: -(et - parseFloat(i.height)) / 2 + "px",
|
|
59909
59909
|
paddingLeft: I(V) + "px"
|
|
59910
59910
|
}, st.value = i.defaultFontSize * N, ut.defaultRowHeight = pt * U, ut.theme.scrollStyle.width = St * N, ut.theme.scrollStyle.scrollSliderCornerRadius = Q * N, ut.theme.tooltipStyle.fontSize = st.value, VY(i$, {
|
|
59911
|
-
sortNotActiveColor: I(
|
|
59912
|
-
sortActiveColor: I(
|
|
59911
|
+
sortNotActiveColor: I(zt).sortNotActiveColor,
|
|
59912
|
+
sortActiveColor: I(zt).sortActiveColor,
|
|
59913
59913
|
iconSize: it * N,
|
|
59914
59914
|
hoverSize: _t * N,
|
|
59915
59915
|
downSize: wt * N
|
|
@@ -59948,7 +59948,7 @@ const RX = Ze({
|
|
|
59948
59948
|
);
|
|
59949
59949
|
K2(() => {
|
|
59950
59950
|
var nt, X, et, tt, Ct, Ot, ae, $t, jt, be;
|
|
59951
|
-
const { dropDownMenuBgColor: N, dropDownMenuColor: U, dropDownMenuHightLightColor: q } =
|
|
59951
|
+
const { dropDownMenuBgColor: N, dropDownMenuColor: U, dropDownMenuHightLightColor: q } = zt.value;
|
|
59952
59952
|
N && ((X = (nt = I(y)) == null ? void 0 : nt.style) == null || X.setProperty("--menu-bg-color", N)), U && ((tt = (et = I(y)) == null ? void 0 : et.style) == null || tt.setProperty("--menu-color", U)), q && ((Ot = (Ct = I(y)) == null ? void 0 : Ct.style) == null || Ot.setProperty("--menu-hight-light-color", q)), F.value && (($t = (ae = I(y)) == null ? void 0 : ae.style) == null || $t.setProperty("--sub-menu-left", F.value)), P.value && ((be = (jt = I(y)) == null ? void 0 : jt.style) == null || be.setProperty("--sub-menu-top", P.value));
|
|
59953
59953
|
});
|
|
59954
59954
|
const ne = J([]), xe = J({}), Qt = J({}), Ut = $u({
|
|
@@ -59956,12 +59956,12 @@ const RX = Ze({
|
|
|
59956
59956
|
underlayBackgroundColor: "transparent",
|
|
59957
59957
|
headerStyle: {
|
|
59958
59958
|
bgColor(N) {
|
|
59959
|
-
return I(ne).includes(N.dataValue) ? I(
|
|
59959
|
+
return I(ne).includes(N.dataValue) ? I(zt).indicatorsHeaderBgColor : I(zt).headerBgColor;
|
|
59960
59960
|
},
|
|
59961
59961
|
color(N) {
|
|
59962
|
-
return I(ne).includes(N.dataValue) ? I(
|
|
59962
|
+
return I(ne).includes(N.dataValue) ? I(zt).indicatorsHeaderColor : I(zt).headerColor;
|
|
59963
59963
|
},
|
|
59964
|
-
borderColor: I(
|
|
59964
|
+
borderColor: I(zt).borderColor,
|
|
59965
59965
|
fontWeight: "600",
|
|
59966
59966
|
fontFamily() {
|
|
59967
59967
|
if (i.isIframeMode)
|
|
@@ -59973,10 +59973,10 @@ const RX = Ze({
|
|
|
59973
59973
|
},
|
|
59974
59974
|
cornerHeaderStyle: {
|
|
59975
59975
|
bgColor() {
|
|
59976
|
-
return I(
|
|
59976
|
+
return I(zt).headerBgColor;
|
|
59977
59977
|
},
|
|
59978
|
-
color: I(
|
|
59979
|
-
borderColor: I(
|
|
59978
|
+
color: I(zt).headerColor,
|
|
59979
|
+
borderColor: I(zt).borderColor,
|
|
59980
59980
|
fontWeight: "600",
|
|
59981
59981
|
fontFamily() {
|
|
59982
59982
|
if (i.isIframeMode)
|
|
@@ -59987,16 +59987,16 @@ const RX = Ze({
|
|
|
59987
59987
|
}
|
|
59988
59988
|
},
|
|
59989
59989
|
bodyStyle: {
|
|
59990
|
-
borderColor: I(
|
|
59990
|
+
borderColor: I(zt).borderColor,
|
|
59991
59991
|
color(N) {
|
|
59992
59992
|
var nt, X;
|
|
59993
59993
|
const U = N.cellHeaderPaths.rowHeaderPaths, q = N.cellHeaderPaths.colHeaderPaths;
|
|
59994
|
-
return ms.includes((nt = U == null ? void 0 : U[U.length - 1]) == null ? void 0 : nt.value) ? I(
|
|
59994
|
+
return ms.includes((nt = U == null ? void 0 : U[U.length - 1]) == null ? void 0 : nt.value) ? I(zt).aggregateColor : I(ne).includes((X = q == null ? void 0 : q[q.length - 1]) == null ? void 0 : X.value) ? I(zt).indicatorsBodyColor : I(zt).bodyColor;
|
|
59995
59995
|
},
|
|
59996
59996
|
bgColor(N) {
|
|
59997
59997
|
var nt, X;
|
|
59998
59998
|
const U = N.cellHeaderPaths.rowHeaderPaths, q = N.cellHeaderPaths.colHeaderPaths;
|
|
59999
|
-
return ms.includes((nt = U == null ? void 0 : U[U.length - 1]) == null ? void 0 : nt.value) ? I(
|
|
59999
|
+
return ms.includes((nt = U == null ? void 0 : U[U.length - 1]) == null ? void 0 : nt.value) ? I(zt).aggregateBgColor : I(ne).includes((X = q == null ? void 0 : q[q.length - 1]) == null ? void 0 : X.value) ? I(zt).indicatorsBodyBgColor : I(zt).bodyBgColor;
|
|
60000
60000
|
},
|
|
60001
60001
|
fontFamily() {
|
|
60002
60002
|
if (i.isIframeMode)
|
|
@@ -60007,12 +60007,12 @@ const RX = Ze({
|
|
|
60007
60007
|
}
|
|
60008
60008
|
},
|
|
60009
60009
|
rowHeaderStyle: {
|
|
60010
|
-
borderColor: I(
|
|
60010
|
+
borderColor: I(zt).borderColor,
|
|
60011
60011
|
bgColor(N) {
|
|
60012
|
-
return ms.includes(N.dataValue) ? I(
|
|
60012
|
+
return ms.includes(N.dataValue) ? I(zt).aggregateBgColor : I(zt).bodyBgColor;
|
|
60013
60013
|
},
|
|
60014
60014
|
color(N) {
|
|
60015
|
-
return ms.includes(N.dataValue) ? I(
|
|
60015
|
+
return ms.includes(N.dataValue) ? I(zt).aggregateColor : I(zt).bodyColor;
|
|
60016
60016
|
},
|
|
60017
60017
|
fontFamily() {
|
|
60018
60018
|
if (i.isIframeMode)
|
|
@@ -60024,7 +60024,7 @@ const RX = Ze({
|
|
|
60024
60024
|
},
|
|
60025
60025
|
frameStyle: {
|
|
60026
60026
|
borderLineWidth: 1,
|
|
60027
|
-
borderColor: I(
|
|
60027
|
+
borderColor: I(zt).borderColor
|
|
60028
60028
|
},
|
|
60029
60029
|
scrollStyle: {
|
|
60030
60030
|
width: St,
|
|
@@ -60062,7 +60062,7 @@ const RX = Ze({
|
|
|
60062
60062
|
dropDownMenuHighlight: []
|
|
60063
60063
|
},
|
|
60064
60064
|
theme: Ut
|
|
60065
|
-
}),
|
|
60065
|
+
}), Wt = re(() => {
|
|
60066
60066
|
let N = 0;
|
|
60067
60067
|
return I(L) && i.fullMode && (N = I(H)), N;
|
|
60068
60068
|
}), Xt = re(() => {
|
|
@@ -60076,7 +60076,7 @@ const RX = Ze({
|
|
|
60076
60076
|
var X, et;
|
|
60077
60077
|
const q = sl();
|
|
60078
60078
|
let nt = 0;
|
|
60079
|
-
(X = I(Jt)) != null && X.length && (nt = (et = I($)) == null ? void 0 : et.clientHeight), q && (U.width = q.width + "px", U.height = q.height + "px", U.top = q.top + nt + I(Xt) + "px", U.left = q.left + I(
|
|
60079
|
+
(X = I(Jt)) != null && X.length && (nt = (et = I($)) == null ? void 0 : et.clientHeight), q && (U.width = q.width + "px", U.height = q.height + "px", U.top = q.top + nt + I(Xt) + "px", U.left = q.left + I(Wt) + I(Xt) + I(V) + "px"), Di.value = U;
|
|
60080
60080
|
});
|
|
60081
60081
|
}
|
|
60082
60082
|
});
|
|
@@ -61236,7 +61236,7 @@ const RX = Ze({
|
|
|
61236
61236
|
width: ci,
|
|
61237
61237
|
height: ui,
|
|
61238
61238
|
top: jt + I(Xt) + "px",
|
|
61239
|
-
left: be + I(
|
|
61239
|
+
left: be + I(Wt) + I(Xt) + I(V) + "px"
|
|
61240
61240
|
}, E.value.rows = {
|
|
61241
61241
|
width: parseFloat(ci) / 2 - pe * 2 + "px",
|
|
61242
61242
|
height: parseFloat(ui) - pe * 2 + "px",
|
|
@@ -61310,7 +61310,7 @@ const RX = Ze({
|
|
|
61310
61310
|
width: ii + "px",
|
|
61311
61311
|
height: Qe + ui + "px",
|
|
61312
61312
|
top: jt + I(Xt) + "px",
|
|
61313
|
-
left: be + I(
|
|
61313
|
+
left: be + I(Wt) + I(Xt) + I(V) + "px"
|
|
61314
61314
|
}, E.value.rows = {
|
|
61315
61315
|
width: ci - pe * 2 + "px",
|
|
61316
61316
|
height: Qe - pe * 2 + "px",
|
|
@@ -61492,7 +61492,7 @@ const RX = Ze({
|
|
|
61492
61492
|
}), {
|
|
61493
61493
|
showDefaultTableArea: Je,
|
|
61494
61494
|
maskList: xd,
|
|
61495
|
-
styleData:
|
|
61495
|
+
styleData: zt,
|
|
61496
61496
|
subMenuLeft: F,
|
|
61497
61497
|
subMenuTop: P,
|
|
61498
61498
|
pivotWrapRef: w,
|
|
@@ -61513,7 +61513,7 @@ const RX = Ze({
|
|
|
61513
61513
|
indSourceRef: gC,
|
|
61514
61514
|
searchText: cC,
|
|
61515
61515
|
dragAreaStyle: E,
|
|
61516
|
-
offsetWidth:
|
|
61516
|
+
offsetWidth: Wt,
|
|
61517
61517
|
showTreeData: L,
|
|
61518
61518
|
dataIconStyle: Ve,
|
|
61519
61519
|
largeVisible: D,
|
|
@@ -61821,4 +61821,4 @@ export {
|
|
|
61821
61821
|
dq as i,
|
|
61822
61822
|
ih as n
|
|
61823
61823
|
};
|
|
61824
|
-
//# sourceMappingURL=index-
|
|
61824
|
+
//# sourceMappingURL=index-0859ac36.mjs.map
|