@kong-ui-public/analytics-metric-provider 5.1.2 → 5.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -8
- package/dist/types/components/{MetricsProviderInternal.vue.d.ts → MetricsProvider.vue.d.ts} +4 -1
- package/dist/types/components/MetricsProvider.vue.d.ts.map +1 -0
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/vitals-metric-provider.es.js +170 -170
- package/dist/vitals-metric-provider.umd.js +1 -1
- package/package.json +6 -6
- package/dist/types/components/MetricsProviderInternal.vue.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as pe, watchEffect as Fe, computed as g, getCurrentInstance as He, reactive as Be, onMounted as $e, onUnmounted as Pe, watch as Ke, isReadonly as Ze, toRefs as Ue, defineComponent as k, inject as xe, toRef as Ge, provide as je, renderSlot as ke, resolveComponent as qe, openBlock as p, createElementBlock as y, createElementVNode as I, normalizeClass as G, unref as w, createCommentVNode as
|
|
1
|
+
import { ref as pe, watchEffect as Fe, computed as g, getCurrentInstance as He, reactive as Be, onMounted as $e, onUnmounted as Pe, watch as Ke, isReadonly as Ze, toRefs as Ue, defineComponent as k, inject as xe, toRef as Ge, provide as je, renderSlot as ke, resolveComponent as qe, openBlock as p, createElementBlock as y, createElementVNode as I, normalizeClass as G, unref as w, createCommentVNode as T, createBlock as N, resolveDynamicComponent as z, withCtx as A, createTextVNode as Xe, toDisplayString as R, createVNode as X, normalizeStyle as V, Fragment as Se, renderList as Ye, mergeProps as Qe, pushScopeId as L, popScopeId as M, normalizeProps as We, guardReactiveProps as Je } from "vue";
|
|
2
2
|
import { TimePeriods as re, TimeframeKeys as te, queryableExploreDimensions as er, DeltaQueryTime as rr, UnaryQueryTime as tr } from "@kong-ui-public/analytics-utilities";
|
|
3
3
|
import { createI18n as ir, i18nTComponent as nr } from "@kong-ui-public/i18n";
|
|
4
4
|
import { useAnalyticsConfigStore as ar, SEVEN_DAYS_MS as or } from "@kong-ui-public/analytics-config-store";
|
|
@@ -43,14 +43,14 @@ function cr() {
|
|
|
43
43
|
// Translation component <i18n-t>
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
const fr = 2, Q = ["1XX", "2XX", "3XX", "4XX", "5XX"], we = ["4XX", "5XX"], pr = "analytics-query-provider";
|
|
46
|
+
const fr = 2, Q = ["1XX", "2XX", "3XX", "4XX", "5XX"], we = ["4XX", "5XX"], pr = 30 * 1e3, vr = "analytics-query-provider";
|
|
47
47
|
var ze = /* @__PURE__ */ ((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))(ze || {});
|
|
48
|
-
const
|
|
48
|
+
const gr = (e) => {
|
|
49
49
|
var r, t, a, n, i;
|
|
50
50
|
return e ? !!// TODO: revisit: currently only the first check ever matters?
|
|
51
51
|
((r = Object.keys(e)) != null && r.length || (t = e.data) != null && t.length || (n = (a = e.data) == null ? void 0 : a.data) != null && n.length || !((i = e.data) != null && i.data) && typeof e.data == "object" && Object.keys(e == null ? void 0 : e.data).length) : !1;
|
|
52
52
|
};
|
|
53
|
-
function
|
|
53
|
+
function yr(e = pe({}), r, t, a = gr) {
|
|
54
54
|
const n = pe(
|
|
55
55
|
"PENDING"
|
|
56
56
|
/* PENDING */
|
|
@@ -90,7 +90,7 @@ function gr(e = pe({}), r, t, a = vr) {
|
|
|
90
90
|
const B = Symbol("default"), ue = "status_code_grouped", _e = (e, r, t, a, n) => {
|
|
91
91
|
e[r][t] || (e[r][t] = {}), e[r][t][a] = n;
|
|
92
92
|
};
|
|
93
|
-
function
|
|
93
|
+
function mr(e, r) {
|
|
94
94
|
var f;
|
|
95
95
|
const t = ((f = e.meta.metric_names) == null ? void 0 : f[0]) || "", a = e.meta.start_ms, n = Object.keys(e.meta.display || {}), i = !!n.find((c) => c === ue), u = n.find((c) => c !== ue);
|
|
96
96
|
return n.length > 2 || n.length > 1 && !i ? (console.error("Don't know how to work with provided dimensions:", n), {
|
|
@@ -104,7 +104,7 @@ function yr(e, r) {
|
|
|
104
104
|
current: {}
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function hr(e) {
|
|
108
108
|
e.queryReady === void 0 && (e.queryReady = g(() => !0));
|
|
109
109
|
const { i18n: r } = K.useI18n(), t = g(() => {
|
|
110
110
|
var l, d;
|
|
@@ -132,9 +132,9 @@ function mr(e) {
|
|
|
132
132
|
revalidateOnFocus: !1,
|
|
133
133
|
errorRetryCount: fr
|
|
134
134
|
}
|
|
135
|
-
), { state: f, swrvState: c } =
|
|
135
|
+
), { state: f, swrvState: c } = yr(n, i, u), o = g(() => {
|
|
136
136
|
var l, d, v, b, m, h, x;
|
|
137
|
-
return !((d = (l = n.value) == null ? void 0 : l.data) != null && d.length) || !((b = (v = n.value) == null ? void 0 : v.meta) != null && b.display) || !((x = (h = (m = n.value) == null ? void 0 : m.meta) == null ? void 0 : h.metric_names) != null && x.length) ? { current: {}, previous: {} } :
|
|
137
|
+
return !((d = (l = n.value) == null ? void 0 : l.data) != null && d.length) || !((b = (v = n.value) == null ? void 0 : v.meta) != null && b.display) || !((x = (h = (m = n.value) == null ? void 0 : m.meta) == null ? void 0 : h.metric_names) != null && x.length) ? { current: {}, previous: {} } : mr(n.value, e.withTrend.value);
|
|
138
138
|
}), s = g(() => {
|
|
139
139
|
var l, d, v;
|
|
140
140
|
if (e.timeframe.value.key === "custom") {
|
|
@@ -158,7 +158,7 @@ const j = (e, r, t = B, a) => (a ?? [B]).reduce((i, u) => {
|
|
|
158
158
|
const f = e[r][t];
|
|
159
159
|
return f ? i + (f[u] || 0) : i;
|
|
160
160
|
}, 0);
|
|
161
|
-
function
|
|
161
|
+
function Cr(e) {
|
|
162
162
|
const {
|
|
163
163
|
cardType: r,
|
|
164
164
|
title: t,
|
|
@@ -195,7 +195,7 @@ function hr(e) {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
var le = /* @__PURE__ */ new WeakMap(), Re = 0;
|
|
198
|
-
function
|
|
198
|
+
function br(e) {
|
|
199
199
|
if (!e.length)
|
|
200
200
|
return "";
|
|
201
201
|
for (var r = "arg", t = 0; t < e.length; ++t) {
|
|
@@ -204,14 +204,14 @@ function Cr(e) {
|
|
|
204
204
|
}
|
|
205
205
|
return r;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Sr(e) {
|
|
208
208
|
if (typeof e == "function")
|
|
209
209
|
try {
|
|
210
210
|
e = e();
|
|
211
211
|
} catch {
|
|
212
212
|
e = "";
|
|
213
213
|
}
|
|
214
|
-
return Array.isArray(e) ? e =
|
|
214
|
+
return Array.isArray(e) ? e = br(e) : e = String(e || ""), e;
|
|
215
215
|
}
|
|
216
216
|
var ve = (
|
|
217
217
|
/** @class */
|
|
@@ -220,7 +220,7 @@ var ve = (
|
|
|
220
220
|
r === void 0 && (r = 0), this.items = /* @__PURE__ */ new Map(), this.ttl = r;
|
|
221
221
|
}
|
|
222
222
|
return e.prototype.serializeKey = function(r) {
|
|
223
|
-
return
|
|
223
|
+
return Sr(r);
|
|
224
224
|
}, e.prototype.get = function(r) {
|
|
225
225
|
var t = this.serializeKey(r);
|
|
226
226
|
return this.items.get(t);
|
|
@@ -242,21 +242,21 @@ var ve = (
|
|
|
242
242
|
}, e;
|
|
243
243
|
}()
|
|
244
244
|
);
|
|
245
|
-
function
|
|
245
|
+
function wr() {
|
|
246
246
|
return typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function _r() {
|
|
249
249
|
return typeof document < "u" && typeof document.visibilityState < "u" ? document.visibilityState !== "hidden" : !0;
|
|
250
250
|
}
|
|
251
|
-
var
|
|
251
|
+
var Rr = function(e) {
|
|
252
252
|
return fetch(e).then(function(r) {
|
|
253
253
|
return r.json();
|
|
254
254
|
});
|
|
255
255
|
};
|
|
256
256
|
const de = {
|
|
257
|
-
isOnline:
|
|
258
|
-
isDocumentVisible:
|
|
259
|
-
fetcher:
|
|
257
|
+
isOnline: wr,
|
|
258
|
+
isDocumentVisible: _r,
|
|
259
|
+
fetcher: Rr
|
|
260
260
|
};
|
|
261
261
|
var O = function() {
|
|
262
262
|
return O = Object.assign || function(e) {
|
|
@@ -357,7 +357,7 @@ var O = function() {
|
|
|
357
357
|
throw o[1];
|
|
358
358
|
return { value: o[0] ? o[1] : void 0, done: !0 };
|
|
359
359
|
}
|
|
360
|
-
},
|
|
360
|
+
}, Tr = function(e, r) {
|
|
361
361
|
var t = typeof Symbol == "function" && e[Symbol.iterator];
|
|
362
362
|
if (!t)
|
|
363
363
|
return e;
|
|
@@ -396,7 +396,7 @@ var O = function() {
|
|
|
396
396
|
isOnline: de.isOnline,
|
|
397
397
|
isDocumentVisible: de.isDocumentVisible
|
|
398
398
|
};
|
|
399
|
-
function
|
|
399
|
+
function Er(e, r, t) {
|
|
400
400
|
var a = ie.get(e);
|
|
401
401
|
if (a)
|
|
402
402
|
a.data.push(r);
|
|
@@ -405,7 +405,7 @@ function Tr(e, r, t) {
|
|
|
405
405
|
ie.set(e, [r], t > 0 ? t + n : t);
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Ir(e, r, t) {
|
|
409
409
|
if (t.isDocumentVisible() && !(t.errorRetryCount !== void 0 && r > t.errorRetryCount)) {
|
|
410
410
|
var a = Math.min(r || 0, t.errorRetryCount), n = a * t.errorRetryInterval;
|
|
411
411
|
setTimeout(function() {
|
|
@@ -413,13 +413,13 @@ function Er(e, r, t) {
|
|
|
413
413
|
}, n);
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
var
|
|
416
|
+
var Te = function(e, r, t, a) {
|
|
417
417
|
return t === void 0 && (t = Ae), a === void 0 && (a = Ve.ttl), Z(void 0, void 0, void 0, function() {
|
|
418
418
|
var n, i, u, f, c, o, s;
|
|
419
419
|
return U(this, function(l) {
|
|
420
420
|
switch (l.label) {
|
|
421
421
|
case 0:
|
|
422
|
-
if (!
|
|
422
|
+
if (!kr(r))
|
|
423
423
|
return [3, 5];
|
|
424
424
|
l.label = 1;
|
|
425
425
|
case 1:
|
|
@@ -450,7 +450,7 @@ var Ne = function(e, r, t, a) {
|
|
|
450
450
|
});
|
|
451
451
|
});
|
|
452
452
|
};
|
|
453
|
-
function
|
|
453
|
+
function xr() {
|
|
454
454
|
for (var e = this, r = [], t = 0; t < arguments.length; t++)
|
|
455
455
|
r[t] = arguments[t];
|
|
456
456
|
var a, n, i = O({}, Ve), u = !1, f = !1, c = He(), o = (c == null ? void 0 : c.proxy) || c;
|
|
@@ -485,15 +485,15 @@ function Ir() {
|
|
|
485
485
|
return U(this, function(W) {
|
|
486
486
|
switch (W.label) {
|
|
487
487
|
case 0:
|
|
488
|
-
return P = ce.get(E), P ? [3, 2] : (Ce = Array.isArray(E) ? E : [E], se = ne.apply(void 0, Nr([],
|
|
488
|
+
return P = ce.get(E), P ? [3, 2] : (Ce = Array.isArray(E) ? E : [E], se = ne.apply(void 0, Nr([], Tr(Ce), !1)), ce.set(E, se, i.dedupingInterval), [4, Te(E, se, i.cache, l)]);
|
|
489
489
|
case 1:
|
|
490
490
|
return W.sent(), [3, 4];
|
|
491
491
|
case 2:
|
|
492
|
-
return [4,
|
|
492
|
+
return [4, Te(E, P.data, i.cache, l)];
|
|
493
493
|
case 3:
|
|
494
494
|
W.sent(), W.label = 4;
|
|
495
495
|
case 4:
|
|
496
|
-
return v.isValidating = !1, ce.delete(E), v.error !== void 0 && (be = !u && i.shouldRetryOnError && (C ? C.shouldRetryOnError : !0), be &&
|
|
496
|
+
return v.isValidating = !1, ce.delete(E), v.error !== void 0 && (be = !u && i.shouldRetryOnError && (C ? C.shouldRetryOnError : !0), be && Ir(b, C ? C.errorRetryCount : 1, i)), [
|
|
497
497
|
2
|
|
498
498
|
/*return*/
|
|
499
499
|
];
|
|
@@ -569,7 +569,7 @@ function Ir() {
|
|
|
569
569
|
});
|
|
570
570
|
try {
|
|
571
571
|
Ke(d, function(S) {
|
|
572
|
-
Ze(d) || (d.value = S), v.key = S, v.isValidating = !!S,
|
|
572
|
+
Ze(d) || (d.value = S), v.key = S, v.isValidating = !!S, Er(d.value, v, l), !s && !f && d.value && b(), f = !1;
|
|
573
573
|
}, {
|
|
574
574
|
immediate: !0
|
|
575
575
|
});
|
|
@@ -580,16 +580,16 @@ function Ir() {
|
|
|
580
580
|
} });
|
|
581
581
|
return x;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function kr(e) {
|
|
584
584
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function qr(e, r, t) {
|
|
587
587
|
const {
|
|
588
588
|
data: a,
|
|
589
589
|
error: n,
|
|
590
590
|
isValidating: i,
|
|
591
591
|
mutate: u
|
|
592
|
-
} =
|
|
592
|
+
} = xr(e, r, {
|
|
593
593
|
revalidateDebounce: 500,
|
|
594
594
|
revalidateOnFocus: !1,
|
|
595
595
|
dedupingInterval: 100,
|
|
@@ -605,10 +605,10 @@ function kr(e, r, t) {
|
|
|
605
605
|
}
|
|
606
606
|
const K = {
|
|
607
607
|
useI18n: cr,
|
|
608
|
-
useMetricCardBuilder:
|
|
609
|
-
useMetricFetcher:
|
|
610
|
-
useRequest:
|
|
611
|
-
}, Le = Symbol("METRICS_PROVIDER_KEY"),
|
|
608
|
+
useMetricCardBuilder: Cr,
|
|
609
|
+
useMetricFetcher: hr,
|
|
610
|
+
useRequest: qr
|
|
611
|
+
}, Le = Symbol("METRICS_PROVIDER_KEY"), zr = (e) => {
|
|
612
612
|
const {
|
|
613
613
|
dimension: r,
|
|
614
614
|
dimensionFilterValue: t,
|
|
@@ -670,8 +670,8 @@ const K = {
|
|
|
670
670
|
trafficData: h,
|
|
671
671
|
latencyData: x
|
|
672
672
|
};
|
|
673
|
-
},
|
|
674
|
-
__name: "
|
|
673
|
+
}, yi = /* @__PURE__ */ k({
|
|
674
|
+
__name: "MetricsProvider",
|
|
675
675
|
props: {
|
|
676
676
|
maxTimeframe: { default: te.THIRTY_DAY },
|
|
677
677
|
overrideTimeframe: { default: void 0 },
|
|
@@ -680,7 +680,7 @@ const K = {
|
|
|
680
680
|
filterValue: { default: void 0 },
|
|
681
681
|
additionalFilter: { default: void 0 },
|
|
682
682
|
queryReady: { type: Boolean, default: !0 },
|
|
683
|
-
refreshInterval: {},
|
|
683
|
+
refreshInterval: { default: pr },
|
|
684
684
|
longCardTitles: { type: Boolean, default: !1 },
|
|
685
685
|
containerTitle: { default: void 0 },
|
|
686
686
|
description: { default: void 0 },
|
|
@@ -690,7 +690,7 @@ const K = {
|
|
|
690
690
|
const r = e;
|
|
691
691
|
if (r.dimension && er.findIndex((d) => d === r.dimension) === -1)
|
|
692
692
|
throw new Error(`Attempted to use MetricsProvider with an invalid dimension: ${r.dimension}`);
|
|
693
|
-
const t = xe(
|
|
693
|
+
const t = xe(vr);
|
|
694
694
|
let a;
|
|
695
695
|
t ? a = t.queryFn : (console.warn("Analytics dashboards require a query bridge supplied via provide / inject."), console.warn("Please ensure your application has a query bridge provided under the key 'analytics-query-provider', as described in"), console.warn("https://github.com/Kong/public-ui-components/blob/main/packages/analytics/analytics-metric-provider/README.md#requirements"), a = () => Promise.reject(new Error("Query bridge required")));
|
|
696
696
|
const i = ar().getConfig(), u = g(() => i.value !== null && r.queryReady), f = g(() => {
|
|
@@ -707,7 +707,7 @@ const K = {
|
|
|
707
707
|
}), {
|
|
708
708
|
trafficData: s,
|
|
709
709
|
latencyData: l
|
|
710
|
-
} =
|
|
710
|
+
} = zr({
|
|
711
711
|
dimension: r.dimension,
|
|
712
712
|
dimensionFilterValue: r.filterValue,
|
|
713
713
|
additionalFilter: Ge(r, "additionalFilter"),
|
|
@@ -734,7 +734,7 @@ const K = {
|
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
736
|
});
|
|
737
|
-
function
|
|
737
|
+
function Ar(e) {
|
|
738
738
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
739
739
|
}
|
|
740
740
|
var Me = { exports: {} };
|
|
@@ -764,21 +764,21 @@ var Me = { exports: {} };
|
|
|
764
764
|
c.addCommas = r, e.exports = c;
|
|
765
765
|
})();
|
|
766
766
|
})(Me);
|
|
767
|
-
var
|
|
768
|
-
const
|
|
767
|
+
var Vr = Me.exports;
|
|
768
|
+
const Lr = /* @__PURE__ */ Ar(Vr);
|
|
769
769
|
var q = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Medium = "md", e.Large = "lg", e.LargeCompact = "lgc", e.ExtraLarge = "xl", e))(q || {});
|
|
770
770
|
const _ = "24px", D = (e, r) => {
|
|
771
771
|
const t = e.__vccOpts || e;
|
|
772
772
|
for (const [a, n] of r)
|
|
773
773
|
t[a] = n;
|
|
774
774
|
return t;
|
|
775
|
-
},
|
|
775
|
+
}, Mr = (e) => (L("data-v-4a507ffb"), e = e(), M(), e), Dr = ["aria-hidden"], Or = {
|
|
776
776
|
key: 0,
|
|
777
777
|
"data-testid": "kui-icon-svg-title"
|
|
778
|
-
},
|
|
778
|
+
}, Fr = /* @__PURE__ */ Mr(() => /* @__PURE__ */ I("path", {
|
|
779
779
|
d: "M6.5 20C4.98333 20 3.6875 19.475 2.6125 18.425C1.5375 17.375 1 16.0917 1 14.575C1 13.275 1.39167 12.1167 2.175 11.1C2.95833 10.0833 3.98333 9.43333 5.25 9.15C5.66667 7.61667 6.5 6.375 7.75 5.425C9 4.475 10.4167 4 12 4C13.95 4 15.6042 4.67917 16.9625 6.0375C18.3208 7.39583 19 9.05 19 11C20.15 11.1333 21.1042 11.6292 21.8625 12.4875C22.6208 13.3458 23 14.35 23 15.5C23 16.75 22.5625 17.8125 21.6875 18.6875C20.8125 19.5625 19.75 20 18.5 20H13C12.45 20 11.9792 19.8042 11.5875 19.4125C11.1958 19.0208 11 18.55 11 18V12.85L9.4 14.4L8 13L12 9L16 13L14.6 14.4L13 12.85V18H18.5C19.2 18 19.7917 17.7583 20.275 17.275C20.7583 16.7917 21 16.2 21 15.5C21 14.8 20.7583 14.2083 20.275 13.725C19.7917 13.2417 19.2 13 18.5 13H17V11C17 9.61667 16.5125 8.4375 15.5375 7.4625C14.5625 6.4875 13.3833 6 12 6C10.6167 6 9.4375 6.4875 8.4625 7.4625C7.4875 8.4375 7 9.61667 7 11H6.5C5.53333 11 4.70833 11.3417 4.025 12.025C3.34167 12.7083 3 13.5333 3 14.5C3 15.4667 3.34167 16.2917 4.025 16.975C4.70833 17.6583 5.53333 18 6.5 18H9V20H6.5Z",
|
|
780
780
|
fill: "currentColor"
|
|
781
|
-
}, null, -1)),
|
|
781
|
+
}, null, -1)), Hr = /* @__PURE__ */ k({
|
|
782
782
|
__name: "CloudUploadIcon",
|
|
783
783
|
props: {
|
|
784
784
|
/** The accessibility text provided to screen readers */
|
|
@@ -847,7 +847,7 @@ const _ = "24px", D = (e, r) => {
|
|
|
847
847
|
lineHeight: "0",
|
|
848
848
|
width: t.value
|
|
849
849
|
}));
|
|
850
|
-
return (n, i) => (p(),
|
|
850
|
+
return (n, i) => (p(), N(z(e.as), {
|
|
851
851
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
852
852
|
class: "kui-icon cloud-upload-icon",
|
|
853
853
|
"data-testid": "kui-icon-wrapper-cloud-upload-icon",
|
|
@@ -864,20 +864,20 @@ const _ = "24px", D = (e, r) => {
|
|
|
864
864
|
width: "100%",
|
|
865
865
|
xmlns: "http://www.w3.org/2000/svg"
|
|
866
866
|
}, [
|
|
867
|
-
e.title ? (p(), y("title",
|
|
868
|
-
|
|
869
|
-
], 8,
|
|
867
|
+
e.title ? (p(), y("title", Or, R(e.title), 1)) : T("", !0),
|
|
868
|
+
Fr
|
|
869
|
+
], 8, Dr))
|
|
870
870
|
]),
|
|
871
871
|
_: 1
|
|
872
872
|
}, 8, ["aria-hidden", "style"]));
|
|
873
873
|
}
|
|
874
|
-
}),
|
|
874
|
+
}), Br = /* @__PURE__ */ D(Hr, [["__scopeId", "data-v-4a507ffb"]]), $r = (e) => (L("data-v-b85466d4"), e = e(), M(), e), Pr = ["aria-hidden"], Kr = {
|
|
875
875
|
key: 0,
|
|
876
876
|
"data-testid": "kui-icon-svg-title"
|
|
877
|
-
},
|
|
877
|
+
}, Zr = /* @__PURE__ */ $r(() => /* @__PURE__ */ I("path", {
|
|
878
878
|
d: "M4 17V14H20V17H4ZM4 10V7H20V10H4Z",
|
|
879
879
|
fill: "currentColor"
|
|
880
|
-
}, null, -1)),
|
|
880
|
+
}, null, -1)), Ur = /* @__PURE__ */ k({
|
|
881
881
|
__name: "EqualIcon",
|
|
882
882
|
props: {
|
|
883
883
|
/** The accessibility text provided to screen readers */
|
|
@@ -946,7 +946,7 @@ const _ = "24px", D = (e, r) => {
|
|
|
946
946
|
lineHeight: "0",
|
|
947
947
|
width: t.value
|
|
948
948
|
}));
|
|
949
|
-
return (n, i) => (p(),
|
|
949
|
+
return (n, i) => (p(), N(z(e.as), {
|
|
950
950
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
951
951
|
class: "kui-icon equal-icon",
|
|
952
952
|
"data-testid": "kui-icon-wrapper-equal-icon",
|
|
@@ -963,20 +963,20 @@ const _ = "24px", D = (e, r) => {
|
|
|
963
963
|
width: "100%",
|
|
964
964
|
xmlns: "http://www.w3.org/2000/svg"
|
|
965
965
|
}, [
|
|
966
|
-
e.title ? (p(), y("title",
|
|
967
|
-
|
|
968
|
-
], 8,
|
|
966
|
+
e.title ? (p(), y("title", Kr, R(e.title), 1)) : T("", !0),
|
|
967
|
+
Zr
|
|
968
|
+
], 8, Pr))
|
|
969
969
|
]),
|
|
970
970
|
_: 1
|
|
971
971
|
}, 8, ["aria-hidden", "style"]));
|
|
972
972
|
}
|
|
973
|
-
}),
|
|
973
|
+
}), Gr = /* @__PURE__ */ D(Ur, [["__scopeId", "data-v-b85466d4"]]), jr = (e) => (L("data-v-ef124a21"), e = e(), M(), e), Xr = ["aria-hidden"], Yr = {
|
|
974
974
|
key: 0,
|
|
975
975
|
"data-testid": "kui-icon-svg-title"
|
|
976
|
-
},
|
|
976
|
+
}, Qr = /* @__PURE__ */ jr(() => /* @__PURE__ */ I("path", {
|
|
977
977
|
d: "M5 11V9H15V11H5Z",
|
|
978
978
|
fill: "currentColor"
|
|
979
|
-
}, null, -1)),
|
|
979
|
+
}, null, -1)), Wr = /* @__PURE__ */ k({
|
|
980
980
|
__name: "IndeterminateSmallIcon",
|
|
981
981
|
props: {
|
|
982
982
|
/** The accessibility text provided to screen readers */
|
|
@@ -1045,7 +1045,7 @@ const _ = "24px", D = (e, r) => {
|
|
|
1045
1045
|
lineHeight: "0",
|
|
1046
1046
|
width: t.value
|
|
1047
1047
|
}));
|
|
1048
|
-
return (n, i) => (p(),
|
|
1048
|
+
return (n, i) => (p(), N(z(e.as), {
|
|
1049
1049
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1050
1050
|
class: "kui-icon indeterminate-small-icon",
|
|
1051
1051
|
"data-testid": "kui-icon-wrapper-indeterminate-small-icon",
|
|
@@ -1062,20 +1062,20 @@ const _ = "24px", D = (e, r) => {
|
|
|
1062
1062
|
width: "100%",
|
|
1063
1063
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1064
1064
|
}, [
|
|
1065
|
-
e.title ? (p(), y("title",
|
|
1066
|
-
|
|
1067
|
-
], 8,
|
|
1065
|
+
e.title ? (p(), y("title", Yr, R(e.title), 1)) : T("", !0),
|
|
1066
|
+
Qr
|
|
1067
|
+
], 8, Xr))
|
|
1068
1068
|
]),
|
|
1069
1069
|
_: 1
|
|
1070
1070
|
}, 8, ["aria-hidden", "style"]));
|
|
1071
1071
|
}
|
|
1072
|
-
}), De = /* @__PURE__ */ D(
|
|
1072
|
+
}), De = /* @__PURE__ */ D(Wr, [["__scopeId", "data-v-ef124a21"]]), Jr = (e) => (L("data-v-db841c99"), e = e(), M(), e), et = ["aria-hidden"], rt = {
|
|
1073
1073
|
key: 0,
|
|
1074
1074
|
"data-testid": "kui-icon-svg-title"
|
|
1075
|
-
},
|
|
1075
|
+
}, tt = /* @__PURE__ */ Jr(() => /* @__PURE__ */ I("path", {
|
|
1076
1076
|
d: "M11 17H13V11H11V17ZM12 9C12.2833 9 12.5208 8.90417 12.7125 8.7125C12.9042 8.52083 13 8.28333 13 8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8C11 8.28333 11.0958 8.52083 11.2875 8.7125C11.4792 8.90417 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",
|
|
1077
1077
|
fill: "currentColor"
|
|
1078
|
-
}, null, -1)),
|
|
1078
|
+
}, null, -1)), it = /* @__PURE__ */ k({
|
|
1079
1079
|
__name: "InfoIcon",
|
|
1080
1080
|
props: {
|
|
1081
1081
|
/** The accessibility text provided to screen readers */
|
|
@@ -1144,7 +1144,7 @@ const _ = "24px", D = (e, r) => {
|
|
|
1144
1144
|
lineHeight: "0",
|
|
1145
1145
|
width: t.value
|
|
1146
1146
|
}));
|
|
1147
|
-
return (n, i) => (p(),
|
|
1147
|
+
return (n, i) => (p(), N(z(e.as), {
|
|
1148
1148
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1149
1149
|
class: "kui-icon info-icon",
|
|
1150
1150
|
"data-testid": "kui-icon-wrapper-info-icon",
|
|
@@ -1161,20 +1161,20 @@ const _ = "24px", D = (e, r) => {
|
|
|
1161
1161
|
width: "100%",
|
|
1162
1162
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1163
1163
|
}, [
|
|
1164
|
-
e.title ? (p(), y("title",
|
|
1165
|
-
|
|
1166
|
-
], 8,
|
|
1164
|
+
e.title ? (p(), y("title", rt, R(e.title), 1)) : T("", !0),
|
|
1165
|
+
tt
|
|
1166
|
+
], 8, et))
|
|
1167
1167
|
]),
|
|
1168
1168
|
_: 1
|
|
1169
1169
|
}, 8, ["aria-hidden", "style"]));
|
|
1170
1170
|
}
|
|
1171
|
-
}),
|
|
1171
|
+
}), nt = /* @__PURE__ */ D(it, [["__scopeId", "data-v-db841c99"]]), at = (e) => (L("data-v-38334840"), e = e(), M(), e), ot = ["aria-hidden"], st = {
|
|
1172
1172
|
key: 0,
|
|
1173
1173
|
"data-testid": "kui-icon-svg-title"
|
|
1174
|
-
},
|
|
1174
|
+
}, ut = /* @__PURE__ */ at(() => /* @__PURE__ */ I("path", {
|
|
1175
1175
|
d: "M15.25 5C14.9 5 14.6042 4.87917 14.3625 4.6375C14.1208 4.39583 14 4.1 14 3.75C14 3.4 14.1208 3.10417 14.3625 2.8625C14.6042 2.62083 14.9 2.5 15.25 2.5C15.6 2.5 15.8958 2.62083 16.1375 2.8625C16.3792 3.10417 16.5 3.4 16.5 3.75C16.5 4.1 16.3792 4.39583 16.1375 4.6375C15.8958 4.87917 15.6 5 15.25 5ZM15.25 21.5C14.9 21.5 14.6042 21.3792 14.3625 21.1375C14.1208 20.8958 14 20.6 14 20.25C14 19.9 14.1208 19.6042 14.3625 19.3625C14.6042 19.1208 14.9 19 15.25 19C15.6 19 15.8958 19.1208 16.1375 19.3625C16.3792 19.6042 16.5 19.9 16.5 20.25C16.5 20.6 16.3792 20.8958 16.1375 21.1375C15.8958 21.3792 15.6 21.5 15.25 21.5ZM19.25 8.5C18.9 8.5 18.6042 8.37917 18.3625 8.1375C18.1208 7.89583 18 7.6 18 7.25C18 6.9 18.1208 6.60417 18.3625 6.3625C18.6042 6.12083 18.9 6 19.25 6C19.6 6 19.8958 6.12083 20.1375 6.3625C20.3792 6.60417 20.5 6.9 20.5 7.25C20.5 7.6 20.3792 7.89583 20.1375 8.1375C19.8958 8.37917 19.6 8.5 19.25 8.5ZM19.25 18C18.9 18 18.6042 17.8792 18.3625 17.6375C18.1208 17.3958 18 17.1 18 16.75C18 16.4 18.1208 16.1042 18.3625 15.8625C18.6042 15.6208 18.9 15.5 19.25 15.5C19.6 15.5 19.8958 15.6208 20.1375 15.8625C20.3792 16.1042 20.5 16.4 20.5 16.75C20.5 17.1 20.3792 17.3958 20.1375 17.6375C19.8958 17.8792 19.6 18 19.25 18ZM20.75 13.25C20.4 13.25 20.1042 13.1292 19.8625 12.8875C19.6208 12.6458 19.5 12.35 19.5 12C19.5 11.65 19.6208 11.3542 19.8625 11.1125C20.1042 10.8708 20.4 10.75 20.75 10.75C21.1 10.75 21.3958 10.8708 21.6375 11.1125C21.8792 11.3542 22 11.65 22 12C22 12.35 21.8792 12.6458 21.6375 12.8875C21.3958 13.1292 21.1 13.25 20.75 13.25ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2V4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20V22ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.9167 10.0042 11.8292 10.0125 11.7375C10.0208 11.6458 10.0417 11.5583 10.075 11.475L8 9.4L9.4 8L11.475 10.075C11.5417 10.0583 11.7167 10.0333 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14Z",
|
|
1176
1176
|
fill: "currentColor"
|
|
1177
|
-
}, null, -1)),
|
|
1177
|
+
}, null, -1)), lt = /* @__PURE__ */ k({
|
|
1178
1178
|
__name: "ResponseIcon",
|
|
1179
1179
|
props: {
|
|
1180
1180
|
/** The accessibility text provided to screen readers */
|
|
@@ -1243,7 +1243,7 @@ const _ = "24px", D = (e, r) => {
|
|
|
1243
1243
|
lineHeight: "0",
|
|
1244
1244
|
width: t.value
|
|
1245
1245
|
}));
|
|
1246
|
-
return (n, i) => (p(),
|
|
1246
|
+
return (n, i) => (p(), N(z(e.as), {
|
|
1247
1247
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1248
1248
|
class: "kui-icon response-icon",
|
|
1249
1249
|
"data-testid": "kui-icon-wrapper-response-icon",
|
|
@@ -1260,20 +1260,20 @@ const _ = "24px", D = (e, r) => {
|
|
|
1260
1260
|
width: "100%",
|
|
1261
1261
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1262
1262
|
}, [
|
|
1263
|
-
e.title ? (p(), y("title",
|
|
1264
|
-
|
|
1265
|
-
], 8,
|
|
1263
|
+
e.title ? (p(), y("title", st, R(e.title), 1)) : T("", !0),
|
|
1264
|
+
ut
|
|
1265
|
+
], 8, ot))
|
|
1266
1266
|
]),
|
|
1267
1267
|
_: 1
|
|
1268
1268
|
}, 8, ["aria-hidden", "style"]));
|
|
1269
1269
|
}
|
|
1270
|
-
}),
|
|
1270
|
+
}), dt = /* @__PURE__ */ D(lt, [["__scopeId", "data-v-38334840"]]), ct = (e) => (L("data-v-3a4a2ac9"), e = e(), M(), e), ft = ["aria-hidden"], pt = {
|
|
1271
1271
|
key: 0,
|
|
1272
1272
|
"data-testid": "kui-icon-svg-title"
|
|
1273
|
-
},
|
|
1273
|
+
}, vt = /* @__PURE__ */ ct(() => /* @__PURE__ */ I("path", {
|
|
1274
1274
|
d: "M16 18V16H18.6L13.4 10.85L9.4 14.85L2 7.4L3.4 6L9.4 12L13.4 8L20 14.6V12H22V18H16Z",
|
|
1275
1275
|
fill: "currentColor"
|
|
1276
|
-
}, null, -1)),
|
|
1276
|
+
}, null, -1)), gt = /* @__PURE__ */ k({
|
|
1277
1277
|
__name: "TrendDownIcon",
|
|
1278
1278
|
props: {
|
|
1279
1279
|
/** The accessibility text provided to screen readers */
|
|
@@ -1342,7 +1342,7 @@ const _ = "24px", D = (e, r) => {
|
|
|
1342
1342
|
lineHeight: "0",
|
|
1343
1343
|
width: t.value
|
|
1344
1344
|
}));
|
|
1345
|
-
return (n, i) => (p(),
|
|
1345
|
+
return (n, i) => (p(), N(z(e.as), {
|
|
1346
1346
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1347
1347
|
class: "kui-icon trend-down-icon",
|
|
1348
1348
|
"data-testid": "kui-icon-wrapper-trend-down-icon",
|
|
@@ -1359,20 +1359,20 @@ const _ = "24px", D = (e, r) => {
|
|
|
1359
1359
|
width: "100%",
|
|
1360
1360
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1361
1361
|
}, [
|
|
1362
|
-
e.title ? (p(), y("title",
|
|
1363
|
-
|
|
1364
|
-
], 8,
|
|
1362
|
+
e.title ? (p(), y("title", pt, R(e.title), 1)) : T("", !0),
|
|
1363
|
+
vt
|
|
1364
|
+
], 8, ft))
|
|
1365
1365
|
]),
|
|
1366
1366
|
_: 1
|
|
1367
1367
|
}, 8, ["aria-hidden", "style"]));
|
|
1368
1368
|
}
|
|
1369
|
-
}),
|
|
1369
|
+
}), yt = /* @__PURE__ */ D(gt, [["__scopeId", "data-v-3a4a2ac9"]]), mt = (e) => (L("data-v-a1f815c9"), e = e(), M(), e), ht = ["aria-hidden"], Ct = {
|
|
1370
1370
|
key: 0,
|
|
1371
1371
|
"data-testid": "kui-icon-svg-title"
|
|
1372
|
-
},
|
|
1372
|
+
}, bt = /* @__PURE__ */ mt(() => /* @__PURE__ */ I("path", {
|
|
1373
1373
|
d: "M3.4 18L2 16.6L9.4 9.15L13.4 13.15L18.6 8H16V6H22V12H20V9.4L13.4 16L9.4 12L3.4 18Z",
|
|
1374
1374
|
fill: "currentColor"
|
|
1375
|
-
}, null, -1)),
|
|
1375
|
+
}, null, -1)), St = /* @__PURE__ */ k({
|
|
1376
1376
|
__name: "TrendUpIcon",
|
|
1377
1377
|
props: {
|
|
1378
1378
|
/** The accessibility text provided to screen readers */
|
|
@@ -1441,7 +1441,7 @@ const _ = "24px", D = (e, r) => {
|
|
|
1441
1441
|
lineHeight: "0",
|
|
1442
1442
|
width: t.value
|
|
1443
1443
|
}));
|
|
1444
|
-
return (n, i) => (p(),
|
|
1444
|
+
return (n, i) => (p(), N(z(e.as), {
|
|
1445
1445
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1446
1446
|
class: "kui-icon trend-up-icon",
|
|
1447
1447
|
"data-testid": "kui-icon-wrapper-trend-up-icon",
|
|
@@ -1458,20 +1458,20 @@ const _ = "24px", D = (e, r) => {
|
|
|
1458
1458
|
width: "100%",
|
|
1459
1459
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1460
1460
|
}, [
|
|
1461
|
-
e.title ? (p(), y("title",
|
|
1462
|
-
|
|
1463
|
-
], 8,
|
|
1461
|
+
e.title ? (p(), y("title", Ct, R(e.title), 1)) : T("", !0),
|
|
1462
|
+
bt
|
|
1463
|
+
], 8, ht))
|
|
1464
1464
|
]),
|
|
1465
1465
|
_: 1
|
|
1466
1466
|
}, 8, ["aria-hidden", "style"]));
|
|
1467
1467
|
}
|
|
1468
|
-
}),
|
|
1468
|
+
}), wt = /* @__PURE__ */ D(St, [["__scopeId", "data-v-a1f815c9"]]), _t = (e) => (L("data-v-83ea4abf"), e = e(), M(), e), Rt = ["aria-hidden"], Tt = {
|
|
1469
1469
|
key: 0,
|
|
1470
1470
|
"data-testid": "kui-icon-svg-title"
|
|
1471
|
-
}, Nt = /* @__PURE__ */
|
|
1471
|
+
}, Nt = /* @__PURE__ */ _t(() => /* @__PURE__ */ I("path", {
|
|
1472
1472
|
d: "M9 20C8.68333 20 8.4 19.9083 8.15 19.725C7.9 19.5417 7.71667 19.3083 7.6 19.025L5.3 13H1V11H6.7L9 17.1L13.6 4.975C13.7167 4.69167 13.9 4.45833 14.15 4.275C14.4 4.09167 14.6833 4 15 4C15.3167 4 15.6 4.09167 15.85 4.275C16.1 4.45833 16.2833 4.69167 16.4 4.975L18.7 11H23V13H17.3L15 6.9L10.4 19.025C10.2833 19.3083 10.1 19.5417 9.85 19.725C9.6 19.9083 9.31667 20 9 20Z",
|
|
1473
1473
|
fill: "currentColor"
|
|
1474
|
-
}, null, -1)),
|
|
1474
|
+
}, null, -1)), Et = /* @__PURE__ */ k({
|
|
1475
1475
|
__name: "VitalsIcon",
|
|
1476
1476
|
props: {
|
|
1477
1477
|
/** The accessibility text provided to screen readers */
|
|
@@ -1540,7 +1540,7 @@ const _ = "24px", D = (e, r) => {
|
|
|
1540
1540
|
lineHeight: "0",
|
|
1541
1541
|
width: t.value
|
|
1542
1542
|
}));
|
|
1543
|
-
return (n, i) => (p(),
|
|
1543
|
+
return (n, i) => (p(), N(z(e.as), {
|
|
1544
1544
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1545
1545
|
class: "kui-icon vitals-icon",
|
|
1546
1546
|
"data-testid": "kui-icon-wrapper-vitals-icon",
|
|
@@ -1557,20 +1557,20 @@ const _ = "24px", D = (e, r) => {
|
|
|
1557
1557
|
width: "100%",
|
|
1558
1558
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1559
1559
|
}, [
|
|
1560
|
-
e.title ? (p(), y("title",
|
|
1560
|
+
e.title ? (p(), y("title", Tt, R(e.title), 1)) : T("", !0),
|
|
1561
1561
|
Nt
|
|
1562
|
-
], 8,
|
|
1562
|
+
], 8, Rt))
|
|
1563
1563
|
]),
|
|
1564
1564
|
_: 1
|
|
1565
1565
|
}, 8, ["aria-hidden", "style"]));
|
|
1566
1566
|
}
|
|
1567
|
-
}),
|
|
1567
|
+
}), It = /* @__PURE__ */ D(Et, [["__scopeId", "data-v-83ea4abf"]]), xt = (e) => (L("data-v-cfdb88e2"), e = e(), M(), e), kt = ["aria-hidden"], qt = {
|
|
1568
1568
|
key: 0,
|
|
1569
1569
|
"data-testid": "kui-icon-svg-title"
|
|
1570
|
-
},
|
|
1570
|
+
}, zt = /* @__PURE__ */ xt(() => /* @__PURE__ */ I("path", {
|
|
1571
1571
|
d: "M12.0001 22.025C11.7334 22.025 11.4793 21.975 11.2376 21.875C10.9959 21.775 10.7751 21.6333 10.5751 21.45L2.5501 13.425C2.36676 13.225 2.2251 13.0041 2.1251 12.7625C2.0251 12.5208 1.9751 12.2666 1.9751 12C1.9751 11.7333 2.0251 11.475 2.1251 11.225C2.2251 10.975 2.36676 10.7583 2.5501 10.575L10.5751 2.54998C10.7751 2.34998 10.9959 2.20414 11.2376 2.11248C11.4793 2.02081 11.7334 1.97498 12.0001 1.97498C12.2668 1.97498 12.5251 2.02081 12.7751 2.11248C13.0251 2.20414 13.2418 2.34998 13.4251 2.54998L21.4501 10.575C21.6501 10.7583 21.7959 10.975 21.8876 11.225C21.9793 11.475 22.0251 11.7333 22.0251 12C22.0251 12.2666 21.9793 12.5208 21.8876 12.7625C21.7959 13.0041 21.6501 13.225 21.4501 13.425L13.4251 21.45C13.2418 21.6333 13.0251 21.775 12.7751 21.875C12.5251 21.975 12.2668 22.025 12.0001 22.025ZM12.0001 20.025L20.0251 12L12.0001 3.97498L3.9751 12L12.0001 20.025ZM11.0001 13H13.0001V6.99998H11.0001V13ZM12.0001 16C12.2834 16 12.5209 15.9041 12.7126 15.7125C12.9043 15.5208 13.0001 15.2833 13.0001 15C13.0001 14.7166 12.9043 14.4791 12.7126 14.2875C12.5209 14.0958 12.2834 14 12.0001 14C11.7168 14 11.4793 14.0958 11.2876 14.2875C11.0959 14.4791 11.0001 14.7166 11.0001 15C11.0001 15.2833 11.0959 15.5208 11.2876 15.7125C11.4793 15.9041 11.7168 16 12.0001 16Z",
|
|
1572
1572
|
fill: "currentColor"
|
|
1573
|
-
}, null, -1)),
|
|
1573
|
+
}, null, -1)), At = /* @__PURE__ */ k({
|
|
1574
1574
|
__name: "WarningOutlineIcon",
|
|
1575
1575
|
props: {
|
|
1576
1576
|
/** The accessibility text provided to screen readers */
|
|
@@ -1639,7 +1639,7 @@ const _ = "24px", D = (e, r) => {
|
|
|
1639
1639
|
lineHeight: "0",
|
|
1640
1640
|
width: t.value
|
|
1641
1641
|
}));
|
|
1642
|
-
return (n, i) => (p(),
|
|
1642
|
+
return (n, i) => (p(), N(z(e.as), {
|
|
1643
1643
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1644
1644
|
class: "kui-icon warning-outline-icon",
|
|
1645
1645
|
"data-testid": "kui-icon-wrapper-warning-outline-icon",
|
|
@@ -1656,20 +1656,20 @@ const _ = "24px", D = (e, r) => {
|
|
|
1656
1656
|
width: "100%",
|
|
1657
1657
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1658
1658
|
}, [
|
|
1659
|
-
e.title ? (p(), y("title",
|
|
1660
|
-
|
|
1661
|
-
], 8,
|
|
1659
|
+
e.title ? (p(), y("title", qt, R(e.title), 1)) : T("", !0),
|
|
1660
|
+
zt
|
|
1661
|
+
], 8, kt))
|
|
1662
1662
|
]),
|
|
1663
1663
|
_: 1
|
|
1664
1664
|
}, 8, ["aria-hidden", "style"]));
|
|
1665
1665
|
}
|
|
1666
|
-
}),
|
|
1666
|
+
}), Vt = /* @__PURE__ */ D(At, [["__scopeId", "data-v-cfdb88e2"]]), Lt = (e) => (L("data-v-0d61bc5b"), e = e(), M(), e), Mt = ["aria-hidden"], Dt = {
|
|
1667
1667
|
key: 0,
|
|
1668
1668
|
"data-testid": "kui-icon-svg-title"
|
|
1669
|
-
},
|
|
1669
|
+
}, Ot = /* @__PURE__ */ Lt(() => /* @__PURE__ */ I("path", {
|
|
1670
1670
|
d: "M12.025 22.05C11.7583 22.05 11.5042 22 11.2625 21.9C11.0208 21.8 10.8 21.6583 10.6 21.475L2.575 13.45C2.39167 13.25 2.25 13.0292 2.15 12.7875C2.05 12.5458 2 12.2917 2 12.025C2 11.7583 2.05 11.5 2.15 11.25C2.25 11 2.39167 10.7833 2.575 10.6L10.6 2.575C10.8 2.375 11.0208 2.22917 11.2625 2.1375C11.5042 2.04583 11.7583 2 12.025 2C12.2917 2 12.55 2.04583 12.8 2.1375C13.05 2.22917 13.2667 2.375 13.45 2.575L21.475 10.6C21.675 10.7833 21.8208 11 21.9125 11.25C22.0042 11.5 22.05 11.7583 22.05 12.025C22.05 12.2917 22.0042 12.5458 21.9125 12.7875C21.8208 13.0292 21.675 13.25 21.475 13.45L13.45 21.475C13.2667 21.6583 13.05 21.8 12.8 21.9C12.55 22 12.2917 22.05 12.025 22.05ZM11.025 13.025H13.025V7.025H11.025V13.025ZM12.025 16.025C12.3083 16.025 12.5458 15.9292 12.7375 15.7375C12.9292 15.5458 13.025 15.3083 13.025 15.025C13.025 14.7417 12.9292 14.5042 12.7375 14.3125C12.5458 14.1208 12.3083 14.025 12.025 14.025C11.7417 14.025 11.5042 14.1208 11.3125 14.3125C11.1208 14.5042 11.025 14.7417 11.025 15.025C11.025 15.3083 11.1208 15.5458 11.3125 15.7375C11.5042 15.9292 11.7417 16.025 12.025 16.025Z",
|
|
1671
1671
|
fill: "currentColor"
|
|
1672
|
-
}, null, -1)),
|
|
1672
|
+
}, null, -1)), Ft = /* @__PURE__ */ k({
|
|
1673
1673
|
__name: "WarningIcon",
|
|
1674
1674
|
props: {
|
|
1675
1675
|
/** The accessibility text provided to screen readers */
|
|
@@ -1738,7 +1738,7 @@ const _ = "24px", D = (e, r) => {
|
|
|
1738
1738
|
lineHeight: "0",
|
|
1739
1739
|
width: t.value
|
|
1740
1740
|
}));
|
|
1741
|
-
return (n, i) => (p(),
|
|
1741
|
+
return (n, i) => (p(), N(z(e.as), {
|
|
1742
1742
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1743
1743
|
class: "kui-icon warning-icon",
|
|
1744
1744
|
"data-testid": "kui-icon-wrapper-warning-icon",
|
|
@@ -1755,31 +1755,31 @@ const _ = "24px", D = (e, r) => {
|
|
|
1755
1755
|
width: "100%",
|
|
1756
1756
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1757
1757
|
}, [
|
|
1758
|
-
e.title ? (p(), y("title",
|
|
1759
|
-
|
|
1760
|
-
], 8,
|
|
1758
|
+
e.title ? (p(), y("title", Dt, R(e.title), 1)) : T("", !0),
|
|
1759
|
+
Ot
|
|
1760
|
+
], 8, Mt))
|
|
1761
1761
|
]),
|
|
1762
1762
|
_: 1
|
|
1763
1763
|
}, 8, ["aria-hidden", "style"]));
|
|
1764
1764
|
}
|
|
1765
|
-
}), Oe = /* @__PURE__ */ D(
|
|
1766
|
-
let a = !r || Number(e.toFixed(
|
|
1765
|
+
}), Oe = /* @__PURE__ */ D(Ft, [["__scopeId", "data-v-0d61bc5b"]]), ge = 2, Ne = ge + 2, Ht = (e, r, t = !1) => {
|
|
1766
|
+
let a = !r || Number(e.toFixed(Ne)) === 0 ? 0 : Number(e.toFixed(Ne)) > 0 ? 1 : -1;
|
|
1767
1767
|
return t && (a *= -1), a;
|
|
1768
|
-
},
|
|
1768
|
+
}, Bt = (e, r, t) => r ? `${Math.abs(e * 100).toFixed(ge)}%` : t, $t = (e, r) => r === 0 ? 0 : e / r - 1, Pt = (e, r = !1) => (r && (e *= -1), e > 0 ? wt : e < 0 ? yt : De), Kt = "#ad000e", fe = "#6c7489", Ee = "#52596e", Zt = "#007d60", J = "16px", Ut = "20px";
|
|
1769
1769
|
var F = /* @__PURE__ */ ((e) => (e.GENERIC_COUNT = "GenericCount", e.TRAFFIC = "Traffic", e.ERROR_RATE = "ErrorRate", e.LATENCY = "Latency", e))(F || {});
|
|
1770
|
-
const
|
|
1770
|
+
const Gt = { class: "metricscard" }, jt = {
|
|
1771
1771
|
key: 0,
|
|
1772
1772
|
class: "metricscard-description"
|
|
1773
|
-
},
|
|
1773
|
+
}, Xt = {
|
|
1774
1774
|
key: 0,
|
|
1775
1775
|
class: "metricscard-error"
|
|
1776
|
-
},
|
|
1776
|
+
}, Yt = {
|
|
1777
1777
|
key: 2,
|
|
1778
1778
|
class: "metricscard-trend"
|
|
1779
|
-
},
|
|
1779
|
+
}, Qt = { "data-testid": "metric-trend-change" }, Wt = {
|
|
1780
1780
|
key: 0,
|
|
1781
1781
|
class: "metricscard-trend-range"
|
|
1782
|
-
},
|
|
1782
|
+
}, Jt = /* @__PURE__ */ k({
|
|
1783
1783
|
__name: "MetricsCard",
|
|
1784
1784
|
props: {
|
|
1785
1785
|
cardType: {
|
|
@@ -1852,61 +1852,61 @@ const Ut = { class: "metricscard" }, Gt = {
|
|
|
1852
1852
|
},
|
|
1853
1853
|
setup(e) {
|
|
1854
1854
|
const r = /* @__PURE__ */ new Map([
|
|
1855
|
-
[F.GENERIC_COUNT,
|
|
1856
|
-
[F.TRAFFIC,
|
|
1857
|
-
[F.ERROR_RATE,
|
|
1858
|
-
[F.LATENCY,
|
|
1855
|
+
[F.GENERIC_COUNT, It],
|
|
1856
|
+
[F.TRAFFIC, Br],
|
|
1857
|
+
[F.ERROR_RATE, Vt],
|
|
1858
|
+
[F.LATENCY, dt]
|
|
1859
1859
|
]), t = e, a = (c) => {
|
|
1860
1860
|
const o = {
|
|
1861
|
-
red: `var(--kong-ui-metric-card-trend-negative, ${
|
|
1862
|
-
green: `var(--kong-ui-metric-card-trend-positive, ${
|
|
1861
|
+
red: `var(--kong-ui-metric-card-trend-negative, ${Kt})`,
|
|
1862
|
+
green: `var(--kong-ui-metric-card-trend-positive, ${Zt})`,
|
|
1863
1863
|
grey: `var(--kong-ui-metric-card-trend-neutral, ${Ee})`
|
|
1864
1864
|
};
|
|
1865
1865
|
return c > 0 ? o.green : c < 0 ? o.red : o.grey;
|
|
1866
1866
|
}, n = (c) => c > 0 ? "positive" : c < 0 ? "negative" : "neutral", i = [q.Medium, q.Large, q.LargeCompact].includes(t.cardSize), u = g(() => t.cardSize === q.LargeCompact), f = [q.Small, q.LargeCompact].includes(t.cardSize);
|
|
1867
1867
|
return (c, o) => {
|
|
1868
1868
|
const s = qe("KTooltip");
|
|
1869
|
-
return p(), y("div",
|
|
1869
|
+
return p(), y("div", Gt, [
|
|
1870
1870
|
I("div", {
|
|
1871
1871
|
class: G(["metricscard-title", e.cardSize])
|
|
1872
1872
|
}, [
|
|
1873
|
-
w(f) ?
|
|
1873
|
+
w(f) ? T("", !0) : (p(), N(z(w(r).get(e.cardType)), {
|
|
1874
1874
|
key: 0,
|
|
1875
1875
|
class: "metricscard-icon",
|
|
1876
1876
|
color: w(fe),
|
|
1877
1877
|
size: w(J)
|
|
1878
1878
|
}, null, 8, ["color", "size"])),
|
|
1879
|
-
(p(),
|
|
1879
|
+
(p(), N(z(e.titleTag), null, {
|
|
1880
1880
|
default: A(() => [
|
|
1881
1881
|
Xe(R(e.title), 1)
|
|
1882
1882
|
]),
|
|
1883
1883
|
_: 1
|
|
1884
1884
|
})),
|
|
1885
|
-
e.tooltip ? (p(),
|
|
1885
|
+
e.tooltip ? (p(), N(s, {
|
|
1886
1886
|
key: 1,
|
|
1887
1887
|
class: "metricscard-tooltip",
|
|
1888
1888
|
placement: "right",
|
|
1889
1889
|
text: e.tooltip
|
|
1890
1890
|
}, {
|
|
1891
1891
|
default: A(() => [
|
|
1892
|
-
X(w(
|
|
1892
|
+
X(w(nt), {
|
|
1893
1893
|
color: w(fe),
|
|
1894
1894
|
size: w(J)
|
|
1895
1895
|
}, null, 8, ["color", "size"])
|
|
1896
1896
|
]),
|
|
1897
1897
|
_: 1
|
|
1898
|
-
}, 8, ["text"])) :
|
|
1898
|
+
}, 8, ["text"])) : T("", !0)
|
|
1899
1899
|
], 2),
|
|
1900
|
-
e.description && w(i) && !u.value ? (p(), y("div",
|
|
1900
|
+
e.description && w(i) && !u.value ? (p(), y("div", jt, [
|
|
1901
1901
|
I("span", null, R(e.description), 1)
|
|
1902
|
-
])) :
|
|
1902
|
+
])) : T("", !0),
|
|
1903
1903
|
I("div", {
|
|
1904
1904
|
class: G(["metricscard-valuetrend", { "is-compact": u.value }])
|
|
1905
1905
|
}, [
|
|
1906
|
-
e.hasError ? (p(), y("div",
|
|
1906
|
+
e.hasError ? (p(), y("div", Xt, [
|
|
1907
1907
|
X(w(Oe), {
|
|
1908
1908
|
color: w(fe),
|
|
1909
|
-
size: w(
|
|
1909
|
+
size: w(Ut)
|
|
1910
1910
|
}, null, 8, ["color", "size"]),
|
|
1911
1911
|
I("div", null, " " + R(e.errorMessage), 1)
|
|
1912
1912
|
])) : (p(), y("div", {
|
|
@@ -1914,24 +1914,24 @@ const Ut = { class: "metricscard" }, Gt = {
|
|
|
1914
1914
|
class: G(["metricscard-value", e.cardSize]),
|
|
1915
1915
|
"data-testid": "metric-value"
|
|
1916
1916
|
}, R(e.metricValue), 3)),
|
|
1917
|
-
w(i) ? (p(), y("div",
|
|
1917
|
+
w(i) ? (p(), y("div", Yt, [
|
|
1918
1918
|
I("div", {
|
|
1919
1919
|
class: G(["metricscard-trend-change", n(e.changePolarity)]),
|
|
1920
1920
|
"data-testid": "metric-trend-parent"
|
|
1921
1921
|
}, [
|
|
1922
|
-
e.changePolarity !== 0 ? (p(),
|
|
1922
|
+
e.changePolarity !== 0 ? (p(), N(z(e.trendIcon), {
|
|
1923
1923
|
key: 0,
|
|
1924
1924
|
color: a(e.changePolarity),
|
|
1925
1925
|
size: w(J)
|
|
1926
|
-
}, null, 8, ["color", "size"])) : (p(),
|
|
1926
|
+
}, null, 8, ["color", "size"])) : (p(), N(w(Gr), {
|
|
1927
1927
|
key: 1,
|
|
1928
1928
|
color: w(Ee),
|
|
1929
1929
|
size: w(J)
|
|
1930
1930
|
}, null, 8, ["color", "size"])),
|
|
1931
|
-
I("div",
|
|
1931
|
+
I("div", Qt, R(e.metricChange), 1)
|
|
1932
1932
|
], 2),
|
|
1933
|
-
e.trendRange && e.cardSize !== w(q).LargeCompact ? (p(), y("div",
|
|
1934
|
-
])) :
|
|
1933
|
+
e.trendRange && e.cardSize !== w(q).LargeCompact ? (p(), y("div", Wt, R(e.trendRange), 1)) : T("", !0)
|
|
1934
|
+
])) : T("", !0)
|
|
1935
1935
|
], 2)
|
|
1936
1936
|
]);
|
|
1937
1937
|
};
|
|
@@ -1941,27 +1941,27 @@ const Ut = { class: "metricscard" }, Gt = {
|
|
|
1941
1941
|
for (const [a, n] of r)
|
|
1942
1942
|
t[a] = n;
|
|
1943
1943
|
return t;
|
|
1944
|
-
},
|
|
1945
|
-
function
|
|
1944
|
+
}, ei = /* @__PURE__ */ ye(Jt, [["__scopeId", "data-v-bb9e718a"]]), ri = {}, ti = { class: "loading-tabs" };
|
|
1945
|
+
function ii(e, r) {
|
|
1946
1946
|
const t = qe("KSkeletonBox");
|
|
1947
|
-
return p(), y("div",
|
|
1947
|
+
return p(), y("div", ti, [
|
|
1948
1948
|
X(t, { width: "100" }),
|
|
1949
1949
|
X(t, { width: "75" })
|
|
1950
1950
|
]);
|
|
1951
1951
|
}
|
|
1952
|
-
const
|
|
1952
|
+
const ni = /* @__PURE__ */ ye(ri, [["render", ii], ["__scopeId", "data-v-f7eb9c40"]]), ai = {
|
|
1953
1953
|
key: 0,
|
|
1954
1954
|
class: "container-title"
|
|
1955
|
-
},
|
|
1955
|
+
}, oi = {
|
|
1956
1956
|
key: 1,
|
|
1957
1957
|
class: "error-display"
|
|
1958
|
-
},
|
|
1958
|
+
}, si = {
|
|
1959
1959
|
key: 0,
|
|
1960
1960
|
class: "error-display-message"
|
|
1961
|
-
},
|
|
1961
|
+
}, ui = {
|
|
1962
1962
|
key: 2,
|
|
1963
1963
|
class: "cards-wrapper"
|
|
1964
|
-
},
|
|
1964
|
+
}, li = /* @__PURE__ */ k({
|
|
1965
1965
|
__name: "MetricCardContainer",
|
|
1966
1966
|
props: {
|
|
1967
1967
|
fallbackDisplayText: {
|
|
@@ -2000,12 +2000,12 @@ const ii = /* @__PURE__ */ ye(ei, [["render", ti], ["__scopeId", "data-v-f7eb9c4
|
|
|
2000
2000
|
},
|
|
2001
2001
|
setup(e) {
|
|
2002
2002
|
const r = e, t = g(() => r.cards.every((n) => (n == null ? void 0 : n.hasError) === !0)), a = (n) => {
|
|
2003
|
-
const i =
|
|
2003
|
+
const i = $t(n.currentValue, n.previousValue) || 0, u = Ht(i, r.hasTrendAccess, n.increaseIsBad);
|
|
2004
2004
|
return {
|
|
2005
|
-
metricValue: n.formatValueFn ? n.formatValueFn(n.currentValue) :
|
|
2006
|
-
metricChange: n.formatChangeFn ? n.formatChangeFn(i) :
|
|
2005
|
+
metricValue: n.formatValueFn ? n.formatValueFn(n.currentValue) : Lr(n.currentValue, { capital: !0, round: !0 }) || "0",
|
|
2006
|
+
metricChange: n.formatChangeFn ? n.formatChangeFn(i) : Bt(i, r.hasTrendAccess, r.fallbackDisplayText),
|
|
2007
2007
|
changePolarity: u,
|
|
2008
|
-
trendIcon:
|
|
2008
|
+
trendIcon: Pt(u, n.increaseIsBad),
|
|
2009
2009
|
cardSize: r.cardSize,
|
|
2010
2010
|
hasContainerTitle: !!r.containerTitle
|
|
2011
2011
|
};
|
|
@@ -2013,16 +2013,16 @@ const ii = /* @__PURE__ */ ye(ei, [["render", ti], ["__scopeId", "data-v-f7eb9c4
|
|
|
2013
2013
|
return (n, i) => (p(), y("div", {
|
|
2014
2014
|
class: G(["kong-ui-public-metric-card-container", e.cardSize])
|
|
2015
2015
|
}, [
|
|
2016
|
-
r.containerTitle ? (p(), y("div",
|
|
2017
|
-
t.value ? (p(), y("div",
|
|
2016
|
+
r.containerTitle ? (p(), y("div", ai, R(r.containerTitle), 1)) : T("", !0),
|
|
2017
|
+
t.value ? (p(), y("div", oi, [
|
|
2018
2018
|
X(w(Oe), { class: "error-display-icon" }),
|
|
2019
|
-
e.errorMessage ? (p(), y("div",
|
|
2020
|
-
])) : (p(), y("div",
|
|
2019
|
+
e.errorMessage ? (p(), y("div", si, R(e.errorMessage), 1)) : T("", !0)
|
|
2020
|
+
])) : (p(), y("div", ui, [
|
|
2021
2021
|
(p(!0), y(Se, null, Ye(e.cards, (u, f) => (p(), y(Se, null, [
|
|
2022
|
-
e.loading ? (p(),
|
|
2022
|
+
e.loading ? (p(), N(ni, {
|
|
2023
2023
|
key: `skeleton-${f}`,
|
|
2024
2024
|
class: G(e.cardSize === w(q).Small ? "loading-tabs-small" : "loading-tabs-large")
|
|
2025
|
-
}, null, 8, ["class"])) : (p(),
|
|
2025
|
+
}, null, 8, ["class"])) : (p(), N(ei, Qe({ key: f }, a(u), {
|
|
2026
2026
|
"card-size": e.cardSize,
|
|
2027
2027
|
"card-type": u.cardType,
|
|
2028
2028
|
description: u.description,
|
|
@@ -2037,7 +2037,7 @@ const ii = /* @__PURE__ */ ye(ei, [["render", ti], ["__scopeId", "data-v-f7eb9c4
|
|
|
2037
2037
|
]))
|
|
2038
2038
|
], 2));
|
|
2039
2039
|
}
|
|
2040
|
-
}),
|
|
2040
|
+
}), di = /* @__PURE__ */ ye(li, [["__scopeId", "data-v-0483795d"]]), mi = /* @__PURE__ */ k({
|
|
2041
2041
|
__name: "MetricsConsumer",
|
|
2042
2042
|
props: {
|
|
2043
2043
|
lookupKey: { default: void 0 },
|
|
@@ -2098,16 +2098,16 @@ const ii = /* @__PURE__ */ ye(ei, [["render", ti], ["__scopeId", "data-v-f7eb9c4
|
|
|
2098
2098
|
latencyFormatted: o(s.value.currentValue)
|
|
2099
2099
|
}));
|
|
2100
2100
|
return (m, h) => ke(m.$slots, "default", { cardValues: b.value }, () => [
|
|
2101
|
-
X(w(
|
|
2101
|
+
X(w(di), We(Je(v.value)), null, 16)
|
|
2102
2102
|
]);
|
|
2103
2103
|
}
|
|
2104
|
-
}), ee = (e) => new Date(e),
|
|
2104
|
+
}), ee = (e) => new Date(e), hi = (e, r) => {
|
|
2105
2105
|
const t = e.body;
|
|
2106
2106
|
e.reply({
|
|
2107
2107
|
statusCode: 200,
|
|
2108
|
-
body:
|
|
2108
|
+
body: ci(t, r)
|
|
2109
2109
|
});
|
|
2110
|
-
}, Ie = (e) => e.reduce((r, t) => (r[t] = { name: t }, r), {}),
|
|
2110
|
+
}, Ie = (e) => e.reduce((r, t) => (r[t] = { name: t }, r), {}), ci = (e, r) => {
|
|
2111
2111
|
var b, m;
|
|
2112
2112
|
const t = re.get(te.ONE_DAY), a = e.granularity === "trend" ? new rr(t) : new tr(t), n = a.endMs(), i = a.startMs(), u = a.granularityMs(), f = e.granularity === "trend" ? 2 : 1;
|
|
2113
2113
|
if ((e.dimensions ?? []).length > 2)
|
|
@@ -2146,8 +2146,8 @@ const ii = /* @__PURE__ */ ye(ei, [["render", ti], ["__scopeId", "data-v-f7eb9c4
|
|
|
2146
2146
|
};
|
|
2147
2147
|
};
|
|
2148
2148
|
export {
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2149
|
+
mi as MetricsConsumer,
|
|
2150
|
+
yi as MetricsProvider,
|
|
2151
|
+
ci as mockExploreResponse,
|
|
2152
|
+
hi as mockExploreResponseFromCypress
|
|
2153
2153
|
};
|