@kong-ui-public/analytics-chart 10.13.4 → 10.13.5
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/style.css +1 -1
- package/dist/types/components/AnalyticsChart.vue.d.ts.map +1 -1
- package/dist/types/components/CsvExportModal.vue.d.ts.map +1 -1
- package/dist/types/components/DownloadCsv.vue.d.ts.map +1 -1
- package/dist/types/components/SimpleChart.vue.d.ts.map +1 -1
- package/dist/types/components/SparklineChart.vue.d.ts.map +1 -1
- package/dist/types/components/TopNTable.vue.d.ts.map +1 -1
- package/dist/types/components/ZoomActions.vue.d.ts.map +1 -1
- package/dist/types/components/ZoomTimerange.vue.d.ts.map +1 -1
- package/dist/types/components/chart-plugins/ChartLegend.vue.d.ts.map +1 -1
- package/dist/types/components/chart-plugins/ChartTooltip.vue.d.ts.map +1 -1
- package/dist/types/components/chart-types/DonutChart.vue.d.ts.map +1 -1
- package/dist/types/components/chart-types/GaugeChart.vue.d.ts.map +1 -1
- package/dist/types/components/chart-types/SingleValue.vue.d.ts.map +1 -1
- package/dist/types/components/chart-types/StackedBarChart.vue.d.ts.map +1 -1
- package/dist/types/components/chart-types/TimeSeriesChart.vue.d.ts.map +1 -1
- package/dist/types/components/vue-json-csv/VueJsonCsv.vue.d.ts.map +1 -1
- package/dist/vitals-chart.es.js +187 -185
- package/dist/vitals-chart.umd.js +4 -4
- package/package.json +3 -3
package/dist/vitals-chart.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var hm = Object.defineProperty;
|
|
2
2
|
var fm = (n, t, e) => t in n ? hm(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var E = (n, t, e) => fm(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { computed as L, getCurrentInstance as ec, onUnmounted as ni, shallowRef as Ge, onMounted as ii, onBeforeUnmount as Ah, watch as ce, inject as nr, nextTick as Rh, isRef as gm, toRefs as mm, customRef as pm, toValue as Kt, getCurrentScope as ym, onScopeDispose as bm, ref as Vt, unref as V, watchEffect as jc, defineComponent as de, createElementBlock as rt, openBlock as j, createElementVNode as
|
|
4
|
+
import { computed as L, getCurrentInstance as ec, onUnmounted as ni, shallowRef as Ge, onMounted as ii, onBeforeUnmount as Ah, watch as ce, inject as nr, nextTick as Rh, isRef as gm, toRefs as mm, customRef as pm, toValue as Kt, getCurrentScope as ym, onScopeDispose as bm, ref as Vt, unref as V, watchEffect as jc, defineComponent as de, createElementBlock as rt, openBlock as j, createElementVNode as at, toDisplayString as ht, createVNode as Zt, Fragment as xi, renderList as Zi, normalizeClass as sn, createCommentVNode as Yt, normalizeStyle as Mi, createBlock as Rt, resolveComponent as Re, createSlots as Ih, withCtx as zt, useTemplateRef as Ki, reactive as ir, toRef as Lt, Teleport as Lh, h as _l, toRaw as vl, version as _m, isProxy as Nh, provide as Uc, createTextVNode as Be, resolveDynamicComponent as vm, renderSlot as sr, withKeys as xm } from "vue";
|
|
5
5
|
import { createI18n as wm, i18nTComponent as Mm } from "@kong-ui-public/i18n";
|
|
6
6
|
import { CloseIcon as Sm, DragIcon as Tm, WarningIcon as Dm, EqualIcon as km, InfoIcon as Cm } from "@kong/icons";
|
|
7
7
|
import { calculateChange as Om, changePolarity as Pm, defineIcon as Em, metricChange as Am, useTrendRange as Rm } from "@kong-ui-public/analytics-metric-provider";
|
|
@@ -14694,7 +14694,7 @@ Oa.exports;
|
|
|
14694
14694
|
function Tt(v, I) {
|
|
14695
14695
|
return v == null ? void 0 : v[I];
|
|
14696
14696
|
}
|
|
14697
|
-
function
|
|
14697
|
+
function ot(v) {
|
|
14698
14698
|
var I = !1;
|
|
14699
14699
|
if (v != null && typeof v.toString != "function")
|
|
14700
14700
|
try {
|
|
@@ -14872,7 +14872,7 @@ Oa.exports;
|
|
|
14872
14872
|
if (Ir(v))
|
|
14873
14873
|
return bo(v, I);
|
|
14874
14874
|
if (Nn == g || Nn == r || zr && !re) {
|
|
14875
|
-
if (
|
|
14875
|
+
if (ot(v))
|
|
14876
14876
|
return re ? v : {};
|
|
14877
14877
|
if (oe = Ar(zr ? {} : v), !I)
|
|
14878
14878
|
return To(v, fo(oe, v));
|
|
@@ -14905,7 +14905,7 @@ Oa.exports;
|
|
|
14905
14905
|
function Li(v) {
|
|
14906
14906
|
if (!_n(v) || Po(v))
|
|
14907
14907
|
return !1;
|
|
14908
|
-
var I = xs(v) ||
|
|
14908
|
+
var I = xs(v) || ot(v) ? $t : dt;
|
|
14909
14909
|
return I.test(ye(v));
|
|
14910
14910
|
}
|
|
14911
14911
|
function yo(v) {
|
|
@@ -15594,7 +15594,7 @@ const bg = (n, t, e) => {
|
|
|
15594
15594
|
value: t && t[s.text],
|
|
15595
15595
|
isSegmentEmpty: i.datasets[r].isSegmentEmpty
|
|
15596
15596
|
})).sort(e);
|
|
15597
|
-
},
|
|
15597
|
+
}, rP = 2, aS = 10, oS = 12, $l = 10, Hd = "#6c7489", lS = "#d60027", cS = "#ad000e", Cc = "#6c7489", Bd = "#52596e", uS = "#007d60", dS = "#995c00", hS = "#ffc400", dr = "16px", fS = "20px", gS = "'Inter', Roboto, Helvetica, sans-serif", Wd = {
|
|
15598
15598
|
"1XXCount|1XX|1[0-9][0-9]": { solid: "#0072E5", light: "#4DA6FF", description: "Informational" },
|
|
15599
15599
|
"SuccessfulRequests|2XXCount|2XX|2[0-9][0-9]|SUCCESS": { solid: "#0BB652", light: "#6FCC83", description: "Success" },
|
|
15600
15600
|
"3XXCount|3XX|3[0-9][0-9]": { solid: "#FDC53B", light: "#FFD982", description: "Redirection" },
|
|
@@ -15629,21 +15629,21 @@ const bg = (n, t, e) => {
|
|
|
15629
15629
|
300: { background: "#fff1d5", text: "#a06027" },
|
|
15630
15630
|
400: { background: "#fee3b6", text: "#944d19" },
|
|
15631
15631
|
500: { background: "#fedada", text: "#852021" }
|
|
15632
|
-
},
|
|
15632
|
+
}, aP = (n) => {
|
|
15633
15633
|
var e;
|
|
15634
15634
|
const t = Math.floor(parseInt(n, 10) / 100) * 100;
|
|
15635
15635
|
return ((e = yS[t]) == null ? void 0 : e.background) || "#fafafa";
|
|
15636
|
-
},
|
|
15636
|
+
}, oP = {
|
|
15637
15637
|
SUCCESS: "#6FCC83",
|
|
15638
15638
|
FAILURE: "#FF8484"
|
|
15639
|
-
},
|
|
15639
|
+
}, lP = {
|
|
15640
15640
|
"4XX": "#FFBA81",
|
|
15641
15641
|
"5XX": "#FF8484"
|
|
15642
|
-
},
|
|
15642
|
+
}, cP = {
|
|
15643
15643
|
LatencyP99: "#1356cb",
|
|
15644
15644
|
LatencyP95: "#1fbecd",
|
|
15645
15645
|
LatencyP50: "#1df97d"
|
|
15646
|
-
},
|
|
15646
|
+
}, uP = "#dad4c7", bS = "#afb7c5", dP = (n) => {
|
|
15647
15647
|
const t = Object.entries(Wd).find(([e]) => new RegExp(e).test(n));
|
|
15648
15648
|
return t && t[1] || Wd.standard;
|
|
15649
15649
|
}, _g = (n, t, e, i) => {
|
|
@@ -15729,7 +15729,7 @@ const bg = (n, t, e) => {
|
|
|
15729
15729
|
]), vg = (n) => {
|
|
15730
15730
|
const t = parseInt(n, 10), e = Math.floor(t / 100) * 100, i = kS.get(e);
|
|
15731
15731
|
return i === void 0 ? $d : i.get(t) ?? i.get(-1) ?? $d;
|
|
15732
|
-
},
|
|
15732
|
+
}, hP = (n) => {
|
|
15733
15733
|
const t = vg(n);
|
|
15734
15734
|
return { solid: t, light: t };
|
|
15735
15735
|
}, CS = Array.from({ length: 500 }, (n, t) => 100 + t), ol = {
|
|
@@ -16246,7 +16246,7 @@ const aT = ({
|
|
|
16246
16246
|
timezone: e,
|
|
16247
16247
|
tooltipMap: rT,
|
|
16248
16248
|
defaultFormat: "MMM dd, yyyy h:mm:ss a"
|
|
16249
|
-
}),
|
|
16249
|
+
}), fP = (n) => {
|
|
16250
16250
|
var e, i, s, r, a;
|
|
16251
16251
|
const { i18n: t } = _t.useI18n();
|
|
16252
16252
|
return (n == null ? void 0 : n.status) === 403 ? {
|
|
@@ -18943,11 +18943,11 @@ const gk = { class: "zoom-timerange-container" }, mk = { class: "zoom-timerange-
|
|
|
18943
18943
|
return ce(() => [t.start, t.end], ([a, o]) => {
|
|
18944
18944
|
r(a, o);
|
|
18945
18945
|
}, { immediate: !0 }), (a, o) => (j(), rt("div", gk, [
|
|
18946
|
-
|
|
18947
|
-
|
|
18948
|
-
|
|
18949
|
-
|
|
18950
|
-
|
|
18946
|
+
at("div", mk, [
|
|
18947
|
+
at("div", pk, ht(V(e).t("zoom_time_range.from")), 1),
|
|
18948
|
+
at("div", null, ht(i.value), 1),
|
|
18949
|
+
at("div", yk, ht(V(e).t("zoom_time_range.to")), 1),
|
|
18950
|
+
at("div", null, ht(s.value), 1)
|
|
18951
18951
|
])
|
|
18952
18952
|
]));
|
|
18953
18953
|
}
|
|
@@ -18969,7 +18969,7 @@ const gk = { class: "zoom-timerange-container" }, mk = { class: "zoom-timerange-
|
|
|
18969
18969
|
r.action && (r.action(e.newTimeRange), i("onAction"));
|
|
18970
18970
|
};
|
|
18971
18971
|
return (r, a) => (j(), rt("div", _k, [
|
|
18972
|
-
|
|
18972
|
+
at("div", vk, [
|
|
18973
18973
|
Zt(Jg, {
|
|
18974
18974
|
end: n.newTimeRange.end,
|
|
18975
18975
|
granularity: n.granularity,
|
|
@@ -18982,8 +18982,8 @@ const gk = { class: "zoom-timerange-container" }, mk = { class: "zoom-timerange-
|
|
|
18982
18982
|
onClick: a[0] || (a[0] = (o) => r.$emit("onAction"))
|
|
18983
18983
|
}, null, 8, ["color", "size"])
|
|
18984
18984
|
]),
|
|
18985
|
-
a[2] || (a[2] =
|
|
18986
|
-
|
|
18985
|
+
a[2] || (a[2] = at("div", { class: "zoom-actions-heading-divider" }, null, -1)),
|
|
18986
|
+
at("div", xk, [
|
|
18987
18987
|
(j(!0), rt(xi, null, Zi(n.zoomActionItems, (o) => (j(), rt("div", {
|
|
18988
18988
|
key: o.key,
|
|
18989
18989
|
class: sn(["zoom-action-item", { disabled: o.disabled }]),
|
|
@@ -19060,9 +19060,9 @@ const gk = { class: "zoom-timerange-container" }, mk = { class: "zoom-timerange-
|
|
|
19060
19060
|
"zoom-action-items": n.zoomActionItems,
|
|
19061
19061
|
onOnAction: g[0] || (g[0] = (x) => e("onAction"))
|
|
19062
19062
|
}, null, 8, ["granularity", "new-time-range", "zoom-action-items"])) : (j(), rt("div", kk, [
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
|
|
19063
|
+
at("div", Ck, [
|
|
19064
|
+
at("div", Ok, [
|
|
19065
|
+
at("div", null, ht(n.tooltipTitle), 1),
|
|
19066
19066
|
h.value ? (j(), Rt(V(Tm), {
|
|
19067
19067
|
key: 0,
|
|
19068
19068
|
class: "drag-icon",
|
|
@@ -19071,23 +19071,23 @@ const gk = { class: "zoom-timerange-container" }, mk = { class: "zoom-timerange-
|
|
|
19071
19071
|
}, null, 8, ["color", "size"])) : Yt("", !0)
|
|
19072
19072
|
]),
|
|
19073
19073
|
u.value || d.value ? (j(), rt("div", Pk, [
|
|
19074
|
-
|
|
19075
|
-
|
|
19074
|
+
at("div", Ek, ht(u.value), 1),
|
|
19075
|
+
at("div", Ak, ht(d.value), 1)
|
|
19076
19076
|
])) : Yt("", !0)
|
|
19077
19077
|
]),
|
|
19078
|
-
|
|
19078
|
+
at("ul", Rk, [
|
|
19079
19079
|
(j(!0), rt(xi, null, Zi(n.state.tooltipSeries, ({ backgroundColor: x, borderColor: w, label: M, value: T, isSegmentEmpty: P }, O) => (j(), rt(xi, {
|
|
19080
19080
|
key: M + O
|
|
19081
19081
|
}, [
|
|
19082
19082
|
n.state.tooltipSeries.length ? (j(), rt("li", Ik, [
|
|
19083
|
-
|
|
19083
|
+
at("div", {
|
|
19084
19084
|
class: "square-marker",
|
|
19085
19085
|
style: Mi({ background: x, "border-color": w })
|
|
19086
19086
|
}, null, 4),
|
|
19087
|
-
|
|
19087
|
+
at("span", {
|
|
19088
19088
|
class: sn(["display-label", { empty: P }])
|
|
19089
19089
|
}, ht(M), 3),
|
|
19090
|
-
|
|
19090
|
+
at("span", Lk, ht(T), 1)
|
|
19091
19091
|
])) : Yt("", !0)
|
|
19092
19092
|
], 64))), 128))
|
|
19093
19093
|
])
|
|
@@ -19138,17 +19138,17 @@ const gk = { class: "zoom-timerange-container" }, mk = { class: "zoom-timerange-
|
|
|
19138
19138
|
key: h,
|
|
19139
19139
|
onClick: (x) => r(f, g)
|
|
19140
19140
|
}, [
|
|
19141
|
-
|
|
19141
|
+
at("div", {
|
|
19142
19142
|
class: "square-marker",
|
|
19143
19143
|
style: Mi({ background: u, "border-color": d })
|
|
19144
19144
|
}, null, 4),
|
|
19145
19145
|
Zt(c, null, Ih({
|
|
19146
19146
|
default: zt(() => [
|
|
19147
|
-
|
|
19147
|
+
at("div", {
|
|
19148
19148
|
class: sn(["label-container", { "strike-through": !a(f, g) }]),
|
|
19149
19149
|
title: b && V(i) ? `${h}: ${b.formatted}` : h
|
|
19150
19150
|
}, [
|
|
19151
|
-
|
|
19151
|
+
at("div", Bk, ht(h), 1),
|
|
19152
19152
|
b && V(i) ? (j(), rt("div", Wk, ht(b.formatted), 1)) : Yt("", !0)
|
|
19153
19153
|
], 10, Hk)
|
|
19154
19154
|
]),
|
|
@@ -19157,7 +19157,7 @@ const gk = { class: "zoom-timerange-container" }, mk = { class: "zoom-timerange-
|
|
|
19157
19157
|
_ ? {
|
|
19158
19158
|
name: "content",
|
|
19159
19159
|
fn: zt(() => [
|
|
19160
|
-
|
|
19160
|
+
at("div", Yk, ht(V(e).t("emptyEntityInfo")), 1)
|
|
19161
19161
|
]),
|
|
19162
19162
|
key: "0"
|
|
19163
19163
|
} : void 0
|
|
@@ -19257,8 +19257,8 @@ const Xk = ["id"], Gk = ["id"], Kk = { class: "axis-tooltip-content" }, Zk = "10
|
|
|
19257
19257
|
const K = Y.data, Q = (J = K.labels) == null ? void 0 : J.indexOf(B);
|
|
19258
19258
|
return K.datasets.reduce((Z, bt, Tt) => {
|
|
19259
19259
|
if (Y.isDatasetVisible(Tt)) {
|
|
19260
|
-
const
|
|
19261
|
-
return isNaN(
|
|
19260
|
+
const ot = bt.data[Q];
|
|
19261
|
+
return isNaN(ot) ? Z : Z + ot;
|
|
19262
19262
|
} else
|
|
19263
19263
|
return Z;
|
|
19264
19264
|
}, 0);
|
|
@@ -19267,18 +19267,18 @@ const Xk = ["id"], Gk = ["id"], Kk = { class: "axis-tooltip-content" }, Zk = "10
|
|
|
19267
19267
|
B === null && (B = e.t("entityNoName"));
|
|
19268
19268
|
const Z = {
|
|
19269
19269
|
type: "label",
|
|
19270
|
-
yValue: (
|
|
19271
|
-
xValue: (
|
|
19270
|
+
yValue: (ot) => J ? B : c(ot, B),
|
|
19271
|
+
xValue: (ot) => J ? c(ot, B) : B
|
|
19272
19272
|
}, bt = {
|
|
19273
19273
|
...Z,
|
|
19274
19274
|
position: J ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
19275
19275
|
yAdjust: () => J ? 0 : -Math.abs(MS()),
|
|
19276
|
-
content: (
|
|
19276
|
+
content: (ot) => Yd(c(ot, B), K)
|
|
19277
19277
|
}, Tt = {
|
|
19278
19278
|
...Z,
|
|
19279
|
-
content: (
|
|
19279
|
+
content: (ot) => TS(c(ot, B), SS(ot.chart, Y)),
|
|
19280
19280
|
position: J ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
19281
|
-
xAdjust: (
|
|
19281
|
+
xAdjust: (ot) => J ? wS(Yd(c(ot, B), K)) : 0,
|
|
19282
19282
|
color: pS
|
|
19283
19283
|
};
|
|
19284
19284
|
return {
|
|
@@ -19339,7 +19339,7 @@ const Xk = ["id"], Gk = ["id"], Kk = { class: "axis-tooltip-content" }, Zk = "10
|
|
|
19339
19339
|
afterEvent(Y, B) {
|
|
19340
19340
|
var K;
|
|
19341
19341
|
if (x.show = !1, B.event.type === "mousemove") {
|
|
19342
|
-
const Q = B.event, J = Y.options.indexAxis, Z = Y.scales, bt = Y.scales[J].getLabelForValue(Number(Y.scales[J].getValueForPixel(Q[J]))),
|
|
19342
|
+
const Q = B.event, J = Y.options.indexAxis, Z = Y.scales, bt = Y.scales[J].getLabelForValue(Number(Y.scales[J].getValueForPixel(Q[J]))), ot = Y.scales[J].getLabels().indexOf(bt), wt = (K = t.chartData.isLabelEmpty) == null ? void 0 : K[ot];
|
|
19343
19343
|
if (((ne) => ne === "x" ? Q.y > Z.x.top : Q.x < Z.y.right)(J)) {
|
|
19344
19344
|
T.interactionMode !== "interactive" && (T.showTooltip = !1);
|
|
19345
19345
|
const ut = Y.canvas.getContext("2d").measureText(bt).width, Dt = Math.abs(Math.round(Q.x - ut * 0.5)), he = Math.round(Q.x + ut * 0.5), pe = Y.canvas.getBoundingClientRect(), ie = 40;
|
|
@@ -19437,22 +19437,22 @@ const Xk = ["id"], Gk = ["id"], Kk = { class: "axis-tooltip-content" }, Zk = "10
|
|
|
19437
19437
|
ref: "chartParent",
|
|
19438
19438
|
class: sn(["chart-parent", G[V(_)]])
|
|
19439
19439
|
}, [
|
|
19440
|
-
|
|
19440
|
+
at("canvas", {
|
|
19441
19441
|
id: V(s),
|
|
19442
19442
|
ref: "axis",
|
|
19443
19443
|
class: "axis"
|
|
19444
19444
|
}, null, 8, Xk),
|
|
19445
|
-
|
|
19445
|
+
at("div", {
|
|
19446
19446
|
ref: "chartContainer",
|
|
19447
19447
|
class: "chart-container",
|
|
19448
19448
|
onClick: B[0] || (B[0] = (K) => Mt()),
|
|
19449
19449
|
onScroll: U
|
|
19450
19450
|
}, [
|
|
19451
|
-
|
|
19451
|
+
at("div", {
|
|
19452
19452
|
class: "chart-body",
|
|
19453
19453
|
style: Mi({ width: $.value, height: dt.value })
|
|
19454
19454
|
}, [
|
|
19455
|
-
|
|
19455
|
+
at("canvas", {
|
|
19456
19456
|
id: V(r),
|
|
19457
19457
|
ref: "canvas",
|
|
19458
19458
|
class: "chart-canvas"
|
|
@@ -19466,7 +19466,7 @@ const Xk = ["id"], Gk = ["id"], Kk = { class: "axis-tooltip-content" }, Zk = "10
|
|
|
19466
19466
|
style: Mi({ top: x.top, left: x.left }),
|
|
19467
19467
|
width: "auto"
|
|
19468
19468
|
}, [
|
|
19469
|
-
|
|
19469
|
+
at("div", Kk, ht(x.text), 1)
|
|
19470
19470
|
], 4)) : Yt("", !0),
|
|
19471
19471
|
Zt(Ga, {
|
|
19472
19472
|
"absolute-left": V(P),
|
|
@@ -19824,7 +19824,7 @@ const sm = /* @__PURE__ */ Bc("bar", Xs), rm = /* @__PURE__ */ Bc("doughnut", On
|
|
|
19824
19824
|
class: sn(["chart-parent", _(n.legendPosition)]),
|
|
19825
19825
|
"data-testid": "donut-chart-parent"
|
|
19826
19826
|
}, [
|
|
19827
|
-
|
|
19827
|
+
at("div", mC, [
|
|
19828
19828
|
Zt(V(rm), {
|
|
19829
19829
|
ref_key: "chartInstance",
|
|
19830
19830
|
ref: b,
|
|
@@ -20000,15 +20000,15 @@ class wC {
|
|
|
20000
20000
|
this._clearSelectionArea = !0, this._chart && this._chart.update();
|
|
20001
20001
|
}
|
|
20002
20002
|
}
|
|
20003
|
-
const
|
|
20003
|
+
const gP = ["hidden", "single", "full"];
|
|
20004
20004
|
var Gi = /* @__PURE__ */ ((n) => (n.String = "string", n.Number = "number", n.Boolean = "boolean", n.Object = "object", n.Undefined = "undefined", n))(Gi || {});
|
|
20005
|
-
const
|
|
20005
|
+
const mP = [
|
|
20006
20006
|
"donut",
|
|
20007
20007
|
"horizontal_bar",
|
|
20008
20008
|
"vertical_bar",
|
|
20009
20009
|
"timeseries_line",
|
|
20010
20010
|
"timeseries_bar"
|
|
20011
|
-
],
|
|
20011
|
+
], pP = [
|
|
20012
20012
|
"gauge",
|
|
20013
20013
|
"top_n",
|
|
20014
20014
|
"single_value"
|
|
@@ -20259,7 +20259,7 @@ const OC = /* @__PURE__ */ de({
|
|
|
20259
20259
|
class: sn(["chart-parent", C(V(g))]),
|
|
20260
20260
|
"data-testid": "line-chart-parent"
|
|
20261
20261
|
}, [
|
|
20262
|
-
|
|
20262
|
+
at("div", {
|
|
20263
20263
|
class: "chart-container",
|
|
20264
20264
|
onClick: G[0] || (G[0] = (et) => tt())
|
|
20265
20265
|
}, [
|
|
@@ -20428,7 +20428,7 @@ const OC = /* @__PURE__ */ de({
|
|
|
20428
20428
|
placement: "right"
|
|
20429
20429
|
}, {
|
|
20430
20430
|
content: zt(() => [
|
|
20431
|
-
|
|
20431
|
+
at("div", AC, ht(f.value), 1)
|
|
20432
20432
|
]),
|
|
20433
20433
|
default: zt(() => [
|
|
20434
20434
|
Zt(V(Dm), {
|
|
@@ -20507,7 +20507,7 @@ const OC = /* @__PURE__ */ de({
|
|
|
20507
20507
|
], 2);
|
|
20508
20508
|
};
|
|
20509
20509
|
}
|
|
20510
|
-
}),
|
|
20510
|
+
}), yP = /* @__PURE__ */ $e(IC, [["__scopeId", "data-v-de2b8f0e"]]), LC = {
|
|
20511
20511
|
class: "chart-parent",
|
|
20512
20512
|
"data-testid": "gauge-chart-parent"
|
|
20513
20513
|
}, NC = { class: "chart-totals-flex" }, FC = {
|
|
@@ -20585,7 +20585,7 @@ const OC = /* @__PURE__ */ de({
|
|
|
20585
20585
|
return `color: ${(h = s == null ? void 0 : s.value[0]) == null ? void 0 : h.backgroundColor[t.numerator]}`;
|
|
20586
20586
|
}), u = L(() => ["full", "single"].includes(t.metricDisplay)), d = L(() => t.metricDisplay === "full");
|
|
20587
20587
|
return (h, f) => (j(), rt("div", LC, [
|
|
20588
|
-
|
|
20588
|
+
at("div", NC, [
|
|
20589
20589
|
u.value ? (j(), rt("div", {
|
|
20590
20590
|
key: 0,
|
|
20591
20591
|
class: "metric-large",
|
|
@@ -20594,7 +20594,7 @@ const OC = /* @__PURE__ */ de({
|
|
|
20594
20594
|
}, ht(o.value), 5)) : Yt("", !0),
|
|
20595
20595
|
d.value ? (j(), rt("div", FC, ht(V(e).t("total")) + ": " + ht(l.value), 1)) : Yt("", !0)
|
|
20596
20596
|
]),
|
|
20597
|
-
|
|
20597
|
+
at("div", {
|
|
20598
20598
|
class: "chart-container",
|
|
20599
20599
|
style: Mi({ height: n.height, width: n.width })
|
|
20600
20600
|
}, [
|
|
@@ -20609,20 +20609,20 @@ const OC = /* @__PURE__ */ de({
|
|
|
20609
20609
|
}), HC = /* @__PURE__ */ $e(zC, [["__scopeId", "data-v-c461b83f"]]), BC = {
|
|
20610
20610
|
key: 1,
|
|
20611
20611
|
class: "single-value-wrapper"
|
|
20612
|
-
}, WC = {
|
|
20612
|
+
}, WC = { class: "single-value-metric" }, YC = {
|
|
20613
20613
|
class: "single-value",
|
|
20614
20614
|
"data-testid": "single-value-chart"
|
|
20615
|
-
},
|
|
20615
|
+
}, $C = {
|
|
20616
20616
|
key: 0,
|
|
20617
20617
|
class: "single-value-unit"
|
|
20618
|
-
}, $C = {
|
|
20619
|
-
key: 1,
|
|
20620
|
-
class: "single-value-trend"
|
|
20621
20618
|
}, jC = {
|
|
20619
|
+
key: 0,
|
|
20620
|
+
class: "single-value-trend"
|
|
20621
|
+
}, UC = {
|
|
20622
20622
|
key: 0,
|
|
20623
20623
|
class: "single-value-trend-range",
|
|
20624
20624
|
"data-testid": "single-value-trend-range"
|
|
20625
|
-
},
|
|
20625
|
+
}, VC = /* @__PURE__ */ de({
|
|
20626
20626
|
__name: "SingleValue",
|
|
20627
20627
|
props: {
|
|
20628
20628
|
data: {
|
|
@@ -20712,10 +20712,12 @@ const OC = /* @__PURE__ */ de({
|
|
|
20712
20712
|
"icon-variant": "error",
|
|
20713
20713
|
title: V(t).t("singleValue.valueError")
|
|
20714
20714
|
}, null, 8, ["title"])) : (j(), rt("div", BC, [
|
|
20715
|
-
|
|
20716
|
-
|
|
20717
|
-
|
|
20718
|
-
|
|
20715
|
+
at("div", WC, [
|
|
20716
|
+
at("span", YC, ht(d.value), 1),
|
|
20717
|
+
l.value ? (j(), rt("span", $C, " " + ht(o.value), 1)) : Yt("", !0)
|
|
20718
|
+
]),
|
|
20719
|
+
n.showTrend ? (j(), rt("div", jC, [
|
|
20720
|
+
at("div", {
|
|
20719
20721
|
class: sn(["trend-change", x(f.value)]),
|
|
20720
20722
|
"data-testid": "single-value-trend"
|
|
20721
20723
|
}, [
|
|
@@ -20728,18 +20730,18 @@ const OC = /* @__PURE__ */ de({
|
|
|
20728
20730
|
color: `var(--kui-color-text-neutral-strong, ${V(Bd)})`,
|
|
20729
20731
|
size: V(dr)
|
|
20730
20732
|
}, null, 8, ["color", "size"])),
|
|
20731
|
-
|
|
20733
|
+
at("div", null, ht(b.value), 1)
|
|
20732
20734
|
], 2),
|
|
20733
|
-
V(_) ? (j(), rt("div",
|
|
20735
|
+
V(_) ? (j(), rt("div", UC, ht(V(_)), 1)) : Yt("", !0)
|
|
20734
20736
|
])) : Yt("", !0)
|
|
20735
20737
|
]))
|
|
20736
20738
|
], 2);
|
|
20737
20739
|
};
|
|
20738
20740
|
}
|
|
20739
|
-
}),
|
|
20741
|
+
}), qC = /* @__PURE__ */ $e(VC, [["__scopeId", "data-v-31927c15"]]), XC = { class: "simple-chart-shell" }, GC = {
|
|
20740
20742
|
key: 1,
|
|
20741
20743
|
class: "analytics-chart-parent"
|
|
20742
|
-
},
|
|
20744
|
+
}, KC = /* @__PURE__ */ de({
|
|
20743
20745
|
__name: "SimpleChart",
|
|
20744
20746
|
props: {
|
|
20745
20747
|
chartData: {
|
|
@@ -20797,8 +20799,8 @@ const OC = /* @__PURE__ */ de({
|
|
|
20797
20799
|
});
|
|
20798
20800
|
return (c, u) => {
|
|
20799
20801
|
const d = Re("KEmptyState");
|
|
20800
|
-
return j(), rt("div",
|
|
20801
|
-
l.value ? (j(), rt("div",
|
|
20802
|
+
return j(), rt("div", XC, [
|
|
20803
|
+
l.value ? (j(), rt("div", GC, [
|
|
20802
20804
|
r.value ? (j(), Rt(HC, {
|
|
20803
20805
|
key: 0,
|
|
20804
20806
|
"chart-data": i.value,
|
|
@@ -20810,7 +20812,7 @@ const OC = /* @__PURE__ */ de({
|
|
|
20810
20812
|
"synthetics-data-key": n.syntheticsDataKey,
|
|
20811
20813
|
width: n.width
|
|
20812
20814
|
}, null, 8, ["chart-data", "dataset-colors", "metric-display", "metric-unit", "numerator", "synthetics-data-key", "width"])) : Yt("", !0),
|
|
20813
|
-
a.value ? (j(), Rt(
|
|
20815
|
+
a.value ? (j(), Rt(qC, {
|
|
20814
20816
|
key: 1,
|
|
20815
20817
|
"align-x": n.chartOptions.alignX,
|
|
20816
20818
|
data: n.chartData,
|
|
@@ -20832,17 +20834,17 @@ const OC = /* @__PURE__ */ de({
|
|
|
20832
20834
|
]);
|
|
20833
20835
|
};
|
|
20834
20836
|
}
|
|
20835
|
-
}),
|
|
20837
|
+
}), bP = /* @__PURE__ */ $e(KC, [["__scopeId", "data-v-56837d34"]]), ZC = {
|
|
20836
20838
|
class: "top-n-card-title",
|
|
20837
20839
|
"data-testid": "top-n-card-title"
|
|
20838
|
-
},
|
|
20840
|
+
}, QC = {
|
|
20839
20841
|
class: "top-n-card-description",
|
|
20840
20842
|
"data-testid": "top-n-card-description"
|
|
20841
|
-
},
|
|
20843
|
+
}, JC = {
|
|
20842
20844
|
key: 3,
|
|
20843
20845
|
class: "top-n-table",
|
|
20844
20846
|
"data-testid": "top-n-table"
|
|
20845
|
-
},
|
|
20847
|
+
}, tO = { class: "top-n-table-table" }, eO = { "data-testid": "top-n-table-header" }, nO = { class: "top-n-table-header-row" }, iO = { class: "table-header-label" }, sO = { class: "top-n-table-cell top-n-table-cell--name" }, rO = ["data-testid"], aO = ["data-testid"], oO = ["data-testid"], lO = /* @__PURE__ */ de({
|
|
20846
20848
|
__name: "TopNTable",
|
|
20847
20849
|
props: {
|
|
20848
20850
|
title: { default: "" },
|
|
@@ -20960,26 +20962,26 @@ const OC = /* @__PURE__ */ de({
|
|
|
20960
20962
|
key: 1,
|
|
20961
20963
|
"table-columns": 2,
|
|
20962
20964
|
type: "table"
|
|
20963
|
-
})) : r.value ? (j(), rt("div",
|
|
20964
|
-
|
|
20965
|
-
|
|
20966
|
-
|
|
20965
|
+
})) : r.value ? (j(), rt("div", JC, [
|
|
20966
|
+
at("table", tO, [
|
|
20967
|
+
at("thead", eO, [
|
|
20968
|
+
at("tr", nO, [
|
|
20967
20969
|
(j(!0), rt(xi, null, Zi(d.value, (C) => (j(), rt("th", {
|
|
20968
20970
|
key: C.key,
|
|
20969
20971
|
class: sn(["top-n-table-header-cell", { "top-n-table-header-cell-metric": C.key !== "name" }]),
|
|
20970
20972
|
"data-testid": "top-n-table-header-column"
|
|
20971
20973
|
}, [
|
|
20972
|
-
|
|
20974
|
+
at("span", iO, ht(C.label), 1)
|
|
20973
20975
|
], 2))), 128))
|
|
20974
20976
|
])
|
|
20975
20977
|
]),
|
|
20976
|
-
|
|
20978
|
+
at("tbody", null, [
|
|
20977
20979
|
(j(!0), rt(xi, null, Zi(w.value, (C) => (j(), rt("tr", {
|
|
20978
20980
|
key: C.id,
|
|
20979
20981
|
class: "top-n-table-row"
|
|
20980
20982
|
}, [
|
|
20981
|
-
|
|
20982
|
-
|
|
20983
|
+
at("td", sO, [
|
|
20984
|
+
at("span", {
|
|
20983
20985
|
"data-testid": `row-${C.id}`
|
|
20984
20986
|
}, [
|
|
20985
20987
|
sr(O.$slots, "name", {
|
|
@@ -20992,7 +20994,7 @@ const OC = /* @__PURE__ */ de({
|
|
|
20992
20994
|
}, () => [
|
|
20993
20995
|
Be(ht(C.name), 1)
|
|
20994
20996
|
], !0)
|
|
20995
|
-
], 8,
|
|
20997
|
+
], 8, rO)
|
|
20996
20998
|
]),
|
|
20997
20999
|
(j(!0), rt(xi, null, Zi(h.value, (A) => (j(), rt("td", {
|
|
20998
21000
|
key: A.key,
|
|
@@ -21001,10 +21003,10 @@ const OC = /* @__PURE__ */ de({
|
|
|
21001
21003
|
A.key === "value" ? (j(), rt("span", {
|
|
21002
21004
|
key: 0,
|
|
21003
21005
|
"data-testid": `row-${C.id}`
|
|
21004
|
-
}, ht(T(C, A.key)), 9,
|
|
21006
|
+
}, ht(T(C, A.key)), 9, aO)) : (j(), rt("span", {
|
|
21005
21007
|
key: 1,
|
|
21006
21008
|
"data-testid": `row-${C.id}-${A.key}`
|
|
21007
|
-
}, ht(T(C, A.key)), 9,
|
|
21009
|
+
}, ht(T(C, A.key)), 9, oO))
|
|
21008
21010
|
]))), 128))
|
|
21009
21011
|
]))), 128))
|
|
21010
21012
|
])
|
|
@@ -21025,29 +21027,29 @@ const OC = /* @__PURE__ */ de({
|
|
|
21025
21027
|
n.title ? {
|
|
21026
21028
|
name: "title",
|
|
21027
21029
|
fn: zt(() => [
|
|
21028
|
-
|
|
21030
|
+
at("span", ZC, ht(n.title), 1)
|
|
21029
21031
|
]),
|
|
21030
21032
|
key: "0"
|
|
21031
21033
|
} : void 0,
|
|
21032
21034
|
n.description ? {
|
|
21033
21035
|
name: "actions",
|
|
21034
21036
|
fn: zt(() => [
|
|
21035
|
-
|
|
21037
|
+
at("div", QC, ht(n.description), 1)
|
|
21036
21038
|
]),
|
|
21037
21039
|
key: "1"
|
|
21038
21040
|
} : void 0
|
|
21039
21041
|
]), 1032, ["title-tag"]);
|
|
21040
21042
|
};
|
|
21041
21043
|
}
|
|
21042
|
-
}),
|
|
21044
|
+
}), _P = /* @__PURE__ */ $e(lO, [["__scopeId", "data-v-27e5b22c"]]);
|
|
21043
21045
|
var Ia = { exports: {} };
|
|
21044
21046
|
Ia.exports;
|
|
21045
21047
|
(function(n, t) {
|
|
21046
21048
|
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 9007199254740991, l = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", g = "[object GeneratorFunction]", b = "[object Map]", _ = "[object Number]", x = "[object Object]", w = "[object Promise]", M = "[object RegExp]", T = "[object Set]", P = "[object String]", O = "[object Symbol]", k = "[object WeakMap]", m = "[object ArrayBuffer]", y = "[object DataView]", S = "[object Float32Array]", C = "[object Float64Array]", A = "[object Int8Array]", R = "[object Int16Array]", z = "[object Int32Array]", q = "[object Uint8Array]", tt = "[object Uint8ClampedArray]", $ = "[object Uint16Array]", dt = "[object Uint32Array]", X = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, H = /^\w*$/, G = /^\./, et = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, U = /[\\^$.*+?()[\]{}|]/g, xt = /\\(\\)?/g, Mt = /^\[object .+?Constructor\]$/, Y = /^(?:0|[1-9]\d*)$/, B = {};
|
|
21047
21049
|
B[S] = B[C] = B[A] = B[R] = B[z] = B[q] = B[tt] = B[$] = B[dt] = !0, B[l] = B[c] = B[m] = B[u] = B[y] = B[d] = B[h] = B[f] = B[b] = B[_] = B[x] = B[M] = B[T] = B[P] = B[k] = !1;
|
|
21048
|
-
var K = typeof Le == "object" && Le && Le.Object === Object && Le, Q = typeof self == "object" && self && self.Object === Object && self, J = K || Q || Function("return this")(), Z = t && !t.nodeType && t, bt = Z && !0 && n && !n.nodeType && n, Tt = bt && bt.exports === Z,
|
|
21050
|
+
var K = typeof Le == "object" && Le && Le.Object === Object && Le, Q = typeof self == "object" && self && self.Object === Object && self, J = K || Q || Function("return this")(), Z = t && !t.nodeType && t, bt = Z && !0 && n && !n.nodeType && n, Tt = bt && bt.exports === Z, ot = Tt && K.process, wt = function() {
|
|
21049
21051
|
try {
|
|
21050
|
-
return
|
|
21052
|
+
return ot && ot.binding("util");
|
|
21051
21053
|
} catch {
|
|
21052
21054
|
}
|
|
21053
21055
|
}(), gt = wt && wt.isTypedArray;
|
|
@@ -21628,10 +21630,10 @@ Ia.exports;
|
|
|
21628
21630
|
}
|
|
21629
21631
|
n.exports = ws;
|
|
21630
21632
|
})(Ia, Ia.exports);
|
|
21631
|
-
var
|
|
21632
|
-
const
|
|
21633
|
-
var
|
|
21634
|
-
function
|
|
21633
|
+
var cO = Ia.exports;
|
|
21634
|
+
const uO = /* @__PURE__ */ Pc(cO);
|
|
21635
|
+
var dO = 9007199254740991, hO = "[object Arguments]", fO = "[object Function]", gO = "[object GeneratorFunction]", mO = "[object Symbol]", pO = typeof Le == "object" && Le && Le.Object === Object && Le, yO = typeof self == "object" && self && self.Object === Object && self, bO = pO || yO || Function("return this")();
|
|
21636
|
+
function _O(n, t, e) {
|
|
21635
21637
|
switch (e.length) {
|
|
21636
21638
|
case 0:
|
|
21637
21639
|
return n.call(t);
|
|
@@ -21644,87 +21646,87 @@ function bO(n, t, e) {
|
|
|
21644
21646
|
}
|
|
21645
21647
|
return n.apply(t, e);
|
|
21646
21648
|
}
|
|
21647
|
-
function
|
|
21649
|
+
function vO(n, t) {
|
|
21648
21650
|
for (var e = -1, i = n ? n.length : 0, s = Array(i); ++e < i; )
|
|
21649
21651
|
s[e] = t(n[e], e, n);
|
|
21650
21652
|
return s;
|
|
21651
21653
|
}
|
|
21652
|
-
function
|
|
21654
|
+
function xO(n, t) {
|
|
21653
21655
|
for (var e = -1, i = t.length, s = n.length; ++e < i; )
|
|
21654
21656
|
n[s + e] = t[e];
|
|
21655
21657
|
return n;
|
|
21656
21658
|
}
|
|
21657
|
-
var Wc = Object.prototype,
|
|
21658
|
-
function
|
|
21659
|
+
var Wc = Object.prototype, wO = Wc.hasOwnProperty, Yc = Wc.toString, Ch = bO.Symbol, MO = Wc.propertyIsEnumerable, Oh = Ch ? Ch.isConcatSpreadable : void 0, Ph = Math.max;
|
|
21660
|
+
function SO(n, t, e, i, s) {
|
|
21659
21661
|
var r = -1, a = n.length;
|
|
21660
|
-
for (e || (e =
|
|
21662
|
+
for (e || (e = CO), s || (s = []); ++r < a; ) {
|
|
21661
21663
|
var o = n[r];
|
|
21662
|
-
e(o) ?
|
|
21664
|
+
e(o) ? xO(s, o) : s[s.length] = o;
|
|
21663
21665
|
}
|
|
21664
21666
|
return s;
|
|
21665
21667
|
}
|
|
21666
|
-
function
|
|
21667
|
-
return n = Object(n),
|
|
21668
|
+
function TO(n, t) {
|
|
21669
|
+
return n = Object(n), DO(n, t, function(e, i) {
|
|
21668
21670
|
return i in n;
|
|
21669
21671
|
});
|
|
21670
21672
|
}
|
|
21671
|
-
function
|
|
21673
|
+
function DO(n, t, e) {
|
|
21672
21674
|
for (var i = -1, s = t.length, r = {}; ++i < s; ) {
|
|
21673
21675
|
var a = t[i], o = n[a];
|
|
21674
21676
|
e(o, a) && (r[a] = o);
|
|
21675
21677
|
}
|
|
21676
21678
|
return r;
|
|
21677
21679
|
}
|
|
21678
|
-
function
|
|
21680
|
+
function kO(n, t) {
|
|
21679
21681
|
return t = Ph(t === void 0 ? n.length - 1 : t, 0), function() {
|
|
21680
21682
|
for (var e = arguments, i = -1, s = Ph(e.length - t, 0), r = Array(s); ++i < s; )
|
|
21681
21683
|
r[i] = e[t + i];
|
|
21682
21684
|
i = -1;
|
|
21683
21685
|
for (var a = Array(t + 1); ++i < t; )
|
|
21684
21686
|
a[i] = e[i];
|
|
21685
|
-
return a[t] = r,
|
|
21687
|
+
return a[t] = r, _O(n, this, a);
|
|
21686
21688
|
};
|
|
21687
21689
|
}
|
|
21688
|
-
function kO(n) {
|
|
21689
|
-
return PO(n) || OO(n) || !!(Oh && n && n[Oh]);
|
|
21690
|
-
}
|
|
21691
21690
|
function CO(n) {
|
|
21692
|
-
|
|
21691
|
+
return EO(n) || PO(n) || !!(Oh && n && n[Oh]);
|
|
21692
|
+
}
|
|
21693
|
+
function OO(n) {
|
|
21694
|
+
if (typeof n == "string" || FO(n))
|
|
21693
21695
|
return n;
|
|
21694
21696
|
var t = n + "";
|
|
21695
21697
|
return t == "0" && 1 / n == -1 / 0 ? "-0" : t;
|
|
21696
21698
|
}
|
|
21697
|
-
function
|
|
21698
|
-
return
|
|
21699
|
-
}
|
|
21700
|
-
var PO = Array.isArray;
|
|
21701
|
-
function EO(n) {
|
|
21702
|
-
return n != null && IO(n.length) && !RO(n);
|
|
21699
|
+
function PO(n) {
|
|
21700
|
+
return RO(n) && wO.call(n, "callee") && (!MO.call(n, "callee") || Yc.call(n) == hO);
|
|
21703
21701
|
}
|
|
21702
|
+
var EO = Array.isArray;
|
|
21704
21703
|
function AO(n) {
|
|
21705
|
-
return
|
|
21704
|
+
return n != null && LO(n.length) && !IO(n);
|
|
21706
21705
|
}
|
|
21707
21706
|
function RO(n) {
|
|
21708
|
-
|
|
21709
|
-
return t == hO || t == fO;
|
|
21707
|
+
return lm(n) && AO(n);
|
|
21710
21708
|
}
|
|
21711
21709
|
function IO(n) {
|
|
21712
|
-
|
|
21710
|
+
var t = NO(n) ? Yc.call(n) : "";
|
|
21711
|
+
return t == fO || t == gO;
|
|
21713
21712
|
}
|
|
21714
21713
|
function LO(n) {
|
|
21714
|
+
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= dO;
|
|
21715
|
+
}
|
|
21716
|
+
function NO(n) {
|
|
21715
21717
|
var t = typeof n;
|
|
21716
21718
|
return !!n && (t == "object" || t == "function");
|
|
21717
21719
|
}
|
|
21718
21720
|
function lm(n) {
|
|
21719
21721
|
return !!n && typeof n == "object";
|
|
21720
21722
|
}
|
|
21721
|
-
function
|
|
21722
|
-
return typeof n == "symbol" || lm(n) && Yc.call(n) ==
|
|
21723
|
+
function FO(n) {
|
|
21724
|
+
return typeof n == "symbol" || lm(n) && Yc.call(n) == mO;
|
|
21723
21725
|
}
|
|
21724
|
-
var
|
|
21725
|
-
return n == null ? {} :
|
|
21726
|
-
}),
|
|
21727
|
-
const
|
|
21726
|
+
var zO = kO(function(n, t) {
|
|
21727
|
+
return n == null ? {} : TO(n, vO(SO(t), OO));
|
|
21728
|
+
}), HO = zO;
|
|
21729
|
+
const BO = /* @__PURE__ */ Pc(HO);
|
|
21728
21730
|
var cm = { exports: {} };
|
|
21729
21731
|
(function(n, t) {
|
|
21730
21732
|
(function(e, i) {
|
|
@@ -21794,7 +21796,7 @@ var cm = { exports: {} };
|
|
|
21794
21796
|
a.saveAs = l.saveAs = l, n.exports = l;
|
|
21795
21797
|
});
|
|
21796
21798
|
})(cm);
|
|
21797
|
-
var
|
|
21799
|
+
var WO = cm.exports, um = { exports: {} };
|
|
21798
21800
|
/* @license
|
|
21799
21801
|
Papa Parse
|
|
21800
21802
|
v5.5.3
|
|
@@ -21931,14 +21933,14 @@ License: MIT
|
|
|
21931
21933
|
} else U.data.forEach(Z);
|
|
21932
21934
|
}
|
|
21933
21935
|
function Q(Z, bt) {
|
|
21934
|
-
for (var Tt = m.header ? {} : [],
|
|
21935
|
-
var wt =
|
|
21936
|
+
for (var Tt = m.header ? {} : [], ot = 0; ot < Z.length; ot++) {
|
|
21937
|
+
var wt = ot, gt = Z[ot], gt = ((ne, ut) => ((Dt) => (m.dynamicTypingFunction && m.dynamicTyping[Dt] === void 0 && (m.dynamicTyping[Dt] = m.dynamicTypingFunction(Dt)), (m.dynamicTyping[Dt] || m.dynamicTyping) === !0))(ne) ? ut === "true" || ut === "TRUE" || ut !== "false" && ut !== "FALSE" && (((Dt) => {
|
|
21936
21938
|
if (q.test(Dt) && (Dt = parseFloat(Dt), z < Dt && Dt < R))
|
|
21937
21939
|
return 1;
|
|
21938
|
-
})(ut) ? parseFloat(ut) : tt.test(ut) ? new Date(ut) : ut === "" ? null : ut) : ut)(wt = m.header ?
|
|
21940
|
+
})(ut) ? parseFloat(ut) : tt.test(ut) ? new Date(ut) : ut === "" ? null : ut) : ut)(wt = m.header ? ot >= et.length ? "__parsed_extra" : et[ot] : wt, gt = m.transform ? m.transform(gt, wt) : gt);
|
|
21939
21941
|
wt === "__parsed_extra" ? (Tt[wt] = Tt[wt] || [], Tt[wt].push(gt)) : Tt[wt] = gt;
|
|
21940
21942
|
}
|
|
21941
|
-
return m.header && (
|
|
21943
|
+
return m.header && (ot > et.length ? B("FieldMismatch", "TooManyFields", "Too many fields: expected " + et.length + " fields but parsed " + ot, X + bt) : ot < et.length && B("FieldMismatch", "TooFewFields", "Too few fields: expected " + et.length + " fields but parsed " + ot, X + bt)), Tt;
|
|
21942
21944
|
}
|
|
21943
21945
|
var J;
|
|
21944
21946
|
U && (m.header || m.dynamicTyping || m.transform) && (J = 1, !U.data.length || Array.isArray(U.data[0]) ? (U.data = U.data.map(Q), J = U.data.length) : U.data = Q(U.data, 0), m.header && U.meta && (U.meta.fields = et), X += J);
|
|
@@ -21952,11 +21954,11 @@ License: MIT
|
|
|
21952
21954
|
k(m.step) && (A = m.step, m.step = function(K) {
|
|
21953
21955
|
U = K, Y() ? Mt() : (Mt(), U.data.length !== 0 && (dt += K.data.length, m.preview && dt > m.preview ? S.abort() : (U.data = U.data[0], A(U, $))));
|
|
21954
21956
|
}), this.parse = function(K, Q, J) {
|
|
21955
|
-
var Z = m.quoteChar || '"', Z = (m.newline || (m.newline = this.guessLineEndings(K, Z)), C = !1, m.delimiter ? k(m.delimiter) && (m.delimiter = m.delimiter(K), U.meta.delimiter = m.delimiter) : ((Z = ((bt, Tt,
|
|
21957
|
+
var Z = m.quoteChar || '"', Z = (m.newline || (m.newline = this.guessLineEndings(K, Z)), C = !1, m.delimiter ? k(m.delimiter) && (m.delimiter = m.delimiter(K), U.meta.delimiter = m.delimiter) : ((Z = ((bt, Tt, ot, wt, gt) => {
|
|
21956
21958
|
var ne, ut, Dt, he;
|
|
21957
21959
|
gt = gt || [",", " ", "|", ";", c.RECORD_SEP, c.UNIT_SEP];
|
|
21958
21960
|
for (var pe = 0; pe < gt.length; pe++) {
|
|
21959
|
-
for (var ie, rn = gt[pe], At = 0, fe = 0, $t = 0, se = (Dt = void 0, new x({ comments: wt, delimiter: rn, newline: Tt, preview: 10 }).parse(bt)), ge = 0; ge < se.data.length; ge++)
|
|
21961
|
+
for (var ie, rn = gt[pe], At = 0, fe = 0, $t = 0, se = (Dt = void 0, new x({ comments: wt, delimiter: rn, newline: Tt, preview: 10 }).parse(bt)), ge = 0; ge < se.data.length; ge++) ot && xt(se.data[ge]) ? $t++ : (ie = se.data[ge].length, fe += ie, Dt === void 0 ? Dt = ie : 0 < ie && (At += Math.abs(ie - Dt), Dt = ie));
|
|
21960
21962
|
0 < se.data.length && (fe /= se.data.length - $t), (ut === void 0 || At <= ut) && (he === void 0 || he < fe) && 1.99 < fe && (ut = At, ne = rn, he = fe);
|
|
21961
21963
|
}
|
|
21962
21964
|
return { successful: !!(m.delimiter = ne), bestDelimiter: ne };
|
|
@@ -21978,7 +21980,7 @@ License: MIT
|
|
|
21978
21980
|
`), bt = 1 < Z.length && Z[0].length < J[0].length;
|
|
21979
21981
|
if (J.length === 1 || bt) return `
|
|
21980
21982
|
`;
|
|
21981
|
-
for (var Tt = 0,
|
|
21983
|
+
for (var Tt = 0, ot = 0; ot < J.length; ot++) J[ot][0] === `
|
|
21982
21984
|
` && Tt++;
|
|
21983
21985
|
return Tt >= J.length / 2 ? `\r
|
|
21984
21986
|
` : "\r";
|
|
@@ -22000,14 +22002,14 @@ License: MIT
|
|
|
22000
22002
|
var xt = G.length, Mt = y.length, Y = S.length, B = C.length, K = k(A), Q = [], J = [], Z = [], bt = X = 0;
|
|
22001
22003
|
if (!G) return At();
|
|
22002
22004
|
if (z || z !== !1 && G.indexOf($) === -1) {
|
|
22003
|
-
for (var Tt = G.split(S),
|
|
22004
|
-
if (Z = Tt[
|
|
22005
|
+
for (var Tt = G.split(S), ot = 0; ot < Tt.length; ot++) {
|
|
22006
|
+
if (Z = Tt[ot], X += Z.length, ot !== Tt.length - 1) X += S.length;
|
|
22005
22007
|
else if (U) return At();
|
|
22006
22008
|
if (!C || Z.substring(0, B) !== C) {
|
|
22007
22009
|
if (K) {
|
|
22008
22010
|
if (Q = [], he(Z.split(y)), fe(), H) return At();
|
|
22009
22011
|
} else he(Z.split(y));
|
|
22010
|
-
if (R && R <=
|
|
22012
|
+
if (R && R <= ot) return Q = Q.slice(0, R), At(!0);
|
|
22011
22013
|
}
|
|
22012
22014
|
}
|
|
22013
22015
|
return At();
|
|
@@ -22152,8 +22154,8 @@ License: MIT
|
|
|
22152
22154
|
for (var Q = 0; Q < U.length; Q++) {
|
|
22153
22155
|
var J = (Y ? et : U[Q]).length, Z = !1, bt = Y ? Object.keys(U[Q]).length === 0 : U[Q].length === 0;
|
|
22154
22156
|
if (xt && !Y && (Z = xt === "greedy" ? U[Q].join("").trim() === "" : U[Q].length === 1 && U[Q][0].length === 0), xt === "greedy" && Y) {
|
|
22155
|
-
for (var Tt = [],
|
|
22156
|
-
var wt = B ? et[
|
|
22157
|
+
for (var Tt = [], ot = 0; ot < J; ot++) {
|
|
22158
|
+
var wt = B ? et[ot] : ot;
|
|
22157
22159
|
Tt.push(U[Q][wt]);
|
|
22158
22160
|
}
|
|
22159
22161
|
Z = Tt.join("").trim() === "";
|
|
@@ -22209,8 +22211,8 @@ License: MIT
|
|
|
22209
22211
|
}), (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;
|
|
22210
22212
|
});
|
|
22211
22213
|
})(um);
|
|
22212
|
-
var
|
|
22213
|
-
const
|
|
22214
|
+
var YO = um.exports;
|
|
22215
|
+
const $O = ["id"], jO = /* @__PURE__ */ de({
|
|
22214
22216
|
__name: "VueJsonCsv",
|
|
22215
22217
|
props: {
|
|
22216
22218
|
data: {
|
|
@@ -22275,12 +22277,12 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22275
22277
|
const u = i.labels;
|
|
22276
22278
|
if (typeof i.fields !== Gi.Object)
|
|
22277
22279
|
throw new Error("Labels needs to be a object containing key / value pairs.");
|
|
22278
|
-
return typeof u === Gi.Object ? (d) =>
|
|
22280
|
+
return typeof u === Gi.Object ? (d) => uO(d, (h, f) => u[f] || f) : (d) => d;
|
|
22279
22281
|
}, o = () => {
|
|
22280
22282
|
const u = i.fields;
|
|
22281
22283
|
if (typeof i.fields !== Gi.Object && !Array.isArray(u))
|
|
22282
22284
|
throw new Error("Fields needs to be an array of strings.");
|
|
22283
|
-
return Array.isArray(u) ? (d) =>
|
|
22285
|
+
return Array.isArray(u) ? (d) => BO(d, u) : (d) => d;
|
|
22284
22286
|
}, l = () => {
|
|
22285
22287
|
if (typeof i.fields === Gi.Undefined && typeof i.labels === Gi.Undefined)
|
|
22286
22288
|
return i.data;
|
|
@@ -22292,7 +22294,7 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22292
22294
|
return;
|
|
22293
22295
|
}
|
|
22294
22296
|
e("export-started", r.value);
|
|
22295
|
-
let u =
|
|
22297
|
+
let u = YO.unparse(r.value, Object.assign({
|
|
22296
22298
|
delimiter: i.delimiter,
|
|
22297
22299
|
encoding: i.encoding
|
|
22298
22300
|
}));
|
|
@@ -22301,7 +22303,7 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22301
22303
|
const d = new Blob([u], {
|
|
22302
22304
|
type: "text/csv;charset=" + i.encoding
|
|
22303
22305
|
});
|
|
22304
|
-
|
|
22306
|
+
WO.saveAs(d, i.filename);
|
|
22305
22307
|
}
|
|
22306
22308
|
};
|
|
22307
22309
|
return (u, d) => (j(), rt("div", {
|
|
@@ -22312,9 +22314,9 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22312
22314
|
sr(u.$slots, "default", {}, () => [
|
|
22313
22315
|
Be("Download " + ht(n.filename), 1)
|
|
22314
22316
|
])
|
|
22315
|
-
], 8,
|
|
22317
|
+
], 8, $O));
|
|
22316
22318
|
}
|
|
22317
|
-
}),
|
|
22319
|
+
}), UO = /* @__PURE__ */ de({
|
|
22318
22320
|
__name: "DownloadCsv",
|
|
22319
22321
|
props: {
|
|
22320
22322
|
rows: {},
|
|
@@ -22324,7 +22326,7 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22324
22326
|
setup(n) {
|
|
22325
22327
|
const t = n, e = L(() => Object.keys(t.headers));
|
|
22326
22328
|
return (i, s) => (j(), rt("div", null, [
|
|
22327
|
-
Zt(
|
|
22329
|
+
Zt(jO, {
|
|
22328
22330
|
data: n.rows,
|
|
22329
22331
|
fields: e.value,
|
|
22330
22332
|
filename: n.filename,
|
|
@@ -22337,14 +22339,14 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22337
22339
|
}, 8, ["data", "fields", "filename", "labels"])
|
|
22338
22340
|
]));
|
|
22339
22341
|
}
|
|
22340
|
-
}),
|
|
22342
|
+
}), VO = { class: "kong-ui-public-csv-export-modal" }, qO = {
|
|
22341
22343
|
key: 0,
|
|
22342
22344
|
class: "selected-range"
|
|
22343
|
-
},
|
|
22345
|
+
}, XO = {
|
|
22344
22346
|
key: 4,
|
|
22345
22347
|
class: "text-muted",
|
|
22346
22348
|
tag: "span"
|
|
22347
|
-
}, Eh = 3,
|
|
22349
|
+
}, Eh = 3, vP = /* @__PURE__ */ de({
|
|
22348
22350
|
__name: "CsvExportModal",
|
|
22349
22351
|
props: {
|
|
22350
22352
|
exportState: {},
|
|
@@ -22421,7 +22423,7 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22421
22423
|
a.value++;
|
|
22422
22424
|
}), (g, b) => {
|
|
22423
22425
|
const _ = Re("KSkeleton"), x = Re("KEmptyState"), w = Re("KTableData"), M = Re("KTooltip"), T = Re("KButton"), P = Re("KModal");
|
|
22424
|
-
return j(), rt("div",
|
|
22426
|
+
return j(), rt("div", VO, [
|
|
22425
22427
|
Zt(P, {
|
|
22426
22428
|
class: "vitals-report",
|
|
22427
22429
|
"data-testid": "csv-export-modal",
|
|
@@ -22434,10 +22436,10 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22434
22436
|
default: zt(() => {
|
|
22435
22437
|
var O;
|
|
22436
22438
|
return [
|
|
22437
|
-
|
|
22438
|
-
n.exportState.status === "success" && l.value ? (j(), rt("div",
|
|
22439
|
-
|
|
22440
|
-
|
|
22439
|
+
at("div", null, [
|
|
22440
|
+
n.exportState.status === "success" && l.value ? (j(), rt("div", qO, [
|
|
22441
|
+
at("p", null, ht(n.modalDescription ? n.modalDescription : V(e).t("csvExport.exportDescription")), 1),
|
|
22442
|
+
at("p", null, ht(V(e).t("csvExport.exportTimeRange")) + ": " + ht(c.value), 1)
|
|
22441
22443
|
])) : Yt("", !0),
|
|
22442
22444
|
n.exportState.status === "loading" ? (j(), Rt(_, {
|
|
22443
22445
|
key: 1,
|
|
@@ -22456,10 +22458,10 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22456
22458
|
"empty-state": zt(() => [
|
|
22457
22459
|
Zt(x, { "action-button-visible": !1 }, {
|
|
22458
22460
|
title: zt(() => [
|
|
22459
|
-
|
|
22461
|
+
at("h5", null, ht(V(e).t("csvExport.noDataRange")), 1)
|
|
22460
22462
|
]),
|
|
22461
22463
|
default: zt(() => [
|
|
22462
|
-
|
|
22464
|
+
at("p", null, ht(V(e).t("csvExport.noDataRetry")), 1)
|
|
22463
22465
|
]),
|
|
22464
22466
|
_: 1
|
|
22465
22467
|
})
|
|
@@ -22470,11 +22472,11 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22470
22472
|
"action-button-visible": !1
|
|
22471
22473
|
}, {
|
|
22472
22474
|
title: zt(() => [
|
|
22473
|
-
|
|
22475
|
+
at("h5", null, ht(V(e).t("csvExport.dataError")), 1)
|
|
22474
22476
|
]),
|
|
22475
22477
|
_: 1
|
|
22476
22478
|
})) : Yt("", !0),
|
|
22477
|
-
n.exportState.status === "success" && l.value ? (j(), rt("div",
|
|
22479
|
+
n.exportState.status === "success" && l.value ? (j(), rt("div", XO, [
|
|
22478
22480
|
Be(ht(u.value) + " ", 1),
|
|
22479
22481
|
Zt(M, {
|
|
22480
22482
|
class: "preview-tooltip",
|
|
@@ -22504,7 +22506,7 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22504
22506
|
]),
|
|
22505
22507
|
_: 1
|
|
22506
22508
|
}),
|
|
22507
|
-
Zt(
|
|
22509
|
+
Zt(UO, {
|
|
22508
22510
|
class: "vitals-report-export-button",
|
|
22509
22511
|
filename: r,
|
|
22510
22512
|
headers: h.value.csvHeaders,
|
|
@@ -22530,11 +22532,11 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22530
22532
|
]);
|
|
22531
22533
|
};
|
|
22532
22534
|
}
|
|
22533
|
-
}),
|
|
22535
|
+
}), GO = { class: "container" }, KO = {
|
|
22534
22536
|
key: 0,
|
|
22535
22537
|
class: "no-data",
|
|
22536
22538
|
"data-testId": "sparkline-empty"
|
|
22537
|
-
},
|
|
22539
|
+
}, ZO = ["title"], QO = /* @__PURE__ */ de({
|
|
22538
22540
|
__name: "SparklineChart",
|
|
22539
22541
|
props: {
|
|
22540
22542
|
chartKey: { default: () => {
|
|
@@ -22696,7 +22698,7 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22696
22698
|
};
|
|
22697
22699
|
}), ni(() => {
|
|
22698
22700
|
We.positioners[M] && delete We.positioners[M];
|
|
22699
|
-
}), (k, m) => (j(), rt("div",
|
|
22701
|
+
}), (k, m) => (j(), rt("div", GO, [
|
|
22700
22702
|
_.value ? n.type === "sparkline_bar" ? (j(), Rt(V(sm), {
|
|
22701
22703
|
key: 1,
|
|
22702
22704
|
"chart-id": V(t),
|
|
@@ -22711,7 +22713,7 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22711
22713
|
"data-testId": n.type === "sparkline_line" ? "sparkline-line" : "sparkline-step",
|
|
22712
22714
|
options: T.value,
|
|
22713
22715
|
plugins: h.value
|
|
22714
|
-
}, null, 8, ["chart-id", "data", "data-testId", "options", "plugins"])) : Yt("", !0) : (j(), rt("div",
|
|
22716
|
+
}, null, 8, ["chart-id", "data", "data-testId", "options", "plugins"])) : Yt("", !0) : (j(), rt("div", KO, [
|
|
22715
22717
|
sr(k.$slots, "empty", {}, () => [
|
|
22716
22718
|
Be(ht(V(e).t("sparkline_no_data")), 1)
|
|
22717
22719
|
], !0)
|
|
@@ -22737,43 +22739,43 @@ const YO = ["id"], $O = /* @__PURE__ */ de({
|
|
|
22737
22739
|
}, () => [
|
|
22738
22740
|
Be(ht(g.value), 1)
|
|
22739
22741
|
], !0)
|
|
22740
|
-
], 8,
|
|
22742
|
+
], 8, ZO)) : Yt("", !0)
|
|
22741
22743
|
]));
|
|
22742
22744
|
}
|
|
22743
|
-
}),
|
|
22745
|
+
}), xP = /* @__PURE__ */ $e(QO, [["__scopeId", "data-v-a8f926b6"]]);
|
|
22744
22746
|
export {
|
|
22745
|
-
|
|
22747
|
+
yP as AnalyticsChart,
|
|
22746
22748
|
Ye as ChartLegendPosition,
|
|
22747
|
-
|
|
22748
|
-
|
|
22749
|
+
vP as CsvExportModal,
|
|
22750
|
+
rP as DECIMAL_DISPLAY,
|
|
22749
22751
|
bS as EMPTY_COLOR,
|
|
22750
22752
|
oS as FONT_SIZE_REGULAR,
|
|
22751
22753
|
aS as FONT_SIZE_SMALL,
|
|
22752
22754
|
$l as MAX_LABEL_LENGTH,
|
|
22753
|
-
|
|
22754
|
-
|
|
22755
|
-
|
|
22756
|
-
|
|
22755
|
+
uP as OTHERS_COLOR,
|
|
22756
|
+
bP as SimpleChart,
|
|
22757
|
+
xP as SparklineChart,
|
|
22758
|
+
_P as TopNTable,
|
|
22757
22759
|
Gi as ValidType,
|
|
22758
22760
|
pS as accessibleGrey,
|
|
22759
22761
|
yS as apiRequestStatusCodeColors,
|
|
22760
|
-
|
|
22762
|
+
mP as chartTypes,
|
|
22761
22763
|
kS as codesInSpec,
|
|
22762
22764
|
mS as darkenColor,
|
|
22763
22765
|
ti as datavisPalette,
|
|
22764
22766
|
ol as defaultStatusCodeColors,
|
|
22765
22767
|
_g as determineBaseColor,
|
|
22766
|
-
|
|
22767
|
-
|
|
22768
|
-
|
|
22768
|
+
lP as errorRateColors,
|
|
22769
|
+
fP as handleQueryError,
|
|
22770
|
+
cP as latencyColors,
|
|
22769
22771
|
$d as lightGrey,
|
|
22770
|
-
|
|
22772
|
+
dP as lookupColor,
|
|
22771
22773
|
jl as lookupDatavisColor,
|
|
22772
|
-
|
|
22774
|
+
hP as lookupStatusCodeCategoryColor,
|
|
22773
22775
|
vg as lookupStatusCodeColor,
|
|
22774
|
-
|
|
22775
|
-
|
|
22776
|
-
|
|
22776
|
+
gP as simpleChartMetricDisplay,
|
|
22777
|
+
pP as simpleChartTypes,
|
|
22778
|
+
aP as statusCodeBadgeBackgroundColor,
|
|
22777
22779
|
rl as thresholdColor,
|
|
22778
|
-
|
|
22780
|
+
oP as trafficColors
|
|
22779
22781
|
};
|