@kong-ui-public/dashboard-renderer 0.14.0 → 0.14.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as m, watchEffect as Ge, defineComponent as E, inject as re, onUnmounted as xe, computed as v, resolveComponent as U, unref as g, openBlock as h, createBlock as T, withCtx as S, createTextVNode as Ie, toDisplayString as F, renderSlot as ne, createCommentVNode as B, useCssVars as M, createElementVNode as K, createVNode as q, createElementBlock as C, normalizeProps as Te, guardReactiveProps as Me, withModifiers as He, watch as Ye, resolveDynamicComponent as Ae, normalizeStyle as X, pushScopeId as Ze, popScopeId as We, createSlots as Je, mergeProps as Qe, onMounted as Xe, Fragment as et, renderList as tt, normalizeClass as rt } from "vue";
|
|
2
2
|
import { ChartMetricDisplay as nt, ChartTypesSimple as it, SimpleChart as at, ChartTypes as ee, AnalyticsChart as Ce, TopNTable as ot } from "@kong-ui-public/analytics-chart";
|
|
3
3
|
import st from "swrv";
|
|
4
4
|
import ue from "axios";
|
|
@@ -80,7 +80,7 @@ const Z = {
|
|
|
80
80
|
},
|
|
81
81
|
required: ["type"],
|
|
82
82
|
additionalProperties: !1
|
|
83
|
-
},
|
|
83
|
+
}, gt = {
|
|
84
84
|
type: "object",
|
|
85
85
|
properties: {
|
|
86
86
|
type: {
|
|
@@ -105,7 +105,7 @@ const Z = {
|
|
|
105
105
|
},
|
|
106
106
|
required: ["type"],
|
|
107
107
|
additionalProperties: !1
|
|
108
|
-
},
|
|
108
|
+
}, mt = {
|
|
109
109
|
type: "object",
|
|
110
110
|
properties: {
|
|
111
111
|
chartTitle: W,
|
|
@@ -332,7 +332,7 @@ const Z = {
|
|
|
332
332
|
properties: {
|
|
333
333
|
query: kt,
|
|
334
334
|
chart: {
|
|
335
|
-
oneOf: [ft,
|
|
335
|
+
oneOf: [ft, gt, ht, vt, mt, yt]
|
|
336
336
|
}
|
|
337
337
|
},
|
|
338
338
|
required: ["query", "chart"],
|
|
@@ -414,8 +414,8 @@ const Tt = (e) => {
|
|
|
414
414
|
return e ? !!// TODO: revisit: currently only the first check ever matters?
|
|
415
415
|
((t = Object.keys(e)) != null && t.length || (r = e.data) != null && r.length || (n = (i = e.data) == null ? void 0 : i.data) != null && n.length || !((o = e.data) != null && o.data) && typeof e.data == "object" && Object.keys(e == null ? void 0 : e.data).length) : !1;
|
|
416
416
|
};
|
|
417
|
-
function At(e =
|
|
418
|
-
const n =
|
|
417
|
+
function At(e = m({}), t, r, i = Tt) {
|
|
418
|
+
const n = m(
|
|
419
419
|
"PENDING"
|
|
420
420
|
/* PENDING */
|
|
421
421
|
);
|
|
@@ -504,10 +504,10 @@ const De = {
|
|
|
504
504
|
}, {
|
|
505
505
|
refreshInterval: 0,
|
|
506
506
|
revalidateOnFocus: !1
|
|
507
|
-
}), { state: c, swrvState: y } = At(l, f, p), d =
|
|
507
|
+
}), { state: c, swrvState: y } = At(l, f, p), d = m(null), w = v(() => c.value === y.ERROR || !!d.value), b = v(() => !r.queryReady || c.value === y.PENDING);
|
|
508
508
|
return (N, j) => {
|
|
509
509
|
const O = U("KSkeleton"), $ = U("KEmptyState");
|
|
510
|
-
return b.value || !
|
|
510
|
+
return b.value || !g(l) && !w.value ? (h(), T(O, {
|
|
511
511
|
key: 0,
|
|
512
512
|
class: "chart-skeleton",
|
|
513
513
|
type: "table"
|
|
@@ -521,9 +521,9 @@ const De = {
|
|
|
521
521
|
Ie(F(d.value), 1)
|
|
522
522
|
]),
|
|
523
523
|
_: 1
|
|
524
|
-
})) :
|
|
524
|
+
})) : g(l) ? ne(N.$slots, "default", {
|
|
525
525
|
key: 2,
|
|
526
|
-
data:
|
|
526
|
+
data: g(l)
|
|
527
527
|
}) : B("", !0);
|
|
528
528
|
};
|
|
529
529
|
}
|
|
@@ -553,7 +553,7 @@ const De = {
|
|
|
553
553
|
}, {
|
|
554
554
|
default: S(({ data: a }) => [
|
|
555
555
|
K("div", Ot, [
|
|
556
|
-
q(
|
|
556
|
+
q(g(at), {
|
|
557
557
|
"chart-data": a,
|
|
558
558
|
"chart-options": i.value,
|
|
559
559
|
"synthetics-data-key": n.chartOptions.syntheticsDataKey
|
|
@@ -596,7 +596,7 @@ const De = {
|
|
|
596
596
|
}, {
|
|
597
597
|
default: S(({ data: a }) => [
|
|
598
598
|
K("div", Dt, [
|
|
599
|
-
q(
|
|
599
|
+
q(g(Ce), {
|
|
600
600
|
"allow-csv-export": n.chartOptions.allowCsvExport,
|
|
601
601
|
"chart-data": a,
|
|
602
602
|
"chart-options": i.value,
|
|
@@ -643,7 +643,7 @@ const De = {
|
|
|
643
643
|
}, {
|
|
644
644
|
default: S(({ data: a }) => [
|
|
645
645
|
K("div", $t, [
|
|
646
|
-
q(
|
|
646
|
+
q(g(Ce), {
|
|
647
647
|
"allow-csv-export": n.chartOptions.allowCsvExport,
|
|
648
648
|
"chart-data": a,
|
|
649
649
|
"chart-options": i.value,
|
|
@@ -696,15 +696,15 @@ const De = {
|
|
|
696
696
|
refreshInterval: 0
|
|
697
697
|
}));
|
|
698
698
|
return (n, o) => (h(), C("div", Ut, [
|
|
699
|
-
q(
|
|
699
|
+
q(g(lt), Te(Me(i.value)), {
|
|
700
700
|
default: S(() => [
|
|
701
|
-
q(
|
|
701
|
+
q(g(ct))
|
|
702
702
|
]),
|
|
703
703
|
_: 1
|
|
704
704
|
}, 16)
|
|
705
705
|
]));
|
|
706
706
|
}
|
|
707
|
-
}), Kt = /* @__PURE__ */ D(Ft, [["__scopeId", "data-v-
|
|
707
|
+
}), Kt = /* @__PURE__ */ D(Ft, [["__scopeId", "data-v-97fa928f"]]), je = "20px";
|
|
708
708
|
var P = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(P || {});
|
|
709
709
|
function Vt() {
|
|
710
710
|
return {
|
|
@@ -914,7 +914,7 @@ function tr(e, t, r, i = {
|
|
|
914
914
|
headers: e.requestHeaders
|
|
915
915
|
}), { i18n: { t: o } } = ae(), { debounce: a } = Bt(), s = a(async (u) => {
|
|
916
916
|
await $(u);
|
|
917
|
-
}, 200), l =
|
|
917
|
+
}, 200), l = m(!1), f = m(""), p = m(""), c = m([]), y = m([]), d = m(void 0), w = g(t);
|
|
918
918
|
let b = `${e.apiBaseUrl}${w}`;
|
|
919
919
|
e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
920
920
|
const { isValidUuid: N } = $e(), j = async () => {
|
|
@@ -927,7 +927,7 @@ function tr(e, t, r, i = {
|
|
|
927
927
|
} finally {
|
|
928
928
|
l.value = !1;
|
|
929
929
|
}
|
|
930
|
-
}, O =
|
|
930
|
+
}, O = m(""), $ = async (u) => {
|
|
931
931
|
var H, le, ce;
|
|
932
932
|
if (O.value !== u)
|
|
933
933
|
if (O.value = u || "", d.value === void 0)
|
|
@@ -984,7 +984,7 @@ function tr(e, t, r, i = {
|
|
|
984
984
|
};
|
|
985
985
|
}
|
|
986
986
|
function rr(e, t) {
|
|
987
|
-
const r =
|
|
987
|
+
const r = g(t), i = v(
|
|
988
988
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r)
|
|
989
989
|
);
|
|
990
990
|
return i.value.search = "", (n) => `${i.value.href}/${n}`;
|
|
@@ -1031,7 +1031,7 @@ function ir(e) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
function ze(e, t) {
|
|
1034
|
-
const r = g(
|
|
1034
|
+
const r = m(g(e)), i = m(g(t)), n = v(
|
|
1035
1035
|
() => !!(r.value.app === "konnect" || r.value.isExactMatch)
|
|
1036
1036
|
), o = v(
|
|
1037
1037
|
() => i.value.startsWith("/") ? new URL(`${window.location.origin}${i.value}`) : new URL(i.value)
|
|
@@ -1050,10 +1050,10 @@ function ze(e, t) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
function ar(e, t, r = "data") {
|
|
1052
1052
|
var i;
|
|
1053
|
-
const n =
|
|
1053
|
+
const n = g(t), { axiosInstance: o } = ie({
|
|
1054
1054
|
...e.axiosRequestConfig,
|
|
1055
1055
|
headers: { ...(i = e.axiosRequestConfig) == null ? void 0 : i.headers, ...e.requestHeaders }
|
|
1056
|
-
}), a = ze(e, n), s =
|
|
1056
|
+
}), a = ze(e, n), s = m({
|
|
1057
1057
|
status: P.Idle
|
|
1058
1058
|
});
|
|
1059
1059
|
return { fetcher: async (l) => {
|
|
@@ -1112,15 +1112,15 @@ const Pe = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
1112
1112
|
if (!t)
|
|
1113
1113
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
1114
1114
|
return t.shift(), t;
|
|
1115
|
-
}, he = (e) => e === "*" || e === "x" || e === "X",
|
|
1115
|
+
}, he = (e) => e === "*" || e === "x" || e === "X", ge = (e) => {
|
|
1116
1116
|
const t = parseInt(e, 10);
|
|
1117
1117
|
return isNaN(t) ? e : t;
|
|
1118
1118
|
}, sr = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], lr = (e, t) => {
|
|
1119
1119
|
if (he(e) || he(t))
|
|
1120
1120
|
return 0;
|
|
1121
|
-
const [r, i] = sr(
|
|
1121
|
+
const [r, i] = sr(ge(e), ge(t));
|
|
1122
1122
|
return r > i ? 1 : r < i ? -1 : 0;
|
|
1123
|
-
},
|
|
1123
|
+
}, me = (e, t) => {
|
|
1124
1124
|
for (let r = 0; r < Math.max(e.length, t.length); r++) {
|
|
1125
1125
|
const i = lr(e[r] || "0", t[r] || "0");
|
|
1126
1126
|
if (i !== 0)
|
|
@@ -1128,8 +1128,8 @@ const Pe = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
1128
1128
|
}
|
|
1129
1129
|
return 0;
|
|
1130
1130
|
}, cr = (e, t) => {
|
|
1131
|
-
const r = fe(e), i = fe(t), n = r.pop(), o = i.pop(), a =
|
|
1132
|
-
return a !== 0 ? a : n && o ?
|
|
1131
|
+
const r = fe(e), i = fe(t), n = r.pop(), o = i.pop(), a = me(r, i);
|
|
1132
|
+
return a !== 0 ? a : n && o ? me(n.split("."), o.split(".")) : n || o ? n ? -1 : 1 : 0;
|
|
1133
1133
|
}, ve = (e, t, r) => {
|
|
1134
1134
|
ur(r);
|
|
1135
1135
|
const i = cr(e, t);
|
|
@@ -1161,7 +1161,7 @@ function dr(e) {
|
|
|
1161
1161
|
return !(a && ve(n, a, "<") || s && ve(n, s, ">"));
|
|
1162
1162
|
}
|
|
1163
1163
|
function yr(e) {
|
|
1164
|
-
const t =
|
|
1164
|
+
const t = m(0), r = m(0), i = m(!1);
|
|
1165
1165
|
return Ye(e, (n) => {
|
|
1166
1166
|
n && !i.value && (t.value = n.offsetWidth, r.value = n.scrollWidth, i.value = !0);
|
|
1167
1167
|
}), {
|
|
@@ -1186,12 +1186,12 @@ const _e = {
|
|
|
1186
1186
|
for (const [i, n] of t)
|
|
1187
1187
|
r[i] = n;
|
|
1188
1188
|
return r;
|
|
1189
|
-
}, hr = "#0044f4",
|
|
1189
|
+
}, hr = "#0044f4", gr = "16px";
|
|
1190
1190
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1191
1191
|
function Fe(e) {
|
|
1192
1192
|
return typeof e > "u" || e === null;
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function mr(e) {
|
|
1195
1195
|
return typeof e == "object" && e !== null;
|
|
1196
1196
|
}
|
|
1197
1197
|
function vr(e) {
|
|
@@ -1213,7 +1213,7 @@ function _r(e, t) {
|
|
|
1213
1213
|
function wr(e) {
|
|
1214
1214
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1215
1215
|
}
|
|
1216
|
-
var kr = Fe, Sr =
|
|
1216
|
+
var kr = Fe, Sr = mr, xr = vr, Ir = _r, Tr = wr, Ar = br, oe = {
|
|
1217
1217
|
isNothing: kr,
|
|
1218
1218
|
isObject: Sr,
|
|
1219
1219
|
toArray: xr,
|
|
@@ -1630,13 +1630,13 @@ function hn(e) {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
return i % 8 === 0;
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function gn(e) {
|
|
1634
1634
|
var t, r, i = e.replace(/[\r\n=]/g, ""), n = i.length, o = se, a = 0, s = [];
|
|
1635
1635
|
for (t = 0; t < n; t++)
|
|
1636
1636
|
t % 4 === 0 && t && (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
|
|
1637
1637
|
return r = n % 4 * 6, r === 0 ? (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)) : r === 18 ? (s.push(a >> 10 & 255), s.push(a >> 2 & 255)) : r === 12 && s.push(a >> 4 & 255), new Uint8Array(s);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function mn(e) {
|
|
1640
1640
|
var t = "", r = 0, i, n, o = e.length, a = se;
|
|
1641
1641
|
for (i = 0; i < o; i++)
|
|
1642
1642
|
i % 3 === 0 && i && (t += a[r >> 18 & 63], t += a[r >> 12 & 63], t += a[r >> 6 & 63], t += a[r & 63]), r = (r << 8) + e[i];
|
|
@@ -1648,9 +1648,9 @@ function vn(e) {
|
|
|
1648
1648
|
var bn = new _("tag:yaml.org,2002:binary", {
|
|
1649
1649
|
kind: "scalar",
|
|
1650
1650
|
resolve: hn,
|
|
1651
|
-
construct:
|
|
1651
|
+
construct: gn,
|
|
1652
1652
|
predicate: vn,
|
|
1653
|
-
represent:
|
|
1653
|
+
represent: mn
|
|
1654
1654
|
}), _n = Object.prototype.hasOwnProperty, wn = Object.prototype.toString;
|
|
1655
1655
|
function kn(e) {
|
|
1656
1656
|
if (e === null)
|
|
@@ -1876,7 +1876,7 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
},
|
|
1878
1878
|
setup(e) {
|
|
1879
|
-
const t = e, r =
|
|
1879
|
+
const t = e, r = m(), { isTruncated: i } = _e.useTruncationDetector(r), { i18n: { t: n } } = _e.useI18n(), o = n("global.actions.copyId"), a = m(o), s = v(() => t.entityLinkData.deleted ?? !1), l = v(() => t.entityLinkData.id.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id), f = v(() => `${l.value.toString().slice(0, 5)} (deleted)`), p = async (c) => {
|
|
1880
1880
|
await c(l.value || "") && (a.value = n("global.actions.copyToClipboard"), setTimeout(() => {
|
|
1881
1881
|
a.value = o;
|
|
1882
1882
|
}, 1800));
|
|
@@ -1893,7 +1893,7 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1893
1893
|
}, {
|
|
1894
1894
|
default: S(() => [
|
|
1895
1895
|
q(d, {
|
|
1896
|
-
text:
|
|
1896
|
+
text: g(i) && e.entityLinkData.label || ""
|
|
1897
1897
|
}, {
|
|
1898
1898
|
default: S(() => [
|
|
1899
1899
|
K("span", {
|
|
@@ -1921,11 +1921,11 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1921
1921
|
class: "entity-link-copy-id",
|
|
1922
1922
|
onClick: He((j) => p(N), ["stop"])
|
|
1923
1923
|
}, [
|
|
1924
|
-
q(
|
|
1924
|
+
q(g(Fn), {
|
|
1925
1925
|
class: "copy-icon",
|
|
1926
|
-
color:
|
|
1926
|
+
color: g(hr),
|
|
1927
1927
|
"data-testid": "copy-id",
|
|
1928
|
-
size:
|
|
1928
|
+
size: g(gr)
|
|
1929
1929
|
}, null, 8, ["color", "size"])
|
|
1930
1930
|
], 8, Gn)
|
|
1931
1931
|
]),
|
|
@@ -1963,7 +1963,7 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1963
1963
|
"query-ready": i.queryReady
|
|
1964
1964
|
}, {
|
|
1965
1965
|
default: S(({ data: o }) => [
|
|
1966
|
-
q(
|
|
1966
|
+
q(g(ot), {
|
|
1967
1967
|
data: o,
|
|
1968
1968
|
description: i.chartOptions.description,
|
|
1969
1969
|
"synthetics-data-key": i.chartOptions.syntheticsDataKey,
|
|
@@ -1972,7 +1972,7 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1972
1972
|
t.chartOptions.entityLink ? {
|
|
1973
1973
|
name: "name",
|
|
1974
1974
|
fn: S(({ record: a }) => [
|
|
1975
|
-
q(
|
|
1975
|
+
q(g(Hn), {
|
|
1976
1976
|
"entity-link-data": {
|
|
1977
1977
|
id: a.id,
|
|
1978
1978
|
label: a.name,
|
|
@@ -2048,7 +2048,7 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
2048
2048
|
"14978e90": e.gridSize.rows,
|
|
2049
2049
|
"70cb8937": `${e.tileHeight}px`
|
|
2050
2050
|
}));
|
|
2051
|
-
const t = e, r =
|
|
2051
|
+
const t = e, r = m(null), i = m(0), n = new ResizeObserver((a) => {
|
|
2052
2052
|
i.value = a[0].contentRect.width;
|
|
2053
2053
|
});
|
|
2054
2054
|
Xe(() => {
|
|
@@ -2109,21 +2109,21 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
2109
2109
|
return (a, s) => {
|
|
2110
2110
|
const l = U("KAlert");
|
|
2111
2111
|
return h(), C("div", ei, [
|
|
2112
|
-
|
|
2112
|
+
g(i) ? (h(), T(Xn, {
|
|
2113
2113
|
key: 1,
|
|
2114
2114
|
"grid-size": a.config.gridSize,
|
|
2115
2115
|
"tile-height": a.config.tileHeight,
|
|
2116
2116
|
tiles: n.value
|
|
2117
2117
|
}, {
|
|
2118
2118
|
tile: S(({ tile: f }) => [
|
|
2119
|
-
f.meta.chart.type ===
|
|
2119
|
+
f.meta.chart.type === g(I).Slottable ? (h(), C("div", ti, [
|
|
2120
2120
|
ne(a.$slots, f.meta.chart.id, {}, void 0, !0)
|
|
2121
2121
|
])) : (h(), T(Jn, {
|
|
2122
2122
|
key: 1,
|
|
2123
2123
|
class: "tile-container",
|
|
2124
2124
|
context: o.value,
|
|
2125
2125
|
definition: f.meta,
|
|
2126
|
-
height: f.layout.size.rows * (a.config.tileHeight ||
|
|
2126
|
+
height: f.layout.size.rows * (a.config.tileHeight || g(Y)) + parseInt(g(je), 10)
|
|
2127
2127
|
}, null, 8, ["context", "definition", "height"]))
|
|
2128
2128
|
]),
|
|
2129
2129
|
_: 3
|
|
@@ -2132,7 +2132,7 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
2132
2132
|
appearance: "danger"
|
|
2133
2133
|
}, {
|
|
2134
2134
|
default: S(() => [
|
|
2135
|
-
Ie(F(
|
|
2135
|
+
Ie(F(g(r).t("renderer.noQueryBridge")), 1)
|
|
2136
2136
|
]),
|
|
2137
2137
|
_: 1
|
|
2138
2138
|
}))
|
|
@@ -2151,12 +2151,12 @@ export {
|
|
|
2151
2151
|
ft as barChartSchema,
|
|
2152
2152
|
di as dashboardConfigSchema,
|
|
2153
2153
|
kt as exploreV4QuerySchema,
|
|
2154
|
-
|
|
2154
|
+
gt as gaugeChartSchema,
|
|
2155
2155
|
vt as metricCardSchema,
|
|
2156
2156
|
yt as slottableSchema,
|
|
2157
2157
|
It as tileConfigSchema,
|
|
2158
2158
|
St as tileDefinitionSchema,
|
|
2159
2159
|
xt as tileLayoutSchema,
|
|
2160
2160
|
ht as timeseriesChartSchema,
|
|
2161
|
-
|
|
2161
|
+
mt as topNTableSchema
|
|
2162
2162
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(d,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@kong-ui-public/analytics-chart"),require("swrv"),require("axios"),require("@kong-ui-public/i18n"),require("@kong-ui-public/analytics-metric-provider"),require("@kong-ui-public/analytics-utilities"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/analytics-chart","swrv","axios","@kong-ui-public/i18n","@kong-ui-public/analytics-metric-provider","@kong-ui-public/analytics-utilities","@kong/kongponents","vue-router"],n):(d=typeof globalThis<"u"?globalThis:d||self,n(d["kong-ui-public-dashboard-renderer"]={},d.Vue,d["kong-ui-public-analytics-chart"],d.swrv,d.axios,d["kong-ui-public-i18n"],d["kong-ui-public-analytics-metric-provider"],d["kong-ui-public-analytics-utilities"]))})(this,function(d,n,C,Be,W,B,J,j){"use strict";const U="analytics-query-provider",F="{entity-id}",Q="{cp-id}";var b=(e=>(e.HorizontalBar="horizontal_bar",e.VerticalBar="vertical_bar",e.Gauge="gauge",e.TimeseriesLine="timeseries_line",e.GoldenSignals="golden_signals",e.TopN="top_n",e.Slottable="slottable",e))(b||{});const $={type:"string"},V={type:"string"},X={type:"boolean"},ee={type:["object","array"],items:{type:"string"},additionalProperties:{type:"string"}},te={type:"object",properties:{type:{type:"string",enum:["slottable"]},id:{type:"string"}},required:["type","id"],additionalProperties:!1},re={type:"object",properties:{type:{type:"string",enum:["horizontal_bar","vertical_bar"]},stacked:{type:"boolean"},chartDatasetColors:ee,syntheticsDataKey:$,chartTitle:V,allowCsvExport:X},required:["type"],additionalProperties:!1},ne={type:"object",properties:{type:{type:"string",enum:["timeseries_line"]},stacked:{type:"boolean"},chartDatasetColors:ee,syntheticsDataKey:$,chartTitle:V,allowCsvExport:X},required:["type"],additionalProperties:!1},ie={type:"object",properties:{type:{type:"string",enum:["gauge"]},metricDisplay:{type:"string",enum:Object.values(C.ChartMetricDisplay)},reverseDataset:{type:"boolean"},numerator:{type:"number"},syntheticsDataKey:$,chartTitle:V},required:["type"],additionalProperties:!1},oe={type:"object",properties:{chartTitle:V,syntheticsDataKey:$,type:{type:"string",enum:["top_n"]},description:{type:"string"},entityLink:{type:"string"}},required:["type"],additionalProperties:!1},ae={type:"object",properties:{type:{type:"string",enum:["golden_signals"]},longCardTitles:{type:"boolean"},description:{type:"string"}},required:["type"]},se={type:"object",description:"A query to launch at the API",properties:{metrics:{type:"array",description:"List of aggregated metrics to collect across the requested time span.",items:{type:"string",enum:["request_count","request_per_minute","response_latency_p99","response_latency_p95","response_latency_p50","response_latency_average","upstream_latency_p99","upstream_latency_p95","upstream_latency_p50","upstream_latency_average","kong_latency_p99","kong_latency_p95","kong_latency_p50","kong_latency_average","response_size_p99","response_size_p95","response_size_p50","request_size_p99","request_size_p95","request_size_p50","request_size_average","response_size_average"]}},dimensions:{type:"array",description:"List of attributes or entity types to group by.",minItems:0,maxItems:2,items:{type:"string",enum:["api_product","api_product_version","application","consumer","control_plane","control_plane_group","data_plane_node","gateway_service","route","status_code","status_code_grouped","time"]}},filters:{type:"array",description:"A list of filters to apply to the query.",items:{type:"object",description:"A filter that specifies which data to include in the query",properties:{dimension:{type:"string",enum:["api_product","api_product_version","application","consumer","control_plane","control_plane_group","data_plane_node","gateway_service","route","status_code","status_code_grouped","time"]},type:{type:"string",enum:["in","not_in","selector"]},values:{type:"array",items:{type:"string"}}},required:["dimension","type","values"]}},granularity_ms:{type:"number",description:'Force time grouping into buckets of this duration in milliseconds. Only has an effect if "time" is in the "dimensions" list.',minimum:6e4},time_range:{description:"The time range to query.",oneOf:[{type:"object",properties:{tz:{type:"string",default:"Etc/UTC"},type:{type:"string",enum:["relative"]},time_range:{type:"string",enum:["15m","1h","6h","12h","24h","7d","30d","current_week","current_month","previous_week","previous_month"],default:"1h"}},required:["type","time_range"]},{type:"object",description:"A duration representing an exact start and end time.",properties:{tz:{type:"string",default:"Etc/UTC"},type:{type:"string",enum:["absolute"]},start:{type:"string"},end:{type:"string"}},required:["type"]}],default:{type:"relative",time_range:"1h"}},meta:{type:"object"}}},le={type:"object",properties:{query:se,chart:{oneOf:[re,ie,ne,ae,oe,te]}},required:["query","chart"],additionalProperties:!1},ce={type:"object",properties:{position:{type:"object",properties:{col:{type:"number"},row:{type:"number"}},description:"Position of the tile in the grid.",required:["col","row"],additionalProperties:!1},size:{type:"object",properties:{cols:{type:"number"},rows:{type:"number"}},description:"Number of columns and rows the tile occupies.",required:["cols","rows"],additionalProperties:!1}},required:["position","size"],additionalProperties:!1},ue={type:"object",properties:{definition:le,layout:ce},required:["definition","layout"],additionalProperties:!1},je={type:"object",properties:{tiles:{type:"array",items:ue},tileHeight:{type:"number",description:"Height of each tile in pixels. Default: 170"},gridSize:{type:"object",properties:{cols:{type:"number"},rows:{type:"number"}},description:"Number of columns and rows in the grid.",required:["cols","rows"],additionalProperties:!1}},required:["tiles","gridSize"],additionalProperties:!1};var pe=(e=>(e.VALIDATING="VALIDATING",e.VALIDATING_HAS_DATA="VALIDATING_HAS_DATA",e.PENDING="PENDING",e.SUCCESS="SUCCESS",e.SUCCESS_HAS_DATA="SUCCESS_HAS_DATA",e.ERROR="ERROR",e.STALE_IF_ERROR="STALE_IF_ERROR",e))(pe||{});const $e=e=>{var t,r,o,i,s;return e?!!((t=Object.keys(e))!=null&&t.length||(r=e.data)!=null&&r.length||(i=(o=e.data)==null?void 0:o.data)!=null&&i.length||!((s=e.data)!=null&&s.data)&&typeof e.data=="object"&&Object.keys(e==null?void 0:e.data).length):!1};function Ve(e=n.ref({}),t,r,o=$e){const i=n.ref("PENDING");return n.watchEffect(()=>{const s=o(e.value);if(e.value&&s&&r.value){i.value="VALIDATING_HAS_DATA";return}if(e.value&&r.value){i.value="VALIDATING";return}if(e.value&&t.value){i.value="STALE_IF_ERROR";return}if(e.value===void 0&&!t.value){i.value="PENDING";return}if(e.value&&!t.value&&s){i.value="SUCCESS_HAS_DATA";return}if(e.value&&!t.value){i.value="SUCCESS";return}e.value===void 0&&t&&(i.value="ERROR")}),{state:i,swrvState:pe}}const ze={renderer:{noQueryBridge:"No query bridge provided. Unable to render dashboard."},queryDataProvider:{timeRangeExceeded:"The time range for this report is outside of your organization's data retention period"}};function Pe(){const e=B.createI18n("en-us",ze);return{i18n:e,i18nT:B.i18nTComponent(e)}}const de={useI18n:Pe},z=n.defineComponent({__name:"QueryDataProvider",props:{context:{},query:{},queryReady:{type:Boolean}},emits:["queryComplete"],setup(e,{emit:t}){const r=e,o=t,{i18n:i}=de.useI18n(),s=n.inject(U),a=()=>r.queryReady&&s?JSON.stringify([r.query,r.context]):null,l=new AbortController;n.onUnmounted(()=>{l.abort()});const{data:c,error:m,isValidating:f}=Be(a,async()=>{var E,O,x,L;try{const p=[];r.query.filters&&p.push(...r.query.filters),p.push(...r.context.filters);const P={...r.query,time_range:{...r.context.timeSpec,tz:r.context.tz},filters:p};return s==null?void 0:s.queryFn(P,l)}catch(p){y.value=((O=(E=p==null?void 0:p.response)==null?void 0:E.data)==null?void 0:O.message)==="Range not allowed for this tier"?i.t("queryDataProvider.timeRangeExceeded"):((L=(x=p==null?void 0:p.response)==null?void 0:x.data)==null?void 0:L.message)||(p==null?void 0:p.message)}finally{o("queryComplete")}},{refreshInterval:0,revalidateOnFocus:!1}),{state:u,swrvState:h}=Ve(c,m,f),y=n.ref(null),k=n.computed(()=>u.value===h.ERROR||!!y.value),g=n.computed(()=>!r.queryReady||u.value===h.PENDING);return(E,O)=>{const x=n.resolveComponent("KSkeleton"),L=n.resolveComponent("KEmptyState");return g.value||!n.unref(c)&&!k.value?(n.openBlock(),n.createBlock(x,{key:0,class:"chart-skeleton",type:"table"})):k.value?(n.openBlock(),n.createBlock(L,{key:1,"action-button-visible":!1,"data-testid":"chart-empty-state","icon-variant":"error"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.value),1)]),_:1})):n.unref(c)?n.renderSlot(E.$slots,"default",{key:2,data:n.unref(c)}):n.createCommentVNode("",!0)}}}),Ue={class:"analytics-chart"},Fe=n.defineComponent({__name:"SimpleChartRenderer",props:{query:{},context:{},queryReady:{type:Boolean},chartOptions:{},height:{}},setup(e){n.useCssVars(i=>({"8c62ff26":`${i.height}px`}));const t=e,r={[b.Gauge]:C.ChartTypesSimple.GAUGE},o=n.computed(()=>({...t.chartOptions,type:r[t.chartOptions.type]}));return(i,s)=>(n.openBlock(),n.createBlock(z,{context:i.context,query:i.query,"query-ready":i.queryReady},{default:n.withCtx(({data:a})=>[n.createElementVNode("div",Ue,[n.createVNode(n.unref(C.SimpleChart),{"chart-data":a,"chart-options":o.value,"synthetics-data-key":i.chartOptions.syntheticsDataKey},null,8,["chart-data","chart-options","synthetics-data-key"])])]),_:1},8,["context","query","query-ready"]))}}),v=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r},Ke=v(Fe,[["__scopeId","data-v-f0f6ed41"]]),Ge={class:"analytics-chart"},fe=v(n.defineComponent({__name:"BarChartRenderer",props:{query:{},context:{},queryReady:{type:Boolean},chartOptions:{},height:{}},setup(e){n.useCssVars(i=>({"1eed717c":`${i.height}px`}));const t=e,r={[b.HorizontalBar]:C.ChartTypes.HORIZONTAL_BAR,[b.VerticalBar]:C.ChartTypes.VERTICAL_BAR},o=n.computed(()=>({type:r[t.chartOptions.type],stacked:t.chartOptions.stacked,chartDatasetColors:t.chartOptions.chartDatasetColors}));return(i,s)=>(n.openBlock(),n.createBlock(z,{context:i.context,query:i.query,"query-ready":i.queryReady},{default:n.withCtx(({data:a})=>[n.createElementVNode("div",Ge,[n.createVNode(n.unref(C.AnalyticsChart),{"allow-csv-export":i.chartOptions.allowCsvExport,"chart-data":a,"chart-options":o.value,"chart-title":i.chartOptions.chartTitle,"legend-position":"bottom","show-annotations":!1,"synthetics-data-key":i.chartOptions.syntheticsDataKey,"tooltip-title":""},null,8,["allow-csv-export","chart-data","chart-options","chart-title","synthetics-data-key"])])]),_:1},8,["context","query","query-ready"]))}}),[["__scopeId","data-v-36598a1b"]]),He={class:"analytics-chart"},Me=v(n.defineComponent({__name:"TimeseriesChartRenderer",props:{query:{},context:{},queryReady:{type:Boolean},chartOptions:{},height:{}},setup(e){n.useCssVars(i=>({"24c2946a":`${i.height}px`}));const t=e,r={[b.TimeseriesLine]:C.ChartTypes.TIMESERIES_LINE},o=n.computed(()=>{const i=t.chartOptions.stacked??!1;return{type:r[t.chartOptions.type],fill:i,stacked:i,chartDatasetColors:t.chartOptions.chartDatasetColors}});return(i,s)=>(n.openBlock(),n.createBlock(z,{context:i.context,query:i.query,"query-ready":i.queryReady},{default:n.withCtx(({data:a})=>[n.createElementVNode("div",He,[n.createVNode(n.unref(C.AnalyticsChart),{"allow-csv-export":i.chartOptions.allowCsvExport,"chart-data":a,"chart-options":o.value,"chart-title":i.chartOptions.chartTitle,"legend-position":"bottom","synthetics-data-key":i.chartOptions.syntheticsDataKey,"tooltip-title":""},null,8,["allow-csv-export","chart-data","chart-options","chart-title","synthetics-data-key"])])]),_:1},8,["context","query","query-ready"]))}}),[["__scopeId","data-v-93ab34da"]]),Ye={class:"metric-card-tile-wrapper"},Ze=v(n.defineComponent({__name:"GoldenSignalsRenderer",props:{query:{},context:{},queryReady:{type:Boolean},chartOptions:{},height:{}},setup(e){const t=e,r=n.computed(()=>{const i=t.context.timeSpec;if(i.type==="absolute")return new j.Timeframe({key:"custom",timeframeText:"custom",display:"custom",startCustom:i.start,endCustom:i.end,timeframeLength:()=>0,defaultResponseGranularity:j.GranularityKeys.DAILY,dataGranularity:j.GranularityKeys.DAILY,isRelative:!1,allowedTiers:["free","plus","enterprise"]});const s=j.TimePeriods.get(i.time_range);if(!s)throw new Error("Unknown time range");return s}),o=n.computed(()=>({overrideTimeframe:r.value,tz:t.context.tz,additionalFilter:t.context.filters,longCardTitles:t.chartOptions.longCardTitles,description:t.chartOptions.description,hasTrendAccess:!0,refreshInterval:0}));return(i,s)=>(n.openBlock(),n.createElementBlock("div",Ye,[n.createVNode(n.unref(J.MetricsProviderInternal),n.normalizeProps(n.guardReactiveProps(o.value)),{default:n.withCtx(()=>[n.createVNode(n.unref(J.MetricsConsumer),{class:"metric-consumer"})]),_:1},16)]))}}),[["__scopeId","data-v-52746db6"]]),ye="20px";var N=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(N||{});function We(){return{getAxiosInstance:(e={})=>{try{const t=n.inject("get-axios-instance",void 0);return typeof t=="function"?t(e):W.create({withCredentials:!0,timeout:3e4,...e})}catch(t){return console.warn("getAxiosInstance:",t.message||t),W.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var t;return((t=e==null?void 0:e.response)==null?void 0:t.headers["x-datadog-trace-id"])||""}}}function Je(){return{debounce:(e,t)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},t)}}}}function K(e={}){const{getAxiosInstance:t}=We();return{axiosInstance:t(e)}}const Qe={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},Xe={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},et={actions:{viewConfiguration:"View Configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",message:"Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",yaml:"YAML",json:"JSON"},errors:{edit:"The entity could not be edited at this time."}},tt={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},rt={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},nt={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},it={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},ot={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},at={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},st={global:Qe,deleteModal:Xe,baseForm:et,baseTable:tt,baseConfigCard:rt,filter:nt,debouncedFilter:it,errors:ot,toggleModal:at};function G(){const e=B.createI18n("en-us",st);return{i18n:e,i18nT:B.i18nTComponent(e)}}function he(){const e=(r,o)=>(o==null?void 0:o[r])??void 0,t=(r,o)=>{if(r.length!==o.length)return!1;const i=new Set([...r,...o]);for(const s of i){const a=r.filter(c=>c===s).length,l=o.filter(c=>c===s).length;if(a!==l)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,o,i)=>{if(i){if(Object.keys(r).length===Object.keys(o).length)for(const s in r)if(Array.isArray(r[s])&&Array.isArray(o[s])){if(t(r[s],o[s]))continue;return!1}else{if(r[s]===o[s])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(o)}catch{return!1}},sortAlpha:r=>(o,i)=>{let s=o[r]===void 0||o[r]===null?"":o[r],a=i[r]===void 0||i[r]===null?"":i[r];return Array.isArray(o[r])&&(s=o[r][0]),Array.isArray(i[r])&&(a=i[r][0]),s.localeCompare(a)},isValidUuid:r=>r?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(r):!1}}function lt(e,t,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:i}=K({headers:e.requestHeaders}),{i18n:{t:s}}=G(),{debounce:a}=Je(),l=a(async p=>{await L(p)},200),c=n.ref(!1),m=n.ref(""),f=n.ref(""),u=n.ref([]),h=n.ref([]),y=n.ref(void 0),k=n.unref(t);let g=`${e.apiBaseUrl}${k}`;e.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:E}=he(),O=async()=>{try{c.value=!0;const{data:p}=await i.get(`${g}?size=${r}`);p!=null&&p.next||(y.value=o.fetchedItemsKey in p?p[o.fetchedItemsKey]:[]),h.value=o.fetchedItemsKey in p?p[o.fetchedItemsKey]:[],u.value=h.value}catch{u.value=[],m.value=s("debouncedFilter.errors.fetch")}finally{c.value=!1}},x=n.ref(""),L=async p=>{var P,De,Re;if(x.value!==p)if(x.value=p||"",y.value===void 0)try{if(c.value=!0,m.value="",f.value="",e.app==="konnect"){let S=g+"";p&&(S+=`/${p}`);const{data:T}=await i.get(`${S}?size=${r}`);o.fetchedItemsKey in T?u.value=T[o.fetchedItemsKey]:T!=null&&T.id?u.value=[T]:u.value=[]}else if(p){const S=[];E(p)&&o.searchKeys.includes("id")?S.push((async()=>{const{data:w}=await i.get(`${g}/${p}`);return[w[o.fetchedItemsKey]??w]})()):S.push(...o.searchKeys.filter(w=>w!=="id").map(async w=>{const{data:A}=await i.get(`${g}?${w}=${p}`);return A[o.fetchedItemsKey]}));const T=await Promise.all(S),R=new Set;u.value=[],(P=T==null?void 0:T.forEach)==null||P.call(T,w=>{var A;(A=w==null?void 0:w.forEach)==null||A.call(w,Z=>{R.has(Z.id)||(R.add(Z.id),u.value.push(Z))})})}else u.value=h.value}catch(S){((De=S==null?void 0:S.response)==null?void 0:De.status)===404?f.value=s("debouncedFilter.errors.invalid"):(u.value=[],m.value=s("debouncedFilter.errors.fetch"))}finally{c.value=!1}else c.value=!0,f.value="",p?(u.value=(Re=y.value)==null?void 0:Re.filter(S=>{var T;let R=!1;for(const w of o.searchKeys){const A=typeof S[w]=="string"?(T=S[w])==null?void 0:T.toLowerCase():S[w];A!=null&&A.includes(p.toLowerCase())&&(R=!0)}return R}),(!u.value||!u.value.length)&&(f.value=s("debouncedFilter.errors.invalid"))):u.value=y.value,c.value=!1};return{loading:c,error:m,validationError:f,results:u,allRecords:y,loadItems:O,debouncedQueryChange:l}}function ct(e,t){const r=n.unref(t),o=n.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return o.value.search="",i=>`${o.value.href}/${i}`}function ut(){const{i18n:{t:e}}=G();return{getMessageFromError:t=>{var r,o,i,s;if(!t)return e("errors.unexpected");if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((o=t==null?void 0:t.response)!=null&&o.data){if(t.response.data.detail)return t.response.data.detail;if((i=t.response.data.details)!=null&&i.length)return t.response.data.details.map(a=>{let l=e("errors.unexpected");return a.messages&&typeof a.messages=="object"&&a.messages.length&&(l=a.messages.join(", ")),a.field?`${a.field} - ${l}`:l}).join("; ");if(t.response.data.message){const{message:a}=t.response.data;return Array.isArray(a)?(s=a[0])!=null&&s.constraints?Object.values(a[0].constraints)[0]:a[0]:a}if(typeof t.response.data=="string")return t.response.data;if(typeof t.response.data=="object")return Object.keys(t.response.data).map(a=>`${a} ${t.response.data[a]}`).join(", ")}return t.message||e("errors.unexpected")}}}function pt(e){const t=window.location.origin,r=t.endsWith("/")?t:`${t}/`;try{const o=e.join("/"),i=`${r}${o}`,s=e.some(a=>a.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(i)&&!s&&new URL(i))return`${r}${o}`;throw new Error("Invalid url")}catch(o){return console.warn("Failed to build valid URL:",o),""}}function me(e,t){const r=n.ref(n.unref(e)),o=n.ref(n.unref(t)),i=n.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),s=n.computed(()=>o.value.startsWith("/")?new URL(`${window.location.origin}${o.value}`):new URL(o.value));return a=>{const{page:l,pageSize:c,offset:m,sortColumnKey:f,sortColumnOrder:u,query:h}=a;try{let y=new URL(s.value.href);return i.value&&h?(y.search="",y=r.value.isExactMatch?new URL(`${y.href}/${h}/`):new URL(`${y.href}?filter[name][contains]=${h}`)):(i.value||new URLSearchParams(h).forEach((k,g)=>{y.searchParams.append(g,k)}),f&&y.searchParams.append("sort_by",f),u==="desc"&&y.searchParams.append("sort_desc","1"),y.searchParams.append("size",String(c))),m&&l!==1&&y.searchParams.append("offset",String(m)),y.href}catch(y){return console.error("RouteList(fetcher)",y),o.value}}}function dt(e,t,r="data"){var o;const i=n.unref(t),{axiosInstance:s}=K({...e.axiosRequestConfig,headers:{...(o=e.axiosRequestConfig)==null?void 0:o.headers,...e.requestHeaders}}),a=me(e,i),l=n.ref({status:N.Idle});return{fetcher:async c=>{var m;try{l.value={status:N.Loading};let f=a(c);f.includes("filter[name]")&&(f=`${f}&page[size]=${c.pageSize}&page[number]=${c.page}`);const u=await s.get(f);if(u.status>=400)throw u;const h=u.data,y=r&&r.replace(/[^\w-_]/gi,"");let k;h[y]&&Array.isArray(h[y])?k=h[y]:Array.isArray(h)?k=h:k=Object.keys(h).length?[h]:[];const g={data:k,total:k.length,...h.offset?{pagination:{offset:h.offset}}:null};return l.value={status:N.Idle,response:g},g}catch(f){const u={data:[],total:0};return c.query&&(((m=f.response)==null?void 0:m.status)===404||f.status===404)?(l.value={status:N.NoResults,response:u,error:f.response?f:{response:f}},u):(l.value={status:N.Error,response:u,error:f.response?f:{response:f}},u)}},fetcherState:l}}function ft(){const e=(r,o="_")=>r?r.split(o).map(i=>i.toLowerCase()==="id"?i.toUpperCase():i.charAt(0).toUpperCase()+i.substring(1)).join(" "):"",t=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(t,o=>o.toUpperCase()):"",convertKeyToTitle:e}}const ge=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,_e=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(ge);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},be=e=>e==="*"||e==="x"||e==="X",ke=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},yt=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],ht=(e,t)=>{if(be(e)||be(t))return 0;const[r,o]=yt(ke(e),ke(t));return r>o?1:r<o?-1:0},we=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const o=ht(e[r]||"0",t[r]||"0");if(o!==0)return o}return 0},mt=(e,t)=>{const r=_e(e),o=_e(t),i=r.pop(),s=o.pop(),a=we(r,o);return a!==0?a:i&&s?we(i.split("."),s.split(".")):i||s?i?-1:1:0},Se=(e,t,r)=>{gt(r);const o=mt(e,t);return Te[r].includes(o)},Te={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},Ce=Object.keys(Te),gt=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(Ce.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${Ce.join("|")}`)},_t=e=>typeof e=="string"&&/^[v\d]/.test(e)&&ge.test(e);function bt(e){const{gatewayInfo:t,supportedRange:r}=e;if(!t)return!0;const{edition:o,version:i}=t;if(!_t(i))return console.error("Invalid version"),!1;const s=r[o];if(!s)return!1;const[a,l]=s;return!(a&&Se(i,a,"<")||l&&Se(i,l,">"))}function kt(e){const t=n.ref(0),r=n.ref(0),o=n.ref(!1);return n.watch(e,i=>{i&&!o.value&&(t.value=i.offsetWidth,r.value=i.scrollWidth,o.value=!0)}),{isTruncated:n.computed(()=>t.value<r.value)}}const Ee={useAxios:K,useDebouncedFilter:lt,useDeleteUrlBuilder:ct,useErrors:ut,useExternalLinkCreator:pt,useFetcher:dt,useFetchUrlBuilder:me,useHelpers:he,useStringHelpers:ft,useI18n:G,useGatewayFeatureSupported:bt,useTruncationDetector:kt},wt=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r},St="#0044f4",Tt="16px";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ve(e){return typeof e>"u"||e===null}function Ct(e){return typeof e=="object"&&e!==null}function Et(e){return Array.isArray(e)?e:ve(e)?[]:[e]}function vt(e,t){var r,o,i,s;if(t)for(s=Object.keys(t),r=0,o=s.length;r<o;r+=1)i=s[r],e[i]=t[i];return e}function It(e,t){var r="",o;for(o=0;o<t;o+=1)r+=e;return r}function xt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var At=ve,Nt=Ct,qt=Et,Ot=It,Lt=xt,Dt=vt,H={isNothing:At,isObject:Nt,toArray:qt,repeat:Ot,isNegativeZero:Lt,extend:Dt};function Ie(e,t){var r="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
1
|
+
(function(d,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@kong-ui-public/analytics-chart"),require("swrv"),require("axios"),require("@kong-ui-public/i18n"),require("@kong-ui-public/analytics-metric-provider"),require("@kong-ui-public/analytics-utilities"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/analytics-chart","swrv","axios","@kong-ui-public/i18n","@kong-ui-public/analytics-metric-provider","@kong-ui-public/analytics-utilities","@kong/kongponents","vue-router"],n):(d=typeof globalThis<"u"?globalThis:d||self,n(d["kong-ui-public-dashboard-renderer"]={},d.Vue,d["kong-ui-public-analytics-chart"],d.swrv,d.axios,d["kong-ui-public-i18n"],d["kong-ui-public-analytics-metric-provider"],d["kong-ui-public-analytics-utilities"]))})(this,function(d,n,C,Be,W,B,J,j){"use strict";const U="analytics-query-provider",F="{entity-id}",Q="{cp-id}";var b=(e=>(e.HorizontalBar="horizontal_bar",e.VerticalBar="vertical_bar",e.Gauge="gauge",e.TimeseriesLine="timeseries_line",e.GoldenSignals="golden_signals",e.TopN="top_n",e.Slottable="slottable",e))(b||{});const $={type:"string"},V={type:"string"},X={type:"boolean"},ee={type:["object","array"],items:{type:"string"},additionalProperties:{type:"string"}},te={type:"object",properties:{type:{type:"string",enum:["slottable"]},id:{type:"string"}},required:["type","id"],additionalProperties:!1},re={type:"object",properties:{type:{type:"string",enum:["horizontal_bar","vertical_bar"]},stacked:{type:"boolean"},chartDatasetColors:ee,syntheticsDataKey:$,chartTitle:V,allowCsvExport:X},required:["type"],additionalProperties:!1},ne={type:"object",properties:{type:{type:"string",enum:["timeseries_line"]},stacked:{type:"boolean"},chartDatasetColors:ee,syntheticsDataKey:$,chartTitle:V,allowCsvExport:X},required:["type"],additionalProperties:!1},ie={type:"object",properties:{type:{type:"string",enum:["gauge"]},metricDisplay:{type:"string",enum:Object.values(C.ChartMetricDisplay)},reverseDataset:{type:"boolean"},numerator:{type:"number"},syntheticsDataKey:$,chartTitle:V},required:["type"],additionalProperties:!1},oe={type:"object",properties:{chartTitle:V,syntheticsDataKey:$,type:{type:"string",enum:["top_n"]},description:{type:"string"},entityLink:{type:"string"}},required:["type"],additionalProperties:!1},ae={type:"object",properties:{type:{type:"string",enum:["golden_signals"]},longCardTitles:{type:"boolean"},description:{type:"string"}},required:["type"]},se={type:"object",description:"A query to launch at the API",properties:{metrics:{type:"array",description:"List of aggregated metrics to collect across the requested time span.",items:{type:"string",enum:["request_count","request_per_minute","response_latency_p99","response_latency_p95","response_latency_p50","response_latency_average","upstream_latency_p99","upstream_latency_p95","upstream_latency_p50","upstream_latency_average","kong_latency_p99","kong_latency_p95","kong_latency_p50","kong_latency_average","response_size_p99","response_size_p95","response_size_p50","request_size_p99","request_size_p95","request_size_p50","request_size_average","response_size_average"]}},dimensions:{type:"array",description:"List of attributes or entity types to group by.",minItems:0,maxItems:2,items:{type:"string",enum:["api_product","api_product_version","application","consumer","control_plane","control_plane_group","data_plane_node","gateway_service","route","status_code","status_code_grouped","time"]}},filters:{type:"array",description:"A list of filters to apply to the query.",items:{type:"object",description:"A filter that specifies which data to include in the query",properties:{dimension:{type:"string",enum:["api_product","api_product_version","application","consumer","control_plane","control_plane_group","data_plane_node","gateway_service","route","status_code","status_code_grouped","time"]},type:{type:"string",enum:["in","not_in","selector"]},values:{type:"array",items:{type:"string"}}},required:["dimension","type","values"]}},granularity_ms:{type:"number",description:'Force time grouping into buckets of this duration in milliseconds. Only has an effect if "time" is in the "dimensions" list.',minimum:6e4},time_range:{description:"The time range to query.",oneOf:[{type:"object",properties:{tz:{type:"string",default:"Etc/UTC"},type:{type:"string",enum:["relative"]},time_range:{type:"string",enum:["15m","1h","6h","12h","24h","7d","30d","current_week","current_month","previous_week","previous_month"],default:"1h"}},required:["type","time_range"]},{type:"object",description:"A duration representing an exact start and end time.",properties:{tz:{type:"string",default:"Etc/UTC"},type:{type:"string",enum:["absolute"]},start:{type:"string"},end:{type:"string"}},required:["type"]}],default:{type:"relative",time_range:"1h"}},meta:{type:"object"}}},le={type:"object",properties:{query:se,chart:{oneOf:[re,ie,ne,ae,oe,te]}},required:["query","chart"],additionalProperties:!1},ce={type:"object",properties:{position:{type:"object",properties:{col:{type:"number"},row:{type:"number"}},description:"Position of the tile in the grid.",required:["col","row"],additionalProperties:!1},size:{type:"object",properties:{cols:{type:"number"},rows:{type:"number"}},description:"Number of columns and rows the tile occupies.",required:["cols","rows"],additionalProperties:!1}},required:["position","size"],additionalProperties:!1},ue={type:"object",properties:{definition:le,layout:ce},required:["definition","layout"],additionalProperties:!1},je={type:"object",properties:{tiles:{type:"array",items:ue},tileHeight:{type:"number",description:"Height of each tile in pixels. Default: 170"},gridSize:{type:"object",properties:{cols:{type:"number"},rows:{type:"number"}},description:"Number of columns and rows in the grid.",required:["cols","rows"],additionalProperties:!1}},required:["tiles","gridSize"],additionalProperties:!1};var pe=(e=>(e.VALIDATING="VALIDATING",e.VALIDATING_HAS_DATA="VALIDATING_HAS_DATA",e.PENDING="PENDING",e.SUCCESS="SUCCESS",e.SUCCESS_HAS_DATA="SUCCESS_HAS_DATA",e.ERROR="ERROR",e.STALE_IF_ERROR="STALE_IF_ERROR",e))(pe||{});const $e=e=>{var t,r,o,i,s;return e?!!((t=Object.keys(e))!=null&&t.length||(r=e.data)!=null&&r.length||(i=(o=e.data)==null?void 0:o.data)!=null&&i.length||!((s=e.data)!=null&&s.data)&&typeof e.data=="object"&&Object.keys(e==null?void 0:e.data).length):!1};function Ve(e=n.ref({}),t,r,o=$e){const i=n.ref("PENDING");return n.watchEffect(()=>{const s=o(e.value);if(e.value&&s&&r.value){i.value="VALIDATING_HAS_DATA";return}if(e.value&&r.value){i.value="VALIDATING";return}if(e.value&&t.value){i.value="STALE_IF_ERROR";return}if(e.value===void 0&&!t.value){i.value="PENDING";return}if(e.value&&!t.value&&s){i.value="SUCCESS_HAS_DATA";return}if(e.value&&!t.value){i.value="SUCCESS";return}e.value===void 0&&t&&(i.value="ERROR")}),{state:i,swrvState:pe}}const ze={renderer:{noQueryBridge:"No query bridge provided. Unable to render dashboard."},queryDataProvider:{timeRangeExceeded:"The time range for this report is outside of your organization's data retention period"}};function Pe(){const e=B.createI18n("en-us",ze);return{i18n:e,i18nT:B.i18nTComponent(e)}}const de={useI18n:Pe},z=n.defineComponent({__name:"QueryDataProvider",props:{context:{},query:{},queryReady:{type:Boolean}},emits:["queryComplete"],setup(e,{emit:t}){const r=e,o=t,{i18n:i}=de.useI18n(),s=n.inject(U),a=()=>r.queryReady&&s?JSON.stringify([r.query,r.context]):null,l=new AbortController;n.onUnmounted(()=>{l.abort()});const{data:c,error:m,isValidating:f}=Be(a,async()=>{var E,O,x,L;try{const p=[];r.query.filters&&p.push(...r.query.filters),p.push(...r.context.filters);const P={...r.query,time_range:{...r.context.timeSpec,tz:r.context.tz},filters:p};return s==null?void 0:s.queryFn(P,l)}catch(p){y.value=((O=(E=p==null?void 0:p.response)==null?void 0:E.data)==null?void 0:O.message)==="Range not allowed for this tier"?i.t("queryDataProvider.timeRangeExceeded"):((L=(x=p==null?void 0:p.response)==null?void 0:x.data)==null?void 0:L.message)||(p==null?void 0:p.message)}finally{o("queryComplete")}},{refreshInterval:0,revalidateOnFocus:!1}),{state:u,swrvState:h}=Ve(c,m,f),y=n.ref(null),k=n.computed(()=>u.value===h.ERROR||!!y.value),g=n.computed(()=>!r.queryReady||u.value===h.PENDING);return(E,O)=>{const x=n.resolveComponent("KSkeleton"),L=n.resolveComponent("KEmptyState");return g.value||!n.unref(c)&&!k.value?(n.openBlock(),n.createBlock(x,{key:0,class:"chart-skeleton",type:"table"})):k.value?(n.openBlock(),n.createBlock(L,{key:1,"action-button-visible":!1,"data-testid":"chart-empty-state","icon-variant":"error"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.value),1)]),_:1})):n.unref(c)?n.renderSlot(E.$slots,"default",{key:2,data:n.unref(c)}):n.createCommentVNode("",!0)}}}),Ue={class:"analytics-chart"},Fe=n.defineComponent({__name:"SimpleChartRenderer",props:{query:{},context:{},queryReady:{type:Boolean},chartOptions:{},height:{}},setup(e){n.useCssVars(i=>({"8c62ff26":`${i.height}px`}));const t=e,r={[b.Gauge]:C.ChartTypesSimple.GAUGE},o=n.computed(()=>({...t.chartOptions,type:r[t.chartOptions.type]}));return(i,s)=>(n.openBlock(),n.createBlock(z,{context:i.context,query:i.query,"query-ready":i.queryReady},{default:n.withCtx(({data:a})=>[n.createElementVNode("div",Ue,[n.createVNode(n.unref(C.SimpleChart),{"chart-data":a,"chart-options":o.value,"synthetics-data-key":i.chartOptions.syntheticsDataKey},null,8,["chart-data","chart-options","synthetics-data-key"])])]),_:1},8,["context","query","query-ready"]))}}),v=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r},Ke=v(Fe,[["__scopeId","data-v-f0f6ed41"]]),Ge={class:"analytics-chart"},fe=v(n.defineComponent({__name:"BarChartRenderer",props:{query:{},context:{},queryReady:{type:Boolean},chartOptions:{},height:{}},setup(e){n.useCssVars(i=>({"1eed717c":`${i.height}px`}));const t=e,r={[b.HorizontalBar]:C.ChartTypes.HORIZONTAL_BAR,[b.VerticalBar]:C.ChartTypes.VERTICAL_BAR},o=n.computed(()=>({type:r[t.chartOptions.type],stacked:t.chartOptions.stacked,chartDatasetColors:t.chartOptions.chartDatasetColors}));return(i,s)=>(n.openBlock(),n.createBlock(z,{context:i.context,query:i.query,"query-ready":i.queryReady},{default:n.withCtx(({data:a})=>[n.createElementVNode("div",Ge,[n.createVNode(n.unref(C.AnalyticsChart),{"allow-csv-export":i.chartOptions.allowCsvExport,"chart-data":a,"chart-options":o.value,"chart-title":i.chartOptions.chartTitle,"legend-position":"bottom","show-annotations":!1,"synthetics-data-key":i.chartOptions.syntheticsDataKey,"tooltip-title":""},null,8,["allow-csv-export","chart-data","chart-options","chart-title","synthetics-data-key"])])]),_:1},8,["context","query","query-ready"]))}}),[["__scopeId","data-v-36598a1b"]]),He={class:"analytics-chart"},Me=v(n.defineComponent({__name:"TimeseriesChartRenderer",props:{query:{},context:{},queryReady:{type:Boolean},chartOptions:{},height:{}},setup(e){n.useCssVars(i=>({"24c2946a":`${i.height}px`}));const t=e,r={[b.TimeseriesLine]:C.ChartTypes.TIMESERIES_LINE},o=n.computed(()=>{const i=t.chartOptions.stacked??!1;return{type:r[t.chartOptions.type],fill:i,stacked:i,chartDatasetColors:t.chartOptions.chartDatasetColors}});return(i,s)=>(n.openBlock(),n.createBlock(z,{context:i.context,query:i.query,"query-ready":i.queryReady},{default:n.withCtx(({data:a})=>[n.createElementVNode("div",He,[n.createVNode(n.unref(C.AnalyticsChart),{"allow-csv-export":i.chartOptions.allowCsvExport,"chart-data":a,"chart-options":o.value,"chart-title":i.chartOptions.chartTitle,"legend-position":"bottom","synthetics-data-key":i.chartOptions.syntheticsDataKey,"tooltip-title":""},null,8,["allow-csv-export","chart-data","chart-options","chart-title","synthetics-data-key"])])]),_:1},8,["context","query","query-ready"]))}}),[["__scopeId","data-v-93ab34da"]]),Ye={class:"metric-card-tile-wrapper"},Ze=v(n.defineComponent({__name:"GoldenSignalsRenderer",props:{query:{},context:{},queryReady:{type:Boolean},chartOptions:{},height:{}},setup(e){const t=e,r=n.computed(()=>{const i=t.context.timeSpec;if(i.type==="absolute")return new j.Timeframe({key:"custom",timeframeText:"custom",display:"custom",startCustom:i.start,endCustom:i.end,timeframeLength:()=>0,defaultResponseGranularity:j.GranularityKeys.DAILY,dataGranularity:j.GranularityKeys.DAILY,isRelative:!1,allowedTiers:["free","plus","enterprise"]});const s=j.TimePeriods.get(i.time_range);if(!s)throw new Error("Unknown time range");return s}),o=n.computed(()=>({overrideTimeframe:r.value,tz:t.context.tz,additionalFilter:t.context.filters,longCardTitles:t.chartOptions.longCardTitles,description:t.chartOptions.description,hasTrendAccess:!0,refreshInterval:0}));return(i,s)=>(n.openBlock(),n.createElementBlock("div",Ye,[n.createVNode(n.unref(J.MetricsProviderInternal),n.normalizeProps(n.guardReactiveProps(o.value)),{default:n.withCtx(()=>[n.createVNode(n.unref(J.MetricsConsumer))]),_:1},16)]))}}),[["__scopeId","data-v-97fa928f"]]),ye="20px";var N=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(N||{});function We(){return{getAxiosInstance:(e={})=>{try{const t=n.inject("get-axios-instance",void 0);return typeof t=="function"?t(e):W.create({withCredentials:!0,timeout:3e4,...e})}catch(t){return console.warn("getAxiosInstance:",t.message||t),W.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var t;return((t=e==null?void 0:e.response)==null?void 0:t.headers["x-datadog-trace-id"])||""}}}function Je(){return{debounce:(e,t)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},t)}}}}function K(e={}){const{getAxiosInstance:t}=We();return{axiosInstance:t(e)}}const Qe={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},Xe={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},et={actions:{viewConfiguration:"View Configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",message:"Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",yaml:"YAML",json:"JSON"},errors:{edit:"The entity could not be edited at this time."}},tt={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},rt={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},nt={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},it={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},ot={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},at={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},st={global:Qe,deleteModal:Xe,baseForm:et,baseTable:tt,baseConfigCard:rt,filter:nt,debouncedFilter:it,errors:ot,toggleModal:at};function G(){const e=B.createI18n("en-us",st);return{i18n:e,i18nT:B.i18nTComponent(e)}}function he(){const e=(r,o)=>(o==null?void 0:o[r])??void 0,t=(r,o)=>{if(r.length!==o.length)return!1;const i=new Set([...r,...o]);for(const s of i){const a=r.filter(c=>c===s).length,l=o.filter(c=>c===s).length;if(a!==l)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,o,i)=>{if(i){if(Object.keys(r).length===Object.keys(o).length)for(const s in r)if(Array.isArray(r[s])&&Array.isArray(o[s])){if(t(r[s],o[s]))continue;return!1}else{if(r[s]===o[s])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(o)}catch{return!1}},sortAlpha:r=>(o,i)=>{let s=o[r]===void 0||o[r]===null?"":o[r],a=i[r]===void 0||i[r]===null?"":i[r];return Array.isArray(o[r])&&(s=o[r][0]),Array.isArray(i[r])&&(a=i[r][0]),s.localeCompare(a)},isValidUuid:r=>r?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(r):!1}}function lt(e,t,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:i}=K({headers:e.requestHeaders}),{i18n:{t:s}}=G(),{debounce:a}=Je(),l=a(async p=>{await L(p)},200),c=n.ref(!1),m=n.ref(""),f=n.ref(""),u=n.ref([]),h=n.ref([]),y=n.ref(void 0),k=n.unref(t);let g=`${e.apiBaseUrl}${k}`;e.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:E}=he(),O=async()=>{try{c.value=!0;const{data:p}=await i.get(`${g}?size=${r}`);p!=null&&p.next||(y.value=o.fetchedItemsKey in p?p[o.fetchedItemsKey]:[]),h.value=o.fetchedItemsKey in p?p[o.fetchedItemsKey]:[],u.value=h.value}catch{u.value=[],m.value=s("debouncedFilter.errors.fetch")}finally{c.value=!1}},x=n.ref(""),L=async p=>{var P,De,Re;if(x.value!==p)if(x.value=p||"",y.value===void 0)try{if(c.value=!0,m.value="",f.value="",e.app==="konnect"){let S=g+"";p&&(S+=`/${p}`);const{data:T}=await i.get(`${S}?size=${r}`);o.fetchedItemsKey in T?u.value=T[o.fetchedItemsKey]:T!=null&&T.id?u.value=[T]:u.value=[]}else if(p){const S=[];E(p)&&o.searchKeys.includes("id")?S.push((async()=>{const{data:w}=await i.get(`${g}/${p}`);return[w[o.fetchedItemsKey]??w]})()):S.push(...o.searchKeys.filter(w=>w!=="id").map(async w=>{const{data:A}=await i.get(`${g}?${w}=${p}`);return A[o.fetchedItemsKey]}));const T=await Promise.all(S),R=new Set;u.value=[],(P=T==null?void 0:T.forEach)==null||P.call(T,w=>{var A;(A=w==null?void 0:w.forEach)==null||A.call(w,Z=>{R.has(Z.id)||(R.add(Z.id),u.value.push(Z))})})}else u.value=h.value}catch(S){((De=S==null?void 0:S.response)==null?void 0:De.status)===404?f.value=s("debouncedFilter.errors.invalid"):(u.value=[],m.value=s("debouncedFilter.errors.fetch"))}finally{c.value=!1}else c.value=!0,f.value="",p?(u.value=(Re=y.value)==null?void 0:Re.filter(S=>{var T;let R=!1;for(const w of o.searchKeys){const A=typeof S[w]=="string"?(T=S[w])==null?void 0:T.toLowerCase():S[w];A!=null&&A.includes(p.toLowerCase())&&(R=!0)}return R}),(!u.value||!u.value.length)&&(f.value=s("debouncedFilter.errors.invalid"))):u.value=y.value,c.value=!1};return{loading:c,error:m,validationError:f,results:u,allRecords:y,loadItems:O,debouncedQueryChange:l}}function ct(e,t){const r=n.unref(t),o=n.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return o.value.search="",i=>`${o.value.href}/${i}`}function ut(){const{i18n:{t:e}}=G();return{getMessageFromError:t=>{var r,o,i,s;if(!t)return e("errors.unexpected");if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((o=t==null?void 0:t.response)!=null&&o.data){if(t.response.data.detail)return t.response.data.detail;if((i=t.response.data.details)!=null&&i.length)return t.response.data.details.map(a=>{let l=e("errors.unexpected");return a.messages&&typeof a.messages=="object"&&a.messages.length&&(l=a.messages.join(", ")),a.field?`${a.field} - ${l}`:l}).join("; ");if(t.response.data.message){const{message:a}=t.response.data;return Array.isArray(a)?(s=a[0])!=null&&s.constraints?Object.values(a[0].constraints)[0]:a[0]:a}if(typeof t.response.data=="string")return t.response.data;if(typeof t.response.data=="object")return Object.keys(t.response.data).map(a=>`${a} ${t.response.data[a]}`).join(", ")}return t.message||e("errors.unexpected")}}}function pt(e){const t=window.location.origin,r=t.endsWith("/")?t:`${t}/`;try{const o=e.join("/"),i=`${r}${o}`,s=e.some(a=>a.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(i)&&!s&&new URL(i))return`${r}${o}`;throw new Error("Invalid url")}catch(o){return console.warn("Failed to build valid URL:",o),""}}function me(e,t){const r=n.ref(n.unref(e)),o=n.ref(n.unref(t)),i=n.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),s=n.computed(()=>o.value.startsWith("/")?new URL(`${window.location.origin}${o.value}`):new URL(o.value));return a=>{const{page:l,pageSize:c,offset:m,sortColumnKey:f,sortColumnOrder:u,query:h}=a;try{let y=new URL(s.value.href);return i.value&&h?(y.search="",y=r.value.isExactMatch?new URL(`${y.href}/${h}/`):new URL(`${y.href}?filter[name][contains]=${h}`)):(i.value||new URLSearchParams(h).forEach((k,g)=>{y.searchParams.append(g,k)}),f&&y.searchParams.append("sort_by",f),u==="desc"&&y.searchParams.append("sort_desc","1"),y.searchParams.append("size",String(c))),m&&l!==1&&y.searchParams.append("offset",String(m)),y.href}catch(y){return console.error("RouteList(fetcher)",y),o.value}}}function dt(e,t,r="data"){var o;const i=n.unref(t),{axiosInstance:s}=K({...e.axiosRequestConfig,headers:{...(o=e.axiosRequestConfig)==null?void 0:o.headers,...e.requestHeaders}}),a=me(e,i),l=n.ref({status:N.Idle});return{fetcher:async c=>{var m;try{l.value={status:N.Loading};let f=a(c);f.includes("filter[name]")&&(f=`${f}&page[size]=${c.pageSize}&page[number]=${c.page}`);const u=await s.get(f);if(u.status>=400)throw u;const h=u.data,y=r&&r.replace(/[^\w-_]/gi,"");let k;h[y]&&Array.isArray(h[y])?k=h[y]:Array.isArray(h)?k=h:k=Object.keys(h).length?[h]:[];const g={data:k,total:k.length,...h.offset?{pagination:{offset:h.offset}}:null};return l.value={status:N.Idle,response:g},g}catch(f){const u={data:[],total:0};return c.query&&(((m=f.response)==null?void 0:m.status)===404||f.status===404)?(l.value={status:N.NoResults,response:u,error:f.response?f:{response:f}},u):(l.value={status:N.Error,response:u,error:f.response?f:{response:f}},u)}},fetcherState:l}}function ft(){const e=(r,o="_")=>r?r.split(o).map(i=>i.toLowerCase()==="id"?i.toUpperCase():i.charAt(0).toUpperCase()+i.substring(1)).join(" "):"",t=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(t,o=>o.toUpperCase()):"",convertKeyToTitle:e}}const ge=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,_e=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(ge);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},be=e=>e==="*"||e==="x"||e==="X",ke=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},yt=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],ht=(e,t)=>{if(be(e)||be(t))return 0;const[r,o]=yt(ke(e),ke(t));return r>o?1:r<o?-1:0},we=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const o=ht(e[r]||"0",t[r]||"0");if(o!==0)return o}return 0},mt=(e,t)=>{const r=_e(e),o=_e(t),i=r.pop(),s=o.pop(),a=we(r,o);return a!==0?a:i&&s?we(i.split("."),s.split(".")):i||s?i?-1:1:0},Se=(e,t,r)=>{gt(r);const o=mt(e,t);return Te[r].includes(o)},Te={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},Ce=Object.keys(Te),gt=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(Ce.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${Ce.join("|")}`)},_t=e=>typeof e=="string"&&/^[v\d]/.test(e)&&ge.test(e);function bt(e){const{gatewayInfo:t,supportedRange:r}=e;if(!t)return!0;const{edition:o,version:i}=t;if(!_t(i))return console.error("Invalid version"),!1;const s=r[o];if(!s)return!1;const[a,l]=s;return!(a&&Se(i,a,"<")||l&&Se(i,l,">"))}function kt(e){const t=n.ref(0),r=n.ref(0),o=n.ref(!1);return n.watch(e,i=>{i&&!o.value&&(t.value=i.offsetWidth,r.value=i.scrollWidth,o.value=!0)}),{isTruncated:n.computed(()=>t.value<r.value)}}const Ee={useAxios:K,useDebouncedFilter:lt,useDeleteUrlBuilder:ct,useErrors:ut,useExternalLinkCreator:pt,useFetcher:dt,useFetchUrlBuilder:me,useHelpers:he,useStringHelpers:ft,useI18n:G,useGatewayFeatureSupported:bt,useTruncationDetector:kt},wt=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r},St="#0044f4",Tt="16px";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ve(e){return typeof e>"u"||e===null}function Ct(e){return typeof e=="object"&&e!==null}function Et(e){return Array.isArray(e)?e:ve(e)?[]:[e]}function vt(e,t){var r,o,i,s;if(t)for(s=Object.keys(t),r=0,o=s.length;r<o;r+=1)i=s[r],e[i]=t[i];return e}function It(e,t){var r="",o;for(o=0;o<t;o+=1)r+=e;return r}function xt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var At=ve,Nt=Ct,qt=Et,Ot=It,Lt=xt,Dt=vt,H={isNothing:At,isObject:Nt,toArray:qt,repeat:Ot,isNegativeZero:Lt,extend:Dt};function Ie(e,t){var r="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
2
2
|
|
|
3
3
|
`+e.mark.snippet),o+" "+r):o}function D(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ie(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D.prototype.toString=function(e){return this.name+": "+Ie(this,e)};var I=D,Rt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Bt=["scalar","sequence","mapping"];function jt(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(o){t[String(o)]=r})}),t}function $t(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Rt.indexOf(r)===-1)throw new I('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=jt(t.styleAliases||null),Bt.indexOf(this.kind)===-1)throw new I('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var _=$t;function xe(e,t){var r=[];return e[t].forEach(function(o){var i=r.length;r.forEach(function(s,a){s.tag===o.tag&&s.kind===o.kind&&s.multi===o.multi&&(i=a)}),r[i]=o}),r}function Vt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function o(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(o);return e}function M(e){return this.extend(e)}M.prototype.extend=function(e){var t=[],r=[];if(e instanceof _)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new I("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(i){if(!(i instanceof _))throw new I("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new I("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new I("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof _))throw new I("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(M.prototype);return o.implicit=(this.implicit||[]).concat(t),o.explicit=(this.explicit||[]).concat(r),o.compiledImplicit=xe(o,"implicit"),o.compiledExplicit=xe(o,"explicit"),o.compiledTypeMap=Vt(o.compiledImplicit,o.compiledExplicit),o};var zt=M,Pt=new _("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Ut=new _("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Ft=new _("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Kt=new zt({explicit:[Pt,Ut,Ft]});function Gt(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Ht(){return null}function Mt(e){return e===null}var Yt=new _("tag:yaml.org,2002:null",{kind:"scalar",resolve:Gt,construct:Ht,predicate:Mt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Zt(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Wt(e){return e==="true"||e==="True"||e==="TRUE"}function Jt(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Qt=new _("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Zt,construct:Wt,predicate:Jt,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Xt(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function er(e){return 48<=e&&e<=55}function tr(e){return 48<=e&&e<=57}function rr(e){if(e===null)return!1;var t=e.length,r=0,o=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;o=!0}return o&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!Xt(e.charCodeAt(r)))return!1;o=!0}return o&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!er(e.charCodeAt(r)))return!1;o=!0}return o&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!tr(e.charCodeAt(r)))return!1;o=!0}return!(!o||i==="_")}function nr(e){var t=e,r=1,o;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),o=t[0],(o==="-"||o==="+")&&(o==="-"&&(r=-1),t=t.slice(1),o=t[0]),t==="0")return 0;if(o==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function ir(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!H.isNegativeZero(e)}var or=new _("tag:yaml.org,2002:int",{kind:"scalar",resolve:rr,construct:nr,predicate:ir,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ar=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function sr(e){return!(e===null||!ar.test(e)||e[e.length-1]==="_")}function lr(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var cr=/^[-+]?[0-9]+e/;function ur(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(H.isNegativeZero(e))return"-0.0";return r=e.toString(10),cr.test(r)?r.replace("e",".e"):r}function pr(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||H.isNegativeZero(e))}var dr=new _("tag:yaml.org,2002:float",{kind:"scalar",resolve:sr,construct:lr,predicate:pr,represent:ur,defaultStyle:"lowercase"}),fr=Kt.extend({implicit:[Yt,Qt,or,dr]}),yr=fr,Ae=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ne=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function hr(e){return e===null?!1:Ae.exec(e)!==null||Ne.exec(e)!==null}function mr(e){var t,r,o,i,s,a,l,c=0,m=null,f,u,h;if(t=Ae.exec(e),t===null&&(t=Ne.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],o=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,o,i));if(s=+t[4],a=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],u=+(t[11]||0),m=(f*60+u)*6e4,t[9]==="-"&&(m=-m)),h=new Date(Date.UTC(r,o,i,s,a,l,c)),m&&h.setTime(h.getTime()-m),h}function gr(e){return e.toISOString()}var _r=new _("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:hr,construct:mr,instanceOf:Date,represent:gr});function br(e){return e==="<<"||e===null}var kr=new _("tag:yaml.org,2002:merge",{kind:"scalar",resolve:br}),Y=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
4
4
|
\r`;function wr(e){if(e===null)return!1;var t,r,o=0,i=e.length,s=Y;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;o+=6}return o%8===0}function Sr(e){var t,r,o=e.replace(/[\r\n=]/g,""),i=o.length,s=Y,a=0,l=[];for(t=0;t<i;t++)t%4===0&&t&&(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)),a=a<<6|s.indexOf(o.charAt(t));return r=i%4*6,r===0?(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)):r===18?(l.push(a>>10&255),l.push(a>>2&255)):r===12&&l.push(a>>4&255),new Uint8Array(l)}function Tr(e){var t="",r=0,o,i,s=e.length,a=Y;for(o=0;o<s;o++)o%3===0&&o&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[o];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}function Cr(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Er=new _("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wr,construct:Sr,predicate:Cr,represent:Tr}),vr=Object.prototype.hasOwnProperty,Ir=Object.prototype.toString;function xr(e){if(e===null)return!0;var t=[],r,o,i,s,a,l=e;for(r=0,o=l.length;r<o;r+=1){if(i=l[r],a=!1,Ir.call(i)!=="[object Object]")return!1;for(s in i)if(vr.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function Ar(e){return e!==null?e:[]}var Nr=new _("tag:yaml.org,2002:omap",{kind:"sequence",resolve:xr,construct:Ar}),qr=Object.prototype.toString;function Or(e){if(e===null)return!0;var t,r,o,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(o=a[t],qr.call(o)!=="[object Object]"||(i=Object.keys(o),i.length!==1))return!1;s[t]=[i[0],o[i[0]]]}return!0}function Lr(e){if(e===null)return[];var t,r,o,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)o=a[t],i=Object.keys(o),s[t]=[i[0],o[i[0]]];return s}var Dr=new _("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Or,construct:Lr}),Rr=Object.prototype.hasOwnProperty;function Br(e){if(e===null)return!0;var t,r=e;for(t in r)if(Rr.call(r,t)&&r[t]!==null)return!1;return!0}function jr(e){return e!==null?e:{}}var $r=new _("tag:yaml.org,2002:set",{kind:"mapping",resolve:Br,construct:jr});yr.extend({implicit:[_r,kr],explicit:[Er,Nr,Dr,$r]});function qe(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.locked[data-v-d8d2d0cd]{cursor:move}.tooltip-container[data-v-d8d2d0cd]{background-color:#fff;border-radius:3px;box-shadow:0 5px 15px #0000001f,0 5px 10px #0000003d;max-width:425px;min-width:250px;position:absolute;transition:all .2s cubic-bezier(.25,.8,.25,1);z-index:999}.tooltip-container .tooltip-title[data-v-d8d2d0cd]{border-bottom:1px solid rgba(0,0,0,.1);display:flex;flex-direction:column;margin:8px;min-height:24px;padding-bottom:8px}.tooltip-container .tooltip-title .title[data-v-d8d2d0cd]{font-size:16px;font-weight:600}.tooltip-container .tooltip-title .subtitle[data-v-d8d2d0cd]{font-size:14px;margin-top:8px}.tooltip-container .tooltip-title .drag-icon[data-v-d8d2d0cd]{margin-top:6px;position:absolute;right:0;top:0}ul.tooltip[data-v-d8d2d0cd]{list-style:none;margin:0;max-height:300px;min-width:250px;overflow-y:auto;padding-left:0;-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-width:auto}ul.tooltip[data-v-d8d2d0cd] ::-webkit-scrollbar{width:8px}ul.tooltip[data-v-d8d2d0cd] ::-webkit-scrollbar-track{background:transparent}ul.tooltip[data-v-d8d2d0cd] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;border-radius:10px}ul.tooltip li[data-v-d8d2d0cd]{display:flex;font-size:14px;line-height:1;margin:8px}ul.tooltip li[data-v-d8d2d0cd]:last-child{padding-bottom:8px}ul.tooltip .display-label[data-v-d8d2d0cd]{max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ul.tooltip .display-value[data-v-d8d2d0cd]{margin-left:auto;padding-left:8px;white-space:nowrap}ul.tooltip .tooltip-legend[data-v-d8d2d0cd]{display:inline-flex;flex-direction:row;height:15px;margin-right:8px;width:3px}.legend-container[data-v-554b4d9c]{display:flex;margin:6px 0 0;max-height:inherit;overflow-x:hidden;overflow-y:auto;padding-left:0;-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-width:auto}.legend-container[data-v-554b4d9c] ::-webkit-scrollbar{width:8px}.legend-container[data-v-554b4d9c] ::-webkit-scrollbar-track{background:transparent}.legend-container[data-v-554b4d9c] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;border-radius:10px}.legend-container.vertical[data-v-554b4d9c]{flex-direction:column;justify-content:flex-start;max-height:90%;max-width:15%;min-width:10%;padding-left:12px;row-gap:16px}.legend-container.vertical .truncate-label[data-v-554b4d9c]{max-width:12ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-container.vertical li .legend[data-v-554b4d9c]{margin-top:4px}@media (max-width: 767px){.legend-container.vertical[data-v-554b4d9c]{column-gap:12px;display:grid;grid-template-columns:repeat(auto-fit,12ch);height:40px;justify-content:center;max-width:99%!important}.legend-container.vertical .sub-label[data-v-554b4d9c]{display:none}}.legend-container.horizontal[data-v-554b4d9c]{column-gap:12px;display:grid;height:var(--1c6c065c);justify-content:center;width:99%}.legend-container.horizontal .truncate-label[data-v-554b4d9c]{max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-container.horizontal li[data-v-554b4d9c]{align-items:center;margin-top:0}.legend-container.horizontal li .label[data-v-554b4d9c]{line-height:24px;white-space:nowrap}.legend-container li[data-v-554b4d9c]{align-items:start;cursor:pointer;display:flex;line-height:1}.legend-container li .legend[data-v-554b4d9c]{flex:0 0 14px;height:3px;margin-right:6px}.legend-container li .label[data-v-554b4d9c]{font-size:12px}.legend-container li .sub-label[data-v-554b4d9c]{font-size:12px;line-height:16px;word-break:none}.legend-container li .strike-through[data-v-554b4d9c]{text-decoration:line-through}.chart-parent[data-v-fdeee739]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-fdeee739]{flex-direction:column}.chart-parent.column .chart-container[data-v-fdeee739]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-fdeee739]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-fdeee739]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-fdeee739]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-fdeee739]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-fdeee739]{flex:1 1 auto;position:relative}.chart-container[data-v-fdeee739]{overflow:auto;-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-width:auto}.chart-container[data-v-fdeee739] ::-webkit-scrollbar{width:8px}.chart-container[data-v-fdeee739] ::-webkit-scrollbar-track{background:transparent}.chart-container[data-v-fdeee739] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;border-radius:10px}.chart-container .chart-body[data-v-fdeee739]{height:100%}.chart-container[data-v-fdeee739]::-webkit-scrollbar-track{background-color:#fff;border-radius:10px}.chart-container[data-v-fdeee739]::-webkit-scrollbar{width:10px}.chart-container[data-v-fdeee739]::-webkit-scrollbar-thumb{background-color:#e0e4ea;border-radius:10px}.axis[data-v-fdeee739]{left:0;pointer-events:none;position:absolute;top:0;z-index:99}.axis-tooltip[data-v-fdeee739]{background-color:#3a3f51;color:#fff;padding:4px 8px;position:absolute;width:max-content;z-index:100}.tooltip-boundary[data-v-fdeee739]{height:100%;left:0;position:relative;top:0;width:100%}.chart-parent[data-v-b3095003]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-b3095003]{flex-direction:column}.chart-parent.column .chart-container[data-v-b3095003]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-b3095003]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-b3095003]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-b3095003]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-b3095003]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-b3095003]{flex:1 1 auto;position:relative}.chart-parent[data-v-3abbf084]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-3abbf084]{flex-direction:column}.chart-parent.column .chart-container[data-v-3abbf084]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-3abbf084]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-3abbf084]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-3abbf084]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-3abbf084]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-3abbf084]{flex:1 1 auto;position:relative}.kong-ui-public-csv-export-modal .modal-container{min-width:580px}.kong-ui-public-csv-export-modal .modal-container .selected-range{font-size:14px}.kong-ui-public-csv-export-modal .modal-container .text-muted{color:#00000073!important;font-size:14px}.kong-ui-public-csv-export-modal .modal-container .vitals-table{font-size:14px;margin-bottom:20px;margin-top:6px;width:100%}.kong-ui-public-csv-export-modal .modal-container .k-table thead{border-top:1px solid #e0e4ea;height:auto}.kong-ui-public-csv-export-modal .modal-container .modal-footer .vitals-report-export-button{display:inline-flex}.analytics-chart-shell[data-v-dcb1de1f],.simple-chart-shell[data-v-dcb1de1f]{border-radius:4px;display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-dcb1de1f],.simple-chart-shell .chart-empty-state[data-v-dcb1de1f]{display:flex;flex-direction:column;height:100%;justify-content:center}.analytics-chart-shell[data-v-dcb1de1f]{height:100%;width:100%}.analytics-chart-shell .analytics-chart-parent[data-v-dcb1de1f]{height:inherit;width:inherit}.analytics-chart-shell .chart-empty-state[data-v-dcb1de1f]{padding:20px 0 16px}.analytics-chart-shell .chart-header[data-v-dcb1de1f]{align-items:center;display:flex;justify-content:flex-start;padding-bottom:16px}.analytics-chart-shell .chart-header .chart-header-icons-wrapper[data-v-dcb1de1f]{display:flex;justify-content:end}.analytics-chart-shell .chart-header .chart-export-button[data-v-dcb1de1f]{display:flex;margin-left:auto;margin-right:0}.analytics-chart-shell .chart-title[data-v-dcb1de1f]{font-size:16px;font-weight:600}.analytics-chart-shell .tooltip[data-v-dcb1de1f]{display:flex;margin-left:12px;margin-top:2px}.chart-parent[data-v-5871cb7a]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-5871cb7a]{flex-direction:column}.chart-parent.column .chart-container[data-v-5871cb7a]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-5871cb7a]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-5871cb7a]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-5871cb7a]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-5871cb7a]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-5871cb7a]{flex:1 1 auto;position:relative}.chart-parent[data-v-5871cb7a]{height:auto;margin:0;padding:0;width:auto}.chart-parent .chart-container[data-v-5871cb7a]{margin:0;max-height:100px;max-width:100px;padding:0}.chart-parent .chart-totals-flex[data-v-5871cb7a]{align-items:center;display:flex;flex-direction:column;height:100px;justify-content:center;padding:24px 0 0;position:absolute;width:100px;z-index:2}.chart-parent .chart-totals-flex .metric-large[data-v-5871cb7a]{font-size:20px;font-weight:500;line-height:28px}.chart-parent .chart-totals-flex .metric-small[data-v-5871cb7a]{color:#6c7489;font-size:10px;font-weight:400;line-height:12px}.analytics-chart-shell[data-v-cb92de46],.simple-chart-shell[data-v-cb92de46]{border-radius:4px;display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-cb92de46],.simple-chart-shell .chart-empty-state[data-v-cb92de46]{display:flex;flex-direction:column;height:100%;justify-content:center}.simple-chart-shell[data-v-cb92de46]{margin:0;padding:0}.simple-chart-shell .chart-empty-state[data-v-cb92de46]{display:flex;flex-direction:column;height:100px;justify-content:center;width:100px}.simple-chart-shell .chart-empty-state[data-v-cb92de46] .empty-state-title{font-size:12px;line-height:16px;margin:0}.kong-ui-public-top-n-table[data-v-840224c1]{border:none!important;height:100%;padding:0!important}.kong-ui-public-top-n-table .top-n-card-title[data-v-840224c1]{font-size:16px}.kong-ui-public-top-n-table .top-n-card-description[data-v-840224c1]{color:#6c7489;font-size:12px;text-align:right}.kong-ui-public-top-n-table[data-v-840224c1] .k-card-actions{align-self:baseline;display:flex;line-height:22px}.kong-ui-public-top-n-table[data-v-840224c1] .card-content{overflow-y:auto;-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-width:auto}.kong-ui-public-top-n-table[data-v-840224c1] .card-content ::-webkit-scrollbar{width:8px}.kong-ui-public-top-n-table[data-v-840224c1] .card-content ::-webkit-scrollbar-track{background:transparent}.kong-ui-public-top-n-table[data-v-840224c1] .card-content ::-webkit-scrollbar-thumb{background-color:#e0e4ea;border-radius:10px}.kong-ui-public-top-n-table .top-n-table[data-v-840224c1]{display:flex;flex-direction:column;max-height:100%;width:100%}.kong-ui-public-top-n-table .top-n-table .table-headings[data-v-840224c1]{flex-shrink:0;font-size:14px;font-weight:600;line-height:24px}.kong-ui-public-top-n-table .top-n-table .table-row[data-v-840224c1]{align-self:stretch;border-bottom:1px solid #e0e4ea;display:flex;justify-content:space-between}.kong-ui-public-top-n-table .top-n-table .table-row[data-v-840224c1]:last-of-type{border-bottom:none}.kong-ui-public-top-n-table .top-n-table .column-1[data-v-840224c1]{padding:0 24px 12px 0}.kong-ui-public-top-n-table .top-n-table .column-2[data-v-840224c1]{flex:1;max-width:110px;padding:0 0 12px}.kong-ui-public-top-n-table .top-n-table .table-body[data-v-840224c1]{overflow-y:auto}.kong-ui-public-top-n-table .top-n-table .table-body .table-row[data-v-840224c1]:first-of-type{border-top:1px solid #e0e4ea}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-840224c1],.kong-ui-public-top-n-table .top-n-table .table-body .column-2[data-v-840224c1]{padding-top:12px}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-840224c1]{color:#3a3f51;font-size:14px}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-840224c1] a{color:#0044f4;font-weight:700;text-decoration:none}.kong-ui-public-top-n-table.kong-card.border{border-radius:4px;padding:20px}.kong-ui-public-top-n-table.kong-card.border .k-card-header{align-items:baseline;margin-bottom:0!important}.kong-ui-public-top-n-table.kong-card.border .k-card-header .k-card-title{margin-bottom:16px}.kong-ui-public-top-n-table.kong-card.border .k-card-header .k-card-title h4{font-size:16px;font-weight:600}.metricscard-tooltip,.trafficcard.active .metricscard-tooltip{pointer-events:all}.metricscard[data-v-0c46234f]{display:flex;flex-direction:column;width:100%}@media (max-width: 767px){.metricscard[data-v-0c46234f]{max-width:none;width:auto}}@media (min-width: 768px){.metricscard[data-v-0c46234f]{height:100%;justify-content:space-evenly}}.metricscard[data-v-0c46234f]:hover{border:none;text-decoration:none}.metricscard-title[data-v-0c46234f]{align-items:center;color:#000933;color:var(--kong-ui-metric-card-title, #000933);display:flex;flex-direction:row;font-size:14px;font-weight:500}.metricscard-title.sm[data-v-0c46234f]{font-size:12px}.metricscard-description[data-v-0c46234f]{color:#afb7c5;color:var(--kong-ui-metric-card-value, #afb7c5);font-size:12px;line-height:16px;margin-top:10px}.metricscard-icon[data-v-0c46234f]{margin-right:6px}.metricscard-value[data-v-0c46234f]{color:#000933;color:var(--kong-ui-metric-card-value, #000933);display:flex;flex-direction:row;font-weight:600;justify-content:space-between;line-height:32px}.metricscard-value.sm[data-v-0c46234f]{line-height:24px}.metricscard-valuetrend[data-v-0c46234f]{display:flex;flex-direction:column;row-gap:12px}.metricscard-valuetrend.is-compact[data-v-0c46234f]{align-items:center;flex-direction:row!important;justify-content:space-between;margin-top:0}.metricscard-trend[data-v-0c46234f]{align-items:center;column-gap:8px;display:flex}.metricscard-trend-change[data-v-0c46234f]{align-items:center;border-radius:4px;display:flex;flex-direction:row;font-size:12px;font-weight:600;padding:4px 8px}.metricscard-trend-change .kui-icon[data-v-0c46234f]{margin-right:4px}.metricscard-trend-change.positive[data-v-0c46234f]{background-color:#ecfffb;background-color:var(--kong-ui-metric-card-trend-bg-positive, #ecfffb);color:#007d60;color:var(--kong-ui-metric-card-trend-positive, #007d60)}.metricscard-trend-change.negative[data-v-0c46234f]{background-color:#ffe5e5;background-color:var(--kong-ui-metric-card-trend-bg-negative, #ffe5e5);color:#ad000e;color:var(--kong-ui-metric-card-trend-negative, #ad000e)}.metricscard-trend-change.neutral[data-v-0c46234f]{background-color:#e0e4ea;background-color:var(--kong-ui-metric-card-trend-bg-neutral, #e0e4ea);color:#52596e;color:var(--kong-ui-metric-card-trend-neutral, #52596e)}.metricscard-trend-range[data-v-0c46234f]{color:#000933;font-size:12px}.metricscard-tooltip[data-v-0c46234f]{display:inline-flex;margin:auto 0 auto 4px;vertical-align:middle}.metricscard-error[data-v-0c46234f]{align-items:center;color:#3a3f51;display:flex;flex-direction:row;font-size:12px;margin-top:8px}.metricscard-error .kong-icon-warning[data-v-0c46234f]{margin-right:12px}.metricscard.active .metricscard-tooltip[data-v-0c46234f]{pointer-events:all}.loading-tabs[data-v-f7eb9c40]{display:flex;flex-direction:column}.loading-tabs-large[data-v-f7eb9c40]{padding:4px;row-gap:12px;width:240px}.loading-tabs-small[data-v-f7eb9c40]{padding:2px;row-gap:8px;width:120px}.loading-tabs-small .box[data-v-f7eb9c40]{height:12px}@media (max-width: 767px){.loading-tabs[data-v-f7eb9c40]{width:auto}}.kong-ui-public-metric-card-container[data-v-80b51a84]{background-color:transparent;background-color:var(--kong-ui-metric-card-background, transparent);display:flex;flex-direction:row;justify-content:space-between;width:100%;column-gap:24px;row-gap:16px}@media (max-width: 767px){.kong-ui-public-metric-card-container[data-v-80b51a84]{column-gap:16px;row-gap:16px;flex-direction:column}}.kong-ui-public-metric-card-container.sm[data-v-80b51a84]{column-gap:0;row-gap:0}.kong-ui-public-metric-card-container .error-display[data-v-80b51a84]{align-items:center;display:flex;justify-content:center;margin:auto}.kong-ui-public-metric-card-container .error-display-icon[data-v-80b51a84]{display:flex}.kong-ui-public-metric-card-container .error-display-message[data-v-80b51a84]{color:#6c7489;font-size:14px;margin-left:12px}.analytics-chart[data-v-f0f6ed41]{height:var(--8c62ff26)}.analytics-chart[data-v-36598a1b]{height:var(--1eed717c)}.analytics-chart[data-v-93ab34da]{height:var(--24c2946a)}@media (min-width: 767px){.metric-card-tile-wrapper[data-v-52746db6]{align-items:center;display:flex;height:100%}}.metric-card-tile-wrapper[data-v-52746db6] .kong-ui-public-metric-card-container{height:100%}@media (min-width: 767px){.metric-card-tile-wrapper[data-v-52746db6] .kong-ui-public-metric-card-container .metricscard:not(:last-of-type){border-right:1px solid #e0e4ea}}.metric-card-tile-wrapper[data-v-52746db6] .kong-ui-public-metric-card-container .metricscard .metricscard-title.lg{font-size:16px;font-weight:600}.tile-boundary[data-v-3d6e352f]{height:var(--a16bb866)}.kong-ui-public-grid-layout[data-v-371c2765]{display:grid;gap:20px;grid-template-columns:repeat(var(--1490bbaa),1fr);grid-template-rows:repeat(var(--14978e90),var(--70cb8937));width:100%}@media (max-width: 768px){.kong-ui-public-grid-layout[data-v-371c2765]{display:flex;flex-direction:column}.kong-ui-public-grid-layout .grid-cell[data-v-371c2765]{height:auto!important;left:auto!important;position:relative;top:auto!important;transform:none!important;width:auto!important}.kong-ui-public-grid-layout .grid-cell[data-v-371c2765]:not(:first-child){margin-top:20px}.kong-ui-public-grid-layout .empty-cell[data-v-371c2765]{display:none}}.kong-ui-public-dashboard-renderer .tile-container[data-v-1af70010]{border:1px solid #e0e4ea;border-radius:4px;height:100%;padding:20px}
|
|
1
|
+
.locked[data-v-d8d2d0cd]{cursor:move}.tooltip-container[data-v-d8d2d0cd]{background-color:#fff;border-radius:3px;box-shadow:0 5px 15px #0000001f,0 5px 10px #0000003d;max-width:425px;min-width:250px;position:absolute;transition:all .2s cubic-bezier(.25,.8,.25,1);z-index:999}.tooltip-container .tooltip-title[data-v-d8d2d0cd]{border-bottom:1px solid rgba(0,0,0,.1);display:flex;flex-direction:column;margin:8px;min-height:24px;padding-bottom:8px}.tooltip-container .tooltip-title .title[data-v-d8d2d0cd]{font-size:16px;font-weight:600}.tooltip-container .tooltip-title .subtitle[data-v-d8d2d0cd]{font-size:14px;margin-top:8px}.tooltip-container .tooltip-title .drag-icon[data-v-d8d2d0cd]{margin-top:6px;position:absolute;right:0;top:0}ul.tooltip[data-v-d8d2d0cd]{list-style:none;margin:0;max-height:300px;min-width:250px;overflow-y:auto;padding-left:0;-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-width:auto}ul.tooltip[data-v-d8d2d0cd] ::-webkit-scrollbar{width:8px}ul.tooltip[data-v-d8d2d0cd] ::-webkit-scrollbar-track{background:transparent}ul.tooltip[data-v-d8d2d0cd] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;border-radius:10px}ul.tooltip li[data-v-d8d2d0cd]{display:flex;font-size:14px;line-height:1;margin:8px}ul.tooltip li[data-v-d8d2d0cd]:last-child{padding-bottom:8px}ul.tooltip .display-label[data-v-d8d2d0cd]{max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ul.tooltip .display-value[data-v-d8d2d0cd]{margin-left:auto;padding-left:8px;white-space:nowrap}ul.tooltip .tooltip-legend[data-v-d8d2d0cd]{display:inline-flex;flex-direction:row;height:15px;margin-right:8px;width:3px}.legend-container[data-v-554b4d9c]{display:flex;margin:6px 0 0;max-height:inherit;overflow-x:hidden;overflow-y:auto;padding-left:0;-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-width:auto}.legend-container[data-v-554b4d9c] ::-webkit-scrollbar{width:8px}.legend-container[data-v-554b4d9c] ::-webkit-scrollbar-track{background:transparent}.legend-container[data-v-554b4d9c] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;border-radius:10px}.legend-container.vertical[data-v-554b4d9c]{flex-direction:column;justify-content:flex-start;max-height:90%;max-width:15%;min-width:10%;padding-left:12px;row-gap:16px}.legend-container.vertical .truncate-label[data-v-554b4d9c]{max-width:12ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-container.vertical li .legend[data-v-554b4d9c]{margin-top:4px}@media (max-width: 767px){.legend-container.vertical[data-v-554b4d9c]{column-gap:12px;display:grid;grid-template-columns:repeat(auto-fit,12ch);height:40px;justify-content:center;max-width:99%!important}.legend-container.vertical .sub-label[data-v-554b4d9c]{display:none}}.legend-container.horizontal[data-v-554b4d9c]{column-gap:12px;display:grid;height:var(--1c6c065c);justify-content:center;width:99%}.legend-container.horizontal .truncate-label[data-v-554b4d9c]{max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-container.horizontal li[data-v-554b4d9c]{align-items:center;margin-top:0}.legend-container.horizontal li .label[data-v-554b4d9c]{line-height:24px;white-space:nowrap}.legend-container li[data-v-554b4d9c]{align-items:start;cursor:pointer;display:flex;line-height:1}.legend-container li .legend[data-v-554b4d9c]{flex:0 0 14px;height:3px;margin-right:6px}.legend-container li .label[data-v-554b4d9c]{font-size:12px}.legend-container li .sub-label[data-v-554b4d9c]{font-size:12px;line-height:16px;word-break:none}.legend-container li .strike-through[data-v-554b4d9c]{text-decoration:line-through}.chart-parent[data-v-fdeee739]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-fdeee739]{flex-direction:column}.chart-parent.column .chart-container[data-v-fdeee739]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-fdeee739]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-fdeee739]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-fdeee739]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-fdeee739]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-fdeee739]{flex:1 1 auto;position:relative}.chart-container[data-v-fdeee739]{overflow:auto;-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-width:auto}.chart-container[data-v-fdeee739] ::-webkit-scrollbar{width:8px}.chart-container[data-v-fdeee739] ::-webkit-scrollbar-track{background:transparent}.chart-container[data-v-fdeee739] ::-webkit-scrollbar-thumb{background-color:#e0e4ea;border-radius:10px}.chart-container .chart-body[data-v-fdeee739]{height:100%}.chart-container[data-v-fdeee739]::-webkit-scrollbar-track{background-color:#fff;border-radius:10px}.chart-container[data-v-fdeee739]::-webkit-scrollbar{width:10px}.chart-container[data-v-fdeee739]::-webkit-scrollbar-thumb{background-color:#e0e4ea;border-radius:10px}.axis[data-v-fdeee739]{left:0;pointer-events:none;position:absolute;top:0;z-index:99}.axis-tooltip[data-v-fdeee739]{background-color:#3a3f51;color:#fff;padding:4px 8px;position:absolute;width:max-content;z-index:100}.tooltip-boundary[data-v-fdeee739]{height:100%;left:0;position:relative;top:0;width:100%}.chart-parent[data-v-b3095003]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-b3095003]{flex-direction:column}.chart-parent.column .chart-container[data-v-b3095003]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-b3095003]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-b3095003]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-b3095003]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-b3095003]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-b3095003]{flex:1 1 auto;position:relative}.chart-parent[data-v-3abbf084]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-3abbf084]{flex-direction:column}.chart-parent.column .chart-container[data-v-3abbf084]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-3abbf084]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-3abbf084]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-3abbf084]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-3abbf084]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-3abbf084]{flex:1 1 auto;position:relative}.kong-ui-public-csv-export-modal .modal-container{min-width:580px}.kong-ui-public-csv-export-modal .modal-container .selected-range{font-size:14px}.kong-ui-public-csv-export-modal .modal-container .text-muted{color:#00000073!important;font-size:14px}.kong-ui-public-csv-export-modal .modal-container .vitals-table{font-size:14px;margin-bottom:20px;margin-top:6px;width:100%}.kong-ui-public-csv-export-modal .modal-container .k-table thead{border-top:1px solid #e0e4ea;height:auto}.kong-ui-public-csv-export-modal .modal-container .modal-footer .vitals-report-export-button{display:inline-flex}.analytics-chart-shell[data-v-dcb1de1f],.simple-chart-shell[data-v-dcb1de1f]{border-radius:4px;display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-dcb1de1f],.simple-chart-shell .chart-empty-state[data-v-dcb1de1f]{display:flex;flex-direction:column;height:100%;justify-content:center}.analytics-chart-shell[data-v-dcb1de1f]{height:100%;width:100%}.analytics-chart-shell .analytics-chart-parent[data-v-dcb1de1f]{height:inherit;width:inherit}.analytics-chart-shell .chart-empty-state[data-v-dcb1de1f]{padding:20px 0 16px}.analytics-chart-shell .chart-header[data-v-dcb1de1f]{align-items:center;display:flex;justify-content:flex-start;padding-bottom:16px}.analytics-chart-shell .chart-header .chart-header-icons-wrapper[data-v-dcb1de1f]{display:flex;justify-content:end}.analytics-chart-shell .chart-header .chart-export-button[data-v-dcb1de1f]{display:flex;margin-left:auto;margin-right:0}.analytics-chart-shell .chart-title[data-v-dcb1de1f]{font-size:16px;font-weight:600}.analytics-chart-shell .tooltip[data-v-dcb1de1f]{display:flex;margin-left:12px;margin-top:2px}.chart-parent[data-v-5871cb7a]{align-items:center;display:flex;height:inherit;justify-content:space-evenly;position:relative;width:inherit}.chart-parent.column[data-v-5871cb7a]{flex-direction:column}.chart-parent.column .chart-container[data-v-5871cb7a]{max-height:calc(100% - 48px);width:100%}.chart-parent.legend-row[data-v-5871cb7a]{flex-direction:row}.chart-parent.legend-row .chart-container[data-v-5871cb7a]{height:100%;width:90%}@media (max-width: 767px){.chart-parent.legend-row .chart-container[data-v-5871cb7a]{max-height:calc(100% - 48px)!important;width:100%!important}}@media (max-width: 767px){.chart-parent.legend-row[data-v-5871cb7a]{display:flex;flex-wrap:wrap}}.chart-parent .chart-container[data-v-5871cb7a]{flex:1 1 auto;position:relative}.chart-parent[data-v-5871cb7a]{height:auto;margin:0;padding:0;width:auto}.chart-parent .chart-container[data-v-5871cb7a]{margin:0;max-height:100px;max-width:100px;padding:0}.chart-parent .chart-totals-flex[data-v-5871cb7a]{align-items:center;display:flex;flex-direction:column;height:100px;justify-content:center;padding:24px 0 0;position:absolute;width:100px;z-index:2}.chart-parent .chart-totals-flex .metric-large[data-v-5871cb7a]{font-size:20px;font-weight:500;line-height:28px}.chart-parent .chart-totals-flex .metric-small[data-v-5871cb7a]{color:#6c7489;font-size:10px;font-weight:400;line-height:12px}.analytics-chart-shell[data-v-cb92de46],.simple-chart-shell[data-v-cb92de46]{border-radius:4px;display:flex;flex-direction:column}.analytics-chart-shell .chart-empty-state[data-v-cb92de46],.simple-chart-shell .chart-empty-state[data-v-cb92de46]{display:flex;flex-direction:column;height:100%;justify-content:center}.simple-chart-shell[data-v-cb92de46]{margin:0;padding:0}.simple-chart-shell .chart-empty-state[data-v-cb92de46]{display:flex;flex-direction:column;height:100px;justify-content:center;width:100px}.simple-chart-shell .chart-empty-state[data-v-cb92de46] .empty-state-title{font-size:12px;line-height:16px;margin:0}.kong-ui-public-top-n-table[data-v-840224c1]{border:none!important;height:100%;padding:0!important}.kong-ui-public-top-n-table .top-n-card-title[data-v-840224c1]{font-size:16px}.kong-ui-public-top-n-table .top-n-card-description[data-v-840224c1]{color:#6c7489;font-size:12px;text-align:right}.kong-ui-public-top-n-table[data-v-840224c1] .k-card-actions{align-self:baseline;display:flex;line-height:22px}.kong-ui-public-top-n-table[data-v-840224c1] .card-content{overflow-y:auto;-ms-overflow-style:thin;scrollbar-color:#e0e4ea transparent;scrollbar-width:auto}.kong-ui-public-top-n-table[data-v-840224c1] .card-content ::-webkit-scrollbar{width:8px}.kong-ui-public-top-n-table[data-v-840224c1] .card-content ::-webkit-scrollbar-track{background:transparent}.kong-ui-public-top-n-table[data-v-840224c1] .card-content ::-webkit-scrollbar-thumb{background-color:#e0e4ea;border-radius:10px}.kong-ui-public-top-n-table .top-n-table[data-v-840224c1]{display:flex;flex-direction:column;max-height:100%;width:100%}.kong-ui-public-top-n-table .top-n-table .table-headings[data-v-840224c1]{flex-shrink:0;font-size:14px;font-weight:600;line-height:24px}.kong-ui-public-top-n-table .top-n-table .table-row[data-v-840224c1]{align-self:stretch;border-bottom:1px solid #e0e4ea;display:flex;justify-content:space-between}.kong-ui-public-top-n-table .top-n-table .table-row[data-v-840224c1]:last-of-type{border-bottom:none}.kong-ui-public-top-n-table .top-n-table .column-1[data-v-840224c1]{padding:0 24px 12px 0}.kong-ui-public-top-n-table .top-n-table .column-2[data-v-840224c1]{flex:1;max-width:110px;padding:0 0 12px}.kong-ui-public-top-n-table .top-n-table .table-body[data-v-840224c1]{overflow-y:auto}.kong-ui-public-top-n-table .top-n-table .table-body .table-row[data-v-840224c1]:first-of-type{border-top:1px solid #e0e4ea}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-840224c1],.kong-ui-public-top-n-table .top-n-table .table-body .column-2[data-v-840224c1]{padding-top:12px}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-840224c1]{color:#3a3f51;font-size:14px}.kong-ui-public-top-n-table .top-n-table .table-body .column-1[data-v-840224c1] a{color:#0044f4;font-weight:700;text-decoration:none}.kong-ui-public-top-n-table.kong-card.border{border-radius:4px;padding:20px}.kong-ui-public-top-n-table.kong-card.border .k-card-header{align-items:baseline;margin-bottom:0!important}.kong-ui-public-top-n-table.kong-card.border .k-card-header .k-card-title{margin-bottom:16px}.kong-ui-public-top-n-table.kong-card.border .k-card-header .k-card-title h4{font-size:16px;font-weight:600}.metricscard-tooltip,.trafficcard.active .metricscard-tooltip{pointer-events:all}.metricscard[data-v-0c46234f]{display:flex;flex-direction:column;width:100%}@media (max-width: 767px){.metricscard[data-v-0c46234f]{max-width:none;width:auto}}@media (min-width: 768px){.metricscard[data-v-0c46234f]{height:100%;justify-content:space-evenly}}.metricscard[data-v-0c46234f]:hover{border:none;text-decoration:none}.metricscard-title[data-v-0c46234f]{align-items:center;color:#000933;color:var(--kong-ui-metric-card-title, #000933);display:flex;flex-direction:row;font-size:14px;font-weight:500}.metricscard-title.sm[data-v-0c46234f]{font-size:12px}.metricscard-description[data-v-0c46234f]{color:#afb7c5;color:var(--kong-ui-metric-card-value, #afb7c5);font-size:12px;line-height:16px;margin-top:10px}.metricscard-icon[data-v-0c46234f]{margin-right:6px}.metricscard-value[data-v-0c46234f]{color:#000933;color:var(--kong-ui-metric-card-value, #000933);display:flex;flex-direction:row;font-weight:600;justify-content:space-between;line-height:32px}.metricscard-value.sm[data-v-0c46234f]{line-height:24px}.metricscard-valuetrend[data-v-0c46234f]{display:flex;flex-direction:column;row-gap:12px}.metricscard-valuetrend.is-compact[data-v-0c46234f]{align-items:center;flex-direction:row!important;justify-content:space-between;margin-top:0}.metricscard-trend[data-v-0c46234f]{align-items:center;column-gap:8px;display:flex}.metricscard-trend-change[data-v-0c46234f]{align-items:center;border-radius:4px;display:flex;flex-direction:row;font-size:12px;font-weight:600;padding:4px 8px}.metricscard-trend-change .kui-icon[data-v-0c46234f]{margin-right:4px}.metricscard-trend-change.positive[data-v-0c46234f]{background-color:#ecfffb;background-color:var(--kong-ui-metric-card-trend-bg-positive, #ecfffb);color:#007d60;color:var(--kong-ui-metric-card-trend-positive, #007d60)}.metricscard-trend-change.negative[data-v-0c46234f]{background-color:#ffe5e5;background-color:var(--kong-ui-metric-card-trend-bg-negative, #ffe5e5);color:#ad000e;color:var(--kong-ui-metric-card-trend-negative, #ad000e)}.metricscard-trend-change.neutral[data-v-0c46234f]{background-color:#e0e4ea;background-color:var(--kong-ui-metric-card-trend-bg-neutral, #e0e4ea);color:#52596e;color:var(--kong-ui-metric-card-trend-neutral, #52596e)}.metricscard-trend-range[data-v-0c46234f]{color:#000933;font-size:12px}.metricscard-tooltip[data-v-0c46234f]{display:inline-flex;margin:auto 0 auto 4px;vertical-align:middle}.metricscard-error[data-v-0c46234f]{align-items:center;color:#3a3f51;display:flex;flex-direction:row;font-size:12px;margin-top:8px}.metricscard-error .kong-icon-warning[data-v-0c46234f]{margin-right:12px}.metricscard.active .metricscard-tooltip[data-v-0c46234f]{pointer-events:all}.loading-tabs[data-v-f7eb9c40]{display:flex;flex-direction:column}.loading-tabs-large[data-v-f7eb9c40]{padding:4px;row-gap:12px;width:240px}.loading-tabs-small[data-v-f7eb9c40]{padding:2px;row-gap:8px;width:120px}.loading-tabs-small .box[data-v-f7eb9c40]{height:12px}@media (max-width: 767px){.loading-tabs[data-v-f7eb9c40]{width:auto}}.kong-ui-public-metric-card-container[data-v-80b51a84]{background-color:transparent;background-color:var(--kong-ui-metric-card-background, transparent);display:flex;flex-direction:row;justify-content:space-between;width:100%;column-gap:24px;row-gap:16px}@media (max-width: 767px){.kong-ui-public-metric-card-container[data-v-80b51a84]{column-gap:16px;row-gap:16px;flex-direction:column}}.kong-ui-public-metric-card-container.sm[data-v-80b51a84]{column-gap:0;row-gap:0}.kong-ui-public-metric-card-container .error-display[data-v-80b51a84]{align-items:center;display:flex;justify-content:center;margin:auto}.kong-ui-public-metric-card-container .error-display-icon[data-v-80b51a84]{display:flex}.kong-ui-public-metric-card-container .error-display-message[data-v-80b51a84]{color:#6c7489;font-size:14px;margin-left:12px}.analytics-chart[data-v-f0f6ed41]{height:var(--8c62ff26)}.analytics-chart[data-v-36598a1b]{height:var(--1eed717c)}.analytics-chart[data-v-93ab34da]{height:var(--24c2946a)}@media (min-width: 767px){.metric-card-tile-wrapper[data-v-97fa928f]{align-items:center;display:flex;height:100%}}.metric-card-tile-wrapper[data-v-97fa928f] .kong-ui-public-metric-card-container{height:100%}@media (min-width: 767px){.metric-card-tile-wrapper[data-v-97fa928f] .kong-ui-public-metric-card-container .metricscard:not(:last-of-type){border-right:1px solid #e0e4ea}}.metric-card-tile-wrapper[data-v-97fa928f] .kong-ui-public-metric-card-container .metricscard .metricscard-title.lg{font-size:16px;font-weight:600}.tile-boundary[data-v-3d6e352f]{height:var(--a16bb866)}.kong-ui-public-grid-layout[data-v-371c2765]{display:grid;gap:20px;grid-template-columns:repeat(var(--1490bbaa),1fr);grid-template-rows:repeat(var(--14978e90),var(--70cb8937));width:100%}@media (max-width: 768px){.kong-ui-public-grid-layout[data-v-371c2765]{display:flex;flex-direction:column}.kong-ui-public-grid-layout .grid-cell[data-v-371c2765]{height:auto!important;left:auto!important;position:relative;top:auto!important;transform:none!important;width:auto!important}.kong-ui-public-grid-layout .grid-cell[data-v-371c2765]:not(:first-child){margin-top:20px}.kong-ui-public-grid-layout .empty-cell[data-v-371c2765]{display:none}}.kong-ui-public-dashboard-renderer .tile-container[data-v-1af70010]{border:1px solid #e0e4ea;border-radius:4px;height:100%;padding:20px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoldenSignalsRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GoldenSignalsRenderer.vue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAqB,aAAa,EAAE,MAAM,UAAU,CAAA;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GoldenSignalsRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GoldenSignalsRenderer.vue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAqB,aAAa,EAAE,MAAM,UAAU,CAAA;;;;;;;;;;;;AAmIhE,wBAMG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/dashboard-renderer",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/dashboard-renderer.umd.js",
|
|
6
6
|
"module": "./dist/dashboard-renderer.es.js",
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"@kong/kongponents": "9.0.0-alpha.113",
|
|
55
55
|
"swrv": "^1.0.4",
|
|
56
56
|
"vue": ">= 3.3.13 < 4",
|
|
57
|
-
"@kong-ui-public/analytics-
|
|
57
|
+
"@kong-ui-public/analytics-utilities": "^2.0.0",
|
|
58
58
|
"@kong-ui-public/analytics-metric-provider": "^5.0.0",
|
|
59
|
-
"@kong-ui-public/
|
|
60
|
-
"@kong-ui-public/
|
|
59
|
+
"@kong-ui-public/analytics-chart": "^2.5.1",
|
|
60
|
+
"@kong-ui-public/i18n": "^2.1.3"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"ajv": "^8.12.0",
|
|
64
|
-
"@kong-ui-public/
|
|
65
|
-
"@kong-ui-public/
|
|
64
|
+
"@kong-ui-public/core": "^1.5.7",
|
|
65
|
+
"@kong-ui-public/entities-shared": "^2.12.1"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"dev": "cross-env USE_SANDBOX=true vite",
|