@kong-ui-public/dashboard-renderer 0.23.40 → 0.23.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard-renderer.es.js +379 -377
- package/dist/dashboard-renderer.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ref as v, watchEffect as
|
|
2
|
-
import { ChartMetricDisplay as
|
|
3
|
-
import { granularityValues as
|
|
1
|
+
import { ref as v, watchEffect as Ye, defineComponent as O, inject as ie, onUnmounted as Te, computed as g, resolveComponent as z, unref as m, openBlock as h, createBlock as E, withCtx as T, createTextVNode as Ae, toDisplayString as K, renderSlot as ae, createCommentVNode as M, useCssVars as H, createElementVNode as V, createVNode as R, createElementBlock as C, normalizeProps as Ee, guardReactiveProps as Ze, withModifiers as Qe, toValue as We, watch as Je, resolveDynamicComponent as Ce, normalizeStyle as te, pushScopeId as Xe, popScopeId as et, createSlots as tt, mergeProps as rt, onMounted as nt, Fragment as it, renderList as at, normalizeClass as ot } from "vue";
|
|
2
|
+
import { ChartMetricDisplay as st, ChartTypesSimple as lt, SimpleChart as ct, ChartTypes as re, AnalyticsChart as qe, TopNTable as ut } from "@kong-ui-public/analytics-chart";
|
|
3
|
+
import { granularityValues as pt, exploreFilterTypesV2 as dt, exploreAggregations as yt, queryableExploreDimensions as ft, filterableExploreDimensions as ht, basicExploreAggregations as mt, queryableBasicExploreDimensions as gt, filterableBasicExploreDimensions as vt, aiExploreAggregations as bt, queryableAiExploreDimensions as wt, filterableAiExploreDimensions as _t, relativeTimeRangeValuesV4 as St, stripUnknownFilters as xt, Timeframe as kt, TimePeriods as It } from "@kong-ui-public/analytics-utilities";
|
|
4
4
|
import Tt from "swrv";
|
|
5
5
|
import ye from "axios";
|
|
6
|
-
import { createI18n as
|
|
7
|
-
import { MetricsProvider as
|
|
6
|
+
import { createI18n as Oe, i18nTComponent as Ne } from "@kong-ui-public/i18n";
|
|
7
|
+
import { MetricsProvider as At, MetricsConsumer as Et } from "@kong-ui-public/analytics-metric-provider";
|
|
8
8
|
import "@kong/kongponents";
|
|
9
9
|
import "vue-router";
|
|
10
|
-
import { useAnalyticsConfigStore as
|
|
11
|
-
const
|
|
10
|
+
import { useAnalyticsConfigStore as Ct } from "@kong-ui-public/analytics-config-store";
|
|
11
|
+
const Q = 170, Re = "analytics-query-provider", fe = "{entity-id}", qt = "{cp-id}", Ot = "{timeframe}", Nt = 30 * 1e3;
|
|
12
12
|
var A = /* @__PURE__ */ ((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))(A || {});
|
|
13
|
-
const
|
|
13
|
+
const W = {
|
|
14
14
|
type: "string"
|
|
15
15
|
}, Y = {
|
|
16
16
|
type: "string"
|
|
@@ -24,7 +24,7 @@ const Q = {
|
|
|
24
24
|
additionalProperties: {
|
|
25
25
|
type: "string"
|
|
26
26
|
}
|
|
27
|
-
},
|
|
27
|
+
}, Rt = {
|
|
28
28
|
type: "object",
|
|
29
29
|
properties: {
|
|
30
30
|
type: {
|
|
@@ -40,7 +40,7 @@ const Q = {
|
|
|
40
40
|
},
|
|
41
41
|
required: ["type", "id"],
|
|
42
42
|
additionalProperties: !1
|
|
43
|
-
},
|
|
43
|
+
}, Lt = {
|
|
44
44
|
type: "object",
|
|
45
45
|
properties: {
|
|
46
46
|
type: {
|
|
@@ -55,13 +55,13 @@ const Q = {
|
|
|
55
55
|
type: "boolean"
|
|
56
56
|
},
|
|
57
57
|
chartDatasetColors: De,
|
|
58
|
-
syntheticsDataKey:
|
|
58
|
+
syntheticsDataKey: W,
|
|
59
59
|
chartTitle: Y,
|
|
60
60
|
allowCsvExport: Le
|
|
61
61
|
},
|
|
62
62
|
required: ["type"],
|
|
63
63
|
additionalProperties: !1
|
|
64
|
-
},
|
|
64
|
+
}, Dt = {
|
|
65
65
|
type: "object",
|
|
66
66
|
properties: {
|
|
67
67
|
type: {
|
|
@@ -75,13 +75,13 @@ const Q = {
|
|
|
75
75
|
type: "boolean"
|
|
76
76
|
},
|
|
77
77
|
chartDatasetColors: De,
|
|
78
|
-
syntheticsDataKey:
|
|
78
|
+
syntheticsDataKey: W,
|
|
79
79
|
chartTitle: Y,
|
|
80
80
|
allowCsvExport: Le
|
|
81
81
|
},
|
|
82
82
|
required: ["type"],
|
|
83
83
|
additionalProperties: !1
|
|
84
|
-
},
|
|
84
|
+
}, jt = {
|
|
85
85
|
type: "object",
|
|
86
86
|
properties: {
|
|
87
87
|
type: {
|
|
@@ -93,7 +93,7 @@ const Q = {
|
|
|
93
93
|
},
|
|
94
94
|
metricDisplay: {
|
|
95
95
|
type: "string",
|
|
96
|
-
enum: Object.values(
|
|
96
|
+
enum: Object.values(st)
|
|
97
97
|
},
|
|
98
98
|
reverseDataset: {
|
|
99
99
|
type: "boolean"
|
|
@@ -101,16 +101,16 @@ const Q = {
|
|
|
101
101
|
numerator: {
|
|
102
102
|
type: "number"
|
|
103
103
|
},
|
|
104
|
-
syntheticsDataKey:
|
|
104
|
+
syntheticsDataKey: W,
|
|
105
105
|
chartTitle: Y
|
|
106
106
|
},
|
|
107
107
|
required: ["type"],
|
|
108
108
|
additionalProperties: !1
|
|
109
|
-
},
|
|
109
|
+
}, $t = {
|
|
110
110
|
type: "object",
|
|
111
111
|
properties: {
|
|
112
112
|
chartTitle: Y,
|
|
113
|
-
syntheticsDataKey:
|
|
113
|
+
syntheticsDataKey: W,
|
|
114
114
|
type: {
|
|
115
115
|
type: "string",
|
|
116
116
|
enum: [
|
|
@@ -127,7 +127,7 @@ const Q = {
|
|
|
127
127
|
},
|
|
128
128
|
required: ["type"],
|
|
129
129
|
additionalProperties: !1
|
|
130
|
-
},
|
|
130
|
+
}, Pt = {
|
|
131
131
|
type: "object",
|
|
132
132
|
properties: {
|
|
133
133
|
chartTitle: Y,
|
|
@@ -150,7 +150,7 @@ const Q = {
|
|
|
150
150
|
},
|
|
151
151
|
required: ["type"],
|
|
152
152
|
additionalProperties: !1
|
|
153
|
-
},
|
|
153
|
+
}, Ft = {
|
|
154
154
|
type: "object",
|
|
155
155
|
properties: {
|
|
156
156
|
tz: {
|
|
@@ -165,7 +165,7 @@ const Q = {
|
|
|
165
165
|
},
|
|
166
166
|
time_range: {
|
|
167
167
|
type: "string",
|
|
168
|
-
enum:
|
|
168
|
+
enum: St,
|
|
169
169
|
default: "1h"
|
|
170
170
|
}
|
|
171
171
|
},
|
|
@@ -174,7 +174,7 @@ const Q = {
|
|
|
174
174
|
"time_range"
|
|
175
175
|
],
|
|
176
176
|
additionalProperties: !1
|
|
177
|
-
},
|
|
177
|
+
}, Ut = {
|
|
178
178
|
type: "object",
|
|
179
179
|
description: "A duration representing an exact start and end time.",
|
|
180
180
|
properties: {
|
|
@@ -204,14 +204,14 @@ const Q = {
|
|
|
204
204
|
granularity: {
|
|
205
205
|
type: "string",
|
|
206
206
|
description: 'Force time grouping into buckets of this duration. Only has an effect if "time" is in the "dimensions" list.',
|
|
207
|
-
enum:
|
|
207
|
+
enum: pt
|
|
208
208
|
},
|
|
209
209
|
time_range: {
|
|
210
210
|
type: "object",
|
|
211
211
|
description: "The time range to query.",
|
|
212
212
|
anyOf: [
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
Ft,
|
|
214
|
+
Ut
|
|
215
215
|
],
|
|
216
216
|
default: {
|
|
217
217
|
type: "relative",
|
|
@@ -253,7 +253,7 @@ const Q = {
|
|
|
253
253
|
},
|
|
254
254
|
type: {
|
|
255
255
|
type: "string",
|
|
256
|
-
enum:
|
|
256
|
+
enum: dt
|
|
257
257
|
},
|
|
258
258
|
values: {
|
|
259
259
|
type: "array",
|
|
@@ -279,14 +279,14 @@ const Q = {
|
|
|
279
279
|
"advanced"
|
|
280
280
|
]
|
|
281
281
|
},
|
|
282
|
-
metrics: se(
|
|
283
|
-
dimensions: le(
|
|
284
|
-
filters: ce(
|
|
282
|
+
metrics: se(yt),
|
|
283
|
+
dimensions: le(ft),
|
|
284
|
+
filters: ce(ht),
|
|
285
285
|
...oe
|
|
286
286
|
},
|
|
287
287
|
required: ["datasource"],
|
|
288
288
|
additionalProperties: !1
|
|
289
|
-
},
|
|
289
|
+
}, Kt = {
|
|
290
290
|
type: "object",
|
|
291
291
|
description: "A query to launch at the basic explore API",
|
|
292
292
|
properties: {
|
|
@@ -296,9 +296,9 @@ const Q = {
|
|
|
296
296
|
"basic"
|
|
297
297
|
]
|
|
298
298
|
},
|
|
299
|
-
metrics: se(
|
|
300
|
-
dimensions: le(
|
|
301
|
-
filters: ce(
|
|
299
|
+
metrics: se(mt),
|
|
300
|
+
dimensions: le(gt),
|
|
301
|
+
filters: ce(vt),
|
|
302
302
|
...oe
|
|
303
303
|
},
|
|
304
304
|
required: ["datasource"],
|
|
@@ -313,26 +313,26 @@ const Q = {
|
|
|
313
313
|
"ai"
|
|
314
314
|
]
|
|
315
315
|
},
|
|
316
|
-
metrics: se(
|
|
317
|
-
dimensions: le(
|
|
318
|
-
filters: ce(
|
|
316
|
+
metrics: se(bt),
|
|
317
|
+
dimensions: le(wt),
|
|
318
|
+
filters: ce(_t),
|
|
319
319
|
...oe
|
|
320
320
|
},
|
|
321
321
|
required: ["datasource"],
|
|
322
322
|
additionalProperties: !1
|
|
323
|
-
}, Kt = {
|
|
324
|
-
anyOf: [zt, Ut, Vt]
|
|
325
323
|
}, Bt = {
|
|
324
|
+
anyOf: [zt, Kt, Vt]
|
|
325
|
+
}, Mt = {
|
|
326
326
|
type: "object",
|
|
327
327
|
properties: {
|
|
328
|
-
query:
|
|
328
|
+
query: Bt,
|
|
329
329
|
chart: {
|
|
330
|
-
anyOf: [
|
|
330
|
+
anyOf: [Lt, jt, Dt, Pt, $t, Rt]
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
required: ["query", "chart"],
|
|
334
334
|
additionalProperties: !1
|
|
335
|
-
},
|
|
335
|
+
}, Gt = {
|
|
336
336
|
type: "object",
|
|
337
337
|
properties: {
|
|
338
338
|
position: {
|
|
@@ -369,24 +369,24 @@ const Q = {
|
|
|
369
369
|
},
|
|
370
370
|
required: ["position", "size"],
|
|
371
371
|
additionalProperties: !1
|
|
372
|
-
},
|
|
372
|
+
}, Ht = {
|
|
373
373
|
type: "object",
|
|
374
374
|
properties: {
|
|
375
|
-
definition:
|
|
376
|
-
layout:
|
|
375
|
+
definition: Mt,
|
|
376
|
+
layout: Gt
|
|
377
377
|
},
|
|
378
378
|
required: ["definition", "layout"],
|
|
379
379
|
additionalProperties: !1
|
|
380
|
-
},
|
|
380
|
+
}, Fi = {
|
|
381
381
|
type: "object",
|
|
382
382
|
properties: {
|
|
383
383
|
tiles: {
|
|
384
384
|
type: "array",
|
|
385
|
-
items:
|
|
385
|
+
items: Ht
|
|
386
386
|
},
|
|
387
387
|
tileHeight: {
|
|
388
388
|
type: "number",
|
|
389
|
-
description: `Height of each tile in pixels. Default: ${
|
|
389
|
+
description: `Height of each tile in pixels. Default: ${Q}`
|
|
390
390
|
},
|
|
391
391
|
gridSize: {
|
|
392
392
|
type: "object",
|
|
@@ -407,17 +407,17 @@ const Q = {
|
|
|
407
407
|
additionalProperties: !1
|
|
408
408
|
};
|
|
409
409
|
var je = /* @__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))(je || {});
|
|
410
|
-
const
|
|
410
|
+
const Yt = (e) => {
|
|
411
411
|
var t, r, i, n, a;
|
|
412
412
|
return e ? !!// TODO: revisit: currently only the first check ever matters?
|
|
413
413
|
((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 || !((a = e.data) != null && a.data) && typeof e.data == "object" && Object.keys(e == null ? void 0 : e.data).length) : !1;
|
|
414
414
|
};
|
|
415
|
-
function
|
|
415
|
+
function Zt(e = v({}), t, r, i = Yt) {
|
|
416
416
|
const n = v(
|
|
417
417
|
"PENDING"
|
|
418
418
|
/* PENDING */
|
|
419
419
|
);
|
|
420
|
-
return
|
|
420
|
+
return Ye(() => {
|
|
421
421
|
const a = i(e.value);
|
|
422
422
|
if (e.value && a && r.value) {
|
|
423
423
|
n.value = "VALIDATING_HAS_DATA";
|
|
@@ -449,30 +449,30 @@ function Yt(e = v({}), t, r, i = Ht) {
|
|
|
449
449
|
swrvState: je
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
|
-
const
|
|
452
|
+
const Qt = {
|
|
453
453
|
noQueryBridge: "No query bridge provided. Unable to render dashboard.",
|
|
454
454
|
trendRange: {
|
|
455
455
|
"24h": "Last 24-Hour Summary",
|
|
456
456
|
"7d": "Last 7-Day Summary",
|
|
457
457
|
"30d": "Last 30-Day Summary"
|
|
458
458
|
}
|
|
459
|
-
},
|
|
459
|
+
}, Wt = {
|
|
460
460
|
timeRangeExceeded: "The time range for this report is outside of your organization's data retention period"
|
|
461
|
-
},
|
|
462
|
-
renderer:
|
|
463
|
-
queryDataProvider:
|
|
461
|
+
}, Jt = {
|
|
462
|
+
renderer: Qt,
|
|
463
|
+
queryDataProvider: Wt
|
|
464
464
|
};
|
|
465
|
-
function
|
|
466
|
-
const e =
|
|
465
|
+
function Xt() {
|
|
466
|
+
const e = Oe("en-us", Jt);
|
|
467
467
|
return {
|
|
468
468
|
i18n: e,
|
|
469
|
-
i18nT:
|
|
469
|
+
i18nT: Ne(e)
|
|
470
470
|
// Translation component <i18n-t>
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
const $e = {
|
|
474
|
-
useI18n:
|
|
475
|
-
}, J = /* @__PURE__ */
|
|
474
|
+
useI18n: Xt
|
|
475
|
+
}, J = /* @__PURE__ */ O({
|
|
476
476
|
__name: "QueryDataProvider",
|
|
477
477
|
props: {
|
|
478
478
|
context: {},
|
|
@@ -482,24 +482,24 @@ const $e = {
|
|
|
482
482
|
emits: ["queryComplete"],
|
|
483
483
|
setup(e, { emit: t }) {
|
|
484
484
|
const r = e, i = t, { i18n: n } = $e.useI18n(), a = ie(Re), o = () => r.queryReady && a ? JSON.stringify([r.query, r.context]) : null, s = new AbortController();
|
|
485
|
-
|
|
485
|
+
Te(() => {
|
|
486
486
|
s.abort();
|
|
487
487
|
});
|
|
488
|
-
const c = (
|
|
488
|
+
const c = (N, L, f) => {
|
|
489
489
|
const q = [];
|
|
490
|
-
return L && q.push(...L), q.push(...
|
|
490
|
+
return L && q.push(...L), q.push(...xt(N, f)), q;
|
|
491
491
|
}, { data: u, error: p, isValidating: l } = Tt(o, async () => {
|
|
492
|
-
var
|
|
492
|
+
var N, L, f, q;
|
|
493
493
|
try {
|
|
494
494
|
let {
|
|
495
495
|
datasource: w,
|
|
496
|
-
...
|
|
496
|
+
...Z
|
|
497
497
|
} = r.query;
|
|
498
498
|
!w && a && (w = a.evaluateFeatureFlagFn("MA-2527-analytics-sku-config-endpoint", !1) ? "basic" : "advanced");
|
|
499
499
|
const x = c(w, r.query.filters, r.context.filters), k = {
|
|
500
500
|
datasource: w,
|
|
501
501
|
query: {
|
|
502
|
-
...
|
|
502
|
+
...Z,
|
|
503
503
|
time_range: {
|
|
504
504
|
...r.context.timeSpec,
|
|
505
505
|
tz: r.context.tz
|
|
@@ -509,16 +509,16 @@ const $e = {
|
|
|
509
509
|
};
|
|
510
510
|
return a == null ? void 0 : a.queryFn(k, s);
|
|
511
511
|
} catch (w) {
|
|
512
|
-
b.value = ((L = (
|
|
512
|
+
b.value = ((L = (N = w == null ? void 0 : w.response) == null ? void 0 : N.data) == null ? void 0 : L.message) === "Range not allowed for this tier" ? n.t("queryDataProvider.timeRangeExceeded") : ((q = (f = w == null ? void 0 : w.response) == null ? void 0 : f.data) == null ? void 0 : q.message) || (w == null ? void 0 : w.message);
|
|
513
513
|
} finally {
|
|
514
514
|
i("queryComplete");
|
|
515
515
|
}
|
|
516
516
|
}, {
|
|
517
517
|
refreshInterval: r.context.refreshInterval,
|
|
518
518
|
revalidateOnFocus: !1
|
|
519
|
-
}), { state: d, swrvState: y } =
|
|
520
|
-
return (
|
|
521
|
-
const f =
|
|
519
|
+
}), { state: d, swrvState: y } = Zt(u, p, l), b = v(null), S = g(() => d.value === y.ERROR || !!b.value), B = g(() => !r.queryReady || d.value === y.PENDING);
|
|
520
|
+
return (N, L) => {
|
|
521
|
+
const f = z("KSkeleton"), q = z("KEmptyState");
|
|
522
522
|
return B.value || !m(u) && !S.value ? (h(), E(f, {
|
|
523
523
|
key: 0,
|
|
524
524
|
class: "chart-skeleton",
|
|
@@ -529,17 +529,17 @@ const $e = {
|
|
|
529
529
|
"data-testid": "chart-empty-state",
|
|
530
530
|
"icon-variant": "error"
|
|
531
531
|
}, {
|
|
532
|
-
default:
|
|
533
|
-
Ae(
|
|
532
|
+
default: T(() => [
|
|
533
|
+
Ae(K(b.value), 1)
|
|
534
534
|
]),
|
|
535
535
|
_: 1
|
|
536
|
-
})) : m(u) ? ae(
|
|
536
|
+
})) : m(u) ? ae(N.$slots, "default", {
|
|
537
537
|
key: 2,
|
|
538
538
|
data: m(u)
|
|
539
539
|
}) : M("", !0);
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
|
-
}),
|
|
542
|
+
}), er = { class: "analytics-chart" }, tr = /* @__PURE__ */ O({
|
|
543
543
|
__name: "SimpleChartRenderer",
|
|
544
544
|
props: {
|
|
545
545
|
query: {},
|
|
@@ -553,7 +553,7 @@ const $e = {
|
|
|
553
553
|
"8c62ff26": `${n.height}px`
|
|
554
554
|
}));
|
|
555
555
|
const t = e, r = {
|
|
556
|
-
[A.Gauge]:
|
|
556
|
+
[A.Gauge]: lt.GAUGE
|
|
557
557
|
}, i = g(() => ({
|
|
558
558
|
...t.chartOptions,
|
|
559
559
|
type: r[t.chartOptions.type]
|
|
@@ -563,9 +563,9 @@ const $e = {
|
|
|
563
563
|
query: n.query,
|
|
564
564
|
"query-ready": n.queryReady
|
|
565
565
|
}, {
|
|
566
|
-
default:
|
|
567
|
-
|
|
568
|
-
R(m(
|
|
566
|
+
default: T(({ data: o }) => [
|
|
567
|
+
V("div", er, [
|
|
568
|
+
R(m(ct), {
|
|
569
569
|
"chart-data": o,
|
|
570
570
|
"chart-options": i.value,
|
|
571
571
|
"synthetics-data-key": n.chartOptions.syntheticsDataKey
|
|
@@ -580,7 +580,7 @@ const $e = {
|
|
|
580
580
|
for (const [i, n] of t)
|
|
581
581
|
r[i] = n;
|
|
582
582
|
return r;
|
|
583
|
-
},
|
|
583
|
+
}, rr = /* @__PURE__ */ $(tr, [["__scopeId", "data-v-f0f6ed41"]]), nr = { class: "analytics-chart" }, ir = /* @__PURE__ */ O({
|
|
584
584
|
__name: "BarChartRenderer",
|
|
585
585
|
props: {
|
|
586
586
|
query: {},
|
|
@@ -606,8 +606,8 @@ const $e = {
|
|
|
606
606
|
query: n.query,
|
|
607
607
|
"query-ready": n.queryReady
|
|
608
608
|
}, {
|
|
609
|
-
default:
|
|
610
|
-
|
|
609
|
+
default: T(({ data: o }) => [
|
|
610
|
+
V("div", nr, [
|
|
611
611
|
R(m(qe), {
|
|
612
612
|
"allow-csv-export": n.chartOptions.allowCsvExport,
|
|
613
613
|
"chart-data": o,
|
|
@@ -623,7 +623,7 @@ const $e = {
|
|
|
623
623
|
_: 1
|
|
624
624
|
}, 8, ["context", "query", "query-ready"]));
|
|
625
625
|
}
|
|
626
|
-
}), he = /* @__PURE__ */ $(
|
|
626
|
+
}), he = /* @__PURE__ */ $(ir, [["__scopeId", "data-v-36598a1b"]]), ar = { class: "analytics-chart" }, or = /* @__PURE__ */ O({
|
|
627
627
|
__name: "TimeseriesChartRenderer",
|
|
628
628
|
props: {
|
|
629
629
|
query: {},
|
|
@@ -652,8 +652,8 @@ const $e = {
|
|
|
652
652
|
query: n.query,
|
|
653
653
|
"query-ready": n.queryReady
|
|
654
654
|
}, {
|
|
655
|
-
default:
|
|
656
|
-
|
|
655
|
+
default: T(({ data: o }) => [
|
|
656
|
+
V("div", ar, [
|
|
657
657
|
R(m(qe), {
|
|
658
658
|
"allow-csv-export": n.chartOptions.allowCsvExport,
|
|
659
659
|
"chart-data": o,
|
|
@@ -668,7 +668,7 @@ const $e = {
|
|
|
668
668
|
_: 1
|
|
669
669
|
}, 8, ["context", "query", "query-ready"]));
|
|
670
670
|
}
|
|
671
|
-
}),
|
|
671
|
+
}), sr = /* @__PURE__ */ $(or, [["__scopeId", "data-v-ceb07ca8"]]), lr = { class: "metric-card-tile-wrapper" }, cr = /* @__PURE__ */ O({
|
|
672
672
|
__name: "GoldenSignalsRenderer",
|
|
673
673
|
props: {
|
|
674
674
|
query: {},
|
|
@@ -681,7 +681,7 @@ const $e = {
|
|
|
681
681
|
const t = e, r = g(() => {
|
|
682
682
|
const n = t.context.timeSpec;
|
|
683
683
|
if (n.type === "absolute")
|
|
684
|
-
return new
|
|
684
|
+
return new kt({
|
|
685
685
|
key: "custom",
|
|
686
686
|
timeframeText: "custom",
|
|
687
687
|
display: "custom",
|
|
@@ -693,7 +693,7 @@ const $e = {
|
|
|
693
693
|
isRelative: !1,
|
|
694
694
|
allowedTiers: ["free", "plus", "enterprise"]
|
|
695
695
|
});
|
|
696
|
-
const a =
|
|
696
|
+
const a = It.get(n.time_range);
|
|
697
697
|
if (!a)
|
|
698
698
|
throw new Error("Unknown time range");
|
|
699
699
|
return a;
|
|
@@ -713,18 +713,19 @@ const $e = {
|
|
|
713
713
|
queryReady: t.queryReady
|
|
714
714
|
};
|
|
715
715
|
});
|
|
716
|
-
return (n, a) => (h(), C("div",
|
|
717
|
-
R(m(
|
|
718
|
-
default:
|
|
719
|
-
R(m(
|
|
716
|
+
return (n, a) => (h(), C("div", lr, [
|
|
717
|
+
R(m(At), Ee(Ze(i.value)), {
|
|
718
|
+
default: T(() => [
|
|
719
|
+
R(m(Et))
|
|
720
720
|
]),
|
|
721
721
|
_: 1
|
|
722
722
|
}, 16)
|
|
723
723
|
]));
|
|
724
724
|
}
|
|
725
|
-
}),
|
|
726
|
-
var
|
|
727
|
-
|
|
725
|
+
}), ur = /* @__PURE__ */ $(cr, [["__scopeId", "data-v-7d1a3f03"]]), Pe = "20px";
|
|
726
|
+
var U = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(U || {}), Fe = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "key_set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e))(Fe || {});
|
|
727
|
+
Object.values(Fe);
|
|
728
|
+
function pr() {
|
|
728
729
|
return {
|
|
729
730
|
getAxiosInstance: (e = {}) => {
|
|
730
731
|
try {
|
|
@@ -748,7 +749,7 @@ function ur() {
|
|
|
748
749
|
}
|
|
749
750
|
};
|
|
750
751
|
}
|
|
751
|
-
function
|
|
752
|
+
function dr() {
|
|
752
753
|
return {
|
|
753
754
|
debounce: (e, t) => {
|
|
754
755
|
let r;
|
|
@@ -761,22 +762,22 @@ function pr() {
|
|
|
761
762
|
};
|
|
762
763
|
}
|
|
763
764
|
function ue(e = {}) {
|
|
764
|
-
const { getAxiosInstance: t } =
|
|
765
|
+
const { getAxiosInstance: t } = pr();
|
|
765
766
|
return {
|
|
766
767
|
axiosInstance: t(e)
|
|
767
768
|
};
|
|
768
769
|
}
|
|
769
|
-
const
|
|
770
|
+
const yr = {
|
|
770
771
|
actions: {
|
|
771
772
|
copyId: "Copy ID",
|
|
772
773
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
773
774
|
copyToClipboard: "Copied successfully!",
|
|
774
775
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
775
776
|
}
|
|
776
|
-
},
|
|
777
|
+
}, fr = {
|
|
777
778
|
message: "Are you sure you want to delete this {entityType}?",
|
|
778
779
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
779
|
-
},
|
|
780
|
+
}, hr = {
|
|
780
781
|
actions: {
|
|
781
782
|
viewConfiguration: "View Configuration",
|
|
782
783
|
save: "Save",
|
|
@@ -787,18 +788,19 @@ const dr = {
|
|
|
787
788
|
title: "Configuration",
|
|
788
789
|
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.",
|
|
789
790
|
yaml: "YAML",
|
|
790
|
-
json: "JSON"
|
|
791
|
+
json: "JSON",
|
|
792
|
+
terraform: "Terraform"
|
|
791
793
|
},
|
|
792
794
|
errors: {
|
|
793
795
|
edit: "The entity could not be edited at this time."
|
|
794
796
|
}
|
|
795
|
-
},
|
|
797
|
+
}, mr = {
|
|
796
798
|
emptyState: {
|
|
797
799
|
noSearchResultsTitle: "No results found",
|
|
798
800
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
799
801
|
noSearchResultsCtaText: "Clear"
|
|
800
802
|
}
|
|
801
|
-
},
|
|
803
|
+
}, gr = {
|
|
802
804
|
title: "Configuration",
|
|
803
805
|
actions: {
|
|
804
806
|
copy: "Copy JSON"
|
|
@@ -833,7 +835,7 @@ const dr = {
|
|
|
833
835
|
entryTitle: "Entry {index}",
|
|
834
836
|
structuredFormat: "Structured"
|
|
835
837
|
}
|
|
836
|
-
},
|
|
838
|
+
}, vr = {
|
|
837
839
|
filterButtonText: "Filter",
|
|
838
840
|
fieldLabel: "Filter by:",
|
|
839
841
|
inputPlaceholder: "Enter a value",
|
|
@@ -841,17 +843,17 @@ const dr = {
|
|
|
841
843
|
applyButtonText: "Apply",
|
|
842
844
|
clearButtonText: "Clear",
|
|
843
845
|
clearAllButtonText: "Clear all filters"
|
|
844
|
-
},
|
|
846
|
+
}, br = {
|
|
845
847
|
errors: {
|
|
846
848
|
fetch: "Could not fetch available items",
|
|
847
849
|
invalid: "Please select a valid value"
|
|
848
850
|
}
|
|
849
|
-
},
|
|
851
|
+
}, wr = {
|
|
850
852
|
unexpected: "An unexpected error has occurred",
|
|
851
853
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
852
|
-
}, wr = {
|
|
853
|
-
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
854
854
|
}, _r = {
|
|
855
|
+
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
856
|
+
}, Sr = {
|
|
855
857
|
enable: {
|
|
856
858
|
title: "Enable {entityType}",
|
|
857
859
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -862,27 +864,27 @@ const dr = {
|
|
|
862
864
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
863
865
|
confirmText: "Yes, disable"
|
|
864
866
|
}
|
|
865
|
-
},
|
|
866
|
-
global:
|
|
867
|
-
deleteModal:
|
|
868
|
-
baseForm:
|
|
869
|
-
baseTable:
|
|
870
|
-
baseConfigCard:
|
|
871
|
-
filter:
|
|
872
|
-
debouncedFilter:
|
|
873
|
-
errors:
|
|
874
|
-
validationErrors:
|
|
875
|
-
toggleModal:
|
|
867
|
+
}, xr = {
|
|
868
|
+
global: yr,
|
|
869
|
+
deleteModal: fr,
|
|
870
|
+
baseForm: hr,
|
|
871
|
+
baseTable: mr,
|
|
872
|
+
baseConfigCard: gr,
|
|
873
|
+
filter: vr,
|
|
874
|
+
debouncedFilter: br,
|
|
875
|
+
errors: wr,
|
|
876
|
+
validationErrors: _r,
|
|
877
|
+
toggleModal: Sr
|
|
876
878
|
};
|
|
877
879
|
function X() {
|
|
878
|
-
const e =
|
|
880
|
+
const e = Oe("en-us", xr);
|
|
879
881
|
return {
|
|
880
882
|
i18n: e,
|
|
881
|
-
i18nT:
|
|
883
|
+
i18nT: Ne(e)
|
|
882
884
|
// Translation component <i18n-t>
|
|
883
885
|
};
|
|
884
886
|
}
|
|
885
|
-
function
|
|
887
|
+
function Ue() {
|
|
886
888
|
const e = (r, i) => (i == null ? void 0 : i[r]) ?? void 0, t = (r, i) => {
|
|
887
889
|
if (r.length !== i.length) return !1;
|
|
888
890
|
const n = /* @__PURE__ */ new Set([...r, ...i]);
|
|
@@ -924,17 +926,17 @@ function Fe() {
|
|
|
924
926
|
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
|
|
925
927
|
};
|
|
926
928
|
}
|
|
927
|
-
function
|
|
929
|
+
function kr(e, t, r, i = {
|
|
928
930
|
fetchedItemsKey: "data",
|
|
929
931
|
searchKeys: ["id"]
|
|
930
932
|
}) {
|
|
931
933
|
r || (r = "1000");
|
|
932
|
-
const { axiosInstance: n } = ue(e.axiosRequestConfig), { i18n: { t: a } } = X(), { debounce: o } =
|
|
934
|
+
const { axiosInstance: n } = ue(e.axiosRequestConfig), { i18n: { t: a } } = X(), { debounce: o } = dr(), s = o(async (f) => {
|
|
933
935
|
await L(f);
|
|
934
936
|
}, 200), c = v(!1), u = v(""), p = v(""), l = v([]), d = v([]), y = v(void 0), b = g(() => {
|
|
935
937
|
const f = `${e.apiBaseUrl}${m(t)}`;
|
|
936
938
|
return e.app === "konnect" ? f.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? f.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : f;
|
|
937
|
-
}), { isValidUuid: S } =
|
|
939
|
+
}), { isValidUuid: S } = Ue(), B = async () => {
|
|
938
940
|
try {
|
|
939
941
|
c.value = !0;
|
|
940
942
|
const { data: f } = await n.get(`${b.value}?size=${r}`);
|
|
@@ -944,10 +946,10 @@ function xr(e, t, r, i = {
|
|
|
944
946
|
} finally {
|
|
945
947
|
c.value = !1;
|
|
946
948
|
}
|
|
947
|
-
},
|
|
948
|
-
var q, w,
|
|
949
|
-
if (
|
|
950
|
-
if (
|
|
949
|
+
}, N = v(""), L = async (f) => {
|
|
950
|
+
var q, w, Z;
|
|
951
|
+
if (N.value !== f) {
|
|
952
|
+
if (N.value = f ?? "", !f) {
|
|
951
953
|
l.value = d.value;
|
|
952
954
|
return;
|
|
953
955
|
}
|
|
@@ -959,18 +961,18 @@ function xr(e, t, r, i = {
|
|
|
959
961
|
} else {
|
|
960
962
|
const x = [];
|
|
961
963
|
S(f) && i.searchKeys.includes("id") ? x.push((async () => {
|
|
962
|
-
const { data:
|
|
963
|
-
return [
|
|
964
|
+
const { data: I } = await n.get(`${b.value}/${f}`);
|
|
965
|
+
return [I[i.fetchedItemsKey] ?? I];
|
|
964
966
|
})()) : x.push(
|
|
965
|
-
...i.searchKeys.filter((
|
|
966
|
-
const { data: D } = await n.get(`${b.value}?${
|
|
967
|
+
...i.searchKeys.filter((I) => I !== "id").map(async (I) => {
|
|
968
|
+
const { data: D } = await n.get(`${b.value}?${I}=${f}`);
|
|
967
969
|
return D[i.fetchedItemsKey];
|
|
968
970
|
})
|
|
969
971
|
);
|
|
970
972
|
const k = await Promise.all(x), P = /* @__PURE__ */ new Set();
|
|
971
|
-
l.value = [], (q = k == null ? void 0 : k.forEach) == null || q.call(k, (
|
|
973
|
+
l.value = [], (q = k == null ? void 0 : k.forEach) == null || q.call(k, (I) => {
|
|
972
974
|
var D;
|
|
973
|
-
(D =
|
|
975
|
+
(D = I == null ? void 0 : I.forEach) == null || D.call(I, (ee) => {
|
|
974
976
|
P.has(ee.id) || (P.add(ee.id), l.value.push(ee));
|
|
975
977
|
});
|
|
976
978
|
});
|
|
@@ -981,11 +983,11 @@ function xr(e, t, r, i = {
|
|
|
981
983
|
c.value = !1;
|
|
982
984
|
}
|
|
983
985
|
else
|
|
984
|
-
c.value = !0, p.value = "", l.value = (
|
|
986
|
+
c.value = !0, p.value = "", l.value = (Z = y.value) == null ? void 0 : Z.filter((x) => {
|
|
985
987
|
var k;
|
|
986
988
|
let P = !1;
|
|
987
|
-
for (const
|
|
988
|
-
const D = typeof x[
|
|
989
|
+
for (const I of i.searchKeys) {
|
|
990
|
+
const D = typeof x[I] == "string" ? (k = x[I]) == null ? void 0 : k.toLowerCase() : x[I];
|
|
989
991
|
D != null && D.includes(f.toLowerCase()) && (P = !0);
|
|
990
992
|
}
|
|
991
993
|
return P;
|
|
@@ -1002,7 +1004,7 @@ function xr(e, t, r, i = {
|
|
|
1002
1004
|
debouncedQueryChange: s
|
|
1003
1005
|
};
|
|
1004
1006
|
}
|
|
1005
|
-
function
|
|
1007
|
+
function Ir(e, t) {
|
|
1006
1008
|
const r = m(t), i = g(
|
|
1007
1009
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r)
|
|
1008
1010
|
);
|
|
@@ -1038,7 +1040,7 @@ function Tr() {
|
|
|
1038
1040
|
}
|
|
1039
1041
|
};
|
|
1040
1042
|
}
|
|
1041
|
-
function
|
|
1043
|
+
function Ar(e) {
|
|
1042
1044
|
const t = window.location.origin, r = t.endsWith("/") ? t : `${t}/`;
|
|
1043
1045
|
try {
|
|
1044
1046
|
const i = e.join("/"), n = `${r}${i}`, a = e.some((o) => o.trim() === "");
|
|
@@ -1067,15 +1069,15 @@ function ze(e, t) {
|
|
|
1067
1069
|
}
|
|
1068
1070
|
};
|
|
1069
1071
|
}
|
|
1070
|
-
function
|
|
1072
|
+
function Er(e, t, r) {
|
|
1071
1073
|
const i = m(t), { axiosInstance: n } = ue(e.axiosRequestConfig), a = ze(e, i), o = v({
|
|
1072
|
-
status:
|
|
1074
|
+
status: U.Idle
|
|
1073
1075
|
});
|
|
1074
1076
|
return { fetcher: async (s) => {
|
|
1075
1077
|
var c;
|
|
1076
|
-
const u =
|
|
1078
|
+
const u = We(r) || "data";
|
|
1077
1079
|
try {
|
|
1078
|
-
o.value = { status:
|
|
1080
|
+
o.value = { status: U.Loading };
|
|
1079
1081
|
let p = a(s);
|
|
1080
1082
|
p.includes("filter[name]") && (p = `${p}&page[size]=${s.pageSize}&page[number]=${s.page}`);
|
|
1081
1083
|
const l = await n.get(p);
|
|
@@ -1094,7 +1096,7 @@ function Ar(e, t, r) {
|
|
|
1094
1096
|
} : null
|
|
1095
1097
|
};
|
|
1096
1098
|
return o.value = {
|
|
1097
|
-
status:
|
|
1099
|
+
status: U.Idle,
|
|
1098
1100
|
response: S
|
|
1099
1101
|
}, S;
|
|
1100
1102
|
} catch (p) {
|
|
@@ -1103,42 +1105,42 @@ function Ar(e, t, r) {
|
|
|
1103
1105
|
total: 0
|
|
1104
1106
|
};
|
|
1105
1107
|
return s.query && (((c = p.response) == null ? void 0 : c.status) === 404 || p.status === 404) ? (o.value = {
|
|
1106
|
-
status:
|
|
1108
|
+
status: U.NoResults,
|
|
1107
1109
|
response: l,
|
|
1108
1110
|
error: p.response ? p : { response: p }
|
|
1109
1111
|
}, l) : (o.value = {
|
|
1110
|
-
status:
|
|
1112
|
+
status: U.Error,
|
|
1111
1113
|
response: l,
|
|
1112
1114
|
error: p.response ? p : { response: p }
|
|
1113
1115
|
}, l);
|
|
1114
1116
|
}
|
|
1115
1117
|
}, fetcherState: o };
|
|
1116
1118
|
}
|
|
1117
|
-
function
|
|
1119
|
+
function Cr() {
|
|
1118
1120
|
const e = (r, i = "_") => r ? r.split(i).map((n) => n.toLowerCase() === "id" ? n.toUpperCase() : n.charAt(0).toUpperCase() + n.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
1119
1121
|
return {
|
|
1120
1122
|
capitalize: (r) => r ? r.replace(t, (i) => i.toUpperCase()) : "",
|
|
1121
1123
|
convertKeyToTitle: e
|
|
1122
1124
|
};
|
|
1123
1125
|
}
|
|
1124
|
-
const
|
|
1126
|
+
const Ke = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, me = (e) => {
|
|
1125
1127
|
if (typeof e != "string")
|
|
1126
1128
|
throw new TypeError("Invalid argument expected string");
|
|
1127
|
-
const t = e.match(
|
|
1129
|
+
const t = e.match(Ke);
|
|
1128
1130
|
if (!t)
|
|
1129
1131
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
1130
1132
|
return t.shift(), t;
|
|
1131
1133
|
}, ge = (e) => e === "*" || e === "x" || e === "X", ve = (e) => {
|
|
1132
1134
|
const t = parseInt(e, 10);
|
|
1133
1135
|
return isNaN(t) ? e : t;
|
|
1134
|
-
},
|
|
1136
|
+
}, qr = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Or = (e, t) => {
|
|
1135
1137
|
if (ge(e) || ge(t))
|
|
1136
1138
|
return 0;
|
|
1137
|
-
const [r, i] =
|
|
1139
|
+
const [r, i] = qr(ve(e), ve(t));
|
|
1138
1140
|
return r > i ? 1 : r < i ? -1 : 0;
|
|
1139
1141
|
}, be = (e, t) => {
|
|
1140
1142
|
for (let r = 0; r < Math.max(e.length, t.length); r++) {
|
|
1141
|
-
const i =
|
|
1143
|
+
const i = Or(e[r] || "0", t[r] || "0");
|
|
1142
1144
|
if (i !== 0)
|
|
1143
1145
|
return i;
|
|
1144
1146
|
}
|
|
@@ -1147,7 +1149,7 @@ const Ue = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
1147
1149
|
const r = me(e), i = me(t), n = r.pop(), a = i.pop(), o = be(r, i);
|
|
1148
1150
|
return o !== 0 ? o : n && a ? be(n.split("."), a.split(".")) : n || a ? n ? -1 : 1 : 0;
|
|
1149
1151
|
}, we = (e, t, r) => {
|
|
1150
|
-
|
|
1152
|
+
Rr(r);
|
|
1151
1153
|
const i = Nr(e, t);
|
|
1152
1154
|
return Ve[r].includes(i);
|
|
1153
1155
|
}, Ve = {
|
|
@@ -1157,18 +1159,18 @@ const Ue = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
1157
1159
|
"<=": [-1, 0],
|
|
1158
1160
|
"<": [-1],
|
|
1159
1161
|
"!=": [-1, 1]
|
|
1160
|
-
}, _e = Object.keys(Ve),
|
|
1162
|
+
}, _e = Object.keys(Ve), Rr = (e) => {
|
|
1161
1163
|
if (typeof e != "string")
|
|
1162
1164
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
1163
1165
|
if (_e.indexOf(e) === -1)
|
|
1164
1166
|
throw new Error(`Invalid operator, expected one of ${_e.join("|")}`);
|
|
1165
|
-
},
|
|
1166
|
-
function
|
|
1167
|
+
}, Lr = (e) => typeof e == "string" && /^[v\d]/.test(e) && Ke.test(e);
|
|
1168
|
+
function Dr(e) {
|
|
1167
1169
|
const { gatewayInfo: t, supportedRange: r } = e;
|
|
1168
1170
|
if (!t)
|
|
1169
1171
|
return !0;
|
|
1170
1172
|
const { edition: i, version: n } = t;
|
|
1171
|
-
if (!
|
|
1173
|
+
if (!Lr(n))
|
|
1172
1174
|
return console.error("Invalid version"), !1;
|
|
1173
1175
|
const a = r[i];
|
|
1174
1176
|
if (!a)
|
|
@@ -1176,15 +1178,15 @@ function Lr(e) {
|
|
|
1176
1178
|
const [o, s] = a;
|
|
1177
1179
|
return !(o && we(n, o, "<") || s && we(n, s, ">"));
|
|
1178
1180
|
}
|
|
1179
|
-
function
|
|
1181
|
+
function jr(e) {
|
|
1180
1182
|
const t = v(0), r = v(0), i = v(!1);
|
|
1181
|
-
return
|
|
1183
|
+
return Je(e, (n) => {
|
|
1182
1184
|
n && !i.value && (t.value = n.offsetWidth, r.value = n.scrollWidth, i.value = !0);
|
|
1183
1185
|
}), {
|
|
1184
1186
|
isTruncated: g(() => t.value < r.value)
|
|
1185
1187
|
};
|
|
1186
1188
|
}
|
|
1187
|
-
function
|
|
1189
|
+
function $r() {
|
|
1188
1190
|
const { i18n: { t: e } } = X();
|
|
1189
1191
|
return {
|
|
1190
1192
|
utf8Name: (t) => /^[\p{N}\p{L}.\-_~]*$/u.test(t) ? "" : e("validationErrors.utf8Name")
|
|
@@ -1192,33 +1194,33 @@ function jr() {
|
|
|
1192
1194
|
}
|
|
1193
1195
|
const Se = {
|
|
1194
1196
|
useAxios: ue,
|
|
1195
|
-
useDebouncedFilter:
|
|
1196
|
-
useDeleteUrlBuilder:
|
|
1197
|
+
useDebouncedFilter: kr,
|
|
1198
|
+
useDeleteUrlBuilder: Ir,
|
|
1197
1199
|
useErrors: Tr,
|
|
1198
|
-
useExternalLinkCreator:
|
|
1199
|
-
useFetcher:
|
|
1200
|
+
useExternalLinkCreator: Ar,
|
|
1201
|
+
useFetcher: Er,
|
|
1200
1202
|
useFetchUrlBuilder: ze,
|
|
1201
|
-
useHelpers:
|
|
1202
|
-
useStringHelpers:
|
|
1203
|
+
useHelpers: Ue,
|
|
1204
|
+
useStringHelpers: Cr,
|
|
1203
1205
|
useI18n: X,
|
|
1204
|
-
useGatewayFeatureSupported:
|
|
1205
|
-
useTruncationDetector:
|
|
1206
|
-
useValidators:
|
|
1207
|
-
},
|
|
1206
|
+
useGatewayFeatureSupported: Dr,
|
|
1207
|
+
useTruncationDetector: jr,
|
|
1208
|
+
useValidators: $r
|
|
1209
|
+
}, Pr = (e, t) => {
|
|
1208
1210
|
const r = e.__vccOpts || e;
|
|
1209
1211
|
for (const [i, n] of t)
|
|
1210
1212
|
r[i] = n;
|
|
1211
1213
|
return r;
|
|
1212
|
-
},
|
|
1214
|
+
}, Fr = "#0044f4", Ur = "16px";
|
|
1213
1215
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1214
|
-
function
|
|
1216
|
+
function Be(e) {
|
|
1215
1217
|
return typeof e > "u" || e === null;
|
|
1216
1218
|
}
|
|
1217
1219
|
function zr(e) {
|
|
1218
1220
|
return typeof e == "object" && e !== null;
|
|
1219
1221
|
}
|
|
1220
|
-
function
|
|
1221
|
-
return Array.isArray(e) ? e :
|
|
1222
|
+
function Kr(e) {
|
|
1223
|
+
return Array.isArray(e) ? e : Be(e) ? [] : [e];
|
|
1222
1224
|
}
|
|
1223
1225
|
function Vr(e, t) {
|
|
1224
1226
|
var r, i, n, a;
|
|
@@ -1227,38 +1229,38 @@ function Vr(e, t) {
|
|
|
1227
1229
|
n = a[r], e[n] = t[n];
|
|
1228
1230
|
return e;
|
|
1229
1231
|
}
|
|
1230
|
-
function
|
|
1232
|
+
function Br(e, t) {
|
|
1231
1233
|
var r = "", i;
|
|
1232
1234
|
for (i = 0; i < t; i += 1)
|
|
1233
1235
|
r += e;
|
|
1234
1236
|
return r;
|
|
1235
1237
|
}
|
|
1236
|
-
function
|
|
1238
|
+
function Mr(e) {
|
|
1237
1239
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1238
1240
|
}
|
|
1239
|
-
var
|
|
1240
|
-
isNothing:
|
|
1241
|
-
isObject:
|
|
1242
|
-
toArray:
|
|
1243
|
-
repeat:
|
|
1244
|
-
isNegativeZero:
|
|
1245
|
-
extend:
|
|
1241
|
+
var Gr = Be, Hr = zr, Yr = Kr, Zr = Br, Qr = Mr, Wr = Vr, pe = {
|
|
1242
|
+
isNothing: Gr,
|
|
1243
|
+
isObject: Hr,
|
|
1244
|
+
toArray: Yr,
|
|
1245
|
+
repeat: Zr,
|
|
1246
|
+
isNegativeZero: Qr,
|
|
1247
|
+
extend: Wr
|
|
1246
1248
|
};
|
|
1247
|
-
function
|
|
1249
|
+
function Me(e, t) {
|
|
1248
1250
|
var r = "", i = e.reason || "(unknown reason)";
|
|
1249
1251
|
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 += `
|
|
1250
1252
|
|
|
1251
1253
|
` + e.mark.snippet), i + " " + r) : i;
|
|
1252
1254
|
}
|
|
1253
1255
|
function G(e, t) {
|
|
1254
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1256
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Me(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1255
1257
|
}
|
|
1256
1258
|
G.prototype = Object.create(Error.prototype);
|
|
1257
1259
|
G.prototype.constructor = G;
|
|
1258
1260
|
G.prototype.toString = function(e) {
|
|
1259
|
-
return this.name + ": " +
|
|
1261
|
+
return this.name + ": " + Me(this, e);
|
|
1260
1262
|
};
|
|
1261
|
-
var j = G,
|
|
1263
|
+
var j = G, Jr = [
|
|
1262
1264
|
"kind",
|
|
1263
1265
|
"multi",
|
|
1264
1266
|
"resolve",
|
|
@@ -1269,12 +1271,12 @@ var j = G, Qr = [
|
|
|
1269
1271
|
"representName",
|
|
1270
1272
|
"defaultStyle",
|
|
1271
1273
|
"styleAliases"
|
|
1272
|
-
],
|
|
1274
|
+
], Xr = [
|
|
1273
1275
|
"scalar",
|
|
1274
1276
|
"sequence",
|
|
1275
1277
|
"mapping"
|
|
1276
1278
|
];
|
|
1277
|
-
function
|
|
1279
|
+
function en(e) {
|
|
1278
1280
|
var t = {};
|
|
1279
1281
|
return e !== null && Object.keys(e).forEach(function(r) {
|
|
1280
1282
|
e[r].forEach(function(i) {
|
|
@@ -1282,18 +1284,18 @@ function Xr(e) {
|
|
|
1282
1284
|
});
|
|
1283
1285
|
}), t;
|
|
1284
1286
|
}
|
|
1285
|
-
function
|
|
1287
|
+
function tn(e, t) {
|
|
1286
1288
|
if (t = t || {}, Object.keys(t).forEach(function(r) {
|
|
1287
|
-
if (
|
|
1289
|
+
if (Jr.indexOf(r) === -1)
|
|
1288
1290
|
throw new j('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
|
|
1289
1291
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1290
1292
|
return !0;
|
|
1291
1293
|
}, this.construct = t.construct || function(r) {
|
|
1292
1294
|
return r;
|
|
1293
|
-
}, 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 =
|
|
1295
|
+
}, 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 = en(t.styleAliases || null), Xr.indexOf(this.kind) === -1)
|
|
1294
1296
|
throw new j('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1295
1297
|
}
|
|
1296
|
-
var _ =
|
|
1298
|
+
var _ = tn;
|
|
1297
1299
|
function xe(e, t) {
|
|
1298
1300
|
var r = [];
|
|
1299
1301
|
return e[t].forEach(function(i) {
|
|
@@ -1303,7 +1305,7 @@ function xe(e, t) {
|
|
|
1303
1305
|
}), r[n] = i;
|
|
1304
1306
|
}), r;
|
|
1305
1307
|
}
|
|
1306
|
-
function
|
|
1308
|
+
function rn() {
|
|
1307
1309
|
var e = {
|
|
1308
1310
|
scalar: {},
|
|
1309
1311
|
sequence: {},
|
|
@@ -1348,46 +1350,46 @@ ne.prototype.extend = function(e) {
|
|
|
1348
1350
|
throw new j("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1349
1351
|
});
|
|
1350
1352
|
var i = Object.create(ne.prototype);
|
|
1351
|
-
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = xe(i, "implicit"), i.compiledExplicit = xe(i, "explicit"), i.compiledTypeMap =
|
|
1353
|
+
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = xe(i, "implicit"), i.compiledExplicit = xe(i, "explicit"), i.compiledTypeMap = rn(i.compiledImplicit, i.compiledExplicit), i;
|
|
1352
1354
|
};
|
|
1353
|
-
var
|
|
1355
|
+
var nn = ne, an = new _("tag:yaml.org,2002:str", {
|
|
1354
1356
|
kind: "scalar",
|
|
1355
1357
|
construct: function(e) {
|
|
1356
1358
|
return e !== null ? e : "";
|
|
1357
1359
|
}
|
|
1358
|
-
}),
|
|
1360
|
+
}), on = new _("tag:yaml.org,2002:seq", {
|
|
1359
1361
|
kind: "sequence",
|
|
1360
1362
|
construct: function(e) {
|
|
1361
1363
|
return e !== null ? e : [];
|
|
1362
1364
|
}
|
|
1363
|
-
}),
|
|
1365
|
+
}), sn = new _("tag:yaml.org,2002:map", {
|
|
1364
1366
|
kind: "mapping",
|
|
1365
1367
|
construct: function(e) {
|
|
1366
1368
|
return e !== null ? e : {};
|
|
1367
1369
|
}
|
|
1368
|
-
}),
|
|
1370
|
+
}), ln = new nn({
|
|
1369
1371
|
explicit: [
|
|
1370
|
-
nn,
|
|
1371
1372
|
an,
|
|
1372
|
-
on
|
|
1373
|
+
on,
|
|
1374
|
+
sn
|
|
1373
1375
|
]
|
|
1374
1376
|
});
|
|
1375
|
-
function
|
|
1377
|
+
function cn(e) {
|
|
1376
1378
|
if (e === null) return !0;
|
|
1377
1379
|
var t = e.length;
|
|
1378
1380
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1379
1381
|
}
|
|
1380
|
-
function
|
|
1382
|
+
function un() {
|
|
1381
1383
|
return null;
|
|
1382
1384
|
}
|
|
1383
|
-
function
|
|
1385
|
+
function pn(e) {
|
|
1384
1386
|
return e === null;
|
|
1385
1387
|
}
|
|
1386
|
-
var
|
|
1388
|
+
var dn = new _("tag:yaml.org,2002:null", {
|
|
1387
1389
|
kind: "scalar",
|
|
1388
|
-
resolve:
|
|
1389
|
-
construct:
|
|
1390
|
-
predicate:
|
|
1390
|
+
resolve: cn,
|
|
1391
|
+
construct: un,
|
|
1392
|
+
predicate: pn,
|
|
1391
1393
|
represent: {
|
|
1392
1394
|
canonical: function() {
|
|
1393
1395
|
return "~";
|
|
@@ -1407,22 +1409,22 @@ var pn = new _("tag:yaml.org,2002:null", {
|
|
|
1407
1409
|
},
|
|
1408
1410
|
defaultStyle: "lowercase"
|
|
1409
1411
|
});
|
|
1410
|
-
function
|
|
1412
|
+
function yn(e) {
|
|
1411
1413
|
if (e === null) return !1;
|
|
1412
1414
|
var t = e.length;
|
|
1413
1415
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1414
1416
|
}
|
|
1415
|
-
function
|
|
1417
|
+
function fn(e) {
|
|
1416
1418
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1417
1419
|
}
|
|
1418
|
-
function
|
|
1420
|
+
function hn(e) {
|
|
1419
1421
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1420
1422
|
}
|
|
1421
|
-
var
|
|
1423
|
+
var mn = new _("tag:yaml.org,2002:bool", {
|
|
1422
1424
|
kind: "scalar",
|
|
1423
|
-
resolve:
|
|
1424
|
-
construct:
|
|
1425
|
-
predicate:
|
|
1425
|
+
resolve: yn,
|
|
1426
|
+
construct: fn,
|
|
1427
|
+
predicate: hn,
|
|
1426
1428
|
represent: {
|
|
1427
1429
|
lowercase: function(e) {
|
|
1428
1430
|
return e ? "true" : "false";
|
|
@@ -1436,16 +1438,16 @@ var hn = new _("tag:yaml.org,2002:bool", {
|
|
|
1436
1438
|
},
|
|
1437
1439
|
defaultStyle: "lowercase"
|
|
1438
1440
|
});
|
|
1439
|
-
function
|
|
1441
|
+
function gn(e) {
|
|
1440
1442
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1441
1443
|
}
|
|
1442
|
-
function
|
|
1444
|
+
function vn(e) {
|
|
1443
1445
|
return 48 <= e && e <= 55;
|
|
1444
1446
|
}
|
|
1445
|
-
function
|
|
1447
|
+
function bn(e) {
|
|
1446
1448
|
return 48 <= e && e <= 57;
|
|
1447
1449
|
}
|
|
1448
|
-
function
|
|
1450
|
+
function wn(e) {
|
|
1449
1451
|
if (e === null) return !1;
|
|
1450
1452
|
var t = e.length, r = 0, i = !1, n;
|
|
1451
1453
|
if (!t) return !1;
|
|
@@ -1462,7 +1464,7 @@ function bn(e) {
|
|
|
1462
1464
|
if (n === "x") {
|
|
1463
1465
|
for (r++; r < t; r++)
|
|
1464
1466
|
if (n = e[r], n !== "_") {
|
|
1465
|
-
if (!
|
|
1467
|
+
if (!gn(e.charCodeAt(r))) return !1;
|
|
1466
1468
|
i = !0;
|
|
1467
1469
|
}
|
|
1468
1470
|
return i && n !== "_";
|
|
@@ -1470,7 +1472,7 @@ function bn(e) {
|
|
|
1470
1472
|
if (n === "o") {
|
|
1471
1473
|
for (r++; r < t; r++)
|
|
1472
1474
|
if (n = e[r], n !== "_") {
|
|
1473
|
-
if (!
|
|
1475
|
+
if (!vn(e.charCodeAt(r))) return !1;
|
|
1474
1476
|
i = !0;
|
|
1475
1477
|
}
|
|
1476
1478
|
return i && n !== "_";
|
|
@@ -1479,13 +1481,13 @@ function bn(e) {
|
|
|
1479
1481
|
if (n === "_") return !1;
|
|
1480
1482
|
for (; r < t; r++)
|
|
1481
1483
|
if (n = e[r], n !== "_") {
|
|
1482
|
-
if (!
|
|
1484
|
+
if (!bn(e.charCodeAt(r)))
|
|
1483
1485
|
return !1;
|
|
1484
1486
|
i = !0;
|
|
1485
1487
|
}
|
|
1486
1488
|
return !(!i || n === "_");
|
|
1487
1489
|
}
|
|
1488
|
-
function
|
|
1490
|
+
function _n(e) {
|
|
1489
1491
|
var t = e, r = 1, i;
|
|
1490
1492
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), i = t[0], (i === "-" || i === "+") && (i === "-" && (r = -1), t = t.slice(1), i = t[0]), t === "0") return 0;
|
|
1491
1493
|
if (i === "0") {
|
|
@@ -1495,14 +1497,14 @@ function wn(e) {
|
|
|
1495
1497
|
}
|
|
1496
1498
|
return r * parseInt(t, 10);
|
|
1497
1499
|
}
|
|
1498
|
-
function
|
|
1500
|
+
function Sn(e) {
|
|
1499
1501
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !pe.isNegativeZero(e);
|
|
1500
1502
|
}
|
|
1501
|
-
var
|
|
1503
|
+
var xn = new _("tag:yaml.org,2002:int", {
|
|
1502
1504
|
kind: "scalar",
|
|
1503
|
-
resolve:
|
|
1504
|
-
construct:
|
|
1505
|
-
predicate:
|
|
1505
|
+
resolve: wn,
|
|
1506
|
+
construct: _n,
|
|
1507
|
+
predicate: Sn,
|
|
1506
1508
|
represent: {
|
|
1507
1509
|
binary: function(e) {
|
|
1508
1510
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1525,12 +1527,12 @@ var Sn = new _("tag:yaml.org,2002:int", {
|
|
|
1525
1527
|
decimal: [10, "dec"],
|
|
1526
1528
|
hexadecimal: [16, "hex"]
|
|
1527
1529
|
}
|
|
1528
|
-
}),
|
|
1530
|
+
}), kn = new RegExp(
|
|
1529
1531
|
// 2.5e4, 2.5 and integers
|
|
1530
1532
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1531
1533
|
);
|
|
1532
|
-
function
|
|
1533
|
-
return !(e === null || !
|
|
1534
|
+
function In(e) {
|
|
1535
|
+
return !(e === null || !kn.test(e) || // Quick hack to not allow integers end with `_`
|
|
1534
1536
|
// Probably should update regexp & check speed
|
|
1535
1537
|
e[e.length - 1] === "_");
|
|
1536
1538
|
}
|
|
@@ -1538,8 +1540,8 @@ function Tn(e) {
|
|
|
1538
1540
|
var t, r;
|
|
1539
1541
|
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);
|
|
1540
1542
|
}
|
|
1541
|
-
var
|
|
1542
|
-
function
|
|
1543
|
+
var An = /^[-+]?[0-9]+e/;
|
|
1544
|
+
function En(e, t) {
|
|
1543
1545
|
var r;
|
|
1544
1546
|
if (isNaN(e))
|
|
1545
1547
|
switch (t) {
|
|
@@ -1570,36 +1572,36 @@ function An(e, t) {
|
|
|
1570
1572
|
}
|
|
1571
1573
|
else if (pe.isNegativeZero(e))
|
|
1572
1574
|
return "-0.0";
|
|
1573
|
-
return r = e.toString(10),
|
|
1575
|
+
return r = e.toString(10), An.test(r) ? r.replace("e", ".e") : r;
|
|
1574
1576
|
}
|
|
1575
|
-
function
|
|
1577
|
+
function Cn(e) {
|
|
1576
1578
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || pe.isNegativeZero(e));
|
|
1577
1579
|
}
|
|
1578
|
-
var
|
|
1580
|
+
var qn = new _("tag:yaml.org,2002:float", {
|
|
1579
1581
|
kind: "scalar",
|
|
1580
|
-
resolve:
|
|
1582
|
+
resolve: In,
|
|
1581
1583
|
construct: Tn,
|
|
1582
|
-
predicate:
|
|
1583
|
-
represent:
|
|
1584
|
+
predicate: Cn,
|
|
1585
|
+
represent: En,
|
|
1584
1586
|
defaultStyle: "lowercase"
|
|
1585
|
-
}),
|
|
1587
|
+
}), On = ln.extend({
|
|
1586
1588
|
implicit: [
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1589
|
+
dn,
|
|
1590
|
+
mn,
|
|
1591
|
+
xn,
|
|
1592
|
+
qn
|
|
1591
1593
|
]
|
|
1592
|
-
}), Nn =
|
|
1594
|
+
}), Nn = On, Ge = new RegExp(
|
|
1593
1595
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1594
|
-
),
|
|
1596
|
+
), He = new RegExp(
|
|
1595
1597
|
"^([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]))?))?$"
|
|
1596
1598
|
);
|
|
1597
|
-
function On(e) {
|
|
1598
|
-
return e === null ? !1 : Me.exec(e) !== null || Ge.exec(e) !== null;
|
|
1599
|
-
}
|
|
1600
1599
|
function Rn(e) {
|
|
1600
|
+
return e === null ? !1 : Ge.exec(e) !== null || He.exec(e) !== null;
|
|
1601
|
+
}
|
|
1602
|
+
function Ln(e) {
|
|
1601
1603
|
var t, r, i, n, a, o, s, c = 0, u = null, p, l, d;
|
|
1602
|
-
if (t =
|
|
1604
|
+
if (t = Ge.exec(e), t === null && (t = He.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1603
1605
|
if (r = +t[1], i = +t[2] - 1, n = +t[3], !t[4])
|
|
1604
1606
|
return new Date(Date.UTC(r, i, n));
|
|
1605
1607
|
if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
@@ -1609,25 +1611,25 @@ function Rn(e) {
|
|
|
1609
1611
|
}
|
|
1610
1612
|
return t[9] && (p = +t[10], l = +(t[11] || 0), u = (p * 60 + l) * 6e4, t[9] === "-" && (u = -u)), d = new Date(Date.UTC(r, i, n, a, o, s, c)), u && d.setTime(d.getTime() - u), d;
|
|
1611
1613
|
}
|
|
1612
|
-
function
|
|
1614
|
+
function Dn(e) {
|
|
1613
1615
|
return e.toISOString();
|
|
1614
1616
|
}
|
|
1615
|
-
var
|
|
1617
|
+
var jn = new _("tag:yaml.org,2002:timestamp", {
|
|
1616
1618
|
kind: "scalar",
|
|
1617
|
-
resolve:
|
|
1618
|
-
construct:
|
|
1619
|
+
resolve: Rn,
|
|
1620
|
+
construct: Ln,
|
|
1619
1621
|
instanceOf: Date,
|
|
1620
|
-
represent:
|
|
1622
|
+
represent: Dn
|
|
1621
1623
|
});
|
|
1622
|
-
function
|
|
1624
|
+
function $n(e) {
|
|
1623
1625
|
return e === "<<" || e === null;
|
|
1624
1626
|
}
|
|
1625
|
-
var
|
|
1627
|
+
var Pn = new _("tag:yaml.org,2002:merge", {
|
|
1626
1628
|
kind: "scalar",
|
|
1627
|
-
resolve:
|
|
1629
|
+
resolve: $n
|
|
1628
1630
|
}), de = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1629
1631
|
\r`;
|
|
1630
|
-
function
|
|
1632
|
+
function Fn(e) {
|
|
1631
1633
|
if (e === null) return !1;
|
|
1632
1634
|
var t, r, i = 0, n = e.length, a = de;
|
|
1633
1635
|
for (r = 0; r < n; r++)
|
|
@@ -1637,7 +1639,7 @@ function Pn(e) {
|
|
|
1637
1639
|
}
|
|
1638
1640
|
return i % 8 === 0;
|
|
1639
1641
|
}
|
|
1640
|
-
function
|
|
1642
|
+
function Un(e) {
|
|
1641
1643
|
var t, r, i = e.replace(/[\r\n=]/g, ""), n = i.length, a = de, o = 0, s = [];
|
|
1642
1644
|
for (t = 0; t < n; t++)
|
|
1643
1645
|
t % 4 === 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(i.charAt(t));
|
|
@@ -1649,23 +1651,23 @@ function zn(e) {
|
|
|
1649
1651
|
i % 3 === 0 && i && (t += o[r >> 18 & 63], t += o[r >> 12 & 63], t += o[r >> 6 & 63], t += o[r & 63]), r = (r << 8) + e[i];
|
|
1650
1652
|
return n = a % 3, n === 0 ? (t += o[r >> 18 & 63], t += o[r >> 12 & 63], t += o[r >> 6 & 63], t += o[r & 63]) : n === 2 ? (t += o[r >> 10 & 63], t += o[r >> 4 & 63], t += o[r << 2 & 63], t += o[64]) : n === 1 && (t += o[r >> 2 & 63], t += o[r << 4 & 63], t += o[64], t += o[64]), t;
|
|
1651
1653
|
}
|
|
1652
|
-
function
|
|
1654
|
+
function Kn(e) {
|
|
1653
1655
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1654
1656
|
}
|
|
1655
1657
|
var Vn = new _("tag:yaml.org,2002:binary", {
|
|
1656
1658
|
kind: "scalar",
|
|
1657
|
-
resolve:
|
|
1658
|
-
construct:
|
|
1659
|
-
predicate:
|
|
1659
|
+
resolve: Fn,
|
|
1660
|
+
construct: Un,
|
|
1661
|
+
predicate: Kn,
|
|
1660
1662
|
represent: zn
|
|
1661
|
-
}),
|
|
1662
|
-
function
|
|
1663
|
+
}), Bn = Object.prototype.hasOwnProperty, Mn = Object.prototype.toString;
|
|
1664
|
+
function Gn(e) {
|
|
1663
1665
|
if (e === null) return !0;
|
|
1664
1666
|
var t = [], r, i, n, a, o, s = e;
|
|
1665
1667
|
for (r = 0, i = s.length; r < i; r += 1) {
|
|
1666
|
-
if (n = s[r], o = !1,
|
|
1668
|
+
if (n = s[r], o = !1, Mn.call(n) !== "[object Object]") return !1;
|
|
1667
1669
|
for (a in n)
|
|
1668
|
-
if (
|
|
1670
|
+
if (Bn.call(n, a))
|
|
1669
1671
|
if (!o) o = !0;
|
|
1670
1672
|
else return !1;
|
|
1671
1673
|
if (!o) return !1;
|
|
@@ -1674,82 +1676,82 @@ function Mn(e) {
|
|
|
1674
1676
|
}
|
|
1675
1677
|
return !0;
|
|
1676
1678
|
}
|
|
1677
|
-
function
|
|
1679
|
+
function Hn(e) {
|
|
1678
1680
|
return e !== null ? e : [];
|
|
1679
1681
|
}
|
|
1680
|
-
var
|
|
1682
|
+
var Yn = new _("tag:yaml.org,2002:omap", {
|
|
1681
1683
|
kind: "sequence",
|
|
1682
|
-
resolve:
|
|
1683
|
-
construct:
|
|
1684
|
-
}),
|
|
1685
|
-
function
|
|
1684
|
+
resolve: Gn,
|
|
1685
|
+
construct: Hn
|
|
1686
|
+
}), Zn = Object.prototype.toString;
|
|
1687
|
+
function Qn(e) {
|
|
1686
1688
|
if (e === null) return !0;
|
|
1687
1689
|
var t, r, i, n, a, o = e;
|
|
1688
1690
|
for (a = new Array(o.length), t = 0, r = o.length; t < r; t += 1) {
|
|
1689
|
-
if (i = o[t],
|
|
1691
|
+
if (i = o[t], Zn.call(i) !== "[object Object]" || (n = Object.keys(i), n.length !== 1)) return !1;
|
|
1690
1692
|
a[t] = [n[0], i[n[0]]];
|
|
1691
1693
|
}
|
|
1692
1694
|
return !0;
|
|
1693
1695
|
}
|
|
1694
|
-
function
|
|
1696
|
+
function Wn(e) {
|
|
1695
1697
|
if (e === null) return [];
|
|
1696
1698
|
var t, r, i, n, a, o = e;
|
|
1697
1699
|
for (a = new Array(o.length), t = 0, r = o.length; t < r; t += 1)
|
|
1698
1700
|
i = o[t], n = Object.keys(i), a[t] = [n[0], i[n[0]]];
|
|
1699
1701
|
return a;
|
|
1700
1702
|
}
|
|
1701
|
-
var
|
|
1703
|
+
var Jn = new _("tag:yaml.org,2002:pairs", {
|
|
1702
1704
|
kind: "sequence",
|
|
1703
|
-
resolve:
|
|
1704
|
-
construct:
|
|
1705
|
-
}),
|
|
1706
|
-
function
|
|
1705
|
+
resolve: Qn,
|
|
1706
|
+
construct: Wn
|
|
1707
|
+
}), Xn = Object.prototype.hasOwnProperty;
|
|
1708
|
+
function ei(e) {
|
|
1707
1709
|
if (e === null) return !0;
|
|
1708
1710
|
var t, r = e;
|
|
1709
1711
|
for (t in r)
|
|
1710
|
-
if (
|
|
1712
|
+
if (Xn.call(r, t) && r[t] !== null)
|
|
1711
1713
|
return !1;
|
|
1712
1714
|
return !0;
|
|
1713
1715
|
}
|
|
1714
|
-
function
|
|
1716
|
+
function ti(e) {
|
|
1715
1717
|
return e !== null ? e : {};
|
|
1716
1718
|
}
|
|
1717
|
-
var
|
|
1719
|
+
var ri = new _("tag:yaml.org,2002:set", {
|
|
1718
1720
|
kind: "mapping",
|
|
1719
|
-
resolve:
|
|
1720
|
-
construct:
|
|
1721
|
+
resolve: ei,
|
|
1722
|
+
construct: ti
|
|
1721
1723
|
});
|
|
1722
1724
|
Nn.extend({
|
|
1723
1725
|
implicit: [
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
+
jn,
|
|
1727
|
+
Pn
|
|
1726
1728
|
],
|
|
1727
1729
|
explicit: [
|
|
1728
1730
|
Vn,
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1731
|
+
Yn,
|
|
1732
|
+
Jn,
|
|
1733
|
+
ri
|
|
1732
1734
|
]
|
|
1733
1735
|
});
|
|
1734
1736
|
function ke(e) {
|
|
1735
1737
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1736
1738
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1737
1739
|
}
|
|
1738
|
-
var
|
|
1740
|
+
var ni = new Array(256), ii = new Array(256);
|
|
1739
1741
|
for (var F = 0; F < 256; F++)
|
|
1740
|
-
|
|
1741
|
-
const
|
|
1742
|
+
ni[F] = ke(F) ? 1 : 0, ii[F] = ke(F);
|
|
1743
|
+
const Ie = "24px", ai = (e, t) => {
|
|
1742
1744
|
const r = e.__vccOpts || e;
|
|
1743
1745
|
for (const [i, n] of t)
|
|
1744
1746
|
r[i] = n;
|
|
1745
1747
|
return r;
|
|
1746
|
-
},
|
|
1748
|
+
}, oi = (e) => (Xe("data-v-cd88dfcc"), e = e(), et(), e), si = ["aria-hidden"], li = {
|
|
1747
1749
|
key: 0,
|
|
1748
1750
|
"data-testid": "kui-icon-svg-title"
|
|
1749
|
-
},
|
|
1751
|
+
}, ci = /* @__PURE__ */ oi(() => /* @__PURE__ */ V("path", {
|
|
1750
1752
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
1751
1753
|
fill: "currentColor"
|
|
1752
|
-
}, null, -1)),
|
|
1754
|
+
}, null, -1)), ui = /* @__PURE__ */ O({
|
|
1753
1755
|
__name: "CopyIcon",
|
|
1754
1756
|
props: {
|
|
1755
1757
|
/** The accessibility text provided to screen readers */
|
|
@@ -1780,7 +1782,7 @@ const Te = "24px", ii = (e, t) => {
|
|
|
1780
1782
|
size: {
|
|
1781
1783
|
type: [Number, String],
|
|
1782
1784
|
required: !1,
|
|
1783
|
-
default:
|
|
1785
|
+
default: Ie,
|
|
1784
1786
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
1785
1787
|
validator: (e) => {
|
|
1786
1788
|
if (typeof e == "number" && e > 0)
|
|
@@ -1809,7 +1811,7 @@ const Te = "24px", ii = (e, t) => {
|
|
|
1809
1811
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
1810
1812
|
return `${a}px`;
|
|
1811
1813
|
}
|
|
1812
|
-
return
|
|
1814
|
+
return Ie;
|
|
1813
1815
|
}), i = g(() => ({
|
|
1814
1816
|
boxSizing: "border-box",
|
|
1815
1817
|
color: t.color,
|
|
@@ -1825,7 +1827,7 @@ const Te = "24px", ii = (e, t) => {
|
|
|
1825
1827
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
1826
1828
|
style: te(i.value)
|
|
1827
1829
|
}, {
|
|
1828
|
-
default:
|
|
1830
|
+
default: T(() => [
|
|
1829
1831
|
(h(), C("svg", {
|
|
1830
1832
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1831
1833
|
"data-testid": "kui-icon-svg-copy-icon",
|
|
@@ -1836,24 +1838,24 @@ const Te = "24px", ii = (e, t) => {
|
|
|
1836
1838
|
width: "100%",
|
|
1837
1839
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1838
1840
|
}, [
|
|
1839
|
-
e.title ? (h(), C("title",
|
|
1840
|
-
|
|
1841
|
-
], 8,
|
|
1841
|
+
e.title ? (h(), C("title", li, K(e.title), 1)) : M("", !0),
|
|
1842
|
+
ci
|
|
1843
|
+
], 8, si))
|
|
1842
1844
|
]),
|
|
1843
1845
|
_: 1
|
|
1844
1846
|
}, 8, ["aria-hidden", "style"]));
|
|
1845
1847
|
}
|
|
1846
|
-
}),
|
|
1848
|
+
}), pi = /* @__PURE__ */ ai(ui, [["__scopeId", "data-v-cd88dfcc"]]), di = [];
|
|
1847
1849
|
for (let e = 0; e < 256; ++e)
|
|
1848
|
-
|
|
1850
|
+
di.push((e + 256).toString(16).slice(1));
|
|
1849
1851
|
typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
1850
|
-
const
|
|
1852
|
+
const yi = {
|
|
1851
1853
|
class: "kong-ui-public-entity-link",
|
|
1852
1854
|
"data-testid": "entity-link-parent"
|
|
1853
|
-
},
|
|
1855
|
+
}, fi = {
|
|
1854
1856
|
key: 0,
|
|
1855
1857
|
class: "deleted-entity"
|
|
1856
|
-
},
|
|
1858
|
+
}, hi = { key: 1 }, mi = ["onClick"], gi = /* @__PURE__ */ O({
|
|
1857
1859
|
__name: "EntityLink",
|
|
1858
1860
|
props: {
|
|
1859
1861
|
entityLinkData: {
|
|
@@ -1889,31 +1891,31 @@ const di = {
|
|
|
1889
1891
|
}, 1800));
|
|
1890
1892
|
};
|
|
1891
1893
|
return (l, d) => {
|
|
1892
|
-
const y =
|
|
1893
|
-
return h(), C("div",
|
|
1894
|
-
s.value ? (h(), C("div",
|
|
1894
|
+
const y = z("KTooltip"), b = z("KExternalLink"), S = z("KClipboardProvider");
|
|
1895
|
+
return h(), C("div", yi, [
|
|
1896
|
+
s.value ? (h(), C("div", fi, K(u.value), 1)) : c.value ? c.value ? (h(), E(b, {
|
|
1895
1897
|
key: 2,
|
|
1896
1898
|
class: "entity-link",
|
|
1897
1899
|
"hide-icon": !e.newWindow,
|
|
1898
1900
|
href: e.externalLink,
|
|
1899
1901
|
target: e.newWindow ? "_blank" : "_self"
|
|
1900
1902
|
}, {
|
|
1901
|
-
default:
|
|
1903
|
+
default: T(() => [
|
|
1902
1904
|
R(y, {
|
|
1903
1905
|
text: m(i) && e.entityLinkData.label || ""
|
|
1904
1906
|
}, {
|
|
1905
|
-
default:
|
|
1906
|
-
|
|
1907
|
+
default: T(() => [
|
|
1908
|
+
V("span", {
|
|
1907
1909
|
ref_key: "textContent",
|
|
1908
1910
|
ref: r,
|
|
1909
1911
|
class: "entity-link-label"
|
|
1910
|
-
},
|
|
1912
|
+
}, K(e.entityLinkData.label), 513)
|
|
1911
1913
|
]),
|
|
1912
1914
|
_: 1
|
|
1913
1915
|
}, 8, ["text"])
|
|
1914
1916
|
]),
|
|
1915
1917
|
_: 1
|
|
1916
|
-
}, 8, ["hide-icon", "href", "target"])) : M("", !0) : (h(), C("div",
|
|
1918
|
+
}, 8, ["hide-icon", "href", "target"])) : M("", !0) : (h(), C("div", hi, K(" – "))),
|
|
1917
1919
|
c.value && e.allowCopy ? (h(), E(y, {
|
|
1918
1920
|
key: o.value,
|
|
1919
1921
|
class: "copy-uuid-tooltip",
|
|
@@ -1921,20 +1923,20 @@ const di = {
|
|
|
1921
1923
|
placement: "bottom-end",
|
|
1922
1924
|
text: o.value
|
|
1923
1925
|
}, {
|
|
1924
|
-
default:
|
|
1926
|
+
default: T(() => [
|
|
1925
1927
|
R(S, null, {
|
|
1926
|
-
default:
|
|
1927
|
-
|
|
1928
|
+
default: T(({ copyToClipboard: B }) => [
|
|
1929
|
+
V("span", {
|
|
1928
1930
|
class: "entity-link-copy-id",
|
|
1929
|
-
onClick:
|
|
1931
|
+
onClick: Qe((N) => p(B), ["stop"])
|
|
1930
1932
|
}, [
|
|
1931
|
-
R(m(
|
|
1933
|
+
R(m(pi), {
|
|
1932
1934
|
class: "copy-icon",
|
|
1933
|
-
color: m(
|
|
1935
|
+
color: m(Fr),
|
|
1934
1936
|
"data-testid": "copy-id",
|
|
1935
|
-
size: m(
|
|
1937
|
+
size: m(Ur)
|
|
1936
1938
|
}, null, 8, ["color", "size"])
|
|
1937
|
-
], 8,
|
|
1939
|
+
], 8, mi)
|
|
1938
1940
|
]),
|
|
1939
1941
|
_: 1
|
|
1940
1942
|
})
|
|
@@ -1944,7 +1946,7 @@ const di = {
|
|
|
1944
1946
|
]);
|
|
1945
1947
|
};
|
|
1946
1948
|
}
|
|
1947
|
-
}),
|
|
1949
|
+
}), vi = /* @__PURE__ */ Pr(gi, [["__scopeId", "data-v-60e3ef7c"]]), bi = /* @__PURE__ */ O({
|
|
1948
1950
|
__name: "TopNTableRenderer",
|
|
1949
1951
|
props: {
|
|
1950
1952
|
query: {},
|
|
@@ -1959,7 +1961,7 @@ const di = {
|
|
|
1959
1961
|
if ((n = t.chartOptions) != null && n.entityLink)
|
|
1960
1962
|
if (i.id.includes(":")) {
|
|
1961
1963
|
const [a, o] = i.id.split(":");
|
|
1962
|
-
return t.chartOptions.entityLink.replace(
|
|
1964
|
+
return t.chartOptions.entityLink.replace(qt, a).replace(fe, o);
|
|
1963
1965
|
} else
|
|
1964
1966
|
return t.chartOptions.entityLink.replace(fe, i.id);
|
|
1965
1967
|
return "";
|
|
@@ -1969,17 +1971,17 @@ const di = {
|
|
|
1969
1971
|
query: i.query,
|
|
1970
1972
|
"query-ready": i.queryReady
|
|
1971
1973
|
}, {
|
|
1972
|
-
default:
|
|
1973
|
-
R(m(
|
|
1974
|
+
default: T(({ data: a }) => [
|
|
1975
|
+
R(m(ut), {
|
|
1974
1976
|
data: a,
|
|
1975
1977
|
description: i.chartOptions.description,
|
|
1976
1978
|
"synthetics-data-key": i.chartOptions.syntheticsDataKey,
|
|
1977
1979
|
title: i.chartOptions.chartTitle || ""
|
|
1978
|
-
},
|
|
1980
|
+
}, tt({ _: 2 }, [
|
|
1979
1981
|
t.chartOptions.entityLink ? {
|
|
1980
1982
|
name: "name",
|
|
1981
|
-
fn:
|
|
1982
|
-
R(m(
|
|
1983
|
+
fn: T(({ record: o }) => [
|
|
1984
|
+
R(m(vi), {
|
|
1983
1985
|
"entity-link-data": {
|
|
1984
1986
|
id: o.id,
|
|
1985
1987
|
label: o.name,
|
|
@@ -1995,12 +1997,12 @@ const di = {
|
|
|
1995
1997
|
_: 1
|
|
1996
1998
|
}, 8, ["context", "query", "query-ready"]));
|
|
1997
1999
|
}
|
|
1998
|
-
}),
|
|
2000
|
+
}), wi = { class: "tile-boundary" }, _i = /* @__PURE__ */ O({
|
|
1999
2001
|
__name: "DashboardTile",
|
|
2000
2002
|
props: {
|
|
2001
2003
|
definition: {},
|
|
2002
2004
|
context: {},
|
|
2003
|
-
height: { default:
|
|
2005
|
+
height: { default: Q },
|
|
2004
2006
|
queryReady: { type: Boolean }
|
|
2005
2007
|
},
|
|
2006
2008
|
setup(e) {
|
|
@@ -2008,12 +2010,12 @@ const di = {
|
|
|
2008
2010
|
58871060: `${a.height}px`
|
|
2009
2011
|
}));
|
|
2010
2012
|
const t = parseInt(Pe, 10), r = e, i = {
|
|
2011
|
-
[A.TimeseriesLine]:
|
|
2013
|
+
[A.TimeseriesLine]: sr,
|
|
2012
2014
|
[A.HorizontalBar]: he,
|
|
2013
2015
|
[A.VerticalBar]: he,
|
|
2014
|
-
[A.Gauge]:
|
|
2015
|
-
[A.GoldenSignals]:
|
|
2016
|
-
[A.TopN]:
|
|
2016
|
+
[A.Gauge]: rr,
|
|
2017
|
+
[A.GoldenSignals]: ur,
|
|
2018
|
+
[A.TopN]: bi,
|
|
2017
2019
|
[A.Slottable]: void 0
|
|
2018
2020
|
}, n = g(() => {
|
|
2019
2021
|
const a = i[r.definition.chart.type];
|
|
@@ -2028,11 +2030,11 @@ const di = {
|
|
|
2028
2030
|
}
|
|
2029
2031
|
};
|
|
2030
2032
|
});
|
|
2031
|
-
return (a, o) => (h(), C("div",
|
|
2032
|
-
n.value ? (h(), E(Ce(n.value.component), Ee(
|
|
2033
|
+
return (a, o) => (h(), C("div", wi, [
|
|
2034
|
+
n.value ? (h(), E(Ce(n.value.component), Ee(rt({ key: 0 }, n.value.rendererProps)), null, 16)) : M("", !0)
|
|
2033
2035
|
]));
|
|
2034
2036
|
}
|
|
2035
|
-
}),
|
|
2037
|
+
}), Si = /* @__PURE__ */ $(_i, [["__scopeId", "data-v-69b5e552"]]), xi = (e, t, r) => {
|
|
2036
2038
|
const i = /* @__PURE__ */ new Map();
|
|
2037
2039
|
r.forEach((a) => {
|
|
2038
2040
|
const o = a.layout.position.row, s = i.get(o), c = a.layout.size.rows === 1 && !!a.layout.size.fitToContent;
|
|
@@ -2042,7 +2044,7 @@ const di = {
|
|
|
2042
2044
|
for (let a = 0; a < e; a++)
|
|
2043
2045
|
i.get(a) ? n.push("auto") : n.push(`${t}px`);
|
|
2044
2046
|
return n;
|
|
2045
|
-
},
|
|
2047
|
+
}, ki = /* @__PURE__ */ O({
|
|
2046
2048
|
__name: "GridLayout",
|
|
2047
2049
|
props: {
|
|
2048
2050
|
gridSize: {
|
|
@@ -2052,7 +2054,7 @@ const di = {
|
|
|
2052
2054
|
tileHeight: {
|
|
2053
2055
|
type: Number,
|
|
2054
2056
|
required: !1,
|
|
2055
|
-
default: () =>
|
|
2057
|
+
default: () => Q
|
|
2056
2058
|
},
|
|
2057
2059
|
tiles: {
|
|
2058
2060
|
type: Array,
|
|
@@ -2069,14 +2071,14 @@ const di = {
|
|
|
2069
2071
|
!Array.isArray(s) || !s.length || (i.value = s[0].contentRect.width);
|
|
2070
2072
|
});
|
|
2071
2073
|
});
|
|
2072
|
-
|
|
2074
|
+
nt(() => {
|
|
2073
2075
|
r.value && n.observe(r.value);
|
|
2074
|
-
}),
|
|
2076
|
+
}), Te(() => {
|
|
2075
2077
|
r.value && n.unobserve(r.value);
|
|
2076
2078
|
});
|
|
2077
2079
|
const a = g(() => {
|
|
2078
2080
|
var c;
|
|
2079
|
-
return
|
|
2081
|
+
return xi((c = t.gridSize) == null ? void 0 : c.rows, t.tileHeight, t.tiles).join(" ");
|
|
2080
2082
|
}), o = g(() => t.tiles.map((s, c) => ({
|
|
2081
2083
|
key: `tile-${c}`,
|
|
2082
2084
|
tile: s,
|
|
@@ -2092,9 +2094,9 @@ const di = {
|
|
|
2092
2094
|
ref: r,
|
|
2093
2095
|
class: "kong-ui-public-grid-layout"
|
|
2094
2096
|
}, [
|
|
2095
|
-
(h(!0), C(
|
|
2097
|
+
(h(!0), C(it, null, at(o.value, (u) => (h(), C("div", {
|
|
2096
2098
|
key: u.key,
|
|
2097
|
-
class:
|
|
2099
|
+
class: ot(["grid-cell", {
|
|
2098
2100
|
"empty-cell": !u.tile
|
|
2099
2101
|
}]),
|
|
2100
2102
|
style: te(u.style)
|
|
@@ -2106,10 +2108,10 @@ const di = {
|
|
|
2106
2108
|
], 6))), 128))
|
|
2107
2109
|
], 512));
|
|
2108
2110
|
}
|
|
2109
|
-
}),
|
|
2111
|
+
}), Ii = /* @__PURE__ */ $(ki, [["__scopeId", "data-v-056142a9"]]), Ti = { class: "kong-ui-public-dashboard-renderer" }, Ai = {
|
|
2110
2112
|
key: 0,
|
|
2111
2113
|
class: "tile-container"
|
|
2112
|
-
},
|
|
2114
|
+
}, Ei = /* @__PURE__ */ O({
|
|
2113
2115
|
__name: "DashboardRenderer",
|
|
2114
2116
|
props: {
|
|
2115
2117
|
context: {},
|
|
@@ -2118,14 +2120,14 @@ const di = {
|
|
|
2118
2120
|
setup(e) {
|
|
2119
2121
|
const t = e, { i18n: r } = $e.useI18n(), i = ie(Re);
|
|
2120
2122
|
i || (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/dashboard-renderer/README.md#requirements"));
|
|
2121
|
-
const n =
|
|
2123
|
+
const n = Ct(), a = g(() => t.context.timeSpec ? t.context.timeSpec : {
|
|
2122
2124
|
type: "relative",
|
|
2123
2125
|
time_range: n.defaultQueryTimeForOrg
|
|
2124
2126
|
}), o = g(() => !!t.context.timeSpec || !n.loading), s = g(() => t.config.tiles.map((u, p) => {
|
|
2125
2127
|
var d;
|
|
2126
2128
|
let l = u.definition;
|
|
2127
2129
|
if ("description" in l.chart) {
|
|
2128
|
-
const y = (d = l.chart.description) == null ? void 0 : d.replace(
|
|
2130
|
+
const y = (d = l.chart.description) == null ? void 0 : d.replace(Ot, () => {
|
|
2129
2131
|
const S = `renderer.trendRange.${a.value.type === "absolute" ? "custom" : a.value.time_range}`;
|
|
2130
2132
|
return r.te(S) ? r.t(S) : "";
|
|
2131
2133
|
});
|
|
@@ -2153,23 +2155,23 @@ const di = {
|
|
|
2153
2155
|
};
|
|
2154
2156
|
});
|
|
2155
2157
|
return (u, p) => {
|
|
2156
|
-
const l =
|
|
2158
|
+
const l = z("KAlert");
|
|
2157
2159
|
return h(), C("div", Ti, [
|
|
2158
|
-
m(i) ? (h(), E(
|
|
2160
|
+
m(i) ? (h(), E(Ii, {
|
|
2159
2161
|
key: 1,
|
|
2160
2162
|
"grid-size": u.config.gridSize,
|
|
2161
2163
|
"tile-height": u.config.tileHeight,
|
|
2162
2164
|
tiles: s.value
|
|
2163
2165
|
}, {
|
|
2164
|
-
tile:
|
|
2165
|
-
d.meta.chart.type === m(A).Slottable ? (h(), C("div",
|
|
2166
|
+
tile: T(({ tile: d }) => [
|
|
2167
|
+
d.meta.chart.type === m(A).Slottable ? (h(), C("div", Ai, [
|
|
2166
2168
|
ae(u.$slots, d.meta.chart.id, {}, void 0, !0)
|
|
2167
|
-
])) : (h(), E(
|
|
2169
|
+
])) : (h(), E(Si, {
|
|
2168
2170
|
key: 1,
|
|
2169
2171
|
class: "tile-container",
|
|
2170
2172
|
context: c.value,
|
|
2171
2173
|
definition: d.meta,
|
|
2172
|
-
height: d.layout.size.rows * (u.config.tileHeight || m(
|
|
2174
|
+
height: d.layout.size.rows * (u.config.tileHeight || m(Q)) + parseInt(m(Pe), 10),
|
|
2173
2175
|
"query-ready": o.value
|
|
2174
2176
|
}, null, 8, ["context", "definition", "height", "query-ready"]))
|
|
2175
2177
|
]),
|
|
@@ -2178,37 +2180,37 @@ const di = {
|
|
|
2178
2180
|
key: 0,
|
|
2179
2181
|
appearance: "danger"
|
|
2180
2182
|
}, {
|
|
2181
|
-
default:
|
|
2182
|
-
Ae(
|
|
2183
|
+
default: T(() => [
|
|
2184
|
+
Ae(K(m(r).t("renderer.noQueryBridge")), 1)
|
|
2183
2185
|
]),
|
|
2184
2186
|
_: 1
|
|
2185
2187
|
}))
|
|
2186
2188
|
]);
|
|
2187
2189
|
};
|
|
2188
2190
|
}
|
|
2189
|
-
}),
|
|
2191
|
+
}), Ui = /* @__PURE__ */ $(Ei, [["__scopeId", "data-v-2dd03268"]]);
|
|
2190
2192
|
export {
|
|
2191
|
-
|
|
2193
|
+
qt as CP_ID_TOKEN,
|
|
2192
2194
|
A as ChartTypes,
|
|
2193
|
-
|
|
2195
|
+
Q as DEFAULT_TILE_HEIGHT,
|
|
2194
2196
|
Nt as DEFAULT_TILE_REFRESH_INTERVAL_MS,
|
|
2195
|
-
|
|
2197
|
+
Ui as DashboardRenderer,
|
|
2196
2198
|
fe as ENTITY_ID_TOKEN,
|
|
2197
|
-
|
|
2199
|
+
Ii as GridLayout,
|
|
2198
2200
|
Re as INJECT_QUERY_PROVIDER,
|
|
2199
|
-
|
|
2201
|
+
Ot as TIMEFRAME_TOKEN,
|
|
2200
2202
|
Vt as aiQuerySchema,
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2203
|
+
Lt as barChartSchema,
|
|
2204
|
+
Kt as basicQuerySchema,
|
|
2205
|
+
Fi as dashboardConfigSchema,
|
|
2204
2206
|
zt as exploreV4QuerySchema,
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2207
|
+
jt as gaugeChartSchema,
|
|
2208
|
+
Pt as metricCardSchema,
|
|
2209
|
+
Rt as slottableSchema,
|
|
2210
|
+
Ht as tileConfigSchema,
|
|
2211
|
+
Mt as tileDefinitionSchema,
|
|
2212
|
+
Gt as tileLayoutSchema,
|
|
2213
|
+
Dt as timeseriesChartSchema,
|
|
2214
|
+
$t as topNTableSchema,
|
|
2215
|
+
Bt as validDashboardQuery
|
|
2214
2216
|
};
|