@ecan-bi/pivot-table 1.0.71 → 1.0.73
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-36f4c56e.mjs → DrillModal-e9b34ae7.mjs} +3 -3
- package/dist/{DrillModal-36f4c56e.mjs.map → DrillModal-e9b34ae7.mjs.map} +1 -1
- package/dist/{index-d073710e.mjs → index-c36e79f0.mjs} +435 -435
- package/dist/{index-d073710e.mjs.map → index-c36e79f0.mjs.map} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/pivot-table@1.0.
|
|
1
|
+
/*! @ecan-bi/pivot-table@1.0.73 */
|
|
2
2
|
import { defineComponent as Ze, ref as Q, inject as pe, watch as Oe, unref as k, computed as oe, resolveComponent as yt, openBlock as mt, createBlock as _e, withCtx as Mt, createVNode as dt, createTextVNode as di, createCommentVNode as ye, createElementBlock as Et, normalizeClass as Sn, Fragment as Ci, createElementVNode as Bt, normalizeStyle as ie, renderList as gn, withDirectives as wh, toDisplayString as qe, vShow as Vu, h as yC, nextTick as Bi, withModifiers as mr, onMounted as ls, onUnmounted as gm, Transition as bA, withKeys as ZB, provide as mn, Teleport as CA, onBeforeUnmount as yA, toRaw as JB, resolveDynamicComponent as QB, mergeProps as tP, reactive as $u, resolveDirective as eP, defineAsyncComponent as iP, watchEffect as nP } from "vue";
|
|
3
3
|
import br from "dayjs";
|
|
4
4
|
import { cloneDeep as ci } from "lodash-es";
|
|
@@ -354,7 +354,7 @@ function CP() {
|
|
|
354
354
|
return E ? Z : Z.endOf(l);
|
|
355
355
|
}, D = function(V, G) {
|
|
356
356
|
return S.w(H.toDate()[V].apply(H.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), H);
|
|
357
|
-
}, O = this.$W, j = this.$M,
|
|
357
|
+
}, O = this.$W, j = this.$M, W = this.$D, $ = "set" + (this.$u ? "UTC" : "");
|
|
358
358
|
switch (I) {
|
|
359
359
|
case u:
|
|
360
360
|
return E ? L(1, 0) : L(31, 11);
|
|
@@ -362,7 +362,7 @@ function CP() {
|
|
|
362
362
|
return E ? L(1, j) : L(0, j + 1);
|
|
363
363
|
case a:
|
|
364
364
|
var K = this.$locale().weekStart || 0, Y = (O < K ? O + 7 : O) - K;
|
|
365
|
-
return L(E ?
|
|
365
|
+
return L(E ? W - Y : W + (6 - Y), j);
|
|
366
366
|
case l:
|
|
367
367
|
case c:
|
|
368
368
|
return D($ + "Hours", 0);
|
|
@@ -393,8 +393,8 @@ function CP() {
|
|
|
393
393
|
var H, E = this;
|
|
394
394
|
F = Number(F);
|
|
395
395
|
var I = S.p(P), L = function(j) {
|
|
396
|
-
var
|
|
397
|
-
return S.w(
|
|
396
|
+
var W = x(E);
|
|
397
|
+
return S.w(W.date(W.date() + Math.round(j * F)), E);
|
|
398
398
|
};
|
|
399
399
|
if (I === h)
|
|
400
400
|
return this.set(h, this.$M + F);
|
|
@@ -412,7 +412,7 @@ function CP() {
|
|
|
412
412
|
var P = this, H = this.$locale();
|
|
413
413
|
if (!this.isValid())
|
|
414
414
|
return H.invalidDate || g;
|
|
415
|
-
var E = F || "YYYY-MM-DDTHH:mm:ssZ", I = S.z(this), L = this.$H, D = this.$m, O = this.$M, j = H.weekdays,
|
|
415
|
+
var E = F || "YYYY-MM-DDTHH:mm:ssZ", I = S.z(this), L = this.$H, D = this.$m, O = this.$M, j = H.weekdays, W = H.months, $ = H.meridiem, K = function(G, Z, it, pt) {
|
|
416
416
|
return G && (G[Z] || G(P, E)) || it[Z].slice(0, pt);
|
|
417
417
|
}, Y = function(G) {
|
|
418
418
|
return S.s(L % 12 || 12, G, "0");
|
|
@@ -432,9 +432,9 @@ function CP() {
|
|
|
432
432
|
case "MM":
|
|
433
433
|
return S.s(O + 1, 2, "0");
|
|
434
434
|
case "MMM":
|
|
435
|
-
return K(H.monthsShort, O,
|
|
435
|
+
return K(H.monthsShort, O, W, 3);
|
|
436
436
|
case "MMMM":
|
|
437
|
-
return K(
|
|
437
|
+
return K(W, O);
|
|
438
438
|
case "D":
|
|
439
439
|
return P.$D;
|
|
440
440
|
case "DD":
|
|
@@ -478,18 +478,18 @@ function CP() {
|
|
|
478
478
|
}, B.utcOffset = function() {
|
|
479
479
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
480
480
|
}, B.diff = function(F, P, H) {
|
|
481
|
-
var E, I = this, L = S.p(P), D = x(F), O = (D.utcOffset() - this.utcOffset()) * t, j = this - D,
|
|
481
|
+
var E, I = this, L = S.p(P), D = x(F), O = (D.utcOffset() - this.utcOffset()) * t, j = this - D, W = function() {
|
|
482
482
|
return S.m(I, D);
|
|
483
483
|
};
|
|
484
484
|
switch (L) {
|
|
485
485
|
case u:
|
|
486
|
-
E =
|
|
486
|
+
E = W() / 12;
|
|
487
487
|
break;
|
|
488
488
|
case h:
|
|
489
|
-
E =
|
|
489
|
+
E = W();
|
|
490
490
|
break;
|
|
491
491
|
case d:
|
|
492
|
-
E =
|
|
492
|
+
E = W() / 3;
|
|
493
493
|
break;
|
|
494
494
|
case a:
|
|
495
495
|
E = (j - O) / 6048e5;
|
|
@@ -1198,15 +1198,15 @@ const Md = (i) => {
|
|
|
1198
1198
|
const { graphicConfig: d, type: u, globalModel: c, isGroupTable: g = !1 } = i;
|
|
1199
1199
|
c && (NA = c);
|
|
1200
1200
|
const f = Li(u, "pivottable");
|
|
1201
|
-
let p, { source: v, dataViewId: m, plugin: b = "1", layer: y, chartType: w, classificationList: C = [], rowHeaderList: _ = [], dimensionList: A = [], seriesList: x = [], leftAxisList: S = [], rightAxisList: R = [], queryColumnList: T = [], indexLibColumns: M = [], indicators: B = [], controlList: F = [], formFields: P = {}, variableList: H = [], variableConditions: E = [], dataSourceId: I = "", idxLibMode: L, preview: D = !1, edvDataSetId: O, compositeIndicator: j } = d || {},
|
|
1202
|
-
if ((d == null ? void 0 : d.pageMode) === "design" ? (
|
|
1201
|
+
let p, { source: v, dataViewId: m, plugin: b = "1", layer: y, chartType: w, classificationList: C = [], rowHeaderList: _ = [], dimensionList: A = [], seriesList: x = [], leftAxisList: S = [], rightAxisList: R = [], queryColumnList: T = [], indexLibColumns: M = [], indicators: B = [], controlList: F = [], formFields: P = {}, variableList: H = [], variableConditions: E = [], dataSourceId: I = "", idxLibMode: L, preview: D = !1, edvDataSetId: O, compositeIndicator: j } = d || {}, W = [];
|
|
1202
|
+
if ((d == null ? void 0 : d.pageMode) === "design" ? (W = ((e = d.sqlConditions) !== null && e !== void 0 ? e : []).map((lt) => {
|
|
1203
1203
|
const rt = {};
|
|
1204
1204
|
if (eo(lt, "globalCondition") || lt.join || (rt.globalCondition = !0), !lt.join) {
|
|
1205
1205
|
const ft = lt.rule || "EQUAL";
|
|
1206
1206
|
rt.rule = ft === "NONE" ? "EQUAL" : ft;
|
|
1207
1207
|
}
|
|
1208
1208
|
return Object.assign(Object.assign({}, lt), rt);
|
|
1209
|
-
}), E != null && E.length && (
|
|
1209
|
+
}), E != null && E.length && (W = W.concat(E))) : (W = cH(d), H != null && H.length && (W = W.concat(function(lt) {
|
|
1210
1210
|
const rt = [];
|
|
1211
1211
|
if (lt != null && lt.length) {
|
|
1212
1212
|
for (const ft of lt)
|
|
@@ -1216,11 +1216,11 @@ const Md = (i) => {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
1218
|
return rt;
|
|
1219
|
-
}(H)))),
|
|
1220
|
-
const lt =
|
|
1221
|
-
(lt == null ? void 0 : lt.length) > 1 && (
|
|
1219
|
+
}(H)))), W == null ? void 0 : W.length) {
|
|
1220
|
+
const lt = W.filter((ft) => ft.globalCondition), rt = W.filter((ft) => !ft.globalCondition);
|
|
1221
|
+
(lt == null ? void 0 : lt.length) > 1 && (W = [{ join: "&&", conditions: lt }, ...rt]);
|
|
1222
1222
|
}
|
|
1223
|
-
|
|
1223
|
+
W != null && W.length && (W = Ms(W, "1")), y == null && (y = Li(u, ["table", "card"]) || Li(u, ["list", "circulate"]) && (C == null ? void 0 : C.length) > 1 ? "1" : Li(u, ["select", "checkbox", "radio"]) ? "3" : Li(u, ["indexPanel"]) ? "4" : "2"), Li(u, ["indexPanel"]) && (b = "3");
|
|
1224
1224
|
const $ = [];
|
|
1225
1225
|
let K, Y = "";
|
|
1226
1226
|
if (Array.isArray(C) && C.length > 0 && (!["ecanList", "ecanCirculate"].includes(u) || (C == null ? void 0 : C.length) === 1)) {
|
|
@@ -1366,11 +1366,11 @@ const Md = (i) => {
|
|
|
1366
1366
|
return;
|
|
1367
1367
|
rt.parentItemCodes = ft.itemCodes;
|
|
1368
1368
|
}
|
|
1369
|
-
u === "ecanDataSelect" && (rt.indicatorList = V.filter((ft) => ft.show)), v === "EDV_DATA_SET" && (rt.edvDataSetId = O), p.sort && (rt.sort = p.sort), St = Object.assign({ url: "/diagram/formData", source: v, dataViewId: m, plugin: "4", layer: y, chartType: "normalSelect", rangeIndexTypeGuid: Y, type: u === "ecanDataSelect" ? "normalSelectData" : "normalSelect", labelField: P.labelField, valueField: P.valueField, sqlConditions:
|
|
1369
|
+
u === "ecanDataSelect" && (rt.indicatorList = V.filter((ft) => ft.show)), v === "EDV_DATA_SET" && (rt.edvDataSetId = O), p.sort && (rt.sort = p.sort), St = Object.assign({ url: "/diagram/formData", source: v, dataViewId: m, plugin: "4", layer: y, chartType: "normalSelect", rangeIndexTypeGuid: Y, type: u === "ecanDataSelect" ? "normalSelectData" : "normalSelect", labelField: P.labelField, valueField: P.valueField, sqlConditions: W, idxLibMode: "WITH_DATE_DIM_TABLE", dataSourceId: I, keyName: i.keyName }, rt);
|
|
1370
1370
|
} else {
|
|
1371
1371
|
let lt = {};
|
|
1372
1372
|
lt = Li(u, ["scatter", "valueline"]) ? { classifications: $ } : { classification: p }, it != null && it.length && (lt.indexLibColumns = it, lt.isIndexSet = !0), Li(u, "table") && d.isIndexSet && (lt.compositeIndicator = j);
|
|
1373
|
-
const rt =
|
|
1373
|
+
const rt = W.map((ft) => {
|
|
1374
1374
|
const { fieldValue: ut } = ft, At = {};
|
|
1375
1375
|
return ut && Array.isArray(ut) && (At.fieldValue = JSON.stringify(ut)), Object.assign(Object.assign({}, ft), At);
|
|
1376
1376
|
});
|
|
@@ -10594,8 +10594,8 @@ let oc = class extends Bn {
|
|
|
10594
10594
|
if (m) {
|
|
10595
10595
|
const j = I;
|
|
10596
10596
|
if (j.gradient === "conical") {
|
|
10597
|
-
const
|
|
10598
|
-
s || Us && (t.setCommonStyle(i, i.attribute, e, n, a), t.fillStyle =
|
|
10597
|
+
const W = FF(0, 0, E, j);
|
|
10598
|
+
s || Us && (t.setCommonStyle(i, i.attribute, e, n, a), t.fillStyle = W, t.fill());
|
|
10599
10599
|
}
|
|
10600
10600
|
}
|
|
10601
10601
|
}, O = () => {
|
|
@@ -11509,16 +11509,16 @@ let O0 = class extends Bn {
|
|
|
11509
11509
|
const I = A * E.length;
|
|
11510
11510
|
let L = 0;
|
|
11511
11511
|
E.forEach((j) => {
|
|
11512
|
-
const
|
|
11513
|
-
L = ts(
|
|
11512
|
+
const W = j.reduce(($, K) => $ + (K.width || 0), 0);
|
|
11513
|
+
L = ts(W, L);
|
|
11514
11514
|
});
|
|
11515
11515
|
let D = 0, O = 0;
|
|
11516
|
-
_ === "bottom" ? O = -I : _ === "middle" && (O = -I / 2), C === "center" ? D -= L / 2 : C === "right" && (D -= L), E.forEach((j,
|
|
11516
|
+
_ === "bottom" ? O = -I : _ === "middle" && (O = -I / 2), C === "center" ? D -= L / 2 : C === "right" && (D -= L), E.forEach((j, W) => {
|
|
11517
11517
|
const $ = j.reduce((V, G) => V + (G.width || 0), 0), K = L - $;
|
|
11518
11518
|
let Y = D;
|
|
11519
11519
|
C === "center" ? Y += K / 2 : C === "right" && (Y += K), j.forEach((V) => {
|
|
11520
11520
|
const { text: G, width: Z, direction: it } = V;
|
|
11521
|
-
P(G, I - (
|
|
11521
|
+
P(G, I - (W + 1) * A + O, Y, it), Y += Z;
|
|
11522
11522
|
});
|
|
11523
11523
|
});
|
|
11524
11524
|
}
|
|
@@ -11537,8 +11537,8 @@ let O0 = class extends Bn {
|
|
|
11537
11537
|
const L = E[0].reduce((O, j) => O + (j.width || 0), 0);
|
|
11538
11538
|
let D = 0;
|
|
11539
11539
|
_ === "bottom" ? D = -A : _ === "middle" && (D = -A / 2), C === "center" ? I -= L / 2 : C === "right" && (I -= L), t.textAlign = "left", t.textBaseline = "top", E[0].forEach((O) => {
|
|
11540
|
-
const { text: j, width:
|
|
11541
|
-
P(j, D, I, $), I +=
|
|
11540
|
+
const { text: j, width: W, direction: $ } = O;
|
|
11541
|
+
P(j, D, I, $), I += W;
|
|
11542
11542
|
});
|
|
11543
11543
|
}
|
|
11544
11544
|
}
|
|
@@ -19010,11 +19010,11 @@ let dd = class Rv extends mo {
|
|
|
19010
19010
|
A += Math.max(I, s.visible ? D : 0);
|
|
19011
19011
|
const { textAlign: O, textBaseline: j } = r;
|
|
19012
19012
|
(z(h) || z(d)) && (z(h) && _ < h && (_ = h), z(d) && _ > d && (_ = d, M.setAttribute("maxLineWidth", d - m[1] - m[2]))), w = 0, C = 0;
|
|
19013
|
-
let
|
|
19014
|
-
O === "left" || O === "start" ?
|
|
19013
|
+
let W = 0;
|
|
19014
|
+
O === "left" || O === "start" ? W = 1 : O === "right" || O === "end" ? W = -1 : O === "center" && (W = 0), W ? W < 0 ? (w -= _, y && y.setAttribute("x", (y.attribute.x || 0) - E), b.setAttribute("x", -m[1] - S)) : W > 0 && b.setAttribute("x", m[3]) : (w -= _ / 2, y && y.setAttribute("x", (y.attribute.x || 0) - E / 2), b.setAttribute("x", -S / 2));
|
|
19015
19015
|
const $ = v === "right" || v === "end", K = v === "left" || v === "start";
|
|
19016
|
-
if ((v ? v === "center" : p) &&
|
|
19017
|
-
const Y = _ - m[1] - m[3], V = E + S, G =
|
|
19016
|
+
if ((v ? v === "center" : p) && W) {
|
|
19017
|
+
const Y = _ - m[1] - m[3], V = E + S, G = W === 1 ? (Y - V) / 2 + S + E / 2 : m[0] + S - (_ / 2 + V / 2 - S) + E / 2;
|
|
19018
19018
|
if (M.setAttributes({
|
|
19019
19019
|
x: G,
|
|
19020
19020
|
textAlign: "center"
|
|
@@ -19025,8 +19025,8 @@ let dd = class Rv extends mo {
|
|
|
19025
19025
|
});
|
|
19026
19026
|
}
|
|
19027
19027
|
}
|
|
19028
|
-
if (K &&
|
|
19029
|
-
const Y = _ - m[1] - m[3], V =
|
|
19028
|
+
if (K && W !== 1) {
|
|
19029
|
+
const Y = _ - m[1] - m[3], V = W === 0 ? -Y / 2 + S / 2 : -_ + m[3] + m[1] + S, G = V + S;
|
|
19030
19030
|
if (M.setAttributes({
|
|
19031
19031
|
x: G,
|
|
19032
19032
|
textAlign: "left"
|
|
@@ -19037,8 +19037,8 @@ let dd = class Rv extends mo {
|
|
|
19037
19037
|
});
|
|
19038
19038
|
}
|
|
19039
19039
|
}
|
|
19040
|
-
if ($ &&
|
|
19041
|
-
const Y = _ - m[1] - m[3], V =
|
|
19040
|
+
if ($ && W !== -1) {
|
|
19041
|
+
const Y = _ - m[1] - m[3], V = W === 0 ? Y / 2 + S / 2 : Y;
|
|
19042
19042
|
if (M.setAttributes({
|
|
19043
19043
|
x: V,
|
|
19044
19044
|
textAlign: "right"
|
|
@@ -19182,9 +19182,9 @@ class zh extends mo {
|
|
|
19182
19182
|
textBaseline: "top"
|
|
19183
19183
|
}), D = S.createOrUpdateChild("poptip-content", L, "text");
|
|
19184
19184
|
ae(y == null ? void 0 : y.content) || (D.states = y.content);
|
|
19185
|
-
const O = D.AABBBounds, j = O.height(),
|
|
19185
|
+
const O = D.AABBBounds, j = O.height(), W = O.width();
|
|
19186
19186
|
I && (E += j);
|
|
19187
|
-
let $ = ts(H + x[1] + x[3],
|
|
19187
|
+
let $ = ts(H + x[1] + x[3], W + x[1] + x[3]);
|
|
19188
19188
|
$ > p ? $ = p : $ < f && ($ = f);
|
|
19189
19189
|
let K = x[0] + x[2] + E;
|
|
19190
19190
|
const { visible: Y } = c, V = t4(c, ["visible"]), G = (t = V.size) !== null && t !== void 0 ? t : 12, Z = ht(G) ? [G[0] + ((e = V.space) !== null && e !== void 0 ? e : 0), G[1] + ((n = V.space) !== null && n !== void 0 ? n : 0)] : G + ((o = V.space) !== null && o !== void 0 ? o : 0), it = (r = V.lineWidth) !== null && r !== void 0 ? r : 1, pt = this.stage ? [(s = this.stage.viewWidth) !== null && s !== void 0 ? s : this.stage.width, (l = this.stage.viewHeight) !== null && l !== void 0 ? l : this.stage.height] : void 0;
|
|
@@ -22147,8 +22147,8 @@ class df extends nb {
|
|
|
22147
22147
|
}) : V.setAttribute("x", Y + K - V.attribute.x);
|
|
22148
22148
|
});
|
|
22149
22149
|
}
|
|
22150
|
-
const j = D.height(),
|
|
22151
|
-
return S.attribute.width =
|
|
22150
|
+
const j = D.height(), W = z(this.attribute.item.width) ? this.attribute.item.width : O + x[1] + x[3], $ = this._itemHeightByUser || j + x[0] + x[2];
|
|
22151
|
+
return S.attribute.width = W, S.attribute.height = $, T && T.setAttribute("visible", !1), R.translateTo(-D.x1 + x[3], -D.y1 + x[0]), S;
|
|
22152
22152
|
}
|
|
22153
22153
|
_createPager(t) {
|
|
22154
22154
|
var e, n;
|
|
@@ -23369,8 +23369,8 @@ let XT = class qT extends mo {
|
|
|
23369
23369
|
y: D
|
|
23370
23370
|
}), "text"));
|
|
23371
23371
|
}
|
|
23372
|
-
const j = this._subTitle ? this._subTitle.AABBBounds.height() : 0,
|
|
23373
|
-
let $ = Math.max(O,
|
|
23372
|
+
const j = this._subTitle ? this._subTitle.AABBBounds.height() : 0, W = this._subTitle ? this._subTitle.AABBBounds.width() : 0;
|
|
23373
|
+
let $ = Math.max(O, W), K = D + ((p = x.height) !== null && p !== void 0 ? p : j);
|
|
23374
23374
|
if (z(S) && ($ = S), z(R) && (K = R), z(T) && $ < T && ($ = T), z(M) && $ > M && ($ = M), z(B) && K < B && (K = B), z(F) && K > F && (K = F), L.attribute.width = $, L.attribute.height = K, L.attribute.boundsPadding = I, this._mainTitle) {
|
|
23375
23375
|
if (z(P) || z(_.align)) {
|
|
23376
23376
|
const Y = _.align ? _.align : P, V = (v = _.width) !== null && v !== void 0 ? v : O;
|
|
@@ -23383,7 +23383,7 @@ let XT = class qT extends mo {
|
|
|
23383
23383
|
}
|
|
23384
23384
|
if (this._subTitle) {
|
|
23385
23385
|
if (z(P) || z(x.align)) {
|
|
23386
|
-
const Y = x.align ? x.align : P, V = (m = x.width) !== null && m !== void 0 ? m :
|
|
23386
|
+
const Y = x.align ? x.align : P, V = (m = x.width) !== null && m !== void 0 ? m : W;
|
|
23387
23387
|
Y === "left" ? (this._subTitle.setAttribute("x", 0), this._subTitle.setAttribute("textAlign", "left")) : Y === "center" ? (this._subTitle.setAttribute("x", V / 2), this._subTitle.setAttribute("textAlign", "center")) : Y === "right" && (this._subTitle.setAttribute("x", V), this._subTitle.setAttribute("textAlign", "right"));
|
|
23388
23388
|
}
|
|
23389
23389
|
if (z(H) || z(_.verticalAlign)) {
|
|
@@ -28701,7 +28701,7 @@ function W5(i, t, e, n) {
|
|
|
28701
28701
|
j.name = r.name, j.role = "icon-custom", o.appendChild(j);
|
|
28702
28702
|
break;
|
|
28703
28703
|
case "image":
|
|
28704
|
-
const
|
|
28704
|
+
const W = new Ys({
|
|
28705
28705
|
x: r.x,
|
|
28706
28706
|
y: r.y,
|
|
28707
28707
|
dx: (M = r.dx) !== null && M !== void 0 ? M : 0,
|
|
@@ -28716,7 +28716,7 @@ function W5(i, t, e, n) {
|
|
|
28716
28716
|
cursor: r.cursor,
|
|
28717
28717
|
shape: r.shape
|
|
28718
28718
|
});
|
|
28719
|
-
|
|
28719
|
+
W.name = r.name, W.role = "image-custom", o.appendChild(W);
|
|
28720
28720
|
break;
|
|
28721
28721
|
case "line":
|
|
28722
28722
|
const $ = zn({
|
|
@@ -29405,10 +29405,10 @@ function K5(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f) {
|
|
|
29405
29405
|
if (S = I, R = L, T = D, F.length === 0 && P.length === 0) {
|
|
29406
29406
|
let j = 0;
|
|
29407
29407
|
bt(c.theme._contentOffset) && (d === "left" ? j = c.theme._contentOffset : d === "right" && (j = -c.theme._contentOffset));
|
|
29408
|
-
const
|
|
29408
|
+
const W = f ? Mo(f.start.col, f.start.row, c) : Mo(i.col, i.row, c), { text: $, moreThanMaxCharacters: K } = Gh(e, c), Y = {
|
|
29409
29409
|
text: $.length === 1 ? $[0] : $,
|
|
29410
29410
|
moreThanMaxCharacters: K,
|
|
29411
|
-
maxLineWidth: o ? 1 / 0 : a - (n[1] + n[3]) - S - R -
|
|
29411
|
+
maxLineWidth: o ? 1 / 0 : a - (n[1] + n[3]) - S - R - W,
|
|
29412
29412
|
textBaseline: "top",
|
|
29413
29413
|
heightLimit: ((b = c.options.customConfig) === null || b === void 0 ? void 0 : b.limitContentHeight) === !1 || r && !(!((y = c.options.customConfig) === null || y === void 0) && y.multilinesForXTable) ? -1 : h - Math.floor(n[0] + n[2]),
|
|
29414
29414
|
pickable: !1,
|
|
@@ -29416,7 +29416,7 @@ function K5(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f) {
|
|
|
29416
29416
|
lineClamp: l,
|
|
29417
29417
|
wordBreak: "break-word",
|
|
29418
29418
|
whiteSpace: ((w = c.options.customConfig) === null || w === void 0 ? void 0 : w.limitContentHeight) === !1 || $.length !== 1 || s ? "normal" : "no-wrap",
|
|
29419
|
-
dx: (d === "left" ? H.length ? 0 :
|
|
29419
|
+
dx: (d === "left" ? H.length ? 0 : W : 0) + j
|
|
29420
29420
|
}, V = new qi(g.text ? Object.assign({}, g.text, Y) : Y);
|
|
29421
29421
|
V.name = "text", O = V;
|
|
29422
29422
|
} else {
|
|
@@ -29424,12 +29424,12 @@ function K5(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f) {
|
|
|
29424
29424
|
text: e == null ? void 0 : e.toString()
|
|
29425
29425
|
}, ((A = (_ = (C = i.parent) === null || C === void 0 ? void 0 : C.theme) === null || _ === void 0 ? void 0 : _.userTheme) === null || A === void 0 ? void 0 : A.text) || {});
|
|
29426
29426
|
g.text && Object.assign(j, g.text), j.textBaseline = "middle";
|
|
29427
|
-
const
|
|
29428
|
-
|
|
29427
|
+
const W = [...F.map((K) => og(K)), j, ...P.map((K) => og(K))];
|
|
29428
|
+
W[0].textAlign = d;
|
|
29429
29429
|
const $ = new Ho({
|
|
29430
29430
|
width: o ? 0 : a - (n[1] + n[3]) - S - R,
|
|
29431
29431
|
height: r && s ? 0 : Math.ceil(h - (n[0] + n[2])),
|
|
29432
|
-
textConfig:
|
|
29432
|
+
textConfig: W,
|
|
29433
29433
|
verticalDirection: r && s ? "top" : u,
|
|
29434
29434
|
ellipsis: j.ellipsis
|
|
29435
29435
|
});
|
|
@@ -29451,14 +29451,14 @@ function K5(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f) {
|
|
|
29451
29451
|
align: d,
|
|
29452
29452
|
baseline: u
|
|
29453
29453
|
});
|
|
29454
|
-
const
|
|
29454
|
+
const W = {
|
|
29455
29455
|
addedHierarchyOffset: 0
|
|
29456
29456
|
};
|
|
29457
29457
|
H.forEach(($) => {
|
|
29458
|
-
const K = lo($, void 0, i.col, i.row, f, c,
|
|
29458
|
+
const K = lo($, void 0, i.col, i.row, f, c, W);
|
|
29459
29459
|
K.role = "icon-content-left", K.name = $.name, j.addLeftOccupyingIcon(K);
|
|
29460
29460
|
}), E.forEach(($) => {
|
|
29461
|
-
const K = lo($, void 0, i.col, i.row, f, c,
|
|
29461
|
+
const K = lo($, void 0, i.col, i.row, f, c, W);
|
|
29462
29462
|
K.role = "icon-content-right", K.name = $.name, j.addRightOccupyingIcon(K);
|
|
29463
29463
|
}), j.addContent(O), i.appendChild(j), j.layout(), x = j.AABBBounds.width(), j.AABBBounds.height();
|
|
29464
29464
|
} else
|
|
@@ -29664,7 +29664,7 @@ function X5(i, t) {
|
|
|
29664
29664
|
}
|
|
29665
29665
|
}
|
|
29666
29666
|
function q5(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v) {
|
|
29667
|
-
var m, b, y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j,
|
|
29667
|
+
var m, b, y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j, W, $, K, Y, V, G, Z, it;
|
|
29668
29668
|
const pt = g._getCellStyle(n, o), _t = _f("padding", pt, n, o, g);
|
|
29669
29669
|
!((m = g.options.customConfig) === null || m === void 0) && m.imageMargin ? h = ue((b = g.options.customConfig) === null || b === void 0 ? void 0 : b.imageMargin) : z(_t) && (h = _t), !((y = f == null ? void 0 : f.text) === null || y === void 0) && y.textAlign && (d = (w = f == null ? void 0 : f.text) === null || w === void 0 ? void 0 : w.textAlign), !((C = f == null ? void 0 : f.text) === null || C === void 0) && C.textBaseline && (u = (_ = f == null ? void 0 : f.text) === null || _ === void 0 ? void 0 : _.textBaseline);
|
|
29670
29670
|
const nt = il(n, o, f, g);
|
|
@@ -29691,7 +29691,7 @@ function q5(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v) {
|
|
|
29691
29691
|
height: s,
|
|
29692
29692
|
lineWidth: (D = (L = f == null ? void 0 : f.group) === null || L === void 0 ? void 0 : L.lineWidth) !== null && D !== void 0 ? D : void 0,
|
|
29693
29693
|
fill: (j = (O = f == null ? void 0 : f.group) === null || O === void 0 ? void 0 : O.fill) !== null && j !== void 0 ? j : void 0,
|
|
29694
|
-
stroke: ($ = (
|
|
29694
|
+
stroke: ($ = (W = f == null ? void 0 : f.group) === null || W === void 0 ? void 0 : W.stroke) !== null && $ !== void 0 ? $ : void 0,
|
|
29695
29695
|
strokeArrayWidth: nt ?? void 0,
|
|
29696
29696
|
strokeArrayColor: (Y = (K = f == null ? void 0 : f.group) === null || K === void 0 ? void 0 : K.strokeArrayColor) !== null && Y !== void 0 ? Y : void 0,
|
|
29697
29697
|
cursor: (G = (V = f == null ? void 0 : f.group) === null || V === void 0 ? void 0 : V.cursor) !== null && G !== void 0 ? G : void 0,
|
|
@@ -29787,12 +29787,12 @@ function Uh(i, t, e, n, o, r) {
|
|
|
29787
29787
|
});
|
|
29788
29788
|
}
|
|
29789
29789
|
if (i.getChildByName("play-icon")) {
|
|
29790
|
-
const { width: L, height: D } = oa(i, r), O = Math.floor(Math.min(L - A[1] - A[3], D - A[2] - A[0]) / 2), j = 0 + (L > b.attribute.width ? b.attribute.x - 0 + b.attribute.width / 2 : L / 2),
|
|
29790
|
+
const { width: L, height: D } = oa(i, r), O = Math.floor(Math.min(L - A[1] - A[3], D - A[2] - A[0]) / 2), j = 0 + (L > b.attribute.width ? b.attribute.x - 0 + b.attribute.width / 2 : L / 2), W = 0 + (D > b.attribute.height ? b.attribute.y - 0 + b.attribute.height / 2 : D / 2);
|
|
29791
29791
|
for (let $ = T; $ <= B; $++)
|
|
29792
29792
|
for (let K = M; K <= F; K++)
|
|
29793
29793
|
r.scenegraph.getCell($, K).getChildByName("play-icon").setAttributes({
|
|
29794
29794
|
x: j - O / 2,
|
|
29795
|
-
y:
|
|
29795
|
+
y: W - O / 2,
|
|
29796
29796
|
width: O,
|
|
29797
29797
|
height: O
|
|
29798
29798
|
});
|
|
@@ -29986,8 +29986,8 @@ function Ko(i, t, e, n, o) {
|
|
|
29986
29986
|
const _t = e.getCellRawRecord(M.start.col, M.start.row), { vtableMergeName: nt, vtableMerge: ot } = _t ?? {};
|
|
29987
29987
|
O = ot, ot && (D = !0, e.options.groupTitleCustomLayout && (F = ss(e.options.groupTitleCustomLayout, void 0, M.start.col, M.start.row, e.getColsWidth(M.start.col, M.end.col), e.getRowsHeight(M.start.row, M.end.row), !1, e.isAutoRowHeight(t), [0, 0, 0, 0], M, e))), nt && (P = nt);
|
|
29988
29988
|
}
|
|
29989
|
-
const j = B || e._getCellStyle(M ? M.start.col : i, M ? M.start.row : t),
|
|
29990
|
-
if ($.group.cornerRadius = bf(i, t, e), !n && !T && !(L != null && L.customLayout || L != null && L.customRender || L != null && L.headerCustomLayout || L != null && L.headerCustomRender) && Q5(i, t, S,
|
|
29989
|
+
const j = B || e._getCellStyle(M ? M.start.col : i, M ? M.start.row : t), W = (r = j.autoWrapText) !== null && r !== void 0 ? r : e.internalProps.autoWrapText, $ = ds(j, e, T ? M.start.col : i, T ? M.start.row : t, Rt).theme;
|
|
29990
|
+
if ($.group.cornerRadius = bf(i, t, e), !n && !T && !(L != null && L.customLayout || L != null && L.customRender || L != null && L.headerCustomLayout || L != null && L.headerCustomRender) && Q5(i, t, S, W, D, e)) {
|
|
29991
29991
|
const _t = e.getColWidth(i), nt = e.getRowHeight(t);
|
|
29992
29992
|
S.setAttributes({
|
|
29993
29993
|
width: _t,
|
|
@@ -30013,11 +30013,11 @@ function Ko(i, t, e, n, o) {
|
|
|
30013
30013
|
let gt = 0;
|
|
30014
30014
|
gt = At === "center" ? ut[3] + (_t - (ut[1] + ut[3])) / 2 : At === "right" ? ut[3] + _t - (ut[1] + ut[3]) : ut[3];
|
|
30015
30015
|
const Vt = {
|
|
30016
|
-
text: St.length !== 1 ||
|
|
30016
|
+
text: St.length !== 1 || W ? St : St[0],
|
|
30017
30017
|
moreThanMaxCharacters: lt,
|
|
30018
30018
|
maxLineWidth: _t - (ut[1] + ut[3] + rt),
|
|
30019
30019
|
textBaseline: "top",
|
|
30020
|
-
autoWrapText:
|
|
30020
|
+
autoWrapText: W,
|
|
30021
30021
|
lineClamp: ft,
|
|
30022
30022
|
wordBreak: "break-word",
|
|
30023
30023
|
heightLimit: nt - Math.floor(ut[0] + ut[2]),
|
|
@@ -30600,8 +30600,8 @@ function f8(i, t, e, n) {
|
|
|
30600
30600
|
if (v) {
|
|
30601
30601
|
const M = n.getCellIcons(i, t);
|
|
30602
30602
|
M == null || M.forEach((B) => {
|
|
30603
|
-
var F, P, H, E, I, L, D, O, j,
|
|
30604
|
-
B.positionType !== Te.absoluteRight && B.positionType !== Te.inlineFront && B.positionType !== Te.inlineEnd ? (u += ((F = B.width) !== null && F !== void 0 ? F : 0) + ((P = B.marginLeft) !== null && P !== void 0 ? P : 0) + ((H = B.marginRight) !== null && H !== void 0 ? H : 0), d = Math.max(d, (E = B.height) !== null && E !== void 0 ? E : 0)) : B.positionType === Te.inlineFront ? (c.push(B), g = Math.max(g, ((I = B.height) !== null && I !== void 0 ? I : 0) + ((L = B.marginLeft) !== null && L !== void 0 ? L : 0) + ((D = B.marginRight) !== null && D !== void 0 ? D : 0))) : B.positionType === Te.inlineEnd && (f.push(B), p = Math.max(p, ((O = B.height) !== null && O !== void 0 ? O : 0) + ((j = B.marginLeft) !== null && j !== void 0 ? j : 0) + ((
|
|
30603
|
+
var F, P, H, E, I, L, D, O, j, W;
|
|
30604
|
+
B.positionType !== Te.absoluteRight && B.positionType !== Te.inlineFront && B.positionType !== Te.inlineEnd ? (u += ((F = B.width) !== null && F !== void 0 ? F : 0) + ((P = B.marginLeft) !== null && P !== void 0 ? P : 0) + ((H = B.marginRight) !== null && H !== void 0 ? H : 0), d = Math.max(d, (E = B.height) !== null && E !== void 0 ? E : 0)) : B.positionType === Te.inlineFront ? (c.push(B), g = Math.max(g, ((I = B.height) !== null && I !== void 0 ? I : 0) + ((L = B.marginLeft) !== null && L !== void 0 ? L : 0) + ((D = B.marginRight) !== null && D !== void 0 ? D : 0))) : B.positionType === Te.inlineEnd && (f.push(B), p = Math.max(p, ((O = B.height) !== null && O !== void 0 ? O : 0) + ((j = B.marginLeft) !== null && j !== void 0 ? j : 0) + ((W = B.marginRight) !== null && W !== void 0 ? W : 0)));
|
|
30605
30605
|
});
|
|
30606
30606
|
}
|
|
30607
30607
|
let m = 1, b = i;
|
|
@@ -31866,14 +31866,14 @@ class w8 {
|
|
|
31866
31866
|
stroke: I,
|
|
31867
31867
|
lineWidth: L
|
|
31868
31868
|
});
|
|
31869
|
-
const D = (u = x.columnResize) === null || u === void 0 ? void 0 : u.labelColor, O = (c = x.columnResize) === null || c === void 0 ? void 0 : c.labelFontSize, j = (g = x.columnResize) === null || g === void 0 ? void 0 : g.labelFontFamily,
|
|
31869
|
+
const D = (u = x.columnResize) === null || u === void 0 ? void 0 : u.labelColor, O = (c = x.columnResize) === null || c === void 0 ? void 0 : c.labelFontSize, j = (g = x.columnResize) === null || g === void 0 ? void 0 : g.labelFontFamily, W = (f = x.columnResize) === null || f === void 0 ? void 0 : f.labelBackgroundFill, $ = (p = x.columnResize) === null || p === void 0 ? void 0 : p.labelBackgroundCornerRadius, K = (m = (v = x.columnResize) === null || v === void 0 ? void 0 : v.labelVisible) === null || m === void 0 || m;
|
|
31870
31870
|
this.labelVisible = K, this.columnResizeLabel.lastChild.setAttributes({
|
|
31871
31871
|
fontSize: O,
|
|
31872
31872
|
fill: D,
|
|
31873
31873
|
fontFamily: j,
|
|
31874
31874
|
dy: -O / 2
|
|
31875
31875
|
}), this.columnResizeLabel.firstChild.setAttributes({
|
|
31876
|
-
fill:
|
|
31876
|
+
fill: W,
|
|
31877
31877
|
width: 5 * O * 0.8,
|
|
31878
31878
|
height: O + 8,
|
|
31879
31879
|
cornerRadius: $,
|
|
@@ -31884,7 +31884,7 @@ class w8 {
|
|
|
31884
31884
|
fontFamily: j,
|
|
31885
31885
|
dy: -O / 2
|
|
31886
31886
|
}), this.rowResizeLabel.firstChild.setAttributes({
|
|
31887
|
-
fill:
|
|
31887
|
+
fill: W,
|
|
31888
31888
|
width: 5 * O * 0.8,
|
|
31889
31889
|
height: O + 8,
|
|
31890
31890
|
cornerRadius: $,
|
|
@@ -38885,14 +38885,14 @@ function i7(i) {
|
|
|
38885
38885
|
t.eventManager.scrollXSpeed = 0, t.eventManager.scrollYSpeed = 0;
|
|
38886
38886
|
let H = !1, E = !1, I = !1, L = !1;
|
|
38887
38887
|
C > A.bottom - S && F && t.scrollTop + t.tableNoFrameHeight < t.getAllRowsHeight() ? (H = !0, t.eventManager.scrollYSpeed = -(C - A.bottom + S) / 50) : C < A.top + x && F && t.scrollTop > 0 && (E = !0, t.eventManager.scrollYSpeed = -(C - A.top - x) / 50), w > A.right - T && P && t.scrollLeft + t.tableNoFrameWidth < t.getAllColsWidth() ? (I = !0, t.eventManager.scrollXSpeed = -(w - A.right + T) / 50) : w < A.left + R && P && t.scrollLeft > 0 && (L = !0, t.eventManager.scrollXSpeed = -(w - A.left - R) / 50), t.eventManager.inertiaScroll.startInertia(t.eventManager.scrollXSpeed, t.eventManager.scrollYSpeed, 1), t.eventManager.inertiaScroll.setScrollHandle((D, O) => {
|
|
38888
|
-
let j,
|
|
38888
|
+
let j, W;
|
|
38889
38889
|
Tg({
|
|
38890
38890
|
deltaX: -D,
|
|
38891
38891
|
deltaY: -O
|
|
38892
|
-
}, t.stateManager, !1), H ?
|
|
38892
|
+
}, t.stateManager, !1), H ? W = t.scrollTop + A.height - S - 20 : E && (W = t.scrollTop + x + 20), I ? j = t.scrollLeft + A.width - T - 20 : L && (j = t.scrollLeft + R + 20);
|
|
38893
38893
|
let $ = !1, K = !1;
|
|
38894
|
-
I || L || (w > t.tableNoFrameWidth - t.getRightFrozenColsWidth() && w < t.tableNoFrameWidth || w > 0 && w < t.getFrozenColsWidth() ? (j = w, K = !0) : j = t.scrollLeft + w), H || E || (C > t.tableNoFrameHeight - t.getBottomFrozenRowsHeight() && C < t.tableNoFrameHeight || C > 0 && C < t.getFrozenRowsHeight() ? (
|
|
38895
|
-
const Y = t.getTargetColAtConsiderRightFrozen(j, K), V = t.getTargetRowAtConsiderBottomFrozen(
|
|
38894
|
+
I || L || (w > t.tableNoFrameWidth - t.getRightFrozenColsWidth() && w < t.tableNoFrameWidth || w > 0 && w < t.getFrozenColsWidth() ? (j = w, K = !0) : j = t.scrollLeft + w), H || E || (C > t.tableNoFrameHeight - t.getBottomFrozenRowsHeight() && C < t.tableNoFrameHeight || C > 0 && C < t.getFrozenRowsHeight() ? (W = C, $ = !0) : W = t.scrollTop + C), t.stateManager.updateInteractionState(Zt.grabing);
|
|
38895
|
+
const Y = t.getTargetColAtConsiderRightFrozen(j, K), V = t.getTargetRowAtConsiderBottomFrozen(W, $);
|
|
38896
38896
|
z(Y) && z(V) && t.stateManager.updateSelectPos(Y.col, V.row, !1, !1, !1, !0);
|
|
38897
38897
|
});
|
|
38898
38898
|
} else
|
|
@@ -40815,29 +40815,29 @@ function A7(i, t, e, n, o, r) {
|
|
|
40815
40815
|
}
|
|
40816
40816
|
function R7(i, t, e, n, o, r, s, l, a) {
|
|
40817
40817
|
var h, d, u, c, g, f, p, v, m, b, y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D;
|
|
40818
|
-
const O = i.id, j = l.find((K) => typeof K != "string" && K.dimensionKey === i.dimensionKey),
|
|
40818
|
+
const O = i.id, j = l.find((K) => typeof K != "string" && K.dimensionKey === i.dimensionKey), W = (h = a.indicatorsDefine) === null || h === void 0 ? void 0 : h.find((K) => typeof K != "string" && (i.indicatorKey ? K.indicatorKey === i.indicatorKey : K.title === i.value)), $ = {
|
|
40819
40819
|
id: O,
|
|
40820
|
-
title: (d = i.value) !== null && d !== void 0 ? d :
|
|
40820
|
+
title: (d = i.value) !== null && d !== void 0 ? d : W.title,
|
|
40821
40821
|
field: i.dimensionKey,
|
|
40822
|
-
style: i.level + 1 === r || typeof ((u =
|
|
40822
|
+
style: i.level + 1 === r || typeof ((u = W ?? j) === null || u === void 0 ? void 0 : u.headerStyle) == "function" ? (c = W ?? j) === null || c === void 0 ? void 0 : c.headerStyle : Object.assign({}, (g = W ?? j) === null || g === void 0 ? void 0 : g.headerStyle, {
|
|
40823
40823
|
textAlign: "left"
|
|
40824
40824
|
}),
|
|
40825
|
-
headerType: (p = (f =
|
|
40826
|
-
headerIcon: (v =
|
|
40825
|
+
headerType: (p = (f = W == null ? void 0 : W.headerType) !== null && f !== void 0 ? f : j == null ? void 0 : j.headerType) !== null && p !== void 0 ? p : "text",
|
|
40826
|
+
headerIcon: (v = W == null ? void 0 : W.headerIcon) !== null && v !== void 0 ? v : j == null ? void 0 : j.headerIcon,
|
|
40827
40827
|
define: Object.assign(i, {
|
|
40828
|
-
linkJump: (m =
|
|
40829
|
-
linkDetect: (b =
|
|
40830
|
-
templateLink: (y =
|
|
40831
|
-
keepAspectRatio: (C = (w =
|
|
40832
|
-
imageAutoSizing: (_ =
|
|
40833
|
-
headerCustomRender: (A =
|
|
40834
|
-
headerCustomLayout: (x =
|
|
40828
|
+
linkJump: (m = W ?? j) === null || m === void 0 ? void 0 : m.linkJump,
|
|
40829
|
+
linkDetect: (b = W ?? j) === null || b === void 0 ? void 0 : b.linkDetect,
|
|
40830
|
+
templateLink: (y = W ?? j) === null || y === void 0 ? void 0 : y.templateLink,
|
|
40831
|
+
keepAspectRatio: (C = (w = W ?? j) === null || w === void 0 ? void 0 : w.keepAspectRatio) !== null && C !== void 0 && C,
|
|
40832
|
+
imageAutoSizing: (_ = W ?? j) === null || _ === void 0 ? void 0 : _.imageAutoSizing,
|
|
40833
|
+
headerCustomRender: (A = W ?? j) === null || A === void 0 ? void 0 : A.headerCustomRender,
|
|
40834
|
+
headerCustomLayout: (x = W ?? j) === null || x === void 0 ? void 0 : x.headerCustomLayout,
|
|
40835
40835
|
dragHeader: j == null ? void 0 : j.dragHeader,
|
|
40836
|
-
disableHeaderHover: !!(!((S =
|
|
40837
|
-
disableHeaderSelect: !!(!((R =
|
|
40836
|
+
disableHeaderHover: !!(!((S = W ?? j) === null || S === void 0) && S.disableHeaderHover),
|
|
40837
|
+
disableHeaderSelect: !!(!((R = W ?? j) === null || R === void 0) && R.disableHeaderSelect)
|
|
40838
40838
|
}),
|
|
40839
|
-
fieldFormat: (T =
|
|
40840
|
-
dropDownMenu: (M =
|
|
40839
|
+
fieldFormat: (T = W == null ? void 0 : W.headerFormat) !== null && T !== void 0 ? T : j == null ? void 0 : j.headerFormat,
|
|
40840
|
+
dropDownMenu: (M = W == null ? void 0 : W.dropDownMenu) !== null && M !== void 0 ? M : j == null ? void 0 : j.dropDownMenu,
|
|
40841
40841
|
pivotInfo: {
|
|
40842
40842
|
value: i.value,
|
|
40843
40843
|
dimensionKey: i.dimensionKey,
|
|
@@ -40851,25 +40851,25 @@ function R7(i, t, e, n, o, r, s, l, a) {
|
|
|
40851
40851
|
maxWidth: j == null ? void 0 : j.maxWidth,
|
|
40852
40852
|
parentCellId: n[n.length - 1]
|
|
40853
40853
|
};
|
|
40854
|
-
|
|
40854
|
+
W ? (W.customRender && (i.customRender = W.customRender), z((B = a._indicators) === null || B === void 0 ? void 0 : B.find((K) => K.indicatorKey === W.indicatorKey)) || (F = a._indicators) === null || F === void 0 || F.push({
|
|
40855
40855
|
id: ++a.sharedVar.seqId,
|
|
40856
|
-
indicatorKey:
|
|
40857
|
-
field:
|
|
40858
|
-
fieldFormat:
|
|
40859
|
-
cellType: (H = (P =
|
|
40860
|
-
chartModule: "chartModule" in
|
|
40861
|
-
chartSpec: "chartSpec" in
|
|
40862
|
-
noDataRenderNothing: "noDataRenderNothing" in
|
|
40863
|
-
sparklineSpec: "sparklineSpec" in
|
|
40864
|
-
style:
|
|
40865
|
-
icon:
|
|
40866
|
-
define: Object.assign({}, i,
|
|
40856
|
+
indicatorKey: W.indicatorKey,
|
|
40857
|
+
field: W.indicatorKey,
|
|
40858
|
+
fieldFormat: W == null ? void 0 : W.format,
|
|
40859
|
+
cellType: (H = (P = W == null ? void 0 : W.cellType) !== null && P !== void 0 ? P : W == null ? void 0 : W.columnType) !== null && H !== void 0 ? H : "text",
|
|
40860
|
+
chartModule: "chartModule" in W ? W.chartModule : null,
|
|
40861
|
+
chartSpec: "chartSpec" in W ? W.chartSpec : null,
|
|
40862
|
+
noDataRenderNothing: "noDataRenderNothing" in W && W.noDataRenderNothing,
|
|
40863
|
+
sparklineSpec: "sparklineSpec" in W ? W.sparklineSpec : null,
|
|
40864
|
+
style: W == null ? void 0 : W.style,
|
|
40865
|
+
icon: W == null ? void 0 : W.icon,
|
|
40866
|
+
define: Object.assign({}, i, W, {
|
|
40867
40867
|
dragHeader: j == null ? void 0 : j.dragHeader
|
|
40868
40868
|
}),
|
|
40869
|
-
width:
|
|
40870
|
-
minWidth:
|
|
40871
|
-
maxWidth:
|
|
40872
|
-
disableColumnResize:
|
|
40869
|
+
width: W == null ? void 0 : W.width,
|
|
40870
|
+
minWidth: W == null ? void 0 : W.minWidth,
|
|
40871
|
+
maxWidth: W == null ? void 0 : W.maxWidth,
|
|
40872
|
+
disableColumnResize: W == null ? void 0 : W.disableColumnResize
|
|
40873
40873
|
})) : i.indicatorKey && (z((E = a._indicators) === null || E === void 0 ? void 0 : E.find((K) => K.indicatorKey === i.indicatorKey)) || (I = a._indicators) === null || I === void 0 || I.push({
|
|
40874
40874
|
id: ++a.sharedVar.seqId,
|
|
40875
40875
|
indicatorKey: i.indicatorKey,
|
|
@@ -41777,7 +41777,7 @@ class xf extends vd {
|
|
|
41777
41777
|
var n, o, r, s, l, a, h, d, u, c;
|
|
41778
41778
|
if (super(), this.showFrozenIcon = !0, this.version = "1.11.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = iW(this.render.bind(this), 200), !t && e.mode !== "node" && !e.canvas)
|
|
41779
41779
|
throw new Error("vtable's container is undefined");
|
|
41780
|
-
const { frozenColCount: g = 0, frozenRowCount: f, defaultRowHeight: p = 40, defaultHeaderRowHeight: v, defaultColWidth: m = 80, defaultHeaderColWidth: b, widthMode: y = "standard", heightMode: w = "standard", autoFillWidth: C = !1, autoFillHeight: _ = !1, widthAdaptiveMode: A = "only-body", heightAdaptiveMode: x = "only-body", keyboardOptions: S, eventOptions: R, rowSeriesNumber: T, columnResizeMode: M, rowResizeMode: B = "none", dragHeaderMode: F, showFrozenIcon: P, allowFrozenColCount: H, padding: E, hover: I, menu: L, select: D, customRender: O, pixelRatio: j = As, renderChartAsync:
|
|
41780
|
+
const { frozenColCount: g = 0, frozenRowCount: f, defaultRowHeight: p = 40, defaultHeaderRowHeight: v, defaultColWidth: m = 80, defaultHeaderColWidth: b, widthMode: y = "standard", heightMode: w = "standard", autoFillWidth: C = !1, autoFillHeight: _ = !1, widthAdaptiveMode: A = "only-body", heightAdaptiveMode: x = "only-body", keyboardOptions: S, eventOptions: R, rowSeriesNumber: T, columnResizeMode: M, rowResizeMode: B = "none", dragHeaderMode: F, showFrozenIcon: P, allowFrozenColCount: H, padding: E, hover: I, menu: L, select: D, customRender: O, pixelRatio: j = As, renderChartAsync: W, renderChartAsyncBatchCount: $, mode: K, modeParams: Y, canvasWidth: V, canvasHeight: G, overscrollBehavior: Z, limitMinWidth: it, limitMinHeight: pt, clearDOM: _t = !0 } = e;
|
|
41781
41781
|
this.container = t, this.options = e, this._widthMode = y, this._heightMode = w, this._widthAdaptiveMode = A, this._heightAdaptiveMode = x, this._autoFillWidth = C, this._autoFillHeight = _, this.customRender = O, this.padding = {
|
|
41782
41782
|
top: 0,
|
|
41783
41783
|
right: 0,
|
|
@@ -41785,7 +41785,7 @@ class xf extends vd {
|
|
|
41785
41785
|
bottom: 0
|
|
41786
41786
|
}, E && (typeof E == "number" ? (this.padding.top = E, this.padding.left = E, this.padding.bottom = E, this.padding.right = E) : (E.top && (this.padding.top = E.top), E.bottom && (this.padding.bottom = E.bottom), E.left && (this.padding.left = E.left), E.right && (this.padding.right = E.right))), z(G) && z(V) && (this.canvasSizeSeted = !0), this.tableNoFrameWidth = 0, this.tableNoFrameHeight = 0, this.canvasWidth = V, this.canvasHeight = G, this.columnWidthComputeMode = (n = e.columnWidthComputeMode) !== null && n !== void 0 ? n : "normal";
|
|
41787
41787
|
const nt = this.internalProps = {};
|
|
41788
|
-
if (P !== void 0 && (this.showFrozenIcon = P), typeof H == "number" && H <= 0 && (this.showFrozenIcon = !1), this.options.canvas ? (nt.element = this.options.canvas.parentElement, nt.element.style.position = "relative", nt.focusControl = new WS(this, nt.element), nt.canvas = this.options.canvas, nt.context = nt.canvas.getContext("2d")) : be.mode !== "node" && (nt.element = T5(this.padding), nt.focusControl = new WS(this, nt.element), nt.canvas = document.createElement("canvas"), nt.element.appendChild(nt.canvas), nt.context = nt.canvas.getContext("2d"), !((o = e.customConfig) === null || o === void 0) && o.createReactContainer && CN(this)), nt.handler = new mf(), bt(this.options.resizeTime) && (nt.handler.resizeTime = this.options.resizeTime), nt.pixelRatio = j, nt.frozenColCount = g, nt.frozenRowCount = f, nt.defaultRowHeight = p, nt.defaultHeaderRowHeight = v ?? p, nt.defaultColWidth = m, nt.defaultHeaderColWidth = b ?? m, nt.keyboardOptions = S, nt.eventOptions = R, nt.rowSeriesNumber = T, nt.columnResizeMode = M, nt.rowResizeMode = B, nt.dragHeaderMode = F ?? "none", nt.renderChartAsync =
|
|
41788
|
+
if (P !== void 0 && (this.showFrozenIcon = P), typeof H == "number" && H <= 0 && (this.showFrozenIcon = !1), this.options.canvas ? (nt.element = this.options.canvas.parentElement, nt.element.style.position = "relative", nt.focusControl = new WS(this, nt.element), nt.canvas = this.options.canvas, nt.context = nt.canvas.getContext("2d")) : be.mode !== "node" && (nt.element = T5(this.padding), nt.focusControl = new WS(this, nt.element), nt.canvas = document.createElement("canvas"), nt.element.appendChild(nt.canvas), nt.context = nt.canvas.getContext("2d"), !((o = e.customConfig) === null || o === void 0) && o.createReactContainer && CN(this)), nt.handler = new mf(), bt(this.options.resizeTime) && (nt.handler.resizeTime = this.options.resizeTime), nt.pixelRatio = j, nt.frozenColCount = g, nt.frozenRowCount = f, nt.defaultRowHeight = p, nt.defaultHeaderRowHeight = v ?? p, nt.defaultColWidth = m, nt.defaultHeaderColWidth = b ?? m, nt.keyboardOptions = S, nt.eventOptions = R, nt.rowSeriesNumber = T, nt.columnResizeMode = M, nt.rowResizeMode = B, nt.dragHeaderMode = F ?? "none", nt.renderChartAsync = W, qw($), nt.overscrollBehavior = Z ?? "auto", nt._rowHeightsMap = new NS(this), nt._rowRangeHeightsMap = /* @__PURE__ */ new Map(), nt._colRangeWidthsMap = /* @__PURE__ */ new Map(), nt._widthResizedColMap = /* @__PURE__ */ new Set(), nt._heightResizedRowMap = /* @__PURE__ */ new Set(), this.colWidthsMap = new Xr(), this.colContentWidthsMap = new Xr(), this.colWidthsLimit = {}, nt.calcWidthContext = {
|
|
41789
41789
|
_: nt,
|
|
41790
41790
|
get full() {
|
|
41791
41791
|
var ot;
|
|
@@ -42441,10 +42441,10 @@ class xf extends vd {
|
|
|
42441
42441
|
updateOption(t) {
|
|
42442
42442
|
var e, n, o, r, s, l, a, h, d, u, c, g;
|
|
42443
42443
|
this.options = t, this._hasAutoImageColumn = void 0;
|
|
42444
|
-
const { frozenColCount: f = 0, defaultRowHeight: p = 40, defaultHeaderRowHeight: v, defaultColWidth: m = 80, defaultHeaderColWidth: b = 80, keyboardOptions: y, eventOptions: w, rowSeriesNumber: C, columnResizeMode: _, rowResizeMode: A = "none", dragHeaderMode: x, showFrozenIcon: S, allowFrozenColCount: R, padding: T, hover: M, menu: B, select: F, pixelRatio: P, widthMode: H, heightMode: E, autoFillWidth: I, autoFillHeight: L, widthAdaptiveMode: D, heightAdaptiveMode: O, customRender: j, renderChartAsync:
|
|
42444
|
+
const { frozenColCount: f = 0, defaultRowHeight: p = 40, defaultHeaderRowHeight: v, defaultColWidth: m = 80, defaultHeaderColWidth: b = 80, keyboardOptions: y, eventOptions: w, rowSeriesNumber: C, columnResizeMode: _, rowResizeMode: A = "none", dragHeaderMode: x, showFrozenIcon: S, allowFrozenColCount: R, padding: T, hover: M, menu: B, select: F, pixelRatio: P, widthMode: H, heightMode: E, autoFillWidth: I, autoFillHeight: L, widthAdaptiveMode: D, heightAdaptiveMode: O, customRender: j, renderChartAsync: W, renderChartAsyncBatchCount: $, overscrollBehavior: K, limitMinWidth: Y, limitMinHeight: V } = t;
|
|
42445
42445
|
P && P !== this.internalProps.pixelRatio && (this.internalProps.pixelRatio = P), T && (typeof T == "number" ? (this.padding.top = T, this.padding.left = T, this.padding.bottom = T, this.padding.right = T) : (T.top && (this.padding.top = T.top), T.bottom && (this.padding.bottom = T.bottom), T.left && (this.padding.left = T.left), T.right && (this.padding.right = T.right))), this.showFrozenIcon = typeof S != "boolean" || S, typeof R == "number" && R <= 0 && (this.showFrozenIcon = !1), this.widthMode = H ?? "standard", this.heightMode = E ?? "standard", this._widthAdaptiveMode = D ?? "only-body", this._heightAdaptiveMode = O ?? "only-body", this.autoFillWidth = I != null && I, this.autoFillHeight = L != null && L, this.customRender = j;
|
|
42446
42446
|
const G = this.internalProps;
|
|
42447
|
-
if (be.mode === "node" || t.canvas || M5(G.element, this.padding), this.columnWidthComputeMode = (e = t.columnWidthComputeMode) !== null && e !== void 0 ? e : "normal", G.frozenColCount = f, G.defaultRowHeight = p, G.defaultHeaderRowHeight = v ?? p, G.defaultColWidth = m, G.defaultHeaderColWidth = b ?? m, G.keyboardOptions = y, G.eventOptions = w, G.rowSeriesNumber = C, G.columnResizeMode = _, G.rowResizeMode = A, G.dragHeaderMode = x ?? "none", G.renderChartAsync =
|
|
42447
|
+
if (be.mode === "node" || t.canvas || M5(G.element, this.padding), this.columnWidthComputeMode = (e = t.columnWidthComputeMode) !== null && e !== void 0 ? e : "normal", G.frozenColCount = f, G.defaultRowHeight = p, G.defaultHeaderRowHeight = v ?? p, G.defaultColWidth = m, G.defaultHeaderColWidth = b ?? m, G.keyboardOptions = y, G.eventOptions = w, G.rowSeriesNumber = C, G.columnResizeMode = _, G.rowResizeMode = A, G.dragHeaderMode = x ?? "none", G.renderChartAsync = W, qw($), G.overscrollBehavior = K ?? "auto", G.cellTextOverflows = {}, G._rowHeightsMap = new NS(this), G._rowRangeHeightsMap = /* @__PURE__ */ new Map(), G._colRangeWidthsMap = /* @__PURE__ */ new Map(), G._widthResizedColMap = /* @__PURE__ */ new Set(), G._heightResizedRowMap = /* @__PURE__ */ new Set(), this.colWidthsMap = new Xr(), this.colContentWidthsMap = new Xr(), this.colWidthsLimit = {}, G.stick.changedCells.clear(), G.theme = dr.of((n = t.theme) !== null && n !== void 0 ? n : dr.DEFAULT), G.theme.isPivot = this.isPivotTable(), iu(G.theme.functionalIconsStyle), this.scenegraph.updateStageBackground(), G.autoWrapText = t.autoWrapText, G.enableLineBreak = t.enableLineBreak, G.allowFrozenColCount = (o = t.allowFrozenColCount) !== null && o !== void 0 ? o : 0, G.limitMaxAutoWidth = (r = t.limitMaxAutoWidth) !== null && r !== void 0 ? r : 450, G.limitMinWidth = Y != null ? typeof Y == "number" ? Y : Y ? 10 : 0 : 10, G.limitMinHeight = V != null ? typeof V == "number" ? V : V ? 10 : 0 : 10, (s = G.legends) === null || s === void 0 || s.forEach((Z) => {
|
|
42448
42448
|
Z == null || Z.release();
|
|
42449
42449
|
}), (l = G.title) === null || l === void 0 || l.release(), G.title = null, (a = G.emptyTip) === null || a === void 0 || a.release(), G.emptyTip = null, G.layoutMap.release(), this.scenegraph.clearCells(), this.scenegraph.updateComponent(), this.stateManager.updateOptionSetState(), this._updateSize(), this.eventManager.updateEventBinder(), t.legends) {
|
|
42450
42450
|
G.legends = [];
|
|
@@ -46580,12 +46580,12 @@ function Vj(i, t) {
|
|
|
46580
46580
|
b.domain.forEach((_) => {
|
|
46581
46581
|
var A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j;
|
|
46582
46582
|
b.label.formatMethod && (_ = b.label.formatMethod(_));
|
|
46583
|
-
const { width:
|
|
46583
|
+
const { width: W, height: $ } = t.measureText(_, {
|
|
46584
46584
|
fontSize: (S = (x = (A = b.label) === null || A === void 0 ? void 0 : A.style) === null || x === void 0 ? void 0 : x.fontSize) !== null && S !== void 0 ? S : Yo,
|
|
46585
46585
|
fontWeight: (M = (T = (R = b.label) === null || R === void 0 ? void 0 : R.style) === null || T === void 0 ? void 0 : T.fontWeight) !== null && M !== void 0 ? M : "normal",
|
|
46586
46586
|
fontFamily: (P = (F = (B = b.label) === null || B === void 0 ? void 0 : B.style) === null || F === void 0 ? void 0 : F.fontFamily) !== null && P !== void 0 ? P : js
|
|
46587
46587
|
}), K = ((E = (H = b.label) === null || H === void 0 ? void 0 : H.style) === null || E === void 0 ? void 0 : E.maxLineWidth) || 1 / 0, Y = ((D = (L = (I = b.label) === null || I === void 0 ? void 0 : I.style) === null || L === void 0 ? void 0 : L.angle) !== null && D !== void 0 ? D : 0) + (((j = (O = b.label) === null || O === void 0 ? void 0 : O.style) === null || j === void 0 ? void 0 : j.direction) === "vertical" ? 90 : 0);
|
|
46588
|
-
w = Math.max(w, Kl(Math.min(
|
|
46588
|
+
w = Math.max(w, Kl(Math.min(W, K), $, Y).width);
|
|
46589
46589
|
});
|
|
46590
46590
|
else {
|
|
46591
46591
|
let _;
|
|
@@ -46596,13 +46596,13 @@ function Vj(i, t) {
|
|
|
46596
46596
|
_ = [Ig(x), Ig(S)];
|
|
46597
46597
|
}
|
|
46598
46598
|
_.forEach((A) => {
|
|
46599
|
-
var x, S, R, T, M, B, F, P, H, E, I, L, D, O, j,
|
|
46599
|
+
var x, S, R, T, M, B, F, P, H, E, I, L, D, O, j, W;
|
|
46600
46600
|
b.label.formatMethod && (A = b.label.formatMethod(A));
|
|
46601
46601
|
const { width: $, height: K } = t.measureText(A, {
|
|
46602
46602
|
fontSize: (R = (S = (x = b.label) === null || x === void 0 ? void 0 : x.style) === null || S === void 0 ? void 0 : S.fontSize) !== null && R !== void 0 ? R : Yo,
|
|
46603
46603
|
fontWeight: (B = (M = (T = b.label) === null || T === void 0 ? void 0 : T.style) === null || M === void 0 ? void 0 : M.fontWeight) !== null && B !== void 0 ? B : "normal",
|
|
46604
46604
|
fontFamily: (H = (P = (F = b.label) === null || F === void 0 ? void 0 : F.style) === null || P === void 0 ? void 0 : P.fontFamily) !== null && H !== void 0 ? H : js
|
|
46605
|
-
}), Y = ((I = (E = b.label) === null || E === void 0 ? void 0 : E.style) === null || I === void 0 ? void 0 : I.maxLineWidth) || 1 / 0, V = ((O = (D = (L = b.label) === null || L === void 0 ? void 0 : L.style) === null || D === void 0 ? void 0 : D.angle) !== null && O !== void 0 ? O : 0) + (((
|
|
46605
|
+
}), Y = ((I = (E = b.label) === null || E === void 0 ? void 0 : E.style) === null || I === void 0 ? void 0 : I.maxLineWidth) || 1 / 0, V = ((O = (D = (L = b.label) === null || L === void 0 ? void 0 : L.style) === null || D === void 0 ? void 0 : D.angle) !== null && O !== void 0 ? O : 0) + (((W = (j = b.label) === null || j === void 0 ? void 0 : j.style) === null || W === void 0 ? void 0 : W.direction) === "vertical" ? 90 : 0);
|
|
46606
46606
|
w = Math.max(w, Kl(Math.min($, Y), K, V).width);
|
|
46607
46607
|
});
|
|
46608
46608
|
}
|
|
@@ -46630,12 +46630,12 @@ function $j(i, t) {
|
|
|
46630
46630
|
b.domain.forEach((_) => {
|
|
46631
46631
|
var A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j;
|
|
46632
46632
|
b.label.formatMethod && (_ = b.label.formatMethod(_));
|
|
46633
|
-
const { width:
|
|
46633
|
+
const { width: W, height: $ } = t.measureText(_, {
|
|
46634
46634
|
fontSize: (S = (x = (A = b.label) === null || A === void 0 ? void 0 : A.style) === null || x === void 0 ? void 0 : x.fontSize) !== null && S !== void 0 ? S : Yo,
|
|
46635
46635
|
fontWeight: (M = (T = (R = b.label) === null || R === void 0 ? void 0 : R.style) === null || T === void 0 ? void 0 : T.fontWeight) !== null && M !== void 0 ? M : "normal",
|
|
46636
46636
|
fontFamily: (P = (F = (B = b.label) === null || B === void 0 ? void 0 : B.style) === null || F === void 0 ? void 0 : F.fontFamily) !== null && P !== void 0 ? P : js
|
|
46637
46637
|
}), K = ((E = (H = b.label) === null || H === void 0 ? void 0 : H.style) === null || E === void 0 ? void 0 : E.maxLineWidth) || 1 / 0, Y = ((D = (L = (I = b.label) === null || I === void 0 ? void 0 : I.style) === null || L === void 0 ? void 0 : L.angle) !== null && D !== void 0 ? D : 0) + (((j = (O = b.label) === null || O === void 0 ? void 0 : O.style) === null || j === void 0 ? void 0 : j.direction) === "vertical" ? 90 : 0);
|
|
46638
|
-
w = Math.max(w, Kl(Math.min(
|
|
46638
|
+
w = Math.max(w, Kl(Math.min(W, K), $, Y).height);
|
|
46639
46639
|
});
|
|
46640
46640
|
else {
|
|
46641
46641
|
let _;
|
|
@@ -46646,13 +46646,13 @@ function $j(i, t) {
|
|
|
46646
46646
|
_ = [Ig(x), Ig(S)];
|
|
46647
46647
|
}
|
|
46648
46648
|
_.forEach((A) => {
|
|
46649
|
-
var x, S, R, T, M, B, F, P, H, E, I, L, D, O, j,
|
|
46649
|
+
var x, S, R, T, M, B, F, P, H, E, I, L, D, O, j, W;
|
|
46650
46650
|
b.label.formatMethod && (A = b.label.formatMethod(A));
|
|
46651
46651
|
const { width: $, height: K } = t.measureText(A, {
|
|
46652
46652
|
fontSize: (R = (S = (x = b.label) === null || x === void 0 ? void 0 : x.style) === null || S === void 0 ? void 0 : S.fontSize) !== null && R !== void 0 ? R : Yo,
|
|
46653
46653
|
fontWeight: (B = (M = (T = b.label) === null || T === void 0 ? void 0 : T.style) === null || M === void 0 ? void 0 : M.fontWeight) !== null && B !== void 0 ? B : "normal",
|
|
46654
46654
|
fontFamily: (H = (P = (F = b.label) === null || F === void 0 ? void 0 : F.style) === null || P === void 0 ? void 0 : P.fontFamily) !== null && H !== void 0 ? H : js
|
|
46655
|
-
}), Y = ((I = (E = b.label) === null || E === void 0 ? void 0 : E.style) === null || I === void 0 ? void 0 : I.maxLineWidth) || 1 / 0, V = ((O = (D = (L = b.label) === null || L === void 0 ? void 0 : L.style) === null || D === void 0 ? void 0 : D.angle) !== null && O !== void 0 ? O : 0) + (((
|
|
46655
|
+
}), Y = ((I = (E = b.label) === null || E === void 0 ? void 0 : E.style) === null || I === void 0 ? void 0 : I.maxLineWidth) || 1 / 0, V = ((O = (D = (L = b.label) === null || L === void 0 ? void 0 : L.style) === null || D === void 0 ? void 0 : D.angle) !== null && O !== void 0 ? O : 0) + (((W = (j = b.label) === null || j === void 0 ? void 0 : j.style) === null || W === void 0 ? void 0 : W.direction) === "vertical" ? 90 : 0);
|
|
46656
46656
|
w = Math.max(w, Kl(Math.min($, Y), K, V).height);
|
|
46657
46657
|
});
|
|
46658
46658
|
}
|
|
@@ -47955,7 +47955,7 @@ function _V() {
|
|
|
47955
47955
|
return md(yV, Lg);
|
|
47956
47956
|
}
|
|
47957
47957
|
function wV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v, m, b) {
|
|
47958
|
-
var y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j,
|
|
47958
|
+
var y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j, W, $, K, Y, V;
|
|
47959
47959
|
const G = _V()[d], Z = f._getCellStyle(o, r), it = _f("padding", Z, o, r, f);
|
|
47960
47960
|
if (z(it) && (a = it), !i) {
|
|
47961
47961
|
const pt = il(o, r, p, f);
|
|
@@ -47984,7 +47984,7 @@ function wV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v, m, b) {
|
|
|
47984
47984
|
stroke: (D = (L = p == null ? void 0 : p.group) === null || L === void 0 ? void 0 : L.stroke) !== null && D !== void 0 ? D : void 0,
|
|
47985
47985
|
strokeArrayWidth: pt,
|
|
47986
47986
|
strokeArrayColor: (j = (O = p == null ? void 0 : p.group) === null || O === void 0 ? void 0 : O.strokeArrayColor) !== null && j !== void 0 ? j : void 0,
|
|
47987
|
-
cursor: ($ = (
|
|
47987
|
+
cursor: ($ = (W = p == null ? void 0 : p.group) === null || W === void 0 ? void 0 : W.cursor) !== null && $ !== void 0 ? $ : void 0,
|
|
47988
47988
|
lineDash: (Y = (K = p == null ? void 0 : p.group) === null || K === void 0 ? void 0 : K.lineDash) !== null && Y !== void 0 ? Y : void 0,
|
|
47989
47989
|
lineCap: "butt",
|
|
47990
47990
|
clip: !0,
|
|
@@ -48016,7 +48016,7 @@ function wV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v, m, b) {
|
|
|
48016
48016
|
return i;
|
|
48017
48017
|
}
|
|
48018
48018
|
function SV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v, m) {
|
|
48019
|
-
var b, y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j,
|
|
48019
|
+
var b, y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j, W, $, K;
|
|
48020
48020
|
if (!i) {
|
|
48021
48021
|
const it = il(o, r, f, g);
|
|
48022
48022
|
m && (i = g.scenegraph.highPerformanceGetCell(o, r, !0)) && i.role === "cell" && i.setAttributes({
|
|
@@ -48044,7 +48044,7 @@ function SV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v, m) {
|
|
|
48044
48044
|
stroke: (L = (I = f == null ? void 0 : f.group) === null || I === void 0 ? void 0 : I.stroke) !== null && L !== void 0 ? L : void 0,
|
|
48045
48045
|
strokeArrayWidth: it,
|
|
48046
48046
|
strokeArrayColor: (O = (D = f == null ? void 0 : f.group) === null || D === void 0 ? void 0 : D.strokeArrayColor) !== null && O !== void 0 ? O : void 0,
|
|
48047
|
-
cursor: (
|
|
48047
|
+
cursor: (W = (j = f == null ? void 0 : f.group) === null || j === void 0 ? void 0 : j.cursor) !== null && W !== void 0 ? W : void 0,
|
|
48048
48048
|
lineDash: (K = ($ = f == null ? void 0 : f.group) === null || $ === void 0 ? void 0 : $.lineDash) !== null && K !== void 0 ? K : void 0,
|
|
48049
48049
|
lineCap: "butt",
|
|
48050
48050
|
clip: !0,
|
|
@@ -48092,7 +48092,7 @@ function xV(i, t, e, n, o, r, s, l, a) {
|
|
|
48092
48092
|
context: null,
|
|
48093
48093
|
value: S,
|
|
48094
48094
|
dataValue: R
|
|
48095
|
-
}), O = e === "auto", j = a.isAutoRowHeight(t),
|
|
48095
|
+
}), O = e === "auto", j = a.isAutoRowHeight(t), W = {
|
|
48096
48096
|
text: B.length === 1 ? B[0] : B,
|
|
48097
48097
|
maxLineWidth: O ? 1 / 0 : n - (r[1] + r[3] + F) - f - p,
|
|
48098
48098
|
textBaseline: "top",
|
|
@@ -48106,7 +48106,7 @@ function xV(i, t, e, n, o, r, s, l, a) {
|
|
|
48106
48106
|
}, $ = {
|
|
48107
48107
|
x: 0,
|
|
48108
48108
|
y: 0,
|
|
48109
|
-
text: s.text ? Object.assign({}, s.text,
|
|
48109
|
+
text: s.text ? Object.assign({}, s.text, W) : W,
|
|
48110
48110
|
icon: {
|
|
48111
48111
|
width: Math.floor(f / 1.4),
|
|
48112
48112
|
height: Math.floor(f / 1.4)
|
|
@@ -48177,17 +48177,17 @@ function RV(i, t, e, n, o, r, s, l, a, h) {
|
|
|
48177
48177
|
let L = 0, D = 0;
|
|
48178
48178
|
const O = (u = l.radioDirectionInCell) !== null && u !== void 0 ? u : "vertical";
|
|
48179
48179
|
if (ht(S))
|
|
48180
|
-
S.forEach((j,
|
|
48181
|
-
const $ = sx(j, R,
|
|
48182
|
-
$ && a.appendChild($), $.id = `radio-${i}-${t}-${
|
|
48180
|
+
S.forEach((j, W) => {
|
|
48181
|
+
const $ = sx(j, R, W, i, t, l, B, I, h);
|
|
48182
|
+
$ && a.appendChild($), $.id = `radio-${i}-${t}-${W}`, $.render();
|
|
48183
48183
|
const K = $.AABBBounds;
|
|
48184
|
-
O === "vertical" ? ($.setAttribute("y", D), D += K.height() + (
|
|
48184
|
+
O === "vertical" ? ($.setAttribute("y", D), D += K.height() + (W !== S.length - 1 ? m : 0), L = Math.max(L, K.width())) : O === "horizontal" && ($.setAttribute("x", L), L += K.width() + (W !== S.length - 1 ? m : 0), D = Math.max(D, K.height()));
|
|
48185
48185
|
});
|
|
48186
48186
|
else {
|
|
48187
48187
|
const j = sx(S, R, void 0, i, t, l, B, I, h);
|
|
48188
48188
|
j && a.appendChild(j), j.id = `radio-${i}-${t}`, j.render();
|
|
48189
|
-
const
|
|
48190
|
-
L =
|
|
48189
|
+
const W = j.AABBBounds;
|
|
48190
|
+
L = W.width(), D = W.height();
|
|
48191
48191
|
}
|
|
48192
48192
|
return {
|
|
48193
48193
|
width: L,
|
|
@@ -48432,7 +48432,7 @@ function ax(i, t) {
|
|
|
48432
48432
|
}
|
|
48433
48433
|
const Up = Vn();
|
|
48434
48434
|
function HV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v) {
|
|
48435
|
-
var m, b, y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j,
|
|
48435
|
+
var m, b, y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j, W, $, K, Y, V, G, Z, it;
|
|
48436
48436
|
const pt = g._getCellStyle(n, o), _t = _f("padding", pt, n, o, g);
|
|
48437
48437
|
!((m = g.options.customConfig) === null || m === void 0) && m.imageMargin ? h = ue((b = g.options.customConfig) === null || b === void 0 ? void 0 : b.imageMargin) : z(_t) && (h = _t), !((y = f == null ? void 0 : f.text) === null || y === void 0) && y.textAlign && (d = (w = f == null ? void 0 : f.text) === null || w === void 0 ? void 0 : w.textAlign), !((C = f == null ? void 0 : f.text) === null || C === void 0) && C.textBaseline && (u = (_ = f == null ? void 0 : f.text) === null || _ === void 0 ? void 0 : _.textBaseline);
|
|
48438
48438
|
const nt = il(n, o, f, g);
|
|
@@ -48459,7 +48459,7 @@ function HV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v) {
|
|
|
48459
48459
|
height: s,
|
|
48460
48460
|
lineWidth: (D = (L = f == null ? void 0 : f.group) === null || L === void 0 ? void 0 : L.lineWidth) !== null && D !== void 0 ? D : void 0,
|
|
48461
48461
|
fill: (j = (O = f == null ? void 0 : f.group) === null || O === void 0 ? void 0 : O.fill) !== null && j !== void 0 ? j : void 0,
|
|
48462
|
-
stroke: ($ = (
|
|
48462
|
+
stroke: ($ = (W = f == null ? void 0 : f.group) === null || W === void 0 ? void 0 : W.stroke) !== null && $ !== void 0 ? $ : void 0,
|
|
48463
48463
|
strokeArrayWidth: nt,
|
|
48464
48464
|
strokeArrayColor: (Y = (K = f == null ? void 0 : f.group) === null || K === void 0 ? void 0 : K.strokeArrayColor) !== null && Y !== void 0 ? Y : void 0,
|
|
48465
48465
|
cursor: (G = (V = f == null ? void 0 : f.group) === null || V === void 0 ? void 0 : V.cursor) !== null && G !== void 0 ? G : void 0,
|
|
@@ -48525,7 +48525,7 @@ function HV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v) {
|
|
|
48525
48525
|
return ut.name = "image", ut.keepAspectRatio = l, ut.textAlign = d, ut.textBaseline = u, ot.appendChild(ut), ot;
|
|
48526
48526
|
}
|
|
48527
48527
|
function LV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v, m, b) {
|
|
48528
|
-
var y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j,
|
|
48528
|
+
var y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j, W, $, K, Y, V, G, Z, it, pt, _t, nt, ot;
|
|
48529
48529
|
const wt = i._getCellStyle(r, s), St = _f("padding", wt, r, s, i);
|
|
48530
48530
|
z(St) && (d = St), !((y = v == null ? void 0 : v.text) === null || y === void 0) && y.textAlign && (u = (w = v == null ? void 0 : v.text) === null || w === void 0 ? void 0 : w.textAlign), !((C = v == null ? void 0 : v.text) === null || C === void 0) && C.textBaseline && (c = (_ = v == null ? void 0 : v.text) === null || _ === void 0 ? void 0 : _.textBaseline);
|
|
48531
48531
|
const lt = i.isAutoRowHeight(s), rt = l === "auto", ft = (A = wt.autoWrapText) !== null && A !== void 0 ? A : i.internalProps.autoWrapText, ut = wt.lineClamp, At = il(r, s, v, i);
|
|
@@ -48551,7 +48551,7 @@ function LV(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v, m, b) {
|
|
|
48551
48551
|
width: a,
|
|
48552
48552
|
height: h,
|
|
48553
48553
|
lineWidth: (O = (D = v == null ? void 0 : v.group) === null || D === void 0 ? void 0 : D.lineWidth) !== null && O !== void 0 ? O : void 0,
|
|
48554
|
-
fill: (
|
|
48554
|
+
fill: (W = (j = v == null ? void 0 : v.group) === null || j === void 0 ? void 0 : j.fill) !== null && W !== void 0 ? W : void 0,
|
|
48555
48555
|
stroke: (K = ($ = v == null ? void 0 : v.group) === null || $ === void 0 ? void 0 : $.stroke) !== null && K !== void 0 ? K : void 0,
|
|
48556
48556
|
strokeArrayWidth: At ?? void 0,
|
|
48557
48557
|
strokeArrayColor: (V = (Y = v == null ? void 0 : v.group) === null || Y === void 0 ? void 0 : Y.strokeArrayColor) !== null && V !== void 0 ? V : void 0,
|
|
@@ -48622,8 +48622,8 @@ function EV(i, t, e, n, o, r, s, l, a, h) {
|
|
|
48622
48622
|
}
|
|
48623
48623
|
return Number(G);
|
|
48624
48624
|
});
|
|
48625
|
-
const D = ue(Rt("borderLineWidth", t, r, s, a)), O = Math.max(L[0], Math.ceil(D[0] / 2)), j = Math.max(L[1], Math.floor(D[1] / 2)),
|
|
48626
|
-
m -= j + $, b -=
|
|
48625
|
+
const D = ue(Rt("borderLineWidth", t, r, s, a)), O = Math.max(L[0], Math.ceil(D[0] / 2)), j = Math.max(L[1], Math.floor(D[1] / 2)), W = Math.max(L[2], Math.floor(D[2] / 2)), $ = Math.max(L[3], Math.ceil(D[3] / 2));
|
|
48626
|
+
m -= j + $, b -= W + O, s === a.rowCount - 1 && [0, "0"].includes(I) && (b -= 1);
|
|
48627
48627
|
const K = O, Y = $, V = m;
|
|
48628
48628
|
if (typeof E == "string" && Zd.endsWith(E, "%") ? (E = Number(E.substr(0, E.length - 1)), E = b * E / 100) : E = Number(E), typeof I == "string" && Zd.endsWith(I, "%") ? (I = Number(I.substr(0, I.length - 1)), I = b * I / 100) : I = Number(I), vi(C, {
|
|
48629
48629
|
col: r,
|
|
@@ -50808,7 +50808,7 @@ function ux(i, t) {
|
|
|
50808
50808
|
}
|
|
50809
50809
|
class Zh {
|
|
50810
50810
|
constructor(t, e, n, o, r, s, l, a, h, d, u, c, g) {
|
|
50811
|
-
var f, p, v, m, b, y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j,
|
|
50811
|
+
var f, p, v, m, b, y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j, W, $, K, Y, V, G, Z, it, pt, _t, nt, ot, wt;
|
|
50812
50812
|
this.tree = {}, this.changedTree = {}, this.colFlatKeys = {}, this.rowFlatKeys = {}, this.colKeys = [], this.rowKeys = [], this.colKeys_normal = [], this.rowKeys_normal = [], this.rowOrder = "key_a_to_z", this.colOrder = "key_a_to_z", this.sorted = !1, this.indicatorStatistics = [], this.aggregators = {}, this.stringJoinChar = String.fromCharCode(0), this.rowsIsTotal = [], this.colsIsTotal = [], this.collectedValues = {}, this.cacheCollectedValues = {}, this.totalRecordsTree = {}, this.registerAggregators(), this.dataConfig = t, this.filterRules = (f = this.dataConfig) === null || f === void 0 ? void 0 : f.filterRules, this.rowHierarchyType = a ?? "grid", this.sortRules = (p = this.dataConfig) === null || p === void 0 ? void 0 : p.sortRules, this.aggregationRules = (v = this.dataConfig) === null || v === void 0 ? void 0 : v.aggregationRules, this.derivedFieldRules = (m = this.dataConfig) === null || m === void 0 ? void 0 : m.derivedFieldRules, this.mappingRules = (b = this.dataConfig) === null || b === void 0 ? void 0 : b.mappingRules, this.calculatedFieldRules = (y = this.dataConfig) === null || y === void 0 ? void 0 : y.calculatedFieldRules, this.calculatedFiledKeys = (C = (w = this.calculatedFieldRules) === null || w === void 0 ? void 0 : w.map((St) => St.key)) !== null && C !== void 0 ? C : [], this.calculatedFieldDependIndicatorKeys = (A = (_ = this.calculatedFieldRules) === null || _ === void 0 ? void 0 : _.reduce((St, lt) => {
|
|
50813
50813
|
for (let rt = 0; rt < lt.dependIndicatorKeys.length; rt++)
|
|
50814
50814
|
St.indexOf(lt.dependIndicatorKeys[rt]) === -1 && St.push(lt.dependIndicatorKeys[rt]);
|
|
@@ -50816,7 +50816,7 @@ class Zh {
|
|
|
50816
50816
|
}, [])) !== null && A !== void 0 ? A : [], this.totals = (x = this.dataConfig) === null || x === void 0 ? void 0 : x.totals, this.rows = e, this.columns = n, this.indicatorKeys = o, this.indicatorKeysIncludeCalculatedFieldDependIndicatorKeys = [...o];
|
|
50817
50817
|
for (let St = 0; St < this.calculatedFieldDependIndicatorKeys.length; St++)
|
|
50818
50818
|
this.indicatorKeysIncludeCalculatedFieldDependIndicatorKeys.indexOf(this.calculatedFieldDependIndicatorKeys[St]) === -1 && this.indicatorKeysIncludeCalculatedFieldDependIndicatorKeys.push(this.calculatedFieldDependIndicatorKeys[St]);
|
|
50819
|
-
if (this.indicatorsAsCol = s, this.indicators = r, this.customColTree = h, this.customRowTree = d, this.hasExtensionRowTree = c, this.parseCustomTreeToMatchRecords = g, this.parseCustomTreeToMatchRecords && (this.customColTreeDimensionPaths = this.customTreeToDimensionPathArr(this.customColTree, "col"), this.hasExtensionRowTree || (this.customRowTreeDimensionPaths = this.customTreeToDimensionPathArr(this.customRowTree, "row"))), this.colGrandTotalLabel = (T = (R = (S = this.totals) === null || S === void 0 ? void 0 : S.column) === null || R === void 0 ? void 0 : R.grandTotalLabel) !== null && T !== void 0 ? T : "总计", this.colSubTotalLabel = (F = (B = (M = this.totals) === null || M === void 0 ? void 0 : M.column) === null || B === void 0 ? void 0 : B.subTotalLabel) !== null && F !== void 0 ? F : "小计", this.rowGrandTotalLabel = (E = (H = (P = this.totals) === null || P === void 0 ? void 0 : P.row) === null || H === void 0 ? void 0 : H.grandTotalLabel) !== null && E !== void 0 ? E : "总计", this.rowSubTotalLabel = (D = (L = (I = this.totals) === null || I === void 0 ? void 0 : I.row) === null || L === void 0 ? void 0 : L.subTotalLabel) !== null && D !== void 0 ? D : "小计", this.collectValuesBy = (O = this.dataConfig) === null || O === void 0 ? void 0 : O.collectValuesBy, this.needSplitPositiveAndNegative = u != null && u, this.rowsIsTotal = new Array((
|
|
50819
|
+
if (this.indicatorsAsCol = s, this.indicators = r, this.customColTree = h, this.customRowTree = d, this.hasExtensionRowTree = c, this.parseCustomTreeToMatchRecords = g, this.parseCustomTreeToMatchRecords && (this.customColTreeDimensionPaths = this.customTreeToDimensionPathArr(this.customColTree, "col"), this.hasExtensionRowTree || (this.customRowTreeDimensionPaths = this.customTreeToDimensionPathArr(this.customRowTree, "row"))), this.colGrandTotalLabel = (T = (R = (S = this.totals) === null || S === void 0 ? void 0 : S.column) === null || R === void 0 ? void 0 : R.grandTotalLabel) !== null && T !== void 0 ? T : "总计", this.colSubTotalLabel = (F = (B = (M = this.totals) === null || M === void 0 ? void 0 : M.column) === null || B === void 0 ? void 0 : B.subTotalLabel) !== null && F !== void 0 ? F : "小计", this.rowGrandTotalLabel = (E = (H = (P = this.totals) === null || P === void 0 ? void 0 : P.row) === null || H === void 0 ? void 0 : H.grandTotalLabel) !== null && E !== void 0 ? E : "总计", this.rowSubTotalLabel = (D = (L = (I = this.totals) === null || I === void 0 ? void 0 : I.row) === null || L === void 0 ? void 0 : L.subTotalLabel) !== null && D !== void 0 ? D : "小计", this.collectValuesBy = (O = this.dataConfig) === null || O === void 0 ? void 0 : O.collectValuesBy, this.needSplitPositiveAndNegative = u != null && u, this.rowsIsTotal = new Array((W = (j = this.rows) === null || j === void 0 ? void 0 : j.length) !== null && W !== void 0 ? W : 0).fill(!1), this.colsIsTotal = new Array((K = ($ = this.columns) === null || $ === void 0 ? void 0 : $.length) !== null && K !== void 0 ? K : 0).fill(!1), ((Y = this.totals) === null || Y === void 0 ? void 0 : Y.row) && this.totals.row.showSubTotals !== !1 && this.totals.row.subTotalsDimensions)
|
|
50820
50820
|
for (let St = 0, lt = (it = (Z = (G = (V = this.totals) === null || V === void 0 ? void 0 : V.row) === null || G === void 0 ? void 0 : G.subTotalsDimensions) === null || Z === void 0 ? void 0 : Z.length) !== null && it !== void 0 ? it : 0; St < lt; St++) {
|
|
50821
50821
|
const rt = this.totals.row.subTotalsDimensions[St], ft = this.rows.indexOf(rt);
|
|
50822
50822
|
this.rowsIsTotal[ft] = !0;
|
|
@@ -50909,7 +50909,7 @@ class Zh {
|
|
|
50909
50909
|
return o;
|
|
50910
50910
|
}
|
|
50911
50911
|
processRecord(t, e) {
|
|
50912
|
-
var n, o, r, s, l, a, h, d, u, c, g, f, p, v, m, b, y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j,
|
|
50912
|
+
var n, o, r, s, l, a, h, d, u, c, g, f, p, v, m, b, y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j, W, $, K, Y, V, G, Z, it, pt, _t, nt, ot, wt, St, lt, rt, ft, ut, At, gt, Vt, Jt, xt, Ft, Nt, ce, ge, He, Je;
|
|
50913
50913
|
(n = this.derivedFieldRules) === null || n === void 0 || n.forEach((Ct, It) => {
|
|
50914
50914
|
Ct.fieldName && Ct.derivedFunc && (t[Ct.fieldName] = Ct.derivedFunc(t));
|
|
50915
50915
|
});
|
|
@@ -51036,7 +51036,7 @@ class Zh {
|
|
|
51036
51036
|
!((I = (E = this.totalRecordsTree[te]) === null || E === void 0 ? void 0 : E[Kt]) === null || I === void 0) && I[qt] || (this.totalRecordsTree[te][Kt][qt] = new this.aggregators[(L = ve == null ? void 0 : ve.aggregationType) !== null && L !== void 0 ? L : Ut.SUM]({
|
|
51037
51037
|
key: jt[qt],
|
|
51038
51038
|
dimension: (D = ve == null ? void 0 : ve.field) !== null && D !== void 0 ? D : jt[qt],
|
|
51039
|
-
formatFun: (O = ve == null ? void 0 : ve.formatFun) !== null && O !== void 0 ? O : (
|
|
51039
|
+
formatFun: (O = ve == null ? void 0 : ve.formatFun) !== null && O !== void 0 ? O : (W = (j = this.indicators) === null || j === void 0 ? void 0 : j.find((Wi) => typeof Wi != "string" && Wi.indicatorKey === jt[qt])) === null || W === void 0 ? void 0 : W.format
|
|
51040
51040
|
})), jt[qt] in t && ((K = ($ = this.totalRecordsTree[te]) === null || $ === void 0 ? void 0 : $[Kt]) === null || K === void 0 || K[qt].push(t));
|
|
51041
51041
|
}
|
|
51042
51042
|
return;
|
|
@@ -51222,7 +51222,7 @@ class Zh {
|
|
|
51222
51222
|
totalStatistics() {
|
|
51223
51223
|
var t, e, n, o, r, s, l, a, h, d, u, c, g, f;
|
|
51224
51224
|
const p = this, v = (m, b) => {
|
|
51225
|
-
var y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j,
|
|
51225
|
+
var y, w, C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j, W, $, K, Y, V, G, Z, it, pt, _t, nt, ot, wt, St, lt, rt, ft, ut, At, gt, Vt, Jt, xt, Ft, Nt, ce, ge, He, Je, ze;
|
|
51226
51226
|
if (!((w = (y = this.totalRecordsTree) === null || y === void 0 ? void 0 : y[m]) === null || w === void 0) && w[b])
|
|
51227
51227
|
return this.tree[m] || (this.tree[m] = {}), void (this.tree[m][b] = (_ = (C = this.totalRecordsTree) === null || C === void 0 ? void 0 : C[m]) === null || _ === void 0 ? void 0 : _[b]);
|
|
51228
51228
|
const Ve = b.split(this.stringJoinChar);
|
|
@@ -51244,7 +51244,7 @@ class Zh {
|
|
|
51244
51244
|
key: te[Kt],
|
|
51245
51245
|
dimension: te[Kt],
|
|
51246
51246
|
isRecord: !0,
|
|
51247
|
-
formatFun: (
|
|
51247
|
+
formatFun: (W = (j = this.indicators) === null || j === void 0 ? void 0 : j.find((jt) => typeof jt != "string" && jt.indicatorKey === te[Kt])) === null || W === void 0 ? void 0 : W.format,
|
|
51248
51248
|
calculateFun: ct == null ? void 0 : ct.calculateFun,
|
|
51249
51249
|
dependAggregators: this.tree[m][xe],
|
|
51250
51250
|
dependIndicatorKeys: ct == null ? void 0 : ct.dependIndicatorKeys
|
|
@@ -51298,7 +51298,7 @@ class Zh {
|
|
|
51298
51298
|
Object.keys(p.tree).forEach((b) => {
|
|
51299
51299
|
const y = b.split(this.stringJoinChar);
|
|
51300
51300
|
Object.keys(p.tree[b]).forEach((w) => {
|
|
51301
|
-
var C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j,
|
|
51301
|
+
var C, _, A, x, S, R, T, M, B, F, P, H, E, I, L, D, O, j, W, $, K, Y, V, G, Z, it, pt, _t, nt, ot;
|
|
51302
51302
|
if (!((_ = (C = p.totals) === null || C === void 0 ? void 0 : C.row) === null || _ === void 0) && _.subTotalsDimensions && ((S = (x = (A = p.totals) === null || A === void 0 ? void 0 : A.row) === null || x === void 0 ? void 0 : x.subTotalsDimensions) === null || S === void 0 ? void 0 : S.length) > 0 && p.totals.row.showSubTotals !== !1)
|
|
51303
51303
|
for (let wt = 0, St = (M = (T = (R = p.totals) === null || R === void 0 ? void 0 : R.row) === null || T === void 0 ? void 0 : T.subTotalsDimensions) === null || M === void 0 ? void 0 : M.length; wt < St; wt++) {
|
|
51304
51304
|
const lt = p.totals.row.subTotalsDimensions[wt], rt = p.rows.indexOf(lt);
|
|
@@ -51333,7 +51333,7 @@ class Zh {
|
|
|
51333
51333
|
}
|
|
51334
51334
|
}
|
|
51335
51335
|
}
|
|
51336
|
-
if (!(($ = (
|
|
51336
|
+
if (!(($ = (W = p.totals) === null || W === void 0 ? void 0 : W.row) === null || $ === void 0) && $.showGrandTotals || this.columns.length === 0) {
|
|
51337
51337
|
const wt = p.rowGrandTotalLabel;
|
|
51338
51338
|
this.tree[wt] || (this.tree[wt] = {}, m.push(wt)), this.tree[wt][w] || (this.tree[wt][w] = []);
|
|
51339
51339
|
const St = this.indicatorKeysIncludeCalculatedFieldDependIndicatorKeys;
|
|
@@ -52733,7 +52733,7 @@ let NV = class extends xf {
|
|
|
52733
52733
|
sumBy: (S == null ? void 0 : S.stack) && t.concat(S == null ? void 0 : S.xField)
|
|
52734
52734
|
}, S.series)
|
|
52735
52735
|
S.series.forEach((R) => {
|
|
52736
|
-
var T, M, B, F, P, H, E, I, L, D, O, j,
|
|
52736
|
+
var T, M, B, F, P, H, E, I, L, D, O, j, W, $;
|
|
52737
52737
|
const K = typeof R.xField == "string" ? R.xField : R.xField[0];
|
|
52738
52738
|
C[K] = {
|
|
52739
52739
|
by: t,
|
|
@@ -52746,7 +52746,7 @@ let NV = class extends xf {
|
|
|
52746
52746
|
by: e,
|
|
52747
52747
|
range: fs(R, this._axes, R.direction === "horizontal", !1),
|
|
52748
52748
|
sumBy: R.stack && t.concat(R == null ? void 0 : R.xField),
|
|
52749
|
-
sortBy: R.direction === "horizontal" ? (O = (D = (L = (I = R == null ? void 0 : R.data) === null || I === void 0 ? void 0 : I.fields) === null || L === void 0 ? void 0 : L[Y]) === null || D === void 0 ? void 0 : D.domain) !== null && O !== void 0 ? O : ($ = (
|
|
52749
|
+
sortBy: R.direction === "horizontal" ? (O = (D = (L = (I = R == null ? void 0 : R.data) === null || I === void 0 ? void 0 : I.fields) === null || L === void 0 ? void 0 : L[Y]) === null || D === void 0 ? void 0 : D.domain) !== null && O !== void 0 ? O : ($ = (W = (j = S == null ? void 0 : S.data) === null || j === void 0 ? void 0 : j.fields) === null || W === void 0 ? void 0 : W[Y]) === null || $ === void 0 ? void 0 : $.domain : void 0,
|
|
52750
52750
|
extendRange: tu(S.markLine)
|
|
52751
52751
|
};
|
|
52752
52752
|
});
|
|
@@ -52775,7 +52775,7 @@ let NV = class extends xf {
|
|
|
52775
52775
|
sumBy: (S == null ? void 0 : S.stack) && e.concat(S == null ? void 0 : S.yField)
|
|
52776
52776
|
}, S.series)
|
|
52777
52777
|
S.series.forEach((T) => {
|
|
52778
|
-
var M, B, F, P, H, E, I, L, D, O, j,
|
|
52778
|
+
var M, B, F, P, H, E, I, L, D, O, j, W, $, K;
|
|
52779
52779
|
const Y = typeof T.yField == "string" ? T.yField : T.yField[0];
|
|
52780
52780
|
C[Y] = {
|
|
52781
52781
|
by: e,
|
|
@@ -52788,7 +52788,7 @@ let NV = class extends xf {
|
|
|
52788
52788
|
by: t,
|
|
52789
52789
|
range: fs(T, this._axes, T.direction === "horizontal", !0),
|
|
52790
52790
|
sumBy: T.stack && e.concat(T == null ? void 0 : T.yField),
|
|
52791
|
-
sortBy: T.direction !== "horizontal" ? (j = (O = (D = (L = T == null ? void 0 : T.data) === null || L === void 0 ? void 0 : L.fields) === null || D === void 0 ? void 0 : D[V]) === null || O === void 0 ? void 0 : O.domain) !== null && j !== void 0 ? j : (K = ($ = (
|
|
52791
|
+
sortBy: T.direction !== "horizontal" ? (j = (O = (D = (L = T == null ? void 0 : T.data) === null || L === void 0 ? void 0 : L.fields) === null || D === void 0 ? void 0 : D[V]) === null || O === void 0 ? void 0 : O.domain) !== null && j !== void 0 ? j : (K = ($ = (W = S == null ? void 0 : S.data) === null || W === void 0 ? void 0 : W.fields) === null || $ === void 0 ? void 0 : $[V]) === null || K === void 0 ? void 0 : K.domain : void 0,
|
|
52792
52792
|
extendRange: tu(S.markLine)
|
|
52793
52793
|
};
|
|
52794
52794
|
});
|
|
@@ -53161,7 +53161,7 @@ function t$(i, t, e) {
|
|
|
53161
53161
|
sumBy: ((o = B.chartSpec) === null || o === void 0 ? void 0 : o.stack) !== !1 && t.concat((r = B.chartSpec) === null || r === void 0 ? void 0 : r.xField)
|
|
53162
53162
|
}, B.chartSpec.series)
|
|
53163
53163
|
B.chartSpec.series.forEach((F) => {
|
|
53164
|
-
var P, H, E, I, L, D, O, j,
|
|
53164
|
+
var P, H, E, I, L, D, O, j, W, $, K, Y, V, G, Z, it;
|
|
53165
53165
|
const pt = typeof F.xField == "string" ? F.xField : F.xField[0];
|
|
53166
53166
|
R[pt] = {
|
|
53167
53167
|
by: t,
|
|
@@ -53174,7 +53174,7 @@ function t$(i, t, e) {
|
|
|
53174
53174
|
by: e,
|
|
53175
53175
|
range: F.direction !== "horizontal",
|
|
53176
53176
|
sumBy: F.stack !== !1 && t.concat(F == null ? void 0 : F.xField),
|
|
53177
|
-
sortBy: F.direction === "horizontal" ? (Y = (K = ($ = (
|
|
53177
|
+
sortBy: F.direction === "horizontal" ? (Y = (K = ($ = (W = F == null ? void 0 : F.data) === null || W === void 0 ? void 0 : W.fields) === null || $ === void 0 ? void 0 : $[_t]) === null || K === void 0 ? void 0 : K.domain) !== null && Y !== void 0 ? Y : (it = (Z = (G = (V = B.chartSpec) === null || V === void 0 ? void 0 : V.data) === null || G === void 0 ? void 0 : G.fields) === null || Z === void 0 ? void 0 : Z[_t]) === null || it === void 0 ? void 0 : it.domain : void 0
|
|
53178
53178
|
};
|
|
53179
53179
|
});
|
|
53180
53180
|
else {
|
|
@@ -53201,7 +53201,7 @@ function t$(i, t, e) {
|
|
|
53201
53201
|
sumBy: ((p = B.chartSpec) === null || p === void 0 ? void 0 : p.stack) !== !1 && e.concat((v = B.chartSpec) === null || v === void 0 ? void 0 : v.yField)
|
|
53202
53202
|
}, B.chartSpec.series)
|
|
53203
53203
|
B.chartSpec.series.forEach((F) => {
|
|
53204
|
-
var P, H, E, I, L, D, O, j,
|
|
53204
|
+
var P, H, E, I, L, D, O, j, W, $, K, Y, V, G, Z, it;
|
|
53205
53205
|
const pt = typeof F.yField == "string" ? F.yField : F.yField[0];
|
|
53206
53206
|
R[pt] = {
|
|
53207
53207
|
by: e,
|
|
@@ -53214,7 +53214,7 @@ function t$(i, t, e) {
|
|
|
53214
53214
|
by: t,
|
|
53215
53215
|
range: F.direction === "horizontal",
|
|
53216
53216
|
sumBy: F.stack !== !1 && e.concat(F == null ? void 0 : F.yField),
|
|
53217
|
-
sortBy: F.direction !== "horizontal" ? (Y = (K = ($ = (
|
|
53217
|
+
sortBy: F.direction !== "horizontal" ? (Y = (K = ($ = (W = F == null ? void 0 : F.data) === null || W === void 0 ? void 0 : W.fields) === null || $ === void 0 ? void 0 : $[_t]) === null || K === void 0 ? void 0 : K.domain) !== null && Y !== void 0 ? Y : (it = (Z = (G = (V = B.chartSpec) === null || V === void 0 ? void 0 : V.data) === null || G === void 0 ? void 0 : G.fields) === null || Z === void 0 ? void 0 : Z[_t]) === null || it === void 0 ? void 0 : it.domain : void 0
|
|
53218
53218
|
};
|
|
53219
53219
|
});
|
|
53220
53220
|
else {
|
|
@@ -53544,7 +53544,7 @@ const g$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
53544
53544
|
validateStatus(i) {
|
|
53545
53545
|
return i === 200;
|
|
53546
53546
|
},
|
|
53547
|
-
timeout: 1e3 *
|
|
53547
|
+
timeout: 1e3 * 60
|
|
53548
53548
|
});
|
|
53549
53549
|
Fr.interceptors.request.use((i) => i, (i) => Promise.reject(i));
|
|
53550
53550
|
Fr.interceptors.response.use((i) => {
|
|
@@ -53746,7 +53746,7 @@ const p$ = Ze({
|
|
|
53746
53746
|
}
|
|
53747
53747
|
} else
|
|
53748
53748
|
v.value = {};
|
|
53749
|
-
},
|
|
53749
|
+
}, W = oe(() => {
|
|
53750
53750
|
let V = "270px";
|
|
53751
53751
|
return k(u) === "date" && (V = ""), {
|
|
53752
53752
|
padding: "10px",
|
|
@@ -53785,7 +53785,7 @@ const p$ = Ze({
|
|
|
53785
53785
|
valueList: d,
|
|
53786
53786
|
filterType: u,
|
|
53787
53787
|
dateSelectType: c,
|
|
53788
|
-
bodyStyle:
|
|
53788
|
+
bodyStyle: W,
|
|
53789
53789
|
dateType: K,
|
|
53790
53790
|
dateSelectOptions: T,
|
|
53791
53791
|
formatStr: H,
|
|
@@ -56456,8 +56456,8 @@ function jK(i) {
|
|
|
56456
56456
|
if (Y)
|
|
56457
56457
|
return S = Y, "break";
|
|
56458
56458
|
}, j = D; j > 0; j--) {
|
|
56459
|
-
var
|
|
56460
|
-
if (
|
|
56459
|
+
var W = O(j);
|
|
56460
|
+
if (W === "break")
|
|
56461
56461
|
break;
|
|
56462
56462
|
}
|
|
56463
56463
|
t.placement !== S && (t.modifiersData[n]._skip = !0, t.placement = S, t.reset = !0);
|
|
@@ -56576,7 +56576,7 @@ function JK(i) {
|
|
|
56576
56576
|
};
|
|
56577
56577
|
if (_) {
|
|
56578
56578
|
if (r) {
|
|
56579
|
-
var B, F = w === "y" ? Rn : Tn, P = w === "y" ? po : vo, H = w === "y" ? "height" : "width", E = _[w], I = E + v[F], L = E - v[P], D = g ? -x[H] / 2 : 0, O = b === sa ? A[H] : x[H], j = b === sa ? -x[H] : -A[H],
|
|
56579
|
+
var B, F = w === "y" ? Rn : Tn, P = w === "y" ? po : vo, H = w === "y" ? "height" : "width", E = _[w], I = E + v[F], L = E - v[P], D = g ? -x[H] / 2 : 0, O = b === sa ? A[H] : x[H], j = b === sa ? -x[H] : -A[H], W = t.elements.arrow, $ = g && W ? qb(W) : {
|
|
56580
56580
|
width: 0,
|
|
56581
56581
|
height: 0
|
|
56582
56582
|
}, K = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : q2(), Y = K[F], V = K[P], G = Ch(0, A[H], $[H]), Z = y ? A[H] / 2 - D - G - Y - R.mainAxis : O - G - Y - R.mainAxis, it = y ? -A[H] / 2 + D + G + V + R.mainAxis : j + G + V + R.mainAxis, pt = t.elements.arrow && wd(t.elements.arrow), _t = pt ? w === "y" ? pt.clientTop || 0 : pt.clientLeft || 0 : 0, nt = (B = T == null ? void 0 : T[w]) != null ? B : 0, ot = E + Z - nt - _t, wt = E + it - nt, St = Ch(g ? Dg(I, ot) : I, E, g ? Vs(L, wt) : L);
|
|
@@ -56875,7 +56875,7 @@ var iB = { exports: {} }, rA = { exports: {} };
|
|
|
56875
56875
|
};
|
|
56876
56876
|
}
|
|
56877
56877
|
function g(L, D, O, j) {
|
|
56878
|
-
var
|
|
56878
|
+
var W = D && D.prototype instanceof w ? D : w, $ = Object.create(W.prototype), K = new E(j || []);
|
|
56879
56879
|
return l($, "_invoke", { value: B(L, O, K) }), $;
|
|
56880
56880
|
}
|
|
56881
56881
|
function f(L, D, O) {
|
|
@@ -56908,8 +56908,8 @@ var iB = { exports: {} }, rA = { exports: {} };
|
|
|
56908
56908
|
});
|
|
56909
56909
|
}
|
|
56910
56910
|
function M(L, D) {
|
|
56911
|
-
function O(
|
|
56912
|
-
var V = f(L[
|
|
56911
|
+
function O(W, $, K, Y) {
|
|
56912
|
+
var V = f(L[W], L, $);
|
|
56913
56913
|
if (V.type !== "throw") {
|
|
56914
56914
|
var G = V.arg, Z = G.value;
|
|
56915
56915
|
return Z && t(Z) == "object" && s.call(Z, "__await") ? D.resolve(Z.__await).then(function(it) {
|
|
@@ -56925,10 +56925,10 @@ var iB = { exports: {} }, rA = { exports: {} };
|
|
|
56925
56925
|
Y(V.arg);
|
|
56926
56926
|
}
|
|
56927
56927
|
var j;
|
|
56928
|
-
l(this, "_invoke", { value: function(
|
|
56928
|
+
l(this, "_invoke", { value: function(W, $) {
|
|
56929
56929
|
function K() {
|
|
56930
56930
|
return new D(function(Y, V) {
|
|
56931
|
-
O(
|
|
56931
|
+
O(W, $, Y, V);
|
|
56932
56932
|
});
|
|
56933
56933
|
}
|
|
56934
56934
|
return j = j ? j.then(K, K) : K();
|
|
@@ -56936,15 +56936,15 @@ var iB = { exports: {} }, rA = { exports: {} };
|
|
|
56936
56936
|
}
|
|
56937
56937
|
function B(L, D, O) {
|
|
56938
56938
|
var j = p;
|
|
56939
|
-
return function(
|
|
56939
|
+
return function(W, $) {
|
|
56940
56940
|
if (j === m)
|
|
56941
56941
|
throw Error("Generator is already running");
|
|
56942
56942
|
if (j === b) {
|
|
56943
|
-
if (
|
|
56943
|
+
if (W === "throw")
|
|
56944
56944
|
throw $;
|
|
56945
56945
|
return { value: n, done: !0 };
|
|
56946
56946
|
}
|
|
56947
|
-
for (O.method =
|
|
56947
|
+
for (O.method = W, O.arg = $; ; ) {
|
|
56948
56948
|
var K = O.delegate;
|
|
56949
56949
|
if (K) {
|
|
56950
56950
|
var Y = F(K, O);
|
|
@@ -56977,10 +56977,10 @@ var iB = { exports: {} }, rA = { exports: {} };
|
|
|
56977
56977
|
var O = D.method, j = L.iterator[O];
|
|
56978
56978
|
if (j === n)
|
|
56979
56979
|
return D.delegate = null, O === "throw" && L.iterator.return && (D.method = "return", D.arg = n, F(L, D), D.method === "throw") || O !== "return" && (D.method = "throw", D.arg = new TypeError("The iterator does not provide a '" + O + "' method")), y;
|
|
56980
|
-
var
|
|
56981
|
-
if (
|
|
56982
|
-
return D.method = "throw", D.arg =
|
|
56983
|
-
var $ =
|
|
56980
|
+
var W = f(j, L.iterator, D.arg);
|
|
56981
|
+
if (W.type === "throw")
|
|
56982
|
+
return D.method = "throw", D.arg = W.arg, D.delegate = null, y;
|
|
56983
|
+
var $ = W.arg;
|
|
56984
56984
|
return $ ? $.done ? (D[L.resultName] = $.value, D.next = L.nextLoc, D.method !== "return" && (D.method = "next", D.arg = n), D.delegate = null, y) : $ : (D.method = "throw", D.arg = new TypeError("iterator result is not an object"), D.delegate = null, y);
|
|
56985
56985
|
}
|
|
56986
56986
|
function P(L) {
|
|
@@ -57002,11 +57002,11 @@ var iB = { exports: {} }, rA = { exports: {} };
|
|
|
57002
57002
|
if (typeof L.next == "function")
|
|
57003
57003
|
return L;
|
|
57004
57004
|
if (!isNaN(L.length)) {
|
|
57005
|
-
var O = -1, j = function
|
|
57005
|
+
var O = -1, j = function W() {
|
|
57006
57006
|
for (; ++O < L.length; )
|
|
57007
57007
|
if (s.call(L, O))
|
|
57008
|
-
return
|
|
57009
|
-
return
|
|
57008
|
+
return W.value = L[O], W.done = !1, W;
|
|
57009
|
+
return W.value = n, W.done = !0, W;
|
|
57010
57010
|
};
|
|
57011
57011
|
return j.next = j;
|
|
57012
57012
|
}
|
|
@@ -57022,9 +57022,9 @@ var iB = { exports: {} }, rA = { exports: {} };
|
|
|
57022
57022
|
return { __await: L };
|
|
57023
57023
|
}, T(M.prototype), c(M.prototype, d, function() {
|
|
57024
57024
|
return this;
|
|
57025
|
-
}), o.AsyncIterator = M, o.async = function(L, D, O, j,
|
|
57026
|
-
|
|
57027
|
-
var $ = new M(g(L, D, O, j),
|
|
57025
|
+
}), o.AsyncIterator = M, o.async = function(L, D, O, j, W) {
|
|
57026
|
+
W === void 0 && (W = Promise);
|
|
57027
|
+
var $ = new M(g(L, D, O, j), W);
|
|
57028
57028
|
return o.isGeneratorFunction(D) ? $ : $.next().then(function(K) {
|
|
57029
57029
|
return K.done ? K.value : $.next();
|
|
57030
57030
|
});
|
|
@@ -57036,13 +57036,13 @@ var iB = { exports: {} }, rA = { exports: {} };
|
|
|
57036
57036
|
var D = Object(L), O = [];
|
|
57037
57037
|
for (var j in D)
|
|
57038
57038
|
O.push(j);
|
|
57039
|
-
return O.reverse(), function
|
|
57039
|
+
return O.reverse(), function W() {
|
|
57040
57040
|
for (; O.length; ) {
|
|
57041
57041
|
var $ = O.pop();
|
|
57042
57042
|
if ($ in D)
|
|
57043
|
-
return
|
|
57043
|
+
return W.value = $, W.done = !1, W;
|
|
57044
57044
|
}
|
|
57045
|
-
return
|
|
57045
|
+
return W.done = !0, W;
|
|
57046
57046
|
};
|
|
57047
57047
|
}, o.values = I, E.prototype = { constructor: E, reset: function(L) {
|
|
57048
57048
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach(H), !L)
|
|
@@ -57062,24 +57062,24 @@ var iB = { exports: {} }, rA = { exports: {} };
|
|
|
57062
57062
|
return $.type = "throw", $.arg = L, D.next = V, G && (D.method = "next", D.arg = n), !!G;
|
|
57063
57063
|
}
|
|
57064
57064
|
for (var j = this.tryEntries.length - 1; j >= 0; --j) {
|
|
57065
|
-
var
|
|
57066
|
-
if (
|
|
57065
|
+
var W = this.tryEntries[j], $ = W.completion;
|
|
57066
|
+
if (W.tryLoc === "root")
|
|
57067
57067
|
return O("end");
|
|
57068
|
-
if (
|
|
57069
|
-
var K = s.call(
|
|
57068
|
+
if (W.tryLoc <= this.prev) {
|
|
57069
|
+
var K = s.call(W, "catchLoc"), Y = s.call(W, "finallyLoc");
|
|
57070
57070
|
if (K && Y) {
|
|
57071
|
-
if (this.prev <
|
|
57072
|
-
return O(
|
|
57073
|
-
if (this.prev <
|
|
57074
|
-
return O(
|
|
57071
|
+
if (this.prev < W.catchLoc)
|
|
57072
|
+
return O(W.catchLoc, !0);
|
|
57073
|
+
if (this.prev < W.finallyLoc)
|
|
57074
|
+
return O(W.finallyLoc);
|
|
57075
57075
|
} else if (K) {
|
|
57076
|
-
if (this.prev <
|
|
57077
|
-
return O(
|
|
57076
|
+
if (this.prev < W.catchLoc)
|
|
57077
|
+
return O(W.catchLoc, !0);
|
|
57078
57078
|
} else {
|
|
57079
57079
|
if (!Y)
|
|
57080
57080
|
throw Error("try statement without catch or finally");
|
|
57081
|
-
if (this.prev <
|
|
57082
|
-
return O(
|
|
57081
|
+
if (this.prev < W.finallyLoc)
|
|
57082
|
+
return O(W.finallyLoc);
|
|
57083
57083
|
}
|
|
57084
57084
|
}
|
|
57085
57085
|
}
|
|
@@ -57087,13 +57087,13 @@ var iB = { exports: {} }, rA = { exports: {} };
|
|
|
57087
57087
|
for (var O = this.tryEntries.length - 1; O >= 0; --O) {
|
|
57088
57088
|
var j = this.tryEntries[O];
|
|
57089
57089
|
if (j.tryLoc <= this.prev && s.call(j, "finallyLoc") && this.prev < j.finallyLoc) {
|
|
57090
|
-
var
|
|
57090
|
+
var W = j;
|
|
57091
57091
|
break;
|
|
57092
57092
|
}
|
|
57093
57093
|
}
|
|
57094
|
-
|
|
57095
|
-
var $ =
|
|
57096
|
-
return $.type = L, $.arg = D,
|
|
57094
|
+
W && (L === "break" || L === "continue") && W.tryLoc <= D && D <= W.finallyLoc && (W = null);
|
|
57095
|
+
var $ = W ? W.completion : {};
|
|
57096
|
+
return $.type = L, $.arg = D, W ? (this.method = "next", this.next = W.finallyLoc, y) : this.complete($);
|
|
57097
57097
|
}, complete: function(L, D) {
|
|
57098
57098
|
if (L.type === "throw")
|
|
57099
57099
|
throw L.arg;
|
|
@@ -57110,10 +57110,10 @@ var iB = { exports: {} }, rA = { exports: {} };
|
|
|
57110
57110
|
if (O.tryLoc === L) {
|
|
57111
57111
|
var j = O.completion;
|
|
57112
57112
|
if (j.type === "throw") {
|
|
57113
|
-
var
|
|
57113
|
+
var W = j.arg;
|
|
57114
57114
|
H(O);
|
|
57115
57115
|
}
|
|
57116
|
-
return
|
|
57116
|
+
return W;
|
|
57117
57117
|
}
|
|
57118
57118
|
}
|
|
57119
57119
|
throw Error("illegal catch attempt");
|
|
@@ -58242,8 +58242,8 @@ const NY = Ze({
|
|
|
58242
58242
|
k(r).forEach(($) => {
|
|
58243
58243
|
$.drillValue && D[$.key] !== $.drillValue && (j = !1);
|
|
58244
58244
|
});
|
|
58245
|
-
const
|
|
58246
|
-
j && !isNaN(
|
|
58245
|
+
const W = Number(D[E]);
|
|
58246
|
+
j && !isNaN(W) && (L[O] += Number(W));
|
|
58247
58247
|
}
|
|
58248
58248
|
}
|
|
58249
58249
|
}), L = L.map((D) => D.toFixed(2)), f = {
|
|
@@ -58858,14 +58858,14 @@ const aX = Ze({
|
|
|
58858
58858
|
const L = P[0], D = H != null && H.length ? H[H.length - 1] : "", O = H.filter((it) => it.dimensionKey).concat(E.filter((it) => it.dimensionKey)).map((it) => it.dimensionKey);
|
|
58859
58859
|
if (!(D != null && D.indicatorKey) || !O.length)
|
|
58860
58860
|
return;
|
|
58861
|
-
const j = M.find((it) => it.label === D.indicatorKey),
|
|
58861
|
+
const j = M.find((it) => it.label === D.indicatorKey), W = {};
|
|
58862
58862
|
for (const it of T)
|
|
58863
58863
|
if (O.includes(it.label)) {
|
|
58864
58864
|
const _t = (L[it.label] || "").split(B) || [];
|
|
58865
|
-
|
|
58865
|
+
W[it.typeGuid] = _t != null && _t.length ? _t[_t.length - 1] : "";
|
|
58866
58866
|
}
|
|
58867
58867
|
const { startTime: $, endTime: K, rangeFormat: Y } = k(u);
|
|
58868
|
-
$ && K && (
|
|
58868
|
+
$ && K && (W.startTime = br($).format(Y), W.endTime = br(K).format(Y));
|
|
58869
58869
|
const V = await Fr.post(
|
|
58870
58870
|
`${k(h)}/diagram/obtainDataSetData`,
|
|
58871
58871
|
{
|
|
@@ -58873,7 +58873,7 @@ const aX = Ze({
|
|
|
58873
58873
|
indexCode: (j == null ? void 0 : j.indexCode) || "",
|
|
58874
58874
|
indexName: j.label,
|
|
58875
58875
|
theFlag: F,
|
|
58876
|
-
param:
|
|
58876
|
+
param: W
|
|
58877
58877
|
},
|
|
58878
58878
|
{
|
|
58879
58879
|
headers: {
|
|
@@ -59963,7 +59963,7 @@ const qX = Ze({
|
|
|
59963
59963
|
IndSourceList: zX,
|
|
59964
59964
|
DragArea: jX,
|
|
59965
59965
|
PivotDetail: uX,
|
|
59966
|
-
DrillModal: XX(() => import("./DrillModal-
|
|
59966
|
+
DrillModal: XX(() => import("./DrillModal-e9b34ae7.mjs")),
|
|
59967
59967
|
SettingOutlined: PU,
|
|
59968
59968
|
DatabaseOutlined: XG,
|
|
59969
59969
|
ArrowsAltOutlined: AG,
|
|
@@ -59977,7 +59977,7 @@ const qX = Ze({
|
|
|
59977
59977
|
},
|
|
59978
59978
|
setup(i, { expose: t, emit: e }) {
|
|
59979
59979
|
let n = null;
|
|
59980
|
-
const o = Q(!1), r = Q(""), s = Q({}), l = Q(), a = Q({}), h = Q({}), d = Q({}), u = Q(), c = Q({}), g = Q(), f = Q(), p = Q(), v = Q(), m = Q(), b = Q(), y = Q(), w = Q(), C = Q(), _ = Q(), A = Q({}), x = Q(!1), S = Q({}), R = Q({}), T = Q({}), M = Q(), B = Q({}), F = Q("200px"), P = Q("200px"), H = Q(300), E = Q({}), I = Q(), L = Q(i.showLeftTree), D = Q(!1), O = Q({}), j = Q(0),
|
|
59980
|
+
const o = Q(!1), r = Q(""), s = Q({}), l = Q(), a = Q({}), h = Q({}), d = Q({}), u = Q(), c = Q({}), g = Q(), f = Q(), p = Q(), v = Q(), m = Q(), b = Q(), y = Q(), w = Q(), C = Q(), _ = Q(), A = Q({}), x = Q(!1), S = Q({}), R = Q({}), T = Q({}), M = Q(), B = Q({}), F = Q("200px"), P = Q("200px"), H = Q(300), E = Q({}), I = Q(), L = Q(i.showLeftTree), D = Q(!1), O = Q({}), j = Q(0), W = Q(0), $ = Q(), K = Q(!1), Y = Q(), V = Q(25), G = Q(!0), Z = Q({
|
|
59981
59981
|
dateFormat: "YYYY-MM-DD"
|
|
59982
59982
|
}), it = Q(16);
|
|
59983
59983
|
let pt = 40;
|
|
@@ -59986,25 +59986,25 @@ const qX = Ze({
|
|
|
59986
59986
|
const ft = Q();
|
|
59987
59987
|
mn("splitSymbol", rt), mn("indicatorUrl", i.indicatorUrl), mn("indicatorToken", i.indicatorToken), mn("theme", i.theme), mn("pageId", i.pageId), mn("context", i.context), mn("graphicConfig", i.graphicConfig), mn("theDateInfo", Z), mn("scaleValue", i.scaleValue), mn("getContainer", () => document.querySelector(i.modalContainer) || document.body);
|
|
59988
59988
|
const ut = Q({}), At = () => {
|
|
59989
|
-
const
|
|
59989
|
+
const N = {
|
|
59990
59990
|
borderColor: k(Nt).borderColor
|
|
59991
59991
|
};
|
|
59992
|
-
ut.value =
|
|
59992
|
+
ut.value = N;
|
|
59993
59993
|
}, gt = oe(() => {
|
|
59994
|
-
let
|
|
59994
|
+
let N = "#ECF1F5";
|
|
59995
59995
|
switch (i.theme) {
|
|
59996
59996
|
case "default":
|
|
59997
|
-
|
|
59997
|
+
N = "#EAF0F9";
|
|
59998
59998
|
break;
|
|
59999
59999
|
case "dark":
|
|
60000
|
-
|
|
60000
|
+
N = "#FFFFFF";
|
|
60001
60001
|
break;
|
|
60002
60002
|
}
|
|
60003
60003
|
return {
|
|
60004
60004
|
// 边框线颜色
|
|
60005
60005
|
borderColor: "#E3E3E3",
|
|
60006
60006
|
// 表头背景色
|
|
60007
|
-
headerBgColor:
|
|
60007
|
+
headerBgColor: N,
|
|
60008
60008
|
// 表头字体颜色
|
|
60009
60009
|
headerColor: "#252525",
|
|
60010
60010
|
// 表格背景色
|
|
@@ -60012,7 +60012,7 @@ const qX = Ze({
|
|
|
60012
60012
|
// 表格字体颜色
|
|
60013
60013
|
bodyColor: "#252525",
|
|
60014
60014
|
// 指标计算列-表头背景色
|
|
60015
|
-
indicatorsHeaderBgColor:
|
|
60015
|
+
indicatorsHeaderBgColor: N,
|
|
60016
60016
|
// 指标计算列-表头字体颜色
|
|
60017
60017
|
indicatorsHeaderColor: "#252525",
|
|
60018
60018
|
// 指标计算列-指标值背景色
|
|
@@ -60020,7 +60020,7 @@ const qX = Ze({
|
|
|
60020
60020
|
// 指标计算列-指标值字体颜色
|
|
60021
60021
|
indicatorsBodyColor: "#252525",
|
|
60022
60022
|
// 聚合行-背景色
|
|
60023
|
-
aggregateBgColor:
|
|
60023
|
+
aggregateBgColor: N,
|
|
60024
60024
|
// 聚合行-字体颜色
|
|
60025
60025
|
aggregateColor: "#252525",
|
|
60026
60026
|
// 排序图标-未激活色
|
|
@@ -60035,8 +60035,8 @@ const qX = Ze({
|
|
|
60035
60035
|
dropDownMenuHightLightColor: "#2E68CF"
|
|
60036
60036
|
};
|
|
60037
60037
|
}), Vt = Q(1), Jt = Q();
|
|
60038
|
-
new ResizeObserver((
|
|
60039
|
-
for (const U of
|
|
60038
|
+
new ResizeObserver((N) => {
|
|
60039
|
+
for (const U of N) {
|
|
60040
60040
|
const { width: q } = U.contentRect;
|
|
60041
60041
|
Jt.value = q, Vt.value++, Bi(() => {
|
|
60042
60042
|
aC();
|
|
@@ -60044,27 +60044,27 @@ const qX = Ze({
|
|
|
60044
60044
|
}
|
|
60045
60045
|
}).observe(document.body);
|
|
60046
60046
|
const Ft = oe(() => {
|
|
60047
|
-
const { width:
|
|
60048
|
-
return
|
|
60047
|
+
const { width: N } = i;
|
|
60048
|
+
return N.includes("%") && Vt.value ? i.isIframeMode ? Jt.value : document.querySelector(`#pivotWrap_${i.id}`).clientWidth : parseFloat(N);
|
|
60049
60049
|
}), Nt = oe(() => {
|
|
60050
60050
|
var J;
|
|
60051
|
-
const
|
|
60051
|
+
const N = {}, { styleConfig: U } = i;
|
|
60052
60052
|
let q = {};
|
|
60053
60053
|
(J = Object.keys(U)) != null && J.length ? q = U : q = k(gt);
|
|
60054
60054
|
for (const X in q)
|
|
60055
|
-
|
|
60056
|
-
return
|
|
60055
|
+
N[X] = q[X] || "transparent";
|
|
60056
|
+
return N;
|
|
60057
60057
|
}), ce = Q({}), ge = () => {
|
|
60058
|
-
const
|
|
60059
|
-
|
|
60058
|
+
const N = ll();
|
|
60059
|
+
N && (k(ce).width = N.width + 2 + "px"), k(ce).backgroundColor = ZC(k(Nt).headerBgColor, 2);
|
|
60060
60060
|
};
|
|
60061
60061
|
Oe(() => i.theme, () => {
|
|
60062
60062
|
n && (n == null || n.updateOption(ct));
|
|
60063
60063
|
});
|
|
60064
60064
|
const He = () => {
|
|
60065
|
-
const { widthScale:
|
|
60066
|
-
if (
|
|
60067
|
-
const q = +(1 /
|
|
60065
|
+
const { widthScale: N, heightScale: U } = i.scaleValue || {};
|
|
60066
|
+
if (N && U) {
|
|
60067
|
+
const q = +(1 / N).toFixed(5), J = +(1 / U).toFixed(5), X = +(parseFloat(i.width) * N).toFixed(2), tt = +(parseFloat(i.height) * U).toFixed(2);
|
|
60068
60068
|
A.value = {
|
|
60069
60069
|
transform: `scale(${q}, ${J})`,
|
|
60070
60070
|
width: X + "px",
|
|
@@ -60072,15 +60072,15 @@ const qX = Ze({
|
|
|
60072
60072
|
left: -(X - parseFloat(i.width)) / 2 + "px",
|
|
60073
60073
|
top: -(tt - parseFloat(i.height)) / 2 + "px",
|
|
60074
60074
|
paddingLeft: k(V) + "px"
|
|
60075
|
-
}, it.value = i.defaultFontSize *
|
|
60075
|
+
}, it.value = i.defaultFontSize * N, pt = (i.defaultFontSize + 30) * U, ct.defaultRowHeight = pt, ct.theme.scrollStyle.width = _t * N, ct.theme.scrollStyle.scrollSliderCornerRadius = nt * N, ct.theme.tooltipStyle.fontSize = it.value, V.value = (i.defaultFontSize + 10) * N, cX(g$, {
|
|
60076
60076
|
sortNotActiveColor: k(Nt).sortNotActiveColor,
|
|
60077
60077
|
sortActiveColor: k(Nt).sortActiveColor,
|
|
60078
|
-
iconSize: ot *
|
|
60079
|
-
hoverSize: wt *
|
|
60080
|
-
downSize: St *
|
|
60078
|
+
iconSize: ot * N,
|
|
60079
|
+
hoverSize: wt * N,
|
|
60080
|
+
downSize: St * N
|
|
60081
60081
|
}), Bi(() => {
|
|
60082
60082
|
var et, vt, kt, le, Dt, Wt, he, Gt, ei, Hn, Xn, Qi;
|
|
60083
|
-
(vt = (et = k(_)) == null ? void 0 : et.style) == null || vt.setProperty("--box-tooltip-fontsize", it.value + "px"), (le = (kt = k(_)) == null ? void 0 : kt.style) == null || le.setProperty("--box-item-size", V.value + "px"), (Wt = (Dt = k(y)) == null ? void 0 : Dt.style) == null || Wt.setProperty("--menu-item-max-width", 200 *
|
|
60083
|
+
(vt = (et = k(_)) == null ? void 0 : et.style) == null || vt.setProperty("--box-tooltip-fontsize", it.value + "px"), (le = (kt = k(_)) == null ? void 0 : kt.style) == null || le.setProperty("--box-item-size", V.value + "px"), (Wt = (Dt = k(y)) == null ? void 0 : Dt.style) == null || Wt.setProperty("--menu-item-max-width", 200 * N + "px"), (Gt = (he = k(y)) == null ? void 0 : he.style) == null || Gt.setProperty("--menu-item-padding", `${i.defaultFontSize / 2 * N}px ${i.defaultFontSize * N}px`), (Hn = (ei = k(y)) == null ? void 0 : ei.style) == null || Hn.setProperty("--menu-item-font-size", (i.defaultFontSize > 20 ? i.defaultFontSize - 4 : i.defaultFontSize) * N + "px"), (Qi = (Xn = k(y)) == null ? void 0 : Xn.style) == null || Qi.setProperty("--menu-item-line-height", 24 * U + "px"), n && n.updateOption(ct);
|
|
60084
60084
|
});
|
|
60085
60085
|
}
|
|
60086
60086
|
};
|
|
@@ -60090,41 +60090,41 @@ const qX = Ze({
|
|
|
60090
60090
|
deep: !0
|
|
60091
60091
|
});
|
|
60092
60092
|
const Je = oe(() => {
|
|
60093
|
-
var
|
|
60094
|
-
return i.fullMode && !((
|
|
60093
|
+
var N, U, q;
|
|
60094
|
+
return i.fullMode && !((N = ct.rows) != null && N.length) && !((U = ct.columns) != null && U.length) && !((q = ct.indicators) != null && q.length);
|
|
60095
60095
|
}), ze = oe(() => {
|
|
60096
|
-
var
|
|
60096
|
+
var N;
|
|
60097
60097
|
return {
|
|
60098
|
-
width: (
|
|
60098
|
+
width: (N = i.width) != null && N.includes("%") ? "calc(100%)" : parseFloat(i.width) - k(H) + "px",
|
|
60099
60099
|
height: "100%",
|
|
60100
60100
|
// height: props.height,
|
|
60101
60101
|
backgroundColor: i.theme === "darkBlue" ? "#081653" : "#F1F1F1",
|
|
60102
60102
|
color: i.theme === "darkBlue" ? "#b2c3dd" : ""
|
|
60103
60103
|
};
|
|
60104
60104
|
}), Ve = oe(() => {
|
|
60105
|
-
const
|
|
60105
|
+
const N = {
|
|
60106
60106
|
fontSize: it.value + "px"
|
|
60107
60107
|
};
|
|
60108
|
-
return k(L) && (i.theme === "darkBlue" ?
|
|
60108
|
+
return k(L) && (i.theme === "darkBlue" ? N.color = "#00CCFF" : N.color = "#416EFF"), N;
|
|
60109
60109
|
}), Ht = Q([]), Ct = Q([]);
|
|
60110
60110
|
mn("dimensionFieldList", Ht), mn("indicatorFieldList", Ct);
|
|
60111
60111
|
const It = "-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol", Qt = oe(
|
|
60112
|
-
() => k(Ht).filter((
|
|
60112
|
+
() => k(Ht).filter((N) => N.isInnerFilter).concat(k(Ct).filter((N) => N.isInnerFilter)).sort((N, U) => N.timeStamp - U.timeStamp)
|
|
60113
60113
|
);
|
|
60114
60114
|
nP(() => {
|
|
60115
60115
|
var J, X, tt, et, vt, kt, le, Dt, Wt, he;
|
|
60116
|
-
const { dropDownMenuBgColor:
|
|
60117
|
-
|
|
60116
|
+
const { dropDownMenuBgColor: N, dropDownMenuColor: U, dropDownMenuHightLightColor: q } = Nt.value;
|
|
60117
|
+
N && ((X = (J = k(y)) == null ? void 0 : J.style) == null || X.setProperty("--menu-bg-color", N)), U && ((et = (tt = k(y)) == null ? void 0 : tt.style) == null || et.setProperty("--menu-color", U)), q && ((kt = (vt = k(y)) == null ? void 0 : vt.style) == null || kt.setProperty("--menu-hight-light-color", q)), F.value && ((Dt = (le = k(y)) == null ? void 0 : le.style) == null || Dt.setProperty("--sub-menu-left", F.value)), P.value && ((he = (Wt = k(y)) == null ? void 0 : Wt.style) == null || he.setProperty("--sub-menu-top", P.value));
|
|
60118
60118
|
});
|
|
60119
60119
|
const ne = Q([]), xe = Q({}), te = Q({}), Kt = $u({
|
|
60120
60120
|
cellInnerBorder: !1,
|
|
60121
60121
|
underlayBackgroundColor: "transparent",
|
|
60122
60122
|
headerStyle: {
|
|
60123
|
-
bgColor(
|
|
60124
|
-
return k(ne).includes(
|
|
60123
|
+
bgColor(N) {
|
|
60124
|
+
return k(ne).includes(N.dataValue) ? k(Nt).indicatorsHeaderBgColor : k(Nt).headerBgColor;
|
|
60125
60125
|
},
|
|
60126
|
-
color(
|
|
60127
|
-
return k(ne).includes(
|
|
60126
|
+
color(N) {
|
|
60127
|
+
return k(ne).includes(N.dataValue) ? k(Nt).indicatorsHeaderColor : k(Nt).headerColor;
|
|
60128
60128
|
},
|
|
60129
60129
|
borderColor: k(Nt).borderColor,
|
|
60130
60130
|
fontWeight: "600",
|
|
@@ -60153,14 +60153,14 @@ const qX = Ze({
|
|
|
60153
60153
|
},
|
|
60154
60154
|
bodyStyle: {
|
|
60155
60155
|
borderColor: k(Nt).borderColor,
|
|
60156
|
-
color(
|
|
60156
|
+
color(N) {
|
|
60157
60157
|
var J, X;
|
|
60158
|
-
const U =
|
|
60158
|
+
const U = N.cellHeaderPaths.rowHeaderPaths, q = N.cellHeaderPaths.colHeaderPaths;
|
|
60159
60159
|
return ms.includes((J = U == null ? void 0 : U[U.length - 1]) == null ? void 0 : J.value) ? k(Nt).aggregateColor : k(ne).includes((X = q == null ? void 0 : q[q.length - 1]) == null ? void 0 : X.value) ? k(Nt).indicatorsBodyColor : k(Nt).bodyColor;
|
|
60160
60160
|
},
|
|
60161
|
-
bgColor(
|
|
60161
|
+
bgColor(N) {
|
|
60162
60162
|
var J, X;
|
|
60163
|
-
const U =
|
|
60163
|
+
const U = N.cellHeaderPaths.rowHeaderPaths, q = N.cellHeaderPaths.colHeaderPaths;
|
|
60164
60164
|
return ms.includes((J = U == null ? void 0 : U[U.length - 1]) == null ? void 0 : J.value) ? k(Nt).aggregateBgColor : k(ne).includes((X = q == null ? void 0 : q[q.length - 1]) == null ? void 0 : X.value) ? k(Nt).indicatorsBodyBgColor : k(Nt).bodyBgColor;
|
|
60165
60165
|
},
|
|
60166
60166
|
fontFamily() {
|
|
@@ -60173,11 +60173,11 @@ const qX = Ze({
|
|
|
60173
60173
|
},
|
|
60174
60174
|
rowHeaderStyle: {
|
|
60175
60175
|
borderColor: k(Nt).borderColor,
|
|
60176
|
-
bgColor(
|
|
60177
|
-
return ms.includes(
|
|
60176
|
+
bgColor(N) {
|
|
60177
|
+
return ms.includes(N.dataValue) ? k(Nt).aggregateBgColor : k(Nt).bodyBgColor;
|
|
60178
60178
|
},
|
|
60179
|
-
color(
|
|
60180
|
-
return ms.includes(
|
|
60179
|
+
color(N) {
|
|
60180
|
+
return ms.includes(N.dataValue) ? k(Nt).aggregateColor : k(Nt).bodyColor;
|
|
60181
60181
|
},
|
|
60182
60182
|
fontFamily() {
|
|
60183
60183
|
if (i.isIframeMode)
|
|
@@ -60228,14 +60228,14 @@ const qX = Ze({
|
|
|
60228
60228
|
},
|
|
60229
60229
|
theme: Kt
|
|
60230
60230
|
}), jt = oe(() => {
|
|
60231
|
-
let
|
|
60232
|
-
return k(L) && i.fullMode && (
|
|
60231
|
+
let N = 0;
|
|
60232
|
+
return k(L) && i.fullMode && (N = k(H)), N;
|
|
60233
60233
|
}), qt = oe(() => {
|
|
60234
|
-
let
|
|
60235
|
-
return k(D) && (
|
|
60234
|
+
let N = 0;
|
|
60235
|
+
return k(D) && (N = 20), N;
|
|
60236
60236
|
}), ve = 5, Wi = Q({});
|
|
60237
|
-
Oe(x, (
|
|
60238
|
-
if (
|
|
60237
|
+
Oe(x, (N) => {
|
|
60238
|
+
if (N) {
|
|
60239
60239
|
const U = {};
|
|
60240
60240
|
Bi(() => {
|
|
60241
60241
|
var X, tt;
|
|
@@ -60246,10 +60246,10 @@ const qX = Ze({
|
|
|
60246
60246
|
}
|
|
60247
60247
|
});
|
|
60248
60248
|
const ko = Q([]), Yn = Q([]), Ir = Q({}), Pn = Q({}), gs = Q([]), nl = Q([]), ol = Q([]), rl = Q([]), aB = oe(() => {
|
|
60249
|
-
const
|
|
60249
|
+
const N = [];
|
|
60250
60250
|
for (const tt of k(ko)) {
|
|
60251
60251
|
const { data: et, indicatorKey: vt = "", calculateType: kt = "" } = tt || {};
|
|
60252
|
-
|
|
60252
|
+
N.push({
|
|
60253
60253
|
label: et.indicatorKey,
|
|
60254
60254
|
columnName: et.indicatorKey,
|
|
60255
60255
|
location: "LEFT",
|
|
@@ -60307,7 +60307,7 @@ const qX = Ze({
|
|
|
60307
60307
|
vt === "indicators" && (Dt.columnHeader = le, Dt.columnData = kt, Dt.type = "NORMAL"), X.push(Dt);
|
|
60308
60308
|
}
|
|
60309
60309
|
return {
|
|
60310
|
-
calc:
|
|
60310
|
+
calc: N,
|
|
60311
60311
|
filter: U,
|
|
60312
60312
|
truncations: J,
|
|
60313
60313
|
sorts: X,
|
|
@@ -60316,9 +60316,9 @@ const qX = Ze({
|
|
|
60316
60316
|
};
|
|
60317
60317
|
}), hB = UX(i), dB = GX(i), uB = VX(i), Nf = $X(i), jf = Q({}), Vf = Q({}), cB = async () => {
|
|
60318
60318
|
var q;
|
|
60319
|
-
const
|
|
60319
|
+
const N = k(Ct).filter((J) => J.calcType === "FORMULA");
|
|
60320
60320
|
let U;
|
|
60321
|
-
if (
|
|
60321
|
+
if (N != null && N.length && (U = await hB(
|
|
60322
60322
|
{
|
|
60323
60323
|
indicatorList: k(Ct).map((J) => {
|
|
60324
60324
|
const X = {
|
|
@@ -60346,14 +60346,14 @@ const qX = Ze({
|
|
|
60346
60346
|
});
|
|
60347
60347
|
const er = async () => {
|
|
60348
60348
|
var kt, le, Dt, Wt, he;
|
|
60349
|
-
const { dimensionList:
|
|
60349
|
+
const { dimensionList: N, graphicConfig: U = {} } = i, { queryColumnList: q = [] } = U, { rows: J = [], columns: X = [] } = ct, tt = (kt = k(ol)) != null && kt.length ? k(ol) : [], et = (le = k(rl)) != null && le.length ? k(rl) : [];
|
|
60350
60350
|
if (!(tt != null && tt.length))
|
|
60351
60351
|
for (const Gt of J)
|
|
60352
60352
|
tt.push(Gt.dimensionKey);
|
|
60353
60353
|
if (!(et != null && et.length))
|
|
60354
60354
|
for (const Gt of X)
|
|
60355
60355
|
et.push(Gt.dimensionKey);
|
|
60356
|
-
tt != null && tt.length || tt.push(...
|
|
60356
|
+
tt != null && tt.length || tt.push(...N.filter((Gt) => Gt.position === "rows").map((Gt) => Gt.key)), et != null && et.length || et.push(...N.filter((Gt) => Gt.position === "columns").map((Gt) => Gt.key));
|
|
60357
60357
|
const vt = [];
|
|
60358
60358
|
for (const Gt in k(a))
|
|
60359
60359
|
vt.push({
|
|
@@ -60397,20 +60397,20 @@ const qX = Ze({
|
|
|
60397
60397
|
console.error(Gt);
|
|
60398
60398
|
}
|
|
60399
60399
|
};
|
|
60400
|
-
function iC(
|
|
60400
|
+
function iC(N) {
|
|
60401
60401
|
const U = [];
|
|
60402
|
-
for (const q of
|
|
60402
|
+
for (const q of N)
|
|
60403
60403
|
q.sqlConditions ? U.push(...iC(q.sqlConditions)) : q.fieldName === "the_date" && U.push(q);
|
|
60404
60404
|
return U;
|
|
60405
60405
|
}
|
|
60406
|
-
const gB = (
|
|
60407
|
-
k(ko).find((U) => U.data.indicatorKey ===
|
|
60408
|
-
}, fB = (
|
|
60409
|
-
const U = k(ko).findIndex((q) => q.data.indicatorKey ===
|
|
60406
|
+
const gB = (N) => {
|
|
60407
|
+
k(ko).find((U) => U.data.indicatorKey === N.data.indicatorKey) || ko.value.push(N), er();
|
|
60408
|
+
}, fB = (N) => {
|
|
60409
|
+
const U = k(ko).findIndex((q) => q.data.indicatorKey === N);
|
|
60410
60410
|
U !== -1 && ko.value.splice(U, 1), er();
|
|
60411
|
-
}, $f = (
|
|
60411
|
+
}, $f = (N, { isHandle: U = !0 } = {}) => {
|
|
60412
60412
|
let q = [];
|
|
60413
|
-
Array.isArray(
|
|
60413
|
+
Array.isArray(N) ? q = N : q = [N];
|
|
60414
60414
|
for (const J of q) {
|
|
60415
60415
|
const { key: X = "", rule: tt, type: et = "" } = J || {};
|
|
60416
60416
|
let vt = ci(tt);
|
|
@@ -60443,8 +60443,8 @@ const qX = Ze({
|
|
|
60443
60443
|
U && er();
|
|
60444
60444
|
}, pB = () => {
|
|
60445
60445
|
Ir.value = k(S) || {}, er();
|
|
60446
|
-
}, nC = (
|
|
60447
|
-
const { key: U, order: q, type: J, columnData: X = [] } =
|
|
60446
|
+
}, nC = (N) => {
|
|
60447
|
+
const { key: U, order: q, type: J, columnData: X = [] } = N;
|
|
60448
60448
|
if (J === "indicators") {
|
|
60449
60449
|
let tt = "";
|
|
60450
60450
|
for (const et in k(Pn))
|
|
@@ -60457,19 +60457,19 @@ const qX = Ze({
|
|
|
60457
60457
|
columnData: X
|
|
60458
60458
|
}, er();
|
|
60459
60459
|
}, sl = () => {
|
|
60460
|
-
const
|
|
60461
|
-
gs.value = ci(
|
|
60460
|
+
const N = k(Ht), U = k(Ct), q = N.filter((X) => X.positionType === "rows").map((X) => X.name), J = N.filter((X) => X.positionType === "columns").map((X) => X.name);
|
|
60461
|
+
gs.value = ci(N), nl.value = ci(U), ol.value = ci(q), rl.value = ci(J), er();
|
|
60462
60462
|
};
|
|
60463
|
-
function vB(
|
|
60463
|
+
function vB(N, U = !0, q = -1) {
|
|
60464
60464
|
if (q > -1)
|
|
60465
|
-
ct.indicators.splice(q, 0, ...
|
|
60465
|
+
ct.indicators.splice(q, 0, ...N);
|
|
60466
60466
|
else
|
|
60467
|
-
for (const J of
|
|
60467
|
+
for (const J of N)
|
|
60468
60468
|
ct.indicators.push(J);
|
|
60469
60469
|
U && n.updateOption(ct);
|
|
60470
60470
|
}
|
|
60471
|
-
function mB({ label:
|
|
60472
|
-
const q = [], J = [], X = [], tt = k(Vf)[
|
|
60471
|
+
function mB({ label: N, calcType: U }) {
|
|
60472
|
+
const q = [], J = [], X = [], tt = k(Vf)[N], et = k(te)[N] || [];
|
|
60473
60473
|
for (const vt in i0)
|
|
60474
60474
|
et.indexOf(vt) === -1 && X.push({
|
|
60475
60475
|
text: i0[vt],
|
|
@@ -60498,10 +60498,10 @@ const qX = Ze({
|
|
|
60498
60498
|
...YX
|
|
60499
60499
|
];
|
|
60500
60500
|
}
|
|
60501
|
-
function Sd(
|
|
60501
|
+
function Sd(N) {
|
|
60502
60502
|
var q;
|
|
60503
60503
|
let U = [];
|
|
60504
|
-
if (
|
|
60504
|
+
if (N !== "rows" && (U = [
|
|
60505
60505
|
{
|
|
60506
60506
|
text: "钻取",
|
|
60507
60507
|
menuKey: "drill"
|
|
@@ -60539,9 +60539,9 @@ const qX = Ze({
|
|
|
60539
60539
|
if ((q = k(lt)) != null && q.length) {
|
|
60540
60540
|
const J = k(lt).map((X) => ({
|
|
60541
60541
|
text: X.title || X.label,
|
|
60542
|
-
menuKey:
|
|
60542
|
+
menuKey: N === "rows" ? `${rt}${X.label}` : X.label
|
|
60543
60543
|
}));
|
|
60544
|
-
|
|
60544
|
+
N === "rows" ? U = J : U[0].children = J;
|
|
60545
60545
|
} else
|
|
60546
60546
|
U.splice(0, 1);
|
|
60547
60547
|
else
|
|
@@ -60550,18 +60550,18 @@ const qX = Ze({
|
|
|
60550
60550
|
U.splice(0, 1), U.splice(-1, 1);
|
|
60551
60551
|
return U;
|
|
60552
60552
|
}
|
|
60553
|
-
function bB(
|
|
60554
|
-
x.value = !0, k(B)[U] =
|
|
60553
|
+
function bB(N, U) {
|
|
60554
|
+
x.value = !0, k(B)[U] = N || [], vn({
|
|
60555
60555
|
type: "9",
|
|
60556
60556
|
data: {
|
|
60557
60557
|
key: U,
|
|
60558
|
-
types:
|
|
60558
|
+
types: N
|
|
60559
60559
|
}
|
|
60560
60560
|
}), er();
|
|
60561
60561
|
}
|
|
60562
|
-
function CB(
|
|
60562
|
+
function CB(N, U = !0) {
|
|
60563
60563
|
var q;
|
|
60564
|
-
for (const J of
|
|
60564
|
+
for (const J of N) {
|
|
60565
60565
|
const { key: X, name: tt, type: et, dimensionKey: vt, width: kt } = J;
|
|
60566
60566
|
let le;
|
|
60567
60567
|
if (vt)
|
|
@@ -60597,10 +60597,10 @@ const qX = Ze({
|
|
|
60597
60597
|
rC();
|
|
60598
60598
|
});
|
|
60599
60599
|
}
|
|
60600
|
-
function oC(
|
|
60600
|
+
function oC(N) {
|
|
60601
60601
|
const U = {}, { records: q } = ct;
|
|
60602
60602
|
for (const J of q)
|
|
60603
|
-
for (const X of
|
|
60603
|
+
for (const X of N)
|
|
60604
60604
|
eo(U, X) ? U[X].find((tt) => tt.value === J[X]) || U[X].push(Gf({
|
|
60605
60605
|
value: J[X]
|
|
60606
60606
|
})) : U[X] = Gf([
|
|
@@ -60610,9 +60610,9 @@ const qX = Ze({
|
|
|
60610
60610
|
]);
|
|
60611
60611
|
return U;
|
|
60612
60612
|
}
|
|
60613
|
-
function Gf(
|
|
60614
|
-
const U = ci(
|
|
60615
|
-
if (typeof
|
|
60613
|
+
function Gf(N) {
|
|
60614
|
+
const U = ci(N);
|
|
60615
|
+
if (typeof N == "object")
|
|
60616
60616
|
if (Array.isArray(U))
|
|
60617
60617
|
for (const J of U)
|
|
60618
60618
|
q(J);
|
|
@@ -60629,22 +60629,22 @@ const qX = Ze({
|
|
|
60629
60629
|
}
|
|
60630
60630
|
function rC() {
|
|
60631
60631
|
const {
|
|
60632
|
-
dataset: { columns:
|
|
60633
|
-
} = n, q = U.concat(
|
|
60632
|
+
dataset: { columns: N, rows: U }
|
|
60633
|
+
} = n, q = U.concat(N);
|
|
60634
60634
|
s.value = oC(q);
|
|
60635
60635
|
}
|
|
60636
60636
|
const sC = oe(() => {
|
|
60637
|
-
var
|
|
60638
|
-
return (
|
|
60637
|
+
var N;
|
|
60638
|
+
return (N = k(Ht)) != null && N.length ? k(Ht).map((U) => U.label).concat(i.usedDimensionFields) : i.usedDimensionFields;
|
|
60639
60639
|
});
|
|
60640
|
-
async function lC(
|
|
60640
|
+
async function lC(N) {
|
|
60641
60641
|
var Gt, ei, Hn, Xn, Qi, li, fi, tn;
|
|
60642
60642
|
const U = await dB({
|
|
60643
60643
|
pivotTableCal: k(jf)
|
|
60644
60644
|
});
|
|
60645
60645
|
lt.value = U.filter((Yt) => !k(sC).includes(Yt.label));
|
|
60646
|
-
let q =
|
|
60647
|
-
|
|
60646
|
+
let q = N;
|
|
60647
|
+
N ? Y.value = ci(N) : q = ci(k(Y)), x.value = !0;
|
|
60648
60648
|
const { data: J = {} } = (q == null ? void 0 : q.data) || {}, { rows: X = [] } = J, tt = [], et = [];
|
|
60649
60649
|
for (const Yt of k(Ht)) {
|
|
60650
60650
|
if (!Yt.show)
|
|
@@ -60752,7 +60752,7 @@ const qX = Ze({
|
|
|
60752
60752
|
else {
|
|
60753
60753
|
const Yt = document.getElementById(`pivotTableContainer_${i.id}`);
|
|
60754
60754
|
n = new E2(Yt, ct), Bi(() => {
|
|
60755
|
-
hC(), o.value = !0, x.value = !1, i.isIframeMode && (k(j) && n.setScrollTop(k(j)), k(
|
|
60755
|
+
hC(), o.value = !0, x.value = !1, i.isIframeMode && (k(j) && n.setScrollTop(k(j)), k(W) && n.setScrollLeft(k(W)));
|
|
60756
60756
|
}), PB();
|
|
60757
60757
|
}
|
|
60758
60758
|
Bi(() => {
|
|
@@ -60770,8 +60770,8 @@ const qX = Ze({
|
|
|
60770
60770
|
ll() && (k(D) ? (k(kr).top = k(qt) + "px", k(kr).left = "0") : (k(kr).top = "0", k(kr).left = "0"));
|
|
60771
60771
|
}
|
|
60772
60772
|
function hC() {
|
|
60773
|
-
var
|
|
60774
|
-
if (n && !((
|
|
60773
|
+
var N;
|
|
60774
|
+
if (n && !((N = ct.records) != null && N.length)) {
|
|
60775
60775
|
const {
|
|
60776
60776
|
dataset: { rows: U }
|
|
60777
60777
|
} = n, q = {};
|
|
@@ -60786,41 +60786,41 @@ const qX = Ze({
|
|
|
60786
60786
|
});
|
|
60787
60787
|
}
|
|
60788
60788
|
}
|
|
60789
|
-
function yB(
|
|
60789
|
+
function yB(N, U) {
|
|
60790
60790
|
x.value = !0, vn({
|
|
60791
60791
|
type: "3",
|
|
60792
60792
|
data: {
|
|
60793
60793
|
type: "indicators",
|
|
60794
|
-
key:
|
|
60794
|
+
key: N,
|
|
60795
60795
|
rule: U
|
|
60796
60796
|
}
|
|
60797
60797
|
}), $f({
|
|
60798
60798
|
type: "indicators",
|
|
60799
|
-
key:
|
|
60799
|
+
key: N,
|
|
60800
60800
|
rule: U
|
|
60801
60801
|
});
|
|
60802
60802
|
}
|
|
60803
|
-
function _B(
|
|
60803
|
+
function _B(N, U) {
|
|
60804
60804
|
x.value = !0, vn({
|
|
60805
60805
|
type: "3",
|
|
60806
60806
|
data: {
|
|
60807
60807
|
type: "dimension",
|
|
60808
|
-
key:
|
|
60808
|
+
key: N,
|
|
60809
60809
|
rule: U
|
|
60810
60810
|
}
|
|
60811
60811
|
}), $f({
|
|
60812
60812
|
type: "dimension",
|
|
60813
|
-
key:
|
|
60813
|
+
key: N,
|
|
60814
60814
|
rule: U
|
|
60815
60815
|
});
|
|
60816
60816
|
}
|
|
60817
|
-
function wB(
|
|
60817
|
+
function wB(N, U) {
|
|
60818
60818
|
var tt;
|
|
60819
60819
|
let q = !1;
|
|
60820
|
-
const J = ct[U].findIndex((et) => et.dimensionKey ===
|
|
60820
|
+
const J = ct[U].findIndex((et) => et.dimensionKey === N), X = ct.dataConfig.sortRules.findIndex((et) => et.sortField === N);
|
|
60821
60821
|
if (J !== -1) {
|
|
60822
60822
|
if (ct[U].splice(J, 1), i.fullMode || i.allowDrill) {
|
|
60823
|
-
const et = k(Ht).findIndex((vt) => vt.label ===
|
|
60823
|
+
const et = k(Ht).findIndex((vt) => vt.label === N);
|
|
60824
60824
|
et !== -1 && (k(Ht)[et].isInnerFilter ? (k(Ht)[et].show = !1, q = !0) : k(Ht).splice(et, 1));
|
|
60825
60825
|
} else
|
|
60826
60826
|
for (const et of ct[U])
|
|
@@ -60831,14 +60831,14 @@ const qX = Ze({
|
|
|
60831
60831
|
}
|
|
60832
60832
|
X !== -1 && (ct.dataConfig.sortRules[X].sortType = r), n.updateOption(ct), Bi(() => {
|
|
60833
60833
|
if (rC(), !q) {
|
|
60834
|
-
delete a.value[
|
|
60835
|
-
const et = k(Yn).findIndex((vt) => vt.key ===
|
|
60834
|
+
delete a.value[N];
|
|
60835
|
+
const et = k(Yn).findIndex((vt) => vt.key === N);
|
|
60836
60836
|
et !== -1 && k(Yn).splice(et, 1);
|
|
60837
60837
|
}
|
|
60838
60838
|
});
|
|
60839
60839
|
}
|
|
60840
|
-
function SB(
|
|
60841
|
-
const { indicators: U } = ct, q = U.findIndex((J) => J.indicatorKey ===
|
|
60840
|
+
function SB(N) {
|
|
60841
|
+
const { indicators: U } = ct, q = U.findIndex((J) => J.indicatorKey === N);
|
|
60842
60842
|
if (q !== -1) {
|
|
60843
60843
|
const J = U[q];
|
|
60844
60844
|
if (U.splice(q, 1), J.calculateType) {
|
|
@@ -60853,19 +60853,19 @@ const qX = Ze({
|
|
|
60853
60853
|
}), fB(J.indicatorKey);
|
|
60854
60854
|
}
|
|
60855
60855
|
}
|
|
60856
|
-
function Uf(
|
|
60856
|
+
function Uf(N, U, q) {
|
|
60857
60857
|
let J = [];
|
|
60858
60858
|
const X = /* @__PURE__ */ new Set();
|
|
60859
60859
|
for (const tt of q) {
|
|
60860
60860
|
const et = tt[U];
|
|
60861
60861
|
et && !ms.includes(et) && X.add(et);
|
|
60862
60862
|
}
|
|
60863
|
-
return J = Array.from(X),
|
|
60863
|
+
return J = Array.from(X), N === "asc" ? J = J.sort((tt, et) => tt.localeCompare(et)) : N === "desc" && (J = J.sort((tt, et) => et.localeCompare(tt))), {
|
|
60864
60864
|
sortField: U,
|
|
60865
60865
|
sortBy: [...J, ...ms]
|
|
60866
60866
|
};
|
|
60867
60867
|
}
|
|
60868
|
-
function dC(
|
|
60868
|
+
function dC(N, U, q, J) {
|
|
60869
60869
|
x.value = !0;
|
|
60870
60870
|
let {
|
|
60871
60871
|
menu: { dropDownMenuHighlight: X },
|
|
@@ -60876,29 +60876,29 @@ const qX = Ze({
|
|
|
60876
60876
|
row: J - 1,
|
|
60877
60877
|
field: U,
|
|
60878
60878
|
type: "dimension",
|
|
60879
|
-
menuKey:
|
|
60879
|
+
menuKey: N
|
|
60880
60880
|
}), ct.menu.dropDownMenuHighlight = X;
|
|
60881
60881
|
const et = tt.find((vt) => vt.dimensionKey === U);
|
|
60882
60882
|
if (et) {
|
|
60883
60883
|
let vt = "sortNormal";
|
|
60884
|
-
|
|
60884
|
+
N === "asc" ? vt = "sortUp" : N === "desc" && (vt = "sortDown"), et.cornerHeaderIcon = vt;
|
|
60885
60885
|
}
|
|
60886
|
-
n.updateOption(ct),
|
|
60887
|
-
type:
|
|
60886
|
+
n.updateOption(ct), N === "default-sort" ? delete k(R)[U] : k(R)[U] = {
|
|
60887
|
+
type: N
|
|
60888
60888
|
}, vn({
|
|
60889
60889
|
type: "4",
|
|
60890
60890
|
data: {
|
|
60891
60891
|
key: U,
|
|
60892
|
-
order:
|
|
60892
|
+
order: N,
|
|
60893
60893
|
type: "dimension"
|
|
60894
60894
|
}
|
|
60895
60895
|
}), nC({
|
|
60896
60896
|
key: U,
|
|
60897
|
-
order:
|
|
60897
|
+
order: N,
|
|
60898
60898
|
type: "dimension"
|
|
60899
60899
|
});
|
|
60900
60900
|
}
|
|
60901
|
-
function uC(
|
|
60901
|
+
function uC(N, U, q, J, X) {
|
|
60902
60902
|
var he;
|
|
60903
60903
|
x.value = !0;
|
|
60904
60904
|
const { menu: tt } = ct;
|
|
@@ -60912,11 +60912,11 @@ const qX = Ze({
|
|
|
60912
60912
|
row: X,
|
|
60913
60913
|
field: U,
|
|
60914
60914
|
type: "indicator",
|
|
60915
|
-
menuKey:
|
|
60916
|
-
}), ct.menu.dropDownMenuHighlight = et, n.updateOption(ct),
|
|
60915
|
+
menuKey: N
|
|
60916
|
+
}), ct.menu.dropDownMenuHighlight = et, n.updateOption(ct), N === "default-sort" ? M.value = null : M.value = {
|
|
60917
60917
|
sortField: vt,
|
|
60918
60918
|
sortByIndicator: U,
|
|
60919
|
-
sortType:
|
|
60919
|
+
sortType: N.toUpperCase(),
|
|
60920
60920
|
query: Dt,
|
|
60921
60921
|
col: J,
|
|
60922
60922
|
row: X
|
|
@@ -60924,52 +60924,52 @@ const qX = Ze({
|
|
|
60924
60924
|
type: "4",
|
|
60925
60925
|
data: {
|
|
60926
60926
|
key: U,
|
|
60927
|
-
order:
|
|
60927
|
+
order: N,
|
|
60928
60928
|
type: "indicators"
|
|
60929
60929
|
}
|
|
60930
60930
|
}), nC({
|
|
60931
60931
|
key: U,
|
|
60932
|
-
order:
|
|
60932
|
+
order: N,
|
|
60933
60933
|
type: "indicators",
|
|
60934
60934
|
columnData: Dt,
|
|
60935
60935
|
columnHeader: le
|
|
60936
60936
|
});
|
|
60937
60937
|
}
|
|
60938
|
-
function cC({ dimensionKey:
|
|
60938
|
+
function cC({ dimensionKey: N, value: U = "" }) {
|
|
60939
60939
|
const q = {};
|
|
60940
|
-
k(a)[
|
|
60941
|
-
const J = k(Ht).find((X) => X.label ===
|
|
60940
|
+
k(a)[N] && (q.filterData = k(a)[N]);
|
|
60941
|
+
const J = k(Ht).find((X) => X.label === N);
|
|
60942
60942
|
d.value = {
|
|
60943
60943
|
// tableInstance,
|
|
60944
|
-
fieldName: U || (J == null ? void 0 : J.title) ||
|
|
60945
|
-
key:
|
|
60944
|
+
fieldName: U || (J == null ? void 0 : J.title) || N,
|
|
60945
|
+
key: N,
|
|
60946
60946
|
type: "dimension",
|
|
60947
60947
|
...q
|
|
60948
60948
|
}, Bi(() => {
|
|
60949
60949
|
k(u).showModal(), vn({
|
|
60950
60950
|
type: "5",
|
|
60951
|
-
data:
|
|
60951
|
+
data: N
|
|
60952
60952
|
});
|
|
60953
60953
|
});
|
|
60954
60954
|
}
|
|
60955
|
-
function xB(
|
|
60955
|
+
function xB(N, U) {
|
|
60956
60956
|
d.value = {
|
|
60957
60957
|
// tableInstance,
|
|
60958
60958
|
fieldName: U,
|
|
60959
|
-
key:
|
|
60959
|
+
key: N,
|
|
60960
60960
|
type: "indicators",
|
|
60961
|
-
filterData: k(h)[
|
|
60961
|
+
filterData: k(h)[N]
|
|
60962
60962
|
}, Bi(() => {
|
|
60963
60963
|
k(u).showModal();
|
|
60964
60964
|
});
|
|
60965
60965
|
}
|
|
60966
|
-
function AB({ indicatorKey:
|
|
60966
|
+
function AB({ indicatorKey: N, menuKey: U }) {
|
|
60967
60967
|
x.value = !0;
|
|
60968
60968
|
let q = ct.indicators.length - 1;
|
|
60969
|
-
const J = `${
|
|
60969
|
+
const J = `${N}@${U}`, X = `${N}(${i0[U]}) fx`;
|
|
60970
60970
|
k(ne).push(X), k(xe)[X] = J, ct.indicators.forEach((et, vt) => {
|
|
60971
|
-
et.indicatorKey ===
|
|
60972
|
-
}), k(te)[
|
|
60971
|
+
et.indicatorKey === N && (q = vt + 1);
|
|
60972
|
+
}), k(te)[N] || (k(te)[N] = []), k(te)[N].push(U);
|
|
60973
60973
|
const tt = {
|
|
60974
60974
|
data: {
|
|
60975
60975
|
indicatorKey: J,
|
|
@@ -61026,11 +61026,11 @@ const qX = Ze({
|
|
|
61026
61026
|
}
|
|
61027
61027
|
},
|
|
61028
61028
|
position: q,
|
|
61029
|
-
indicatorKey:
|
|
61029
|
+
indicatorKey: N,
|
|
61030
61030
|
calculateType: U
|
|
61031
61031
|
};
|
|
61032
61032
|
if (["LAST_DATA", "SAME_DATA", "DIFF_DATA"].includes(U)) {
|
|
61033
|
-
const et = _a(
|
|
61033
|
+
const et = _a(N);
|
|
61034
61034
|
if (et > -1) {
|
|
61035
61035
|
const vt = ct.indicators[et].formatConfig || {};
|
|
61036
61036
|
tt.data.formatConfig = {
|
|
@@ -61043,18 +61043,18 @@ const qX = Ze({
|
|
|
61043
61043
|
vn({
|
|
61044
61044
|
type: "1",
|
|
61045
61045
|
data: {
|
|
61046
|
-
indicatorKey:
|
|
61046
|
+
indicatorKey: N,
|
|
61047
61047
|
calculateType: U
|
|
61048
61048
|
}
|
|
61049
61049
|
}), gB(tt);
|
|
61050
61050
|
}
|
|
61051
61051
|
function RB() {
|
|
61052
|
-
const
|
|
61052
|
+
const N = ct.rows[0] ? ct.rows[0].cornerDropDownMenu : [], U = ct.columns[0] ? ct.columns[0].cornerDropDownMenu : [], q = ct.rows.map((et) => ({
|
|
61053
61053
|
...et,
|
|
61054
61054
|
cornerDropDownMenu: U
|
|
61055
61055
|
})), J = ct.columns.map((et) => ({
|
|
61056
61056
|
...et,
|
|
61057
|
-
cornerDropDownMenu:
|
|
61057
|
+
cornerDropDownMenu: N
|
|
61058
61058
|
}));
|
|
61059
61059
|
ct.columns = q, ct.rows = J;
|
|
61060
61060
|
const { type: X, len: tt } = ct.aggregate || {};
|
|
@@ -61063,40 +61063,40 @@ const qX = Ze({
|
|
|
61063
61063
|
len: 0
|
|
61064
61064
|
}), ct.menu.dropDownMenuHighlight = [], a.value = {}, h.value = {}, c.value = {}, ct.dataConfig.filterRules = [], n.updateOption(ct);
|
|
61065
61065
|
}
|
|
61066
|
-
function TB({ indicatorKey:
|
|
61067
|
-
const q = _a(
|
|
61066
|
+
function TB({ indicatorKey: N, fieldName: U }) {
|
|
61067
|
+
const q = _a(N);
|
|
61068
61068
|
if (q > -1) {
|
|
61069
61069
|
const J = ct.indicators[q].formatConfig || {};
|
|
61070
|
-
k(g).showModal({ ...J, indicatorKey:
|
|
61070
|
+
k(g).showModal({ ...J, indicatorKey: N, fieldName: U });
|
|
61071
61071
|
}
|
|
61072
61072
|
}
|
|
61073
|
-
function MB(
|
|
61074
|
-
const U = _a(
|
|
61073
|
+
function MB(N) {
|
|
61074
|
+
const U = _a(N);
|
|
61075
61075
|
if (U > -1) {
|
|
61076
61076
|
const q = ct.indicators[U].conditionalConfig || [];
|
|
61077
|
-
k(f).showModal(
|
|
61077
|
+
k(f).showModal(N, q);
|
|
61078
61078
|
}
|
|
61079
61079
|
}
|
|
61080
|
-
function _a(
|
|
61081
|
-
return ct.indicators.findIndex((U) => U.indicatorKey ===
|
|
61080
|
+
function _a(N) {
|
|
61081
|
+
return ct.indicators.findIndex((U) => U.indicatorKey === N);
|
|
61082
61082
|
}
|
|
61083
|
-
function BB(
|
|
61083
|
+
function BB(N) {
|
|
61084
61084
|
const U = k(Ht)[0], q = k(Ht).map((tt) => tt.label), J = oC(q), X = {
|
|
61085
61085
|
xLabel: U.label,
|
|
61086
|
-
yLabel:
|
|
61086
|
+
yLabel: N,
|
|
61087
61087
|
dimensionData: J,
|
|
61088
61088
|
records: Gf(ct.records)
|
|
61089
61089
|
};
|
|
61090
61090
|
k(b).showModal(X);
|
|
61091
61091
|
}
|
|
61092
61092
|
function PB() {
|
|
61093
|
-
n.on("scroll", (
|
|
61094
|
-
const { scrollDirection: U } =
|
|
61095
|
-
U === "vertical" ? j.value = n.getScrollTop() : U === "horizontal" && (
|
|
61096
|
-
}), n.on("dblclick_cell", (
|
|
61097
|
-
const { cellLocation: U = "", field: q = "" } =
|
|
61093
|
+
n.on("scroll", (N) => {
|
|
61094
|
+
const { scrollDirection: U } = N;
|
|
61095
|
+
U === "vertical" ? j.value = n.getScrollTop() : U === "horizontal" && (W.value = n.getScrollLeft());
|
|
61096
|
+
}), n.on("dblclick_cell", (N) => {
|
|
61097
|
+
const { cellLocation: U = "", field: q = "" } = N;
|
|
61098
61098
|
U === "body" && !q.includes("LAST_DATA") && !q.includes("SAME_DATA") && !q.includes("DIFF_DATA") && !q.includes("MOM_DATA") && !q.includes("YOY_DATA") && k(w).showModal({
|
|
61099
|
-
args:
|
|
61099
|
+
args: N,
|
|
61100
61100
|
splitSymbol: rt,
|
|
61101
61101
|
dimension: k(Ht),
|
|
61102
61102
|
indicator: k(Ct),
|
|
@@ -61106,8 +61106,8 @@ const qX = Ze({
|
|
|
61106
61106
|
At(), aC(), ge(), Bi(() => {
|
|
61107
61107
|
o.value = !0;
|
|
61108
61108
|
});
|
|
61109
|
-
}), n.on("icon_click", (
|
|
61110
|
-
const { name: U, col: q, row: J } =
|
|
61109
|
+
}), n.on("icon_click", (N) => {
|
|
61110
|
+
const { name: U, col: q, row: J } = N;
|
|
61111
61111
|
if (["sortNormal", "sortUp", "sortDown"].includes(U)) {
|
|
61112
61112
|
const { rows: X, indicators: tt } = ct, et = n.getCellValue(q, J);
|
|
61113
61113
|
let vt = k(Ht).find((he) => he.showTitle === et);
|
|
@@ -61124,16 +61124,16 @@ const qX = Ze({
|
|
|
61124
61124
|
le && dC(Wt, kt, q, J);
|
|
61125
61125
|
}
|
|
61126
61126
|
}), n.on("show_menu", () => {
|
|
61127
|
-
const
|
|
61128
|
-
if (
|
|
61129
|
-
|
|
61130
|
-
const U = parseFloat(
|
|
61131
|
-
F.value = U + "px", P.value = parseFloat(
|
|
61132
|
-
}
|
|
61133
|
-
}), n.on("dropdown_menu_click", (
|
|
61134
|
-
const { field: U, col: q, row: J } =
|
|
61135
|
-
let vt =
|
|
61136
|
-
vt.includes(rt) && (kt = !0, vt = vt.replace(rt, "")), l.value =
|
|
61127
|
+
const N = document.querySelector(`#pivotTableContainer_${i.id} .vtable__menu-element`);
|
|
61128
|
+
if (N) {
|
|
61129
|
+
N.classList.add("first");
|
|
61130
|
+
const U = parseFloat(N.style.left) + N.clientWidth + 3;
|
|
61131
|
+
F.value = U + "px", P.value = parseFloat(N.style.top) + "px";
|
|
61132
|
+
}
|
|
61133
|
+
}), n.on("dropdown_menu_click", (N) => {
|
|
61134
|
+
const { field: U, col: q, row: J } = N, { dimensionKey: X, indicatorKey: tt, value: et } = U[U.length - 1];
|
|
61135
|
+
let vt = N.menuKey, kt = !1;
|
|
61136
|
+
vt.includes(rt) && (kt = !0, vt = vt.replace(rt, "")), l.value = N;
|
|
61137
61137
|
const le = k(lt).find((Dt) => Dt.label === vt);
|
|
61138
61138
|
if (le) {
|
|
61139
61139
|
const Dt = k(Ht).findIndex((Wt) => Wt.label === X);
|
|
@@ -61218,10 +61218,10 @@ const qX = Ze({
|
|
|
61218
61218
|
}
|
|
61219
61219
|
});
|
|
61220
61220
|
}
|
|
61221
|
-
function HB(
|
|
61221
|
+
function HB(N) {
|
|
61222
61222
|
k(v).showModal({
|
|
61223
|
-
value: k(S)[
|
|
61224
|
-
key:
|
|
61223
|
+
value: k(S)[N] || "",
|
|
61224
|
+
key: N
|
|
61225
61225
|
});
|
|
61226
61226
|
}
|
|
61227
61227
|
function LB() {
|
|
@@ -61231,14 +61231,14 @@ const qX = Ze({
|
|
|
61231
61231
|
x.value = !0, await Nf("save", {
|
|
61232
61232
|
keyName: i.relateKeyName || i.keyName,
|
|
61233
61233
|
data: {}
|
|
61234
|
-
}), r.value = "", s.value = {}, a.value = {}, h.value = {}, d.value = {}, c.value = {}, S.value = {}, R.value = {}, T.value = {}, M.value = {}, B.value = {}, F.value = "200px", P.value = "200px", E.value = {}, L.value = i.showLeftTree, D.value = !1, O.value = {}, ut.value = {}, Ht.value = [], Ct.value = [], ne.value = [], xe.value = {}, te.value = {}, Wi.value = {}, ko.value = [], Yn.value = [], Ir.value = {}, Pn.value = {}, gs.value = [], nl.value = [], ol.value = [], rl.value = [], Y.value = {}, kr.value = {}, j.value = 0,
|
|
61234
|
+
}), r.value = "", s.value = {}, a.value = {}, h.value = {}, d.value = {}, c.value = {}, S.value = {}, R.value = {}, T.value = {}, M.value = {}, B.value = {}, F.value = "200px", P.value = "200px", E.value = {}, L.value = i.showLeftTree, D.value = !1, O.value = {}, ut.value = {}, Ht.value = [], Ct.value = [], ne.value = [], xe.value = {}, te.value = {}, Wi.value = {}, ko.value = [], Yn.value = [], Ir.value = {}, Pn.value = {}, gs.value = [], nl.value = [], ol.value = [], rl.value = [], Y.value = {}, kr.value = {}, j.value = 0, W.value = 0, ct.records = [], ct.rows = [], ct.columns = [], ct.indicators = [], ct.dataConfig = {
|
|
61235
61235
|
sortRules: [],
|
|
61236
61236
|
filterRules: []
|
|
61237
61237
|
}, ct.defaultRowHeight = pt, ct.menu.dropDownMenuHighlight = [], CC(), He(), er();
|
|
61238
61238
|
}
|
|
61239
|
-
function FB(
|
|
61239
|
+
function FB(N = [], U = []) {
|
|
61240
61240
|
var tt;
|
|
61241
|
-
const q =
|
|
61241
|
+
const q = N.concat(U).map((et) => et.name), J = k(Ht).filter((et) => et.isInnerFilter && !q.includes(et.name)).map((et) => ({
|
|
61242
61242
|
...et,
|
|
61243
61243
|
show: !1
|
|
61244
61244
|
})), X = k(Ct).filter((et) => et.isInnerFilter && !q.includes(et.name)).map((et) => ({
|
|
@@ -61246,7 +61246,7 @@ const qX = Ze({
|
|
|
61246
61246
|
show: !1
|
|
61247
61247
|
}));
|
|
61248
61248
|
Ht.value = [
|
|
61249
|
-
...
|
|
61249
|
+
...N,
|
|
61250
61250
|
...J
|
|
61251
61251
|
], Ct.value = [
|
|
61252
61252
|
...U,
|
|
@@ -61265,13 +61265,13 @@ const qX = Ze({
|
|
|
61265
61265
|
}
|
|
61266
61266
|
}), sl()) : lC();
|
|
61267
61267
|
}
|
|
61268
|
-
function IB(
|
|
61268
|
+
function IB(N) {
|
|
61269
61269
|
if (!k(I))
|
|
61270
61270
|
return;
|
|
61271
61271
|
const { name: U, scope: q } = k(I), J = k(Ht).find((kt) => kt.name === U), X = k(Ht).findIndex((kt) => kt.name === U), tt = k(Ct).find((kt) => kt.name === U), et = k(Ct).findIndex((kt) => kt.name === U), vt = {
|
|
61272
61272
|
timeStamp: (/* @__PURE__ */ new Date()).getTime()
|
|
61273
61273
|
};
|
|
61274
|
-
if (["rows", "columns"].includes(
|
|
61274
|
+
if (["rows", "columns"].includes(N))
|
|
61275
61275
|
if (J)
|
|
61276
61276
|
if (J.show) {
|
|
61277
61277
|
xn.error({
|
|
@@ -61280,15 +61280,15 @@ const qX = Ze({
|
|
|
61280
61280
|
});
|
|
61281
61281
|
return;
|
|
61282
61282
|
} else
|
|
61283
|
-
J.positionType =
|
|
61283
|
+
J.positionType = N, J.show = !0, k(Ht).push(J), k(Ht).splice(X, 1);
|
|
61284
61284
|
else
|
|
61285
61285
|
k(Ht).push({
|
|
61286
61286
|
...ci(k(I)),
|
|
61287
61287
|
...vt,
|
|
61288
|
-
positionType:
|
|
61288
|
+
positionType: N,
|
|
61289
61289
|
showTitle: k(I).label
|
|
61290
61290
|
});
|
|
61291
|
-
else if (
|
|
61291
|
+
else if (N === "indicators")
|
|
61292
61292
|
if (tt)
|
|
61293
61293
|
if (tt.show) {
|
|
61294
61294
|
xn.error({
|
|
@@ -61304,7 +61304,7 @@ const qX = Ze({
|
|
|
61304
61304
|
...vt,
|
|
61305
61305
|
showTitle: k(I).label
|
|
61306
61306
|
});
|
|
61307
|
-
else if (
|
|
61307
|
+
else if (N === "filters") {
|
|
61308
61308
|
if (["IDX", "BUILT_IN_IDX"].includes(q))
|
|
61309
61309
|
if (k(Qt).find((kt) => kt.name === U)) {
|
|
61310
61310
|
xn.error({
|
|
@@ -61345,22 +61345,22 @@ const qX = Ze({
|
|
|
61345
61345
|
}
|
|
61346
61346
|
}), sl();
|
|
61347
61347
|
}
|
|
61348
|
-
mn("setItemDisabled", (
|
|
61348
|
+
mn("setItemDisabled", (N = []) => {
|
|
61349
61349
|
let U = !1;
|
|
61350
61350
|
for (const q of k(Ht))
|
|
61351
|
-
if (!
|
|
61351
|
+
if (!N.find((X) => X.typeGuid === q.typeGuid)) {
|
|
61352
61352
|
U = !0;
|
|
61353
61353
|
break;
|
|
61354
61354
|
}
|
|
61355
61355
|
return U;
|
|
61356
61356
|
});
|
|
61357
61357
|
const gC = () => {
|
|
61358
|
-
}, kB = ({ checkKeys:
|
|
61359
|
-
q === "dimension" ? (a.value[U] =
|
|
61358
|
+
}, kB = ({ checkKeys: N, key: U, type: q }) => {
|
|
61359
|
+
q === "dimension" ? (a.value[U] = N, c.value = {}, _B(U, N)) : q === "indicators" && (h.value[U] = N, yB(U, N));
|
|
61360
61360
|
};
|
|
61361
|
-
function fC(
|
|
61362
|
-
let U =
|
|
61363
|
-
Array.isArray(U) || (U = [
|
|
61361
|
+
function fC(N) {
|
|
61362
|
+
let U = N;
|
|
61363
|
+
Array.isArray(U) || (U = [N]);
|
|
61364
61364
|
for (const q of U) {
|
|
61365
61365
|
const { indicatorKey: J } = q, X = _a(J);
|
|
61366
61366
|
if (X > -1) {
|
|
@@ -61370,15 +61370,15 @@ const qX = Ze({
|
|
|
61370
61370
|
}
|
|
61371
61371
|
n.updateOption(ct);
|
|
61372
61372
|
}
|
|
61373
|
-
function pC(
|
|
61373
|
+
function pC(N, U) {
|
|
61374
61374
|
const { unit: q = "", format: J, floatLength: X, position: tt } = U;
|
|
61375
|
-
|
|
61375
|
+
N.format = (et, vt, kt, le) => {
|
|
61376
61376
|
const Dt = le.getRecordByCell(vt, kt) || [];
|
|
61377
|
-
return Dt[0] && isNaN(+Dt[0][
|
|
61377
|
+
return Dt[0] && isNaN(+Dt[0][N.indicatorKey]) ? Dt[0][N.indicatorKey] : (J === "integer" ? et = Math.round(Number(et)) : J === "float" && !isNaN(X) ? et = Number(et).toFixed(X) : J === "percent" && (X ? et = (Number(et) * 100).toFixed(X) + "%" : et = Number(et) * 100 + "%"), tt === "right" ? et + q : q + et);
|
|
61378
61378
|
};
|
|
61379
61379
|
}
|
|
61380
|
-
function DB(
|
|
61381
|
-
const q = _a(
|
|
61380
|
+
function DB(N, U = []) {
|
|
61381
|
+
const q = _a(N);
|
|
61382
61382
|
if (q > -1) {
|
|
61383
61383
|
const J = ct.indicators[q];
|
|
61384
61384
|
J.conditionalConfig = U;
|
|
@@ -61421,10 +61421,10 @@ const qX = Ze({
|
|
|
61421
61421
|
}, n.updateOption(ct);
|
|
61422
61422
|
}
|
|
61423
61423
|
}
|
|
61424
|
-
function Kf(
|
|
61425
|
-
|
|
61424
|
+
function Kf(N, U) {
|
|
61425
|
+
N = N || "true";
|
|
61426
61426
|
const q = `function (value){
|
|
61427
|
-
if(${
|
|
61427
|
+
if(${N}){
|
|
61428
61428
|
return true
|
|
61429
61429
|
}else{
|
|
61430
61430
|
return false
|
|
@@ -61432,9 +61432,9 @@ const qX = Ze({
|
|
|
61432
61432
|
}`;
|
|
61433
61433
|
return Function(`"use strict";return (${q})`)().call(this, U);
|
|
61434
61434
|
}
|
|
61435
|
-
function OB(
|
|
61435
|
+
function OB(N) {
|
|
61436
61436
|
x.value = !0;
|
|
61437
|
-
const { value: U, key: q } =
|
|
61437
|
+
const { value: U, key: q } = N;
|
|
61438
61438
|
k(S)[q] = U, vn({
|
|
61439
61439
|
type: "6",
|
|
61440
61440
|
data: {
|
|
@@ -61446,9 +61446,9 @@ const qX = Ze({
|
|
|
61446
61446
|
function ll() {
|
|
61447
61447
|
return n == null ? void 0 : n.getDrawRange();
|
|
61448
61448
|
}
|
|
61449
|
-
const xd = Q([]), vC = Q(""), mC = Q(), zB = (
|
|
61449
|
+
const xd = Q([]), vC = Q(""), mC = Q(), zB = (N, U) => {
|
|
61450
61450
|
var Gt, ei, Hn, Xn, Qi;
|
|
61451
|
-
const q = U.dataViewColumns[
|
|
61451
|
+
const q = U.dataViewColumns[N.oldIndex] || {}, { scope: J } = q;
|
|
61452
61452
|
let X = !1, tt = !1;
|
|
61453
61453
|
["IDX", "BUILT_IN_IDX"].includes(J) ? X = !0 : ["DIM", "BUILT_IN_DIM"].includes(J) && (tt = !0);
|
|
61454
61454
|
const et = ll(), { rows: vt, columns: kt, indicators: le, records: Dt } = ct, {
|
|
@@ -61563,14 +61563,14 @@ const qX = Ze({
|
|
|
61563
61563
|
}
|
|
61564
61564
|
I.value = q, X ? xd.value = [0, 1] : tt && (xd.value = [2]);
|
|
61565
61565
|
}, WB = () => {
|
|
61566
|
-
var
|
|
61567
|
-
(
|
|
61566
|
+
var N;
|
|
61567
|
+
(N = k(O).records) != null && N.length ? n.updateOption({
|
|
61568
61568
|
...ct,
|
|
61569
61569
|
records: k(O).records
|
|
61570
61570
|
}) : n.updateOption(ct), K.value = !1, k(ce).height = "", xd.value = [];
|
|
61571
61571
|
}, NB = () => {
|
|
61572
|
-
var
|
|
61573
|
-
(
|
|
61572
|
+
var N;
|
|
61573
|
+
(N = k(mC)) == null || N.handleSearch(k(vC));
|
|
61574
61574
|
}, bC = oe(() => ({
|
|
61575
61575
|
defaultSortRule: r.value,
|
|
61576
61576
|
dimensionData: s.value,
|
|
@@ -61607,20 +61607,20 @@ const qX = Ze({
|
|
|
61607
61607
|
customIndicators: nl.value,
|
|
61608
61608
|
customRowKeys: ol.value,
|
|
61609
61609
|
customColKeys: rl.value,
|
|
61610
|
-
cacheResData:
|
|
61610
|
+
// cacheResData: cacheResData.value,
|
|
61611
61611
|
toolBoxStyle: kr.value,
|
|
61612
61612
|
scrollTop: j.value,
|
|
61613
|
-
scrollLeft:
|
|
61613
|
+
scrollLeft: W.value
|
|
61614
61614
|
}));
|
|
61615
61615
|
let Yf = null;
|
|
61616
|
-
Oe(bC, (
|
|
61617
|
-
i.isIframeMode && window.cacheTableData && window.cacheTableData(
|
|
61616
|
+
Oe(bC, (N) => {
|
|
61617
|
+
i.isIframeMode && window.cacheTableData && window.cacheTableData(N);
|
|
61618
61618
|
}, {
|
|
61619
61619
|
deep: !0
|
|
61620
61620
|
});
|
|
61621
|
-
function vn({ type:
|
|
61622
|
-
ft.value =
|
|
61623
|
-
type:
|
|
61621
|
+
function vn({ type: N, data: U }) {
|
|
61622
|
+
ft.value = N, e("tableChange", {
|
|
61623
|
+
type: N,
|
|
61624
61624
|
data: U
|
|
61625
61625
|
});
|
|
61626
61626
|
}
|
|
@@ -61632,13 +61632,13 @@ const qX = Ze({
|
|
|
61632
61632
|
});
|
|
61633
61633
|
}, 500));
|
|
61634
61634
|
}
|
|
61635
|
-
const Xf = (
|
|
61636
|
-
r.value =
|
|
61635
|
+
const Xf = (N) => {
|
|
61636
|
+
r.value = N.defaultSortRule, s.value = N.dimensionData, l.value = N.currentClickCell, a.value = N.dimFilterData, h.value = N.indFilterData, d.value = N.filterData, c.value = N.indFilterConfig, S.value = N.topNumData, R.value = N.sortData, T.value = N.colSortData, M.value = N.indSortData, B.value = N.aggregateMap, F.value = N.subMenuLeft, P.value = N.subMenuTop, E.value = N.dragAreaStyle, L.value = N.showTreeData, D.value = N.largeVisible, O.value = N.temporaryData, rt = N.splitSymbol, ut.value = N.sourceListStyle, Ht.value = N.dimensionFieldList, Ct.value = N.indicatorFieldList, ne.value = N.computedIndKeys, xe.value = N.computedIndMap, te.value = N.computedIndFieldMap, Wi.value = N.loadingRect, ko.value = N.calculateList, Yn.value = N.filterList, Ir.value = N.topNumMap, Pn.value = N.sortMap, gs.value = N.customDimensions, nl.value = N.customIndicators, ol.value = N.customRowKeys, rl.value = N.customColKeys, kr.value = N.toolBoxStyle, j.value = N.scrollTop, W.value = N.scrollLeft, Object.assign(ct, N.option), ct.theme = Kt;
|
|
61637
61637
|
};
|
|
61638
|
-
async function VB(
|
|
61638
|
+
async function VB(N) {
|
|
61639
61639
|
var U, q, J;
|
|
61640
|
-
if (x.value = !0,
|
|
61641
|
-
Xf(
|
|
61640
|
+
if (x.value = !0, N)
|
|
61641
|
+
Xf(N);
|
|
61642
61642
|
else if (i.isAllowSaveConfig) {
|
|
61643
61643
|
const X = await Nf("get", {
|
|
61644
61644
|
keyName: i.relateKeyName || i.keyName
|
|
@@ -61653,8 +61653,8 @@ const qX = Ze({
|
|
|
61653
61653
|
indicators: k(Ct)
|
|
61654
61654
|
};
|
|
61655
61655
|
}
|
|
61656
|
-
const GB = (
|
|
61657
|
-
const { scope: U, name: q, label: J } =
|
|
61656
|
+
const GB = (N) => {
|
|
61657
|
+
const { scope: U, name: q, label: J } = N;
|
|
61658
61658
|
let X = [];
|
|
61659
61659
|
["IDX", "BUILT_IN_IDX"].includes(U) ? X = k(Ct) : ["DIM", "BUILT_IN_DIM"].includes(U) && (X = k(Ht));
|
|
61660
61660
|
const tt = X.findIndex((et) => et.name === q);
|
|
@@ -61670,8 +61670,8 @@ const qX = Ze({
|
|
|
61670
61670
|
indicators: k(Ct)
|
|
61671
61671
|
}
|
|
61672
61672
|
}), sl();
|
|
61673
|
-
}, UB = (
|
|
61674
|
-
const { scope: U, label: q, showTitle: J } =
|
|
61673
|
+
}, UB = (N) => {
|
|
61674
|
+
const { scope: U, label: q, showTitle: J } = N, X = _H(U);
|
|
61675
61675
|
X === "indicator" || X === "dimension" && cC({
|
|
61676
61676
|
dimensionKey: q,
|
|
61677
61677
|
value: J
|
|
@@ -61695,7 +61695,7 @@ const qX = Ze({
|
|
|
61695
61695
|
deep: !0
|
|
61696
61696
|
});
|
|
61697
61697
|
function CC() {
|
|
61698
|
-
const { queryColumnList:
|
|
61698
|
+
const { queryColumnList: N = [], indicators: U = [] } = i.graphicConfig, q = ci(N), J = ci(U);
|
|
61699
61699
|
for (const X of q) {
|
|
61700
61700
|
const tt = i.dimensionList.find((et) => et.key === X.name);
|
|
61701
61701
|
X.positionType = (tt == null ? void 0 : tt.position) || "rows", X.showTitle = X.title || X.label, tt && (X.width = tt.width);
|
|
@@ -61710,10 +61710,10 @@ const qX = Ze({
|
|
|
61710
61710
|
o.value = !1, L.value = !L.value;
|
|
61711
61711
|
}, YB = () => {
|
|
61712
61712
|
o.value = !1, D.value = !D.value, window.enScale && window.enScale(k(D));
|
|
61713
|
-
}, XB = (
|
|
61714
|
-
const U = k(Ht).find((tt) => tt.label ===
|
|
61713
|
+
}, XB = (N) => {
|
|
61714
|
+
const U = k(Ht).find((tt) => tt.label === N), q = k(Ct).find((tt) => tt.label === N), J = U || q, X = k(a)[N];
|
|
61715
61715
|
return X ? J.genericType === "DATE" ? Array.isArray(X) ? `${X[0].value}~${X[1].value}` : X.value : X.value && Array.isArray(X.value) ? X.value.join("、") : "" : "";
|
|
61716
|
-
}, qB = (
|
|
61716
|
+
}, qB = (N) => N.parentNode;
|
|
61717
61717
|
return ls(() => {
|
|
61718
61718
|
He();
|
|
61719
61719
|
}), {
|
|
@@ -62028,7 +62028,7 @@ function oq(i, t, e, n, o, r) {
|
|
|
62028
62028
|
}, null, 8, ["scaleValue", "isIframeMode"])
|
|
62029
62029
|
], 8, ["to", "disabled"]));
|
|
62030
62030
|
}
|
|
62031
|
-
const rq = /* @__PURE__ */ Ji(qX, [["render", oq], ["__scopeId", "data-v-
|
|
62031
|
+
const rq = /* @__PURE__ */ Ji(qX, [["render", oq], ["__scopeId", "data-v-6017afa1"]]), sq = lP(rq), mA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
62032
62032
|
__proto__: null,
|
|
62033
62033
|
EcanPivotTable: sq
|
|
62034
62034
|
}, Symbol.toStringTag, { value: "Module" })), lq = (i, t) => {
|
|
@@ -62050,4 +62050,4 @@ export {
|
|
|
62050
62050
|
Eq as i,
|
|
62051
62051
|
kl as n
|
|
62052
62052
|
};
|
|
62053
|
-
//# sourceMappingURL=index-
|
|
62053
|
+
//# sourceMappingURL=index-c36e79f0.mjs.map
|