@kong-ui-public/analytics-chart 10.5.2-pr.2524.d42b49c13.0 → 10.6.1-pr.2532.20b109774.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/dist/types/components/chart-plugins/ThresholdPlugin.d.ts +11 -2
- package/dist/types/components/chart-plugins/ThresholdPlugin.d.ts.map +1 -1
- package/dist/types/types/chart-data.d.ts +1 -0
- package/dist/types/types/chart-data.d.ts.map +1 -1
- package/dist/vitals-chart.es.js +209 -189
- package/dist/vitals-chart.umd.js +4 -4
- package/package.json +2 -2
package/dist/vitals-chart.es.js
CHANGED
|
@@ -12576,7 +12576,7 @@ const eg = (n, t, e) => {
|
|
|
12576
12576
|
value: t && t[s.text],
|
|
12577
12577
|
isSegmentEmpty: i.datasets[r].isSegmentEmpty
|
|
12578
12578
|
})).sort(e);
|
|
12579
|
-
},
|
|
12579
|
+
}, LP = 2, Bw = 10, Yw = 12;
|
|
12580
12580
|
var Oh;
|
|
12581
12581
|
const ng = new Intl.NumberFormat(((Oh = document == null ? void 0 : document.documentElement) == null ? void 0 : Oh.lang) || "en-US"), Ll = 10, md = "#6c7489", jw = "#d60027", Mc = "#6c7489", $w = "#995c00", Uw = "#ffc400", Sc = "16px", Vw = "20px", qw = "'Inter', Roboto, Helvetica, sans-serif", pd = "24px", Xw = "40px", Gw = "48px", yd = {
|
|
12582
12582
|
"1XXCount|1XX|1[0-9][0-9]": { solid: "#0072E5", light: "#4DA6FF", description: "Informational" },
|
|
@@ -12613,21 +12613,21 @@ const ng = new Intl.NumberFormat(((Oh = document == null ? void 0 : document.doc
|
|
|
12613
12613
|
300: { background: "#fff1d5", text: "#a06027" },
|
|
12614
12614
|
400: { background: "#fee3b6", text: "#944d19" },
|
|
12615
12615
|
500: { background: "#fedada", text: "#852021" }
|
|
12616
|
-
},
|
|
12616
|
+
}, NP = (n) => {
|
|
12617
12617
|
var e;
|
|
12618
12618
|
const t = Math.floor(parseInt(n, 10) / 100) * 100;
|
|
12619
12619
|
return ((e = Qw[t]) == null ? void 0 : e.background) || "#fafafa";
|
|
12620
|
-
},
|
|
12620
|
+
}, FP = {
|
|
12621
12621
|
SUCCESS: "#6FCC83",
|
|
12622
12622
|
FAILURE: "#FF8484"
|
|
12623
|
-
},
|
|
12623
|
+
}, zP = {
|
|
12624
12624
|
"4XX": "#FFBA81",
|
|
12625
12625
|
"5XX": "#FF8484"
|
|
12626
|
-
},
|
|
12626
|
+
}, HP = {
|
|
12627
12627
|
LatencyP99: "#1356cb",
|
|
12628
12628
|
LatencyP95: "#1fbecd",
|
|
12629
12629
|
LatencyP50: "#1df97d"
|
|
12630
|
-
},
|
|
12630
|
+
}, WP = "#dad4c7", Jw = "#afb7c5", BP = (n) => {
|
|
12631
12631
|
const t = Object.entries(yd).find(([e]) => new RegExp(e).test(n));
|
|
12632
12632
|
return t && t[1] || yd.standard;
|
|
12633
12633
|
}, ig = (n, t, e, i) => {
|
|
@@ -12713,7 +12713,7 @@ const ng = new Intl.NumberFormat(((Oh = document == null ? void 0 : document.doc
|
|
|
12713
12713
|
]), sg = (n) => {
|
|
12714
12714
|
const t = parseInt(n, 10), e = Math.floor(t / 100) * 100, i = a1.get(e);
|
|
12715
12715
|
return i === void 0 ? vd : i.get(t) ?? i.get(-1) ?? vd;
|
|
12716
|
-
},
|
|
12716
|
+
}, YP = (n) => {
|
|
12717
12717
|
const t = sg(n);
|
|
12718
12718
|
return { solid: t, light: t };
|
|
12719
12719
|
}, o1 = Array.from({ length: 500 }, (n, t) => 100 + t), Ko = {
|
|
@@ -13277,7 +13277,7 @@ const H1 = ({
|
|
|
13277
13277
|
default:
|
|
13278
13278
|
return isNaN(n) ? `${n}` : n >= 0.01 ? `${ng.format(Number.parseFloat(n.toFixed(2)))} ${r}` : `${Number.parseFloat(n.toPrecision(4))} ${r}`;
|
|
13279
13279
|
}
|
|
13280
|
-
},
|
|
13280
|
+
}, jP = (n) => {
|
|
13281
13281
|
var e, i, s, r, a;
|
|
13282
13282
|
const { i18n: t } = Mt.useI18n();
|
|
13283
13283
|
return (n == null ? void 0 : n.status) === 403 ? {
|
|
@@ -19740,15 +19740,15 @@ class Jk {
|
|
|
19740
19740
|
this._clearSelectionArea = !0, this._chart && this._chart.update();
|
|
19741
19741
|
}
|
|
19742
19742
|
}
|
|
19743
|
-
const
|
|
19743
|
+
const $P = ["hidden", "single", "full"];
|
|
19744
19744
|
var Ui = /* @__PURE__ */ ((n) => (n.String = "string", n.Number = "number", n.Boolean = "boolean", n.Object = "object", n.Undefined = "undefined", n))(Ui || {});
|
|
19745
|
-
const
|
|
19745
|
+
const UP = [
|
|
19746
19746
|
"donut",
|
|
19747
19747
|
"horizontal_bar",
|
|
19748
19748
|
"vertical_bar",
|
|
19749
19749
|
"timeseries_line",
|
|
19750
19750
|
"timeseries_bar"
|
|
19751
|
-
],
|
|
19751
|
+
], VP = [
|
|
19752
19752
|
"gauge",
|
|
19753
19753
|
"top_n",
|
|
19754
19754
|
"single_value"
|
|
@@ -19761,91 +19761,111 @@ const $P = [
|
|
|
19761
19761
|
}, iC = (n, t) => {
|
|
19762
19762
|
const e = [];
|
|
19763
19763
|
return n.data.datasets.forEach((i) => {
|
|
19764
|
-
if (i.
|
|
19764
|
+
if (!n.getDatasetMeta(n.data.datasets.indexOf(i)).visible)
|
|
19765
19765
|
return;
|
|
19766
|
-
const
|
|
19767
|
-
|
|
19768
|
-
const
|
|
19769
|
-
ts:
|
|
19770
|
-
|
|
19766
|
+
const r = i.data;
|
|
19767
|
+
r != null && r.length && t.filter((a) => a.highlightIntersections).forEach((a) => {
|
|
19768
|
+
const o = r.map((c) => ({
|
|
19769
|
+
ts: c.x,
|
|
19770
|
+
aboveThreshold: c.y >= a.value
|
|
19771
19771
|
}));
|
|
19772
|
-
let
|
|
19773
|
-
for (let
|
|
19774
|
-
!
|
|
19775
|
-
|
|
19776
|
-
|
|
19777
|
-
|
|
19778
|
-
) :
|
|
19779
|
-
start:
|
|
19772
|
+
let l;
|
|
19773
|
+
for (let c = 1; c < o.length; c++)
|
|
19774
|
+
!o[c - 1].aboveThreshold && o[c].aboveThreshold ? l = Th(
|
|
19775
|
+
r[c - 1],
|
|
19776
|
+
r[c],
|
|
19777
|
+
a.value
|
|
19778
|
+
) : o[c - 1].aboveThreshold && !o[c].aboveThreshold && l !== void 0 && (e.push({
|
|
19779
|
+
start: l,
|
|
19780
19780
|
end: Th(
|
|
19781
|
-
|
|
19782
|
-
|
|
19783
|
-
|
|
19781
|
+
r[c - 1],
|
|
19782
|
+
r[c],
|
|
19783
|
+
a.value
|
|
19784
19784
|
),
|
|
19785
|
-
type:
|
|
19786
|
-
}),
|
|
19787
|
-
|
|
19788
|
-
start:
|
|
19789
|
-
end:
|
|
19790
|
-
type:
|
|
19785
|
+
type: a.type
|
|
19786
|
+
}), l = void 0);
|
|
19787
|
+
l !== void 0 && e.push({
|
|
19788
|
+
start: l,
|
|
19789
|
+
end: o[o.length - 1].ts,
|
|
19790
|
+
type: a.type
|
|
19791
19791
|
});
|
|
19792
19792
|
});
|
|
19793
19793
|
}), e;
|
|
19794
|
+
}, sC = (n) => {
|
|
19795
|
+
if (!n.length)
|
|
19796
|
+
return [];
|
|
19797
|
+
n.sort((e, i) => e.type.localeCompare(i.type) || e.start - i.start);
|
|
19798
|
+
const t = [];
|
|
19799
|
+
for (const e of n) {
|
|
19800
|
+
const i = t.findLast(({ type: s }) => s === e.type);
|
|
19801
|
+
i && e.start <= i.end ? i.end = Math.max(i.end, e.end) : t.push({ ...e });
|
|
19802
|
+
}
|
|
19803
|
+
return t;
|
|
19794
19804
|
};
|
|
19795
|
-
class
|
|
19805
|
+
class rC {
|
|
19796
19806
|
constructor(t) {
|
|
19797
19807
|
P(this, "id", "thresholdPlugin");
|
|
19798
19808
|
P(this, "_thresholds");
|
|
19799
19809
|
P(this, "_mouseMoveHandler");
|
|
19800
19810
|
this.i18n = t;
|
|
19801
19811
|
}
|
|
19802
|
-
|
|
19803
|
-
var
|
|
19804
|
-
const
|
|
19805
|
-
|
|
19806
|
-
|
|
19807
|
-
l && (this._thresholds = {
|
|
19812
|
+
_syncThresholds(t) {
|
|
19813
|
+
var e;
|
|
19814
|
+
for (const i of Object.keys(t.threshold || {})) {
|
|
19815
|
+
const s = (e = t.threshold) == null ? void 0 : e[i];
|
|
19816
|
+
s && (this._thresholds = {
|
|
19808
19817
|
...this._thresholds,
|
|
19809
|
-
[
|
|
19818
|
+
[i]: s.map((r) => ({ ...r, hovered: !1 }))
|
|
19810
19819
|
});
|
|
19811
19820
|
}
|
|
19812
|
-
|
|
19813
|
-
|
|
19821
|
+
}
|
|
19822
|
+
// Gets called when chart options are updated
|
|
19823
|
+
beforeUpdate(t, e, i) {
|
|
19824
|
+
this._syncThresholds(i);
|
|
19825
|
+
}
|
|
19826
|
+
beforeInit(t, e, i) {
|
|
19827
|
+
const s = t.canvas;
|
|
19828
|
+
this._syncThresholds(i);
|
|
19829
|
+
const r = (a) => {
|
|
19830
|
+
var o;
|
|
19814
19831
|
if (t) {
|
|
19815
|
-
const
|
|
19816
|
-
if (
|
|
19817
|
-
for (const
|
|
19818
|
-
const
|
|
19819
|
-
|
|
19820
|
-
|
|
19832
|
+
const l = a.clientY, c = t.scales.y, u = s.getBoundingClientRect(), d = c.getValueForPixel(l - u.top);
|
|
19833
|
+
if (d)
|
|
19834
|
+
for (const h of Object.keys(this._thresholds || {})) {
|
|
19835
|
+
const f = (o = this._thresholds) == null ? void 0 : o[h];
|
|
19836
|
+
f && f.forEach((g) => {
|
|
19837
|
+
g.hovered = Math.abs(g.value - d) < tC;
|
|
19821
19838
|
});
|
|
19822
19839
|
}
|
|
19823
19840
|
}
|
|
19824
19841
|
};
|
|
19825
19842
|
s.addEventListener("mousemove", r), this._mouseMoveHandler = r;
|
|
19826
19843
|
}
|
|
19827
|
-
|
|
19828
|
-
var
|
|
19829
|
-
|
|
19830
|
-
|
|
19831
|
-
s
|
|
19832
|
-
|
|
19833
|
-
|
|
19834
|
-
|
|
19835
|
-
|
|
19836
|
-
|
|
19837
|
-
|
|
19838
|
-
l.save(), l.fillStyle = r.type === "error" ? eC : nC, l.fillRect(h, t.chartArea.top, f - h, t.chartArea.bottom - t.chartArea.top), l.restore(), l.save(), l.beginPath(), l.moveTo(h, t.chartArea.bottom), l.lineTo(f, t.chartArea.bottom), l.lineWidth = 2, l.strokeStyle = qo(r.type), l.stroke(), l.restore();
|
|
19839
|
-
}
|
|
19844
|
+
afterDatasetsDraw(t, e) {
|
|
19845
|
+
var s;
|
|
19846
|
+
const i = t.ctx;
|
|
19847
|
+
for (const r of Object.keys(this._thresholds || {})) {
|
|
19848
|
+
const a = (s = this._thresholds) == null ? void 0 : s[r];
|
|
19849
|
+
if (a) {
|
|
19850
|
+
a.forEach((c) => {
|
|
19851
|
+
const d = t.scales.y.getPixelForValue(c.value);
|
|
19852
|
+
i.save(), i.beginPath(), i.moveTo(t.chartArea.left, d), i.lineTo(t.chartArea.right, d), i.lineWidth = 1, i.strokeStyle = qo(c.type), i.setLineDash([5, 5]), i.stroke(), i.restore();
|
|
19853
|
+
let h = "";
|
|
19854
|
+
c.label ? h = `${c.label}: ${c.value}` : c.type === "warning" ? h = this.i18n.t("chartLabels.threshold-warning", { value: c.value }) : c.type === "error" ? h = this.i18n.t("chartLabels.threshold-error", { value: c.value }) : h = this.i18n.t("chartLabels.thatreshold-neutral", { value: c.value }), c.hovered && (i.save(), i.fillStyle = qo(c.type), i.font = qw, i.fillText(h, t.chartArea.left, d - 4), i.restore());
|
|
19840
19855
|
});
|
|
19841
|
-
|
|
19856
|
+
const o = iC(t, a);
|
|
19857
|
+
sC(o).forEach((c) => {
|
|
19858
|
+
const u = t.scales.x.getPixelForValue(c.start), d = t.scales.x.getPixelForValue(c.end);
|
|
19859
|
+
i.save(), i.fillStyle = c.type === "error" ? eC : nC, i.fillRect(u, t.chartArea.top, d - u, t.chartArea.bottom - t.chartArea.top), i.restore(), i.save(), i.beginPath(), i.moveTo(u, t.chartArea.bottom), i.lineTo(d, t.chartArea.bottom), i.lineWidth = 2, i.strokeStyle = qo(c.type), i.stroke(), i.restore();
|
|
19860
|
+
});
|
|
19861
|
+
}
|
|
19842
19862
|
}
|
|
19843
19863
|
}
|
|
19844
19864
|
beforeDestroy(t) {
|
|
19845
19865
|
this._mouseMoveHandler && t.canvas.removeEventListener("mousemove", this._mouseMoveHandler);
|
|
19846
19866
|
}
|
|
19847
19867
|
}
|
|
19848
|
-
const
|
|
19868
|
+
const aC = /* @__PURE__ */ ge({
|
|
19849
19869
|
__name: "TimeSeriesChart",
|
|
19850
19870
|
props: {
|
|
19851
19871
|
chartData: { default: void 0 },
|
|
@@ -19869,7 +19889,7 @@ const rC = /* @__PURE__ */ ge({
|
|
|
19869
19889
|
},
|
|
19870
19890
|
emits: ["zoom-time-range", "select-chart-range"],
|
|
19871
19891
|
setup(n, { emit: t }) {
|
|
19872
|
-
const e = n, i = t, { i18n: s } = Mt.useI18n(), r = new rm(), a = new Qg(), o = new Jk(), l = new
|
|
19892
|
+
const e = n, i = t, { i18n: s } = Mt.useI18n(), r = new rm(), a = new Qg(), o = new Jk(), l = new rC(s), { translateUnit: c } = Mt.useTranslatedUnits(), u = Rt(), d = crypto.randomUUID(), h = crypto.randomUUID(), f = Rt([]), g = Rt(), y = Gi("legendPosition", qt.Right), _ = Vi("chartParent"), M = Rt(void 0), w = Rt(!1), D = Gi(Sg), v = D == null ? void 0 : D.evaluateFeatureFlagFn("analytics-chart-zoom-actions", !1), S = Zs({
|
|
19873
19893
|
showTooltip: !1,
|
|
19874
19894
|
tooltipContext: 0,
|
|
19875
19895
|
// Set in lineChartTooltipBehavior
|
|
@@ -20023,13 +20043,13 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20023
20043
|
}, null, 8, ["id", "chart-instance", "items"])
|
|
20024
20044
|
], 2));
|
|
20025
20045
|
}
|
|
20026
|
-
}),
|
|
20046
|
+
}), oC = /* @__PURE__ */ We(aC, [["__scopeId", "data-v-3a82636b"]]), lC = { class: "analytics-chart-shell" }, cC = {
|
|
20027
20047
|
key: 0,
|
|
20028
20048
|
class: "chart-header"
|
|
20029
|
-
},
|
|
20049
|
+
}, uC = { class: "tooltip-content" }, dC = {
|
|
20030
20050
|
key: 2,
|
|
20031
20051
|
class: "analytics-chart-parent"
|
|
20032
|
-
},
|
|
20052
|
+
}, hC = /* @__PURE__ */ ge({
|
|
20033
20053
|
__name: "AnalyticsChart",
|
|
20034
20054
|
props: {
|
|
20035
20055
|
chartData: {},
|
|
@@ -20133,15 +20153,15 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20133
20153
|
]);
|
|
20134
20154
|
return Bc("showLegendValues", c), Bc("legendPosition", Ft(i, "legendPosition")), (R, H) => {
|
|
20135
20155
|
const G = Ee("KTooltip"), nt = Ee("KEmptyState");
|
|
20136
|
-
return X(), _t("div",
|
|
20137
|
-
p.value && h.value && d.value ? (X(), _t("div",
|
|
20156
|
+
return X(), _t("div", lC, [
|
|
20157
|
+
p.value && h.value && d.value ? (X(), _t("div", cC, [
|
|
20138
20158
|
ie(G, {
|
|
20139
20159
|
class: "tooltip",
|
|
20140
20160
|
"max-width": "500",
|
|
20141
20161
|
placement: "right"
|
|
20142
20162
|
}, {
|
|
20143
20163
|
content: Wt(() => [
|
|
20144
|
-
ut("div",
|
|
20164
|
+
ut("div", uC, ft(q(f)), 1)
|
|
20145
20165
|
]),
|
|
20146
20166
|
default: Wt(() => [
|
|
20147
20167
|
ie(q(Sm), {
|
|
@@ -20152,8 +20172,8 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20152
20172
|
_: 1
|
|
20153
20173
|
})
|
|
20154
20174
|
])) : Xt("", !0),
|
|
20155
|
-
p.value ? (X(), _t("div",
|
|
20156
|
-
y.value ? (X(), Nt(
|
|
20175
|
+
p.value ? (X(), _t("div", dC, [
|
|
20176
|
+
y.value ? (X(), Nt(oC, {
|
|
20157
20177
|
key: 0,
|
|
20158
20178
|
brush: a.value,
|
|
20159
20179
|
"chart-data": r.value,
|
|
@@ -20220,14 +20240,14 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20220
20240
|
]);
|
|
20221
20241
|
};
|
|
20222
20242
|
}
|
|
20223
|
-
}),
|
|
20243
|
+
}), qP = /* @__PURE__ */ We(hC, [["__scopeId", "data-v-01aae525"]]), fC = {
|
|
20224
20244
|
class: "chart-parent",
|
|
20225
20245
|
"data-testid": "gauge-chart-parent"
|
|
20226
|
-
},
|
|
20246
|
+
}, gC = { class: "chart-totals-flex" }, mC = {
|
|
20227
20247
|
key: 1,
|
|
20228
20248
|
class: "metric-small",
|
|
20229
20249
|
"data-testid": "gauge-chart-total"
|
|
20230
|
-
},
|
|
20250
|
+
}, pC = /* @__PURE__ */ ge({
|
|
20231
20251
|
__name: "GaugeChart",
|
|
20232
20252
|
props: {
|
|
20233
20253
|
chartData: {
|
|
@@ -20297,15 +20317,15 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20297
20317
|
var f;
|
|
20298
20318
|
return `color: ${(f = s == null ? void 0 : s.value[0]) == null ? void 0 : f.backgroundColor[t.numerator]}`;
|
|
20299
20319
|
}), d = F(() => ["full", "single"].includes(t.metricDisplay)), h = F(() => t.metricDisplay === "full");
|
|
20300
|
-
return (f, g) => (X(), _t("div",
|
|
20301
|
-
ut("div",
|
|
20320
|
+
return (f, g) => (X(), _t("div", fC, [
|
|
20321
|
+
ut("div", gC, [
|
|
20302
20322
|
d.value ? (X(), _t("div", {
|
|
20303
20323
|
key: 0,
|
|
20304
20324
|
class: "metric-large",
|
|
20305
20325
|
"data-testid": "gauge-chart-metric",
|
|
20306
20326
|
style: bi(u.value)
|
|
20307
20327
|
}, ft(l.value), 5)) : Xt("", !0),
|
|
20308
|
-
h.value ? (X(), _t("div",
|
|
20328
|
+
h.value ? (X(), _t("div", mC, ft(q(e).t("total")) + ": " + ft(c.value), 1)) : Xt("", !0)
|
|
20309
20329
|
]),
|
|
20310
20330
|
ut("div", {
|
|
20311
20331
|
class: "chart-container",
|
|
@@ -20321,19 +20341,19 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20321
20341
|
], 4)
|
|
20322
20342
|
]));
|
|
20323
20343
|
}
|
|
20324
|
-
}),
|
|
20344
|
+
}), yC = /* @__PURE__ */ We(pC, [["__scopeId", "data-v-32e7f9e0"]]), bC = {
|
|
20325
20345
|
class: "chart-parent",
|
|
20326
20346
|
"data-testid": "single-value-parent"
|
|
20327
|
-
},
|
|
20347
|
+
}, _C = {
|
|
20328
20348
|
key: 1,
|
|
20329
20349
|
class: "single-value-wrapper"
|
|
20330
|
-
},
|
|
20350
|
+
}, xC = {
|
|
20331
20351
|
class: "single-value",
|
|
20332
20352
|
"data-testid": "single-value-chart"
|
|
20333
|
-
},
|
|
20353
|
+
}, vC = {
|
|
20334
20354
|
key: 0,
|
|
20335
20355
|
class: "single-value-unit"
|
|
20336
|
-
},
|
|
20356
|
+
}, wC = /* @__PURE__ */ ge({
|
|
20337
20357
|
__name: "SingleValue",
|
|
20338
20358
|
props: {
|
|
20339
20359
|
data: {
|
|
@@ -20383,24 +20403,24 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20383
20403
|
((u = (c = e.data) == null ? void 0 : c.data) == null ? void 0 : u.length) > 1 && console.warn("SingleValue chart should only be used with a single data point. Data length:", e.data.data.length);
|
|
20384
20404
|
}), (c, u) => {
|
|
20385
20405
|
const d = Ee("KEmptyState");
|
|
20386
|
-
return X(), _t("div",
|
|
20406
|
+
return X(), _t("div", bC, [
|
|
20387
20407
|
o.value === null ? (X(), Nt(d, {
|
|
20388
20408
|
key: 0,
|
|
20389
20409
|
class: "single-value-error",
|
|
20390
20410
|
"data-testid": "single-value-error",
|
|
20391
20411
|
"icon-variant": "error",
|
|
20392
20412
|
title: q(t)("singleValue.valueError")
|
|
20393
|
-
}, null, 8, ["title"])) : (X(), _t("div",
|
|
20394
|
-
ut("span",
|
|
20395
|
-
a.value ? (X(), _t("span",
|
|
20413
|
+
}, null, 8, ["title"])) : (X(), _t("div", _C, [
|
|
20414
|
+
ut("span", xC, ft(l.value), 1),
|
|
20415
|
+
a.value ? (X(), _t("span", vC, " " + ft(r.value), 1)) : Xt("", !0)
|
|
20396
20416
|
]))
|
|
20397
20417
|
]);
|
|
20398
20418
|
};
|
|
20399
20419
|
}
|
|
20400
|
-
}),
|
|
20420
|
+
}), MC = /* @__PURE__ */ We(wC, [["__scopeId", "data-v-c25764ee"]]), SC = { class: "simple-chart-shell" }, TC = {
|
|
20401
20421
|
key: 1,
|
|
20402
20422
|
class: "analytics-chart-parent"
|
|
20403
|
-
},
|
|
20423
|
+
}, DC = /* @__PURE__ */ ge({
|
|
20404
20424
|
__name: "SimpleChart",
|
|
20405
20425
|
props: {
|
|
20406
20426
|
chartData: {
|
|
@@ -20458,9 +20478,9 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20458
20478
|
});
|
|
20459
20479
|
return (c, u) => {
|
|
20460
20480
|
const d = Ee("KEmptyState");
|
|
20461
|
-
return X(), _t("div",
|
|
20462
|
-
l.value ? (X(), _t("div",
|
|
20463
|
-
r.value ? (X(), Nt(
|
|
20481
|
+
return X(), _t("div", SC, [
|
|
20482
|
+
l.value ? (X(), _t("div", TC, [
|
|
20483
|
+
r.value ? (X(), Nt(yC, {
|
|
20464
20484
|
key: 0,
|
|
20465
20485
|
"chart-data": i.value,
|
|
20466
20486
|
"dataset-colors": n.chartOptions.chartDatasetColors,
|
|
@@ -20471,7 +20491,7 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20471
20491
|
"synthetics-data-key": n.syntheticsDataKey,
|
|
20472
20492
|
width: n.width
|
|
20473
20493
|
}, null, 8, ["chart-data", "dataset-colors", "metric-display", "metric-unit", "numerator", "synthetics-data-key", "width"])) : Xt("", !0),
|
|
20474
|
-
a.value ? (X(), Nt(
|
|
20494
|
+
a.value ? (X(), Nt(MC, {
|
|
20475
20495
|
key: 1,
|
|
20476
20496
|
data: n.chartData,
|
|
20477
20497
|
"decimal-points": n.chartOptions.decimalPoints
|
|
@@ -20490,20 +20510,20 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20490
20510
|
]);
|
|
20491
20511
|
};
|
|
20492
20512
|
}
|
|
20493
|
-
}),
|
|
20513
|
+
}), XP = /* @__PURE__ */ We(DC, [["__scopeId", "data-v-471652c8"]]), kC = {
|
|
20494
20514
|
class: "top-n-card-title",
|
|
20495
20515
|
"data-testid": "top-n-card-title"
|
|
20496
|
-
},
|
|
20516
|
+
}, CC = {
|
|
20497
20517
|
class: "top-n-card-description",
|
|
20498
20518
|
"data-testid": "top-n-card-description"
|
|
20499
|
-
},
|
|
20519
|
+
}, PC = {
|
|
20500
20520
|
key: 3,
|
|
20501
20521
|
class: "top-n-table",
|
|
20502
20522
|
"data-testid": "top-n-table"
|
|
20503
|
-
},
|
|
20523
|
+
}, OC = { class: "table-headings" }, AC = { class: "table-row" }, EC = { class: "column-1" }, RC = { class: "column-2" }, IC = {
|
|
20504
20524
|
class: "table-body",
|
|
20505
20525
|
"data-testid": "top-n-data"
|
|
20506
|
-
},
|
|
20526
|
+
}, LC = ["data-testid"], NC = { class: "column-1" }, FC = { class: "column-2" }, zC = /* @__PURE__ */ ge({
|
|
20507
20527
|
__name: "TopNTable",
|
|
20508
20528
|
props: {
|
|
20509
20529
|
title: { default: "" },
|
|
@@ -20572,20 +20592,20 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20572
20592
|
key: 1,
|
|
20573
20593
|
"table-columns": 2,
|
|
20574
20594
|
type: "table"
|
|
20575
|
-
})) : s.value ? (X(), _t("div",
|
|
20576
|
-
ut("div",
|
|
20577
|
-
ut("div",
|
|
20578
|
-
ut("div",
|
|
20579
|
-
ut("div",
|
|
20595
|
+
})) : s.value ? (X(), _t("div", PC, [
|
|
20596
|
+
ut("div", OC, [
|
|
20597
|
+
ut("div", AC, [
|
|
20598
|
+
ut("div", EC, ft(q(e).t("topNTable.nameLabel")), 1),
|
|
20599
|
+
ut("div", RC, ft(l.value), 1)
|
|
20580
20600
|
])
|
|
20581
20601
|
]),
|
|
20582
|
-
ut("div",
|
|
20602
|
+
ut("div", IC, [
|
|
20583
20603
|
(X(!0), _t(Ks, null, Oa(i.value, (D, v) => (X(), _t("div", {
|
|
20584
20604
|
key: `entry-${v}`,
|
|
20585
20605
|
class: "table-row",
|
|
20586
20606
|
"data-testid": `row-${u(D)}`
|
|
20587
20607
|
}, [
|
|
20588
|
-
ut("div",
|
|
20608
|
+
ut("div", NC, [
|
|
20589
20609
|
Qs(g.$slots, "name", {
|
|
20590
20610
|
record: {
|
|
20591
20611
|
id: u(D),
|
|
@@ -20597,8 +20617,8 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20597
20617
|
ze(ft(d(D)), 1)
|
|
20598
20618
|
], !0)
|
|
20599
20619
|
]),
|
|
20600
|
-
ut("div",
|
|
20601
|
-
], 8,
|
|
20620
|
+
ut("div", FC, " " + ft(f(D)), 1)
|
|
20621
|
+
], 8, LC))), 128))
|
|
20602
20622
|
])
|
|
20603
20623
|
])) : (X(), Nt(_, {
|
|
20604
20624
|
key: 2,
|
|
@@ -20616,21 +20636,21 @@ const rC = /* @__PURE__ */ ge({
|
|
|
20616
20636
|
g.title ? {
|
|
20617
20637
|
name: "title",
|
|
20618
20638
|
fn: Wt(() => [
|
|
20619
|
-
ut("span",
|
|
20639
|
+
ut("span", kC, ft(g.title), 1)
|
|
20620
20640
|
]),
|
|
20621
20641
|
key: "0"
|
|
20622
20642
|
} : void 0,
|
|
20623
20643
|
g.description ? {
|
|
20624
20644
|
name: "actions",
|
|
20625
20645
|
fn: Wt(() => [
|
|
20626
|
-
ut("div",
|
|
20646
|
+
ut("div", CC, ft(g.description), 1)
|
|
20627
20647
|
]),
|
|
20628
20648
|
key: "1"
|
|
20629
20649
|
} : void 0
|
|
20630
20650
|
]), 1032, ["title-tag"]);
|
|
20631
20651
|
};
|
|
20632
20652
|
}
|
|
20633
|
-
}),
|
|
20653
|
+
}), GP = /* @__PURE__ */ We(zC, [["__scopeId", "data-v-665e7735"]]);
|
|
20634
20654
|
var Pa = { exports: {} };
|
|
20635
20655
|
Pa.exports;
|
|
20636
20656
|
(function(n, t) {
|
|
@@ -21219,10 +21239,10 @@ Pa.exports;
|
|
|
21219
21239
|
}
|
|
21220
21240
|
n.exports = bs;
|
|
21221
21241
|
})(Pa, Pa.exports);
|
|
21222
|
-
var
|
|
21223
|
-
const
|
|
21224
|
-
var
|
|
21225
|
-
function
|
|
21242
|
+
var HC = Pa.exports;
|
|
21243
|
+
const WC = /* @__PURE__ */ Dc(HC);
|
|
21244
|
+
var BC = 9007199254740991, YC = "[object Arguments]", jC = "[object Function]", $C = "[object GeneratorFunction]", UC = "[object Symbol]", VC = typeof Ie == "object" && Ie && Ie.Object === Object && Ie, qC = typeof self == "object" && self && self.Object === Object && self, XC = VC || qC || Function("return this")();
|
|
21245
|
+
function GC(n, t, e) {
|
|
21226
21246
|
switch (e.length) {
|
|
21227
21247
|
case 0:
|
|
21228
21248
|
return n.call(t);
|
|
@@ -21235,87 +21255,87 @@ function XC(n, t, e) {
|
|
|
21235
21255
|
}
|
|
21236
21256
|
return n.apply(t, e);
|
|
21237
21257
|
}
|
|
21238
|
-
function
|
|
21258
|
+
function KC(n, t) {
|
|
21239
21259
|
for (var e = -1, i = n ? n.length : 0, s = Array(i); ++e < i; )
|
|
21240
21260
|
s[e] = t(n[e], e, n);
|
|
21241
21261
|
return s;
|
|
21242
21262
|
}
|
|
21243
|
-
function
|
|
21263
|
+
function ZC(n, t) {
|
|
21244
21264
|
for (var e = -1, i = t.length, s = n.length; ++e < i; )
|
|
21245
21265
|
n[s + e] = t[e];
|
|
21246
21266
|
return n;
|
|
21247
21267
|
}
|
|
21248
|
-
var zc = Object.prototype,
|
|
21249
|
-
function
|
|
21268
|
+
var zc = Object.prototype, QC = zc.hasOwnProperty, Hc = zc.toString, Dh = XC.Symbol, JC = zc.propertyIsEnumerable, kh = Dh ? Dh.isConcatSpreadable : void 0, Ch = Math.max;
|
|
21269
|
+
function tP(n, t, e, i, s) {
|
|
21250
21270
|
var r = -1, a = n.length;
|
|
21251
|
-
for (e || (e =
|
|
21271
|
+
for (e || (e = sP), s || (s = []); ++r < a; ) {
|
|
21252
21272
|
var o = n[r];
|
|
21253
|
-
e(o) ?
|
|
21273
|
+
e(o) ? ZC(s, o) : s[s.length] = o;
|
|
21254
21274
|
}
|
|
21255
21275
|
return s;
|
|
21256
21276
|
}
|
|
21257
|
-
function
|
|
21258
|
-
return n = Object(n),
|
|
21277
|
+
function eP(n, t) {
|
|
21278
|
+
return n = Object(n), nP(n, t, function(e, i) {
|
|
21259
21279
|
return i in n;
|
|
21260
21280
|
});
|
|
21261
21281
|
}
|
|
21262
|
-
function
|
|
21282
|
+
function nP(n, t, e) {
|
|
21263
21283
|
for (var i = -1, s = t.length, r = {}; ++i < s; ) {
|
|
21264
21284
|
var a = t[i], o = n[a];
|
|
21265
21285
|
e(o, a) && (r[a] = o);
|
|
21266
21286
|
}
|
|
21267
21287
|
return r;
|
|
21268
21288
|
}
|
|
21269
|
-
function
|
|
21289
|
+
function iP(n, t) {
|
|
21270
21290
|
return t = Ch(t === void 0 ? n.length - 1 : t, 0), function() {
|
|
21271
21291
|
for (var e = arguments, i = -1, s = Ch(e.length - t, 0), r = Array(s); ++i < s; )
|
|
21272
21292
|
r[i] = e[t + i];
|
|
21273
21293
|
i = -1;
|
|
21274
21294
|
for (var a = Array(t + 1); ++i < t; )
|
|
21275
21295
|
a[i] = e[i];
|
|
21276
|
-
return a[t] = r,
|
|
21296
|
+
return a[t] = r, GC(n, this, a);
|
|
21277
21297
|
};
|
|
21278
21298
|
}
|
|
21279
|
-
function iP(n) {
|
|
21280
|
-
return aP(n) || rP(n) || !!(kh && n && n[kh]);
|
|
21281
|
-
}
|
|
21282
21299
|
function sP(n) {
|
|
21283
|
-
|
|
21300
|
+
return oP(n) || aP(n) || !!(kh && n && n[kh]);
|
|
21301
|
+
}
|
|
21302
|
+
function rP(n) {
|
|
21303
|
+
if (typeof n == "string" || fP(n))
|
|
21284
21304
|
return n;
|
|
21285
21305
|
var t = n + "";
|
|
21286
21306
|
return t == "0" && 1 / n == -1 / 0 ? "-0" : t;
|
|
21287
21307
|
}
|
|
21288
|
-
function
|
|
21289
|
-
return
|
|
21290
|
-
}
|
|
21291
|
-
var aP = Array.isArray;
|
|
21292
|
-
function oP(n) {
|
|
21293
|
-
return n != null && uP(n.length) && !cP(n);
|
|
21308
|
+
function aP(n) {
|
|
21309
|
+
return cP(n) && QC.call(n, "callee") && (!JC.call(n, "callee") || Hc.call(n) == YC);
|
|
21294
21310
|
}
|
|
21311
|
+
var oP = Array.isArray;
|
|
21295
21312
|
function lP(n) {
|
|
21296
|
-
return
|
|
21313
|
+
return n != null && dP(n.length) && !uP(n);
|
|
21297
21314
|
}
|
|
21298
21315
|
function cP(n) {
|
|
21299
|
-
|
|
21300
|
-
return t == YC || t == jC;
|
|
21316
|
+
return am(n) && lP(n);
|
|
21301
21317
|
}
|
|
21302
21318
|
function uP(n) {
|
|
21303
|
-
|
|
21319
|
+
var t = hP(n) ? Hc.call(n) : "";
|
|
21320
|
+
return t == jC || t == $C;
|
|
21304
21321
|
}
|
|
21305
21322
|
function dP(n) {
|
|
21323
|
+
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= BC;
|
|
21324
|
+
}
|
|
21325
|
+
function hP(n) {
|
|
21306
21326
|
var t = typeof n;
|
|
21307
21327
|
return !!n && (t == "object" || t == "function");
|
|
21308
21328
|
}
|
|
21309
21329
|
function am(n) {
|
|
21310
21330
|
return !!n && typeof n == "object";
|
|
21311
21331
|
}
|
|
21312
|
-
function
|
|
21313
|
-
return typeof n == "symbol" || am(n) && Hc.call(n) ==
|
|
21332
|
+
function fP(n) {
|
|
21333
|
+
return typeof n == "symbol" || am(n) && Hc.call(n) == UC;
|
|
21314
21334
|
}
|
|
21315
|
-
var
|
|
21316
|
-
return n == null ? {} :
|
|
21317
|
-
}),
|
|
21318
|
-
const
|
|
21335
|
+
var gP = iP(function(n, t) {
|
|
21336
|
+
return n == null ? {} : eP(n, KC(tP(t), rP));
|
|
21337
|
+
}), mP = gP;
|
|
21338
|
+
const pP = /* @__PURE__ */ Dc(mP);
|
|
21319
21339
|
var om = { exports: {} };
|
|
21320
21340
|
(function(n, t) {
|
|
21321
21341
|
(function(e, i) {
|
|
@@ -21385,7 +21405,7 @@ var om = { exports: {} };
|
|
|
21385
21405
|
a.saveAs = l.saveAs = l, n.exports = l;
|
|
21386
21406
|
});
|
|
21387
21407
|
})(om);
|
|
21388
|
-
var
|
|
21408
|
+
var yP = om.exports, lm = { exports: {} };
|
|
21389
21409
|
/* @license
|
|
21390
21410
|
Papa Parse
|
|
21391
21411
|
v5.5.3
|
|
@@ -21800,8 +21820,8 @@ License: MIT
|
|
|
21800
21820
|
}), (d.prototype = Object.create(u.prototype)).constructor = d, (h.prototype = Object.create(u.prototype)).constructor = h, (f.prototype = Object.create(f.prototype)).constructor = f, (g.prototype = Object.create(u.prototype)).constructor = g, c;
|
|
21801
21821
|
});
|
|
21802
21822
|
})(lm);
|
|
21803
|
-
var
|
|
21804
|
-
const
|
|
21823
|
+
var bP = lm.exports;
|
|
21824
|
+
const _P = ["id"], xP = /* @__PURE__ */ ge({
|
|
21805
21825
|
__name: "VueJsonCsv",
|
|
21806
21826
|
props: {
|
|
21807
21827
|
data: {
|
|
@@ -21866,12 +21886,12 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
21866
21886
|
const u = i.labels;
|
|
21867
21887
|
if (typeof i.fields !== Ui.Object)
|
|
21868
21888
|
throw new Error("Labels needs to be a object containing key / value pairs.");
|
|
21869
|
-
return typeof u === Ui.Object ? (d) =>
|
|
21889
|
+
return typeof u === Ui.Object ? (d) => WC(d, (h, f) => u[f] || f) : (d) => d;
|
|
21870
21890
|
}, o = () => {
|
|
21871
21891
|
const u = i.fields;
|
|
21872
21892
|
if (typeof i.fields !== Ui.Object && !Array.isArray(u))
|
|
21873
21893
|
throw new Error("Fields needs to be an array of strings.");
|
|
21874
|
-
return Array.isArray(u) ? (d) =>
|
|
21894
|
+
return Array.isArray(u) ? (d) => pP(d, u) : (d) => d;
|
|
21875
21895
|
}, l = () => {
|
|
21876
21896
|
if (typeof i.fields === Ui.Undefined && typeof i.labels === Ui.Undefined)
|
|
21877
21897
|
return i.data;
|
|
@@ -21883,7 +21903,7 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
21883
21903
|
return;
|
|
21884
21904
|
}
|
|
21885
21905
|
e("export-started", r.value);
|
|
21886
|
-
let u =
|
|
21906
|
+
let u = bP.unparse(r.value, Object.assign({
|
|
21887
21907
|
delimiter: i.delimiter,
|
|
21888
21908
|
encoding: i.encoding
|
|
21889
21909
|
}));
|
|
@@ -21892,7 +21912,7 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
21892
21912
|
const d = new Blob([u], {
|
|
21893
21913
|
type: "text/csv;charset=" + i.encoding
|
|
21894
21914
|
});
|
|
21895
|
-
|
|
21915
|
+
yP.saveAs(d, i.filename);
|
|
21896
21916
|
}
|
|
21897
21917
|
};
|
|
21898
21918
|
return (u, d) => (X(), _t("div", {
|
|
@@ -21903,9 +21923,9 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
21903
21923
|
Qs(u.$slots, "default", {}, () => [
|
|
21904
21924
|
ze("Download " + ft(n.filename), 1)
|
|
21905
21925
|
])
|
|
21906
|
-
], 8,
|
|
21926
|
+
], 8, _P));
|
|
21907
21927
|
}
|
|
21908
|
-
}),
|
|
21928
|
+
}), vP = /* @__PURE__ */ ge({
|
|
21909
21929
|
__name: "DownloadCsv",
|
|
21910
21930
|
props: {
|
|
21911
21931
|
rows: {},
|
|
@@ -21915,7 +21935,7 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
21915
21935
|
setup(n) {
|
|
21916
21936
|
const t = n, e = F(() => Object.keys(t.headers));
|
|
21917
21937
|
return (i, s) => (X(), _t("div", null, [
|
|
21918
|
-
ie(
|
|
21938
|
+
ie(xP, {
|
|
21919
21939
|
data: i.rows,
|
|
21920
21940
|
fields: e.value,
|
|
21921
21941
|
filename: i.filename,
|
|
@@ -21928,14 +21948,14 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
21928
21948
|
}, 8, ["data", "fields", "filename", "labels"])
|
|
21929
21949
|
]));
|
|
21930
21950
|
}
|
|
21931
|
-
}),
|
|
21951
|
+
}), wP = { class: "kong-ui-public-csv-export-modal" }, MP = {
|
|
21932
21952
|
key: 0,
|
|
21933
21953
|
class: "selected-range"
|
|
21934
|
-
},
|
|
21954
|
+
}, SP = {
|
|
21935
21955
|
key: 4,
|
|
21936
21956
|
class: "text-muted",
|
|
21937
21957
|
tag: "span"
|
|
21938
|
-
}, Ph = 3,
|
|
21958
|
+
}, Ph = 3, KP = /* @__PURE__ */ ge({
|
|
21939
21959
|
__name: "CsvExportModal",
|
|
21940
21960
|
props: {
|
|
21941
21961
|
exportState: {},
|
|
@@ -22012,7 +22032,7 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
22012
22032
|
a.value++;
|
|
22013
22033
|
}), (g, y) => {
|
|
22014
22034
|
const _ = Ee("KSkeleton"), M = Ee("KEmptyState"), w = Ee("KTableData"), D = Ee("KTooltip"), v = Ee("KButton"), S = Ee("KModal");
|
|
22015
|
-
return X(), _t("div",
|
|
22035
|
+
return X(), _t("div", wP, [
|
|
22016
22036
|
ie(S, {
|
|
22017
22037
|
class: "vitals-report",
|
|
22018
22038
|
"data-testid": "csv-export-modal",
|
|
@@ -22026,7 +22046,7 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
22026
22046
|
var O;
|
|
22027
22047
|
return [
|
|
22028
22048
|
ut("div", null, [
|
|
22029
|
-
g.exportState.status === "success" && l.value ? (X(), _t("div",
|
|
22049
|
+
g.exportState.status === "success" && l.value ? (X(), _t("div", MP, [
|
|
22030
22050
|
ut("p", null, ft(g.modalDescription ? g.modalDescription : q(e).t("csvExport.exportDescription")), 1),
|
|
22031
22051
|
ut("p", null, ft(q(e).t("csvExport.exportTimeRange")) + ": " + ft(c.value), 1)
|
|
22032
22052
|
])) : Xt("", !0),
|
|
@@ -22065,7 +22085,7 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
22065
22085
|
]),
|
|
22066
22086
|
_: 1
|
|
22067
22087
|
})) : Xt("", !0),
|
|
22068
|
-
g.exportState.status === "success" && l.value ? (X(), _t("div",
|
|
22088
|
+
g.exportState.status === "success" && l.value ? (X(), _t("div", SP, [
|
|
22069
22089
|
ze(ft(u.value) + " ", 1),
|
|
22070
22090
|
ie(D, {
|
|
22071
22091
|
class: "preview-tooltip",
|
|
@@ -22095,7 +22115,7 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
22095
22115
|
]),
|
|
22096
22116
|
_: 1
|
|
22097
22117
|
}),
|
|
22098
|
-
ie(
|
|
22118
|
+
ie(vP, {
|
|
22099
22119
|
class: "vitals-report-export-button",
|
|
22100
22120
|
filename: r,
|
|
22101
22121
|
headers: h.value.csvHeaders,
|
|
@@ -22121,7 +22141,7 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
22121
22141
|
]);
|
|
22122
22142
|
};
|
|
22123
22143
|
}
|
|
22124
|
-
}),
|
|
22144
|
+
}), TP = ({
|
|
22125
22145
|
groupSizeMs: n,
|
|
22126
22146
|
minStamp: t,
|
|
22127
22147
|
maxStamp: e,
|
|
@@ -22140,11 +22160,11 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
22140
22160
|
]), o = l;
|
|
22141
22161
|
}
|
|
22142
22162
|
return r;
|
|
22143
|
-
},
|
|
22163
|
+
}, DP = { class: "container" }, kP = {
|
|
22144
22164
|
key: 0,
|
|
22145
22165
|
class: "no-data",
|
|
22146
22166
|
"data-testId": "sparkline-empty"
|
|
22147
|
-
},
|
|
22167
|
+
}, CP = ["title"], PP = /* @__PURE__ */ ge({
|
|
22148
22168
|
__name: "SparklineChart",
|
|
22149
22169
|
props: {
|
|
22150
22170
|
datasets: {},
|
|
@@ -22188,7 +22208,7 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
22188
22208
|
c.value[v],
|
|
22189
22209
|
`${v}: ${c.value[v]}`
|
|
22190
22210
|
]).sort(([v], [S]) => S - v).map(([, v]) => v).join(", ")), d = F(() => Object.keys(c.value).map((v) => c.value[v]).reduce((v, S) => v + S, 0)), h = F(() => d.value > 0), f = F(() => n.datasets.length > 1), g = F(() => n.datasets.map(({ timestamps: v, color: S, label: O }) => ({
|
|
22191
|
-
data:
|
|
22211
|
+
data: TP({
|
|
22192
22212
|
groupSizeMs: l.value,
|
|
22193
22213
|
minStamp: n.minStamp,
|
|
22194
22214
|
maxStamp: n.maxStamp,
|
|
@@ -22293,7 +22313,7 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
22293
22313
|
v = Math.max(v, C);
|
|
22294
22314
|
}
|
|
22295
22315
|
o("max", v);
|
|
22296
|
-
}, { immediate: !0 }), (v, S) => (X(), _t("div",
|
|
22316
|
+
}, { immediate: !0 }), (v, S) => (X(), _t("div", DP, [
|
|
22297
22317
|
h.value ? v.type === "sparkline_bar" ? (X(), Nt(q(nm), {
|
|
22298
22318
|
key: 1,
|
|
22299
22319
|
"chart-id": q(e),
|
|
@@ -22308,7 +22328,7 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
22308
22328
|
"data-testId": v.type === "sparkline_line" ? "sparkline-line" : "sparkline-step",
|
|
22309
22329
|
options: M.value,
|
|
22310
22330
|
plugins: a.value
|
|
22311
|
-
}, null, 8, ["chart-id", "data", "data-testId", "options", "plugins"])) : Xt("", !0) : (X(), _t("div",
|
|
22331
|
+
}, null, 8, ["chart-id", "data", "data-testId", "options", "plugins"])) : Xt("", !0) : (X(), _t("div", kP, [
|
|
22312
22332
|
Qs(v.$slots, "empty", {}, () => [
|
|
22313
22333
|
ze(ft(q(i).t("sparkline_no_data")), 1)
|
|
22314
22334
|
], !0)
|
|
@@ -22334,44 +22354,44 @@ const bP = ["id"], _P = /* @__PURE__ */ ge({
|
|
|
22334
22354
|
}, () => [
|
|
22335
22355
|
ze(ft(u.value), 1)
|
|
22336
22356
|
], !0)
|
|
22337
|
-
], 8,
|
|
22357
|
+
], 8, CP)) : Xt("", !0)
|
|
22338
22358
|
]));
|
|
22339
22359
|
}
|
|
22340
|
-
}),
|
|
22360
|
+
}), ZP = /* @__PURE__ */ We(PP, [["__scopeId", "data-v-ea085d8b"]]);
|
|
22341
22361
|
export {
|
|
22342
|
-
|
|
22362
|
+
qP as AnalyticsChart,
|
|
22343
22363
|
qt as ChartLegendPosition,
|
|
22344
|
-
|
|
22345
|
-
|
|
22364
|
+
KP as CsvExportModal,
|
|
22365
|
+
LP as DECIMAL_DISPLAY,
|
|
22346
22366
|
Jw as EMPTY_COLOR,
|
|
22347
22367
|
Yw as FONT_SIZE_REGULAR,
|
|
22348
22368
|
Bw as FONT_SIZE_SMALL,
|
|
22349
22369
|
Ll as MAX_LABEL_LENGTH,
|
|
22350
|
-
|
|
22351
|
-
|
|
22352
|
-
|
|
22353
|
-
|
|
22370
|
+
WP as OTHERS_COLOR,
|
|
22371
|
+
XP as SimpleChart,
|
|
22372
|
+
ZP as SparklineChart,
|
|
22373
|
+
GP as TopNTable,
|
|
22354
22374
|
Ui as ValidType,
|
|
22355
22375
|
Zw as accessibleGrey,
|
|
22356
22376
|
Qw as apiRequestStatusCodeColors,
|
|
22357
|
-
|
|
22377
|
+
UP as chartTypes,
|
|
22358
22378
|
a1 as codesInSpec,
|
|
22359
22379
|
Kw as darkenColor,
|
|
22360
22380
|
Qn as datavisPalette,
|
|
22361
22381
|
Ko as defaultStatusCodeColors,
|
|
22362
22382
|
ig as determineBaseColor,
|
|
22363
|
-
|
|
22364
|
-
|
|
22365
|
-
|
|
22383
|
+
zP as errorRateColors,
|
|
22384
|
+
jP as handleQueryError,
|
|
22385
|
+
HP as latencyColors,
|
|
22366
22386
|
vd as lightGrey,
|
|
22367
|
-
|
|
22387
|
+
BP as lookupColor,
|
|
22368
22388
|
Nl as lookupDatavisColor,
|
|
22369
|
-
|
|
22389
|
+
YP as lookupStatusCodeCategoryColor,
|
|
22370
22390
|
sg as lookupStatusCodeColor,
|
|
22371
22391
|
ng as numberFormatter,
|
|
22372
|
-
|
|
22373
|
-
|
|
22374
|
-
|
|
22392
|
+
$P as simpleChartMetricDisplay,
|
|
22393
|
+
VP as simpleChartTypes,
|
|
22394
|
+
NP as statusCodeBadgeBackgroundColor,
|
|
22375
22395
|
qo as thresholdColor,
|
|
22376
|
-
|
|
22396
|
+
FP as trafficColors
|
|
22377
22397
|
};
|