@ecan-bi/pivot-table 1.0.28 → 1.0.29
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/index.es.js +354 -360
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +20 -20
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +2 -2
- package/types/pivotTable/PivotTable.vue.d.ts +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/pivot-table@1.0.
|
|
2
|
-
import { defineComponent as Ze, ref as st, watch as Ue, computed as Qt, unref as D, resolveComponent as bt, openBlock as vt, createBlock as xe, withCtx as Tt, createVNode as ht, createTextVNode as Qe, createCommentVNode as Ne, createElementBlock as Wt, createElementVNode as Dt, normalizeStyle as ve, Fragment as Ii, renderList as Mn, withDirectives as nh, toDisplayString as ri, vShow as Au, h as Nb, nextTick as
|
|
1
|
+
/*! @ecan-bi/pivot-table@1.0.29 */
|
|
2
|
+
import { defineComponent as Ze, ref as st, watch as Ue, computed as Qt, unref as D, resolveComponent as bt, openBlock as vt, createBlock as xe, withCtx as Tt, createVNode as ht, createTextVNode as Qe, createCommentVNode as Ne, createElementBlock as Wt, createElementVNode as Dt, normalizeStyle as ve, Fragment as Ii, renderList as Mn, withDirectives as nh, toDisplayString as ri, vShow as Au, h as Nb, nextTick as cn, normalizeClass as or, withModifiers as Pr, onMounted as Gr, onUnmounted as jv, Transition as Fx, withKeys as oP, inject as ol, provide as Ra, Teleport as Ix, onBeforeUnmount as kx, toRaw as rP, resolveDynamicComponent as sP, mergeProps as lP, reactive as Vv, resolveDirective as aP, useCssVars as hP } from "vue";
|
|
3
3
|
import "dayjs";
|
|
4
4
|
import { cloneDeep as Ei } from "lodash-es";
|
|
5
5
|
import "ant-design-vue/es/input-number/style";
|
|
@@ -120,16 +120,16 @@ function Uv(i, t, e, n) {
|
|
|
120
120
|
return o;
|
|
121
121
|
}
|
|
122
122
|
let Tu = !1, Fp = !1;
|
|
123
|
-
const
|
|
123
|
+
const ho = [];
|
|
124
124
|
let Mr = 0;
|
|
125
125
|
const rl = [];
|
|
126
|
-
let
|
|
126
|
+
let Po = null, Rr = 0;
|
|
127
127
|
const bP = Promise.resolve();
|
|
128
128
|
function CP(i) {
|
|
129
|
-
|
|
130
|
-
let e = Mr + 1, n =
|
|
129
|
+
ho.length && ho.includes(i, Tu && i.allowRecurse ? Mr + 1 : Mr) || (i.id == null ? ho.push(i) : ho.splice(function(t) {
|
|
130
|
+
let e = Mr + 1, n = ho.length;
|
|
131
131
|
for (; e < n; ) {
|
|
132
|
-
const o = e + n >>> 1, r =
|
|
132
|
+
const o = e + n >>> 1, r = ho[o], s = oh(r);
|
|
133
133
|
s < t || s === t && r.pre ? e = o + 1 : n = o;
|
|
134
134
|
}
|
|
135
135
|
return e;
|
|
@@ -149,11 +149,11 @@ const oh = (i) => i.id == null ? 1 / 0 : i.id, yP = (i, t) => {
|
|
|
149
149
|
return e;
|
|
150
150
|
};
|
|
151
151
|
function Nx(i) {
|
|
152
|
-
Fp = !1, Tu = !0, process.env.NODE_ENV !== "production" && (i = i || /* @__PURE__ */ new Map()),
|
|
152
|
+
Fp = !1, Tu = !0, process.env.NODE_ENV !== "production" && (i = i || /* @__PURE__ */ new Map()), ho.sort(yP);
|
|
153
153
|
const t = process.env.NODE_ENV !== "production" ? (e) => Gb(i, e) : gP;
|
|
154
154
|
try {
|
|
155
|
-
for (Mr = 0; Mr <
|
|
156
|
-
const e =
|
|
155
|
+
for (Mr = 0; Mr < ho.length; Mr++) {
|
|
156
|
+
const e = ho[Mr];
|
|
157
157
|
if (e && e.active !== !1) {
|
|
158
158
|
if (process.env.NODE_ENV !== "production" && t(e))
|
|
159
159
|
continue;
|
|
@@ -161,16 +161,16 @@ function Nx(i) {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
} finally {
|
|
164
|
-
Mr = 0,
|
|
164
|
+
Mr = 0, ho.length = 0, function(e) {
|
|
165
165
|
if (rl.length) {
|
|
166
166
|
const n = [...new Set(rl)];
|
|
167
|
-
if (rl.length = 0,
|
|
168
|
-
return void
|
|
169
|
-
for (
|
|
170
|
-
process.env.NODE_ENV !== "production" && Gb(e,
|
|
171
|
-
|
|
167
|
+
if (rl.length = 0, Po)
|
|
168
|
+
return void Po.push(...n);
|
|
169
|
+
for (Po = n, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), Po.sort((o, r) => oh(o) - oh(r)), Rr = 0; Rr < Po.length; Rr++)
|
|
170
|
+
process.env.NODE_ENV !== "production" && Gb(e, Po[Rr]) || Po[Rr]();
|
|
171
|
+
Po = null, Rr = 0;
|
|
172
172
|
}
|
|
173
|
-
}(i), Tu = !1, (
|
|
173
|
+
}(i), Tu = !1, (ho.length || rl.length) && Nx(i);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
function Gb(i, t) {
|
|
@@ -205,7 +205,7 @@ process.env.NODE_ENV !== "production" && (Ep().__VUE_HMR_RUNTIME__ = { createRec
|
|
|
205
205
|
o = () => {
|
|
206
206
|
for (const r of n)
|
|
207
207
|
oa.delete(ra(r.type));
|
|
208
|
-
}, pP(o) ? rl.push(...o) :
|
|
208
|
+
}, pP(o) ? rl.push(...o) : Po && Po.includes(o, o.allowRecurse ? Rr + 1 : Rr) || rl.push(o), Wx();
|
|
209
209
|
var o;
|
|
210
210
|
}) });
|
|
211
211
|
const ld = /* @__PURE__ */ new Map();
|
|
@@ -542,7 +542,7 @@ function xP() {
|
|
|
542
542
|
}, R.en = y[w], R.Ls = y, R.p = {}, R;
|
|
543
543
|
}()), qb.exports;
|
|
544
544
|
}
|
|
545
|
-
var
|
|
545
|
+
var ao = SP(xP()), Vx = typeof global == "object" && global && global.Object === Object && global, RP = typeof self == "object" && self && self.Object === Object && self, fr = Vx || RP || Function("return this")(), Bl = fr.Symbol, $x = Object.prototype, AP = $x.hasOwnProperty, TP = $x.toString, sa = Bl ? Bl.toStringTag : void 0, MP = Object.prototype.toString, Zb = Bl ? Bl.toStringTag : void 0;
|
|
546
546
|
function Ih(i) {
|
|
547
547
|
return i == null ? i === void 0 ? "[object Undefined]" : "[object Null]" : Zb && Zb in Object(i) ? function(t) {
|
|
548
548
|
var e = AP.call(t, sa), n = t[sa];
|
|
@@ -927,7 +927,7 @@ Je[tR] = Je["[object Array]"] = Je["[object ArrayBuffer]"] = Je["[object DataVie
|
|
|
927
927
|
function Mu(i) {
|
|
928
928
|
return Qd(i, 5);
|
|
929
929
|
}
|
|
930
|
-
const
|
|
930
|
+
const hn = (i, t) => {
|
|
931
931
|
if (typeof i == "string" && typeof t == "string")
|
|
932
932
|
return i.toLocaleLowerCase().includes(t.toLocaleLowerCase());
|
|
933
933
|
if (typeof i == "string" && Array.isArray(t)) {
|
|
@@ -963,7 +963,7 @@ const v2 = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "cond
|
|
|
963
963
|
if (!m)
|
|
964
964
|
return [];
|
|
965
965
|
const { interval: b, intervalUnit: w, startTime: y, endTime: C, operate: _, useCurrentTime: x } = m || {};
|
|
966
|
-
if (x && (p =
|
|
966
|
+
if (x && (p = ao().subtract(b, w), v = ao()), y && (p = ao(y)), C && (v = ao(C)), _) {
|
|
967
967
|
const { type: R, value: S, mode: A } = _;
|
|
968
968
|
switch (R) {
|
|
969
969
|
case "add":
|
|
@@ -975,7 +975,7 @@ const v2 = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "cond
|
|
|
975
975
|
}
|
|
976
976
|
} else {
|
|
977
977
|
const m = _g(u) || {};
|
|
978
|
-
Qi(m.startTime) && (p =
|
|
978
|
+
Qi(m.startTime) && (p = ao(Qi(m.startTime))), Qi(m.endTime) && (v = ao(Qi(m.endTime)));
|
|
979
979
|
}
|
|
980
980
|
return p && v && (c = `${h === "before" ? "-" : ""}${v.diff(p, d.toLowerCase()) + 1}`), c ? [c] : [];
|
|
981
981
|
})({ around: s[1], unit: n[0], id: r })), delete i.radioValue;
|
|
@@ -989,7 +989,7 @@ const v2 = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "cond
|
|
|
989
989
|
i.fieldValue = "${" + i.fieldValue + "}";
|
|
990
990
|
delete i.dataType;
|
|
991
991
|
}
|
|
992
|
-
Nn(i, "activeKey") && delete i.activeKey, Nn(i, "radioValue") && delete i.radioValue, Nn(i, "indexCode") && (i.hrpIndexCode = i.indexCode, delete i.indexCode), Nn(i, "indexCodeNum") && (i.hrpIndexCodeNum = i.indexCodeNum, delete i.indexCodeNum), i.dataType !== "component" && i.useCurrentTime && (i.fieldValue =
|
|
992
|
+
Nn(i, "activeKey") && delete i.activeKey, Nn(i, "radioValue") && delete i.radioValue, Nn(i, "indexCode") && (i.hrpIndexCode = i.indexCode, delete i.indexCode), Nn(i, "indexCodeNum") && (i.hrpIndexCodeNum = i.indexCodeNum, delete i.indexCodeNum), i.dataType !== "component" && i.useCurrentTime && (i.fieldValue = ao().format(i.dateFormat)), Nn(i, "modelKey") && delete i.modelKey, Nn(i, "prop") && delete i.prop, delete i.useCurrentTime;
|
|
993
993
|
}
|
|
994
994
|
}, cs = (i, t) => {
|
|
995
995
|
const e = [];
|
|
@@ -1096,14 +1096,14 @@ function wg(i, t, e) {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
if (b && b[d]) {
|
|
1098
1098
|
const _ = Qi(b[d][w]);
|
|
1099
|
-
|
|
1099
|
+
ao.isDayjs(_) ? i.fieldValue = _.format(y || "YYYY-MM-DD") : i.fieldValue = _;
|
|
1100
1100
|
}
|
|
1101
1101
|
return;
|
|
1102
1102
|
}
|
|
1103
1103
|
const u = _g(t) || {}, { value: c, format: g = "YYYY-MM-DD", type: f = "", useCurrentTime: p, RECORD: v } = u || {}, m = o || g;
|
|
1104
|
-
if (
|
|
1104
|
+
if (hn(f, "date")) {
|
|
1105
1105
|
let b;
|
|
1106
|
-
if (b = p ? c ? Qi(c) :
|
|
1106
|
+
if (b = p ? c ? Qi(c) : ao() : Qi(c), typeof b == "string" && (b = ao(b)), l && a && h)
|
|
1107
1107
|
switch (h) {
|
|
1108
1108
|
case "add":
|
|
1109
1109
|
b = b.add(l, a);
|
|
@@ -1112,7 +1112,7 @@ function wg(i, t, e) {
|
|
|
1112
1112
|
b = b.subtract(l, a);
|
|
1113
1113
|
}
|
|
1114
1114
|
i.fieldValue = b == null ? void 0 : b.format(m), i.dateFormat = m;
|
|
1115
|
-
} else if (f
|
|
1115
|
+
} else if (hn(f, "rangepicker")) {
|
|
1116
1116
|
let b = n;
|
|
1117
1117
|
if (!n) {
|
|
1118
1118
|
const y = s && s.split("-");
|
|
@@ -1121,7 +1121,7 @@ function wg(i, t, e) {
|
|
|
1121
1121
|
if (!b)
|
|
1122
1122
|
return;
|
|
1123
1123
|
let w = null;
|
|
1124
|
-
if (Qi(u[b]) && (w =
|
|
1124
|
+
if (Qi(u[b]) && (w = ao(Qi(u[b]))), l && a && h) {
|
|
1125
1125
|
if (l === "rangeValue") {
|
|
1126
1126
|
if (u.startTime && u.endTime) {
|
|
1127
1127
|
const y = Qi(u.endTime).diff(Qi(u.startTime), a) + 1;
|
|
@@ -1163,7 +1163,7 @@ function wg(i, t, e) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
i.dateFormat = m;
|
|
1165
1165
|
} else
|
|
1166
|
-
|
|
1166
|
+
hn(f, p2) ? i.fieldValue = r && v ? v[r] : !r && v ? v.value : Qi(c) : i.fieldValue = Qi(c);
|
|
1167
1167
|
}
|
|
1168
1168
|
const dd = (i) => {
|
|
1169
1169
|
var t;
|
|
@@ -1187,7 +1187,7 @@ const dd = (i) => {
|
|
|
1187
1187
|
let e, n = "";
|
|
1188
1188
|
for (const o of t) {
|
|
1189
1189
|
const r = _g(o) || {}, { type: s, RECORD: l } = r;
|
|
1190
|
-
if (
|
|
1190
|
+
if (hn(s, "image") && hn(l == null ? void 0 : l.value, ["asc", "desc"])) {
|
|
1191
1191
|
n = l.value.toUpperCase();
|
|
1192
1192
|
break;
|
|
1193
1193
|
}
|
|
@@ -1197,7 +1197,7 @@ const dd = (i) => {
|
|
|
1197
1197
|
var e, n, o, r, s, l, a, h;
|
|
1198
1198
|
const { graphicConfig: d, type: u, globalModel: c, isGroupTable: g = !1 } = i;
|
|
1199
1199
|
c && (nR = c);
|
|
1200
|
-
const f =
|
|
1200
|
+
const f = hn(u, "pivottable");
|
|
1201
1201
|
let p, { source: v, dataViewId: m, plugin: b = "1", layer: w, chartType: y, classificationList: C = [], rowHeaderList: _ = [], dimensionList: x = [], seriesList: R = [], leftAxisList: S = [], rightAxisList: A = [], queryColumnList: T = [], indicators: M = [], controlList: P = [], formFields: L = {}, variableList: B = [], variableConditions: H = [], dataSourceId: F = "", idxLibMode: I, preview: E = !1, edvDataSetId: k } = d || {}, O = [];
|
|
1202
1202
|
if ((d == null ? void 0 : d.pageMode) === "design" ? (O = ((e = d.sqlConditions) !== null && e !== void 0 ? e : []).map((U) => {
|
|
1203
1203
|
const X = {};
|
|
@@ -1220,7 +1220,7 @@ const dd = (i) => {
|
|
|
1220
1220
|
const U = O.filter((tt) => tt.globalCondition), X = O.filter((tt) => !tt.globalCondition);
|
|
1221
1221
|
(U == null ? void 0 : U.length) > 1 && (O = [{ join: "&&", conditions: U }, ...X]);
|
|
1222
1222
|
}
|
|
1223
|
-
O != null && O.length && (O = cs(O, "1")), w == null && (w =
|
|
1223
|
+
O != null && O.length && (O = cs(O, "1")), w == null && (w = hn(u, ["table", "card"]) || hn(u, ["list", "circulate"]) && (C == null ? void 0 : C.length) > 1 ? "1" : hn(u, ["select", "checkbox", "radio"]) ? "3" : "2");
|
|
1224
1224
|
const N = [];
|
|
1225
1225
|
let W, V = "";
|
|
1226
1226
|
if (Array.isArray(C) && C.length > 0 && (!["ecanList", "ecanCirculate"].includes(u) || (C == null ? void 0 : C.length) === 1)) {
|
|
@@ -1237,7 +1237,7 @@ const dd = (i) => {
|
|
|
1237
1237
|
je && Be && (Z.num = Be, Z.rule = je, Ye && (Z.otherGroupName = Ye));
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
|
-
if (!((n = Object.keys(Z)) === null || n === void 0) && n.length && (p.truncation = Z), !
|
|
1240
|
+
if (!((n = Object.keys(Z)) === null || n === void 0) && n.length && (p.truncation = Z), !hn(u, ["scatter", "valueline"]))
|
|
1241
1241
|
break;
|
|
1242
1242
|
N.push(p);
|
|
1243
1243
|
}
|
|
@@ -1331,13 +1331,13 @@ const dd = (i) => {
|
|
|
1331
1331
|
for (const yt of K)
|
|
1332
1332
|
At.includes(yt.columnName) ? G.push(yt) : ut.includes(yt.columnName) && ft.push(yt);
|
|
1333
1333
|
}
|
|
1334
|
-
if (
|
|
1334
|
+
if (hn(u, ["text", "proportion", "counter"]) ? y = "zb" : hn(u, ["valueline"]) && (y = "valueline"), g || u === "card") {
|
|
1335
1335
|
if (G.length === 0 || $.length === 0)
|
|
1336
1336
|
return;
|
|
1337
1337
|
y = "grouptable";
|
|
1338
1338
|
} else if (w === "1" && K.length === 0 || w === "2" && $.length === 0 || !(w !== "3" || (V || v === "EDV_DATA_SET") && L.labelField && L.valueField) || w === "3" && u === "ecanDataSelect" && $.length === 0)
|
|
1339
1339
|
return;
|
|
1340
|
-
if (x != null && x.length && (w = "1", y = "grouptable"), !
|
|
1340
|
+
if (x != null && x.length && (w = "1", y = "grouptable"), !hn(u, ["scatter", "valueline"]) && ((h = Object.keys(L)) === null || h === void 0 ? void 0 : h.length)) {
|
|
1341
1341
|
const U = Bu(P).find((tt) => tt.conditionKey === "parentCode"), X = {};
|
|
1342
1342
|
if (U) {
|
|
1343
1343
|
const tt = _g(U.id) || {};
|
|
@@ -1348,7 +1348,7 @@ const dd = (i) => {
|
|
|
1348
1348
|
u === "ecanDataSelect" && (X.indicatorList = $.filter((tt) => tt.show)), v === "EDV_DATA_SET" && (X.edvDataSetId = k), Ct = Object.assign({ url: "/diagram/formData", source: v, dataViewId: m, plugin: "4", layer: w, chartType: "normalSelect", rangeIndexTypeGuid: V, type: u === "ecanDataSelect" ? "normalSelectData" : "normalSelect", labelField: L.labelField, valueField: L.valueField, sqlConditions: O, idxLibMode: "WITH_DATE_DIM_TABLE", dataSourceId: F, keyName: i.keyName }, X);
|
|
1349
1349
|
} else {
|
|
1350
1350
|
let U = {};
|
|
1351
|
-
U =
|
|
1351
|
+
U = hn(u, ["scatter", "valueline"]) ? { classifications: N } : { classification: p }, Ct = Object.assign({ url: "/diagram", source: v, dataViewId: m, plugin: f ? "5" : b, layer: w, chartType: f ? "pivot-table" : y, series: W, indicatorList: $, queryColumns: g ? [] : K, pageFlag: !0, edvDataSetId: k || "", sqlConditions: O.map((X) => {
|
|
1352
1352
|
const { fieldValue: tt } = X, rt = {};
|
|
1353
1353
|
return tt && Array.isArray(tt) && (rt.fieldValue = JSON.stringify(tt)), Object.assign(Object.assign({}, X), rt);
|
|
1354
1354
|
}), idxLibMode: I, dataSourceId: F, preview: E, rowHeaders: G, keyName: i.keyName, columnData: gt, columnHeaders: ft }, U);
|
|
@@ -1953,7 +1953,7 @@ class E2 {
|
|
|
1953
1953
|
this.taps[o] = t;
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
|
-
class
|
|
1956
|
+
class dn extends E2 {
|
|
1957
1957
|
call(...t) {
|
|
1958
1958
|
this.taps.map((e) => e.fn).forEach((e) => e(...t));
|
|
1959
1959
|
}
|
|
@@ -2014,7 +2014,7 @@ let zp = class {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
constructor(i) {
|
|
2016
2016
|
this.contributions = i, this.id = yi.GenAutoIncrementId(), this.hooks = {
|
|
2017
|
-
onSetEnv: new
|
|
2017
|
+
onSetEnv: new dn(["lastEnv", "env", "global"])
|
|
2018
2018
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
2019
2019
|
}
|
|
2020
2020
|
bindContribution(i) {
|
|
@@ -2578,15 +2578,15 @@ const yH = (i, t, e) => {
|
|
|
2578
2578
|
}
|
|
2579
2579
|
return n;
|
|
2580
2580
|
}, _H = 1e-10, wH = 1e-10;
|
|
2581
|
-
function
|
|
2581
|
+
function go(i, t, e = wH, n = _H) {
|
|
2582
2582
|
const o = n, r = e * Math.max(i, t);
|
|
2583
2583
|
return Math.abs(i - t) <= Math.max(o, r);
|
|
2584
2584
|
}
|
|
2585
2585
|
function _C(i, t, e, n) {
|
|
2586
|
-
return i > t && !
|
|
2586
|
+
return i > t && !go(i, t, e, n);
|
|
2587
2587
|
}
|
|
2588
2588
|
function wC(i, t, e, n) {
|
|
2589
|
-
return i < t && !
|
|
2589
|
+
return i < t && !go(i, t, e, n);
|
|
2590
2590
|
}
|
|
2591
2591
|
const Oh = (i) => {
|
|
2592
2592
|
let t = null, e = null;
|
|
@@ -2684,7 +2684,7 @@ function AH(i, t) {
|
|
|
2684
2684
|
const e = i.valueOf(), n = t.valueOf(), o = /* @__PURE__ */ new Date();
|
|
2685
2685
|
return (r) => (o.setTime(e * (1 - r) + n * r), o);
|
|
2686
2686
|
}
|
|
2687
|
-
const Ve = 1e-12, Fe = Math.PI, Gn = Fe / 2, zi = 2 * Fe, be = 2 * Math.PI, Me = Math.abs, Ae = Math.atan2, fi = Math.cos, Dr = Math.max, Yi = Math.min, ii = Math.sin,
|
|
2687
|
+
const Ve = 1e-12, Fe = Math.PI, Gn = Fe / 2, zi = 2 * Fe, be = 2 * Math.PI, Me = Math.abs, Ae = Math.atan2, fi = Math.cos, Dr = Math.max, Yi = Math.min, ii = Math.sin, vo = Math.sqrt, Ns = Math.pow;
|
|
2688
2688
|
function TH(i) {
|
|
2689
2689
|
return i > 1 ? 0 : i < -1 ? Fe : Math.acos(i);
|
|
2690
2690
|
}
|
|
@@ -2729,13 +2729,13 @@ class ui {
|
|
|
2729
2729
|
}
|
|
2730
2730
|
class er {
|
|
2731
2731
|
static distancePP(t, e) {
|
|
2732
|
-
return
|
|
2732
|
+
return vo(Ns(t.x - e.x, 2) + Ns(t.y - e.y, 2));
|
|
2733
2733
|
}
|
|
2734
2734
|
static distanceNN(t, e, n, o) {
|
|
2735
|
-
return
|
|
2735
|
+
return vo(Ns(t - n, 2) + Ns(e - o, 2));
|
|
2736
2736
|
}
|
|
2737
2737
|
static distancePN(t, e, n) {
|
|
2738
|
-
return
|
|
2738
|
+
return vo(Ns(e - t.x, 2) + Ns(n - t.y, 2));
|
|
2739
2739
|
}
|
|
2740
2740
|
static pointAtPP(t, e, n) {
|
|
2741
2741
|
return new ui((e.x - t.x) * n + t.x, (e.y - t.y) * n + t.y);
|
|
@@ -5507,7 +5507,7 @@ let Zp = class {
|
|
|
5507
5507
|
}
|
|
5508
5508
|
constructor() {
|
|
5509
5509
|
this.hooks = {
|
|
5510
|
-
onChange: new
|
|
5510
|
+
onChange: new dn(["x", "y", "width", "height"])
|
|
5511
5511
|
}, this.active = () => {
|
|
5512
5512
|
const i = this.global;
|
|
5513
5513
|
!i.env || this.actived || (Kt.getNamed(am, i.env).configure(this, i), this.actived = !0);
|
|
@@ -5605,7 +5605,7 @@ let Zp = class {
|
|
|
5605
5605
|
}
|
|
5606
5606
|
hasSubView() {
|
|
5607
5607
|
const i = this._handler.getViewBox();
|
|
5608
|
-
return !(i.x1 === 0 && i.y1 === 0 &&
|
|
5608
|
+
return !(i.x1 === 0 && i.y1 === 0 && go(this.width, i.width()) && go(this.height, i.height()));
|
|
5609
5609
|
}
|
|
5610
5610
|
isVisible(i) {
|
|
5611
5611
|
return this._handler.isVisible(i);
|
|
@@ -6389,7 +6389,7 @@ class Iu extends zh {
|
|
|
6389
6389
|
throw new Error("Method not implemented.");
|
|
6390
6390
|
}
|
|
6391
6391
|
}
|
|
6392
|
-
class
|
|
6392
|
+
class _n extends Iu {
|
|
6393
6393
|
constructor() {
|
|
6394
6394
|
super(...arguments), this.width = 0, this.height = 0, this.isPrimary = !1;
|
|
6395
6395
|
}
|
|
@@ -6401,7 +6401,7 @@ class yn extends Iu {
|
|
|
6401
6401
|
}
|
|
6402
6402
|
clone() {
|
|
6403
6403
|
var t, e, n;
|
|
6404
|
-
const o = new
|
|
6404
|
+
const o = new _n(this.manager);
|
|
6405
6405
|
o.eventPhase = o.NONE, o.currentTarget = null, o.path = [], o.detailPath = [], o.target = null, o.nativeEvent = this.nativeEvent, o.originalEvent = this.originalEvent, (t = this.manager) === null || t === void 0 || t.copyPointerData(this, o), (e = this.manager) === null || e === void 0 || e.copyMouseData(this, o), (n = this.manager) === null || n === void 0 || n.copyData(this, o), o.target = this.target, o.path = this.composedPath().slice();
|
|
6406
6406
|
const r = this.composedDetailPath();
|
|
6407
6407
|
return o.detailPath = r && r.slice(), o.type = this.type, o;
|
|
@@ -6434,7 +6434,7 @@ let ZE = class {
|
|
|
6434
6434
|
this.dispatch = new Bs(), this.cursorTarget = null, this.pauseNotify = !1, this.mappingState = {
|
|
6435
6435
|
trackingData: {}
|
|
6436
6436
|
}, this.eventPool = /* @__PURE__ */ new Map(), this.onPointerDown = (n, o) => {
|
|
6437
|
-
if (!(n instanceof
|
|
6437
|
+
if (!(n instanceof _n))
|
|
6438
6438
|
return void Le.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");
|
|
6439
6439
|
const r = this.createPointerEvent(n, n.type, o);
|
|
6440
6440
|
if (this.dispatchEvent(r, "pointerdown"), r.pointerType === "touch")
|
|
@@ -6446,7 +6446,7 @@ let ZE = class {
|
|
|
6446
6446
|
this.trackingData(n.pointerId).pressTargetsByButton[n.button] = r.composedPath(), this.freeEvent(r);
|
|
6447
6447
|
}, this.onPointerMove = (n, o) => {
|
|
6448
6448
|
var r, s;
|
|
6449
|
-
if (!(n instanceof
|
|
6449
|
+
if (!(n instanceof _n))
|
|
6450
6450
|
return void Le.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");
|
|
6451
6451
|
const l = this.createPointerEvent(n, n.type, o), a = yr(l.pointerType), h = this.trackingData(n.pointerId), d = this.findMountedTarget(h.overTargets);
|
|
6452
6452
|
if (h.overTargets && d && d !== this.rootTarget && d !== l.target) {
|
|
@@ -6482,7 +6482,7 @@ let ZE = class {
|
|
|
6482
6482
|
this.dispatchEvent(l, "pointermove"), l.pointerType === "touch" && this.dispatchEvent(l, "touchmove"), a && (this.dispatchEvent(l, "mousemove"), this.cursorTarget = l.target, this.cursor = ((s = (r = l.target) === null || r === void 0 ? void 0 : r.attribute) === null || s === void 0 ? void 0 : s.cursor) || this.rootTarget.getCursor()), h.overTargets = l.composedPath(), this.freeEvent(l);
|
|
6483
6483
|
}, this.onPointerOver = (n, o) => {
|
|
6484
6484
|
var r, s;
|
|
6485
|
-
if (!(n instanceof
|
|
6485
|
+
if (!(n instanceof _n))
|
|
6486
6486
|
return void Le.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");
|
|
6487
6487
|
const l = this.trackingData(n.pointerId), a = this.createPointerEvent(n, n.type, o), h = yr(a.pointerType);
|
|
6488
6488
|
this.dispatchEvent(a, "pointerover"), h && this.dispatchEvent(a, "mouseover"), a.pointerType === "mouse" && (this.cursorTarget = a.target, this.cursor = ((s = (r = a.target) === null || r === void 0 ? void 0 : r.attribute) === null || s === void 0 ? void 0 : s.cursor) || this.rootTarget.getCursor());
|
|
@@ -6491,7 +6491,7 @@ let ZE = class {
|
|
|
6491
6491
|
d.currentTarget = d.target, this.notifyTarget(d), h && this.notifyTarget(d, "mouseenter"), d.target = d.target.parent;
|
|
6492
6492
|
l.overTargets = a.composedPath(), this.freeEvent(a), this.freeEvent(d);
|
|
6493
6493
|
}, this.onPointerOut = (n, o) => {
|
|
6494
|
-
if (!(n instanceof
|
|
6494
|
+
if (!(n instanceof _n))
|
|
6495
6495
|
return void Le.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");
|
|
6496
6496
|
const r = this.trackingData(n.pointerId);
|
|
6497
6497
|
if (r.overTargets) {
|
|
@@ -6505,7 +6505,7 @@ let ZE = class {
|
|
|
6505
6505
|
this.cursorTarget = null, this.cursor = "";
|
|
6506
6506
|
}, this.onPointerUp = (n, o) => {
|
|
6507
6507
|
var r;
|
|
6508
|
-
if (!(n instanceof
|
|
6508
|
+
if (!(n instanceof _n))
|
|
6509
6509
|
return void Le.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");
|
|
6510
6510
|
const s = Cs.now(), l = this.createPointerEvent(n, n.type, o);
|
|
6511
6511
|
if (this.dispatchEvent(l, "pointerup"), l.pointerType === "touch")
|
|
@@ -6541,7 +6541,7 @@ let ZE = class {
|
|
|
6541
6541
|
}
|
|
6542
6542
|
this.freeEvent(l);
|
|
6543
6543
|
}, this.onPointerUpOutside = (n, o) => {
|
|
6544
|
-
if (!(n instanceof
|
|
6544
|
+
if (!(n instanceof _n))
|
|
6545
6545
|
return void Le.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");
|
|
6546
6546
|
const r = this.trackingData(n.pointerId), s = this.findMountedTarget(r.pressTargetsByButton[n.button]), l = this.createPointerEvent(n, n.type, o);
|
|
6547
6547
|
if (s) {
|
|
@@ -6626,7 +6626,7 @@ let ZE = class {
|
|
|
6626
6626
|
}
|
|
6627
6627
|
createPointerEvent(t, e, n) {
|
|
6628
6628
|
var o, r;
|
|
6629
|
-
const s = this.allocateEvent(
|
|
6629
|
+
const s = this.allocateEvent(_n);
|
|
6630
6630
|
return this.copyPointerData(t, s), this.copyMouseData(t, s), this.copyData(t, s), s.nativeEvent = t.nativeEvent, s.originalEvent = t, s.target = n || this.pickTarget((o = s.viewX) !== null && o !== void 0 ? o : s.global.x, (r = s.viewY) !== null && r !== void 0 ? r : s.global.y, s), typeof e == "string" && (s.type = e), s;
|
|
6631
6631
|
}
|
|
6632
6632
|
createWheelEvent(t, e) {
|
|
@@ -6635,7 +6635,7 @@ let ZE = class {
|
|
|
6635
6635
|
return this.copyWheelData(t, r), this.copyMouseData(t, r), this.copyData(t, r), r.nativeEvent = t.nativeEvent, r.originalEvent = t, r.target = e || this.pickTarget((n = r.viewX) !== null && n !== void 0 ? n : r.global.x, (o = r.viewY) !== null && o !== void 0 ? o : r.global.y, r), r;
|
|
6636
6636
|
}
|
|
6637
6637
|
clonePointerEvent(t, e) {
|
|
6638
|
-
const n = this.allocateEvent(
|
|
6638
|
+
const n = this.allocateEvent(_n);
|
|
6639
6639
|
n.nativeEvent = t.nativeEvent, n.originalEvent = t.originalEvent, this.copyPointerData(t, n), this.copyMouseData(t, n), this.copyData(t, n), n.target = t.target, n.path = t.composedPath().slice();
|
|
6640
6640
|
const o = t.composedDetailPath();
|
|
6641
6641
|
return n.detailPath = o && o.slice(), n.type = e ?? n.type, n;
|
|
@@ -6644,7 +6644,7 @@ let ZE = class {
|
|
|
6644
6644
|
e.deltaMode = t.deltaMode, e.deltaX = t.deltaX, e.deltaY = t.deltaY, e.deltaZ = t.deltaZ;
|
|
6645
6645
|
}
|
|
6646
6646
|
copyPointerData(t, e) {
|
|
6647
|
-
t instanceof
|
|
6647
|
+
t instanceof _n && e instanceof _n && (e.pointerId = t.pointerId, e.width = t.width, e.height = t.height, e.isPrimary = t.isPrimary, e.pointerType = t.pointerType, e.pressure = t.pressure, e.tangentialPressure = t.tangentialPressure, e.tiltX = t.tiltX, e.tiltY = t.tiltY, e.twist = t.twist);
|
|
6648
6648
|
}
|
|
6649
6649
|
copyMouseData(t, e) {
|
|
6650
6650
|
t instanceof Iu && e instanceof Iu && (e.altKey = t.altKey, e.button = t.button, e.buttons = t.buttons, e.ctrlKey = t.ctrlKey, e.shiftKey = t.shiftKey, e.metaKey = t.metaKey, ["client", "movement", "canvas", "screen", "global", "offset", "viewport"].forEach((n) => {
|
|
@@ -6770,7 +6770,7 @@ class tL {
|
|
|
6770
6770
|
this.manager = new ZE(o, {
|
|
6771
6771
|
clickInterval: l,
|
|
6772
6772
|
supportsTouchEvents: a
|
|
6773
|
-
}), this.globalObj = r, this.supportsPointerEvents = h, this.supportsTouchEvents = a, this.supportsMouseEvents = r.supportsMouseEvents, this.applyStyles = r.applyStyles, this.autoPreventDefault = s, this.eventsAdded = !1, this.rootPointerEvent = new
|
|
6773
|
+
}), this.globalObj = r, this.supportsPointerEvents = h, this.supportsTouchEvents = a, this.supportsMouseEvents = r.supportsMouseEvents, this.applyStyles = r.applyStyles, this.autoPreventDefault = s, this.eventsAdded = !1, this.rootPointerEvent = new _n(), this.rootWheelEvent = new Ir(), this.cursorStyles = {
|
|
6774
6774
|
default: "inherit",
|
|
6775
6775
|
pointer: "pointer"
|
|
6776
6776
|
}, this.resolution = n, this.setTargetElement(e);
|
|
@@ -7870,7 +7870,7 @@ function YC(i, t) {
|
|
|
7870
7870
|
return -1;
|
|
7871
7871
|
}
|
|
7872
7872
|
He.cache = /* @__PURE__ */ new Map(), He.isLoading = !1, He.toLoadAueue = [], He.onLoadSuccessCb = [];
|
|
7873
|
-
const aL = new mi(), XC = new Ke(), Qn = ["lineWidth", "scaleX", "scaleY", "angle", "anchor", "visible"], qC = ["x", "y"], ZC = ["scaleX", "scaleY"], JC = ["angle"], da = new ui(),
|
|
7873
|
+
const aL = new mi(), XC = new Ke(), Qn = ["lineWidth", "scaleX", "scaleY", "angle", "anchor", "visible"], qC = ["x", "y"], ZC = ["scaleX", "scaleY"], JC = ["angle"], da = new ui(), Co = {
|
|
7874
7874
|
strokeSeg: 1,
|
|
7875
7875
|
boundsPadding: 2,
|
|
7876
7876
|
pickMode: 1,
|
|
@@ -7900,12 +7900,12 @@ const aL = new mi(), XC = new Ke(), Qn = ["lineWidth", "scaleX", "scaleY", "angl
|
|
|
7900
7900
|
cursor: 1,
|
|
7901
7901
|
html: 1
|
|
7902
7902
|
};
|
|
7903
|
-
class
|
|
7903
|
+
class mn extends qE {
|
|
7904
7904
|
static mixin(t) {
|
|
7905
7905
|
const e = Object.keys(t);
|
|
7906
7906
|
for (let n = 0; n < e.length; ++n) {
|
|
7907
7907
|
const o = e[n];
|
|
7908
|
-
Object.defineProperty(
|
|
7908
|
+
Object.defineProperty(mn.prototype, o, Object.getOwnPropertyDescriptor(t, o));
|
|
7909
7909
|
}
|
|
7910
7910
|
}
|
|
7911
7911
|
get AABBBounds() {
|
|
@@ -8518,7 +8518,7 @@ class vn extends qE {
|
|
|
8518
8518
|
function hL(i) {
|
|
8519
8519
|
return !(!i.fill && !i.stroke);
|
|
8520
8520
|
}
|
|
8521
|
-
|
|
8521
|
+
mn.mixin(JE);
|
|
8522
8522
|
function dL(i, t) {
|
|
8523
8523
|
const e = [];
|
|
8524
8524
|
let n = t.exec(i);
|
|
@@ -8770,7 +8770,7 @@ var iy;
|
|
|
8770
8770
|
(function(i) {
|
|
8771
8771
|
i[i.LESS_GROUP = 0] = "LESS_GROUP", i[i.MORE_GROUP = 1] = "MORE_GROUP";
|
|
8772
8772
|
})(iy || (iy = {}));
|
|
8773
|
-
let Ln = class e0 extends
|
|
8773
|
+
let Ln = class e0 extends mn {
|
|
8774
8774
|
constructor(t) {
|
|
8775
8775
|
super(t), this.type = "group", this.parent = null, this.isContainer = !0, this.numberType = cm, this._childUpdateTag = Ee.UPDATE_BOUNDS;
|
|
8776
8776
|
}
|
|
@@ -8930,7 +8930,7 @@ let Ln = class e0 extends vn {
|
|
|
8930
8930
|
return e0.NOWORK_ANIMATE_ATTR;
|
|
8931
8931
|
}
|
|
8932
8932
|
};
|
|
8933
|
-
Ln.NOWORK_ANIMATE_ATTR =
|
|
8933
|
+
Ln.NOWORK_ANIMATE_ATTR = Co;
|
|
8934
8934
|
function Du(i) {
|
|
8935
8935
|
return new Ln(i);
|
|
8936
8936
|
}
|
|
@@ -9170,7 +9170,7 @@ function rA(i, t, e, n, o) {
|
|
|
9170
9170
|
if ((w > Ve || b > Ve) && (A = o * fi(u), T = o * ii(u), M = n * fi(g), P = n * ii(g), r < Fe)) {
|
|
9171
9171
|
const L = LL(_, x, M, P, A, T, R, S);
|
|
9172
9172
|
if (L) {
|
|
9173
|
-
const B = _ - L[0], H = x - L[1], F = A - L[0], I = T - L[1], E = 1 / ii(TH((B * F + H * I) / (
|
|
9173
|
+
const B = _ - L[0], H = x - L[1], F = A - L[0], I = T - L[1], E = 1 / ii(TH((B * F + H * I) / (vo(B * B + H * H) * vo(F * F + I * I))) / 2), k = vo(L[0] * L[0] + L[1] * L[1]);
|
|
9174
9174
|
C = Yi(w, (n - k) / (E - 1)), y = Yi(b, (o - k) / (E + 1));
|
|
9175
9175
|
}
|
|
9176
9176
|
}
|
|
@@ -9511,15 +9511,15 @@ function UL(i) {
|
|
|
9511
9511
|
let h0 = class {
|
|
9512
9512
|
constructor(i) {
|
|
9513
9513
|
this.creator = i, this.hooks = {
|
|
9514
|
-
onAttributeUpdate: new
|
|
9515
|
-
onSetStage: new
|
|
9516
|
-
onRemove: new
|
|
9517
|
-
onRelease: new
|
|
9518
|
-
onAddIncremental: new
|
|
9519
|
-
onClearIncremental: new
|
|
9520
|
-
beforeUpdateAABBBounds: new
|
|
9521
|
-
afterUpdateAABBBounds: new
|
|
9522
|
-
clearAABBBounds: new
|
|
9514
|
+
onAttributeUpdate: new dn(["graphic"]),
|
|
9515
|
+
onSetStage: new dn(["graphic", "stage"]),
|
|
9516
|
+
onRemove: new dn(["graphic"]),
|
|
9517
|
+
onRelease: new dn(["graphic"]),
|
|
9518
|
+
onAddIncremental: new dn(["graphic", "group", "stage"]),
|
|
9519
|
+
onClearIncremental: new dn(["graphic", "group", "stage"]),
|
|
9520
|
+
beforeUpdateAABBBounds: new dn(["graphic", "stage", "willUpdate", "aabbBounds"]),
|
|
9521
|
+
afterUpdateAABBBounds: new dn(["graphic", "stage", "aabbBounds", "globalAABBBounds", "selfChange"]),
|
|
9522
|
+
clearAABBBounds: new dn(["graphic", "stage", "aabbBounds"])
|
|
9523
9523
|
}, this.tempAABBBounds1 = new Ke(), this.tempAABBBounds2 = new Ke();
|
|
9524
9524
|
}
|
|
9525
9525
|
onAttributeUpdate(i) {
|
|
@@ -9612,7 +9612,7 @@ const ai = {
|
|
|
9612
9612
|
z: 0,
|
|
9613
9613
|
lastModelMatrix: null
|
|
9614
9614
|
};
|
|
9615
|
-
class
|
|
9615
|
+
class bn {
|
|
9616
9616
|
init(t) {
|
|
9617
9617
|
t && (this._renderContribitions = t.getContributions()), this._renderContribitions || (this._renderContribitions = []), this.builtinContributions && this.builtinContributions.forEach((e) => this._renderContribitions.push(e)), this._renderContribitions.length && (this._renderContribitions.sort((e, n) => n.order - e.order), this._beforeRenderContribitions = this._renderContribitions.filter((e) => e.time === ye.beforeFillStroke), this._afterRenderContribitions = this._renderContribitions.filter((e) => e.time === ye.afterFillStroke));
|
|
9618
9618
|
}
|
|
@@ -10021,7 +10021,7 @@ class Vh {
|
|
|
10021
10021
|
}
|
|
10022
10022
|
}
|
|
10023
10023
|
const Ds = new Vh();
|
|
10024
|
-
let
|
|
10024
|
+
let mo = class {
|
|
10025
10025
|
constructor(i) {
|
|
10026
10026
|
this.subRenderContribitions = i, this.time = ye.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
10027
10027
|
}
|
|
@@ -10031,7 +10031,7 @@ let vo = class {
|
|
|
10031
10031
|
});
|
|
10032
10032
|
}
|
|
10033
10033
|
};
|
|
10034
|
-
|
|
10034
|
+
mo = ZL([wt(), oy(0, le(Ci)), oy(0, Bi(mm)), JL("design:paramtypes", [Object])], mo);
|
|
10035
10035
|
class Cm {
|
|
10036
10036
|
constructor() {
|
|
10037
10037
|
this.time = ye.afterFillStroke, this.useStyle = !0, this.order = 10;
|
|
@@ -10211,7 +10211,7 @@ class lF extends Vh {
|
|
|
10211
10211
|
}
|
|
10212
10212
|
}
|
|
10213
10213
|
const aF = new lF(), yd = Fe / 2;
|
|
10214
|
-
function
|
|
10214
|
+
function yo(i, t, e, n, o, r, s) {
|
|
10215
10215
|
let l;
|
|
10216
10216
|
if (n < 0 && (t += n, n = -n), o < 0 && (e += o, o = -o), dt(r, !0))
|
|
10217
10217
|
l = [r = Me(r), r, r, r];
|
|
@@ -10278,7 +10278,7 @@ class hA {
|
|
|
10278
10278
|
S = (S ?? x - n) || 0, A = (A ?? R - o) || 0;
|
|
10279
10279
|
const T = (M, P) => {
|
|
10280
10280
|
const L = !(!M || !M.stroke), B = P === "outerBorder" ? -1 : 1, { distance: H = h[P].distance } = M, F = pr(e, H, e.dpr), I = n + B * F, E = o + B * F, k = 2 * F;
|
|
10281
|
-
if (m === 0 || it(m) && m.every((O) => O === 0) ? (e.beginPath(), e.rect(I, E, S - B * k, A - B * k)) : (e.beginPath(),
|
|
10281
|
+
if (m === 0 || it(m) && m.every((O) => O === 0) ? (e.beginPath(), e.rect(I, E, S - B * k, A - B * k)) : (e.beginPath(), yo(e, I, E, S - B * k, A - B * k, m)), e.setShadowBlendStyle && e.setShadowBlendStyle(t, t.attribute, h), c)
|
|
10282
10282
|
c(e, M, h[P]);
|
|
10283
10283
|
else if (L) {
|
|
10284
10284
|
const O = h[P].opacity;
|
|
@@ -10308,7 +10308,7 @@ let Fl = class {
|
|
|
10308
10308
|
if (w = (w ?? g - p) || 0, y = (y ?? f - v) || 0, Array.isArray(m) && m.some((C) => C === !1)) {
|
|
10309
10309
|
if (e.setStrokeStyle(t, t.attribute, n, o, h), !(b === 0 || it(b) && b.every((C) => C === 0))) {
|
|
10310
10310
|
let C, _ = 0;
|
|
10311
|
-
return
|
|
10311
|
+
return yo(e, n, o, w, y, b, new Array(4).fill(0).map((x, R) => (S, A, T, M) => {
|
|
10312
10312
|
m[R] && (_ === R - 1 && m[R] === C || (e.setStrokeStyle(t, Object.assign(Object.assign({}, t.attribute), {
|
|
10313
10313
|
stroke: m[R]
|
|
10314
10314
|
}), n, o, h), e.beginPath(), e.moveTo(S, A), C = m[R]), _ = R, e.lineTo(T, M), e.stroke(), R === 3 && e.beginPath());
|
|
@@ -10348,7 +10348,7 @@ class cF extends Vh {
|
|
|
10348
10348
|
return;
|
|
10349
10349
|
e.beginPath();
|
|
10350
10350
|
const { x: _, y: x, width: R, height: S } = gF(t);
|
|
10351
|
-
w ?
|
|
10351
|
+
w ? yo(e, _ - y, x - C, R + 2 * y, S + 2 * C, w) : e.rect(_ - y, x - C, R + 2 * y, S + 2 * C), e.globalAlpha = 1, m && (e.fillStyle = m, e.fill()), v && b > 0 && (e.lineWidth = b, e.strokeStyle = v, e.stroke());
|
|
10352
10352
|
} else {
|
|
10353
10353
|
e.beginPath();
|
|
10354
10354
|
const v = t.AABBBounds;
|
|
@@ -10428,7 +10428,7 @@ var wF = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
10428
10428
|
t(e, n, i);
|
|
10429
10429
|
};
|
|
10430
10430
|
};
|
|
10431
|
-
let Wu = class extends
|
|
10431
|
+
let Wu = class extends bn {
|
|
10432
10432
|
constructor(i) {
|
|
10433
10433
|
super(), this.arcRenderContribitions = i, this.numberType = Mg, this.builtinContributions = [tF, iF, eF], this.init(i);
|
|
10434
10434
|
}
|
|
@@ -10537,7 +10537,7 @@ var xF = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
10537
10537
|
t(e, n, i);
|
|
10538
10538
|
};
|
|
10539
10539
|
};
|
|
10540
|
-
let Nu = class extends
|
|
10540
|
+
let Nu = class extends bn {
|
|
10541
10541
|
constructor(i) {
|
|
10542
10542
|
super(), this.circleRenderContribitions = i, this.numberType = Bg, this.builtinContributions = [oF, sF, rF], this.init(i);
|
|
10543
10543
|
}
|
|
@@ -10666,7 +10666,7 @@ var MF = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
10666
10666
|
(o = i[l]) && (s = (r < 3 ? o(s) : r > 3 ? o(t, e, s) : o(t, e)) || s);
|
|
10667
10667
|
return r > 3 && s && Object.defineProperty(t, e, s), s;
|
|
10668
10668
|
};
|
|
10669
|
-
let ch = class extends
|
|
10669
|
+
let ch = class extends bn {
|
|
10670
10670
|
constructor() {
|
|
10671
10671
|
super(...arguments), this.numberType = Wh;
|
|
10672
10672
|
}
|
|
@@ -10903,7 +10903,7 @@ var EF = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
10903
10903
|
t(e, n, i);
|
|
10904
10904
|
};
|
|
10905
10905
|
};
|
|
10906
|
-
let c0 = class extends
|
|
10906
|
+
let c0 = class extends bn {
|
|
10907
10907
|
constructor(i) {
|
|
10908
10908
|
super(), this.areaRenderContribitions = i, this.numberType = qR, this.builtinContributions = [PF, HF], this.init(i);
|
|
10909
10909
|
}
|
|
@@ -11125,7 +11125,7 @@ var kF = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
11125
11125
|
t(e, n, i);
|
|
11126
11126
|
};
|
|
11127
11127
|
};
|
|
11128
|
-
let Vu = class extends
|
|
11128
|
+
let Vu = class extends bn {
|
|
11129
11129
|
constructor(i) {
|
|
11130
11130
|
super(), this.pathRenderContribitions = i, this.numberType = Hg, this.builtinContributions = [IF, FF], this.init(i);
|
|
11131
11131
|
}
|
|
@@ -11171,7 +11171,7 @@ var DF = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
11171
11171
|
t(e, n, i);
|
|
11172
11172
|
};
|
|
11173
11173
|
};
|
|
11174
|
-
let $u = class extends
|
|
11174
|
+
let $u = class extends bn {
|
|
11175
11175
|
constructor(i) {
|
|
11176
11176
|
super(), this.rectRenderContribitions = i, this.type = "rect", this.numberType = gm, this.builtinContributions = [hF, uF, dF], this.init(i);
|
|
11177
11177
|
}
|
|
@@ -11183,7 +11183,7 @@ let $u = class extends mn {
|
|
|
11183
11183
|
const A = nA(f, p, R, S, d), T = oA(f, m, R, S), M = Ul(d, u), P = Nh(c, v);
|
|
11184
11184
|
if (!i.valid || !b || !M && !P || !(A || T || s || l || u))
|
|
11185
11185
|
return;
|
|
11186
|
-
g === 0 || it(g) && g.every((F) => F === 0) ? (t.beginPath(), t.rect(e, n, R, S)) : (t.beginPath(),
|
|
11186
|
+
g === 0 || it(g) && g.every((F) => F === 0) ? (t.beginPath(), t.rect(e, n, R, S)) : (t.beginPath(), yo(t, e, n, R, S, g));
|
|
11187
11187
|
const L = {
|
|
11188
11188
|
doFill: M,
|
|
11189
11189
|
doStroke: P
|
|
@@ -11218,7 +11218,7 @@ var WF = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
11218
11218
|
t(e, n, i);
|
|
11219
11219
|
};
|
|
11220
11220
|
};
|
|
11221
|
-
let Gu = class extends
|
|
11221
|
+
let Gu = class extends bn {
|
|
11222
11222
|
constructor(i) {
|
|
11223
11223
|
super(), this.symbolRenderContribitions = i, this.numberType = Lg, this.builtinContributions = [bF, yF, CF], this.init(i);
|
|
11224
11224
|
}
|
|
@@ -11349,7 +11349,7 @@ class $F extends Vh {
|
|
|
11349
11349
|
e.highPerformanceSave(), L && e.setTransformFromMatrix(t.parent.globalTransMatrix, !0), e.setCommonStyle(t, t.attribute, n, o, h), this.doDrawImage(e, B.data, M, x, R), e.highPerformanceRestore(), e.setTransformForCurrent();
|
|
11350
11350
|
} else {
|
|
11351
11351
|
const { backgroundCornerRadius: B } = t.attribute;
|
|
11352
|
-
e.highPerformanceSave(), e.setCommonStyle(t, t.attribute, n, o, h), e.fillStyle = A, B ? (
|
|
11352
|
+
e.highPerformanceSave(), e.setCommonStyle(t, t.attribute, n, o, h), e.fillStyle = A, B ? (yo(e, M.x1, M.y1, M.width(), M.height(), B), e.fill()) : e.fillRect(M.x1, M.y1, M.width(), M.height()), e.highPerformanceRestore();
|
|
11353
11353
|
}
|
|
11354
11354
|
P && Uu.free(M), T();
|
|
11355
11355
|
}
|
|
@@ -11371,7 +11371,7 @@ var GF = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
11371
11371
|
t(e, n, i);
|
|
11372
11372
|
};
|
|
11373
11373
|
};
|
|
11374
|
-
let g0 = class extends
|
|
11374
|
+
let g0 = class extends bn {
|
|
11375
11375
|
constructor(i) {
|
|
11376
11376
|
super(), this.textRenderContribitions = i, this.numberType = Fg, this.builtinContributions = [dA], this.init(i);
|
|
11377
11377
|
}
|
|
@@ -11531,7 +11531,7 @@ var qF = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
11531
11531
|
t(e, n, i);
|
|
11532
11532
|
};
|
|
11533
11533
|
};
|
|
11534
|
-
let f0 = class extends
|
|
11534
|
+
let f0 = class extends bn {
|
|
11535
11535
|
constructor(i) {
|
|
11536
11536
|
super(), this.polygonRenderContribitions = i, this.numberType = Eg, this.builtinContributions = [XF, YF], this.init(i);
|
|
11537
11537
|
}
|
|
@@ -11584,7 +11584,7 @@ let p0 = class {
|
|
|
11584
11584
|
o.drawContribution.getRenderContribution(E).draw(E, o.renderService, o, r);
|
|
11585
11585
|
}), t.disableFill = H, t.disableStroke = F, t.disableBeginPath = I;
|
|
11586
11586
|
} else
|
|
11587
|
-
b === 0 || it(b) && b.every((H) => H === 0) ? (t.beginPath(), t.rect(e, n, g, f)) : (t.beginPath(),
|
|
11587
|
+
b === 0 || it(b) && b.every((H) => H === 0) ? (t.beginPath(), t.rect(e, n, g, f)) : (t.beginPath(), yo(t, e, n, g, f, b));
|
|
11588
11588
|
this._groupRenderContribitions || (this._groupRenderContribitions = this.groupRenderContribitions.getContributions() || [], this._groupRenderContribitions.push(aF));
|
|
11589
11589
|
const P = {
|
|
11590
11590
|
doFill: T,
|
|
@@ -11642,7 +11642,7 @@ var tI = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
11642
11642
|
};
|
|
11643
11643
|
};
|
|
11644
11644
|
const iI = ["", "repeat-x", "repeat-y", "repeat"];
|
|
11645
|
-
let v0 = class extends
|
|
11645
|
+
let v0 = class extends bn {
|
|
11646
11646
|
constructor(i) {
|
|
11647
11647
|
super(), this.imageRenderContribitions = i, this.numberType = Pg, this.builtinContributions = [pF, vF], this.init(i);
|
|
11648
11648
|
}
|
|
@@ -11663,7 +11663,7 @@ let v0 = class extends mn {
|
|
|
11663
11663
|
if (S.state !== "success")
|
|
11664
11664
|
return;
|
|
11665
11665
|
let A = !1;
|
|
11666
|
-
p === 0 || it(p) && p.every((M) => M === 0) || (t.beginPath(),
|
|
11666
|
+
p === 0 || it(p) && p.every((M) => M === 0) || (t.beginPath(), yo(t, e, n, h, d, p), t.save(), t.clip(), A = !0), t.setCommonStyle(i, i.attribute, e, n, a);
|
|
11667
11667
|
let T = 0;
|
|
11668
11668
|
if (u === "repeat" && (T |= 1), c === "repeat" && (T |= 2), T) {
|
|
11669
11669
|
const M = t.createPattern(S.data, iI[T]);
|
|
@@ -11947,7 +11947,7 @@ const cI = new Yt((i) => {
|
|
|
11947
11947
|
}
|
|
11948
11948
|
return e;
|
|
11949
11949
|
}, _y = ["radius", "startAngle", "endAngle", ...Qn];
|
|
11950
|
-
let _m = class y0 extends
|
|
11950
|
+
let _m = class y0 extends mn {
|
|
11951
11951
|
constructor(t = {
|
|
11952
11952
|
radius: 1
|
|
11953
11953
|
}) {
|
|
@@ -11994,7 +11994,7 @@ let _m = class y0 extends vn {
|
|
|
11994
11994
|
return y0.NOWORK_ANIMATE_ATTR;
|
|
11995
11995
|
}
|
|
11996
11996
|
};
|
|
11997
|
-
_m.NOWORK_ANIMATE_ATTR =
|
|
11997
|
+
_m.NOWORK_ANIMATE_ATTR = Co;
|
|
11998
11998
|
function pA(i) {
|
|
11999
11999
|
return new _m(i);
|
|
12000
12000
|
}
|
|
@@ -12083,7 +12083,7 @@ class _0 {
|
|
|
12083
12083
|
}
|
|
12084
12084
|
}
|
|
12085
12085
|
const wy = ["text", "maxLineWidth", "textAlign", "textBaseline", "heightLimit", "lineClamp", "fontSize", "fontFamily", "fontWeight", "ellipsis", "lineHeight", "direction", "wordBreak", "heightLimit", "lineClamp", ...Qn];
|
|
12086
|
-
let Wi = class
|
|
12086
|
+
let Wi = class Bo extends mn {
|
|
12087
12087
|
get font() {
|
|
12088
12088
|
const t = this.getGraphicTheme();
|
|
12089
12089
|
return this._font || (this._font = Hu(this.attribute, t)), this._font;
|
|
@@ -12147,7 +12147,7 @@ let Wi = class Mo extends vn {
|
|
|
12147
12147
|
const h = this.AABBBounds;
|
|
12148
12148
|
return this._OBBBounds.setValue(h.x1, h.y1, h.x2, h.y2), this._OBBBounds;
|
|
12149
12149
|
}
|
|
12150
|
-
this.obbText || (this.obbText = new
|
|
12150
|
+
this.obbText || (this.obbText = new Bo({})), this.obbText.setAttributes(Object.assign(Object.assign({}, e), {
|
|
12151
12151
|
angle: 0
|
|
12152
12152
|
}));
|
|
12153
12153
|
const o = this.obbText.AABBBounds, { x: r, y: s } = e, l = {
|
|
@@ -12304,10 +12304,10 @@ let Wi = class Mo extends vn {
|
|
|
12304
12304
|
return this._AABBBounds.set(S, T, S + l, T + A), m && this._AABBBounds.expand(b / 2), this._AABBBounds;
|
|
12305
12305
|
}
|
|
12306
12306
|
getBaselineMapAlign() {
|
|
12307
|
-
return
|
|
12307
|
+
return Bo.baselineMapAlign;
|
|
12308
12308
|
}
|
|
12309
12309
|
getAlignMapBaseline() {
|
|
12310
|
-
return
|
|
12310
|
+
return Bo.alignMapBaseline;
|
|
12311
12311
|
}
|
|
12312
12312
|
updateVerticalSinglelineAABBBounds(t) {
|
|
12313
12313
|
var e, n, o;
|
|
@@ -12317,7 +12317,7 @@ let Wi = class Mo extends vn {
|
|
|
12317
12317
|
let { textAlign: C = r.textAlign, textBaseline: _ = r.textBaseline } = a;
|
|
12318
12318
|
if (!b) {
|
|
12319
12319
|
const A = C;
|
|
12320
|
-
C = (n =
|
|
12320
|
+
C = (n = Bo.baselineMapAlign[_]) !== null && n !== void 0 ? n : "left", _ = (o = Bo.alignMapBaseline[A]) !== null && o !== void 0 ? o : "top";
|
|
12321
12321
|
}
|
|
12322
12322
|
if (!this.shouldUpdateShape() && this.cache) {
|
|
12323
12323
|
l = this.cache.clipedWidth;
|
|
@@ -12382,7 +12382,7 @@ let Wi = class Mo extends vn {
|
|
|
12382
12382
|
let { textAlign: C = r.textAlign, textBaseline: _ = r.textBaseline } = a;
|
|
12383
12383
|
if (!b) {
|
|
12384
12384
|
const T = C;
|
|
12385
|
-
C = (n =
|
|
12385
|
+
C = (n = Bo.baselineMapAlign[_]) !== null && n !== void 0 ? n : "left", _ = (o = Bo.alignMapBaseline[T]) !== null && o !== void 0 ? o : "top";
|
|
12386
12386
|
}
|
|
12387
12387
|
if (l = 0, !this.shouldUpdateShape() && this.cache) {
|
|
12388
12388
|
this.cache.verticalList.forEach((L) => {
|
|
@@ -12433,10 +12433,10 @@ let Wi = class Mo extends vn {
|
|
|
12433
12433
|
return super.needUpdateTag(t, e);
|
|
12434
12434
|
}
|
|
12435
12435
|
clone() {
|
|
12436
|
-
return new
|
|
12436
|
+
return new Bo(Object.assign({}, this.attribute));
|
|
12437
12437
|
}
|
|
12438
12438
|
getNoWorkAnimateAttr() {
|
|
12439
|
-
return
|
|
12439
|
+
return Bo.NOWORK_ANIMATE_ATTR;
|
|
12440
12440
|
}
|
|
12441
12441
|
};
|
|
12442
12442
|
Wi.NOWORK_ANIMATE_ATTR = Object.assign({
|
|
@@ -12447,7 +12447,7 @@ Wi.NOWORK_ANIMATE_ATTR = Object.assign({
|
|
|
12447
12447
|
textBaseline: 1,
|
|
12448
12448
|
fontFamily: 1,
|
|
12449
12449
|
fontWeight: 1
|
|
12450
|
-
},
|
|
12450
|
+
}, Co), Wi.baselineMapAlign = {
|
|
12451
12451
|
top: "left",
|
|
12452
12452
|
bottom: "right",
|
|
12453
12453
|
middle: "center"
|
|
@@ -12690,7 +12690,7 @@ class BI extends ci {
|
|
|
12690
12690
|
return Ay(t, e / 2 + r, n, o);
|
|
12691
12691
|
}
|
|
12692
12692
|
}
|
|
12693
|
-
const PI = new BI(), HI =
|
|
12693
|
+
const PI = new BI(), HI = vo(3);
|
|
12694
12694
|
function Ty(i, t, e, n) {
|
|
12695
12695
|
const o = t, r = o / HI, s = r / 5, l = t;
|
|
12696
12696
|
return i.moveTo(0 + e, -o + n), i.lineTo(r / 2 + e, n), i.lineTo(s / 2 + e, n), i.lineTo(s / 2 + e, l + n), i.lineTo(-s / 2 + e, l + n), i.lineTo(-s / 2 + e, n), i.lineTo(-r / 2 + e, n), i.closePath(), !0;
|
|
@@ -12737,7 +12737,7 @@ class kI extends ci {
|
|
|
12737
12737
|
return By(t, e / 2 + r, n, o);
|
|
12738
12738
|
}
|
|
12739
12739
|
}
|
|
12740
|
-
const OI = new kI(), On = -0.5, Dn =
|
|
12740
|
+
const OI = new kI(), On = -0.5, Dn = vo(3) / 2, Py = 1 / vo(12);
|
|
12741
12741
|
function Hy(i, t, e, n) {
|
|
12742
12742
|
const o = t / 2, r = t * Py, s = o, l = t * Py + t, a = -s, h = l;
|
|
12743
12743
|
return i.moveTo(o + e, r + n), i.lineTo(s + e, l + n), i.lineTo(a + e, h + n), i.lineTo(On * o - Dn * r + e, Dn * o + On * r + n), i.lineTo(On * s - Dn * l + e, Dn * s + On * l + n), i.lineTo(On * a - Dn * h + e, Dn * a + On * h + n), i.lineTo(On * o + Dn * r + e, On * r - Dn * o + n), i.lineTo(On * s + Dn * l + e, On * l - Dn * s + n), i.lineTo(On * a + Dn * h + e, On * h - Dn * a + n), i.closePath(), !1;
|
|
@@ -12798,7 +12798,7 @@ class $I extends ci {
|
|
|
12798
12798
|
return Fy(t, e / 2, n, o, r);
|
|
12799
12799
|
}
|
|
12800
12800
|
}
|
|
12801
|
-
const GI = new $I(), S0 =
|
|
12801
|
+
const GI = new $I(), S0 = vo(3);
|
|
12802
12802
|
function Iy(i, t, e, n) {
|
|
12803
12803
|
const o = t * S0;
|
|
12804
12804
|
return i.moveTo(e, n + -o / 3 * 2), i.lineTo(t + e, n + o), i.lineTo(e - t, n + o), i.closePath(), !0;
|
|
@@ -12992,7 +12992,7 @@ const uk = {
|
|
|
12992
12992
|
}
|
|
12993
12993
|
return e;
|
|
12994
12994
|
}, Rd = new Ke(), Uy = ["symbolType", "size", ...Qn];
|
|
12995
|
-
let x0 = class el extends
|
|
12995
|
+
let x0 = class el extends mn {
|
|
12996
12996
|
constructor(t = {
|
|
12997
12997
|
symbolType: "circle"
|
|
12998
12998
|
}) {
|
|
@@ -13080,12 +13080,12 @@ let x0 = class el extends vn {
|
|
|
13080
13080
|
};
|
|
13081
13081
|
x0.userSymbolMap = {}, x0.NOWORK_ANIMATE_ATTR = Object.assign({
|
|
13082
13082
|
symbolType: 1
|
|
13083
|
-
},
|
|
13083
|
+
}, Co);
|
|
13084
13084
|
function fh(i) {
|
|
13085
13085
|
return new x0(i);
|
|
13086
13086
|
}
|
|
13087
13087
|
const Ky = ["segments", "points", "curveType", "curveTension", ...Qn];
|
|
13088
|
-
let wm = class R0 extends
|
|
13088
|
+
let wm = class R0 extends mn {
|
|
13089
13089
|
constructor(t = {}) {
|
|
13090
13090
|
super(t), this.type = "line", this.numberType = Wh;
|
|
13091
13091
|
}
|
|
@@ -13152,12 +13152,12 @@ let wm = class R0 extends vn {
|
|
|
13152
13152
|
wm.NOWORK_ANIMATE_ATTR = Object.assign({
|
|
13153
13153
|
segments: 1,
|
|
13154
13154
|
curveType: 1
|
|
13155
|
-
},
|
|
13155
|
+
}, Co);
|
|
13156
13156
|
function An(i) {
|
|
13157
13157
|
return new wm(i);
|
|
13158
13158
|
}
|
|
13159
13159
|
const Yy = ["width", "x1", "y1", "height", "cornerRadius", ...Qn];
|
|
13160
|
-
let Og = class A0 extends
|
|
13160
|
+
let Og = class A0 extends mn {
|
|
13161
13161
|
constructor(t) {
|
|
13162
13162
|
super(t), this.type = "rect", this.numberType = gm;
|
|
13163
13163
|
}
|
|
@@ -13196,7 +13196,7 @@ let Og = class A0 extends vn {
|
|
|
13196
13196
|
return A0.NOWORK_ANIMATE_ATTR;
|
|
13197
13197
|
}
|
|
13198
13198
|
};
|
|
13199
|
-
Og.NOWORK_ANIMATE_ATTR =
|
|
13199
|
+
Og.NOWORK_ANIMATE_ATTR = Co;
|
|
13200
13200
|
function Ge(i) {
|
|
13201
13201
|
return new Og(i);
|
|
13202
13202
|
}
|
|
@@ -13399,7 +13399,7 @@ function fk(i, t) {
|
|
|
13399
13399
|
return [new ph(e, i.newLine, i.character), new ph(n, !0, i.character)];
|
|
13400
13400
|
}
|
|
13401
13401
|
const Xy = ["width", "height", "image", ...Qn];
|
|
13402
|
-
let cr = class T0 extends
|
|
13402
|
+
let cr = class T0 extends mn {
|
|
13403
13403
|
constructor(t) {
|
|
13404
13404
|
super(t), this.type = "image", this.numberType = Pg, this.loadImage(this.attribute.image);
|
|
13405
13405
|
}
|
|
@@ -13484,7 +13484,7 @@ cr.NOWORK_ANIMATE_ATTR = Object.assign({
|
|
|
13484
13484
|
image: 1,
|
|
13485
13485
|
repeatX: 1,
|
|
13486
13486
|
repeatY: 1
|
|
13487
|
-
},
|
|
13487
|
+
}, Co);
|
|
13488
13488
|
function Dg(i) {
|
|
13489
13489
|
return new cr(i);
|
|
13490
13490
|
}
|
|
@@ -13645,7 +13645,7 @@ class vk {
|
|
|
13645
13645
|
}
|
|
13646
13646
|
}
|
|
13647
13647
|
const qy = ["width", "height", "ellipsis", "wordBreak", "verticalDirection", "maxHeight", "maxWidth", "textAlign", "textBaseline", "textConfig", "layoutDirection", "fill", "stroke", "fontSize", ...Qn];
|
|
13648
|
-
class
|
|
13648
|
+
class bo extends mn {
|
|
13649
13649
|
constructor(t) {
|
|
13650
13650
|
super(t), this.type = "richtext", this._currentHoverIcon = null, this.numberType = fm, this.onBeforeAttributeUpdate = (e, n, o) => {
|
|
13651
13651
|
for (const r in e)
|
|
@@ -13849,7 +13849,7 @@ class mo extends vn {
|
|
|
13849
13849
|
this._frameCache = _;
|
|
13850
13850
|
}
|
|
13851
13851
|
clone() {
|
|
13852
|
-
return new
|
|
13852
|
+
return new bo(Object.assign({}, this.attribute));
|
|
13853
13853
|
}
|
|
13854
13854
|
setStage(t, e) {
|
|
13855
13855
|
super.setStage(t, e), this.getFrameCache().icons.forEach((n) => {
|
|
@@ -13881,10 +13881,10 @@ class mo extends vn {
|
|
|
13881
13881
|
}), r;
|
|
13882
13882
|
}
|
|
13883
13883
|
getNoWorkAnimateAttr() {
|
|
13884
|
-
return
|
|
13884
|
+
return bo.NOWORK_ANIMATE_ATTR;
|
|
13885
13885
|
}
|
|
13886
13886
|
}
|
|
13887
|
-
|
|
13887
|
+
bo.NOWORK_ANIMATE_ATTR = Object.assign({
|
|
13888
13888
|
ellipsis: 1,
|
|
13889
13889
|
wordBreak: 1,
|
|
13890
13890
|
verticalDirection: 1,
|
|
@@ -13892,12 +13892,12 @@ mo.NOWORK_ANIMATE_ATTR = Object.assign({
|
|
|
13892
13892
|
textBaseline: 1,
|
|
13893
13893
|
textConfig: 1,
|
|
13894
13894
|
layoutDirection: 1
|
|
13895
|
-
},
|
|
13895
|
+
}, Co);
|
|
13896
13896
|
function mk(i) {
|
|
13897
|
-
return new
|
|
13897
|
+
return new bo(i);
|
|
13898
13898
|
}
|
|
13899
13899
|
const Zy = ["path", "customPath", ...Qn];
|
|
13900
|
-
class vh extends
|
|
13900
|
+
class vh extends mn {
|
|
13901
13901
|
constructor(t) {
|
|
13902
13902
|
super(t), this.type = "path", this.numberType = Hg;
|
|
13903
13903
|
}
|
|
@@ -13957,12 +13957,12 @@ class vh extends vn {
|
|
|
13957
13957
|
vh.NOWORK_ANIMATE_ATTR = Object.assign({
|
|
13958
13958
|
path: 1,
|
|
13959
13959
|
customPath: 1
|
|
13960
|
-
},
|
|
13960
|
+
}, Co);
|
|
13961
13961
|
function bk(i) {
|
|
13962
13962
|
return new vh(i);
|
|
13963
13963
|
}
|
|
13964
13964
|
const Jy = ["innerRadius", "outerRadius", "startAngle", "endAngle", "cornerRadius", "padAngle", "padRadius", "cap", ...Qn];
|
|
13965
|
-
let zg = class M0 extends
|
|
13965
|
+
let zg = class M0 extends mn {
|
|
13966
13966
|
constructor(t) {
|
|
13967
13967
|
super(t), this.type = "arc", this.numberType = Mg;
|
|
13968
13968
|
}
|
|
@@ -14013,7 +14013,7 @@ let zg = class M0 extends vn {
|
|
|
14013
14013
|
const n = this.getGraphicTheme(), { innerPadding: o = n.innerPadding, outerPadding: r = n.outerPadding, padAngle: s = n.padAngle } = this.attribute;
|
|
14014
14014
|
let { outerRadius: l = n.outerRadius, innerRadius: a = n.innerRadius } = this.attribute;
|
|
14015
14015
|
l += r, a -= o;
|
|
14016
|
-
const { padRadius: h =
|
|
14016
|
+
const { padRadius: h = vo(l * l + a * a) } = this.attribute, d = Me(e - t);
|
|
14017
14017
|
let u = t, c = e, g = t, f = e;
|
|
14018
14018
|
const p = s / 2;
|
|
14019
14019
|
let v = d, m = d;
|
|
@@ -14102,12 +14102,12 @@ let zg = class M0 extends vn {
|
|
|
14102
14102
|
};
|
|
14103
14103
|
zg.NOWORK_ANIMATE_ATTR = Object.assign({
|
|
14104
14104
|
cap: 1
|
|
14105
|
-
},
|
|
14105
|
+
}, Co);
|
|
14106
14106
|
function Sm(i) {
|
|
14107
14107
|
return new zg(i);
|
|
14108
14108
|
}
|
|
14109
14109
|
const Qy = ["points", "cornerRadius", ...Qn];
|
|
14110
|
-
class mh extends
|
|
14110
|
+
class mh extends mn {
|
|
14111
14111
|
constructor(t) {
|
|
14112
14112
|
super(t), this.type = "polygon", this.numberType = Eg;
|
|
14113
14113
|
}
|
|
@@ -14154,7 +14154,7 @@ class mh extends vn {
|
|
|
14154
14154
|
return mh.NOWORK_ANIMATE_ATTR;
|
|
14155
14155
|
}
|
|
14156
14156
|
}
|
|
14157
|
-
mh.NOWORK_ANIMATE_ATTR =
|
|
14157
|
+
mh.NOWORK_ANIMATE_ATTR = Co;
|
|
14158
14158
|
function Ck(i) {
|
|
14159
14159
|
return new mh(i);
|
|
14160
14160
|
}
|
|
@@ -14796,7 +14796,7 @@ var cl, zk = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
14796
14796
|
return function(e, n) {
|
|
14797
14797
|
t(e, n, i);
|
|
14798
14798
|
};
|
|
14799
|
-
},
|
|
14799
|
+
}, xo = globalThis && globalThis.__awaiter || function(i, t, e, n) {
|
|
14800
14800
|
return new (e || (e = Promise))(function(o, r) {
|
|
14801
14801
|
function s(h) {
|
|
14802
14802
|
try {
|
|
@@ -14827,11 +14827,11 @@ var cl, zk = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
14827
14827
|
let H0 = class extends rc {
|
|
14828
14828
|
constructor(i, t, e, n) {
|
|
14829
14829
|
super(i, n), this.contributions = i, this.lineRender = t, this.areaRender = e, this.drawItemInterceptorContributions = n, this.rendering = !1, this.currFrameStartAt = 0, this.currentIdx = 0, this.status = cl.NORMAL, this.checkingForDrawPromise = null, this.hooks = {
|
|
14830
|
-
completeDraw: new
|
|
14830
|
+
completeDraw: new dn([])
|
|
14831
14831
|
}, this.defaultRenderMap.set(this.lineRender.numberType, this.lineRender), this.defaultRenderMap.set(this.areaRender.numberType, this.areaRender);
|
|
14832
14832
|
}
|
|
14833
14833
|
draw(i, t) {
|
|
14834
|
-
return
|
|
14834
|
+
return xo(this, void 0, void 0, function* () {
|
|
14835
14835
|
if (this.checkingForDrawPromise)
|
|
14836
14836
|
return;
|
|
14837
14837
|
this.lastRenderService = i, this.lastDrawContext = t, this.checkingForDrawPromise = this.checkForDraw(t);
|
|
@@ -14851,15 +14851,15 @@ let H0 = class extends rc {
|
|
|
14851
14851
|
});
|
|
14852
14852
|
}
|
|
14853
14853
|
_increaseRender(i, t) {
|
|
14854
|
-
return
|
|
14854
|
+
return xo(this, void 0, void 0, function* () {
|
|
14855
14855
|
this.rendering = !0, yield this._renderIncrementalGroup(i, t);
|
|
14856
14856
|
});
|
|
14857
14857
|
}
|
|
14858
14858
|
_renderIncrementalGroup(i, t) {
|
|
14859
|
-
return
|
|
14859
|
+
return xo(this, void 0, void 0, function* () {
|
|
14860
14860
|
this.count = i.count, yield new Promise((e) => {
|
|
14861
14861
|
this.renderItem(i, t, {
|
|
14862
|
-
drawingCb: () =>
|
|
14862
|
+
drawingCb: () => xo(this, void 0, void 0, function* () {
|
|
14863
14863
|
if (i.count !== 2)
|
|
14864
14864
|
yield e_(i, li.zIndex, (n, o) => {
|
|
14865
14865
|
if (this.status === cl.STOP)
|
|
@@ -14887,7 +14887,7 @@ let H0 = class extends rc {
|
|
|
14887
14887
|
});
|
|
14888
14888
|
}
|
|
14889
14889
|
waitToNextFrame() {
|
|
14890
|
-
return
|
|
14890
|
+
return xo(this, void 0, void 0, function* () {
|
|
14891
14891
|
return new Promise((i) => {
|
|
14892
14892
|
this.global.getRequestAnimationFrame()(() => {
|
|
14893
14893
|
i(!1);
|
|
@@ -14896,13 +14896,13 @@ let H0 = class extends rc {
|
|
|
14896
14896
|
});
|
|
14897
14897
|
}
|
|
14898
14898
|
checkForDraw(i) {
|
|
14899
|
-
return
|
|
14899
|
+
return xo(this, void 0, void 0, function* () {
|
|
14900
14900
|
let t = this.rendering;
|
|
14901
14901
|
return i.restartIncremental && (t = !1, yield this.forceStop(), this.resetToInit()), t;
|
|
14902
14902
|
});
|
|
14903
14903
|
}
|
|
14904
14904
|
forceStop() {
|
|
14905
|
-
return
|
|
14905
|
+
return xo(this, void 0, void 0, function* () {
|
|
14906
14906
|
this.rendering && (this.status = cl.STOP, yield new Promise((i) => {
|
|
14907
14907
|
this.hooks.completeDraw.tap("stopCb", () => {
|
|
14908
14908
|
this.status = cl.NORMAL, this.hooks.completeDraw.taps = this.hooks.completeDraw.taps.filter((t) => t.name !== "stopCb"), i(!1);
|
|
@@ -14914,12 +14914,12 @@ let H0 = class extends rc {
|
|
|
14914
14914
|
this.currFrameStartAt = 0, this.currentIdx = 0;
|
|
14915
14915
|
}
|
|
14916
14916
|
renderGroup(i, t) {
|
|
14917
|
-
return
|
|
14917
|
+
return xo(this, void 0, void 0, function* () {
|
|
14918
14918
|
if (!t.break && i.attribute.visibleAll !== !1)
|
|
14919
14919
|
return i.incremental && t.startAtId === i._uid ? (yield this._increaseRender(i, t), void (t.break = !0)) : void (yield new Promise((e) => {
|
|
14920
14920
|
this.renderItem(i, t, {
|
|
14921
|
-
drawingCb: () =>
|
|
14922
|
-
yield e_(i, li.zIndex, (n) =>
|
|
14921
|
+
drawingCb: () => xo(this, void 0, void 0, function* () {
|
|
14922
|
+
yield e_(i, li.zIndex, (n) => xo(this, void 0, void 0, function* () {
|
|
14923
14923
|
t.break || n.isContainer && (yield this.renderGroup(n, t));
|
|
14924
14924
|
})), e(!1);
|
|
14925
14925
|
})
|
|
@@ -14930,7 +14930,7 @@ let H0 = class extends rc {
|
|
|
14930
14930
|
};
|
|
14931
14931
|
H0 = zk([wt(), ga(0, fR(rn)), ga(1, le(sc)), ga(2, le(P0)), ga(3, le(Ci)), ga(3, Bi(gh)), Wk("design:paramtypes", [Array, Object, Object, Object])], H0);
|
|
14932
14932
|
const Nk = new Yt((i) => {
|
|
14933
|
-
i(Vh).toSelf().inSingletonScope(), i(Cm).toSelf().inSingletonScope(), i(ym).to(rc), i(cA).to(H0), i(vy).to(p0).inSingletonScope(), i(rn).toService(vy), Ki(i, lo), i(
|
|
14933
|
+
i(Vh).toSelf().inSingletonScope(), i(Cm).toSelf().inSingletonScope(), i(ym).to(rc), i(cA).to(H0), i(vy).to(p0).inSingletonScope(), i(rn).toService(vy), Ki(i, lo), i(mo).toSelf().inSingletonScope(), Ki(i, mm), Ki(i, rn), i(tc).toSelf().inSingletonScope(), i(gh).toService(tc), Ki(i, gh);
|
|
14934
14934
|
});
|
|
14935
14935
|
function jk(i) {
|
|
14936
14936
|
i.load(Nk);
|
|
@@ -15180,8 +15180,8 @@ class Zk extends Ln {
|
|
|
15180
15180
|
}, this.afterRender = (n) => {
|
|
15181
15181
|
this.renderCount++, this._afterRender && this._afterRender(n), this._afterNextRenderCbs && this._afterNextRenderCbs.forEach((o) => o(n)), this._afterNextRenderCbs = null;
|
|
15182
15182
|
}, this.params = t, this.theme = new dh(), this.hooks = {
|
|
15183
|
-
beforeRender: new
|
|
15184
|
-
afterRender: new
|
|
15183
|
+
beforeRender: new dn(["stage"]),
|
|
15184
|
+
afterRender: new dn(["stage"])
|
|
15185
15185
|
}, this.global = Q.global, !this.global.env && Am() && this.global.setEnv("browser"), this.window = Kt.get(hh), this.renderService = Kt.get(fA), this.pluginService = Kt.get(CA), this.layerService = Kt.get(pm), this.pluginService.active(this, t), this.window.create({
|
|
15186
15186
|
width: t.width,
|
|
15187
15187
|
height: t.height,
|
|
@@ -15912,11 +15912,11 @@ let L0 = class {
|
|
|
15912
15912
|
L0 = i3([wt(), o_(0, le(Ci)), o_(0, Bi(ul)), n3("design:paramtypes", [Object])], L0);
|
|
15913
15913
|
let r_ = !1;
|
|
15914
15914
|
const o3 = new Yt((i) => {
|
|
15915
|
-
r_ || (r_ = !0, i(Wu).toSelf().inSingletonScope(), i(Ku).to(Wu).inSingletonScope(), i(rn).toService(Ku), i(n0).toService(
|
|
15915
|
+
r_ || (r_ = !0, i(Wu).toSelf().inSingletonScope(), i(Ku).to(Wu).inSingletonScope(), i(rn).toService(Ku), i(n0).toService(mo), Ki(i, n0));
|
|
15916
15916
|
});
|
|
15917
15917
|
let s_ = !1;
|
|
15918
15918
|
const r3 = new Yt((i) => {
|
|
15919
|
-
s_ || (s_ = !0, i($u).toSelf().inSingletonScope(), i(Ju).to($u).inSingletonScope(), i(rn).toService(Ju), i(Fl).toSelf(), i(Ll).toSelf(), i(_s).toService(Fl), i(_s).toService(Ll), i(_s).toService(
|
|
15919
|
+
s_ || (s_ = !0, i($u).toSelf().inSingletonScope(), i(Ju).to($u).inSingletonScope(), i(rn).toService(Ju), i(Fl).toSelf(), i(Ll).toSelf(), i(_s).toService(Fl), i(_s).toService(Ll), i(_s).toService(mo), Ki(i, _s));
|
|
15920
15920
|
});
|
|
15921
15921
|
let l_ = !1;
|
|
15922
15922
|
const s3 = new Yt((i) => {
|
|
@@ -15924,23 +15924,23 @@ const s3 = new Yt((i) => {
|
|
|
15924
15924
|
});
|
|
15925
15925
|
let a_ = !1;
|
|
15926
15926
|
const l3 = new Yt((i) => {
|
|
15927
|
-
a_ || (a_ = !0, i(Gu).toSelf().inSingletonScope(), i(Qu).to(Gu).inSingletonScope(), i(rn).toService(Qu), i(l0).toService(
|
|
15927
|
+
a_ || (a_ = !0, i(Gu).toSelf().inSingletonScope(), i(Qu).to(Gu).inSingletonScope(), i(rn).toService(Qu), i(l0).toService(mo), Ki(i, l0));
|
|
15928
15928
|
});
|
|
15929
15929
|
let h_ = !1;
|
|
15930
15930
|
const a3 = new Yt((i) => {
|
|
15931
|
-
h_ || (h_ = !0, i(Nu).toSelf().inSingletonScope(), i(Yu).to(Nu).inSingletonScope(), i(rn).toService(Yu), i(o0).toService(
|
|
15931
|
+
h_ || (h_ = !0, i(Nu).toSelf().inSingletonScope(), i(Yu).to(Nu).inSingletonScope(), i(rn).toService(Yu), i(o0).toService(mo), Ki(i, o0));
|
|
15932
15932
|
});
|
|
15933
15933
|
let d_ = !1;
|
|
15934
15934
|
const h3 = new Yt((i) => {
|
|
15935
|
-
d_ || (d_ = !0, i(m0).to(g0).inSingletonScope(), i(rn).toService(m0), i(zu).toService(
|
|
15935
|
+
d_ || (d_ = !0, i(m0).to(g0).inSingletonScope(), i(rn).toService(m0), i(zu).toService(mo), Ki(i, zu));
|
|
15936
15936
|
});
|
|
15937
15937
|
let u_ = !1;
|
|
15938
15938
|
const d3 = new Yt((i) => {
|
|
15939
|
-
u_ || (u_ = !0, i(Vu).toSelf().inSingletonScope(), i(qu).to(Vu).inSingletonScope(), i(rn).toService(qu), i(r0).toService(
|
|
15939
|
+
u_ || (u_ = !0, i(Vu).toSelf().inSingletonScope(), i(qu).to(Vu).inSingletonScope(), i(rn).toService(qu), i(r0).toService(mo), Ki(i, r0));
|
|
15940
15940
|
});
|
|
15941
15941
|
let c_ = !1;
|
|
15942
15942
|
const u3 = new Yt((i) => {
|
|
15943
|
-
c_ || (c_ = !0, i(Zu).to(f0).inSingletonScope(), i(rn).toService(Zu), i(s0).toService(
|
|
15943
|
+
c_ || (c_ = !0, i(Zu).to(f0).inSingletonScope(), i(rn).toService(Zu), i(s0).toService(mo), Ki(i, s0));
|
|
15944
15944
|
});
|
|
15945
15945
|
var c3 = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
15946
15946
|
var o, r = arguments.length, s = r < 3 ? t : n === null ? n = Object.getOwnPropertyDescriptor(t, e) : n;
|
|
@@ -15954,7 +15954,7 @@ var c3 = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
15954
15954
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
15955
15955
|
return Reflect.metadata(i, t);
|
|
15956
15956
|
};
|
|
15957
|
-
let F0 = class extends
|
|
15957
|
+
let F0 = class extends bn {
|
|
15958
15958
|
constructor() {
|
|
15959
15959
|
super(), this.numberType = fm, this.builtinContributions = [dA], this.init();
|
|
15960
15960
|
}
|
|
@@ -15970,7 +15970,7 @@ let F0 = class extends mn {
|
|
|
15970
15970
|
const s = Jt(i).richtextIcon, { width: l = s.width, height: a = s.height, opacity: h = s.opacity, image: d, backgroundFill: u = s.backgroundFill, backgroundFillOpacity: c = s.backgroundFillOpacity, backgroundStroke: g = s.backgroundStroke, backgroundStrokeOpacity: f = s.backgroundStrokeOpacity, backgroundRadius: p = s.backgroundRadius, margin: v } = i.attribute, { backgroundWidth: m = l, backgroundHeight: b = a } = i.attribute;
|
|
15971
15971
|
if (v && (e += i._marginArray[3], n += i._marginArray[0]), i._hovered) {
|
|
15972
15972
|
const y = (m - l) / 2, C = (b - a) / 2;
|
|
15973
|
-
p === 0 ? (t.beginPath(), t.rect(e - y, n - C, m, b)) : (t.beginPath(),
|
|
15973
|
+
p === 0 ? (t.beginPath(), t.rect(e - y, n - C, m, b)) : (t.beginPath(), yo(t, e - y, n - C, m, b, p)), u && (t.globalAlpha = c, t.fillStyle = u, t.fill()), g && (t.globalAlpha = f, t.strokeStyle = g, t.stroke());
|
|
15974
15974
|
}
|
|
15975
15975
|
const w = d && ((r = i == null ? void 0 : i.resources) === null || r === void 0 ? void 0 : r.get(d));
|
|
15976
15976
|
w && w.state === "success" && (t.globalAlpha = h, t.drawImage(w.data, e, n, l, a));
|
|
@@ -15987,7 +15987,7 @@ const f3 = new Yt((i) => {
|
|
|
15987
15987
|
});
|
|
15988
15988
|
let f_ = !1;
|
|
15989
15989
|
const p3 = new Yt((i) => {
|
|
15990
|
-
f_ || (f_ = !0, i(my).to(v0).inSingletonScope(), i(rn).toService(my), i(ys).toService(
|
|
15990
|
+
f_ || (f_ = !0, i(my).to(v0).inSingletonScope(), i(rn).toService(my), i(ys).toService(mo), Ki(i, ys));
|
|
15991
15991
|
});
|
|
15992
15992
|
function v3() {
|
|
15993
15993
|
Mt.RegisterGraphicCreator("arc", Sm);
|
|
@@ -16183,28 +16183,28 @@ class B3 {
|
|
|
16183
16183
|
if (n === "flex-start") {
|
|
16184
16184
|
let a = 0;
|
|
16185
16185
|
for (let h = s; h <= l.idx; h++) {
|
|
16186
|
-
const d = a +
|
|
16186
|
+
const d = a + Ro(e[h], o.field), u = this.getAABBBounds(e[h]);
|
|
16187
16187
|
!u.empty() && (e[h].attribute[o.field] = this.updateChildPos(d, e[h].attribute[o.field], u[`${o.field}1`])), a += r[h].mainLen;
|
|
16188
16188
|
}
|
|
16189
16189
|
} else if (n === "flex-end") {
|
|
16190
16190
|
let a = o.len;
|
|
16191
16191
|
for (let h = l.idx; h >= s; h--) {
|
|
16192
16192
|
a -= r[h].mainLen;
|
|
16193
|
-
const d = a +
|
|
16193
|
+
const d = a + Ro(e[h], o.field), u = this.getAABBBounds(e[h]);
|
|
16194
16194
|
!u.empty() && (e[h].attribute[o.field] = this.updateChildPos(d, e[h].attribute[o.field], u[`${o.field}1`]));
|
|
16195
16195
|
}
|
|
16196
16196
|
} else if (n === "space-around")
|
|
16197
16197
|
if (l.mainLen >= o.len) {
|
|
16198
16198
|
let a = 0;
|
|
16199
16199
|
for (let h = s; h <= l.idx; h++) {
|
|
16200
|
-
const d = a +
|
|
16200
|
+
const d = a + Ro(e[h], o.field), u = this.getAABBBounds(e[h]);
|
|
16201
16201
|
!u.empty() && (e[h].attribute[o.field] = this.updateChildPos(d, e[h].attribute[o.field], u[`${o.field}1`])), a += r[h].mainLen;
|
|
16202
16202
|
}
|
|
16203
16203
|
} else {
|
|
16204
16204
|
const a = l.idx - s + 1, h = (o.len - l.mainLen) / a / 2;
|
|
16205
16205
|
let d = h;
|
|
16206
16206
|
for (let u = s; u <= l.idx; u++) {
|
|
16207
|
-
const c = d +
|
|
16207
|
+
const c = d + Ro(e[u], o.field), g = this.getAABBBounds(e[u]);
|
|
16208
16208
|
!g.empty() && (e[u].attribute[o.field] = this.updateChildPos(c, e[u].attribute[o.field], g[`${o.field}1`])), d += r[u].mainLen + 2 * h;
|
|
16209
16209
|
}
|
|
16210
16210
|
}
|
|
@@ -16212,21 +16212,21 @@ class B3 {
|
|
|
16212
16212
|
if (l.mainLen >= o.len) {
|
|
16213
16213
|
let a = 0;
|
|
16214
16214
|
for (let h = s; h <= l.idx; h++) {
|
|
16215
|
-
const d = a +
|
|
16215
|
+
const d = a + Ro(e[h], o.field), u = this.getAABBBounds(e[h]);
|
|
16216
16216
|
!u.empty() && (e[h].attribute[o.field] = this.updateChildPos(d, e[h].attribute[o.field], u[`${o.field}1`])), a += r[h].mainLen;
|
|
16217
16217
|
}
|
|
16218
16218
|
} else {
|
|
16219
16219
|
const a = l.idx - s + 1, h = (o.len - l.mainLen) / (2 * a - 2);
|
|
16220
16220
|
let d = 0;
|
|
16221
16221
|
for (let u = s; u <= l.idx; u++) {
|
|
16222
|
-
const c = d +
|
|
16222
|
+
const c = d + Ro(e[u], o.field), g = this.getAABBBounds(e[u]);
|
|
16223
16223
|
!g.empty() && (e[u].attribute[o.field] = this.updateChildPos(c, e[u].attribute[o.field], g[`${o.field}1`])), d += r[u].mainLen + 2 * h;
|
|
16224
16224
|
}
|
|
16225
16225
|
}
|
|
16226
16226
|
else if (n === "center") {
|
|
16227
16227
|
let a = (o.len - l.mainLen) / 2;
|
|
16228
16228
|
for (let h = s; h <= l.idx; h++) {
|
|
16229
|
-
const d = a +
|
|
16229
|
+
const d = a + Ro(e[h], o.field), u = this.getAABBBounds(e[h]);
|
|
16230
16230
|
!u.empty() && (e[h].attribute[o.field] = this.updateChildPos(d, e[h].attribute[o.field], u[`${o.field}1`])), a += r[h].mainLen;
|
|
16231
16231
|
}
|
|
16232
16232
|
}
|
|
@@ -16238,7 +16238,7 @@ class B3 {
|
|
|
16238
16238
|
let { alignSelf: u } = d.attribute;
|
|
16239
16239
|
u && u !== "auto" || (u = e);
|
|
16240
16240
|
const c = this.getAABBBounds(d), g = (a = o[u]) !== null && a !== void 0 ? a : o["flex-start"];
|
|
16241
|
-
u === "flex-end" ? !c.empty() && (d.attribute[n.field] = this.updateChildPos(g - r[h].crossLen +
|
|
16241
|
+
u === "flex-end" ? !c.empty() && (d.attribute[n.field] = this.updateChildPos(g - r[h].crossLen + Ro(d, n.field), d.attribute[n.field], c[`${n.field}1`])) : u === "center" ? !c.empty() && (d.attribute[n.field] = this.updateChildPos(g - r[h].crossLen / 2 + Ro(d, n.field), d.attribute[n.field], c[`${n.field}1`])) : !c.empty() && (d.attribute[n.field] = this.updateChildPos(g + Ro(d, n.field), d.attribute[n.field], c[`${n.field}1`]));
|
|
16242
16242
|
}
|
|
16243
16243
|
}
|
|
16244
16244
|
activate(t) {
|
|
@@ -16256,7 +16256,7 @@ class B3 {
|
|
|
16256
16256
|
Q.graphicService.hooks.onAttributeUpdate.taps = Q.graphicService.hooks.onAttributeUpdate.taps.filter((e) => e.name !== this.key), Q.graphicService.hooks.beforeUpdateAABBBounds.taps = Q.graphicService.hooks.beforeUpdateAABBBounds.taps.filter((e) => e.name !== this.key), Q.graphicService.hooks.afterUpdateAABBBounds.taps = Q.graphicService.hooks.afterUpdateAABBBounds.taps.filter((e) => e.name !== this.key), Q.graphicService.hooks.onSetStage.taps = Q.graphicService.hooks.onSetStage.taps.filter((e) => e.name !== this.key);
|
|
16257
16257
|
}
|
|
16258
16258
|
}
|
|
16259
|
-
function
|
|
16259
|
+
function Ro(i, t) {
|
|
16260
16260
|
return 0;
|
|
16261
16261
|
}
|
|
16262
16262
|
const v_ = () => {
|
|
@@ -18208,7 +18208,7 @@ let q_ = !1;
|
|
|
18208
18208
|
const lD = new Yt((i, t, e, n) => {
|
|
18209
18209
|
q_ || (q_ = !0, i(H_).to(G0).inSingletonScope(), i(Pn).toService(H_));
|
|
18210
18210
|
});
|
|
18211
|
-
class MA extends
|
|
18211
|
+
class MA extends bn {
|
|
18212
18212
|
contains(t, e, n) {
|
|
18213
18213
|
if (!t.AABBBounds.containsPoint(e))
|
|
18214
18214
|
return !1;
|
|
@@ -18261,7 +18261,7 @@ let Z_ = !1;
|
|
|
18261
18261
|
const uD = new Yt((i, t, e, n) => {
|
|
18262
18262
|
Z_ || (Z_ = !0, i(B_).to(U0).inSingletonScope(), i(Pn).toService(B_));
|
|
18263
18263
|
});
|
|
18264
|
-
class BA extends
|
|
18264
|
+
class BA extends bn {
|
|
18265
18265
|
contains(t, e, n) {
|
|
18266
18266
|
const { pickContext: o } = n ?? {};
|
|
18267
18267
|
if (!o)
|
|
@@ -19631,13 +19631,13 @@ function dz(i, t, e, n, o) {
|
|
|
19631
19631
|
}, e, i), s = jA(r, d1(n, r, t, o));
|
|
19632
19632
|
return lz(s, d1(n || 1, s, t, o));
|
|
19633
19633
|
}
|
|
19634
|
-
function
|
|
19634
|
+
function fo(i, t, e) {
|
|
19635
19635
|
let n = i.OBBBounds, o = t.OBBBounds;
|
|
19636
19636
|
return n && o && !n.empty() && !o.empty() ? n.intersects(o) : (n = i.AABBBounds, o = t.AABBBounds, e > Math.max(o.x1 - n.x2, n.x1 - o.x2, o.y1 - n.y2, n.y1 - o.y2));
|
|
19637
19637
|
}
|
|
19638
19638
|
function nv(i, t) {
|
|
19639
19639
|
for (let e, n = 1, o = i.length, r = i[0]; n < o; r = e, ++n)
|
|
19640
|
-
if (e = i[n],
|
|
19640
|
+
if (e = i[n], fo(r, e, t))
|
|
19641
19641
|
return !0;
|
|
19642
19642
|
return !1;
|
|
19643
19643
|
}
|
|
@@ -19900,7 +19900,7 @@ const u1 = {
|
|
|
19900
19900
|
},
|
|
19901
19901
|
greedy: function(i, t) {
|
|
19902
19902
|
let e;
|
|
19903
|
-
return i.filter((n, o) => o &&
|
|
19903
|
+
return i.filter((n, o) => o && fo(e, n, t) ? n.setAttribute("opacity", 0) : (e = n, 1));
|
|
19904
19904
|
}
|
|
19905
19905
|
};
|
|
19906
19906
|
function pz(i) {
|
|
@@ -19940,7 +19940,7 @@ function mz(i, t) {
|
|
|
19940
19940
|
const l = (c, g, f = !0) => f && c < 3 || g, a = l(n.length, t.firstVisible, !1);
|
|
19941
19941
|
let h = l(n.length, t.lastVisible);
|
|
19942
19942
|
const d = e[0], u = ms(e);
|
|
19943
|
-
|
|
19943
|
+
fo(d, u, r) && a && h && (u.setAttribute("opacity", 0), h = !1), c1(d, n, a, (c) => fo(c, d, r)), c1(u, n, h, (c) => fo(c, u, r) || !(!a || c === d) && fo(c, d, r), !0);
|
|
19944
19944
|
}
|
|
19945
19945
|
e.forEach((l) => {
|
|
19946
19946
|
l.setAttribute("visible", !!l.attribute.opacity);
|
|
@@ -20275,7 +20275,7 @@ class _h extends fz {
|
|
|
20275
20275
|
}
|
|
20276
20276
|
getTextAlign(t) {
|
|
20277
20277
|
let e = "center";
|
|
20278
|
-
return
|
|
20278
|
+
return go(t[0], 0) ? go(t[1], 0) ? Object.is(t[1], -0) ? e = "start" : Object.is(t[0], -0) && (e = "end") : e = "center" : t[0] > 0 ? e = "start" : t[0] < 0 && (e = "end"), e;
|
|
20279
20279
|
}
|
|
20280
20280
|
getTitleAttribute() {
|
|
20281
20281
|
var t, e, n;
|
|
@@ -20352,7 +20352,7 @@ class _h extends fz {
|
|
|
20352
20352
|
getTextBaseline(t, e) {
|
|
20353
20353
|
let n = "middle";
|
|
20354
20354
|
const { verticalFactor: o = 1 } = this.attribute, r = (e ? 1 : -1) * o;
|
|
20355
|
-
return
|
|
20355
|
+
return go(t[1], 0) ? n = !go(t[0], 0) || Object.is(t[0], -0) || Object.is(t[1], -0) ? "middle" : r === 1 ? "bottom" : "top" : t[1] > 0 ? n = "top" : t[1] < 0 && (n = "bottom"), n;
|
|
20356
20356
|
}
|
|
20357
20357
|
getLabelAlign(t, e, n) {
|
|
20358
20358
|
const o = this.attribute.orient;
|
|
@@ -21457,7 +21457,7 @@ const tW = (i, t) => {
|
|
|
21457
21457
|
v = y(v, f);
|
|
21458
21458
|
const C = t.labelFirstVisible;
|
|
21459
21459
|
let _ = t.labelLastVisible;
|
|
21460
|
-
|
|
21460
|
+
fo(b, w, f) && v.includes(w) && v.length > 1 && C && _ && (v.splice(v.indexOf(w), 1), _ = !1), A1(b, v, C, (R) => fo(R, b, f)), A1(w, v, _, (R) => fo(R, w, f) || !(!C || R === b) && fo(R, b, f), !0);
|
|
21461
21461
|
const x = v.map((R) => R.value);
|
|
21462
21462
|
x.length < 3 && p && (x.length > 1 && x.pop(), ms(x) !== ms(c) && x.push(ms(c))), c = x;
|
|
21463
21463
|
}
|
|
@@ -21468,7 +21468,7 @@ const tW = (i, t) => {
|
|
|
21468
21468
|
},
|
|
21469
21469
|
greedy: function(i, t) {
|
|
21470
21470
|
let e;
|
|
21471
|
-
return i.filter((n, o) => (!o || !
|
|
21471
|
+
return i.filter((n, o) => (!o || !fo(e, n, t)) && (e = n, !0));
|
|
21472
21472
|
}
|
|
21473
21473
|
}, M1 = (i, t, e, n) => YA(i, t, e).map((o) => n ? [o.x1, o.x2, o.width()] : [o.y1, o.y2, o.height()]), B1 = (i, t, e = 0) => Math.max(i[0], t[0]) - e / 2 <= Math.min(i[1], t[1]) + e / 2, P1 = (i, t) => i[1] < t[0] ? t[0] - i[1] : t[1] < i[0] ? i[0] - t[1] : 0, eW = (i, t) => {
|
|
21474
21474
|
var e;
|
|
@@ -21569,7 +21569,7 @@ const tW = (i, t) => {
|
|
|
21569
21569
|
align: o.textAlign,
|
|
21570
21570
|
baseline: o.textBaseline
|
|
21571
21571
|
}, { x, y: R } = dz(b, w, h, s, a);
|
|
21572
|
-
return _.align || (
|
|
21572
|
+
return _.align || (go(x, w.x) ? _.baseline || (_.baseline = R > w.y ? "top" : "bottom") : x > w.x ? _.align = "left" : x < w.x && (_.align = "right")), y = x + (_.align === "right" ? -v : _.align === "left" ? 0 : -v / 2), C = R + (_.baseline === "bottom" ? -m : _.baseline === "top" ? 0 : -m / 2), new Ke().set(y, C, y + v, C + m).rotate(d, y + v / 2, C + m / 2);
|
|
21573
21573
|
});
|
|
21574
21574
|
}, oW = (i, t) => {
|
|
21575
21575
|
const { tickCount: e, forceTickCount: n, tickStep: o, getRadius: r, labelOffset: s, labelGap: l = 0, labelStyle: a } = t, h = r == null ? void 0 : r();
|
|
@@ -22266,7 +22266,7 @@ class Gg extends Lm {
|
|
|
22266
22266
|
if (!this._scrollMask || !this._pagerComponent || !this._itemContext.isScrollbar)
|
|
22267
22267
|
return;
|
|
22268
22268
|
const [t, e] = this._pagerComponent.getScrollRange(), n = [];
|
|
22269
|
-
|
|
22269
|
+
go(Sn(e, 0, 1), 1) || n.push(...this._scrollMaskContext.endStops), go(Sn(t, 0, 1), 0) || n.push(...this._scrollMaskContext.startStops), n.length && (this._itemContext.isHorizontal ? this._scrollMask.setAttributes({
|
|
22270
22270
|
fill: {
|
|
22271
22271
|
gradient: "linear",
|
|
22272
22272
|
x0: 0,
|
|
@@ -23951,10 +23951,10 @@ var ue;
|
|
|
23951
23951
|
(function(i) {
|
|
23952
23952
|
i.single = "single", i.column = "column", i.row = "row", i.cross = "cross", i.none = "none";
|
|
23953
23953
|
})(ue || (ue = {}));
|
|
23954
|
-
var
|
|
23954
|
+
var un;
|
|
23955
23955
|
(function(i) {
|
|
23956
23956
|
i.top = "top", i.bottom = "bottom", i.left = "left", i.right = "right";
|
|
23957
|
-
})(
|
|
23957
|
+
})(un || (un = {}));
|
|
23958
23958
|
var $t;
|
|
23959
23959
|
(function(i) {
|
|
23960
23960
|
i.expand = "expand", i.collapse = "collapse", i.none = "none", i.loading = "loading";
|
|
@@ -24003,7 +24003,7 @@ const jW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
24003
24003
|
return Gi;
|
|
24004
24004
|
},
|
|
24005
24005
|
get Placement() {
|
|
24006
|
-
return
|
|
24006
|
+
return un;
|
|
24007
24007
|
},
|
|
24008
24008
|
get SortType() {
|
|
24009
24009
|
return wi;
|
|
@@ -24798,11 +24798,11 @@ function d4(i, t, e) {
|
|
|
24798
24798
|
const o = n.lastIndexOf(t, e);
|
|
24799
24799
|
return o !== -1 && o === e;
|
|
24800
24800
|
}
|
|
24801
|
-
function
|
|
24801
|
+
function _o(i) {
|
|
24802
24802
|
return !!(i && typeof i.then == "function");
|
|
24803
24803
|
}
|
|
24804
24804
|
function Ed(i, t) {
|
|
24805
|
-
|
|
24805
|
+
_o(i) ? i.then((e) => {
|
|
24806
24806
|
t(e);
|
|
24807
24807
|
}).catch((e) => {
|
|
24808
24808
|
}) : t(i);
|
|
@@ -25737,7 +25737,7 @@ function Us(i, t, e, n) {
|
|
|
25737
25737
|
var o, r, s;
|
|
25738
25738
|
return (s = (r = (o = Hd(i, ...e)) !== null && o !== void 0 ? o : Hd(t, ...e)) !== null && r !== void 0 ? r : n && Hd(i, ...n)) !== null && s !== void 0 ? s : n && Hd(t, ...n);
|
|
25739
25739
|
}
|
|
25740
|
-
class
|
|
25740
|
+
class fn {
|
|
25741
25741
|
constructor(t, e) {
|
|
25742
25742
|
this._defaultStyle = null, this._header = null, this._cornerHeader = null, this._cornerRightTopCell = null, this._cornerLeftBottomCell = null, this._cornerRightBottomCell = null, this._rightFrozen = null, this._bottomFrozen = null, this._rowHeader = null, this._body = null, this._groupTitle = null, this._scroll = null, this._tooltip = null, this._frameStyle = null, this._columnResize = null, this._dragHeaderSplitLine = null, this._frozenColumnLine = null, this._selectionStyle = null, this._axisStyle = null, this._checkboxStyle = null, this._radioStyle = null, this._textPopTipStyle = null, this._internalIconsStyle = null, this.isPivot = !1, this.name = "", this.internalTheme = {
|
|
25743
25743
|
obj: t,
|
|
@@ -26301,7 +26301,7 @@ class gn {
|
|
|
26301
26301
|
return q1(e, t) || q1(n, t);
|
|
26302
26302
|
}
|
|
26303
26303
|
extends(t) {
|
|
26304
|
-
return new
|
|
26304
|
+
return new fn(qe({}, t), qe(this.internalTheme.superTheme, this.internalTheme.obj));
|
|
26305
26305
|
}
|
|
26306
26306
|
getStyle(t) {
|
|
26307
26307
|
const e = this;
|
|
@@ -26450,7 +26450,7 @@ class gn {
|
|
|
26450
26450
|
}
|
|
26451
26451
|
}
|
|
26452
26452
|
function q1(i, t) {
|
|
26453
|
-
if (i instanceof
|
|
26453
|
+
if (i instanceof fn)
|
|
26454
26454
|
return i.hasProperty(t);
|
|
26455
26455
|
let e = i;
|
|
26456
26456
|
if (!e)
|
|
@@ -26460,23 +26460,23 @@ function q1(i, t) {
|
|
|
26460
26460
|
return !1;
|
|
26461
26461
|
return !!e;
|
|
26462
26462
|
}
|
|
26463
|
-
const Nm = new
|
|
26463
|
+
const Nm = new fn(V1, V1), jm = new fn($1, $1), Vm = new fn(G1, G1), $m = new fn(U1, U1), Gm = new fn(K1, K1), N4 = {
|
|
26464
26464
|
DEFAULT: $m,
|
|
26465
26465
|
SIMPLIFY: Gm,
|
|
26466
26466
|
ARCO: Vm,
|
|
26467
26467
|
DARK: Nm,
|
|
26468
26468
|
BRIGHT: jm
|
|
26469
26469
|
}, MT = {
|
|
26470
|
-
TableTheme:
|
|
26470
|
+
TableTheme: fn
|
|
26471
26471
|
};
|
|
26472
26472
|
function BT(i) {
|
|
26473
26473
|
if (!i)
|
|
26474
26474
|
return null;
|
|
26475
26475
|
if (typeof i == "string") {
|
|
26476
26476
|
const t = c4(Um(), i);
|
|
26477
|
-
return t ? t instanceof
|
|
26477
|
+
return t ? t instanceof fn ? t : new fn(t, t) : null;
|
|
26478
26478
|
}
|
|
26479
|
-
return i instanceof
|
|
26479
|
+
return i instanceof fn ? i : new fn(i, i);
|
|
26480
26480
|
}
|
|
26481
26481
|
function Um() {
|
|
26482
26482
|
return Jh(N4, Fc);
|
|
@@ -26497,7 +26497,7 @@ const Zo = {
|
|
|
26497
26497
|
DARK: Nm,
|
|
26498
26498
|
DEFAULT: $m,
|
|
26499
26499
|
SIMPLIFY: Gm,
|
|
26500
|
-
TableTheme:
|
|
26500
|
+
TableTheme: fn,
|
|
26501
26501
|
default: Zo,
|
|
26502
26502
|
get: Um,
|
|
26503
26503
|
of: BT,
|
|
@@ -26914,7 +26914,7 @@ const Fd = {
|
|
|
26914
26914
|
};
|
|
26915
26915
|
function vs(i, t) {
|
|
26916
26916
|
const e = hi(i);
|
|
26917
|
-
if (
|
|
26917
|
+
if (_o(e)) {
|
|
26918
26918
|
const n = e.then((o) => (t(o), o));
|
|
26919
26919
|
return t(n), n;
|
|
26920
26920
|
}
|
|
@@ -26923,7 +26923,7 @@ function vs(i, t) {
|
|
|
26923
26923
|
function Ic(i, t, e, n, o, r) {
|
|
26924
26924
|
if (i == null)
|
|
26925
26925
|
return;
|
|
26926
|
-
if (
|
|
26926
|
+
if (_o(i))
|
|
26927
26927
|
return i.then((a) => Ic(a, t, e, n, o, r));
|
|
26928
26928
|
const s = q4(t) ? t.get : t;
|
|
26929
26929
|
if (s in i)
|
|
@@ -27168,7 +27168,7 @@ class jr extends Zh {
|
|
|
27168
27168
|
if (typeof n == "string" || typeof n == "number") {
|
|
27169
27169
|
const h = this.beforeChangedRecordsMap[a][n], d = this.getOriginalRecord(a);
|
|
27170
27170
|
let u = t;
|
|
27171
|
-
typeof h == "number" && cv(t) && (u = parseFloat(t)),
|
|
27171
|
+
typeof h == "number" && cv(t) && (u = parseFloat(t)), _o(d) ? d.then((c) => {
|
|
27172
27172
|
c[n] = u;
|
|
27173
27173
|
}).catch((c) => {
|
|
27174
27174
|
}) : d ? d[n] = u : (this.records[a] = {}, this.records[a][n] = u);
|
|
@@ -29246,7 +29246,7 @@ class U6 extends ge {
|
|
|
29246
29246
|
r instanceof Es && (e -= r.AABBBounds.width());
|
|
29247
29247
|
});
|
|
29248
29248
|
const n = this._centerGroup.getChildByName("text");
|
|
29249
|
-
n instanceof
|
|
29249
|
+
n instanceof bo ? n.setAttribute("width", e) : n instanceof Wi && n.setAttribute("maxLineWidth", e);
|
|
29250
29250
|
let o = 0;
|
|
29251
29251
|
this._centerGroup.forEachChildren((r) => {
|
|
29252
29252
|
r.setAttribute("x", o), o += r.AABBBounds.width();
|
|
@@ -29275,7 +29275,7 @@ class U6 extends ge {
|
|
|
29275
29275
|
e && e.setAttribute("heightLimit", t), this.layout();
|
|
29276
29276
|
}
|
|
29277
29277
|
}
|
|
29278
|
-
function
|
|
29278
|
+
function po(i, t, e) {
|
|
29279
29279
|
var n, o, r, s, l;
|
|
29280
29280
|
let a = 0;
|
|
29281
29281
|
const h = e.internalProps.layoutMap;
|
|
@@ -29314,7 +29314,7 @@ function K6(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f) {
|
|
|
29314
29314
|
if (S = I, A = E, T = k, L.length === 0 && B.length === 0) {
|
|
29315
29315
|
let N = 0;
|
|
29316
29316
|
dt(c.theme._contentOffset) && (d === "left" ? N = c.theme._contentOffset : d === "right" && (N = -c.theme._contentOffset));
|
|
29317
|
-
const W = f ?
|
|
29317
|
+
const W = f ? po(f.start.col, f.start.row, c) : po(i.col, i.row, c), { text: V, moreThanMaxCharacters: $ } = Ah(e, c), Y = {
|
|
29318
29318
|
text: V.length === 1 ? V[0] : V,
|
|
29319
29319
|
moreThanMaxCharacters: $,
|
|
29320
29320
|
maxLineWidth: o ? 1 / 0 : a - (n[1] + n[3]) - S - A - W,
|
|
@@ -29335,7 +29335,7 @@ function K6(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f) {
|
|
|
29335
29335
|
g.text && Object.assign(N, g.text), N.textBaseline = "middle";
|
|
29336
29336
|
const W = [...L.map(($) => Wc($)), N, ...B.map(($) => Wc($))];
|
|
29337
29337
|
W[0].textAlign = d;
|
|
29338
|
-
const V = new
|
|
29338
|
+
const V = new bo({
|
|
29339
29339
|
width: o ? 0 : a - (n[1] + n[3]) - S - A,
|
|
29340
29340
|
height: r && s ? 0 : Math.ceil(h - (n[0] + n[2])),
|
|
29341
29341
|
textConfig: W,
|
|
@@ -29373,7 +29373,7 @@ function K6(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f) {
|
|
|
29373
29373
|
} else
|
|
29374
29374
|
i.firstChild ? i.insertBefore(O, i.firstChild) : i.appendChild(O), R = O.AABBBounds.width(), O.AABBBounds.height();
|
|
29375
29375
|
} else if (z(e)) {
|
|
29376
|
-
const { text: L, moreThanMaxCharacters: B } = Ah(e, c), H = f ?
|
|
29376
|
+
const { text: L, moreThanMaxCharacters: B } = Ah(e, c), H = f ? po(f.start.col, f.start.row, c) : po(i.col, i.row, c);
|
|
29377
29377
|
let F = 0;
|
|
29378
29378
|
dt(c.theme._contentOffset) && (d === "left" ? F = c.theme._contentOffset : d === "right" && (F = -c.theme._contentOffset));
|
|
29379
29379
|
const I = {
|
|
@@ -29406,7 +29406,7 @@ function Kn(i, t, e, n, o, r, s) {
|
|
|
29406
29406
|
const g = {};
|
|
29407
29407
|
i.type === "image" ? (i.isGif && (g.gif = i.src), g.image = i.src) : (i.type === "svg" || "svg" in i) && (g.image = i.svg), g.width = i.width, g.height = i.height, g.visibleTime = (l = i.visibleTime) !== null && l !== void 0 ? l : "always", g.funcType = i.funcType, g.interactive = i.interactive, g.isGif = i.isGif;
|
|
29408
29408
|
let f = 0;
|
|
29409
|
-
if (s && (s == null ? void 0 : s.addedHierarchyOffset) !== 0 || !dt(e) || !dt(n) || !r || i.funcType !== Se.collapse && i.funcType !== Se.expand && i.positionType !== me.contentLeft && i.positionType !== me.contentRight || (f = o ?
|
|
29409
|
+
if (s && (s == null ? void 0 : s.addedHierarchyOffset) !== 0 || !dt(e) || !dt(n) || !r || i.funcType !== Se.collapse && i.funcType !== Se.expand && i.positionType !== me.contentLeft && i.positionType !== me.contentRight || (f = o ? po(o.start.col, o.start.row, r) : po(e, n, r), s && (s.addedHierarchyOffset = 1)), g.marginLeft = ((a = i.marginLeft) !== null && a !== void 0 ? a : 0) + f, g.marginRight = (h = i.marginRight) !== null && h !== void 0 ? h : 0, i.interactive === !1 && (g.pickable = !1), i.hover && (g.backgroundWidth = (d = i.hover.width) !== null && d !== void 0 ? d : i.width, g.backgroundHeight = (u = i.hover.width) !== null && u !== void 0 ? u : i.width, g.backgroundColor = (c = i.hover.bgColor) !== null && c !== void 0 ? c : "rgba(22,44,66,0.2)", g.hoverImage = i.hover.image), i.cursor && (g.cursor = i.cursor), "shape" in i && i.shape === "circle" && (g.shape = i.shape), t)
|
|
29410
29410
|
return t.setAttributes(g), t.loadImage(g.image), t.tooltip = i.tooltip, t.name = i.name, t;
|
|
29411
29411
|
const p = new Es(g);
|
|
29412
29412
|
return p.tooltip = i.tooltip, p.name = i.name, p;
|
|
@@ -29426,7 +29426,7 @@ function Nc(i, t, e, n, o, r, s, l, a) {
|
|
|
29426
29426
|
});
|
|
29427
29427
|
const b = i.getChildByName("text"), w = i.getChildByName("content");
|
|
29428
29428
|
let y;
|
|
29429
|
-
b instanceof Wi ? (g = b.AABBBounds.height(), b.setAttribute("maxLineWidth", t - f - v - (r[1] + r[3]) - ((d = b.attribute.dx) !== null && d !== void 0 ? d : 0) - ((u = a.table.theme._contentOffset) !== null && u !== void 0 ? u : 0)), y = b.AABBBounds.height()) : b instanceof
|
|
29429
|
+
b instanceof Wi ? (g = b.AABBBounds.height(), b.setAttribute("maxLineWidth", t - f - v - (r[1] + r[3]) - ((d = b.attribute.dx) !== null && d !== void 0 ? d : 0) - ((u = a.table.theme._contentOffset) !== null && u !== void 0 ? u : 0)), y = b.AABBBounds.height()) : b instanceof bo ? (g = b.AABBBounds.height(), b.setAttribute("width", t - f - v - (r[1] + r[3])), y = b.AABBBounds.height()) : w && (g = w.AABBBounds.height(), w.updateWidth(t - f - v - (r[1] + r[3])), y = w.AABBBounds.height());
|
|
29430
29430
|
const C = Math.round(Math.max(p, m, g) + r[0] + r[2]);
|
|
29431
29431
|
if (i.forEachChildren((_) => {
|
|
29432
29432
|
var x;
|
|
@@ -29458,7 +29458,7 @@ function jc(i, t, e, n, o, r, s, l) {
|
|
|
29458
29458
|
const h = t - Math.floor(o[0] + o[2]), d = i.getChildByName("text");
|
|
29459
29459
|
d instanceof Wi && !n ? d.setAttributes({
|
|
29460
29460
|
heightLimit: ((a = l.options.customConfig) === null || a === void 0 ? void 0 : a.limitContentHeight) === !1 ? -1 : h
|
|
29461
|
-
}) : d instanceof
|
|
29461
|
+
}) : d instanceof bo && !n ? d.setAttributes({
|
|
29462
29462
|
height: h
|
|
29463
29463
|
}) : i.getChildByName("content") && i.getChildByName("content").updateHeight(h), i.forEachChildren((u) => {
|
|
29464
29464
|
u.setAttribute("dy", 0), u.type === "rect" || u.type === "chart" || u.name === zo || (u.name === "mark" ? u.setAttribute("y", 0) : s === "middle" ? u.setAttribute("y", o[0] + (h - u.AABBBounds.height()) / 2) : s === "bottom" ? u.setAttribute("y", o[0] + h - u.AABBBounds.height()) : u.setAttribute("y", o[0]));
|
|
@@ -29821,7 +29821,7 @@ function rM(i, t) {
|
|
|
29821
29821
|
function Xm(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v, m) {
|
|
29822
29822
|
var b, w;
|
|
29823
29823
|
let y, C = !1;
|
|
29824
|
-
if (
|
|
29824
|
+
if (_o(t)) {
|
|
29825
29825
|
if (n.scenegraph.highPerformanceGetCell(o, r).role !== "cell")
|
|
29826
29826
|
return y;
|
|
29827
29827
|
t = n.getCellValue(o, r), C = !0;
|
|
@@ -29918,7 +29918,7 @@ function Io(i, t, e, n, o) {
|
|
|
29918
29918
|
});
|
|
29919
29919
|
const X = S.getChildByName("text");
|
|
29920
29920
|
if (X) {
|
|
29921
|
-
const tt = e.getCellValue(i, t), { text: rt, moreThanMaxCharacters: mt } = Ah(tt, e), St =
|
|
29921
|
+
const tt = e.getCellValue(i, t), { text: rt, moreThanMaxCharacters: mt } = Ah(tt, e), St = po(i, t, e), At = N.lineClamp, ut = (_ = ie(_t("padding", N, i, t, e))) !== null && _ !== void 0 ? _ : [0, 0, 0, 0], yt = V.text.textAlign;
|
|
29922
29922
|
let nt = 0;
|
|
29923
29923
|
nt = yt === "center" ? ut[3] + (ft - (ut[1] + ut[3])) / 2 : yt === "right" ? ut[3] + ft - (ut[1] + ut[3]) : ut[3];
|
|
29924
29924
|
const It = {
|
|
@@ -29948,7 +29948,7 @@ function Io(i, t, e, n, o) {
|
|
|
29948
29948
|
return;
|
|
29949
29949
|
const $ = O || H ? "text" : e.isHeader(i, t) ? (x = e._getHeaderLayoutMap(i, t).headerType) !== null && x !== void 0 ? x : "text" : (R = e.getBodyColumnType(i, t)) !== null && R !== void 0 ? R : "text", Y = V._vtable.padding, K = V.text.textAlign, G = V.text.textBaseline;
|
|
29950
29950
|
let J, gt, Ct;
|
|
29951
|
-
if (M ? (gt = e.getColsWidth(M.start.col, M.end.col), Ct = e.getRowsHeight(M.start.row, M.end.row)) : (gt = e.getColWidth(i), Ct = e.getRowHeight(t)),
|
|
29951
|
+
if (M ? (gt = e.getColsWidth(M.start.col, M.end.col), Ct = e.getRowsHeight(M.start.row, M.end.row)) : (gt = e.getColWidth(i), Ct = e.getRowHeight(t)), _o(B) ? (S.removeAllChild(), oM(B, e, t5.bind(null, {
|
|
29952
29952
|
type: $,
|
|
29953
29953
|
value: B,
|
|
29954
29954
|
define: E,
|
|
@@ -29974,7 +29974,7 @@ function Io(i, t, e, n, o) {
|
|
|
29974
29974
|
}
|
|
29975
29975
|
function sM(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v) {
|
|
29976
29976
|
var m, b;
|
|
29977
|
-
if (
|
|
29977
|
+
if (_o(t) && (t = n.getCellValue(o, r)), !g && (a.row !== r || a.col !== o))
|
|
29978
29978
|
return null;
|
|
29979
29979
|
if (!g && a.parent && n.reactCustomLayout) {
|
|
29980
29980
|
const y = a.getChildByName("custom-container");
|
|
@@ -29989,7 +29989,7 @@ function sM(i, t, e, n, o, r, s, l, a, h, d, u, c, g, f, p, v) {
|
|
|
29989
29989
|
function Q6(i, t, e, n, o, r) {
|
|
29990
29990
|
var s;
|
|
29991
29991
|
const l = r.getBodyColumnType(i, t), a = r.isAutoRowHeight(t), h = r.getCellValue(i, t);
|
|
29992
|
-
return !(r.isHeader(i, t) || e.role !== "cell" || l !== "text" || n || a || o || ((s = e.firstChild) === null || s === void 0 ? void 0 : s.type) !== "text" ||
|
|
29992
|
+
return !(r.isHeader(i, t) || e.role !== "cell" || l !== "text" || n || a || o || ((s = e.firstChild) === null || s === void 0 ? void 0 : s.type) !== "text" || _o(h));
|
|
29993
29993
|
}
|
|
29994
29994
|
function t5(i) {
|
|
29995
29995
|
const { type: t, value: e, define: n, table: o, col: r, row: s, cellWidth: l, cellHeight: a, oldCellGroup: h, padding: d, textAlign: u, textBaseline: c, mayHaveIcon: g, addNew: f, range: p, customResult: v, customStyle: m } = i, b = m || o._getCellStyle(p ? p.start.col : r, p ? p.start.row : s), w = Yr(b, o, p ? p.start.col : r, p ? p.start.row : s, _t).theme;
|
|
@@ -30271,7 +30271,7 @@ function dM(i) {
|
|
|
30271
30271
|
ignoreBuf: !0
|
|
30272
30272
|
})), lw.AABBBounds;
|
|
30273
30273
|
}
|
|
30274
|
-
const aw = new
|
|
30274
|
+
const aw = new bo({
|
|
30275
30275
|
width: 0,
|
|
30276
30276
|
height: 0,
|
|
30277
30277
|
textConfig: []
|
|
@@ -30291,13 +30291,13 @@ function Yn(i, t, e, n = !0, o) {
|
|
|
30291
30291
|
for (let C = t; C < i.columnHeaderLevelCount; C++) {
|
|
30292
30292
|
let _ = 0, x = i.colCount - 1;
|
|
30293
30293
|
if ((i.isPivotTable() && !i.isPivotChart() || i.isPivotChart() && !i.internalProps.layoutMap.indicatorsAsCol) && u5(i, C) && !bi(i, i.rowHeaderLevelCount, C) && (_ = 0, x = i.rowHeaderLevelCount), y || i.getDefaultRowHeight(C) === "auto") {
|
|
30294
|
-
const R =
|
|
30294
|
+
const R = gn(C, _, x, i);
|
|
30295
30295
|
m[C] = Math.round(R), i.heightAdaptiveMode !== "only-body" && o || i._setRowHeight(C, R);
|
|
30296
30296
|
}
|
|
30297
30297
|
}
|
|
30298
30298
|
for (let C = i.rowCount - i.bottomFrozenRowCount; C <= e; C++)
|
|
30299
30299
|
if (y || i.getDefaultRowHeight(C) === "auto") {
|
|
30300
|
-
const _ =
|
|
30300
|
+
const _ = gn(C, 0, i.colCount - 1, i);
|
|
30301
30301
|
o ? m[C] = Math.round(_) : i._setRowHeight(C, _);
|
|
30302
30302
|
}
|
|
30303
30303
|
if (!(e < i.columnHeaderLevelCount || !y))
|
|
@@ -30305,17 +30305,17 @@ function Yn(i, t, e, n = !0, o) {
|
|
|
30305
30305
|
if (i.internalProps.transpose || i.isPivotTable() && !i.internalProps.layoutMap.indicatorsAsCol)
|
|
30306
30306
|
for (let C = Math.max(t, i.columnHeaderLevelCount); C <= e; C++) {
|
|
30307
30307
|
let _;
|
|
30308
|
-
_ = d5(i, C) ?
|
|
30308
|
+
_ = d5(i, C) ? gn(C, 0, i.rowHeaderLevelCount, i) : gn(C, 0, i.colCount - 1, i), o ? m[C] = Math.round(_) : i._setRowHeight(C, _);
|
|
30309
30309
|
}
|
|
30310
30310
|
else
|
|
30311
30311
|
for (let C = Math.max(t, i.columnHeaderLevelCount); C <= e; C++) {
|
|
30312
|
-
const _ =
|
|
30312
|
+
const _ = gn(C, 0, i.colCount - 1, i);
|
|
30313
30313
|
o ? m[C] = Math.round(_) : i._setRowHeight(C, _);
|
|
30314
30314
|
}
|
|
30315
30315
|
else {
|
|
30316
|
-
c5(
|
|
30316
|
+
c5(gn(i.columnHeaderLevelCount, 0, i.colCount - 1, i), i.columnHeaderLevelCount, i.rowCount - 1 - i.bottomFrozenRowCount, i, o ? m : void 0);
|
|
30317
30317
|
for (let C = i.rowCount - i.bottomFrozenRowCount; C <= e; C++) {
|
|
30318
|
-
const _ =
|
|
30318
|
+
const _ = gn(C, 0, i.colCount - 1, i);
|
|
30319
30319
|
o ? m[C] = Math.round(_) : i._setRowHeight(C, _);
|
|
30320
30320
|
}
|
|
30321
30321
|
}
|
|
@@ -30375,7 +30375,7 @@ function Yn(i, t, e, n = !0, o) {
|
|
|
30375
30375
|
}
|
|
30376
30376
|
i.isPivotTable() && (b.disableUseGetBodyCache(), b.disableUseHeaderPathCache());
|
|
30377
30377
|
}
|
|
30378
|
-
function
|
|
30378
|
+
function gn(i, t, e, n) {
|
|
30379
30379
|
var o;
|
|
30380
30380
|
let r;
|
|
30381
30381
|
if (n.isPivotChart() && i >= n.columnHeaderLevelCount && i < n.rowCount - n.bottomFrozenRowCount)
|
|
@@ -30552,7 +30552,7 @@ function f5(i, t, e, n) {
|
|
|
30552
30552
|
!((H = n.options.customConfig) === null || H === void 0) && H.multilinesForXTable && B !== 0 || (B === 0 && c.length ? l += Math.max(x, g) : B === M.length - 1 && f.length ? l += Math.max(x, p) : l += x);
|
|
30553
30553
|
});
|
|
30554
30554
|
else if (S) {
|
|
30555
|
-
const L =
|
|
30555
|
+
const L = po(i, t, n), B = P - (w[1] + w[3]) - u - L;
|
|
30556
30556
|
l = dM({
|
|
30557
30557
|
maxLineWidth: B,
|
|
30558
30558
|
text: M,
|
|
@@ -30915,7 +30915,7 @@ function uw(i, t, e, n, o, r) {
|
|
|
30915
30915
|
if (o) {
|
|
30916
30916
|
const x = r._getCellStyle(c, f), R = ie(x.padding), S = x.textAlign, A = x.textBaseline;
|
|
30917
30917
|
w = Nc(b, t, u, e, n, R, S, A, r.scenegraph);
|
|
30918
|
-
const T =
|
|
30918
|
+
const T = po(b.col, b.row, r);
|
|
30919
30919
|
if (T) {
|
|
30920
30920
|
const M = b.getChildByName("text"), P = b.getChildByName("expand") || b.getChildByName("collapse");
|
|
30921
30921
|
(P == null ? void 0 : P.role) !== "icon-left" && M && M.setAttribute("dx", T);
|
|
@@ -30941,7 +30941,7 @@ function uw(i, t, e, n, o, r) {
|
|
|
30941
30941
|
return Nc(i, t, r.getRowHeight(i.row), e, n, l, a, h, r.scenegraph);
|
|
30942
30942
|
}
|
|
30943
30943
|
function cw(i, t) {
|
|
30944
|
-
const e = Math.round(
|
|
30944
|
+
const e = Math.round(gn(t, 0, i.table.colCount - 1, i.table));
|
|
30945
30945
|
i.table._setRowHeight(t, e, !0);
|
|
30946
30946
|
for (let n = 0; n < i.table.colCount; n++) {
|
|
30947
30947
|
const o = e, r = i.highPerformanceGetCell(n, t);
|
|
@@ -32116,16 +32116,16 @@ function gM(i) {
|
|
|
32116
32116
|
}), i.render(), gM(i);
|
|
32117
32117
|
}) : Tv = !1;
|
|
32118
32118
|
}
|
|
32119
|
-
const
|
|
32119
|
+
const Ao = 2e3;
|
|
32120
32120
|
function A5(i, t) {
|
|
32121
32121
|
var e;
|
|
32122
32122
|
const { viewWidth: n, viewHeight: o } = i;
|
|
32123
|
-
if (n <
|
|
32123
|
+
if (n < Ao && o < Ao)
|
|
32124
32124
|
return t.cacheCanvas = vw(i), void (t.isShareChartSpec || ((e = t.chartInstance) === null || e === void 0 || e.release(), t.chartInstance = null, t.setAttribute("chartInstance", null)));
|
|
32125
|
-
const r = Math.ceil(o /
|
|
32125
|
+
const r = Math.ceil(o / Ao), s = Math.ceil(n / Ao), l = [];
|
|
32126
32126
|
for (let a = 0; a < r; a++)
|
|
32127
32127
|
for (let h = 0; h < s; h++) {
|
|
32128
|
-
const d = h *
|
|
32128
|
+
const d = h * Ao, u = a * Ao, c = d + Ao > n ? n : d + Ao, g = u + Ao > o ? o : u + Ao, f = c - d, p = g - u, v = new Bn();
|
|
32129
32129
|
v.setValue(d, u, c, g);
|
|
32130
32130
|
const m = vw(i, !1, v);
|
|
32131
32131
|
l.push({
|
|
@@ -32173,7 +32173,7 @@ var M5 = globalThis && globalThis.__decorate || function(i, t, e, n) {
|
|
|
32173
32173
|
return r > 3 && s && Object.defineProperty(t, e, s), s;
|
|
32174
32174
|
};
|
|
32175
32175
|
const B5 = Symbol.for("ChartRender");
|
|
32176
|
-
let Ua = class extends
|
|
32176
|
+
let Ua = class extends bn {
|
|
32177
32177
|
constructor() {
|
|
32178
32178
|
super(...arguments), this.numberType = cM;
|
|
32179
32179
|
}
|
|
@@ -32424,7 +32424,7 @@ let qc = class {
|
|
|
32424
32424
|
y = A, C = T;
|
|
32425
32425
|
} else
|
|
32426
32426
|
y = Math.ceil(_), C = Math.ceil(x);
|
|
32427
|
-
w === 0 || it(w) && w.every((R) => R === 0) ? pM(i, t, e, n, a, f, v || m, p || b, y, C) : (t.beginPath(),
|
|
32427
|
+
w === 0 || it(w) && w.every((R) => R === 0) ? pM(i, t, e, n, a, f, v || m, p || b, y, C) : (t.beginPath(), yo(t, e, n, y, C, w, new Array(4).fill(0).map((R, S) => (A, T, M, P) => {
|
|
32428
32428
|
mM(S, A, T, M, P, i, t, e, n, a, f, v || m, p || b, y, C);
|
|
32429
32429
|
})), t.stroke());
|
|
32430
32430
|
}
|
|
@@ -32546,7 +32546,7 @@ let tg = class {
|
|
|
32546
32546
|
const R = ((g = x == null ? void 0 : x.theme) === null || g === void 0 ? void 0 : g.cellBorderClipDirection) === "bottom-right", S = 0, A = 0;
|
|
32547
32547
|
R ? (e = Math.floor(e) - 0.5, n = Math.floor(n) - 0.5, i.role === "cell" && (i.col === 0 && (e += 1), i.row === 0 && (n += 1))) : (e = Math.floor(e) + 0.5, n = Math.floor(n) + 0.5);
|
|
32548
32548
|
const { width: T, height: M } = Jm(i, Math.ceil(C), Math.ceil(_), R);
|
|
32549
|
-
y ?
|
|
32549
|
+
y ? yo(t, e, n, T + S, M + A, y) : t.rect(e, n, T, M), t.setStrokeStyle(i, i.attribute, e, n, a), t.stroke();
|
|
32550
32550
|
}
|
|
32551
32551
|
}
|
|
32552
32552
|
};
|
|
@@ -32648,7 +32648,7 @@ let Ya = class {
|
|
|
32648
32648
|
}
|
|
32649
32649
|
drawShape(i, t, e, n, o, r, s, l, a, h, d, u) {
|
|
32650
32650
|
const { width: c = a.width, height: g = a.height, stroke: f = a.stroke, strokeArrayColor: p = a.strokeArrayColor, strokeArrayWidth: v = a.strokeArrayWidth, lineWidth: m = a.lineWidth, strokeColor: b = a.stroke, cornerRadius: w = a.cornerRadius } = i.attribute;
|
|
32651
|
-
f && (Array.isArray(v) || m !== 0) && (Array.isArray(f) || Array.isArray(p) || Array.isArray(v)) && (i.name !== "border-rect" && i.name !== "table-border-rect" && (typeof m == "number" && 1 & m || Array.isArray(v) && v.some((_) => 1 & _)) && (e = Math.floor(e) + 0.5, n = Math.floor(n) + 0.5), w === 0 || it(w) && w.every((_) => _ === 0) ? pM(i, t, e, n, a, f, v || m, p || b, Math.ceil(c + 0), Math.ceil(g + 0)) : (t.beginPath(),
|
|
32651
|
+
f && (Array.isArray(v) || m !== 0) && (Array.isArray(f) || Array.isArray(p) || Array.isArray(v)) && (i.name !== "border-rect" && i.name !== "table-border-rect" && (typeof m == "number" && 1 & m || Array.isArray(v) && v.some((_) => 1 & _)) && (e = Math.floor(e) + 0.5, n = Math.floor(n) + 0.5), w === 0 || it(w) && w.every((_) => _ === 0) ? pM(i, t, e, n, a, f, v || m, p || b, Math.ceil(c + 0), Math.ceil(g + 0)) : (t.beginPath(), yo(t, e, n, c, g, w, new Array(4).fill(0).map((_, x) => (R, S, A, T) => {
|
|
32652
32652
|
mM(x, R, S, A, T, i, t, e, n, a, f, v || m, p || b, Math.ceil(c + 0), Math.ceil(g + 0));
|
|
32653
32653
|
})), t.stroke()));
|
|
32654
32654
|
}
|
|
@@ -33087,7 +33087,7 @@ function au(i, t, e, n, o, r, s, l, a) {
|
|
|
33087
33087
|
L = I, I && (P = !0, l.options.groupTitleCustomLayout && (y = $r(l.options.groupTitleCustomLayout, void 0, m.start.col, m.start.row, l.getColsWidth(m.start.col, m.end.col), l.getRowsHeight(m.start.row, m.end.row), !1, l.isAutoRowHeight(v), [0, 0, 0, 0], m, l))), F && (_ = F);
|
|
33088
33088
|
}
|
|
33089
33089
|
const B = L || S ? "text" : (d = l.isHeader(t, v) ? (h = l._getHeaderLayoutMap(t, v).headerType) !== null && h !== void 0 ? h : "text" : l.getBodyColumnType(t, v)) !== null && d !== void 0 ? d : "text";
|
|
33090
|
-
if (
|
|
33090
|
+
if (_o(_)) {
|
|
33091
33091
|
G5(t, v, 0, f, x, R, i), oM(_, l, $5.bind(null, {
|
|
33092
33092
|
type: B,
|
|
33093
33093
|
value: _,
|
|
@@ -35070,28 +35070,28 @@ function HN(i) {
|
|
|
35070
35070
|
clip: !0,
|
|
35071
35071
|
pickable: !1
|
|
35072
35072
|
}), i.tableGroup.role = "table";
|
|
35073
|
-
const n =
|
|
35073
|
+
const n = To(0, 0, !i.table.options.enableTreeStickCell);
|
|
35074
35074
|
n.role = "col-header", i.colHeaderGroup = n;
|
|
35075
|
-
const o =
|
|
35075
|
+
const o = To(0, 0, !i.table.options.enableTreeStickCell);
|
|
35076
35076
|
o.role = "corner-header", i.cornerHeaderGroup = o;
|
|
35077
|
-
const r =
|
|
35077
|
+
const r = To(0, 0, !0);
|
|
35078
35078
|
r.role = "row-header", i.rowHeaderGroup = r;
|
|
35079
|
-
const s =
|
|
35079
|
+
const s = To(t, 0, !0);
|
|
35080
35080
|
s.role = "body", i.bodyGroup = s;
|
|
35081
|
-
const l =
|
|
35081
|
+
const l = To(0, 0, !0);
|
|
35082
35082
|
l.role = "right-frozen", i.rightFrozenGroup = l;
|
|
35083
|
-
const a =
|
|
35083
|
+
const a = To(0, 0, !0);
|
|
35084
35084
|
a.role = "bottom-frozen", i.bottomFrozenGroup = a;
|
|
35085
|
-
const h =
|
|
35085
|
+
const h = To(0, 0);
|
|
35086
35086
|
h.role = "component", i.componentGroup = h;
|
|
35087
|
-
const d =
|
|
35087
|
+
const d = To(0, 0, !0);
|
|
35088
35088
|
d.role = "corner-right-top-header", i.rightTopCornerGroup = d;
|
|
35089
|
-
const u =
|
|
35089
|
+
const u = To(0, 0, !0);
|
|
35090
35090
|
u.role = "corner-right-bottom-header", i.rightBottomCornerGroup = u;
|
|
35091
|
-
const c =
|
|
35091
|
+
const c = To(0, 0, !0);
|
|
35092
35092
|
c.role = "corner-left-bottom-header", i.leftBottomCornerGroup = c, i.tableGroup.addChild(s), i.tableGroup.addChild(r), i.tableGroup.addChild(a), i.tableGroup.addChild(n), i.tableGroup.addChild(l), i.tableGroup.addChild(u), i.tableGroup.addChild(d), i.tableGroup.addChild(c), i.tableGroup.addChild(o), i.tableGroup.addChild(h);
|
|
35093
35093
|
}
|
|
35094
|
-
function
|
|
35094
|
+
function To(i, t, e) {
|
|
35095
35095
|
return new ge({
|
|
35096
35096
|
x: 0,
|
|
35097
35097
|
y: 0,
|
|
@@ -35107,24 +35107,24 @@ function Ko(i, t) {
|
|
|
35107
35107
|
}), t;
|
|
35108
35108
|
}
|
|
35109
35109
|
function EN(i, t, e) {
|
|
35110
|
-
i !== -1 && t !== -1 && (
|
|
35110
|
+
i !== -1 && t !== -1 && (wo(i, t, (n) => n.attribute.visibleTime === "mouseenter_cell", (n) => {
|
|
35111
35111
|
n.setAttribute("opacity", 0);
|
|
35112
35112
|
const o = n.parent.getChildByName("icon-back");
|
|
35113
35113
|
o && o.setAttribute("visible", !1);
|
|
35114
35114
|
}, e), e.updateNextFrame());
|
|
35115
35115
|
}
|
|
35116
35116
|
function LN(i, t, e) {
|
|
35117
|
-
i !== -1 && t !== -1 && (
|
|
35117
|
+
i !== -1 && t !== -1 && (wo(i, t, (n) => n.attribute.visibleTime === "mouseenter_cell", (n) => {
|
|
35118
35118
|
n.setAttribute("opacity", 1);
|
|
35119
35119
|
}, e), e.updateNextFrame());
|
|
35120
35120
|
}
|
|
35121
35121
|
function FN(i, t, e) {
|
|
35122
|
-
i !== -1 && t !== -1 && (
|
|
35122
|
+
i !== -1 && t !== -1 && (wo(i, t, (n) => n.attribute.visibleTime === "click_cell", (n) => {
|
|
35123
35123
|
n.setAttribute("opacity", 0);
|
|
35124
35124
|
}, e), e.updateNextFrame());
|
|
35125
35125
|
}
|
|
35126
35126
|
function IN(i, t, e) {
|
|
35127
|
-
i !== -1 && t !== -1 && (
|
|
35127
|
+
i !== -1 && t !== -1 && (wo(i, t, (n) => n.attribute.visibleTime === "click_cell", (n) => {
|
|
35128
35128
|
n.setAttribute("opacity", 1);
|
|
35129
35129
|
}, e), e.updateNextFrame());
|
|
35130
35130
|
}
|
|
@@ -35136,7 +35136,7 @@ function kN(i, t, e, n, o) {
|
|
|
35136
35136
|
}
|
|
35137
35137
|
function ON(i, t, e, n, o) {
|
|
35138
35138
|
var r, s;
|
|
35139
|
-
if ((i.attribute.backgroundColor || i.attribute.hoverImage) &&
|
|
35139
|
+
if ((i.attribute.backgroundColor || i.attribute.hoverImage) && wo(t, e, (l) => l.name === i.name, (l) => {
|
|
35140
35140
|
var a, h, d, u, c, g, f, p;
|
|
35141
35141
|
if (l.attribute.backgroundColor) {
|
|
35142
35142
|
let v = l.parent.getChildByName("icon-back");
|
|
@@ -35185,14 +35185,14 @@ function ON(i, t, e, n, o) {
|
|
|
35185
35185
|
}
|
|
35186
35186
|
}
|
|
35187
35187
|
function DN(i, t, e, n) {
|
|
35188
|
-
(i.attribute.backgroundColor || i.attribute.hoverImage) &&
|
|
35188
|
+
(i.attribute.backgroundColor || i.attribute.hoverImage) && wo(t, e, (o) => o.name === i.name, (o) => {
|
|
35189
35189
|
const r = o.parent.getChildByName("icon-back");
|
|
35190
35190
|
r && r.setAttribute("visible", !1), o.attribute.hoverImage && o.attribute.image !== o.attribute.originImage && (o.image = o.attribute.originImage);
|
|
35191
35191
|
}, n);
|
|
35192
35192
|
}
|
|
35193
35193
|
function Ow(i, t, e, n, o) {
|
|
35194
35194
|
const r = i.name;
|
|
35195
|
-
|
|
35195
|
+
wo(e, n, (s) => s.name === r, (s) => {
|
|
35196
35196
|
Kn(t, s), s.name = t.name;
|
|
35197
35197
|
}, o), o.updateNextFrame();
|
|
35198
35198
|
}
|
|
@@ -35223,14 +35223,14 @@ function NN(i) {
|
|
|
35223
35223
|
function jN(i) {
|
|
35224
35224
|
for (let t = 0; t < i.table.colCount; t++)
|
|
35225
35225
|
for (let e = 0; e < i.table.columnHeaderLevelCount; e++)
|
|
35226
|
-
|
|
35226
|
+
wo(t, e, (n) => n.attribute.funcType === "frozen", (n) => {
|
|
35227
35227
|
const o = i.table.internalProps.headerHelper.getFrozenIcon(t, e);
|
|
35228
35228
|
Kn(o, n), n.name = o.name;
|
|
35229
35229
|
}, i);
|
|
35230
35230
|
}
|
|
35231
35231
|
function VN(i, t, e) {
|
|
35232
35232
|
let n;
|
|
35233
|
-
n = e.table.isHeader(i, t) ? e.table.internalProps.headerHelper.getHierarchyIcon(i, t) : e.table.internalProps.bodyHelper.getHierarchyIcon(i, t),
|
|
35233
|
+
n = e.table.isHeader(i, t) ? e.table.internalProps.headerHelper.getHierarchyIcon(i, t) : e.table.internalProps.bodyHelper.getHierarchyIcon(i, t), wo(i, t, (o) => o.attribute.funcType === Se.collapse || o.attribute.funcType === Se.expand, (o) => {
|
|
35234
35234
|
Kn(n, o), o.name = n.name;
|
|
35235
35235
|
}, e);
|
|
35236
35236
|
}
|
|
@@ -35239,7 +35239,7 @@ function Pv(i, t, e) {
|
|
|
35239
35239
|
n.type === "group" ? Pv(n, t, e) : t(n) && e(n);
|
|
35240
35240
|
});
|
|
35241
35241
|
}
|
|
35242
|
-
function
|
|
35242
|
+
function wo(i, t, e, n, o) {
|
|
35243
35243
|
const r = o.getCell(i, t);
|
|
35244
35244
|
if (r.role === "cell" && z(r.mergeStartCol) && z(r.mergeStartRow) && z(r.mergeEndCol) && z(r.mergeEndRow)) {
|
|
35245
35245
|
const { colStart: s, colEnd: l, rowStart: a, rowEnd: h } = Xr(r, o);
|
|
@@ -35250,12 +35250,12 @@ function _o(i, t, e, n, o) {
|
|
|
35250
35250
|
Pv(r, e, n);
|
|
35251
35251
|
}
|
|
35252
35252
|
function $N(i, t, e) {
|
|
35253
|
-
|
|
35253
|
+
wo(i, t, (n) => n.attribute.funcType === Se.dropDown, (n) => {
|
|
35254
35254
|
n.oldVisibleTime = n.attribute.visibleTime, n.setAttribute("visibleTime", "always"), n.setAttribute("opacity", 1);
|
|
35255
35255
|
}, e);
|
|
35256
35256
|
}
|
|
35257
35257
|
function GN(i, t, e) {
|
|
35258
|
-
|
|
35258
|
+
wo(i, t, (n) => n.attribute.funcType === Se.dropDown, (n) => {
|
|
35259
35259
|
n.oldVisibleTime && n.setAttribute("visibleTime", n.oldVisibleTime), n.setAttribute("opacity", n.attribute.visibleTime === "always" ? 1 : 0);
|
|
35260
35260
|
}, e);
|
|
35261
35261
|
}
|
|
@@ -36140,7 +36140,7 @@ class JN {
|
|
|
36140
36140
|
this.table.scenegraph.recalculateRowHeights();
|
|
36141
36141
|
else if (this.table.heightMode === "autoHeight")
|
|
36142
36142
|
for (let a = 0; a < s.length; a++) {
|
|
36143
|
-
const h = s[a], d = this.table.getRowHeight(h), u =
|
|
36143
|
+
const h = s[a], d = this.table.getRowHeight(h), u = gn(h, 0, this.table.colCount - 1, this.table);
|
|
36144
36144
|
(h >= this.proxy.rowStart && h <= this.proxy.rowEnd || h >= this.table.rowCount - this.table.bottomFrozenRowCount && h <= this.table.rowCount - 1) && this.table.scenegraph.updateRowHeight(h, u - d);
|
|
36145
36145
|
}
|
|
36146
36146
|
this.table.stateManager.checkFrozen(), this.isPivot || this.table.transpose ? this.table.options.frozenColCount ? this.component.setFrozenColumnShadow(this.table.frozenColCount - 1) : this.table.options.rightFrozenColCount && this.component.setRightFrozenColumnShadow(this.table.colCount - this.table.rightFrozenColCount) : (this.component.setFrozenColumnShadow(this.table.frozenColCount - 1), this.component.setRightFrozenColumnShadow(this.table.colCount - this.table.rightFrozenColCount)), this.component.updateScrollBar(), this.updateNextFrame();
|
|
@@ -39137,7 +39137,7 @@ class l9 {
|
|
|
39137
39137
|
icon: a,
|
|
39138
39138
|
event: r
|
|
39139
39139
|
}), !0;
|
|
39140
|
-
if (o instanceof
|
|
39140
|
+
if (o instanceof bo) {
|
|
39141
39141
|
const h = o.pickIcon(r.global);
|
|
39142
39142
|
if (h)
|
|
39143
39143
|
return this.table.fireListeners(et.ICON_CLICK, {
|
|
@@ -43615,7 +43615,7 @@ class af {
|
|
|
43615
43615
|
function a7(i) {
|
|
43616
43616
|
return i instanceof af;
|
|
43617
43617
|
}
|
|
43618
|
-
function
|
|
43618
|
+
function uo(i, t = ["data"]) {
|
|
43619
43619
|
const e = i;
|
|
43620
43620
|
let n;
|
|
43621
43621
|
if (!z(e) || typeof e != "object" || a7(e) || VH(e))
|
|
@@ -43627,7 +43627,7 @@ function ho(i, t = ["data"]) {
|
|
|
43627
43627
|
if (n)
|
|
43628
43628
|
for (; ++l < (s || e).length; ) {
|
|
43629
43629
|
const a = s ? s[l] : l, h = e[a];
|
|
43630
|
-
t != null && t.includes(a.toString()) ? n[a] = h : n[a] =
|
|
43630
|
+
t != null && t.includes(a.toString()) ? n[a] = h : n[a] = uo(h, t);
|
|
43631
43631
|
}
|
|
43632
43632
|
return n;
|
|
43633
43633
|
}
|
|
@@ -43639,7 +43639,7 @@ function NM(i) {
|
|
|
43639
43639
|
function di(i) {
|
|
43640
43640
|
return te(i) || i.angle && (i.angle = Un(i.angle)), i;
|
|
43641
43641
|
}
|
|
43642
|
-
function
|
|
43642
|
+
function co(i = {}) {
|
|
43643
43643
|
return te(i.style) || (i.style = di(i.style)), te(i.state) || Object.keys(i.state).forEach((t) => {
|
|
43644
43644
|
te(i.state[t]) || (i.state[t] = di(i.state[t]));
|
|
43645
43645
|
}), i;
|
|
@@ -43650,7 +43650,7 @@ function ts(i) {
|
|
|
43650
43650
|
}), i);
|
|
43651
43651
|
}
|
|
43652
43652
|
function h7(i) {
|
|
43653
|
-
return
|
|
43653
|
+
return co(i), co(i.startSymbol), co(i.endSymbol), i;
|
|
43654
43654
|
}
|
|
43655
43655
|
const d7 = {
|
|
43656
43656
|
left: {
|
|
@@ -43918,7 +43918,7 @@ function Zs(i, t, e, n) {
|
|
|
43918
43918
|
}
|
|
43919
43919
|
function v7(i, t, e) {
|
|
43920
43920
|
let n = e.getRawChartSpec(i, t);
|
|
43921
|
-
return n ? (e._table.isPivotChart() && (n =
|
|
43921
|
+
return n ? (e._table.isPivotChart() && (n = uo(n), n.sortDataByAxis = !0, it(n.series) && n.series.forEach((o) => {
|
|
43922
43922
|
o.sortDataByAxis = !0;
|
|
43923
43923
|
}), n.type !== "gauge" && n.type !== "rose" && n.type !== "radar" && (n.axes = e.getChartAxes(i, t)), n.padding = 0, n.dataZoom = []), n) : null;
|
|
43924
43924
|
}
|
|
@@ -45056,7 +45056,7 @@ class $M {
|
|
|
45056
45056
|
if (this.editingEditor.getValue, this.editingEditor.validateValue) {
|
|
45057
45057
|
this.isValidatingValue = !0;
|
|
45058
45058
|
const s = (n = (e = this.editingEditor).validateValue) === null || n === void 0 ? void 0 : n.call(e);
|
|
45059
|
-
return
|
|
45059
|
+
return _o(s) ? new Promise((l, a) => {
|
|
45060
45060
|
s.then((h) => {
|
|
45061
45061
|
h ? (this.doExit(), l(!0)) : (this.isValidatingValue = !1, l(!1));
|
|
45062
45062
|
}).catch((h) => {
|
|
@@ -45120,7 +45120,7 @@ function w7(i, t, e, n, o) {
|
|
|
45120
45120
|
if (o.heightMode === "adaptive" || o.autoFillHeight && o.getAllRowsHeight() <= o.tableNoFrameHeight)
|
|
45121
45121
|
o.internalProps._heightResizedRowMap.size === 0 && o.scenegraph.recalculateRowHeights();
|
|
45122
45122
|
else if (o.heightMode === "autoHeight" && !o.internalProps._heightResizedRowMap.has(t)) {
|
|
45123
|
-
const u = o.getRowHeight(t), c =
|
|
45123
|
+
const u = o.getRowHeight(t), c = gn(t, 0, o.colCount - 1, o);
|
|
45124
45124
|
o.scenegraph.updateRowHeight(t, c - u);
|
|
45125
45125
|
}
|
|
45126
45126
|
o.fireListeners(et.CHANGE_CELL_VALUE, {
|
|
@@ -45159,7 +45159,7 @@ function S7(i, t, e, n, o) {
|
|
|
45159
45159
|
w = !0;
|
|
45160
45160
|
else if (o.isHasEditorDefine(i + b, t + p)) {
|
|
45161
45161
|
const y = o.getEditor(i + b, t + p), C = d[p][b], _ = v[b], x = (s = (r = y == null ? void 0 : y.validateValue) === null || r === void 0 ? void 0 : r.call(y, _, C)) === null || s === void 0 || s;
|
|
45162
|
-
w = !!
|
|
45162
|
+
w = !!_o(x) || x;
|
|
45163
45163
|
}
|
|
45164
45164
|
if (w) {
|
|
45165
45165
|
const y = v[b], C = o.getRecordShowIndexByCell(i + b, t + p), { field: _ } = o.internalProps.layoutMap.getBody(i + b, t + p), x = h[p][b], R = d[p][b];
|
|
@@ -45207,7 +45207,7 @@ function S7(i, t, e, n, o) {
|
|
|
45207
45207
|
const p = [], v = [];
|
|
45208
45208
|
for (let m = t; m <= g.end.row; m++)
|
|
45209
45209
|
if (o.rowHeightsMap.get(m)) {
|
|
45210
|
-
const b = o.getRowHeight(m), w =
|
|
45210
|
+
const b = o.getRowHeight(m), w = gn(m, 0, o.colCount - 1, o);
|
|
45211
45211
|
p.push(m), v.push(w - b);
|
|
45212
45212
|
}
|
|
45213
45213
|
o.scenegraph.updateRowsHeight(p, v);
|
|
@@ -45540,7 +45540,7 @@ class GM extends sf {
|
|
|
45540
45540
|
var n, o, r, s;
|
|
45541
45541
|
se.mode === "node" ? (e = t, t = null) : t instanceof HTMLElement || (e = t, t = t.container ? t.container : null), super(t, e), this.showHeader = !0;
|
|
45542
45542
|
const l = this.internalProps;
|
|
45543
|
-
if (l.frozenColDragHeaderMode = e.frozenColDragHeaderMode, this.pagination = e.pagination, l.sortState = e.sortState, l.multipleSort = !!e.multipleSort, l.dataConfig = e.groupBy ? CS(e.groupBy) : {}, l.columns = e.columns ?
|
|
45543
|
+
if (l.frozenColDragHeaderMode = e.frozenColDragHeaderMode, this.pagination = e.pagination, l.sortState = e.sortState, l.multipleSort = !!e.multipleSort, l.dataConfig = e.groupBy ? CS(e.groupBy) : {}, l.columns = e.columns ? uo(e.columns, ["children"]) : e.header ? uo(e.header, ["children"]) : [], Od(this), l.enableTreeNodeMerge = (o = (n = e.enableTreeNodeMerge) !== null && n !== void 0 ? n : z(e.groupBy)) !== null && o !== void 0 && o, this.internalProps.headerHelper.setTableColumnsEditor(), this.showHeader = (r = e.showHeader) === null || r === void 0 || r, this.transpose = (s = e.transpose) !== null && s !== void 0 && s, se.mode !== "node" && (this.editorManager = new $M(this)), this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, e.dataSource ? vv(this, e.dataSource) : e.records ? this.setRecords(e.records, {
|
|
45544
45544
|
sortState: l.sortState
|
|
45545
45545
|
}) : this.setRecords([]), e.title) {
|
|
45546
45546
|
const a = Et.getComponent("title");
|
|
@@ -45586,7 +45586,7 @@ class GM extends sf {
|
|
|
45586
45586
|
col: this.stateManager.hover.cellPos.col,
|
|
45587
45587
|
row: this.stateManager.hover.cellPos.row
|
|
45588
45588
|
};
|
|
45589
|
-
this.internalProps.columns =
|
|
45589
|
+
this.internalProps.columns = uo(t, ["children"]), Od(this), this.options.columns = t, this.internalProps.headerHelper.setTableColumnsEditor(), this._hasAutoImageColumn = void 0, this.refreshHeader(), (n = (e = this.dataSource).updateColumns) === null || n === void 0 || n.call(e, this.internalProps.columns), this.records && F6(t) && this.dataSource.processRecords((r = (o = this.dataSource.dataSourceObj) === null || o === void 0 ? void 0 : o.records) !== null && r !== void 0 ? r : this.dataSource.dataSourceObj), this.internalProps.useOneRowHeightFillAll = !1, this.scenegraph.clearCells(), this.headerStyleCache = /* @__PURE__ */ new Map(), this.bodyStyleCache = /* @__PURE__ */ new Map(), this.bodyBottomStyleCache = /* @__PURE__ */ new Map(), this.scenegraph.createSceneGraph(), this.stateManager.updateHoverPos(s.col, s.row), this.renderAsync(), this.eventManager.updateEventBinder();
|
|
45590
45590
|
}
|
|
45591
45591
|
get columns() {
|
|
45592
45592
|
return this.internalProps.layoutMap.columnTree.getCopiedTree();
|
|
@@ -45734,7 +45734,7 @@ class GM extends sf {
|
|
|
45734
45734
|
updateOption(t) {
|
|
45735
45735
|
var e, n, o, r;
|
|
45736
45736
|
const s = this.internalProps;
|
|
45737
|
-
if (super.updateOption(t), s.frozenColDragHeaderMode = t.frozenColDragHeaderMode, this.pagination = t.pagination, s.sortState = t.sortState, s.dataConfig = t.groupBy ? CS(t.groupBy) : {}, this.showHeader = (e = t.showHeader) === null || e === void 0 || e, s.columns = t.columns ?
|
|
45737
|
+
if (super.updateOption(t), s.frozenColDragHeaderMode = t.frozenColDragHeaderMode, this.pagination = t.pagination, s.sortState = t.sortState, s.dataConfig = t.groupBy ? CS(t.groupBy) : {}, this.showHeader = (e = t.showHeader) === null || e === void 0 || e, s.columns = t.columns ? uo(t.columns, ["children"]) : t.header ? uo(t.header, ["children"]) : [], Od(this), s.enableTreeNodeMerge = (o = (n = t.enableTreeNodeMerge) !== null && n !== void 0 ? n : z(t.groupBy)) !== null && o !== void 0 && o, this.internalProps.headerHelper.setTableColumnsEditor(), this.transpose = (r = t.transpose) !== null && r !== void 0 && r, this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, s.releaseList && (s.releaseList.forEach((l) => {
|
|
45738
45738
|
var a;
|
|
45739
45739
|
return (a = l == null ? void 0 : l.release) === null || a === void 0 ? void 0 : a.call(l);
|
|
45740
45740
|
}), s.releaseList = null), t.dataSource ? vv(this, t.dataSource) : t.records ? this.setRecords(t.records, {
|
|
@@ -45877,7 +45877,7 @@ class GM extends sf {
|
|
|
45877
45877
|
const a = this.getRecordShowIndexByCell(t, e), h = this.dataSource.toggleHierarchyState(a, this.scenegraph.proxy.rowStart - this.columnHeaderLevelCount, Math.max(this.scenegraph.proxy.rowEnd - this.columnHeaderLevelCount, this.scenegraph.proxy.rowStart - this.columnHeaderLevelCount + this.scenegraph.proxy.rowLimit - 1)), d = this.internalProps.layoutMap.toggleHierarchyState(h);
|
|
45878
45878
|
this.refreshRowColCount();
|
|
45879
45879
|
for (let c = this.rowCount - this.bottomFrozenRowCount; c < this.rowCount; c++) {
|
|
45880
|
-
const g =
|
|
45880
|
+
const g = gn(c, 0, this.colCount - 1, this);
|
|
45881
45881
|
this._setRowHeight(c, g);
|
|
45882
45882
|
}
|
|
45883
45883
|
this.clearCellStyleCache(), this.internalProps.layoutMap.clearCellRangeMap(), this.internalProps.useOneRowHeightFillAll = !1;
|
|
@@ -46737,7 +46737,7 @@ const Y7 = {
|
|
|
46737
46737
|
};
|
|
46738
46738
|
function X7(i, t) {
|
|
46739
46739
|
const e = xt({}, Y7, i), { title: n = {}, item: o = {}, pager: r = {}, background: s = {}, type: l, id: a, visible: h, orient: d, position: u, data: c, filter: g, regionId: f, regionIndex: p, seriesIndex: v, seriesId: m, padding: b } = e, w = K7(e, ["title", "item", "pager", "background", "type", "id", "visible", "orient", "position", "data", "filter", "regionId", "regionIndex", "seriesIndex", "seriesId", "padding"]);
|
|
46740
|
-
return n.visible && (w.title = NM(n)), te(o.focusIconStyle) || di(o.focusIconStyle),
|
|
46740
|
+
return n.visible && (w.title = NM(n)), te(o.focusIconStyle) || di(o.focusIconStyle), co(o.shape), co(o.label), co(o.value), co(o.background), op(o.maxWidth) && (o.maxWidth = Number(o.maxWidth.substring(0, o.maxWidth.length - 1)) * t.width / 100), op(o.width) && (o.width = Number(o.width.substring(0, o.width.length - 1)) * t.width / 100), op(o.height) && (o.height = Number(o.height.substring(0, o.height.length - 1)) * t.width / 100), w.item = o, te(r.textStyle) || di(r.textStyle), co(r.handler), w.pager = r, s.visible && !te(s.style) && (xt(w, s.style), z(s.padding) && (w.padding = s.padding)), w;
|
|
46741
46741
|
}
|
|
46742
46742
|
class q7 {
|
|
46743
46743
|
constructor(t, e) {
|
|
@@ -46950,7 +46950,7 @@ const bg = {
|
|
|
46950
46950
|
};
|
|
46951
46951
|
function tj(i, t) {
|
|
46952
46952
|
const e = xt({}, (i.type === "color" ? J7 : Q7)[i.orient === "bottom" || i.orient === "top" ? "horizontal" : "vertical"], i), { title: n = {}, handler: o = {}, rail: r = {}, track: s = {}, startText: l, endText: a, handlerText: h, sizeBackground: d, background: u = {}, type: c, id: g, visible: f, orient: p, position: v, data: m, defaultSelected: b, field: w, filter: y, regionId: C, regionIndex: _, seriesIndex: x, seriesId: R, padding: S } = e, A = Z7(e, ["title", "handler", "rail", "track", "startText", "endText", "handlerText", "sizeBackground", "background", "type", "id", "visible", "orient", "position", "data", "defaultSelected", "field", "filter", "regionId", "regionIndex", "seriesIndex", "seriesId", "padding"]);
|
|
46953
|
-
return n.visible && (A.title = NM(n)), A.showHandler = o.visible !== !1, te(o.style) || (A.handlerStyle = di(o.style)), z(r.width) && (A.railWidth = r.width), z(r.height) && (A.railHeight = r.height), te(r.style) || (A.railStyle = di(r.style)), te(s.style) || (A.trackStyle = di(s.style)), A.startText =
|
|
46953
|
+
return n.visible && (A.title = NM(n)), A.showHandler = o.visible !== !1, te(o.style) || (A.handlerStyle = di(o.style)), z(r.width) && (A.railWidth = r.width), z(r.height) && (A.railHeight = r.height), te(r.style) || (A.railStyle = di(r.style)), te(s.style) || (A.trackStyle = di(s.style)), A.startText = co(l), A.endText = co(a), A.handlerText = co(h), te(d) || (A.sizeBackground = di(d)), u.visible && !te(u.style) && (xt(A, u.style), z(u.padding) && (A.padding = u.padding)), A;
|
|
46954
46954
|
}
|
|
46955
46955
|
class ej {
|
|
46956
46956
|
constructor(t, e) {
|
|
@@ -47548,11 +47548,11 @@ class cj {
|
|
|
47548
47548
|
if (o)
|
|
47549
47549
|
w = o.x, b = o.y + x, this._triangleElement.style.left = "50%", this._triangleElement.style.marginLeft = "-5px", this._triangleElement.style.top = "-5px";
|
|
47550
47550
|
else if (r) {
|
|
47551
|
-
let R = (a = r.placement) !== null && a !== void 0 ? a :
|
|
47551
|
+
let R = (a = r.placement) !== null && a !== void 0 ? a : un.bottom;
|
|
47552
47552
|
const S = r.rect.left + r.rect.width / 2, A = r.rect.top + r.rect.height / 2, T = r.rect.top, M = r.rect.bottom, P = r.rect.left, L = r.rect.right;
|
|
47553
47553
|
let B = 0;
|
|
47554
47554
|
const H = () => {
|
|
47555
|
-
B++, B >= 4 || (this.removeStyleFromTriangle(), R ===
|
|
47555
|
+
B++, B >= 4 || (this.removeStyleFromTriangle(), R === un.top ? (w = S - C / 2, b = T - _ - x, this._triangleElement.style.left = "50%", this._triangleElement.style.marginLeft = "-5px", this._triangleElement.style.bottom = "-5px", s && b < 0 && (R = un.right, H())) : R === un.bottom ? (w = S - C / 2, b = M + x, this._triangleElement.style.left = "50%", this._triangleElement.style.marginLeft = "-5px", this._triangleElement.style.top = "-5px", s && b + _ > f && (R = un.left, H())) : R === un.left ? (b = A - _ / 2, w = P - C - x, this._triangleElement.style.top = "50%", this._triangleElement.style.marginTop = "-5px", this._triangleElement.style.right = "-5px", s && w < 0 && (R = un.top, H())) : R === un.right && (b = A - _ / 2, w = L + x, this._triangleElement.style.top = "50%", this._triangleElement.style.marginTop = "-5px", this._triangleElement.style.left = "-5px", s && w + C > g && (R = un.bottom, H())));
|
|
47556
47556
|
};
|
|
47557
47557
|
H();
|
|
47558
47558
|
}
|
|
@@ -47667,7 +47667,7 @@ class pj {
|
|
|
47667
47667
|
s = {
|
|
47668
47668
|
content: a,
|
|
47669
47669
|
referencePosition: {
|
|
47670
|
-
placement:
|
|
47670
|
+
placement: un.bottom,
|
|
47671
47671
|
rect: h
|
|
47672
47672
|
},
|
|
47673
47673
|
disappearDelay: (n = l.internalProps.tooltip.overflowTextTooltipDisappearDelay) !== null && n !== void 0 ? n : 0,
|
|
@@ -47682,7 +47682,7 @@ class pj {
|
|
|
47682
47682
|
content: a ? `${a}
|
|
47683
47683
|
${h}` : h,
|
|
47684
47684
|
referencePosition: {
|
|
47685
|
-
placement:
|
|
47685
|
+
placement: un.bottom,
|
|
47686
47686
|
rect: d
|
|
47687
47687
|
},
|
|
47688
47688
|
disappearDelay: (r = l.internalProps.tooltip.overflowTextTooltipDisappearDelay) !== null && r !== void 0 ? r : 0,
|
|
@@ -47982,7 +47982,7 @@ function xj(i, t, e, n, o, r, s, l, a) {
|
|
|
47982
47982
|
const g = a._getCellStyle(i, t), f = _t("size", g, i, t, a), p = _t("spaceBetweenTextAndIcon", g, i, t, a), v = _t("defaultFill", g, i, t, a), m = _t("defaultStroke", g, i, t, a), b = _t("disableFill", g, i, t, a), w = _t("checkedFill", g, i, t, a), y = _t("checkedStroke", g, i, t, a), C = _t("disableCheckedFill", g, i, t, a), _ = _t("disableCheckedStroke", g, i, t, a), x = _t("checkIconImage", g, i, t, a), R = _t("indeterminateIconImage", g, i, t, a), S = a.getCellValue(i, t), A = a.getCellOriginValue(i, t);
|
|
47983
47983
|
let T, M, P = (h = S) !== null && h !== void 0 ? h : "";
|
|
47984
47984
|
Ce(S) ? (T = S.checked, M = S.disable, P = (d = S.text) !== null && d !== void 0 ? d : "") : typeof S == "boolean" && (T = S, P = ""), T = a.stateManager.syncCheckedState(i, t, l.field, T);
|
|
47985
|
-
const L =
|
|
47985
|
+
const L = po(i, t, a), B = a._getCellStyle(i, t), H = (u = B.autoWrapText) !== null && u !== void 0 ? u : a.internalProps.autoWrapText, { lineClamp: F } = B, { checked: I, disable: E } = l;
|
|
47986
47986
|
if (T == null || typeof T == "function") {
|
|
47987
47987
|
const Y = hi(I, {
|
|
47988
47988
|
col: i,
|
|
@@ -48063,7 +48063,7 @@ function Aj(i, t, e, n, o, r, s, l, a, h) {
|
|
|
48063
48063
|
let g = _t("size", c, i, t, h), f = _t("innerRadius", c, i, t, h), p = _t("outerRadius", c, i, t, h);
|
|
48064
48064
|
const v = _t("spaceBetweenTextAndIcon", c, i, t, h), m = _t("spaceBetweenRadio", c, i, t, h), b = _t("defaultFill", c, i, t, h), w = _t("defaultStroke", c, i, t, h), y = _t("disableFill", c, i, t, h), C = _t("checkedFill", c, i, t, h), _ = _t("checkedStroke", c, i, t, h), x = _t("disableCheckedFill", c, i, t, h), R = _t("disableCheckedStroke", c, i, t, h);
|
|
48065
48065
|
dt(p) ? g = 2 * p : p = Math.round(g / 2), (!dt(f) || f < 0) && (f = Math.round(p / 7 * 3));
|
|
48066
|
-
const S = h.getCellValue(i, t), A = h.getCellOriginValue(i, t), T =
|
|
48066
|
+
const S = h.getCellValue(i, t), A = h.getCellOriginValue(i, t), T = po(i, t, h), M = h._getCellStyle(i, t), P = (d = M.autoWrapText) !== null && d !== void 0 ? d : h.internalProps.autoWrapText, { lineClamp: L } = M, B = e === "auto", H = h.heightMode === "autoHeight", F = {
|
|
48067
48067
|
maxLineWidth: B ? 1 / 0 : n - (r[1] + r[3] + T) - g - v,
|
|
48068
48068
|
textBaseline: "top",
|
|
48069
48069
|
autoWrapText: P,
|
|
@@ -51484,7 +51484,7 @@ let YM = class extends sf {
|
|
|
51484
51484
|
if (se.mode === "node" ? (e = t, t = null) : t instanceof HTMLElement || (e = t, t = t.container ? t.container : null), super(t, e), this.layoutNodeId = {
|
|
51485
51485
|
seqId: 0
|
|
51486
51486
|
}, e) {
|
|
51487
|
-
e.layout && Object.assign(e, e.layout), this.internalProps.columns = $e(e.columns), this.internalProps.rows = $e(e.rows), this.internalProps.indicators =
|
|
51487
|
+
e.layout && Object.assign(e, e.layout), this.internalProps.columns = $e(e.columns), this.internalProps.rows = $e(e.rows), this.internalProps.indicators = uo(e.indicators), (n = e.indicators) === null || n === void 0 || n.forEach((y, C) => {
|
|
51488
51488
|
typeof y == "object" && (y != null && y.editor) && (this.internalProps.indicators[C].editor = y.editor);
|
|
51489
51489
|
}), this.internalProps.columnTree = !e.indicatorsAsCol || !((o = e.columns) === null || o === void 0) && o.length || e.columnTree ? $e(e.columnTree) : [], this.internalProps.rowTree = e.indicatorsAsCol || !((r = e.rows) === null || r === void 0) && r.length || e.rowTree ? $e(e.rowTree) : [], this.internalProps.records = e.records, this.pagination = e.pagination, this.internalProps.columnResizeType = (s = e.columnResizeType) !== null && s !== void 0 ? s : "column", this.internalProps.rowResizeType = (l = e.rowResizeType) !== null && l !== void 0 ? l : "row", this.internalProps.dataConfig = $e(e.dataConfig), this.internalProps.columnWidthConfig = e.columnWidthConfig;
|
|
51490
51490
|
const w = this.internalProps.records;
|
|
@@ -51552,7 +51552,7 @@ let YM = class extends sf {
|
|
|
51552
51552
|
const y = this.internalProps;
|
|
51553
51553
|
if (super.updateOption(t), this.layoutNodeId = {
|
|
51554
51554
|
seqId: 0
|
|
51555
|
-
}, this.internalProps.columns = $e(t.columns), this.internalProps.rows = $e(t.rows), this.internalProps.indicators = !((e = t.indicators) === null || e === void 0) && e.length ?
|
|
51555
|
+
}, this.internalProps.columns = $e(t.columns), this.internalProps.rows = $e(t.rows), this.internalProps.indicators = !((e = t.indicators) === null || e === void 0) && e.length ? uo(t.indicators) : [], (n = t.indicators) === null || n === void 0 || n.forEach((_, x) => {
|
|
51556
51556
|
typeof _ == "object" && (_ != null && _.editor) && (this.internalProps.indicators[x].editor = _.editor);
|
|
51557
51557
|
}), this.internalProps.columnTree = !t.indicatorsAsCol || !((o = t.columns) === null || o === void 0) && o.length || t.columnTree ? $e(t.columnTree) : [], this.internalProps.rowTree = t.indicatorsAsCol || !((r = t.rows) === null || r === void 0) && r.length || t.rowTree ? $e(t.rowTree) : [], t.records && (this.internalProps.records = t.records), this.stateManager.initCheckedState(this.internalProps.records), this.stateManager.updateDrillState(void 0, void 0, !1, !1, -1, -1), this.pagination = t.pagination, y.columnResizeType = (s = t.columnResizeType) !== null && s !== void 0 ? s : "column", y.rowResizeType = (l = t.rowResizeType) !== null && l !== void 0 ? l : "row", y.dataConfig = $e(t.dataConfig), this.internalProps.columnWidthConfig = t.columnWidthConfig, (t == null ? void 0 : t.rowHierarchyType) === "tree" && this.internalProps.layoutMap.rowHierarchyType === "tree" && this.internalProps.layoutMap.rowExpandLevel === (t == null ? void 0 : t.rowExpandLevel)) {
|
|
51558
51558
|
const _ = this.internalProps.layoutMap.rowDimensionTree.tree.children;
|
|
@@ -52160,7 +52160,7 @@ let YM = class extends sf {
|
|
|
52160
52160
|
if (this.heightMode === "adaptive" || this.autoFillHeight && this.getAllRowsHeight() <= this.tableNoFrameHeight)
|
|
52161
52161
|
this.internalProps._heightResizedRowMap.size === 0 && this.scenegraph.recalculateRowHeights();
|
|
52162
52162
|
else if (this.heightMode === "autoHeight" && !this.internalProps._heightResizedRowMap.has(e)) {
|
|
52163
|
-
const h = this.getRowHeight(e), d =
|
|
52163
|
+
const h = this.getRowHeight(e), d = gn(e, 0, this.colCount - 1, this);
|
|
52164
52164
|
this.scenegraph.updateRowHeight(e, d - h);
|
|
52165
52165
|
}
|
|
52166
52166
|
this.fireListeners(et.CHANGE_CELL_VALUE, {
|
|
@@ -52222,7 +52222,7 @@ let YM = class extends sf {
|
|
|
52222
52222
|
const u = [], c = [];
|
|
52223
52223
|
for (let g = e; g <= d.end.row; g++)
|
|
52224
52224
|
if (this.rowHeightsMap.get(g)) {
|
|
52225
|
-
const f = this.getRowHeight(g), p =
|
|
52225
|
+
const f = this.getRowHeight(g), p = gn(g, 0, this.colCount - 1, this);
|
|
52226
52226
|
u.push(g), c.push(p - f);
|
|
52227
52227
|
}
|
|
52228
52228
|
this.scenegraph.updateRowsHeight(u, c);
|
|
@@ -52326,7 +52326,7 @@ let Nj = class extends sf {
|
|
|
52326
52326
|
let C, _;
|
|
52327
52327
|
se.mode === "node" ? (e = t, t = null) : t instanceof HTMLElement || (e = t, t = t.container ? t.container : null), super(t, e), this.layoutNodeId = {
|
|
52328
52328
|
seqId: 0
|
|
52329
|
-
}, this._selectedDataItemsInChart = [], this._selectedDimensionInChart = [], this._chartEventMap = {}, e.layout && Object.assign(e, e.layout), this.internalProps.columns = $e(e.columns), this.internalProps.rows = $e(e.rows), this.internalProps.indicators =
|
|
52329
|
+
}, this._selectedDataItemsInChart = [], this._selectedDimensionInChart = [], this._chartEventMap = {}, e.layout && Object.assign(e, e.layout), this.internalProps.columns = $e(e.columns), this.internalProps.rows = $e(e.rows), this.internalProps.indicators = uo(e.indicators), this.internalProps.columnTree = !e.indicatorsAsCol || !((n = e.columns) === null || n === void 0) && n.length || e.columnTree ? $e(e.columnTree) : [], this.internalProps.rowTree = e.indicatorsAsCol || !((o = e.rows) === null || o === void 0) && o.length || e.rowTree ? $e(e.rowTree) : [], this.internalProps.records = e.records, this.setCustomStateNameToSpec(), this.internalProps.columnResizeType = (r = e.columnResizeType) !== null && r !== void 0 ? r : "column", this.internalProps.rowResizeType = (s = e.rowResizeType) !== null && s !== void 0 ? s : "row", this.internalProps.dataConfig = {
|
|
52330
52330
|
isPivotChart: !0
|
|
52331
52331
|
}, this._axes = it(e.axes) ? e.axes : [], e.columnTree && (e.indicatorsAsCol !== !1 && (this.internalProps.columnTree = Ui(this.internalProps.columnTree, e.indicators)), C = new ze((l = this.internalProps.columnTree) !== null && l !== void 0 ? l : [], this.layoutNodeId)), e.rowTree && (e.indicatorsAsCol === !1 && (this.internalProps.rowTree = Ui(this.internalProps.rowTree, e.indicators)), _ = new ze((a = this.internalProps.rowTree) !== null && a !== void 0 ? a : [], this.layoutNodeId));
|
|
52332
52332
|
const x = !((h = _ == null ? void 0 : _.dimensionKeys) === null || h === void 0) && h.count ? _.dimensionKeys.valueArr() : (u = (d = e.rows) === null || d === void 0 ? void 0 : d.reduce((A, T) => (typeof T == "string" ? A.push(T) : A.push(T.dimensionKey), A), [])) !== null && u !== void 0 ? u : [], R = !((c = C == null ? void 0 : C.dimensionKeys) === null || c === void 0) && c.count ? C.dimensionKeys.valueArr() : (f = (g = e.columns) === null || g === void 0 ? void 0 : g.reduce((A, T) => (typeof T == "string" ? A.push(T) : A.push(T.dimensionKey), A), [])) !== null && f !== void 0 ? f : [], S = (v = (p = e.indicators) === null || p === void 0 ? void 0 : p.reduce((A, T) => (typeof T == "string" ? A.push(T) : A.push(T.indicatorKey), A), [])) !== null && v !== void 0 ? v : [];
|
|
@@ -52394,7 +52394,7 @@ let Nj = class extends sf {
|
|
|
52394
52394
|
let x, R;
|
|
52395
52395
|
super.updateOption(t), this.layoutNodeId = {
|
|
52396
52396
|
seqId: 0
|
|
52397
|
-
}, this.internalProps.columns = $e(t.columns), this.internalProps.rows = $e(t.rows), this.internalProps.indicators = !((e = t.indicators) === null || e === void 0) && e.length ?
|
|
52397
|
+
}, this.internalProps.columns = $e(t.columns), this.internalProps.rows = $e(t.rows), this.internalProps.indicators = !((e = t.indicators) === null || e === void 0) && e.length ? uo(t.indicators) : [], this.internalProps.columnTree = !t.indicatorsAsCol || !((n = t.columns) === null || n === void 0) && n.length || t.columnTree ? $e(t.columnTree) : [], this.internalProps.rowTree = t.indicatorsAsCol || !((o = t.rows) === null || o === void 0) && o.length || t.rowTree ? $e(t.rowTree) : [], t.records && (this.internalProps.records = t.records), this.setCustomStateNameToSpec(), this._selectedDataItemsInChart = [], _.columnResizeType = (r = t.columnResizeType) !== null && r !== void 0 ? r : "column", _.rowResizeType = (s = t.rowResizeType) !== null && s !== void 0 ? s : "row", _.dataConfig = {
|
|
52398
52398
|
isPivotChart: !0
|
|
52399
52399
|
}, this._axes = it(t.axes) ? t.axes : [], t.columnTree && (t.indicatorsAsCol !== !1 && (this.internalProps.columnTree = Ui(this.internalProps.columnTree, t.indicators)), x = new ze((l = this.internalProps.columnTree) !== null && l !== void 0 ? l : [], this.layoutNodeId)), t.rowTree && (t.indicatorsAsCol === !1 && (this.internalProps.rowTree = Ui(this.internalProps.rowTree, t.indicators)), R = new ze((a = this.internalProps.rowTree) !== null && a !== void 0 ? a : [], this.layoutNodeId));
|
|
52400
52400
|
const S = !((h = R == null ? void 0 : R.dimensionKeys) === null || h === void 0) && h.count ? R.dimensionKeys.valueArr() : (u = (d = t.rows) === null || d === void 0 ? void 0 : d.reduce((M, P) => (typeof P == "string" ? M.push(P) : M.push(P.dimensionKey), M), [])) !== null && u !== void 0 ? u : [], A = !((c = x == null ? void 0 : x.dimensionKeys) === null || c === void 0) && c.count ? x.dimensionKeys.valueArr() : (f = (g = t.columns) === null || g === void 0 ? void 0 : g.reduce((M, P) => (typeof P == "string" ? M.push(P) : M.push(P.dimensionKey), M), [])) !== null && f !== void 0 ? f : [], T = (v = (p = t.indicators) === null || p === void 0 ? void 0 : p.reduce((M, P) => (typeof P == "string" ? M.push(P) : M.push(P.indicatorKey), M), [])) !== null && v !== void 0 ? v : [];
|
|
@@ -53876,9 +53876,9 @@ function EV(i, t, e, n) {
|
|
|
53876
53876
|
return n && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
|
|
53877
53877
|
}
|
|
53878
53878
|
function ES(i) {
|
|
53879
|
-
return
|
|
53879
|
+
return yn(i) / 255;
|
|
53880
53880
|
}
|
|
53881
|
-
function
|
|
53881
|
+
function yn(i) {
|
|
53882
53882
|
return parseInt(i, 16);
|
|
53883
53883
|
}
|
|
53884
53884
|
var LS = {
|
|
@@ -54065,26 +54065,26 @@ function IV(i) {
|
|
|
54065
54065
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
54066
54066
|
var e = ro.rgb.exec(i);
|
|
54067
54067
|
return e ? { r: e[1], g: e[2], b: e[3] } : (e = ro.rgba.exec(i), e ? { r: e[1], g: e[2], b: e[3], a: e[4] } : (e = ro.hsl.exec(i), e ? { h: e[1], s: e[2], l: e[3] } : (e = ro.hsla.exec(i), e ? { h: e[1], s: e[2], l: e[3], a: e[4] } : (e = ro.hsv.exec(i), e ? { h: e[1], s: e[2], v: e[3] } : (e = ro.hsva.exec(i), e ? { h: e[1], s: e[2], v: e[3], a: e[4] } : (e = ro.hex8.exec(i), e ? {
|
|
54068
|
-
r:
|
|
54069
|
-
g:
|
|
54070
|
-
b:
|
|
54068
|
+
r: yn(e[1]),
|
|
54069
|
+
g: yn(e[2]),
|
|
54070
|
+
b: yn(e[3]),
|
|
54071
54071
|
a: ES(e[4]),
|
|
54072
54072
|
format: t ? "name" : "hex8"
|
|
54073
54073
|
} : (e = ro.hex6.exec(i), e ? {
|
|
54074
|
-
r:
|
|
54075
|
-
g:
|
|
54076
|
-
b:
|
|
54074
|
+
r: yn(e[1]),
|
|
54075
|
+
g: yn(e[2]),
|
|
54076
|
+
b: yn(e[3]),
|
|
54077
54077
|
format: t ? "name" : "hex"
|
|
54078
54078
|
} : (e = ro.hex4.exec(i), e ? {
|
|
54079
|
-
r:
|
|
54080
|
-
g:
|
|
54081
|
-
b:
|
|
54079
|
+
r: yn(e[1] + e[1]),
|
|
54080
|
+
g: yn(e[2] + e[2]),
|
|
54081
|
+
b: yn(e[3] + e[3]),
|
|
54082
54082
|
a: ES(e[4] + e[4]),
|
|
54083
54083
|
format: t ? "name" : "hex8"
|
|
54084
54084
|
} : (e = ro.hex3.exec(i), e ? {
|
|
54085
|
-
r:
|
|
54086
|
-
g:
|
|
54087
|
-
b:
|
|
54085
|
+
r: yn(e[1] + e[1]),
|
|
54086
|
+
g: yn(e[2] + e[2]),
|
|
54087
|
+
b: yn(e[3] + e[3]),
|
|
54088
54088
|
format: t ? "name" : "hex"
|
|
54089
54089
|
} : !1)))))))));
|
|
54090
54090
|
}
|
|
@@ -54309,7 +54309,7 @@ var KV = `
|
|
|
54309
54309
|
}
|
|
54310
54310
|
`, jS = !1, YV = function() {
|
|
54311
54311
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : KV;
|
|
54312
|
-
|
|
54312
|
+
cn(function() {
|
|
54313
54313
|
jS || (typeof window < "u" && window.document && window.document.documentElement && VV(t, {
|
|
54314
54314
|
prepend: !0
|
|
54315
54315
|
}), jS = !0);
|
|
@@ -55365,7 +55365,7 @@ function FG(i, t, e, n, o, r) {
|
|
|
55365
55365
|
], 64);
|
|
55366
55366
|
}
|
|
55367
55367
|
const IG = /* @__PURE__ */ Xi(BG, [["render", FG], ["__scopeId", "data-v-20645a9e"]]);
|
|
55368
|
-
var
|
|
55368
|
+
var pn = "top", to = "bottom", eo = "right", vn = "left", yb = "auto", id = [pn, to, eo, vn], zl = "start", Lh = "end", kG = "clippingParents", sB = "viewport", xa = "popper", OG = "reference", ax = /* @__PURE__ */ id.reduce(function(i, t) {
|
|
55369
55369
|
return i.concat([t + "-" + zl, t + "-" + Lh]);
|
|
55370
55370
|
}, []), lB = /* @__PURE__ */ [].concat(id, [yb]).reduce(function(i, t) {
|
|
55371
55371
|
return i.concat([t, t + "-" + zl, t + "-" + Lh]);
|
|
@@ -55571,9 +55571,9 @@ var tU = function(t, e) {
|
|
|
55571
55571
|
})) : t, uB(typeof t != "number" ? t : cB(t, id));
|
|
55572
55572
|
};
|
|
55573
55573
|
function eU(i) {
|
|
55574
|
-
var t, e = i.state, n = i.name, o = i.options, r = e.elements.arrow, s = e.modifiersData.popperOffsets, l = Oo(e.placement), a = Sb(l), h = [
|
|
55574
|
+
var t, e = i.state, n = i.name, o = i.options, r = e.elements.arrow, s = e.modifiersData.popperOffsets, l = Oo(e.placement), a = Sb(l), h = [vn, eo].indexOf(l) >= 0, d = h ? "height" : "width";
|
|
55575
55575
|
if (!(!r || !s)) {
|
|
55576
|
-
var u = tU(o.padding, e), c = wb(r), g = a === "y" ?
|
|
55576
|
+
var u = tU(o.padding, e), c = wb(r), g = a === "y" ? pn : vn, f = a === "y" ? to : eo, p = e.rects.reference[d] + e.rects.reference[a] - s[a] - e.rects.popper[d], v = s[a] - e.rects.reference[a], m = nd(r), b = m ? a === "y" ? m.clientHeight || 0 : m.clientWidth || 0 : 0, w = p / 2 - v / 2, y = u[g], C = b - c[d] - u[f], _ = b / 2 - c[d] / 2 + w, x = th(y, _, C), R = a;
|
|
55577
55577
|
e.modifiersData[n] = (t = {}, t[R] = x, t.centerOffset = x - _, t);
|
|
55578
55578
|
}
|
|
55579
55579
|
}
|
|
@@ -55615,10 +55615,10 @@ function dx(i) {
|
|
|
55615
55615
|
y: p
|
|
55616
55616
|
};
|
|
55617
55617
|
g = v.x, p = v.y;
|
|
55618
|
-
var m = s.hasOwnProperty("x"), b = s.hasOwnProperty("y"), w =
|
|
55618
|
+
var m = s.hasOwnProperty("x"), b = s.hasOwnProperty("y"), w = vn, y = pn, C = window;
|
|
55619
55619
|
if (h) {
|
|
55620
55620
|
var _ = nd(e), x = "clientHeight", R = "clientWidth";
|
|
55621
|
-
if (_ === En(e) && (_ = qr(e), gr(_).position !== "static" && l === "absolute" && (x = "scrollHeight", R = "scrollWidth")), _ = _, o ===
|
|
55621
|
+
if (_ === En(e) && (_ = qr(e), gr(_).position !== "static" && l === "absolute" && (x = "scrollHeight", R = "scrollWidth")), _ = _, o === pn || (o === vn || o === eo) && r === Lh) {
|
|
55622
55622
|
y = to;
|
|
55623
55623
|
var S = u && _ === C && C.visualViewport ? C.visualViewport.height : (
|
|
55624
55624
|
// $FlowFixMe[prop-missing]
|
|
@@ -55626,7 +55626,7 @@ function dx(i) {
|
|
|
55626
55626
|
);
|
|
55627
55627
|
p -= S - n.height, p *= a ? 1 : -1;
|
|
55628
55628
|
}
|
|
55629
|
-
if (o ===
|
|
55629
|
+
if (o === vn || (o === pn || o === to) && r === Lh) {
|
|
55630
55630
|
w = eo;
|
|
55631
55631
|
var A = u && _ === C && C.visualViewport ? C.visualViewport.width : (
|
|
55632
55632
|
// $FlowFixMe[prop-missing]
|
|
@@ -55802,7 +55802,7 @@ function vU(i, t, e, n) {
|
|
|
55802
55802
|
function fB(i) {
|
|
55803
55803
|
var t = i.reference, e = i.element, n = i.placement, o = n ? Oo(n) : null, r = n ? jl(n) : null, s = t.x + t.width / 2 - e.width / 2, l = t.y + t.height / 2 - e.height / 2, a;
|
|
55804
55804
|
switch (o) {
|
|
55805
|
-
case
|
|
55805
|
+
case pn:
|
|
55806
55806
|
a = {
|
|
55807
55807
|
x: s,
|
|
55808
55808
|
y: t.y - e.height
|
|
@@ -55820,7 +55820,7 @@ function fB(i) {
|
|
|
55820
55820
|
y: l
|
|
55821
55821
|
};
|
|
55822
55822
|
break;
|
|
55823
|
-
case
|
|
55823
|
+
case vn:
|
|
55824
55824
|
a = {
|
|
55825
55825
|
x: t.x - e.width,
|
|
55826
55826
|
y: l
|
|
@@ -55862,7 +55862,7 @@ function Fh(i, t) {
|
|
|
55862
55862
|
if (c === xa && T) {
|
|
55863
55863
|
var M = T[o];
|
|
55864
55864
|
Object.keys(A).forEach(function(P) {
|
|
55865
|
-
var L = [eo, to].indexOf(P) >= 0 ? 1 : -1, B = [
|
|
55865
|
+
var L = [eo, to].indexOf(P) >= 0 ? 1 : -1, B = [pn, to].indexOf(P) >= 0 ? "y" : "x";
|
|
55866
55866
|
A[P] += M[B] * L;
|
|
55867
55867
|
});
|
|
55868
55868
|
}
|
|
@@ -55907,13 +55907,13 @@ function CU(i) {
|
|
|
55907
55907
|
allowedAutoPlacements: p
|
|
55908
55908
|
}) : $);
|
|
55909
55909
|
}, []), C = t.rects.reference, _ = t.rects.popper, x = /* @__PURE__ */ new Map(), R = !0, S = y[0], A = 0; A < y.length; A++) {
|
|
55910
|
-
var T = y[A], M = Oo(T), P = jl(T) === zl, L = [
|
|
55910
|
+
var T = y[A], M = Oo(T), P = jl(T) === zl, L = [pn, to].indexOf(M) >= 0, B = L ? "width" : "height", H = Fh(t, {
|
|
55911
55911
|
placement: T,
|
|
55912
55912
|
boundary: d,
|
|
55913
55913
|
rootBoundary: u,
|
|
55914
55914
|
altBoundary: c,
|
|
55915
55915
|
padding: h
|
|
55916
|
-
}), F = L ? P ? eo :
|
|
55916
|
+
}), F = L ? P ? eo : vn : P ? to : pn;
|
|
55917
55917
|
C[B] > _[B] && (F = cu(F));
|
|
55918
55918
|
var I = cu(F), E = [];
|
|
55919
55919
|
if (r && E.push(H[M] <= 0), l && E.push(H[F] <= 0, H[I] <= 0), E.every(function(V) {
|
|
@@ -55965,7 +55965,7 @@ function gx(i, t, e) {
|
|
|
55965
55965
|
};
|
|
55966
55966
|
}
|
|
55967
55967
|
function fx(i) {
|
|
55968
|
-
return [
|
|
55968
|
+
return [pn, eo, to, vn].some(function(t) {
|
|
55969
55969
|
return i[t] >= 0;
|
|
55970
55970
|
});
|
|
55971
55971
|
}
|
|
@@ -55993,10 +55993,10 @@ const wU = {
|
|
|
55993
55993
|
fn: _U
|
|
55994
55994
|
};
|
|
55995
55995
|
function SU(i, t, e) {
|
|
55996
|
-
var n = Oo(i), o = [
|
|
55996
|
+
var n = Oo(i), o = [vn, pn].indexOf(n) >= 0 ? -1 : 1, r = typeof e == "function" ? e(Object.assign({}, t, {
|
|
55997
55997
|
placement: i
|
|
55998
55998
|
})) : e, s = r[0], l = r[1];
|
|
55999
|
-
return s = s || 0, l = (l || 0) * o, [
|
|
55999
|
+
return s = s || 0, l = (l || 0) * o, [vn, eo].indexOf(n) >= 0 ? {
|
|
56000
56000
|
x: l,
|
|
56001
56001
|
y: s
|
|
56002
56002
|
} : {
|
|
@@ -56056,14 +56056,14 @@ function BU(i) {
|
|
|
56056
56056
|
};
|
|
56057
56057
|
if (_) {
|
|
56058
56058
|
if (r) {
|
|
56059
|
-
var P, L = y === "y" ?
|
|
56059
|
+
var P, L = y === "y" ? pn : vn, B = y === "y" ? to : eo, H = y === "y" ? "height" : "width", F = _[y], I = F + v[L], E = F - v[B], k = g ? -R[H] / 2 : 0, O = b === zl ? x[H] : R[H], N = b === zl ? -R[H] : -x[H], W = t.elements.arrow, V = g && W ? wb(W) : {
|
|
56060
56060
|
width: 0,
|
|
56061
56061
|
height: 0
|
|
56062
56062
|
}, $ = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : dB(), Y = $[L], K = $[B], G = th(0, x[H], V[H]), J = w ? x[H] / 2 - k - G - Y - A.mainAxis : O - G - Y - A.mainAxis, gt = w ? -x[H] / 2 + k + G + K + A.mainAxis : N + G + K + A.mainAxis, Ct = t.elements.arrow && nd(t.elements.arrow), ft = Ct ? y === "y" ? Ct.clientTop || 0 : Ct.clientLeft || 0 : 0, U = (P = T == null ? void 0 : T[y]) != null ? P : 0, X = F + J - U - ft, tt = F + gt - U, rt = th(g ? Cg(I, X) : I, F, g ? Ts(E, tt) : E);
|
|
56063
56063
|
_[y] = rt, M[y] = rt - F;
|
|
56064
56064
|
}
|
|
56065
56065
|
if (l) {
|
|
56066
|
-
var mt, St = y === "x" ?
|
|
56066
|
+
var mt, St = y === "x" ? pn : vn, At = y === "x" ? to : eo, ut = _[C], yt = C === "y" ? "height" : "width", nt = ut + v[St], It = ut - v[At], Ft = [pn, vn].indexOf(m) !== -1, Z = (mt = T == null ? void 0 : T[C]) != null ? mt : 0, kt = Ft ? nt : ut - x[yt] - R[yt] - Z + A.altAxis, _e = Ft ? ut + x[yt] + R[yt] - Z - A.altAxis : It, he = g && Ft ? QG(kt, ut, _e) : th(g ? kt : nt, ut, g ? _e : It);
|
|
56067
56067
|
_[C] = he, M[C] = he - ut;
|
|
56068
56068
|
}
|
|
56069
56069
|
t.modifiersData[n] = M;
|
|
@@ -56792,7 +56792,7 @@ var es = null, CB = function(i, t, e) {
|
|
|
56792
56792
|
if (c && g && (p !== c || v !== p)) {
|
|
56793
56793
|
(d = es) === null || d === void 0 || d.destroy();
|
|
56794
56794
|
var m = c.$el || c, b = g.$el || g;
|
|
56795
|
-
|
|
56795
|
+
cn(function() {
|
|
56796
56796
|
es = NU(m, b, l);
|
|
56797
56797
|
});
|
|
56798
56798
|
}
|
|
@@ -57068,7 +57068,7 @@ function Px(i, t) {
|
|
|
57068
57068
|
}
|
|
57069
57069
|
return e;
|
|
57070
57070
|
}
|
|
57071
|
-
function
|
|
57071
|
+
function Mo(i) {
|
|
57072
57072
|
for (var t = 1; t < arguments.length; t++) {
|
|
57073
57073
|
var e = arguments[t] != null ? arguments[t] : {};
|
|
57074
57074
|
t % 2 ? Px(Object(e), !0).forEach(function(n) {
|
|
@@ -57093,7 +57093,7 @@ var Su = Ze({ name: "Picker", components: { Colors: wu, Saturation: fu, Hue: pu,
|
|
|
57093
57093
|
return {};
|
|
57094
57094
|
} }, formatOptions: { type: [Boolean, Array] } }, emits: ["change", "formatChange"], setup: function(i, t) {
|
|
57095
57095
|
var e = t.emit, n = Qt(function() {
|
|
57096
|
-
return
|
|
57096
|
+
return Mo(Mo({}, i.style), {}, { width: i.showAlpha ? "230px" : "205px" });
|
|
57097
57097
|
}), o = st(), r = st(), s = st(), l = function() {
|
|
57098
57098
|
var p, v = (p = i.value) === null || p === void 0 ? void 0 : p.trim();
|
|
57099
57099
|
if (v != null && v !== "") {
|
|
@@ -57110,7 +57110,7 @@ var Su = Ze({ name: "Picker", components: { Colors: wu, Saturation: fu, Hue: pu,
|
|
|
57110
57110
|
return [D(o), i.format];
|
|
57111
57111
|
}, function(p) {
|
|
57112
57112
|
var v = Vl(p, 2), m = v[0], b = v[1], w = "";
|
|
57113
|
-
m != null ? (w = yB(
|
|
57113
|
+
m != null ? (w = yB(Mo({}, m), i.format, i.showAlpha), r.value = Mo({}, m)) : r.value = null, s.value = w;
|
|
57114
57114
|
var y = l();
|
|
57115
57115
|
JSON.stringify(m) !== JSON.stringify(y) && JSON.stringify(m) !== JSON.stringify(b) && e("change", w);
|
|
57116
57116
|
}, { immediate: !0 });
|
|
@@ -57132,11 +57132,11 @@ var Su = Ze({ name: "Picker", components: { Colors: wu, Saturation: fu, Hue: pu,
|
|
|
57132
57132
|
return "rgb(".concat(D(c).r, ", ").concat(D(c).g, ", ").concat(D(c).b, ")");
|
|
57133
57133
|
}), f = st(-1);
|
|
57134
57134
|
return { h: a, s: h, v: d, a: u, rgbStr: g, onSelectSaturation: function(p, v) {
|
|
57135
|
-
f.value = -1, D(o) == null ? o.value = { h: D(a), s: p, v, a: D(u) } : o.value =
|
|
57135
|
+
f.value = -1, D(o) == null ? o.value = { h: D(a), s: p, v, a: D(u) } : o.value = Mo(Mo({}, D(o)), {}, { s: p, v });
|
|
57136
57136
|
}, onSelectHue: function(p) {
|
|
57137
|
-
f.value = -1, D(o) == null && (o.value = { h: p, s: D(h), v: D(d), a: D(u) }), o.value =
|
|
57137
|
+
f.value = -1, D(o) == null && (o.value = { h: p, s: D(h), v: D(d), a: D(u) }), o.value = Mo(Mo({}, D(o)), {}, { h: p });
|
|
57138
57138
|
}, onSelectAlpha: function(p) {
|
|
57139
|
-
f.value = -1, D(o) == null ? o.value = { h: D(a), s: D(h), v: D(d), a: p } : o.value =
|
|
57139
|
+
f.value = -1, D(o) == null ? o.value = { h: D(a), s: D(h), v: D(d), a: p } : o.value = Mo(Mo({}, D(o)), {}, { a: p });
|
|
57140
57140
|
}, handleInputFormat: function(p) {
|
|
57141
57141
|
return i.showAlpha ? mB[p] : bB[p];
|
|
57142
57142
|
}, colorValue: s, pickerStyle: n, onInputChange: function(p) {
|
|
@@ -57291,7 +57291,7 @@ var Ru = Ze({ name: "ColorPicker", components: { ColorItem: ih, Picker: Su, AddC
|
|
|
57291
57291
|
Ue(function() {
|
|
57292
57292
|
return [i.theme, D(c)];
|
|
57293
57293
|
}, function() {
|
|
57294
|
-
|
|
57294
|
+
cn(function() {
|
|
57295
57295
|
var S, A;
|
|
57296
57296
|
(S = D(v)) === null || S === void 0 || S.setAttribute("pick-colors-theme", D(x)), (A = D(c)) === null || A === void 0 || (A = A.$el) === null || A === void 0 || A.setAttribute("pick-colors-theme", D(x));
|
|
57297
57297
|
});
|
|
@@ -57616,7 +57616,7 @@ function vK(i, t, e, n, o, r) {
|
|
|
57616
57616
|
"cancel-text": "取消",
|
|
57617
57617
|
style: { width: "950px", top: "60px", height: "700px" },
|
|
57618
57618
|
maskClosable: !1,
|
|
57619
|
-
destroyOnClose: !
|
|
57619
|
+
destroyOnClose: !0,
|
|
57620
57620
|
onOk: i.handleOk
|
|
57621
57621
|
}, {
|
|
57622
57622
|
footer: Tt(() => [
|
|
@@ -57831,7 +57831,7 @@ const bK = Ze({
|
|
|
57831
57831
|
type: "indicators",
|
|
57832
57832
|
filterData: d
|
|
57833
57833
|
});
|
|
57834
|
-
|
|
57834
|
+
cn(() => {
|
|
57835
57835
|
a.value.show();
|
|
57836
57836
|
});
|
|
57837
57837
|
}
|
|
@@ -58074,7 +58074,7 @@ const MK = /* @__PURE__ */ Xi(bK, [["render", TK], ["__scopeId", "data-v-fd1263c
|
|
|
58074
58074
|
setup(i, { expose: t }) {
|
|
58075
58075
|
const e = st(!1), n = st({}), o = st();
|
|
58076
58076
|
function r(s) {
|
|
58077
|
-
n.value = s, e.value = !0,
|
|
58077
|
+
n.value = s, e.value = !0, cn(() => {
|
|
58078
58078
|
o.value.init();
|
|
58079
58079
|
});
|
|
58080
58080
|
}
|
|
@@ -58693,7 +58693,7 @@ const XK = Ze({
|
|
|
58693
58693
|
}, w = (_) => {
|
|
58694
58694
|
_.target.scrollTop + _.target.clientHeight + 20 >= _.target.scrollHeight && (h.currentPage++, f());
|
|
58695
58695
|
}, y = async () => {
|
|
58696
|
-
await f(),
|
|
58696
|
+
await f(), cn(async () => {
|
|
58697
58697
|
D(a).scrollHeight === D(a).clientHeight && h.totalResult > D(l).length && (h.currentPage++, y());
|
|
58698
58698
|
});
|
|
58699
58699
|
}, C = async (_) => {
|
|
@@ -58899,9 +58899,7 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
58899
58899
|
} = i;
|
|
58900
58900
|
return async (l = {}) => {
|
|
58901
58901
|
var c;
|
|
58902
|
-
const a = lR(i, l);
|
|
58903
|
-
console.log("otherParams", l), console.log("formatParams", a);
|
|
58904
|
-
const { url: h, ...d } = a || {};
|
|
58902
|
+
const a = lR(i, l), { url: h, ...d } = a || {};
|
|
58905
58903
|
let u = t;
|
|
58906
58904
|
if (!u) {
|
|
58907
58905
|
const { pathname: g } = window == null ? void 0 : window.location;
|
|
@@ -59094,7 +59092,7 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
59094
59092
|
// 组件值
|
|
59095
59093
|
globalModel: {
|
|
59096
59094
|
type: Object,
|
|
59097
|
-
default: () => (
|
|
59095
|
+
default: () => /* @__PURE__ */ new Map()
|
|
59098
59096
|
},
|
|
59099
59097
|
// 是否嵌入到iframe中使用
|
|
59100
59098
|
isIframeMode: {
|
|
@@ -59174,7 +59172,7 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
59174
59172
|
Y.value = j;
|
|
59175
59173
|
}, G = Qt(() => {
|
|
59176
59174
|
let j = "#ECF1F5";
|
|
59177
|
-
switch (
|
|
59175
|
+
switch (i.theme) {
|
|
59178
59176
|
case "default":
|
|
59179
59177
|
j = "#EAF0F9";
|
|
59180
59178
|
break;
|
|
@@ -59643,7 +59641,7 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
59643
59641
|
sortType: D(r)
|
|
59644
59642
|
});
|
|
59645
59643
|
}
|
|
59646
|
-
q && n.updateOption(Z),
|
|
59644
|
+
q && n.updateOption(Z), cn(() => {
|
|
59647
59645
|
Eb();
|
|
59648
59646
|
});
|
|
59649
59647
|
}
|
|
@@ -59661,7 +59659,6 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
59661
59659
|
return q;
|
|
59662
59660
|
}
|
|
59663
59661
|
function Eb() {
|
|
59664
|
-
console.log("tableInstance", n);
|
|
59665
59662
|
const {
|
|
59666
59663
|
dataset: { columns: j, rows: q }
|
|
59667
59664
|
} = n, ot = q.concat(j);
|
|
@@ -59707,9 +59704,9 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
59707
59704
|
fontWeight: "normal"
|
|
59708
59705
|
},
|
|
59709
59706
|
dropDownMenu: ce,
|
|
59710
|
-
format: (_i, no, Pi,
|
|
59711
|
-
const
|
|
59712
|
-
return
|
|
59707
|
+
format: (_i, no, Pi, Cn) => {
|
|
59708
|
+
const So = Cn.getRecordByCell(no, Pi) || [];
|
|
59709
|
+
return So[0] && isNaN(+So[0][Gt.label]) ? So[0][Gt.label] : _i;
|
|
59713
59710
|
}
|
|
59714
59711
|
}, si && (si.style = {
|
|
59715
59712
|
padding: [16, 28, 16, 28]
|
|
@@ -59769,12 +59766,12 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
59769
59766
|
for (const Gt in D(x))
|
|
59770
59767
|
Vt.push(D(x)[Gt]);
|
|
59771
59768
|
if (Z.records = lt, Z.dataConfig.sortRules = Vt, lt != null && lt.length && (D(F).records = []), (Zi = Z.columns) != null && Zi.length ? Z.columnHeaderTitle = !0 : (Jr = Z.indicators) != null && Jr.length ? Z.columnHeaderTitle = !1 : (ia = Z.rows) != null && ia.length && (Z.columnHeaderTitle = !0), n)
|
|
59772
|
-
n.updateOption(Z),
|
|
59769
|
+
n.updateOption(Z), cn(() => {
|
|
59773
59770
|
Fb();
|
|
59774
59771
|
}), y.value = !1;
|
|
59775
59772
|
else {
|
|
59776
59773
|
const Gt = document.getElementById(`pivotTableContainer_${i.id}`);
|
|
59777
|
-
n = new XM(Gt, Z),
|
|
59774
|
+
n = new XM(Gt, Z), cn(() => {
|
|
59778
59775
|
Fb(), o.value = !0, y.value = !1;
|
|
59779
59776
|
for (const ce of pt) {
|
|
59780
59777
|
const { key: Te } = ce, si = /* @__PURE__ */ new Set();
|
|
@@ -59854,7 +59851,7 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
59854
59851
|
type: "7"
|
|
59855
59852
|
});
|
|
59856
59853
|
}
|
|
59857
|
-
lt !== -1 && (Z.dataConfig.sortRules[lt].sortType = r), n.updateOption(Z),
|
|
59854
|
+
lt !== -1 && (Z.dataConfig.sortRules[lt].sortType = r), n.updateOption(Z), cn(() => {
|
|
59858
59855
|
Eb(), delete a.value[j];
|
|
59859
59856
|
});
|
|
59860
59857
|
}
|
|
@@ -59969,7 +59966,7 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
59969
59966
|
valueList: pt || [],
|
|
59970
59967
|
type: "dimension",
|
|
59971
59968
|
...ct
|
|
59972
|
-
},
|
|
59969
|
+
}, cn(() => {
|
|
59973
59970
|
y.value = !1, D(u).show();
|
|
59974
59971
|
});
|
|
59975
59972
|
}
|
|
@@ -59985,7 +59982,7 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
59985
59982
|
key: j,
|
|
59986
59983
|
type: "indicators",
|
|
59987
59984
|
filterData: D(h)[j]
|
|
59988
|
-
},
|
|
59985
|
+
}, cn(() => {
|
|
59989
59986
|
D(u).show();
|
|
59990
59987
|
});
|
|
59991
59988
|
}
|
|
@@ -60106,7 +60103,7 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
60106
60103
|
const { scrollDirection: q } = j;
|
|
60107
60104
|
q === "vertical" ? I.value = n.getScrollTop() : q === "horizontal" && (E.value = n.getScrollLeft());
|
|
60108
60105
|
}), n.on("after_render", () => {
|
|
60109
|
-
K(), TB(),
|
|
60106
|
+
K(), TB(), cn(() => {
|
|
60110
60107
|
o.value = !0;
|
|
60111
60108
|
});
|
|
60112
60109
|
}), n.on("icon_click", (j) => {
|
|
@@ -60189,9 +60186,6 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
60189
60186
|
DB(at);
|
|
60190
60187
|
break;
|
|
60191
60188
|
}
|
|
60192
|
-
setTimeout(() => {
|
|
60193
|
-
console.log("option", Z);
|
|
60194
|
-
}, 500);
|
|
60195
60189
|
});
|
|
60196
60190
|
}
|
|
60197
60191
|
function WB(j) {
|
|
@@ -60396,37 +60390,37 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
60396
60390
|
rows: no = [],
|
|
60397
60391
|
columns: Pi = []
|
|
60398
60392
|
} = _i;
|
|
60399
|
-
let
|
|
60400
|
-
oe != null && oe.length ?
|
|
60401
|
-
let
|
|
60402
|
-
if (!(
|
|
60403
|
-
for (const na of
|
|
60393
|
+
let Cn = [];
|
|
60394
|
+
oe != null && oe.length ? Cn = Ei(oe) : (ia = (Jr = D(F)) == null ? void 0 : Jr.records) != null && ia.length && (Cn = Ei((Gt = D(F)) == null ? void 0 : Gt.records));
|
|
60395
|
+
let So = Ht.map((na) => na.dimensionKey);
|
|
60396
|
+
if (!(So != null && So.length) && (Pi != null && Pi.length) && (So = [Pi[0].dimensionKey]), Cn != null && Cn.length)
|
|
60397
|
+
for (const na of Cn) {
|
|
60404
60398
|
for (const Af of no)
|
|
60405
60399
|
na[Af.dimensionKey] = "";
|
|
60406
60400
|
let Rf = !1;
|
|
60407
60401
|
for (const Af in na)
|
|
60408
|
-
if (
|
|
60402
|
+
if (So.includes(Af)) {
|
|
60409
60403
|
Rf = !0;
|
|
60410
60404
|
break;
|
|
60411
60405
|
}
|
|
60412
|
-
pt ? Rf || (Te = 2, na[
|
|
60406
|
+
pt ? Rf || (Te = 2, na[So[0]] = "") : ct && (Rf || (Te = 1));
|
|
60413
60407
|
}
|
|
60414
60408
|
n.updateOption({
|
|
60415
60409
|
...Z,
|
|
60416
60410
|
..._i,
|
|
60417
|
-
records:
|
|
60411
|
+
records: Cn
|
|
60418
60412
|
});
|
|
60419
60413
|
}
|
|
60420
|
-
|
|
60421
|
-
const no = ea(), Pi = no.width,
|
|
60414
|
+
cn(() => {
|
|
60415
|
+
const no = ea(), Pi = no.width, Cn = no.height;
|
|
60422
60416
|
P.value.main = {
|
|
60423
60417
|
width: Pi + "px",
|
|
60424
|
-
height:
|
|
60418
|
+
height: Cn + "px",
|
|
60425
60419
|
top: qt + D(_e) + "px",
|
|
60426
60420
|
left: De + D(kt) + D(_e) + "px"
|
|
60427
60421
|
}, P.value.rows = {
|
|
60428
60422
|
width: ce - he * 2 + "px",
|
|
60429
|
-
height:
|
|
60423
|
+
height: Cn - he * 2 + "px",
|
|
60430
60424
|
top: 0,
|
|
60431
60425
|
left: 0
|
|
60432
60426
|
}, P.value.columns = {
|
|
@@ -60436,7 +60430,7 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
60436
60430
|
left: ce + "px"
|
|
60437
60431
|
}, P.value.indicators = {
|
|
60438
60432
|
width: Pi - ce - he * 2 + "px",
|
|
60439
|
-
height:
|
|
60433
|
+
height: Cn - Te * si - he * 2 + "px",
|
|
60440
60434
|
top: Te * si + "px",
|
|
60441
60435
|
left: ce + "px"
|
|
60442
60436
|
};
|
|
@@ -60502,7 +60496,7 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
60502
60496
|
r.value = j.defaultSortRule, s.value = j.dimensionData, l.value = j.currentClickCell, a.value = j.dimFilterData, h.value = j.indFilterData, d.value = j.filterData, c.value = j.indFilterConfig, C.value = j.topNumData, _.value = j.sortData, x.value = j.colSortData, R.value = j.indSortData, S.value = j.aggregateMap, A.value = j.subMenuLeft, T.value = j.subMenuTop, P.value = j.dragAreaStyle, B.value = j.showTreeData, H.value = j.largeVisible, F.value = j.temporaryData, $ = j.splitSymbol, Y.value = j.sourceListStyle, rt.value = j.dimensionFieldList, mt.value = j.indicatorFieldList, nt.value = j.computedIndKeys, It.value = j.computedIndMap, Ft.value = j.computedIndFieldMap, je.value = j.loadingRect, Be.value = j.calculateList, Ye.value = j.filterList, Xe.value = j.topNumMap, ke.value = j.sortMap, we.value = j.customDimensions, Bt.value = j.customIndicators, Lt.value = j.customRowKeys, Xt.value = j.customColKeys, k.value = j.cacheResData, Zr.value = j.toolBoxStyle, I.value = j.scrollTop, E.value = j.scrollLeft, Object.assign(Z, j.option);
|
|
60503
60497
|
};
|
|
60504
60498
|
function tP(j) {
|
|
60505
|
-
j && Wb(j), de();
|
|
60499
|
+
y.value = !0, j && Wb(j), de();
|
|
60506
60500
|
}
|
|
60507
60501
|
function eP() {
|
|
60508
60502
|
return {
|
|
@@ -60595,11 +60589,11 @@ const cY = /* @__PURE__ */ Xi(dY, [["render", uY], ["__scopeId", "data-v-b7bdd90
|
|
|
60595
60589
|
}
|
|
60596
60590
|
}), Hx = () => {
|
|
60597
60591
|
hP((i) => ({
|
|
60598
|
-
|
|
60599
|
-
|
|
60600
|
-
|
|
60601
|
-
|
|
60602
|
-
"
|
|
60592
|
+
a1a1f5e8: i.dropDownMenuBgColor,
|
|
60593
|
+
f491fc5e: i.dropDownMenuColor,
|
|
60594
|
+
aaa924e6: i.dropDownMenuHightLightColor,
|
|
60595
|
+
"4c459eb8": i.subMenuLeft,
|
|
60596
|
+
"7aa42918": i.subMenuTop
|
|
60603
60597
|
}));
|
|
60604
60598
|
}, Ex = Mb.setup;
|
|
60605
60599
|
Mb.setup = Ex ? (i, t) => (Hx(), Ex(i, t)) : Hx;
|
|
@@ -60766,7 +60760,7 @@ function bY(i, t, e, n, o, r) {
|
|
|
60766
60760
|
}, null, 8, ["theme", "fullMode", "pageId", "onConfirm"])
|
|
60767
60761
|
], 8, ["to", "disabled"]));
|
|
60768
60762
|
}
|
|
60769
|
-
const CY = /* @__PURE__ */ Xi(Mb, [["render", bY], ["__scopeId", "data-v-
|
|
60763
|
+
const CY = /* @__PURE__ */ Xi(Mb, [["render", bY], ["__scopeId", "data-v-ac053db6"]]), yY = cP(CY), Lx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
60770
60764
|
__proto__: null,
|
|
60771
60765
|
EcanPivotTable: yY
|
|
60772
60766
|
}, Symbol.toStringTag, { value: "Module" })), _Y = (i, t) => {
|