@turquoisehealth/pit-viper 2.60.0 → 2.61.0
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/package.json +1 -1
- package/pv-components/dist/vue/charts/pv-components-charts.d.ts +6 -2
- package/pv-components/dist/vue/charts/pv-components-charts.js +11 -11
- package/pv-components/dist/vue/charts/pv-components-charts.mjs +245 -243
- package/pv-components/dist/vue/charts/pv-components-charts.umd.js +12 -12
- package/pv-components/dist/vue/tables/pv-components-tables.d.ts +6 -2
- package/pv-components/dist/vue/tables/pv-components-tables.js +10 -10
- package/pv-components/dist/vue/tables/pv-components-tables.mjs +277 -276
- package/pv-components/dist/vue/tables/pv-components-tables.umd.js +10 -10
|
@@ -7,8 +7,8 @@ var gB = Object.defineProperty, zj = Object.getOwnPropertyDescriptor, lr = (e, t
|
|
|
7
7
|
for (var s = o > 1 ? void 0 : o ? zj(t, i) : t, n = e.length - 1, r; n >= 0; n--)
|
|
8
8
|
(r = e[n]) && (s = (o ? r(t, i, s) : r(s)) || s);
|
|
9
9
|
return o && s && gB(t, i, s), s;
|
|
10
|
-
},
|
|
11
|
-
lr(
|
|
10
|
+
}, be = {};
|
|
11
|
+
lr(be, {
|
|
12
12
|
error: () => mB,
|
|
13
13
|
errorOnce: () => Wj,
|
|
14
14
|
log: () => _j,
|
|
@@ -1809,7 +1809,7 @@ var Qp = class {
|
|
|
1809
1809
|
every(e, t) {
|
|
1810
1810
|
let i = 0, o;
|
|
1811
1811
|
const s = e;
|
|
1812
|
-
e = Math.max(1, Math.round(e)), s !== e &&
|
|
1812
|
+
e = Math.max(1, Math.round(e)), s !== e && be.warnOnce(`interval step of [${s}] rounded to [${e}].`);
|
|
1813
1813
|
const { snapTo: n = "start" } = t ?? {};
|
|
1814
1814
|
if (typeof n == "string") {
|
|
1815
1815
|
const l = i;
|
|
@@ -2144,7 +2144,7 @@ var PS = class KB extends LS {
|
|
|
2144
2144
|
return this._paddingOuter;
|
|
2145
2145
|
}
|
|
2146
2146
|
refresh() {
|
|
2147
|
-
this.invalid && (this.invalid = !1, this.update(), this.invalid &&
|
|
2147
|
+
this.invalid && (this.invalid = !1, this.update(), this.invalid && be.warnOnce("Expected update to not invalidate scale"));
|
|
2148
2148
|
}
|
|
2149
2149
|
ticks(t, i = this.domain, o) {
|
|
2150
2150
|
return UB(i, !1, o);
|
|
@@ -2259,7 +2259,7 @@ var Ye = class {
|
|
|
2259
2259
|
set(t) {
|
|
2260
2260
|
const { className: i = this.constructor.name } = this.constructor;
|
|
2261
2261
|
if (typeof t != "object")
|
|
2262
|
-
return
|
|
2262
|
+
return be.warn(`unable to set ${i} - expecting a properties object`), this;
|
|
2263
2263
|
const o = new Set(Object.keys(t));
|
|
2264
2264
|
for (const s of zu(this))
|
|
2265
2265
|
if (o.has(s)) {
|
|
@@ -2267,7 +2267,7 @@ var Ye = class {
|
|
|
2267
2267
|
if (Ga(r[s]))
|
|
2268
2268
|
if (r[s] instanceof Oy) {
|
|
2269
2269
|
const a = r[s].reset(n);
|
|
2270
|
-
a != null ? r[s] = a :
|
|
2270
|
+
a != null ? r[s] = a : be.warn(`unable to set [${s}] - expecting a properties array`);
|
|
2271
2271
|
} else
|
|
2272
2272
|
r[s].set(n);
|
|
2273
2273
|
else
|
|
@@ -2275,13 +2275,13 @@ var Ye = class {
|
|
|
2275
2275
|
o.delete(s);
|
|
2276
2276
|
}
|
|
2277
2277
|
for (const s of o)
|
|
2278
|
-
|
|
2278
|
+
be.warn(`unable to set [${s}] in ${i} - property is unknown`);
|
|
2279
2279
|
return this;
|
|
2280
2280
|
}
|
|
2281
2281
|
isValid(t) {
|
|
2282
2282
|
return zu(this).every((i) => {
|
|
2283
2283
|
const { optional: o } = w$(this, i), s = o === !0 || typeof this[i] < "u";
|
|
2284
|
-
return s ||
|
|
2284
|
+
return s || be.warnOnce(`${t ?? ""}[${i}] is required.`), s;
|
|
2285
2285
|
});
|
|
2286
2286
|
}
|
|
2287
2287
|
toJson() {
|
|
@@ -2323,7 +2323,7 @@ function T(e, t = {}) {
|
|
|
2323
2323
|
if (i && typeof r > "u" || e(r, a))
|
|
2324
2324
|
return Ga(s[n]) && !Ga(r) ? (s[n].set(r), s[n]) : r;
|
|
2325
2325
|
const l = o ?? String(n).replace(/^_*/, ""), c = s.constructor.className ?? s.constructor.name.replace(/Properties$/, ""), d = sm(r, 50);
|
|
2326
|
-
return
|
|
2326
|
+
return be.warn(
|
|
2327
2327
|
`Property [${l}] of [${c}] cannot be set to [${d}]${e.message ? `; expecting ${zy(e, a)}` : ""}, ignoring.`
|
|
2328
2328
|
), r0;
|
|
2329
2329
|
},
|
|
@@ -2383,7 +2383,7 @@ function _t(e, t = "a") {
|
|
|
2383
2383
|
return !1;
|
|
2384
2384
|
if (typeof s != "string" && (s.deprecated === !0 || s.deprecatedTo != null)) {
|
|
2385
2385
|
const n = [`Property [%s] with value '${s.value}' is deprecated.`];
|
|
2386
|
-
s.deprecatedTo && n.push(`Use ${s.deprecatedTo} instead.`),
|
|
2386
|
+
s.deprecatedTo && n.push(`Use ${s.deprecatedTo} instead.`), be.warnOnce(n.join(" "), o.property);
|
|
2387
2387
|
}
|
|
2388
2388
|
return !0;
|
|
2389
2389
|
},
|
|
@@ -2461,16 +2461,16 @@ var OU = 2e3, YE = Date.now(), FU = () => {
|
|
|
2461
2461
|
const e = Date.now() - YE;
|
|
2462
2462
|
if (e > OU) {
|
|
2463
2463
|
const t = (Math.floor(e / 100) / 10).toFixed(1);
|
|
2464
|
-
|
|
2464
|
+
be.log(`**** ${t}s since last log message ****`);
|
|
2465
2465
|
}
|
|
2466
2466
|
YE = Date.now();
|
|
2467
2467
|
}, Gt = {
|
|
2468
2468
|
create(...e) {
|
|
2469
2469
|
return Object.assign((...i) => {
|
|
2470
|
-
Gt.check(...e) && (typeof i[0] == "function" && (i = s0(i[0]())), FU(),
|
|
2470
|
+
Gt.check(...e) && (typeof i[0] == "function" && (i = s0(i[0]())), FU(), be.log(...i));
|
|
2471
2471
|
}, {
|
|
2472
2472
|
check: () => Gt.check(...e),
|
|
2473
|
-
group: (i, o) => Gt.check(...e) ?
|
|
2473
|
+
group: (i, o) => Gt.check(...e) ? be.logGroup(i, o) : o()
|
|
2474
2474
|
});
|
|
2475
2475
|
},
|
|
2476
2476
|
check(...e) {
|
|
@@ -2561,11 +2561,11 @@ var a5 = class {
|
|
|
2561
2561
|
}
|
|
2562
2562
|
update() {
|
|
2563
2563
|
const { domain: t, range: i } = this;
|
|
2564
|
-
t.length < 2 && (
|
|
2564
|
+
t.length < 2 && (be.warnOnce("`colorDomain` should have at least 2 values."), t.length === 0 ? t.push(0, 1) : t.length === 1 && t.push(t[0] + 1));
|
|
2565
2565
|
for (let o = 1; o < t.length; o++) {
|
|
2566
2566
|
const s = t[o - 1], n = t[o];
|
|
2567
2567
|
if (s >= n) {
|
|
2568
|
-
|
|
2568
|
+
be.warnOnce("`colorDomain` values should be supplied in ascending order."), t.sort((r, a) => r - a);
|
|
2569
2569
|
break;
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
@@ -2602,7 +2602,7 @@ var a5 = class {
|
|
|
2602
2602
|
invert() {
|
|
2603
2603
|
}
|
|
2604
2604
|
refresh() {
|
|
2605
|
-
this.invalid && (this.invalid = !1, this.update(), this.invalid &&
|
|
2605
|
+
this.invalid && (this.invalid = !1, this.update(), this.invalid && be.warnOnce("Expected update to not invalidate scale"));
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
2608
|
A([
|
|
@@ -2720,7 +2720,7 @@ function d5(e, t, i, o = "continuous") {
|
|
|
2720
2720
|
if (e.length === 0)
|
|
2721
2721
|
return VU(t, o);
|
|
2722
2722
|
if (!_U(e))
|
|
2723
|
-
return
|
|
2723
|
+
return be.warnOnce("[fills] must have the stops defined in ascending order"), [];
|
|
2724
2724
|
const s = Math.min(...i), n = Math.max(...i), r = o === "discrete", a = new Float64Array(e.length);
|
|
2725
2725
|
let l = 0, c = -1;
|
|
2726
2726
|
for (let p = 0; p < e.length; p += 1) {
|
|
@@ -4277,7 +4277,7 @@ function Gm(e, t, i) {
|
|
|
4277
4277
|
return r;
|
|
4278
4278
|
}
|
|
4279
4279
|
function zm(e, t) {
|
|
4280
|
-
return e >= t ? (
|
|
4280
|
+
return e >= t ? (be.warnOnce(
|
|
4281
4281
|
"the configured interval results in more than 1 item per pixel, ignoring. Supply a larger interval or omit this configuration"
|
|
4282
4282
|
), !0) : !1;
|
|
4283
4283
|
}
|
|
@@ -4861,7 +4861,7 @@ var CA = (e) => e === "value" ? Rt(
|
|
|
4861
4861
|
if (n && d || r && d && u)
|
|
4862
4862
|
return s?.() ?? !0;
|
|
4863
4863
|
const h = ["Expecting crossLine"];
|
|
4864
|
-
return r ? (d || h.push(`range start ${sm(a)}`), u || h.push(`${d ? "" : "and "}range end ${sm(l)}`)) : h.push(`value ${sm(a)}`), h.push("to match the axis scale domain."),
|
|
4864
|
+
return r ? (d || h.push(`range start ${sm(a)}`), u || h.push(`${d ? "" : "and "}range end ${sm(l)}`)) : h.push(`value ${sm(a)}`), h.push("to match the axis scale domain."), be.warnOnce(h.join(" ")), !1;
|
|
4865
4865
|
}, mK = {
|
|
4866
4866
|
top: { xTranslationDirection: 0, yTranslationDirection: -1 },
|
|
4867
4867
|
bottom: { xTranslationDirection: 0, yTranslationDirection: 1 },
|
|
@@ -5774,7 +5774,7 @@ var g0 = class extends uh(An) {
|
|
|
5774
5774
|
try {
|
|
5775
5775
|
t != null && i != null && (o = this.scale.tickFormatter({ ...i, specifier: t }));
|
|
5776
5776
|
} catch {
|
|
5777
|
-
|
|
5777
|
+
be.warnOnce(`the format string ${t} is invalid, ignoring.`);
|
|
5778
5778
|
}
|
|
5779
5779
|
return o ?? (o = (s) => this.formatDatum(s)), o;
|
|
5780
5780
|
}
|
|
@@ -6646,11 +6646,11 @@ function cm(e, t, i = {}) {
|
|
|
6646
6646
|
if (a === TD && !(l in e)) {
|
|
6647
6647
|
if (d === void 0)
|
|
6648
6648
|
continue;
|
|
6649
|
-
|
|
6649
|
+
be.warn(`unable to set [${u}] in ${h?.name} - property is unknown`);
|
|
6650
6650
|
continue;
|
|
6651
6651
|
}
|
|
6652
6652
|
if (g != null && f != null && f !== g && (g !== TD || f !== "object")) {
|
|
6653
|
-
|
|
6653
|
+
be.warn(
|
|
6654
6654
|
`unable to set [${u}] in ${h?.name} - can't apply type of [${f}], allowed types are: [${g}]`
|
|
6655
6655
|
);
|
|
6656
6656
|
continue;
|
|
@@ -6659,7 +6659,7 @@ function cm(e, t, i = {}) {
|
|
|
6659
6659
|
r[l].set(d);
|
|
6660
6660
|
else if (f === "object") {
|
|
6661
6661
|
if (p == null) {
|
|
6662
|
-
|
|
6662
|
+
be.warn(`unable to set [${u}] in ${h?.name} - property is unknown`);
|
|
6663
6663
|
continue;
|
|
6664
6664
|
}
|
|
6665
6665
|
cm(p, d, {
|
|
@@ -6670,7 +6670,7 @@ function cm(e, t, i = {}) {
|
|
|
6670
6670
|
} else
|
|
6671
6671
|
r[l] = d;
|
|
6672
6672
|
} catch (g) {
|
|
6673
|
-
|
|
6673
|
+
be.warn(`unable to set [${u}] in [${h?.name}]; nested error is: ${g.message}`);
|
|
6674
6674
|
}
|
|
6675
6675
|
}
|
|
6676
6676
|
return e;
|
|
@@ -6733,20 +6733,20 @@ var J5 = {
|
|
|
6733
6733
|
if (n !== "$ref")
|
|
6734
6734
|
return t[e];
|
|
6735
6735
|
if (s?.has(r)) {
|
|
6736
|
-
|
|
6736
|
+
be.warnOnce(
|
|
6737
6737
|
`\`$ref\` json operation failed on [${String(e)}] at [${o.join(".")}], circular reference detected with [${[...s].join(", ")}].`
|
|
6738
6738
|
);
|
|
6739
6739
|
return;
|
|
6740
6740
|
}
|
|
6741
6741
|
return s?.add(r), J5.$ref(r, t, i, o, s);
|
|
6742
6742
|
}
|
|
6743
|
-
|
|
6743
|
+
be.warnOnce(
|
|
6744
6744
|
`\`$ref\` json operation failed on [${String(e)}] at [${o.join(".")}], expecting one of [${Object.keys(t).join(", ")}].`
|
|
6745
6745
|
);
|
|
6746
6746
|
},
|
|
6747
6747
|
$path: (e, t, i, o) => {
|
|
6748
6748
|
if (!Ks(e)) {
|
|
6749
|
-
|
|
6749
|
+
be.warnOnce(
|
|
6750
6750
|
`\`$path\` json operation failed on [${String(e)}] at [${o.join(".")}], expecting a string.`
|
|
6751
6751
|
);
|
|
6752
6752
|
return;
|
|
@@ -6757,7 +6757,7 @@ var J5 = {
|
|
|
6757
6757
|
let r = i;
|
|
6758
6758
|
for (const a of n) {
|
|
6759
6759
|
if (!(a in r)) {
|
|
6760
|
-
|
|
6760
|
+
be.warnOnce(
|
|
6761
6761
|
`\`$path\` json operation failed on [${String(e)}] at [${o.join(".")}], could not find path in object.`
|
|
6762
6762
|
);
|
|
6763
6763
|
return;
|
|
@@ -6774,14 +6774,14 @@ var J5 = {
|
|
|
6774
6774
|
$mul: ([e, t], i, o, s) => {
|
|
6775
6775
|
if (typeof e == "number" && typeof t == "number")
|
|
6776
6776
|
return e * t;
|
|
6777
|
-
|
|
6777
|
+
be.warnOnce(
|
|
6778
6778
|
`\`$mul\` json operation failed on [${String(e)}] and [${String(t)}] at [${s.join(".")}], expecting two numbers.`
|
|
6779
6779
|
);
|
|
6780
6780
|
},
|
|
6781
6781
|
$round: ([e], t, i, o) => {
|
|
6782
6782
|
if (typeof e == "number")
|
|
6783
6783
|
return Math.round(e);
|
|
6784
|
-
|
|
6784
|
+
be.warnOnce(
|
|
6785
6785
|
`\`$round\` json operation failed on [${String(e)}] at [${o.join(".")}], expecting a number.`
|
|
6786
6786
|
);
|
|
6787
6787
|
},
|
|
@@ -6795,7 +6795,7 @@ var J5 = {
|
|
|
6795
6795
|
return li.mix(li.fromString(e), li.fromString(t), i).toString();
|
|
6796
6796
|
} catch {
|
|
6797
6797
|
}
|
|
6798
|
-
|
|
6798
|
+
be.warnOnce(
|
|
6799
6799
|
`\`$mix\` json operation failed on [${String(e)}, ${String(t)}, ${String(i)}] at [${n.join(".")}], expecting two colors and a number between 0 and 1.`
|
|
6800
6800
|
);
|
|
6801
6801
|
},
|
|
@@ -6806,7 +6806,7 @@ var J5 = {
|
|
|
6806
6806
|
li.fromString(t.backgroundColor),
|
|
6807
6807
|
e
|
|
6808
6808
|
).toString();
|
|
6809
|
-
|
|
6809
|
+
be.warnOnce(
|
|
6810
6810
|
`\`$foregroundBackgroundMix\` json operation failed on [${String(e)}}}] at [${o.join(".")}], expecting a number between 0 and 1.`
|
|
6811
6811
|
);
|
|
6812
6812
|
},
|
|
@@ -6821,7 +6821,7 @@ var J5 = {
|
|
|
6821
6821
|
li.fromString(i.accentColor),
|
|
6822
6822
|
t
|
|
6823
6823
|
).toString();
|
|
6824
|
-
|
|
6824
|
+
be.warnOnce(
|
|
6825
6825
|
`\`$foregroundBackgroundAccentMix\` json operation failed on [${String(e)}, ${String(t)}}] at [${s.join(".")}], expecting two numbers between 0 and 1.`
|
|
6826
6826
|
);
|
|
6827
6827
|
}
|
|
@@ -6831,7 +6831,7 @@ var J5 = {
|
|
|
6831
6831
|
}
|
|
6832
6832
|
acquire(e) {
|
|
6833
6833
|
return new Promise((t) => {
|
|
6834
|
-
this.acquireQueue.push([e, t]), this.available && this.dispatchNext().catch((i) =>
|
|
6834
|
+
this.acquireQueue.push([e, t]), this.available && this.dispatchNext().catch((i) => be.errorOnce(i));
|
|
6835
6835
|
});
|
|
6836
6836
|
}
|
|
6837
6837
|
async acquireImmediately(e) {
|
|
@@ -6847,7 +6847,7 @@ var J5 = {
|
|
|
6847
6847
|
try {
|
|
6848
6848
|
await e(), t?.();
|
|
6849
6849
|
} catch (i) {
|
|
6850
|
-
|
|
6850
|
+
be.error("mutex callback error", i), t?.();
|
|
6851
6851
|
}
|
|
6852
6852
|
[e, t] = this.acquireQueue.shift() ?? [];
|
|
6853
6853
|
}
|
|
@@ -7534,7 +7534,7 @@ var rY = [
|
|
|
7534
7534
|
if (i == null)
|
|
7535
7535
|
return;
|
|
7536
7536
|
const o = { chartType: i };
|
|
7537
|
-
this.chartService.publicApi?.updateDelta(o).catch((s) =>
|
|
7537
|
+
this.chartService.publicApi?.updateDelta(o).catch((s) => be.error("error restoring state", s));
|
|
7538
7538
|
}
|
|
7539
7539
|
}, oG = class {
|
|
7540
7540
|
constructor() {
|
|
@@ -7626,15 +7626,15 @@ var rY = [
|
|
|
7626
7626
|
}
|
|
7627
7627
|
restore(t, ...i) {
|
|
7628
7628
|
if (typeof t != "object") {
|
|
7629
|
-
|
|
7629
|
+
be.warnOnce(`Could not restore data of type [${typeof t}], expecting an object, ignoring.`);
|
|
7630
7630
|
return;
|
|
7631
7631
|
}
|
|
7632
7632
|
if (t == null) {
|
|
7633
|
-
|
|
7633
|
+
be.warnOnce("Could not restore data of type [null], expecting an object, ignoring.");
|
|
7634
7634
|
return;
|
|
7635
7635
|
}
|
|
7636
7636
|
if (!("version" in t) || typeof t.version != "string") {
|
|
7637
|
-
|
|
7637
|
+
be.warnOnce("Could not restore data, missing [version] string in object, ignoring.");
|
|
7638
7638
|
return;
|
|
7639
7639
|
}
|
|
7640
7640
|
for (const o of i) {
|
|
@@ -7647,7 +7647,7 @@ ${n.join(`
|
|
|
7647
7647
|
`)}
|
|
7648
7648
|
|
|
7649
7649
|
` : "";
|
|
7650
|
-
|
|
7650
|
+
be.warnOnce(
|
|
7651
7651
|
`Could not restore [${o.mementoOriginatorKey}] data, value was invalid, ignoring.${r}`,
|
|
7652
7652
|
s
|
|
7653
7653
|
);
|
|
@@ -7728,7 +7728,7 @@ ${n.join(`
|
|
|
7728
7728
|
try {
|
|
7729
7729
|
o.handler(...i);
|
|
7730
7730
|
} catch (s) {
|
|
7731
|
-
|
|
7731
|
+
be.errorOnce(String(s));
|
|
7732
7732
|
}
|
|
7733
7733
|
}
|
|
7734
7734
|
getListenersByType(t) {
|
|
@@ -8831,7 +8831,7 @@ var pG = class {
|
|
|
8831
8831
|
datetime: new Intl.DateTimeFormat("en-US", { dateStyle: "full", timeStyle: "full" })
|
|
8832
8832
|
}, TY = ({ defaultValue: e, variables: t }) => e?.replaceAll(RY, (i, o, s) => {
|
|
8833
8833
|
const n = t[o], r = s != null ? aM[s] : null;
|
|
8834
|
-
return s != null && r == null &&
|
|
8834
|
+
return s != null && r == null && be.warnOnce(`Format style [${s}] is not supported`), r != null ? r.format(n) : typeof n == "number" ? aM.number.format(n) : n instanceof Date ? aM.datetime.format(n) : String(n);
|
|
8835
8835
|
}), LY = class extends nc {
|
|
8836
8836
|
constructor() {
|
|
8837
8837
|
super(...arguments), this.localeText = void 0, this.getLocaleText = void 0;
|
|
@@ -8962,7 +8962,7 @@ function FY(e, t) {
|
|
|
8962
8962
|
for (const [i, o] of Object.entries(t)) {
|
|
8963
8963
|
const s = fi.toCanvas(o);
|
|
8964
8964
|
if (!s) {
|
|
8965
|
-
|
|
8965
|
+
be.log(`Scene.render() - no bbox for debugged node [${i}].`);
|
|
8966
8966
|
continue;
|
|
8967
8967
|
}
|
|
8968
8968
|
e.globalAlpha = 0.8, e.strokeStyle = "red", e.lineWidth = 1, e.strokeRect(s.x, s.y, s.width, s.height), e.fillStyle = "red", e.strokeStyle = "white", e.font = "16px sans-serif", e.textBaseline = "top", e.textAlign = "left", e.lineWidth = 2, e.strokeText(i, s.x, s.y, s.width), e.fillText(i, s.x, s.y, s.width);
|
|
@@ -9210,7 +9210,7 @@ var VY = class {
|
|
|
9210
9210
|
const s = e(...t);
|
|
9211
9211
|
return i && o != null && i.set(o, s), s;
|
|
9212
9212
|
} catch (s) {
|
|
9213
|
-
|
|
9213
|
+
be.warnOnce("User callback errored, ignoring", s);
|
|
9214
9214
|
return;
|
|
9215
9215
|
}
|
|
9216
9216
|
}
|
|
@@ -9327,7 +9327,7 @@ var VY = class {
|
|
|
9327
9327
|
}
|
|
9328
9328
|
createThrottledFetch(e) {
|
|
9329
9329
|
return VE(
|
|
9330
|
-
(t) => this.fetch(t).catch((i) =>
|
|
9330
|
+
(t) => this.fetch(t).catch((i) => be.error("callback failed", i)),
|
|
9331
9331
|
e,
|
|
9332
9332
|
{
|
|
9333
9333
|
leading: !1,
|
|
@@ -9356,7 +9356,7 @@ var VY = class {
|
|
|
9356
9356
|
try {
|
|
9357
9357
|
o = await this.dataSourceCallback(e), this.debug(`DataService - response | ${performance.now() - t}ms | ${i}`);
|
|
9358
9358
|
} catch (n) {
|
|
9359
|
-
this.debug(`DataService - request failed | ${i}`),
|
|
9359
|
+
this.debug(`DataService - request failed | ${i}`), be.errorOnce(`DataService - request failed | [${n}]`);
|
|
9360
9360
|
}
|
|
9361
9361
|
this.isLoadingInitialData = !1;
|
|
9362
9362
|
const s = this.freshRequests.findIndex((n) => n === i);
|
|
@@ -9472,7 +9472,7 @@ var M2 = class {
|
|
|
9472
9472
|
try {
|
|
9473
9473
|
e.stop(), this.removeAnimation(e);
|
|
9474
9474
|
} catch (t) {
|
|
9475
|
-
|
|
9475
|
+
be.error("Error during animation stop", t);
|
|
9476
9476
|
}
|
|
9477
9477
|
this.dispatchStopped();
|
|
9478
9478
|
}
|
|
@@ -9601,7 +9601,7 @@ var yG = class {
|
|
|
9601
9601
|
/** Mocking point for tests to capture requestAnimationFrame callbacks. */
|
|
9602
9602
|
scheduleAnimationFrame(e) {
|
|
9603
9603
|
this.requestId = $t().requestAnimationFrame((t) => {
|
|
9604
|
-
e(t).catch((i) =>
|
|
9604
|
+
e(t).catch((i) => be.error(i));
|
|
9605
9605
|
});
|
|
9606
9606
|
}
|
|
9607
9607
|
/** Mocking point for tests to skip animations to a specific point in time. */
|
|
@@ -9646,7 +9646,7 @@ var yG = class {
|
|
|
9646
9646
|
this.requestId !== null && (cancelAnimationFrame(this.requestId), this.requestId = null, this.startBatch());
|
|
9647
9647
|
}
|
|
9648
9648
|
failsafeOnError(e, t = !0) {
|
|
9649
|
-
|
|
9649
|
+
be.error("Error during animation, skipping animations", e), t && this.cancelAnimation();
|
|
9650
9650
|
}
|
|
9651
9651
|
startBatch(e) {
|
|
9652
9652
|
this.debug(`AnimationManager - startBatch() with skipAnimations=${e}.`), this.reset(), this.batch.destroy(), this.batch = new M2(this.defaultDuration * 1.5), e === !0 && this.batch.skip();
|
|
@@ -10155,9 +10155,9 @@ var rX = ["rangeX", "rangeY", "ratioX", "ratioY", "autoScaledAxes"], aX = class
|
|
|
10155
10155
|
return this.zoomModule;
|
|
10156
10156
|
}
|
|
10157
10157
|
updateZoom(e, t) {
|
|
10158
|
-
if (t?.x && (t.x.min < 0 || t.x.max > 1) && (
|
|
10158
|
+
if (t?.x && (t.x.min < 0 || t.x.max > 1) && (be.warnOnce(
|
|
10159
10159
|
`Attempted to update x-axis zoom to an invalid ratio of [{ min: ${t.x.min}, max: ${t.x.max} }], expecting a ratio of 0 to 1, ignoring.`
|
|
10160
|
-
), t.x = void 0), t?.y && (t.y.min < 0 || t.y.max > 1) && (
|
|
10160
|
+
), t.x = void 0), t?.y && (t.y.min < 0 || t.y.max > 1) && (be.warnOnce(
|
|
10161
10161
|
`Attempted to update y-axis zoom to an invalid ratio of [{ min: ${t.y.min}, max: ${t.y.max} }], expecting a ratio of 0 to 1, ignoring.`
|
|
10162
10162
|
), t.y = void 0), this.axisZoomManagers.size === 0) {
|
|
10163
10163
|
const o = this.state.stateId();
|
|
@@ -10207,7 +10207,7 @@ var rX = ["rangeX", "rangeY", "ratioX", "ratioY", "autoScaledAxes"], aX = class
|
|
|
10207
10207
|
if (o === void 0 || !o.x && !o.y)
|
|
10208
10208
|
return !1;
|
|
10209
10209
|
if (!(t.width > 0 && t.height > 0 && Math.abs(i.width) <= Math.abs(t.width) && Math.abs(i.height) <= Math.abs(t.height)))
|
|
10210
|
-
return
|
|
10210
|
+
return be.warnOnce("cannot pan to target BBox - chart too small?"), !1;
|
|
10211
10211
|
const n = nX(t, o, i);
|
|
10212
10212
|
return this.independentAxes ? (this.updatePrimaryAxisZoom(e, "x", n.x), this.updatePrimaryAxisZoom(e, "y", n.y)) : this.updateZoom(e, n), !0;
|
|
10213
10213
|
}
|
|
@@ -10362,13 +10362,13 @@ var rX = ["rangeX", "rangeY", "ratioX", "ratioY", "autoScaledAxes"], aX = class
|
|
|
10362
10362
|
return;
|
|
10363
10363
|
const [l, c] = [Math.min(s, n), Math.max(s, n)];
|
|
10364
10364
|
if (r < l || r > c) {
|
|
10365
|
-
|
|
10365
|
+
be.warnOnce(
|
|
10366
10366
|
`Invalid range start [${e.start}], expecting a value between [${i.scale.invert?.(s)}] and [${i.scale.invert?.(n)}], ignoring.`
|
|
10367
10367
|
);
|
|
10368
10368
|
return;
|
|
10369
10369
|
}
|
|
10370
10370
|
if (a < l || a > c) {
|
|
10371
|
-
|
|
10371
|
+
be.warnOnce(
|
|
10372
10372
|
`Invalid range end [${e.end}], expecting a value between [${i.scale.invert?.(s)}] and [${i.scale.invert?.(n)}], ignoring.`
|
|
10373
10373
|
);
|
|
10374
10374
|
return;
|
|
@@ -10540,7 +10540,7 @@ var rX = ["rangeX", "rangeY", "ratioX", "ratioY", "autoScaledAxes"], aX = class
|
|
|
10540
10540
|
}
|
|
10541
10541
|
}
|
|
10542
10542
|
warnFixed(e, t) {
|
|
10543
|
-
|
|
10543
|
+
be.warnOnce(
|
|
10544
10544
|
`The legend item with seriesId [${e}] and itemId [${t}] is not configurable, this series item cannot be toggled through the legend.`
|
|
10545
10545
|
);
|
|
10546
10546
|
}
|
|
@@ -11040,7 +11040,7 @@ var TG = class {
|
|
|
11040
11040
|
if (o < (e.get(i)?.length ?? 1 / 0))
|
|
11041
11041
|
continue;
|
|
11042
11042
|
const s = i == null ? "" : ` for ${i}`;
|
|
11043
|
-
|
|
11043
|
+
be.warnOnce(`the key '${t.property}' was not found in any data element${s}.`);
|
|
11044
11044
|
}
|
|
11045
11045
|
}
|
|
11046
11046
|
processScopeCache() {
|
|
@@ -11353,7 +11353,7 @@ var TG = class {
|
|
|
11353
11353
|
if ("invalidValue" in c)
|
|
11354
11354
|
g = c.invalidValue;
|
|
11355
11355
|
else
|
|
11356
|
-
return this.mode !== "integrated" &&
|
|
11356
|
+
return this.mode !== "integrated" && be.warnOnce(
|
|
11357
11357
|
`invalid value of type [${typeof g}] for [${c.scopes} / ${c.id}] ignored:`,
|
|
11358
11358
|
`[${g}]`
|
|
11359
11359
|
), ib;
|
|
@@ -11369,7 +11369,7 @@ var TG = class {
|
|
|
11369
11369
|
continue;
|
|
11370
11370
|
const s = RG(i.property);
|
|
11371
11371
|
if (s == null) {
|
|
11372
|
-
|
|
11372
|
+
be.warnOnce("Invalid property path [%s]", i.property);
|
|
11373
11373
|
continue;
|
|
11374
11374
|
}
|
|
11375
11375
|
const n = SX(s);
|
|
@@ -11380,9 +11380,9 @@ var TG = class {
|
|
|
11380
11380
|
};
|
|
11381
11381
|
function xX(e) {
|
|
11382
11382
|
const t = (i, o) => {
|
|
11383
|
-
o.length > 0 && (
|
|
11383
|
+
o.length > 0 && (be.log(`DataModel.processData() - ${i}`), be.table(o));
|
|
11384
11384
|
};
|
|
11385
|
-
|
|
11385
|
+
be.log("DataModel.processData() - processedData", e), t("Key Domains", e.domain.keys), t("Group Domains", e.domain.groups ?? []), t("Value Domains", e.domain.values), t("Aggregate Domains", e.domain.aggValues ?? []);
|
|
11386
11386
|
}
|
|
11387
11387
|
var LG = class yl {
|
|
11388
11388
|
constructor(t, i) {
|
|
@@ -12733,7 +12733,7 @@ var _m = class {
|
|
|
12733
12733
|
break;
|
|
12734
12734
|
}
|
|
12735
12735
|
case 3:
|
|
12736
|
-
|
|
12736
|
+
be.error("Command.Curve distanceSquare not implemented");
|
|
12737
12737
|
break;
|
|
12738
12738
|
case 2: {
|
|
12739
12739
|
const p = n[h++], g = n[h++], f = n[h++], y = n[h++], m = n[h++], v = p + Math.cos(y) * f, C = g + Math.sin(y) * f, S = !!n[h++];
|
|
@@ -14041,10 +14041,10 @@ function DZ() {
|
|
|
14041
14041
|
const { userAgent: e } = $t("navigator");
|
|
14042
14042
|
if (bZ.test(e)) {
|
|
14043
14043
|
const t = parseFloat(CZ.exec(e)?.[1] ?? "0"), i = Math.floor(t) > 16;
|
|
14044
|
-
return i ||
|
|
14044
|
+
return i || be.warnOnce(`Unsupported Safari version: ${t}; ${e}`), !i;
|
|
14045
14045
|
} else if (SZ.test(e) && !wZ.test(e) && !MZ.test(e)) {
|
|
14046
14046
|
const t = parseInt(xZ.exec(e)?.[1] ?? "0", 10), i = t > 126;
|
|
14047
|
-
return i ||
|
|
14047
|
+
return i || be.warnOnce(`Unsupported Chrome version: ${t}; ${e}`), !i;
|
|
14048
14048
|
}
|
|
14049
14049
|
return !1;
|
|
14050
14050
|
}
|
|
@@ -14105,9 +14105,9 @@ var Ei = class YG extends eG {
|
|
|
14105
14105
|
try {
|
|
14106
14106
|
await this.performUpdate(d);
|
|
14107
14107
|
} catch (u) {
|
|
14108
|
-
|
|
14108
|
+
be.error("update error", u);
|
|
14109
14109
|
}
|
|
14110
|
-
}).catch((u) =>
|
|
14110
|
+
}).catch((u) => be.errorOnce(u));
|
|
14111
14111
|
}), this._performUpdateSplits = {}, this.axes = [], this.series = [], this._cachedData = void 0, this.onSeriesNodeClick = (d) => {
|
|
14112
14112
|
this.fireEvent({ ...d, type: "seriesNodeClick" });
|
|
14113
14113
|
}, this.onSeriesNodeDoubleClick = (d) => {
|
|
@@ -14252,7 +14252,7 @@ var Ei = class YG extends eG {
|
|
|
14252
14252
|
} finally {
|
|
14253
14253
|
this.destroyed || this._pendingFactoryUpdatesCount--;
|
|
14254
14254
|
}
|
|
14255
|
-
}).catch((i) =>
|
|
14255
|
+
}).catch((i) => be.errorOnce(i)));
|
|
14256
14256
|
}
|
|
14257
14257
|
update(t = 0, i) {
|
|
14258
14258
|
if (this.destroyed)
|
|
@@ -14362,7 +14362,7 @@ var Ei = class YG extends eG {
|
|
|
14362
14362
|
this.ctx.domManager.updateCanvasLabel(this.getAriaLabel());
|
|
14363
14363
|
}
|
|
14364
14364
|
checkUpdateShortcut(t) {
|
|
14365
|
-
return this.destroyed ? !0 : this.updateShortcutCount > 3 ? (
|
|
14365
|
+
return this.destroyed ? !0 : this.updateShortcutCount > 3 ? (be.warn(
|
|
14366
14366
|
"exceeded the maximum number of simultaneous updates (4), discarding changes and rendering",
|
|
14367
14367
|
this.updateRequestors
|
|
14368
14368
|
), !1) : this.performUpdateType <= t ? (this.updateShortcutCount++, !0) : !1;
|
|
@@ -14414,7 +14414,7 @@ var Ei = class YG extends eG {
|
|
|
14414
14414
|
for (const o of i.directions) {
|
|
14415
14415
|
const s = t[o];
|
|
14416
14416
|
if (!s) {
|
|
14417
|
-
|
|
14417
|
+
be.warnOnce(
|
|
14418
14418
|
`no available axis for direction [${o}]; check series and axes configuration.`
|
|
14419
14419
|
);
|
|
14420
14420
|
return;
|
|
@@ -14423,7 +14423,7 @@ var Ei = class YG extends eG {
|
|
|
14423
14423
|
(a) => !a.keys.length || n.some((l) => a.keys.includes(l))
|
|
14424
14424
|
);
|
|
14425
14425
|
if (!r) {
|
|
14426
|
-
|
|
14426
|
+
be.warnOnce(
|
|
14427
14427
|
`no matching axis for direction [${o}] and keys [${n}]; check series and axes configuration.`
|
|
14428
14428
|
);
|
|
14429
14429
|
return;
|
|
@@ -14500,7 +14500,7 @@ var Ei = class YG extends eG {
|
|
|
14500
14500
|
if (c.fill == null)
|
|
14501
14501
|
continue;
|
|
14502
14502
|
const u = a.get(l), h = r[u] ?? (r[u] = {});
|
|
14503
|
-
h[i = d.text] ?? (h[i] = c.fill), h[d.text] !== c.fill &&
|
|
14503
|
+
h[i = d.text] ?? (h[i] = c.fill), h[d.text] !== c.fill && be.warnOnce(
|
|
14504
14504
|
`legend item '${d.text}' has multiple fill colors, this may cause unexpected behaviour.`
|
|
14505
14505
|
);
|
|
14506
14506
|
}
|
|
@@ -14529,7 +14529,7 @@ var Ei = class YG extends eG {
|
|
|
14529
14529
|
const s = `Chart.waitForUpdate() timeout of ${t} reached - first chart update taking too long.`;
|
|
14530
14530
|
if (i)
|
|
14531
14531
|
throw new Error(s);
|
|
14532
|
-
|
|
14532
|
+
be.warnOnce(s);
|
|
14533
14533
|
}
|
|
14534
14534
|
Y5() && await FK();
|
|
14535
14535
|
}
|
|
@@ -15867,7 +15867,7 @@ var GZ = ["top", "right", "bottom", "left"], ex = class QG extends QS {
|
|
|
15867
15867
|
const n = 10;
|
|
15868
15868
|
do
|
|
15869
15869
|
if (o = i ?? this.getDefaultState(), i = this.updateAxesPass(new Map(o.axisAreaWidths), t.clone()), s++ > n) {
|
|
15870
|
-
|
|
15870
|
+
be.warn("Max iterations reached. Unable to stabilize axes layout.");
|
|
15871
15871
|
break;
|
|
15872
15872
|
}
|
|
15873
15873
|
while (!this.isLayoutStable(i, o));
|
|
@@ -17075,9 +17075,9 @@ var yz = Rt((e) => qn(e) && e !== 0, "a non-zero number"), yh = class extends Rd
|
|
|
17075
17075
|
}
|
|
17076
17076
|
normaliseDataDomain(e) {
|
|
17077
17077
|
const { min: t, max: i } = this, { extent: o, clipped: s } = UA(e, t, i);
|
|
17078
|
-
return o[0] < 0 && o[1] > 0 || e[0] < 0 && e[1] > 0 ? (
|
|
17078
|
+
return o[0] < 0 && o[1] > 0 || e[0] < 0 && e[1] > 0 ? (be.warn(
|
|
17079
17079
|
"The log axis domain crosses zero, the chart data cannot be rendered. See log axis documentation for more information."
|
|
17080
|
-
), { domain: [], clipped: s }) : o[0] === 0 || o[1] === 0 || e[0] === 0 || e[1] === 0 ? (
|
|
17080
|
+
), { domain: [], clipped: s }) : o[0] === 0 || o[1] === 0 || e[0] === 0 || e[1] === 0 ? (be.warn(
|
|
17081
17081
|
"The log axis domain contains a value of 0, the chart data cannot be rendered. See log axis documentation for more information."
|
|
17082
17082
|
), { domain: [], clipped: s }) : { domain: o, clipped: s };
|
|
17083
17083
|
}
|
|
@@ -18226,7 +18226,7 @@ var Sf = "legend-visibility", fM = "legend-other-series", tn = class extends Ye
|
|
|
18226
18226
|
const p = (f) => f.width === a.width && f.height === a.height, g = this.maxWidth !== void 0 && this.maxHeight !== void 0;
|
|
18227
18227
|
do {
|
|
18228
18228
|
if (h++ > 10) {
|
|
18229
|
-
|
|
18229
|
+
be.warn("unable to find stable legend layout.");
|
|
18230
18230
|
break;
|
|
18231
18231
|
}
|
|
18232
18232
|
a = l;
|
|
@@ -19873,10 +19873,10 @@ var Nq = 0.125, Oq = 0.25, Sk = class extends Td {
|
|
|
19873
19873
|
const re = oe != null ? x[oe] : void 0, Se = ee != null ? x[ee] : void 0;
|
|
19874
19874
|
let Te = 0, pe = 0;
|
|
19875
19875
|
for (let fe = 0; fe <= X; fe += 1) {
|
|
19876
|
-
const
|
|
19877
|
-
if (Number.isFinite(
|
|
19876
|
+
const Ce = ne[fe];
|
|
19877
|
+
if (Number.isFinite(Ce)) {
|
|
19878
19878
|
const Ge = re == null || Number.isFinite(re[fe]), Je = Se == null || Number.isFinite(Se[fe]);
|
|
19879
|
-
Ge && (Te +=
|
|
19879
|
+
Ge && (Te += Ce), Je && (pe += Ce);
|
|
19880
19880
|
}
|
|
19881
19881
|
}
|
|
19882
19882
|
const U = te[te.length - 1];
|
|
@@ -19884,12 +19884,12 @@ var Nq = 0.125, Oq = 0.25, Sk = class extends Td {
|
|
|
19884
19884
|
if (!he && Array.isArray(U) && U.length === 1)
|
|
19885
19885
|
te[te.length - 1] = { skip: 1 };
|
|
19886
19886
|
else {
|
|
19887
|
-
const fe = z(Y, Te),
|
|
19888
|
-
Array.isArray(U) ? U.push(fe) : U != null && (U.skip += 1), te.push(he ? [
|
|
19887
|
+
const fe = z(Y, Te), Ce = z(Y, pe);
|
|
19888
|
+
Array.isArray(U) ? U.push(fe) : U != null && (U.skip += 1), te.push(he ? [Ce] : { skip: 0 });
|
|
19889
19889
|
}
|
|
19890
19890
|
else {
|
|
19891
|
-
const fe = Math.max(Te, pe),
|
|
19892
|
-
Array.isArray(U) ? U.push(
|
|
19891
|
+
const fe = Math.max(Te, pe), Ce = z(Y, fe);
|
|
19892
|
+
Array.isArray(U) ? U.push(Ce) : U != null ? (U.skip += 1, te.push([Ce])) : te.push([Ce]);
|
|
19893
19893
|
}
|
|
19894
19894
|
}
|
|
19895
19895
|
return B(te);
|
|
@@ -20252,7 +20252,7 @@ var Fq = {
|
|
|
20252
20252
|
function xk(e, t) {
|
|
20253
20253
|
for (const i of t) {
|
|
20254
20254
|
const o = i.datum;
|
|
20255
|
-
o === void 0 ?
|
|
20255
|
+
o === void 0 ? be.error("undefined datum") : e.addValue(i, o);
|
|
20256
20256
|
}
|
|
20257
20257
|
}
|
|
20258
20258
|
function wk(e, t) {
|
|
@@ -20679,16 +20679,16 @@ var _q = 0, Vq = 1, Hq = 2, Wq = 3, jq = 4, fx = class extends jz {
|
|
|
20679
20679
|
opacity: re,
|
|
20680
20680
|
crossScale: Se = 1
|
|
20681
20681
|
}) => {
|
|
20682
|
-
const Te = ne !== y, pe = c.convert(oe), U = c.convert(K), fe = c.convert(ce),
|
|
20683
|
-
x:
|
|
20684
|
-
y:
|
|
20685
|
-
width:
|
|
20686
|
-
height:
|
|
20682
|
+
const Te = ne !== y, pe = c.convert(oe), U = c.convert(K), fe = c.convert(ce), Ce = this.getBarDirection() === "x", Ge = Y * 0.5 * (1 - Se), Je = {
|
|
20683
|
+
x: Ce ? Math.min(pe, U) : ee + Ge,
|
|
20684
|
+
y: Ce ? ee + Ge : Math.min(pe, U),
|
|
20685
|
+
width: Ce ? Math.abs(U - pe) : Y * Se,
|
|
20686
|
+
height: Ce ? Y * Se : Math.abs(U - pe)
|
|
20687
20687
|
}, tt = new Re(Je.x, Je.y, Je.width, Je.height), Pt = {
|
|
20688
|
-
x:
|
|
20689
|
-
y:
|
|
20690
|
-
width:
|
|
20691
|
-
height:
|
|
20688
|
+
x: Ce ? Math.min(R, fe) : ee + Ge,
|
|
20689
|
+
y: Ce ? ee + Ge : Math.min(R, fe),
|
|
20690
|
+
width: Ce ? Math.abs(R - fe) : Y * Se,
|
|
20691
|
+
height: Ce ? Y * Se : Math.abs(R - fe)
|
|
20692
20692
|
}, at = this.shouldFlipXY() ? Je.height : Je.width;
|
|
20693
20693
|
return {
|
|
20694
20694
|
series: this,
|
|
@@ -20712,9 +20712,9 @@ var _q = 0, Vq = 1, Hq = 2, Wq = 3, jq = 4, fx = class extends jz {
|
|
|
20712
20712
|
height: Pt.height,
|
|
20713
20713
|
midPoint: { x: Je.x + Je.width / 2, y: Je.y + Je.height / 2 },
|
|
20714
20714
|
opacity: re,
|
|
20715
|
-
topLeftCornerRadius:
|
|
20715
|
+
topLeftCornerRadius: Ce !== Te,
|
|
20716
20716
|
topRightCornerRadius: Te,
|
|
20717
|
-
bottomRightCornerRadius:
|
|
20717
|
+
bottomRightCornerRadius: Ce === Te,
|
|
20718
20718
|
bottomLeftCornerRadius: !Te,
|
|
20719
20719
|
clipBBox: tt,
|
|
20720
20720
|
crisp: k,
|
|
@@ -20722,7 +20722,7 @@ var _q = 0, Vq = 1, Hq = 2, Wq = 3, jq = 4, fx = class extends jz {
|
|
|
20722
20722
|
text: he,
|
|
20723
20723
|
...Kz({
|
|
20724
20724
|
isUpward: Te,
|
|
20725
|
-
isVertical: !
|
|
20725
|
+
isVertical: !Ce,
|
|
20726
20726
|
placement: f.placement,
|
|
20727
20727
|
padding: f.padding,
|
|
20728
20728
|
rect: Je
|
|
@@ -23476,7 +23476,7 @@ var ct = class extends kn {
|
|
|
23476
23476
|
}
|
|
23477
23477
|
isValid() {
|
|
23478
23478
|
const e = super.isValid();
|
|
23479
|
-
return this.innerRadiusRatio == null && this.innerRadiusOffset == null ? (
|
|
23479
|
+
return this.innerRadiusRatio == null && this.innerRadiusOffset == null ? (be.warnOnce(
|
|
23480
23480
|
"Either an [innerRadiusRatio] or an [innerRadiusOffset] must be set to render a donut series."
|
|
23481
23481
|
), !1) : e;
|
|
23482
23482
|
}
|
|
@@ -23865,7 +23865,7 @@ var i8 = /* @__PURE__ */ ((e) => (e[e.BACKGROUND = 0] = "BACKGROUND", e[e.FOREGR
|
|
|
23865
23865
|
});
|
|
23866
23866
|
for (const f of this.processedData?.defs?.values ?? []) {
|
|
23867
23867
|
const { id: y, missing: m, property: v } = f, C = GA(this, m);
|
|
23868
|
-
y !== "angleRaw" && C > 0 &&
|
|
23868
|
+
y !== "angleRaw" && C > 0 && be.warnOnce(
|
|
23869
23869
|
`no value was found for the key '${String(v)}' on ${C} data element${C > 1 ? "s" : ""}`
|
|
23870
23870
|
);
|
|
23871
23871
|
}
|
|
@@ -24932,7 +24932,7 @@ var tQ = class extends Wy {
|
|
|
24932
24932
|
});
|
|
24933
24933
|
for (const y of this.processedData?.defs?.values ?? []) {
|
|
24934
24934
|
const { id: m, missing: v, property: C } = y, S = GA(this, v);
|
|
24935
|
-
m !== "angleRaw" && S > 0 &&
|
|
24935
|
+
m !== "angleRaw" && S > 0 && be.warnOnce(
|
|
24936
24936
|
`no value was found for the key '${String(C)}' on ${S} data element${S > 1 ? "s" : ""}`
|
|
24937
24937
|
);
|
|
24938
24938
|
}
|
|
@@ -25614,7 +25614,7 @@ function oQ() {
|
|
|
25614
25614
|
}
|
|
25615
25615
|
function sQ() {
|
|
25616
25616
|
for (const e of Pa.modules) {
|
|
25617
|
-
if (e.packageType === "enterprise" && !PX(e) &&
|
|
25617
|
+
if (e.packageType === "enterprise" && !PX(e) && be.errorOnce("Unexpected enterprise module registered: " + e.identifier), e.type === "root" && e.themeTemplate)
|
|
25618
25618
|
for (const t of e.chartTypes)
|
|
25619
25619
|
OD.set(t, e.themeTemplate);
|
|
25620
25620
|
if (e.type === "series") {
|
|
@@ -25634,7 +25634,7 @@ function sQ() {
|
|
|
25634
25634
|
}
|
|
25635
25635
|
if (Pa.hasEnterpriseModules()) {
|
|
25636
25636
|
const e = NX();
|
|
25637
|
-
e.length > 0 &&
|
|
25637
|
+
e.length > 0 && be.errorOnce("Enterprise modules expected but not registered: ", e);
|
|
25638
25638
|
}
|
|
25639
25639
|
}
|
|
25640
25640
|
var og = class extends wA {
|
|
@@ -26571,7 +26571,7 @@ function vQ(e, t, i, o, s, n, r) {
|
|
|
26571
26571
|
case "hollow-candlestick":
|
|
26572
26572
|
return MQ(c, e, a);
|
|
26573
26573
|
default:
|
|
26574
|
-
return
|
|
26574
|
+
return be.warnOnce(`unknown chart type: ${t}; expected one of: ${gQ.join(", ")}`), uP(c, a);
|
|
26575
26575
|
}
|
|
26576
26576
|
}
|
|
26577
26577
|
function bQ(e, t) {
|
|
@@ -27001,7 +27001,7 @@ function hP(e, t) {
|
|
|
27001
27001
|
if (i.length && !t) {
|
|
27002
27002
|
o && (i = ["AgCharts.createGauge"]);
|
|
27003
27003
|
let r = "ag-charts-enterprise", a = "https://www.ag-grid.com/charts/javascript/installation/";
|
|
27004
|
-
e.mode === "integrated" && (r = "ag-grid-charts-enterprise' or 'ag-grid-enterprise/charts-enterprise", a = "https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/"),
|
|
27004
|
+
e.mode === "integrated" && (r = "ag-grid-charts-enterprise' or 'ag-grid-enterprise/charts-enterprise", a = "https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/"), be.warnOnce(
|
|
27005
27005
|
[
|
|
27006
27006
|
`unable to use these enterprise features as '${r}' has not been loaded:`,
|
|
27007
27007
|
"",
|
|
@@ -27999,7 +27999,7 @@ function YQ(e) {
|
|
|
27999
27999
|
return e;
|
|
28000
28000
|
if (e == null || typeof e == "string") {
|
|
28001
28001
|
const i = _k[e];
|
|
28002
|
-
return i ? i() : (
|
|
28002
|
+
return i ? i() : (be.warnOnce(`the theme [${e}] is invalid, using [ag-default] instead.`), Np());
|
|
28003
28003
|
}
|
|
28004
28004
|
const { errors: t } = SS(e, ZQ, "theme");
|
|
28005
28005
|
if (!t.length) {
|
|
@@ -28007,7 +28007,7 @@ function YQ(e) {
|
|
|
28007
28007
|
return new o.constructor(i);
|
|
28008
28008
|
}
|
|
28009
28009
|
for (const { message: i } of t)
|
|
28010
|
-
|
|
28010
|
+
be.warnOnce(i);
|
|
28011
28011
|
return Np();
|
|
28012
28012
|
}
|
|
28013
28013
|
function XQ(e) {
|
|
@@ -28214,7 +28214,7 @@ var ZQ = {
|
|
|
28214
28214
|
crosshairLabelTextColor: s
|
|
28215
28215
|
}, { valid: r, errors: a } = SS(i.theme.params, n);
|
|
28216
28216
|
for (const { message: l } of a)
|
|
28217
|
-
|
|
28217
|
+
be.warnOnce(l);
|
|
28218
28218
|
return st(r, o);
|
|
28219
28219
|
}
|
|
28220
28220
|
resolveThemeOperations(t, i) {
|
|
@@ -28238,7 +28238,7 @@ var ZQ = {
|
|
|
28238
28238
|
}
|
|
28239
28239
|
getSeriesGroupingOptions(t) {
|
|
28240
28240
|
const i = zs.isGroupable(t.type), o = zs.isStackable(t.type), s = zs.isStackedByDefault(t.type);
|
|
28241
|
-
t.grouped && !i &&
|
|
28241
|
+
t.grouped && !i && be.warnOnce(`unsupported grouping of series type "${t.type}".`), (t.stacked || t.stackGroup) && !o && be.warnOnce(`unsupported stacking of series type "${t.type}".`);
|
|
28242
28242
|
let { grouped: n, stacked: r } = t;
|
|
28243
28243
|
return r ?? (r = (s || t.stackGroup != null) && !(i && n)), n ?? (n = !0), {
|
|
28244
28244
|
stacked: o && r,
|
|
@@ -28354,7 +28354,7 @@ var ZQ = {
|
|
|
28354
28354
|
if (!YX(o)) {
|
|
28355
28355
|
delete t.axes;
|
|
28356
28356
|
const s = [...Pl.keys()].join(", ");
|
|
28357
|
-
|
|
28357
|
+
be.warnOnce(`unknown axis type: ${o}; expected one of: ${s}`);
|
|
28358
28358
|
}
|
|
28359
28359
|
}
|
|
28360
28360
|
}
|
|
@@ -28362,7 +28362,7 @@ var ZQ = {
|
|
|
28362
28362
|
t.series = t.series?.filter(({ type: i }) => {
|
|
28363
28363
|
if (i == null || KX(i) || MX(i))
|
|
28364
28364
|
return !0;
|
|
28365
|
-
|
|
28365
|
+
be.warnOnce(
|
|
28366
28366
|
`unknown series type: ${JSON.stringify(i)}; expected one of: ${NG.seriesTypes.join(", ")}`
|
|
28367
28367
|
);
|
|
28368
28368
|
});
|
|
@@ -28372,7 +28372,7 @@ var ZQ = {
|
|
|
28372
28372
|
if (i && i.length > 1 && i.some((o) => zs.isSolo(o.type))) {
|
|
28373
28373
|
const o = this.optionsType(t);
|
|
28374
28374
|
if (zs.isSolo(o))
|
|
28375
|
-
|
|
28375
|
+
be.warn(
|
|
28376
28376
|
`series[0] of type '${o}' is incompatible with other series types. Only processing series[0]`
|
|
28377
28377
|
), t.series = i.slice(0, 1);
|
|
28378
28378
|
else {
|
|
@@ -28380,7 +28380,7 @@ var ZQ = {
|
|
|
28380
28380
|
i,
|
|
28381
28381
|
(a) => zs.isSolo(a.type) ? "solo" : "nonSolo"
|
|
28382
28382
|
), r = Uj(s.map((a) => a.type)).join(", ");
|
|
28383
|
-
|
|
28383
|
+
be.warn(`Unable to mix these series types with the lead series type: ${r}`), t.series = n;
|
|
28384
28384
|
}
|
|
28385
28385
|
}
|
|
28386
28386
|
}
|
|
@@ -29342,7 +29342,7 @@ lr(E, {
|
|
|
29342
29342
|
function Wk() {
|
|
29343
29343
|
return (e, t) => {
|
|
29344
29344
|
const i = [`Property [${e}] is deprecated.`, t].filter(Boolean).join(" ");
|
|
29345
|
-
|
|
29345
|
+
be.warnOnce(i);
|
|
29346
29346
|
};
|
|
29347
29347
|
}
|
|
29348
29348
|
function sJ(e, t) {
|
|
@@ -29657,7 +29657,7 @@ var wJ = p8, MJ = class extends qS {
|
|
|
29657
29657
|
}
|
|
29658
29658
|
getDatumAriaText(e, t) {
|
|
29659
29659
|
if (!(e instanceof this.NodeClass)) {
|
|
29660
|
-
|
|
29660
|
+
be.error(`datum is not HierarchyNode: ${JSON.stringify(e)}`);
|
|
29661
29661
|
return;
|
|
29662
29662
|
}
|
|
29663
29663
|
return this.ctx.localeManager.t("ariaAnnounceHierarchyDatum", {
|
|
@@ -48841,7 +48841,7 @@ var {
|
|
|
48841
48841
|
if (te == null && J) {
|
|
48842
48842
|
const Y = Math.min(...S), ne = Math.max(...S), ce = { value: n, segmentStart: Y, segmentEnd: ne };
|
|
48843
48843
|
if (d.enabled) {
|
|
48844
|
-
const U = Math.min(l, F / 2, R / 2) * (y.isReversed() ? -1 : 1), fe = s ? U : 0,
|
|
48844
|
+
const U = Math.min(l, F / 2, R / 2) * (y.isReversed() ? -1 : 1), fe = s ? U : 0, Ce = s ? 0 : U;
|
|
48845
48845
|
w.push({
|
|
48846
48846
|
series: this,
|
|
48847
48847
|
itemId: "value",
|
|
@@ -48852,9 +48852,9 @@ var {
|
|
|
48852
48852
|
},
|
|
48853
48853
|
type: 0,
|
|
48854
48854
|
x0: i + L - fe - j,
|
|
48855
|
-
y0: o + N -
|
|
48855
|
+
y0: o + N - Ce - $,
|
|
48856
48856
|
x1: i + B + fe + j,
|
|
48857
|
-
y1: o + z +
|
|
48857
|
+
y1: o + z + Ce + $,
|
|
48858
48858
|
clipX0: void 0,
|
|
48859
48859
|
clipY0: void 0,
|
|
48860
48860
|
clipX1: void 0,
|
|
@@ -48898,7 +48898,7 @@ var {
|
|
|
48898
48898
|
te ?? (te = S);
|
|
48899
48899
|
const Y = i + L - j, ne = o + N - $, ce = i + B + j, he = o + z + $;
|
|
48900
48900
|
for (let re = 0; re < te.length - 1; re += 1) {
|
|
48901
|
-
const Se = te[re + 0], Te = te[re + 1], pe = { value: n, segmentStart: Se, segmentEnd: Te }, U = re === 0, fe = re === te.length - 2,
|
|
48901
|
+
const Se = te[re + 0], Te = te[re + 1], pe = { value: n, segmentStart: Se, segmentEnd: Te }, U = re === 0, fe = re === te.length - 2, Ce = C.convert(Se), Ge = C.convert(Te), Je = J || U ? l : 0, tt = J || fe ? l : 0, Pt = s ? Je : tt, at = tt, Vt = s ? tt : Je, mo = Je;
|
|
48902
48902
|
d.enabled && w.push({
|
|
48903
48903
|
series: this,
|
|
48904
48904
|
itemId: `value-${re}`,
|
|
@@ -48908,8 +48908,8 @@ var {
|
|
|
48908
48908
|
/* Node */
|
|
48909
48909
|
},
|
|
48910
48910
|
type: 0,
|
|
48911
|
-
x0: i + (s ?
|
|
48912
|
-
y0: o + (s ? N :
|
|
48911
|
+
x0: i + (s ? Ce : L),
|
|
48912
|
+
y0: o + (s ? N : Ce),
|
|
48913
48913
|
x1: i + (s ? Ge : P),
|
|
48914
48914
|
y1: o + (s ? O : Ge),
|
|
48915
48915
|
clipX0: Y,
|
|
@@ -48932,8 +48932,8 @@ var {
|
|
|
48932
48932
|
/* Node */
|
|
48933
48933
|
},
|
|
48934
48934
|
type: 0,
|
|
48935
|
-
x0: i + (s ?
|
|
48936
|
-
y0: o + (s ? N :
|
|
48935
|
+
x0: i + (s ? Ce : L),
|
|
48936
|
+
y0: o + (s ? N : Ce),
|
|
48937
48937
|
x1: i + (s ? Ge : P),
|
|
48938
48938
|
y1: o + (s ? O : Ge),
|
|
48939
48939
|
clipX0: void 0,
|
|
@@ -48962,7 +48962,7 @@ var {
|
|
|
48962
48962
|
fillOpacity: pe,
|
|
48963
48963
|
stroke: U,
|
|
48964
48964
|
strokeWidth: fe,
|
|
48965
|
-
strokeOpacity:
|
|
48965
|
+
strokeOpacity: Ce,
|
|
48966
48966
|
lineDash: Ge,
|
|
48967
48967
|
lineDashOffset: Je
|
|
48968
48968
|
} = ne, tt = this.getTargetPoint(ne), Pt = fhe(ne.rotation + ee[ne.placement]);
|
|
@@ -48983,7 +48983,7 @@ var {
|
|
|
48983
48983
|
fill: Te,
|
|
48984
48984
|
fillOpacity: pe,
|
|
48985
48985
|
stroke: U,
|
|
48986
|
-
strokeOpacity:
|
|
48986
|
+
strokeOpacity: Ce,
|
|
48987
48987
|
strokeWidth: fe,
|
|
48988
48988
|
lineDash: Ge,
|
|
48989
48989
|
lineDashOffset: Je,
|
|
@@ -57532,14 +57532,14 @@ var DL = class extends E.HierarchySeries {
|
|
|
57532
57532
|
meta: 0
|
|
57533
57533
|
/* CenterCircle */
|
|
57534
57534
|
};
|
|
57535
|
-
const
|
|
57535
|
+
const Ce = U, Ge = 2 * Math.sqrt(V ** 2 - (z + Ce) ** 2), Je = j < Math.PI ? 2 * z * Math.tan(j * 0.5) : 1 / 0, tt = Math.min(
|
|
57536
57536
|
Ge,
|
|
57537
57537
|
Je
|
|
57538
57538
|
), Pt = Math.PI / 4;
|
|
57539
57539
|
let at, Vt;
|
|
57540
57540
|
return k === 0 ? (at = U, Vt = Math.sqrt(V ** 2 - (at / 2) ** 2) - U / (2 * Math.tan(X * 0.5))) : Zve(j) < Pt ? (at = 2 * z * Math.tan(j * 0.5), Vt = Math.sqrt(V ** 2 - (at / 2) ** 2) - z) : (Vt = 0, at = 0), tt >= Vt ? {
|
|
57541
57541
|
width: tt,
|
|
57542
|
-
height:
|
|
57542
|
+
height: Ce,
|
|
57543
57543
|
meta: 1
|
|
57544
57544
|
/* Parallel */
|
|
57545
57545
|
} : {
|
|
@@ -57565,8 +57565,8 @@ var DL = class extends E.HierarchySeries {
|
|
|
57565
57565
|
pe = 0;
|
|
57566
57566
|
break;
|
|
57567
57567
|
case 1: {
|
|
57568
|
-
const fe = V - (m - ee) * 0.58,
|
|
57569
|
-
pe = Math.min(fe,
|
|
57568
|
+
const fe = V - (m - ee) * 0.58, Ce = Math.sqrt((V - r) ** 2 - (K / 2) ** 2);
|
|
57569
|
+
pe = Math.min(fe, Ce);
|
|
57570
57570
|
break;
|
|
57571
57571
|
}
|
|
57572
57572
|
case 2:
|
|
@@ -57581,14 +57581,14 @@ var DL = class extends E.HierarchySeries {
|
|
|
57581
57581
|
const {
|
|
57582
57582
|
fontStyle: U = "normal",
|
|
57583
57583
|
fontFamily: fe,
|
|
57584
|
-
fontWeight:
|
|
57584
|
+
fontWeight: Ce = "normal",
|
|
57585
57585
|
color: Ge = "black"
|
|
57586
57586
|
} = this.properties.label;
|
|
57587
57587
|
x.label = {
|
|
57588
57588
|
...ne,
|
|
57589
57589
|
fontStyle: U,
|
|
57590
57590
|
fontFamily: fe,
|
|
57591
|
-
fontWeight:
|
|
57591
|
+
fontWeight: Ce,
|
|
57592
57592
|
color: Ge,
|
|
57593
57593
|
labelPlacement: Y,
|
|
57594
57594
|
circleQuarter: Te,
|
|
@@ -57600,14 +57600,14 @@ var DL = class extends E.HierarchySeries {
|
|
|
57600
57600
|
const {
|
|
57601
57601
|
fontStyle: U = "normal",
|
|
57602
57602
|
fontFamily: fe,
|
|
57603
|
-
fontWeight:
|
|
57603
|
+
fontWeight: Ce = "normal",
|
|
57604
57604
|
color: Ge = "black"
|
|
57605
57605
|
} = this.properties.secondaryLabel;
|
|
57606
57606
|
x.secondaryLabel = {
|
|
57607
57607
|
...ce,
|
|
57608
57608
|
fontStyle: U,
|
|
57609
57609
|
fontFamily: fe,
|
|
57610
|
-
fontWeight:
|
|
57610
|
+
fontWeight: Ce,
|
|
57611
57611
|
color: Ge,
|
|
57612
57612
|
labelPlacement: Y,
|
|
57613
57613
|
circleQuarter: Te,
|
|
@@ -58885,14 +58885,14 @@ var {
|
|
|
58885
58885
|
x: re.x + re.width / 2,
|
|
58886
58886
|
y: re.y + re.height / 2
|
|
58887
58887
|
}, Te = G ? J : X, pe = Math.floor(n.strokeWidth) % 2 / 2, U = d ? J : Te, fe = d ? Te : J;
|
|
58888
|
-
let
|
|
58889
|
-
l ? (
|
|
58888
|
+
let Ce, Ge;
|
|
58889
|
+
l ? (Ce = {
|
|
58890
58890
|
x: U + pe,
|
|
58891
58891
|
y: re.y
|
|
58892
58892
|
}, Ge = {
|
|
58893
58893
|
x: fe + pe,
|
|
58894
58894
|
y: re.y + re.height
|
|
58895
|
-
}) : (
|
|
58895
|
+
}) : (Ce = {
|
|
58896
58896
|
x: re.x,
|
|
58897
58897
|
y: U + pe
|
|
58898
58898
|
}, Ge = {
|
|
@@ -58901,11 +58901,11 @@ var {
|
|
|
58901
58901
|
});
|
|
58902
58902
|
const Je = {
|
|
58903
58903
|
// lineTo
|
|
58904
|
-
x: d ? Ge.x :
|
|
58905
|
-
y: d ? Ge.y :
|
|
58904
|
+
x: d ? Ge.x : Ce.x,
|
|
58905
|
+
y: d ? Ge.y : Ce.y,
|
|
58906
58906
|
// moveTo
|
|
58907
|
-
x2: d ?
|
|
58908
|
-
y2: d ?
|
|
58907
|
+
x2: d ? Ce.x : Ge.x,
|
|
58908
|
+
y2: d ? Ce.y : Ge.y,
|
|
58909
58909
|
size: 0
|
|
58910
58910
|
};
|
|
58911
58911
|
p.push(Je);
|
|
@@ -98167,8 +98167,8 @@ function D2e() {
|
|
|
98167
98167
|
var Y = x.quoteChar || '"', Y = (x.newline || (x.newline = this.guessLineEndings(oe, Y)), R = !1, x.delimiter ? D(x.delimiter) && (x.delimiter = x.delimiter(oe), j.meta.delimiter = x.delimiter) : ((Y = ((ne, ce, he, re, Se) => {
|
|
98168
98168
|
var Te, pe, U, fe;
|
|
98169
98169
|
Se = Se || [",", " ", "|", ";", c.RECORD_SEP, c.UNIT_SEP];
|
|
98170
|
-
for (var
|
|
98171
|
-
for (var Ge, Je = Se[
|
|
98170
|
+
for (var Ce = 0; Ce < Se.length; Ce++) {
|
|
98171
|
+
for (var Ge, Je = Se[Ce], tt = 0, Pt = 0, at = 0, Vt = (U = void 0, new m({ comments: re, delimiter: Je, newline: ce, preview: 10 }).parse(ne)), mo = 0; mo < Vt.data.length; mo++) he && $(Vt.data[mo]) ? at++ : (Ge = Vt.data[mo].length, Pt += Ge, U === void 0 ? U = Ge : 0 < Ge && (tt += Math.abs(Ge - U), U = Ge));
|
|
98172
98172
|
0 < Vt.data.length && (Pt /= Vt.data.length - at), (pe === void 0 || tt <= pe) && (fe === void 0 || fe < Pt) && 1.99 < Pt && (pe = tt, Te = Je, fe = Pt);
|
|
98173
98173
|
}
|
|
98174
98174
|
return { successful: !!(x.delimiter = Te), bestDelimiter: Te };
|
|
@@ -98230,12 +98230,12 @@ function D2e() {
|
|
|
98230
98230
|
if (z === V && F[pe + 1] === V) pe++;
|
|
98231
98231
|
else if (z === V || pe === 0 || F[pe - 1] !== V) {
|
|
98232
98232
|
re !== -1 && re < pe + 1 && (re = F.indexOf(M, pe + 1));
|
|
98233
|
-
var U =
|
|
98233
|
+
var U = Ce((Se = Se !== -1 && Se < pe + 1 ? F.indexOf(k, pe + 1) : Se) === -1 ? re : Math.min(re, Se));
|
|
98234
98234
|
if (F.substr(pe + 1 + U, J) === M) {
|
|
98235
98235
|
Y.push(F.substring(G, pe).replace(Te, z)), F[G = pe + 1 + U + J] !== z && (pe = F.indexOf(z, G)), re = F.indexOf(M, G), Se = F.indexOf(k, G);
|
|
98236
98236
|
break;
|
|
98237
98237
|
}
|
|
98238
|
-
if (U =
|
|
98238
|
+
if (U = Ce(Se), F.substring(pe + 1 + U, pe + 1 + U + X) === k) {
|
|
98239
98239
|
if (Y.push(F.substring(G, pe).replace(Te, z)), Je(pe + 1 + U + X), re = F.indexOf(M, G), pe = F.indexOf(z, G), oe && (Pt(), _)) return tt();
|
|
98240
98240
|
if (P && K.length >= P) return tt(!0);
|
|
98241
98241
|
break;
|
|
@@ -98256,7 +98256,7 @@ function D2e() {
|
|
|
98256
98256
|
function fe(at) {
|
|
98257
98257
|
K.push(at), ne = G;
|
|
98258
98258
|
}
|
|
98259
|
-
function
|
|
98259
|
+
function Ce(at) {
|
|
98260
98260
|
var Vt = 0;
|
|
98261
98261
|
return Vt = at !== -1 && (at = F.substring(pe + 1, at)) && at.trim() === "" ? at.length : Vt;
|
|
98262
98262
|
}
|
|
@@ -98273,9 +98273,9 @@ function D2e() {
|
|
|
98273
98273
|
for (let q = 0; q < Vt.length; q++) {
|
|
98274
98274
|
let se = Vt[q];
|
|
98275
98275
|
if (mo[se = D(x.transformHeader) ? x.transformHeader(se, q) : se]) {
|
|
98276
|
-
let
|
|
98277
|
-
for (;
|
|
98278
|
-
Ac.add(
|
|
98276
|
+
let ve, Ae = mo[se];
|
|
98277
|
+
for (; ve = se + "_" + Ae, Ae++, Ac.has(ve); ) ;
|
|
98278
|
+
Ac.add(ve), Vt[q] = ve, mo[se]++, W = !0, (O = O === null ? {} : O)[ve] = se;
|
|
98279
98279
|
} else mo[se] = 1, Vt[q] = se;
|
|
98280
98280
|
Ac.add(se);
|
|
98281
98281
|
}
|
|
@@ -100842,8 +100842,8 @@ var Rr = {
|
|
|
100842
100842
|
if (Ci(h) && p.transform !== "strict") {
|
|
100843
100843
|
const { primitive: w, semantic: I, extend: D } = h, x = I || {}, { colorScheme: M } = x, k = fl(x, ["colorScheme"]), R = D || {}, { colorScheme: L } = R, P = fl(R, ["colorScheme"]), N = M || {}, { dark: O } = N, B = fl(N, ["dark"]), z = L || {}, { dark: V } = z, G = fl(z, ["dark"]), _ = Ci(w) ? this._toVariables({ primitive: w }, p) : {}, F = Ci(k) ? this._toVariables({ semantic: k }, p) : {}, H = Ci(B) ? this._toVariables({ light: B }, p) : {}, j = Ci(O) ? this._toVariables({ dark: O }, p) : {}, $ = Ci(P) ? this._toVariables({ semantic: P }, p) : {}, J = Ci(G) ? this._toVariables({ light: G }, p) : {}, X = Ci(V) ? this._toVariables({ dark: V }, p) : {}, [te, oe] = [(n = _.declarations) != null ? n : "", _.tokens], [K, ee] = [(r = F.declarations) != null ? r : "", F.tokens || []], [Y, ne] = [(a = H.declarations) != null ? a : "", H.tokens || []], [ce, he] = [(l = j.declarations) != null ? l : "", j.tokens || []], [re, Se] = [(c = $.declarations) != null ? c : "", $.tokens || []], [Te, pe] = [(d = J.declarations) != null ? d : "", J.tokens || []], [U, fe] = [(u = X.declarations) != null ? u : "", X.tokens || []];
|
|
100844
100844
|
g = this.transformCSS(e, te, "light", "variable", p, o, s), f = oe;
|
|
100845
|
-
const
|
|
100846
|
-
y = `${
|
|
100845
|
+
const Ce = this.transformCSS(e, `${K}${Y}`, "light", "variable", p, o, s), Ge = this.transformCSS(e, `${ce}`, "dark", "variable", p, o, s);
|
|
100846
|
+
y = `${Ce}${Ge}`, m = [.../* @__PURE__ */ new Set([...ee, ...ne, ...he])];
|
|
100847
100847
|
const Je = this.transformCSS(e, `${re}${Te}color-scheme:light`, "light", "variable", p, o, s), tt = this.transformCSS(e, `${U}color-scheme:dark`, "dark", "variable", p, o, s);
|
|
100848
100848
|
v = `${Je}${tt}`, C = [.../* @__PURE__ */ new Set([...Se, ...pe, ...fe])], S = cd(h.css, { dt: Zu });
|
|
100849
100849
|
}
|
|
@@ -103287,12 +103287,12 @@ const R9e = (e) => {
|
|
|
103287
103287
|
);
|
|
103288
103288
|
}, B = async (U = !1, fe = !1) => {
|
|
103289
103289
|
if (!s.value) return;
|
|
103290
|
-
const
|
|
103290
|
+
const Ce = await s.value.getColumnFilterInstance(
|
|
103291
103291
|
D.value
|
|
103292
103292
|
), Ge = U && d.value[D.value] !== !0 && c.value > P.value;
|
|
103293
|
-
p.value && (fe || Ge) && (
|
|
103294
|
-
}, z = (U) => U.sort((fe,
|
|
103295
|
-
const Ge = w.value.includes(fe), Je = w.value.includes(
|
|
103293
|
+
p.value && (fe || Ge) && (Ce.refreshFilterValues(), P.value = c.value), I.value = z(Ce.getFilterValues());
|
|
103294
|
+
}, z = (U) => U.sort((fe, Ce) => {
|
|
103295
|
+
const Ge = w.value.includes(fe), Je = w.value.includes(Ce);
|
|
103296
103296
|
return Ge && !Je ? -1 : !Ge && Je ? 1 : 0;
|
|
103297
103297
|
}), V = (U) => {
|
|
103298
103298
|
const fe = u(D.value, U);
|
|
@@ -103329,12 +103329,12 @@ const R9e = (e) => {
|
|
|
103329
103329
|
return U.filterFooterRenderer;
|
|
103330
103330
|
}), te = le(() => G.value ? w.value.length >= G.value : !1), oe = le(() => I.value.filter(
|
|
103331
103331
|
(U) => !w.value.includes(U)
|
|
103332
|
-
)), K = le(() => I.value.length === 1 && I.value[0] === null && w.value.length === 0), ee = (U) => n.value[0] === U && i.enableFocusView, Y = (U) => K.value || u(D.value, U)?.isSelectable === !1 ? !0 : _.value ? !1 : te.value && !w.value.includes(U), ne = le(() => I.value.filter((fe,
|
|
103333
|
-
let
|
|
103334
|
-
return u(D.value, fe)?.isPreference && (
|
|
103332
|
+
)), K = le(() => I.value.length === 1 && I.value[0] === null && w.value.length === 0), ee = (U) => n.value[0] === U && i.enableFocusView, Y = (U) => K.value || u(D.value, U)?.isSelectable === !1 ? !0 : _.value ? !1 : te.value && !w.value.includes(U), ne = le(() => I.value.filter((fe, Ce) => I.value.indexOf(fe) === Ce).filter((fe) => fe != null && fe !== "").map((fe) => {
|
|
103333
|
+
let Ce = F.value ? "suggestions" : null;
|
|
103334
|
+
return u(D.value, fe)?.isPreference && (Ce = "preferences"), {
|
|
103335
103335
|
id: fe,
|
|
103336
103336
|
text: V(fe),
|
|
103337
|
-
groupingLabel:
|
|
103337
|
+
groupingLabel: Ce,
|
|
103338
103338
|
disabled: Y(fe),
|
|
103339
103339
|
renderer: ee(D.value) ? _9e : J.value,
|
|
103340
103340
|
rendererProps: {
|
|
@@ -103425,21 +103425,21 @@ const R9e = (e) => {
|
|
|
103425
103425
|
}), (U, fe) => (Z(), ae(Lt, null, [
|
|
103426
103426
|
ye("div", null, [
|
|
103427
103427
|
k.value ? (Z(), ae("ul", V9e, [
|
|
103428
|
-
(Z(!0), ae(Lt, null, Vr(w.value, (
|
|
103429
|
-
key: `${x.value}-${
|
|
103428
|
+
(Z(!0), ae(Lt, null, Vr(w.value, (Ce) => (Z(), ae("li", {
|
|
103429
|
+
key: `${x.value}-${Ce}`
|
|
103430
103430
|
}, [
|
|
103431
103431
|
ze(EPe, {
|
|
103432
|
-
label: V(
|
|
103432
|
+
label: V(Ce) || "",
|
|
103433
103433
|
showClear: !0,
|
|
103434
|
-
onHandleClose: (Ge) => re(
|
|
103434
|
+
onHandleClose: (Ge) => re(Ce)
|
|
103435
103435
|
}, null, 8, ["label", "onHandleClose"])
|
|
103436
103436
|
]))), 128))
|
|
103437
103437
|
])) : De("", !0),
|
|
103438
103438
|
ze(Ee(LOe), {
|
|
103439
103439
|
modelValue: ce.value,
|
|
103440
|
-
"onUpdate:modelValue": fe[1] || (fe[1] = (
|
|
103440
|
+
"onUpdate:modelValue": fe[1] || (fe[1] = (Ce) => ce.value = Ce),
|
|
103441
103441
|
searchInput: L.value,
|
|
103442
|
-
"onUpdate:searchInput": fe[2] || (fe[2] = (
|
|
103442
|
+
"onUpdate:searchInput": fe[2] || (fe[2] = (Ce) => L.value = Ce),
|
|
103443
103443
|
label: k.value ? "" : x.value,
|
|
103444
103444
|
icon: k.value ? "add-circle" : void 0,
|
|
103445
103445
|
variant: k.value ? "ghost" : "secondary",
|
|
@@ -103457,7 +103457,7 @@ const R9e = (e) => {
|
|
|
103457
103457
|
},
|
|
103458
103458
|
groupings: ["preferences", "suggestions"],
|
|
103459
103459
|
isLoading: M.value,
|
|
103460
|
-
onDropdownOpen: fe[3] || (fe[3] = (
|
|
103460
|
+
onDropdownOpen: fe[3] || (fe[3] = (Ce) => B(!0)),
|
|
103461
103461
|
onDropdownClosed: pe
|
|
103462
103462
|
}, GE({
|
|
103463
103463
|
preferences: Yi(() => [
|
|
@@ -103471,7 +103471,7 @@ const R9e = (e) => {
|
|
|
103471
103471
|
ze(Oo, {
|
|
103472
103472
|
size: "md",
|
|
103473
103473
|
variant: "ghost",
|
|
103474
|
-
onClick: fe[0] || (fe[0] = (
|
|
103474
|
+
onClick: fe[0] || (fe[0] = (Ce) => U.$emit("handle-settings-icon", x.value)),
|
|
103475
103475
|
"right-icon": "sliders-horizontal"
|
|
103476
103476
|
})
|
|
103477
103477
|
]),
|
|
@@ -103513,15 +103513,15 @@ const R9e = (e) => {
|
|
|
103513
103513
|
}, [
|
|
103514
103514
|
$.value ? {
|
|
103515
103515
|
name: "no-results",
|
|
103516
|
-
fn: Yi((
|
|
103517
|
-
(Z(), Ze(Yp($.value), Xp(zE(
|
|
103516
|
+
fn: Yi((Ce) => [
|
|
103517
|
+
(Z(), Ze(Yp($.value), Xp(zE(Ce)), null, 16))
|
|
103518
103518
|
]),
|
|
103519
103519
|
key: "0"
|
|
103520
103520
|
} : void 0,
|
|
103521
103521
|
X.value ? {
|
|
103522
103522
|
name: "footer",
|
|
103523
|
-
fn: Yi((
|
|
103524
|
-
(Z(), Ze(Yp(X.value), Xp(zE(
|
|
103523
|
+
fn: Yi((Ce) => [
|
|
103524
|
+
(Z(), Ze(Yp(X.value), Xp(zE(Ce)), null, 16))
|
|
103525
103525
|
]),
|
|
103526
103526
|
key: "1"
|
|
103527
103527
|
} : void 0
|
|
@@ -103533,12 +103533,12 @@ const R9e = (e) => {
|
|
|
103533
103533
|
fe[6] || (fe[6] = ye("li", null, [
|
|
103534
103534
|
ye("p", { class: "pv-text-subdued pv-text-body-md" }, "Suggested:")
|
|
103535
103535
|
], -1)),
|
|
103536
|
-
(Z(!0), ae(Lt, null, Vr(oe.value.filter((
|
|
103537
|
-
key: `${x.value}-${
|
|
103536
|
+
(Z(!0), ae(Lt, null, Vr(oe.value.filter((Ce) => Ce !== "" && Ce != null).slice(0, Y9e), (Ce) => (Z(), ae("li", {
|
|
103537
|
+
key: `${x.value}-${Ce}-suggest`
|
|
103538
103538
|
}, [
|
|
103539
103539
|
ze(Ee(qPe), {
|
|
103540
|
-
label: V(
|
|
103541
|
-
onHandleClick: (Ge) => he(
|
|
103540
|
+
label: V(Ce) || "",
|
|
103541
|
+
onHandleClick: (Ge) => he(Ce)
|
|
103542
103542
|
}, null, 8, ["label", "onHandleClick"])
|
|
103543
103543
|
]))), 128))
|
|
103544
103544
|
])
|
|
@@ -104178,6 +104178,7 @@ const X6e = {
|
|
|
104178
104178
|
containerHeight: { default: 500 },
|
|
104179
104179
|
containerMinHeight: { default: 200 },
|
|
104180
104180
|
debugMode: { type: Boolean, default: !1 },
|
|
104181
|
+
hideAllRowGroupedColumns: { type: Boolean, default: !1 },
|
|
104181
104182
|
leftPinnedColumnName: {},
|
|
104182
104183
|
pagination: { type: Boolean, default: !1 },
|
|
104183
104184
|
paginationPageSize: { default: 50 },
|
|
@@ -104230,8 +104231,8 @@ const X6e = {
|
|
|
104230
104231
|
W.success([...se, ""]);
|
|
104231
104232
|
} : null, u = (W) => {
|
|
104232
104233
|
const q = W.node, se = W.column?.getColId();
|
|
104233
|
-
return !q.group || !se ? !1 : G.value.some((
|
|
104234
|
-
if (
|
|
104234
|
+
return !q.group || !se ? !1 : G.value.some((ve) => {
|
|
104235
|
+
if (ve.field === se)
|
|
104235
104236
|
return !0;
|
|
104236
104237
|
});
|
|
104237
104238
|
}, h = (() => {
|
|
@@ -104253,8 +104254,8 @@ const X6e = {
|
|
|
104253
104254
|
params: q
|
|
104254
104255
|
};
|
|
104255
104256
|
if (!q.column?.getColDef().cellRenderer && n.displayRowNumber && v.value.length === 0) {
|
|
104256
|
-
const se = q.api.getAllDisplayedColumns() || [],
|
|
104257
|
-
if (se.findIndex((Oe) => Oe ===
|
|
104257
|
+
const se = q.api.getAllDisplayedColumns() || [], ve = q.column;
|
|
104258
|
+
if (se.findIndex((Oe) => Oe === ve) === 0)
|
|
104258
104259
|
return {
|
|
104259
104260
|
component: J6e,
|
|
104260
104261
|
params: q
|
|
@@ -104271,22 +104272,22 @@ const X6e = {
|
|
|
104271
104272
|
action: function(W) {
|
|
104272
104273
|
let q = W.column?.getColId();
|
|
104273
104274
|
if (W.column && ee(W.column) && (q = _.value?.getColId() || ""), !fe(q)) {
|
|
104274
|
-
const
|
|
104275
|
-
|
|
104275
|
+
const ve = W.api.getColumn(q)?.getColDef();
|
|
104276
|
+
ve && (m.value = ve, xd(() => {
|
|
104276
104277
|
fe(q);
|
|
104277
104278
|
}));
|
|
104278
104279
|
}
|
|
104279
104280
|
}
|
|
104280
104281
|
}, f = (W, q) => {
|
|
104281
104282
|
const se = { ...W };
|
|
104282
|
-
return q.isArrayField && !W.valueFormatter ? se.valueFormatter = (
|
|
104283
|
+
return q.isArrayField && !W.valueFormatter ? se.valueFormatter = (ve) => oCe(ve, q.dataType) : q.dataType === Us.Percent && !W.valueFormatter ? se.valueFormatter = (ve) => tCe(ve, q.valueDecimals || 0) : q.dataType === Us.Currency && !W.valueFormatter ? se.valueFormatter = (ve) => IV(ve, q.valueDecimals || 0) : q.dataType === Us.Integer && !W.valueFormatter ? se.valueFormatter = iCe : q.dataType === Us.Tag && !W.cellRenderer && (se.cellRenderer = Z6e), se;
|
|
104283
104284
|
}, y = le(() => !n.colDefs || n.colDefs.length === 0 ? [] : n.colDefs.map((W) => {
|
|
104284
104285
|
const q = W.context;
|
|
104285
104286
|
return q ? f(W, q) : W;
|
|
104286
104287
|
})), m = de(null), v = de([]), C = de(!1), S = le(() => {
|
|
104287
104288
|
if (v.value.length > 0) {
|
|
104288
104289
|
const W = v.value[0], q = y.value.find(
|
|
104289
|
-
(
|
|
104290
|
+
(ve) => ve.field === W
|
|
104290
104291
|
);
|
|
104291
104292
|
if ((!R.value || !R.value[W]) && q?.context?.filterRequiredToGroup)
|
|
104292
104293
|
return q.headerName;
|
|
@@ -104308,11 +104309,11 @@ const X6e = {
|
|
|
104308
104309
|
$.value
|
|
104309
104310
|
)), te = (W) => {
|
|
104310
104311
|
if (D.value = W.api, n.initialGridState) {
|
|
104311
|
-
const
|
|
104312
|
-
|
|
104312
|
+
const ve = n.initialGridState.filter?.filterModel || null;
|
|
104313
|
+
ve && D.value.setFilterModel(ve);
|
|
104313
104314
|
}
|
|
104314
|
-
|
|
104315
|
-
n.
|
|
104315
|
+
const q = n.leftPinnedColumnName ?? (v.value.length ? v.value[0] : null), se = [];
|
|
104316
|
+
n.hideAllRowGroupedColumns && v.value.forEach((ve) => se.push(ve)), q && (_.value = W.api.getColumn(q), se.push(q)), W.api.setColumnsVisible([...se], !1), B.value = W.api.getAllGridColumns(), H.value = W.api.paginationGetCurrentPage() + 1, j.value = W.api.paginationGetTotalPages(), l("grid-ready", W);
|
|
104316
104317
|
}, oe = (W) => {
|
|
104317
104318
|
if (D.value) {
|
|
104318
104319
|
const q = W.api.getFilterModel();
|
|
@@ -104360,8 +104361,8 @@ const X6e = {
|
|
|
104360
104361
|
};
|
|
104361
104362
|
return await n.serverSideCsvHandler(Ae), Y.value = !1, null;
|
|
104362
104363
|
}
|
|
104363
|
-
const
|
|
104364
|
-
return
|
|
104364
|
+
const ve = n.serverSideRowHandler;
|
|
104365
|
+
return ve ? await new Promise((Ae, Oe) => {
|
|
104365
104366
|
const dt = D.value?.getState(), ko = {
|
|
104366
104367
|
request: se,
|
|
104367
104368
|
parentNode: {},
|
|
@@ -104387,18 +104388,18 @@ const X6e = {
|
|
|
104387
104388
|
Y.value = !1, Oe("CSV export failed.");
|
|
104388
104389
|
}
|
|
104389
104390
|
};
|
|
104390
|
-
|
|
104391
|
+
ve(ko, !0);
|
|
104391
104392
|
}) : (console.warn("Client-side export does not return CSV string"), Y.value = !1, D.value.exportDataAsCsv(), null);
|
|
104392
104393
|
} catch (W) {
|
|
104393
104394
|
return console.error("CSV export failed", W), Y.value = !1, null;
|
|
104394
104395
|
}
|
|
104395
104396
|
}, re = (W) => {
|
|
104396
|
-
const q = _.value, se = W.api.getRowGroupColumns(),
|
|
104397
|
+
const q = _.value, se = W.api.getRowGroupColumns(), ve = se.length > 0;
|
|
104397
104398
|
v.value = [...se].map(
|
|
104398
104399
|
(dt) => dt.getColId()
|
|
104399
104400
|
);
|
|
104400
104401
|
let Ae;
|
|
104401
|
-
|
|
104402
|
+
ve && n.leftPinnedColumnName && (Ae = W.api.getColumn(n.leftPinnedColumnName || "")), ve && !n.leftPinnedColumnName && (Ae = se[0]), Ae ? (_.value = Ae, Je.value.headerName = Ae.getColDef().headerName, Je.value.headerComponent = lB, Je.value.context = {
|
|
104402
104403
|
dataType: _.value?.getColDef().context?.dataType || null
|
|
104403
104404
|
}, W.api.setColumnsVisible([Ae.getColId()], !1)) : (_.value = null, Je.value.headerName = "", Je.value.headerComponent = void 0, Je.value.context = null);
|
|
104404
104405
|
const Oe = q?.getColId();
|
|
@@ -104423,7 +104424,7 @@ const X6e = {
|
|
|
104423
104424
|
return se.click(), !0;
|
|
104424
104425
|
}
|
|
104425
104426
|
return !1;
|
|
104426
|
-
},
|
|
104427
|
+
}, Ce = de(S9e), Ge = de({
|
|
104427
104428
|
loadingMessage: "One moment please..."
|
|
104428
104429
|
}), Je = de({
|
|
104429
104430
|
headerName: "",
|
|
@@ -104460,10 +104461,10 @@ const X6e = {
|
|
|
104460
104461
|
}
|
|
104461
104462
|
const se = W.values.flatMap(
|
|
104462
104463
|
(Ae) => Ae.values || []
|
|
104463
|
-
),
|
|
104464
|
+
), ve = sB(se);
|
|
104464
104465
|
return {
|
|
104465
104466
|
values: se,
|
|
104466
|
-
value:
|
|
104467
|
+
value: ve
|
|
104467
104468
|
};
|
|
104468
104469
|
}
|
|
104469
104470
|
};
|
|
@@ -104471,7 +104472,7 @@ const X6e = {
|
|
|
104471
104472
|
const W = Array.isArray(n.rowData) && n.rowData.length > 0, q = typeof n.serverSideRowHandler == "function", se = typeof n.filterValuesSetHandler == "function";
|
|
104472
104473
|
(W && q || W && se) && console.warn(
|
|
104473
104474
|
"Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."
|
|
104474
|
-
), p.value = (
|
|
104475
|
+
), p.value = (ve) => {
|
|
104475
104476
|
const Ae = [
|
|
104476
104477
|
"sortAscending",
|
|
104477
104478
|
"sortDescending",
|
|
@@ -104479,15 +104480,15 @@ const X6e = {
|
|
|
104479
104480
|
// "rowGroup", - disabling this until we can figure out how to selectively disable it once max groups have been reached
|
|
104480
104481
|
"rowUnGroup",
|
|
104481
104482
|
"valueAggSubMenu"
|
|
104482
|
-
], Oe =
|
|
104483
|
-
return Oe && Oe.getColDef().filter && Ae.splice(2, 0, g), Ae.filter((dt) => typeof dt == "string" ?
|
|
104483
|
+
], Oe = ve.column && ee(ve.column) ? _.value : ve.column;
|
|
104484
|
+
return Oe && Oe.getColDef().filter && Ae.splice(2, 0, g), Ae.filter((dt) => typeof dt == "string" ? ve.defaultItems.includes(dt) : !0);
|
|
104484
104485
|
};
|
|
104485
104486
|
});
|
|
104486
104487
|
const at = (W) => {
|
|
104487
104488
|
const q = D.value;
|
|
104488
104489
|
if (!q) return;
|
|
104489
|
-
const se = W.filter?.filterModel || null,
|
|
104490
|
-
se && !MC(se, se.value) && q.setFilterModel(se),
|
|
104490
|
+
const se = W.filter?.filterModel || null, ve = W.rowGroup?.groupColIds || null, Ae = W.columnVisibility || null;
|
|
104491
|
+
se && !MC(se, se.value) && q.setFilterModel(se), ve && !MC(ve, v.value) && q.setRowGroupColumns(ve), Ae && !MC(Ae, B.value) && q.setColumnsVisible(Ae.hiddenColIds, !1);
|
|
104491
104492
|
};
|
|
104492
104493
|
Ot(
|
|
104493
104494
|
() => n.initialGridState,
|
|
@@ -104576,7 +104577,7 @@ const X6e = {
|
|
|
104576
104577
|
isGroupOpenByDefault: Ee(c) ? void 0 : n.isClientSideGroupOpenByDefault,
|
|
104577
104578
|
isServerSideGroupOpenByDefault: mo,
|
|
104578
104579
|
loading: Ee(c) ? !1 : W.isLoading,
|
|
104579
|
-
loadingCellRenderer:
|
|
104580
|
+
loadingCellRenderer: Ce.value,
|
|
104580
104581
|
loadingCellRendererParams: Ge.value,
|
|
104581
104582
|
maxConcurrentDatasourceRequests: Ee(c) ? 10 : void 0,
|
|
104582
104583
|
modules: o,
|
|
@@ -104785,6 +104786,7 @@ const X6e = {
|
|
|
104785
104786
|
containerHeight: {},
|
|
104786
104787
|
containerMinHeight: {},
|
|
104787
104788
|
debugMode: { type: Boolean },
|
|
104789
|
+
hideAllRowGroupedColumns: { type: Boolean },
|
|
104788
104790
|
leftPinnedColumnName: {},
|
|
104789
104791
|
pagination: { type: Boolean },
|
|
104790
104792
|
paginationPageSize: {},
|
|
@@ -104815,27 +104817,27 @@ const X6e = {
|
|
|
104815
104817
|
ne(W.api), s("filter-changed", W);
|
|
104816
104818
|
}, y = de([]);
|
|
104817
104819
|
function m(W, q, se = !0) {
|
|
104818
|
-
return (
|
|
104819
|
-
|
|
104820
|
+
return (ve) => {
|
|
104821
|
+
ve.data = x.value?.find((Nn) => Nn[W] === ve.value);
|
|
104820
104822
|
let Ae = "";
|
|
104821
104823
|
const Oe = C(W), dt = L9e(Oe);
|
|
104822
|
-
if (o.truncateLabelValues && se && dt && !isNaN(Number(
|
|
104824
|
+
if (o.truncateLabelValues && se && dt && !isNaN(Number(ve.value))) {
|
|
104823
104825
|
if (X.value) {
|
|
104824
|
-
const qd =
|
|
104826
|
+
const qd = ve.datum?.[k.value], Zw = M.value?.find(
|
|
104825
104827
|
(hs) => hs[k.value] === qd
|
|
104826
104828
|
)?.[`${R.value}_sort_total`] || 1 / 0;
|
|
104827
|
-
if (
|
|
104829
|
+
if (ve.value / Zw < 0.05)
|
|
104828
104830
|
return "";
|
|
104829
104831
|
}
|
|
104830
104832
|
const { newValue: Nn, newSuffix: Sr } = P9e(
|
|
104831
|
-
|
|
104833
|
+
ve.value,
|
|
104832
104834
|
E9e(Oe, Us.Percent),
|
|
104833
104835
|
Te.value
|
|
104834
104836
|
);
|
|
104835
|
-
|
|
104837
|
+
ve.value = Nn, Ae = Sr;
|
|
104836
104838
|
}
|
|
104837
|
-
let ln =
|
|
104838
|
-
return q && (ln = q(
|
|
104839
|
+
let ln = ve.value;
|
|
104840
|
+
return q && (ln = q(ve)), ln + Ae;
|
|
104839
104841
|
};
|
|
104840
104842
|
}
|
|
104841
104843
|
const v = (W, q = !1) => {
|
|
@@ -104872,7 +104874,7 @@ const X6e = {
|
|
|
104872
104874
|
), Ot(N, (W) => {
|
|
104873
104875
|
if (o.chartFilter && n.value) {
|
|
104874
104876
|
const q = o.chartFilter.colId;
|
|
104875
|
-
let se = o.chartFilter.options.find((
|
|
104877
|
+
let se = o.chartFilter.options.find((ve) => ve.value === W)?.filterValues || null;
|
|
104876
104878
|
se && se.length === 0 && (se = null), h(q, se || []), n.value.setColumnFilterModel(q, {
|
|
104877
104879
|
values: se
|
|
104878
104880
|
}).then(() => {
|
|
@@ -104892,9 +104894,9 @@ const X6e = {
|
|
|
104892
104894
|
let q = W.datum[W.xKey];
|
|
104893
104895
|
const se = v(W.xKey);
|
|
104894
104896
|
se && typeof se == "function" && (q = se({ value: q }));
|
|
104895
|
-
const
|
|
104896
|
-
let Ae = W.datum[
|
|
104897
|
-
const Oe = v(
|
|
104897
|
+
const ve = W.yKey;
|
|
104898
|
+
let Ae = W.datum[ve];
|
|
104899
|
+
const Oe = v(ve);
|
|
104898
104900
|
return Oe && typeof Oe == "function" && (Ae = Oe({ value: Ae })), {
|
|
104899
104901
|
heading: q,
|
|
104900
104902
|
data: [
|
|
@@ -104910,7 +104912,7 @@ const X6e = {
|
|
|
104910
104912
|
}, J = le(() => w.value?.id.includes("column") || w.value?.id.includes("bar")), X = le(() => w.value?.id.includes("stacked")), te = le(() => {
|
|
104911
104913
|
const W = X.value, q = J.value ? "bar" : w.value?.id;
|
|
104912
104914
|
let se = [];
|
|
104913
|
-
const
|
|
104915
|
+
const ve = v(R.value, !0), Ae = v(
|
|
104914
104916
|
L.value?.fieldName,
|
|
104915
104917
|
!0
|
|
104916
104918
|
);
|
|
@@ -104929,7 +104931,7 @@ const X6e = {
|
|
|
104929
104931
|
padding: 5,
|
|
104930
104932
|
fontSize: 11,
|
|
104931
104933
|
placement: W ? "inside-end" : "outside-end",
|
|
104932
|
-
formatter:
|
|
104934
|
+
formatter: ve
|
|
104933
104935
|
},
|
|
104934
104936
|
itemStyler: $
|
|
104935
104937
|
};
|
|
@@ -104948,7 +104950,7 @@ const X6e = {
|
|
|
104948
104950
|
padding: 5,
|
|
104949
104951
|
fontSize: 11,
|
|
104950
104952
|
placement: "outside-end",
|
|
104951
|
-
formatter:
|
|
104953
|
+
formatter: ve
|
|
104952
104954
|
},
|
|
104953
104955
|
itemStyler: $
|
|
104954
104956
|
};
|
|
@@ -104975,10 +104977,10 @@ const X6e = {
|
|
|
104975
104977
|
(se) => se.getAggFunc() !== null && se.getAggFunc() !== void 0
|
|
104976
104978
|
);
|
|
104977
104979
|
k.value = D.value[0]?.getColId() || "", y.value = q.map((se) => {
|
|
104978
|
-
const
|
|
104980
|
+
const ve = se.getColId(), Ae = se.getColDef();
|
|
104979
104981
|
return {
|
|
104980
|
-
label: Ae.headerName ||
|
|
104981
|
-
value:
|
|
104982
|
+
label: Ae.headerName || ve,
|
|
104983
|
+
value: ve,
|
|
104982
104984
|
formatter: Ae.valueFormatter,
|
|
104983
104985
|
dataType: Ae.context?.dataType
|
|
104984
104986
|
};
|
|
@@ -104998,10 +105000,10 @@ const X6e = {
|
|
|
104998
105000
|
return;
|
|
104999
105001
|
}
|
|
105000
105002
|
if (q) {
|
|
105001
|
-
const se = k.value,
|
|
105003
|
+
const se = k.value, ve = /* @__PURE__ */ new Set();
|
|
105002
105004
|
W.forEach((Oe) => {
|
|
105003
105005
|
const dt = Oe[q];
|
|
105004
|
-
|
|
105006
|
+
ve.add(dt);
|
|
105005
105007
|
});
|
|
105006
105008
|
const Ae = W.reduce(
|
|
105007
105009
|
(Oe, dt) => {
|
|
@@ -105012,7 +105014,7 @@ const X6e = {
|
|
|
105012
105014
|
const Sr = Nn.value;
|
|
105013
105015
|
let qd = Oe[`${Sr}_sort_total`] || 0;
|
|
105014
105016
|
const $h = dt[Sr];
|
|
105015
|
-
|
|
105017
|
+
ve.add(ln), q && $h && (Oe[ko][_(Sr, ln)] = $h, qd = qd + $h), Oe[ko][`${Sr}_sort_total`] = qd;
|
|
105016
105018
|
}
|
|
105017
105019
|
return Oe;
|
|
105018
105020
|
},
|
|
@@ -105023,7 +105025,7 @@ const X6e = {
|
|
|
105023
105025
|
...Ae[Oe]
|
|
105024
105026
|
})), L.value = {
|
|
105025
105027
|
fieldName: q,
|
|
105026
|
-
fieldValues: Array.from(
|
|
105028
|
+
fieldValues: Array.from(ve)
|
|
105027
105029
|
};
|
|
105028
105030
|
} else
|
|
105029
105031
|
M.value = [], L.value = null;
|
|
@@ -105033,7 +105035,7 @@ const X6e = {
|
|
|
105033
105035
|
const q = D.value.length;
|
|
105034
105036
|
if (ee(), q === 0 || y.value.length === 0)
|
|
105035
105037
|
return;
|
|
105036
|
-
const se = [],
|
|
105038
|
+
const se = [], ve = [];
|
|
105037
105039
|
let Ae = /* @__PURE__ */ new Set();
|
|
105038
105040
|
if (W.forEachNodeAfterFilterAndSort((Oe) => {
|
|
105039
105041
|
if (Oe.group && Oe.level === 0) {
|
|
@@ -105044,14 +105046,14 @@ const X6e = {
|
|
|
105044
105046
|
Oe,
|
|
105045
105047
|
ko
|
|
105046
105048
|
);
|
|
105047
|
-
Ae = Ae.union(Nn),
|
|
105049
|
+
Ae = Ae.union(Nn), ve?.push(ln);
|
|
105048
105050
|
}
|
|
105049
105051
|
const dt = ce(Oe);
|
|
105050
105052
|
se?.push(dt);
|
|
105051
105053
|
}
|
|
105052
|
-
}), x.value = se, D.value.length > 1 &&
|
|
105054
|
+
}), x.value = se, D.value.length > 1 && ve && ve.length > 0) {
|
|
105053
105055
|
const Oe = D.value[1].getColId();
|
|
105054
|
-
M.value =
|
|
105056
|
+
M.value = ve, L.value = {
|
|
105055
105057
|
fieldName: Oe,
|
|
105056
105058
|
fieldValues: Array.from(Ae)
|
|
105057
105059
|
};
|
|
@@ -105065,7 +105067,7 @@ const X6e = {
|
|
|
105065
105067
|
!W.aggData || !W.aggData[se.value] || (q[se.value] = W.aggData[se.value]?.value ?? W.aggData[se.value]);
|
|
105066
105068
|
return q;
|
|
105067
105069
|
}, he = (W, q) => {
|
|
105068
|
-
const se = /* @__PURE__ */ new Set(),
|
|
105070
|
+
const se = /* @__PURE__ */ new Set(), ve = {
|
|
105069
105071
|
[W.field]: W.key
|
|
105070
105072
|
};
|
|
105071
105073
|
let Ae = 0;
|
|
@@ -105076,19 +105078,19 @@ const X6e = {
|
|
|
105076
105078
|
const ln = dt.aggData;
|
|
105077
105079
|
if (ko && ln) {
|
|
105078
105080
|
const Nn = dt.aggData[Oe.value]?.value ?? dt.aggData[Oe.value];
|
|
105079
|
-
|
|
105081
|
+
ve[_(Oe.value, ko)] = Nn, Ae = Ae + Nn;
|
|
105080
105082
|
}
|
|
105081
|
-
}),
|
|
105083
|
+
}), ve[`${Oe.value}_sort_total`] = Ae;
|
|
105082
105084
|
return {
|
|
105083
|
-
rowData:
|
|
105085
|
+
rowData: ve,
|
|
105084
105086
|
fieldValues: se
|
|
105085
105087
|
};
|
|
105086
105088
|
}, re = le(() => {
|
|
105087
105089
|
let W = G.value ? M.value : x.value, q = null;
|
|
105088
105090
|
if (P.value && (q = G.value ? `${R.value}_sort_total` : R.value), q && W && P.value) {
|
|
105089
105091
|
const se = P.value?.id.includes("desc") ? -1 : 1;
|
|
105090
|
-
W = [...W].sort((
|
|
105091
|
-
const Oe =
|
|
105092
|
+
W = [...W].sort((ve, Ae) => {
|
|
105093
|
+
const Oe = ve[q] || 0, dt = Ae[q] || 0;
|
|
105092
105094
|
return (Oe - dt) * se;
|
|
105093
105095
|
});
|
|
105094
105096
|
}
|
|
@@ -105097,11 +105099,11 @@ const X6e = {
|
|
|
105097
105099
|
k.value,
|
|
105098
105100
|
B.focuses.value
|
|
105099
105101
|
)), W && W.length === 1) {
|
|
105100
|
-
const se = "",
|
|
105102
|
+
const se = "", ve = " ";
|
|
105101
105103
|
W = [
|
|
105102
105104
|
{ [k.value]: se },
|
|
105103
105105
|
W[0],
|
|
105104
|
-
{ [k.value]:
|
|
105106
|
+
{ [k.value]: ve }
|
|
105105
105107
|
];
|
|
105106
105108
|
}
|
|
105107
105109
|
return W;
|
|
@@ -105111,17 +105113,17 @@ const X6e = {
|
|
|
105111
105113
|
return W;
|
|
105112
105114
|
const q = R.value;
|
|
105113
105115
|
return G.value ? M?.value?.forEach((se) => {
|
|
105114
|
-
const
|
|
105116
|
+
const ve = q + "_sort_total", Ae = se[ve];
|
|
105115
105117
|
typeof Ae == "number" && Ae > W && (W = Ae);
|
|
105116
105118
|
}) : re.value.forEach((se) => {
|
|
105117
|
-
const
|
|
105118
|
-
typeof
|
|
105119
|
+
const ve = se[q];
|
|
105120
|
+
typeof ve == "number" && ve > W && (W = ve);
|
|
105119
105121
|
}), W;
|
|
105120
105122
|
}), pe = le(() => re.value?.filter(
|
|
105121
105123
|
(W) => B.focuses.value.includes(W[k.value])
|
|
105122
105124
|
)), U = le(() => re.value?.filter(
|
|
105123
105125
|
(W) => !B.focuses.value.includes(W[k.value])
|
|
105124
|
-
)), fe = le(() => L.value?.fieldValues?.length || 0),
|
|
105126
|
+
)), fe = le(() => L.value?.fieldValues?.length || 0), Ce = le(() => {
|
|
105125
105127
|
const Ae = 0.25 * Math.exp(-0.12 * Se.value);
|
|
105126
105128
|
return Math.min(Math.max(Ae, 0.05), 0.75);
|
|
105127
105129
|
}), Ge = le(() => fe.value > 5 ? 0.5 : 1), Je = le(() => fe.value > 5 ? 0.25 : 0.1), tt = le(() => D.value.length === 0 ? "No groups selected. Select at least one group to display data." : o.enableFocusView && B.focuses.value.length === 0 && o.yKey === "total_yield" ? `Focus ${O.value.find((W) => W.field === k.value)?.headerName} to view Visualization` : re.value && re.value?.length === 0 ? "No data available to chart." : ""), Pt = (W) => {
|
|
@@ -105167,9 +105169,9 @@ const X6e = {
|
|
|
105167
105169
|
lineDash: [4, 4],
|
|
105168
105170
|
strokeOpacity: 0.7,
|
|
105169
105171
|
locked: !0
|
|
105170
|
-
},
|
|
105172
|
+
}, ve = V.value ? se : q;
|
|
105171
105173
|
W.initialState = {
|
|
105172
|
-
annotations: [
|
|
105174
|
+
annotations: [ve]
|
|
105173
105175
|
};
|
|
105174
105176
|
}
|
|
105175
105177
|
return W;
|
|
@@ -105185,18 +105187,18 @@ const X6e = {
|
|
|
105185
105187
|
type: "category",
|
|
105186
105188
|
position: V.value ? "left" : "bottom",
|
|
105187
105189
|
label: {
|
|
105188
|
-
formatter: (
|
|
105189
|
-
if (
|
|
105190
|
+
formatter: (ve) => {
|
|
105191
|
+
if (ve.value === Vf)
|
|
105190
105192
|
return "";
|
|
105191
105193
|
const Ae = 35;
|
|
105192
|
-
let Oe =
|
|
105194
|
+
let Oe = ve.value;
|
|
105193
105195
|
const dt = v(
|
|
105194
105196
|
k.value
|
|
105195
105197
|
);
|
|
105196
|
-
return typeof dt == "function" && (Oe = dt(
|
|
105198
|
+
return typeof dt == "function" && (Oe = dt(ve)), typeof Oe == "string" && Oe.length > Ae ? Oe.substring(0, Ae) + "..." : Oe;
|
|
105197
105199
|
}
|
|
105198
105200
|
},
|
|
105199
|
-
paddingInner:
|
|
105201
|
+
paddingInner: Ce.value,
|
|
105200
105202
|
paddingOuter: Ge.value,
|
|
105201
105203
|
groupPaddingInner: Je.value
|
|
105202
105204
|
},
|