@kong-ui-public/dashboard-renderer 0.14.6 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard-renderer.es.js +282 -281
- package/dist/dashboard-renderer.umd.js +4 -4
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/types/dashboard-renderer-types.d.ts +1 -0
- package/dist/types/types/dashboard-renderer-types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -7,7 +7,7 @@ import { MetricsProviderInternal as lt, MetricsConsumer as ct } from "@kong-ui-p
|
|
|
7
7
|
import { Timeframe as ut, GranularityKeys as pe, TimePeriods as pt } from "@kong-ui-public/analytics-utilities";
|
|
8
8
|
import "@kong/kongponents";
|
|
9
9
|
import "vue-router";
|
|
10
|
-
const Y = 170, Ne = "analytics-query-provider", de = "{entity-id}", dt = "{cp-id}";
|
|
10
|
+
const Y = 170, Ne = "analytics-query-provider", de = "{entity-id}", dt = "{cp-id}", yt = 30 * 1e3;
|
|
11
11
|
var I = /* @__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))(I || {});
|
|
12
12
|
const Z = {
|
|
13
13
|
type: "string"
|
|
@@ -23,7 +23,7 @@ const Z = {
|
|
|
23
23
|
additionalProperties: {
|
|
24
24
|
type: "string"
|
|
25
25
|
}
|
|
26
|
-
},
|
|
26
|
+
}, ft = {
|
|
27
27
|
type: "object",
|
|
28
28
|
properties: {
|
|
29
29
|
type: {
|
|
@@ -39,7 +39,7 @@ const Z = {
|
|
|
39
39
|
},
|
|
40
40
|
required: ["type", "id"],
|
|
41
41
|
additionalProperties: !1
|
|
42
|
-
},
|
|
42
|
+
}, ht = {
|
|
43
43
|
type: "object",
|
|
44
44
|
properties: {
|
|
45
45
|
type: {
|
|
@@ -60,7 +60,7 @@ const Z = {
|
|
|
60
60
|
},
|
|
61
61
|
required: ["type"],
|
|
62
62
|
additionalProperties: !1
|
|
63
|
-
},
|
|
63
|
+
}, gt = {
|
|
64
64
|
type: "object",
|
|
65
65
|
properties: {
|
|
66
66
|
type: {
|
|
@@ -80,7 +80,7 @@ const Z = {
|
|
|
80
80
|
},
|
|
81
81
|
required: ["type"],
|
|
82
82
|
additionalProperties: !1
|
|
83
|
-
},
|
|
83
|
+
}, mt = {
|
|
84
84
|
type: "object",
|
|
85
85
|
properties: {
|
|
86
86
|
type: {
|
|
@@ -105,7 +105,7 @@ const Z = {
|
|
|
105
105
|
},
|
|
106
106
|
required: ["type"],
|
|
107
107
|
additionalProperties: !1
|
|
108
|
-
},
|
|
108
|
+
}, vt = {
|
|
109
109
|
type: "object",
|
|
110
110
|
properties: {
|
|
111
111
|
chartTitle: W,
|
|
@@ -126,7 +126,7 @@ const Z = {
|
|
|
126
126
|
},
|
|
127
127
|
required: ["type"],
|
|
128
128
|
additionalProperties: !1
|
|
129
|
-
},
|
|
129
|
+
}, _t = {
|
|
130
130
|
type: "object",
|
|
131
131
|
properties: {
|
|
132
132
|
type: {
|
|
@@ -185,7 +185,7 @@ const Z = {
|
|
|
185
185
|
"type",
|
|
186
186
|
"values"
|
|
187
187
|
]
|
|
188
|
-
},
|
|
188
|
+
}, wt = {
|
|
189
189
|
type: "object",
|
|
190
190
|
properties: {
|
|
191
191
|
tz: {
|
|
@@ -220,7 +220,7 @@ const Z = {
|
|
|
220
220
|
"type",
|
|
221
221
|
"time_range"
|
|
222
222
|
]
|
|
223
|
-
},
|
|
223
|
+
}, kt = {
|
|
224
224
|
type: "object",
|
|
225
225
|
description: "A duration representing an exact start and end time.",
|
|
226
226
|
properties: {
|
|
@@ -244,7 +244,7 @@ const Z = {
|
|
|
244
244
|
required: [
|
|
245
245
|
"type"
|
|
246
246
|
]
|
|
247
|
-
},
|
|
247
|
+
}, St = {
|
|
248
248
|
type: "object",
|
|
249
249
|
description: "A query to launch at the API",
|
|
250
250
|
properties: {
|
|
@@ -315,8 +315,8 @@ const Z = {
|
|
|
315
315
|
time_range: {
|
|
316
316
|
description: "The time range to query.",
|
|
317
317
|
oneOf: [
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
wt,
|
|
319
|
+
kt
|
|
320
320
|
],
|
|
321
321
|
default: {
|
|
322
322
|
type: "relative",
|
|
@@ -327,17 +327,17 @@ const Z = {
|
|
|
327
327
|
type: "object"
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
},
|
|
330
|
+
}, xt = {
|
|
331
331
|
type: "object",
|
|
332
332
|
properties: {
|
|
333
|
-
query:
|
|
333
|
+
query: St,
|
|
334
334
|
chart: {
|
|
335
|
-
oneOf: [
|
|
335
|
+
oneOf: [ht, mt, gt, _t, vt, ft]
|
|
336
336
|
}
|
|
337
337
|
},
|
|
338
338
|
required: ["query", "chart"],
|
|
339
339
|
additionalProperties: !1
|
|
340
|
-
},
|
|
340
|
+
}, It = {
|
|
341
341
|
type: "object",
|
|
342
342
|
properties: {
|
|
343
343
|
position: {
|
|
@@ -371,20 +371,20 @@ const Z = {
|
|
|
371
371
|
},
|
|
372
372
|
required: ["position", "size"],
|
|
373
373
|
additionalProperties: !1
|
|
374
|
-
},
|
|
374
|
+
}, Tt = {
|
|
375
375
|
type: "object",
|
|
376
376
|
properties: {
|
|
377
|
-
definition:
|
|
378
|
-
layout:
|
|
377
|
+
definition: xt,
|
|
378
|
+
layout: It
|
|
379
379
|
},
|
|
380
380
|
required: ["definition", "layout"],
|
|
381
381
|
additionalProperties: !1
|
|
382
|
-
},
|
|
382
|
+
}, yi = {
|
|
383
383
|
type: "object",
|
|
384
384
|
properties: {
|
|
385
385
|
tiles: {
|
|
386
386
|
type: "array",
|
|
387
|
-
items:
|
|
387
|
+
items: Tt
|
|
388
388
|
},
|
|
389
389
|
tileHeight: {
|
|
390
390
|
type: "number",
|
|
@@ -409,12 +409,12 @@ const Z = {
|
|
|
409
409
|
additionalProperties: !1
|
|
410
410
|
};
|
|
411
411
|
var Le = /* @__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))(Le || {});
|
|
412
|
-
const
|
|
412
|
+
const At = (e) => {
|
|
413
413
|
var t, r, i, n, o;
|
|
414
414
|
return e ? !!// TODO: revisit: currently only the first check ever matters?
|
|
415
415
|
((t = Object.keys(e)) != null && t.length || (r = e.data) != null && r.length || (n = (i = e.data) == null ? void 0 : i.data) != null && n.length || !((o = e.data) != null && o.data) && typeof e.data == "object" && Object.keys(e == null ? void 0 : e.data).length) : !1;
|
|
416
416
|
};
|
|
417
|
-
function
|
|
417
|
+
function Ct(e = m({}), t, r, i = At) {
|
|
418
418
|
const n = m(
|
|
419
419
|
"PENDING"
|
|
420
420
|
/* PENDING */
|
|
@@ -451,16 +451,16 @@ function At(e = m({}), t, r, i = Tt) {
|
|
|
451
451
|
swrvState: Le
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
const
|
|
454
|
+
const Et = {
|
|
455
455
|
noQueryBridge: "No query bridge provided. Unable to render dashboard."
|
|
456
|
-
}, Et = {
|
|
457
|
-
timeRangeExceeded: "The time range for this report is outside of your organization's data retention period"
|
|
458
456
|
}, qt = {
|
|
459
|
-
|
|
460
|
-
|
|
457
|
+
timeRangeExceeded: "The time range for this report is outside of your organization's data retention period"
|
|
458
|
+
}, Nt = {
|
|
459
|
+
renderer: Et,
|
|
460
|
+
queryDataProvider: qt
|
|
461
461
|
};
|
|
462
|
-
function
|
|
463
|
-
const e = Ee("en-us",
|
|
462
|
+
function Ot() {
|
|
463
|
+
const e = Ee("en-us", Nt);
|
|
464
464
|
return {
|
|
465
465
|
i18n: e,
|
|
466
466
|
i18nT: qe(e)
|
|
@@ -468,7 +468,7 @@ function Nt() {
|
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
470
|
const De = {
|
|
471
|
-
useI18n:
|
|
471
|
+
useI18n: Ot
|
|
472
472
|
}, J = /* @__PURE__ */ E({
|
|
473
473
|
__name: "QueryDataProvider",
|
|
474
474
|
props: {
|
|
@@ -502,12 +502,12 @@ const De = {
|
|
|
502
502
|
i("queryComplete");
|
|
503
503
|
}
|
|
504
504
|
}, {
|
|
505
|
-
refreshInterval:
|
|
505
|
+
refreshInterval: r.context.refreshInterval ?? yt,
|
|
506
506
|
revalidateOnFocus: !1
|
|
507
|
-
}), { state: c, swrvState: y } =
|
|
507
|
+
}), { state: c, swrvState: y } = Ct(l, f, p), d = m(null), w = v(() => c.value === y.ERROR || !!d.value), _ = v(() => !r.queryReady || c.value === y.PENDING);
|
|
508
508
|
return (N, j) => {
|
|
509
509
|
const O = U("KSkeleton"), $ = U("KEmptyState");
|
|
510
|
-
return
|
|
510
|
+
return _.value || !g(l) && !w.value ? (h(), T(O, {
|
|
511
511
|
key: 0,
|
|
512
512
|
class: "chart-skeleton",
|
|
513
513
|
type: "table"
|
|
@@ -527,7 +527,7 @@ const De = {
|
|
|
527
527
|
}) : B("", !0);
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
-
}),
|
|
530
|
+
}), Rt = { class: "analytics-chart" }, Lt = /* @__PURE__ */ E({
|
|
531
531
|
__name: "SimpleChartRenderer",
|
|
532
532
|
props: {
|
|
533
533
|
query: {},
|
|
@@ -552,7 +552,7 @@ const De = {
|
|
|
552
552
|
"query-ready": n.queryReady
|
|
553
553
|
}, {
|
|
554
554
|
default: S(({ data: a }) => [
|
|
555
|
-
V("div",
|
|
555
|
+
V("div", Rt, [
|
|
556
556
|
q(g(at), {
|
|
557
557
|
"chart-data": a,
|
|
558
558
|
"chart-options": i.value,
|
|
@@ -568,7 +568,7 @@ const De = {
|
|
|
568
568
|
for (const [i, n] of t)
|
|
569
569
|
r[i] = n;
|
|
570
570
|
return r;
|
|
571
|
-
},
|
|
571
|
+
}, Dt = /* @__PURE__ */ D(Lt, [["__scopeId", "data-v-f0f6ed41"]]), jt = { class: "analytics-chart" }, $t = /* @__PURE__ */ E({
|
|
572
572
|
__name: "BarChartRenderer",
|
|
573
573
|
props: {
|
|
574
574
|
query: {},
|
|
@@ -595,7 +595,7 @@ const De = {
|
|
|
595
595
|
"query-ready": n.queryReady
|
|
596
596
|
}, {
|
|
597
597
|
default: S(({ data: a }) => [
|
|
598
|
-
V("div",
|
|
598
|
+
V("div", jt, [
|
|
599
599
|
q(g(Ce), {
|
|
600
600
|
"allow-csv-export": n.chartOptions.allowCsvExport,
|
|
601
601
|
"chart-data": a,
|
|
@@ -611,7 +611,7 @@ const De = {
|
|
|
611
611
|
_: 1
|
|
612
612
|
}, 8, ["context", "query", "query-ready"]));
|
|
613
613
|
}
|
|
614
|
-
}), ye = /* @__PURE__ */ D(
|
|
614
|
+
}), ye = /* @__PURE__ */ D($t, [["__scopeId", "data-v-36598a1b"]]), zt = { class: "analytics-chart" }, Pt = /* @__PURE__ */ E({
|
|
615
615
|
__name: "TimeseriesChartRenderer",
|
|
616
616
|
props: {
|
|
617
617
|
query: {},
|
|
@@ -642,7 +642,7 @@ const De = {
|
|
|
642
642
|
"query-ready": n.queryReady
|
|
643
643
|
}, {
|
|
644
644
|
default: S(({ data: a }) => [
|
|
645
|
-
V("div",
|
|
645
|
+
V("div", zt, [
|
|
646
646
|
q(g(Ce), {
|
|
647
647
|
"allow-csv-export": n.chartOptions.allowCsvExport,
|
|
648
648
|
"chart-data": a,
|
|
@@ -657,7 +657,7 @@ const De = {
|
|
|
657
657
|
_: 1
|
|
658
658
|
}, 8, ["context", "query", "query-ready"]));
|
|
659
659
|
}
|
|
660
|
-
}),
|
|
660
|
+
}), Ut = /* @__PURE__ */ D(Pt, [["__scopeId", "data-v-93ab34da"]]), Ft = { class: "metric-card-tile-wrapper" }, Vt = /* @__PURE__ */ E({
|
|
661
661
|
__name: "GoldenSignalsRenderer",
|
|
662
662
|
props: {
|
|
663
663
|
query: {},
|
|
@@ -695,7 +695,7 @@ const De = {
|
|
|
695
695
|
hasTrendAccess: !0,
|
|
696
696
|
refreshInterval: 0
|
|
697
697
|
}));
|
|
698
|
-
return (n, o) => (h(), C("div",
|
|
698
|
+
return (n, o) => (h(), C("div", Ft, [
|
|
699
699
|
q(g(lt), Te(Me(i.value)), {
|
|
700
700
|
default: S(() => [
|
|
701
701
|
q(g(ct))
|
|
@@ -704,9 +704,9 @@ const De = {
|
|
|
704
704
|
}, 16)
|
|
705
705
|
]));
|
|
706
706
|
}
|
|
707
|
-
}),
|
|
707
|
+
}), Kt = /* @__PURE__ */ D(Vt, [["__scopeId", "data-v-97fa928f"]]), je = "20px";
|
|
708
708
|
var P = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(P || {});
|
|
709
|
-
function
|
|
709
|
+
function Bt() {
|
|
710
710
|
return {
|
|
711
711
|
getAxiosInstance: (e = {}) => {
|
|
712
712
|
try {
|
|
@@ -730,7 +730,7 @@ function Kt() {
|
|
|
730
730
|
}
|
|
731
731
|
};
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function Gt() {
|
|
734
734
|
return {
|
|
735
735
|
debounce: (e, t) => {
|
|
736
736
|
let r;
|
|
@@ -743,22 +743,22 @@ function Bt() {
|
|
|
743
743
|
};
|
|
744
744
|
}
|
|
745
745
|
function ie(e = {}) {
|
|
746
|
-
const { getAxiosInstance: t } =
|
|
746
|
+
const { getAxiosInstance: t } = Bt();
|
|
747
747
|
return {
|
|
748
748
|
axiosInstance: t(e)
|
|
749
749
|
};
|
|
750
750
|
}
|
|
751
|
-
const
|
|
751
|
+
const Mt = {
|
|
752
752
|
actions: {
|
|
753
753
|
copyId: "Copy ID",
|
|
754
754
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
755
755
|
copyToClipboard: "Copied successfully!",
|
|
756
756
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
757
757
|
}
|
|
758
|
-
},
|
|
758
|
+
}, Ht = {
|
|
759
759
|
message: "Are you sure you want to delete this {entityType}?",
|
|
760
760
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
761
|
-
},
|
|
761
|
+
}, Yt = {
|
|
762
762
|
actions: {
|
|
763
763
|
viewConfiguration: "View Configuration",
|
|
764
764
|
save: "Save",
|
|
@@ -774,13 +774,13 @@ const Gt = {
|
|
|
774
774
|
errors: {
|
|
775
775
|
edit: "The entity could not be edited at this time."
|
|
776
776
|
}
|
|
777
|
-
},
|
|
777
|
+
}, Zt = {
|
|
778
778
|
emptyState: {
|
|
779
779
|
noSearchResultsTitle: "No results found",
|
|
780
780
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
781
781
|
noSearchResultsCtaText: "Clear"
|
|
782
782
|
}
|
|
783
|
-
},
|
|
783
|
+
}, Wt = {
|
|
784
784
|
title: "Configuration",
|
|
785
785
|
actions: {
|
|
786
786
|
copy: "Copy JSON"
|
|
@@ -815,7 +815,7 @@ const Gt = {
|
|
|
815
815
|
entryTitle: "Entry {index}",
|
|
816
816
|
structuredFormat: "Structured"
|
|
817
817
|
}
|
|
818
|
-
},
|
|
818
|
+
}, Jt = {
|
|
819
819
|
filterButtonText: "Filter",
|
|
820
820
|
fieldLabel: "Filter by:",
|
|
821
821
|
inputPlaceholder: "Enter a value",
|
|
@@ -823,15 +823,15 @@ const Gt = {
|
|
|
823
823
|
applyButtonText: "Apply",
|
|
824
824
|
clearButtonText: "Clear",
|
|
825
825
|
clearAllButtonText: "Clear all filters"
|
|
826
|
-
},
|
|
826
|
+
}, Qt = {
|
|
827
827
|
errors: {
|
|
828
828
|
fetch: "Could not fetch available items",
|
|
829
829
|
invalid: "Please select a valid value"
|
|
830
830
|
}
|
|
831
|
-
},
|
|
831
|
+
}, Xt = {
|
|
832
832
|
unexpected: "An unexpected error has occurred",
|
|
833
833
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
834
|
-
},
|
|
834
|
+
}, er = {
|
|
835
835
|
enable: {
|
|
836
836
|
title: "Enable {entityType}",
|
|
837
837
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -842,19 +842,19 @@ const Gt = {
|
|
|
842
842
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
843
843
|
confirmText: "Yes, disable"
|
|
844
844
|
}
|
|
845
|
-
},
|
|
846
|
-
global:
|
|
847
|
-
deleteModal:
|
|
848
|
-
baseForm:
|
|
849
|
-
baseTable:
|
|
850
|
-
baseConfigCard:
|
|
851
|
-
filter:
|
|
852
|
-
debouncedFilter:
|
|
853
|
-
errors:
|
|
854
|
-
toggleModal:
|
|
845
|
+
}, tr = {
|
|
846
|
+
global: Mt,
|
|
847
|
+
deleteModal: Ht,
|
|
848
|
+
baseForm: Yt,
|
|
849
|
+
baseTable: Zt,
|
|
850
|
+
baseConfigCard: Wt,
|
|
851
|
+
filter: Jt,
|
|
852
|
+
debouncedFilter: Qt,
|
|
853
|
+
errors: Xt,
|
|
854
|
+
toggleModal: er
|
|
855
855
|
};
|
|
856
856
|
function ae() {
|
|
857
|
-
const e = Ee("en-us",
|
|
857
|
+
const e = Ee("en-us", tr);
|
|
858
858
|
return {
|
|
859
859
|
i18n: e,
|
|
860
860
|
i18nT: qe(e)
|
|
@@ -905,22 +905,22 @@ function $e() {
|
|
|
905
905
|
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
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function rr(e, t, r, i = {
|
|
909
909
|
fetchedItemsKey: "data",
|
|
910
910
|
searchKeys: ["id"]
|
|
911
911
|
}) {
|
|
912
912
|
r || (r = "1000");
|
|
913
913
|
const { axiosInstance: n } = ie({
|
|
914
914
|
headers: e.requestHeaders
|
|
915
|
-
}), { i18n: { t: o } } = ae(), { debounce: a } =
|
|
915
|
+
}), { i18n: { t: o } } = ae(), { debounce: a } = Gt(), s = a(async (u) => {
|
|
916
916
|
await $(u);
|
|
917
917
|
}, 200), l = m(!1), f = m(""), p = m(""), c = m([]), y = m([]), d = m(void 0), w = g(t);
|
|
918
|
-
let
|
|
919
|
-
e.app === "konnect" ?
|
|
918
|
+
let _ = `${e.apiBaseUrl}${w}`;
|
|
919
|
+
e.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
920
920
|
const { isValidUuid: N } = $e(), j = async () => {
|
|
921
921
|
try {
|
|
922
922
|
l.value = !0;
|
|
923
|
-
const { data: u } = await n.get(`${
|
|
923
|
+
const { data: u } = await n.get(`${_}?size=${r}`);
|
|
924
924
|
u != null && u.next || (d.value = i.fetchedItemsKey in u ? u[i.fetchedItemsKey] : []), y.value = i.fetchedItemsKey in u ? u[i.fetchedItemsKey] : [], c.value = y.value;
|
|
925
925
|
} catch {
|
|
926
926
|
c.value = [], f.value = o("debouncedFilter.errors.fetch");
|
|
@@ -933,18 +933,18 @@ function tr(e, t, r, i = {
|
|
|
933
933
|
if (O.value = u || "", d.value === void 0)
|
|
934
934
|
try {
|
|
935
935
|
if (l.value = !0, f.value = "", p.value = "", e.app === "konnect") {
|
|
936
|
-
let x =
|
|
936
|
+
let x = _ + "";
|
|
937
937
|
u && (x += `/${u}`);
|
|
938
938
|
const { data: A } = await n.get(`${x}?size=${r}`);
|
|
939
939
|
i.fetchedItemsKey in A ? c.value = A[i.fetchedItemsKey] : A != null && A.id ? c.value = [A] : c.value = [];
|
|
940
940
|
} else if (u) {
|
|
941
941
|
const x = [];
|
|
942
942
|
N(u) && i.searchKeys.includes("id") ? x.push((async () => {
|
|
943
|
-
const { data: k } = await n.get(`${
|
|
943
|
+
const { data: k } = await n.get(`${_}/${u}`);
|
|
944
944
|
return [k[i.fetchedItemsKey] ?? k];
|
|
945
945
|
})()) : x.push(
|
|
946
946
|
...i.searchKeys.filter((k) => k !== "id").map(async (k) => {
|
|
947
|
-
const { data: R } = await n.get(`${
|
|
947
|
+
const { data: R } = await n.get(`${_}?${k}=${u}`);
|
|
948
948
|
return R[i.fetchedItemsKey];
|
|
949
949
|
})
|
|
950
950
|
);
|
|
@@ -983,13 +983,13 @@ function tr(e, t, r, i = {
|
|
|
983
983
|
debouncedQueryChange: s
|
|
984
984
|
};
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function nr(e, t) {
|
|
987
987
|
const r = g(t), i = v(
|
|
988
988
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r)
|
|
989
989
|
);
|
|
990
990
|
return i.value.search = "", (n) => `${i.value.href}/${n}`;
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function ir() {
|
|
993
993
|
const { i18n: { t: e } } = ae();
|
|
994
994
|
return {
|
|
995
995
|
getMessageFromError: (t) => {
|
|
@@ -1019,7 +1019,7 @@ function nr() {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function ar(e) {
|
|
1023
1023
|
const t = window.location.origin, r = t.endsWith("/") ? t : `${t}/`;
|
|
1024
1024
|
try {
|
|
1025
1025
|
const i = e.join("/"), n = `${r}${i}`, o = e.some((a) => a.trim() === "");
|
|
@@ -1040,15 +1040,15 @@ function ze(e, t) {
|
|
|
1040
1040
|
const { page: s, pageSize: l, offset: f, sortColumnKey: p, sortColumnOrder: c, query: y } = a;
|
|
1041
1041
|
try {
|
|
1042
1042
|
let d = new URL(o.value.href);
|
|
1043
|
-
return n.value && y ? (d.search = "", d = r.value.isExactMatch ? new URL(`${d.href}/${y}/`) : new URL(`${d.href}?filter[name][contains]=${y}`)) : (n.value || new URLSearchParams(y).forEach((w,
|
|
1044
|
-
d.searchParams.append(
|
|
1043
|
+
return n.value && y ? (d.search = "", d = r.value.isExactMatch ? new URL(`${d.href}/${y}/`) : new URL(`${d.href}?filter[name][contains]=${y}`)) : (n.value || new URLSearchParams(y).forEach((w, _) => {
|
|
1044
|
+
d.searchParams.append(_, w);
|
|
1045
1045
|
}), p && d.searchParams.append("sort_by", p), c === "desc" && d.searchParams.append("sort_desc", "1"), d.searchParams.append("size", String(l))), f && s !== 1 && d.searchParams.append("offset", String(f)), d.href;
|
|
1046
1046
|
} catch (d) {
|
|
1047
1047
|
return console.error("RouteList(fetcher)", d), i.value;
|
|
1048
1048
|
}
|
|
1049
1049
|
};
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function or(e, t, r = "data") {
|
|
1052
1052
|
var i;
|
|
1053
1053
|
const n = g(t), { axiosInstance: o } = ie({
|
|
1054
1054
|
...e.axiosRequestConfig,
|
|
@@ -1068,7 +1068,7 @@ function ar(e, t, r = "data") {
|
|
|
1068
1068
|
const y = c.data, d = r && r.replace(/[^\w-_]/gi, "");
|
|
1069
1069
|
let w;
|
|
1070
1070
|
y[d] && Array.isArray(y[d]) ? w = y[d] : Array.isArray(y) ? w = y : w = Object.keys(y).length ? [y] : [];
|
|
1071
|
-
const
|
|
1071
|
+
const _ = {
|
|
1072
1072
|
data: w,
|
|
1073
1073
|
total: w.length,
|
|
1074
1074
|
...y.offset ? {
|
|
@@ -1079,8 +1079,8 @@ function ar(e, t, r = "data") {
|
|
|
1079
1079
|
};
|
|
1080
1080
|
return s.value = {
|
|
1081
1081
|
status: P.Idle,
|
|
1082
|
-
response:
|
|
1083
|
-
},
|
|
1082
|
+
response: _
|
|
1083
|
+
}, _;
|
|
1084
1084
|
} catch (p) {
|
|
1085
1085
|
const c = {
|
|
1086
1086
|
data: [],
|
|
@@ -1098,7 +1098,7 @@ function ar(e, t, r = "data") {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
}, fetcherState: s };
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function sr() {
|
|
1102
1102
|
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;
|
|
1103
1103
|
return {
|
|
1104
1104
|
capitalize: (r) => r ? r.replace(t, (i) => i.toUpperCase()) : "",
|
|
@@ -1115,24 +1115,24 @@ const Pe = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
1115
1115
|
}, he = (e) => e === "*" || e === "x" || e === "X", ge = (e) => {
|
|
1116
1116
|
const t = parseInt(e, 10);
|
|
1117
1117
|
return isNaN(t) ? e : t;
|
|
1118
|
-
},
|
|
1118
|
+
}, lr = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], cr = (e, t) => {
|
|
1119
1119
|
if (he(e) || he(t))
|
|
1120
1120
|
return 0;
|
|
1121
|
-
const [r, i] =
|
|
1121
|
+
const [r, i] = lr(ge(e), ge(t));
|
|
1122
1122
|
return r > i ? 1 : r < i ? -1 : 0;
|
|
1123
1123
|
}, me = (e, t) => {
|
|
1124
1124
|
for (let r = 0; r < Math.max(e.length, t.length); r++) {
|
|
1125
|
-
const i =
|
|
1125
|
+
const i = cr(e[r] || "0", t[r] || "0");
|
|
1126
1126
|
if (i !== 0)
|
|
1127
1127
|
return i;
|
|
1128
1128
|
}
|
|
1129
1129
|
return 0;
|
|
1130
|
-
},
|
|
1130
|
+
}, ur = (e, t) => {
|
|
1131
1131
|
const r = fe(e), i = fe(t), n = r.pop(), o = i.pop(), a = me(r, i);
|
|
1132
1132
|
return a !== 0 ? a : n && o ? me(n.split("."), o.split(".")) : n || o ? n ? -1 : 1 : 0;
|
|
1133
1133
|
}, ve = (e, t, r) => {
|
|
1134
|
-
|
|
1135
|
-
const i =
|
|
1134
|
+
pr(r);
|
|
1135
|
+
const i = ur(e, t);
|
|
1136
1136
|
return Ue[r].includes(i);
|
|
1137
1137
|
}, Ue = {
|
|
1138
1138
|
">": [1],
|
|
@@ -1141,18 +1141,18 @@ const Pe = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
1141
1141
|
"<=": [-1, 0],
|
|
1142
1142
|
"<": [-1],
|
|
1143
1143
|
"!=": [-1, 1]
|
|
1144
|
-
},
|
|
1144
|
+
}, _e = Object.keys(Ue), pr = (e) => {
|
|
1145
1145
|
if (typeof e != "string")
|
|
1146
1146
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
1147
|
-
if (
|
|
1148
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
1149
|
-
},
|
|
1150
|
-
function
|
|
1147
|
+
if (_e.indexOf(e) === -1)
|
|
1148
|
+
throw new Error(`Invalid operator, expected one of ${_e.join("|")}`);
|
|
1149
|
+
}, dr = (e) => typeof e == "string" && /^[v\d]/.test(e) && Pe.test(e);
|
|
1150
|
+
function yr(e) {
|
|
1151
1151
|
const { gatewayInfo: t, supportedRange: r } = e;
|
|
1152
1152
|
if (!t)
|
|
1153
1153
|
return !0;
|
|
1154
1154
|
const { edition: i, version: n } = t;
|
|
1155
|
-
if (!
|
|
1155
|
+
if (!dr(n))
|
|
1156
1156
|
return console.error("Invalid version"), !1;
|
|
1157
1157
|
const o = r[i];
|
|
1158
1158
|
if (!o)
|
|
@@ -1160,7 +1160,7 @@ function dr(e) {
|
|
|
1160
1160
|
const [a, s] = o;
|
|
1161
1161
|
return !(a && ve(n, a, "<") || s && ve(n, s, ">"));
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function fr(e) {
|
|
1164
1164
|
const t = m(0), r = m(0), i = m(!1);
|
|
1165
1165
|
return Ye(e, (n) => {
|
|
1166
1166
|
n && !i.value && (t.value = n.offsetWidth, r.value = n.scrollWidth, i.value = !0);
|
|
@@ -1168,33 +1168,33 @@ function yr(e) {
|
|
|
1168
1168
|
isTruncated: v(() => t.value < r.value)
|
|
1169
1169
|
};
|
|
1170
1170
|
}
|
|
1171
|
-
const
|
|
1171
|
+
const be = {
|
|
1172
1172
|
useAxios: ie,
|
|
1173
|
-
useDebouncedFilter:
|
|
1174
|
-
useDeleteUrlBuilder:
|
|
1175
|
-
useErrors:
|
|
1176
|
-
useExternalLinkCreator:
|
|
1177
|
-
useFetcher:
|
|
1173
|
+
useDebouncedFilter: rr,
|
|
1174
|
+
useDeleteUrlBuilder: nr,
|
|
1175
|
+
useErrors: ir,
|
|
1176
|
+
useExternalLinkCreator: ar,
|
|
1177
|
+
useFetcher: or,
|
|
1178
1178
|
useFetchUrlBuilder: ze,
|
|
1179
1179
|
useHelpers: $e,
|
|
1180
|
-
useStringHelpers:
|
|
1180
|
+
useStringHelpers: sr,
|
|
1181
1181
|
useI18n: ae,
|
|
1182
|
-
useGatewayFeatureSupported:
|
|
1183
|
-
useTruncationDetector:
|
|
1184
|
-
},
|
|
1182
|
+
useGatewayFeatureSupported: yr,
|
|
1183
|
+
useTruncationDetector: fr
|
|
1184
|
+
}, hr = (e, t) => {
|
|
1185
1185
|
const r = e.__vccOpts || e;
|
|
1186
1186
|
for (const [i, n] of t)
|
|
1187
1187
|
r[i] = n;
|
|
1188
1188
|
return r;
|
|
1189
|
-
},
|
|
1189
|
+
}, gr = "#0044f4", mr = "16px";
|
|
1190
1190
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1191
1191
|
function Fe(e) {
|
|
1192
1192
|
return typeof e > "u" || e === null;
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function vr(e) {
|
|
1195
1195
|
return typeof e == "object" && e !== null;
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function _r(e) {
|
|
1198
1198
|
return Array.isArray(e) ? e : Fe(e) ? [] : [e];
|
|
1199
1199
|
}
|
|
1200
1200
|
function br(e, t) {
|
|
@@ -1204,22 +1204,22 @@ function br(e, t) {
|
|
|
1204
1204
|
n = o[r], e[n] = t[n];
|
|
1205
1205
|
return e;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function wr(e, t) {
|
|
1208
1208
|
var r = "", i;
|
|
1209
1209
|
for (i = 0; i < t; i += 1)
|
|
1210
1210
|
r += e;
|
|
1211
1211
|
return r;
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function kr(e) {
|
|
1214
1214
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1215
1215
|
}
|
|
1216
|
-
var
|
|
1217
|
-
isNothing:
|
|
1218
|
-
isObject:
|
|
1219
|
-
toArray:
|
|
1220
|
-
repeat:
|
|
1221
|
-
isNegativeZero:
|
|
1222
|
-
extend:
|
|
1216
|
+
var Sr = Fe, xr = vr, Ir = _r, Tr = wr, Ar = kr, Cr = br, oe = {
|
|
1217
|
+
isNothing: Sr,
|
|
1218
|
+
isObject: xr,
|
|
1219
|
+
toArray: Ir,
|
|
1220
|
+
repeat: Tr,
|
|
1221
|
+
isNegativeZero: Ar,
|
|
1222
|
+
extend: Cr
|
|
1223
1223
|
};
|
|
1224
1224
|
function Ve(e, t) {
|
|
1225
1225
|
var r = "", i = e.reason || "(unknown reason)";
|
|
@@ -1235,7 +1235,7 @@ G.prototype.constructor = G;
|
|
|
1235
1235
|
G.prototype.toString = function(e) {
|
|
1236
1236
|
return this.name + ": " + Ve(this, e);
|
|
1237
1237
|
};
|
|
1238
|
-
var L = G,
|
|
1238
|
+
var L = G, Er = [
|
|
1239
1239
|
"kind",
|
|
1240
1240
|
"multi",
|
|
1241
1241
|
"resolve",
|
|
@@ -1246,12 +1246,12 @@ var L = G, Cr = [
|
|
|
1246
1246
|
"representName",
|
|
1247
1247
|
"defaultStyle",
|
|
1248
1248
|
"styleAliases"
|
|
1249
|
-
],
|
|
1249
|
+
], qr = [
|
|
1250
1250
|
"scalar",
|
|
1251
1251
|
"sequence",
|
|
1252
1252
|
"mapping"
|
|
1253
1253
|
];
|
|
1254
|
-
function
|
|
1254
|
+
function Nr(e) {
|
|
1255
1255
|
var t = {};
|
|
1256
1256
|
return e !== null && Object.keys(e).forEach(function(r) {
|
|
1257
1257
|
e[r].forEach(function(i) {
|
|
@@ -1259,18 +1259,18 @@ function qr(e) {
|
|
|
1259
1259
|
});
|
|
1260
1260
|
}), t;
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Or(e, t) {
|
|
1263
1263
|
if (t = t || {}, Object.keys(t).forEach(function(r) {
|
|
1264
|
-
if (
|
|
1264
|
+
if (Er.indexOf(r) === -1)
|
|
1265
1265
|
throw new L('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
|
|
1266
1266
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1267
1267
|
return !0;
|
|
1268
1268
|
}, this.construct = t.construct || function(r) {
|
|
1269
1269
|
return r;
|
|
1270
|
-
}, 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 =
|
|
1270
|
+
}, 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 = Nr(t.styleAliases || null), qr.indexOf(this.kind) === -1)
|
|
1271
1271
|
throw new L('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1272
1272
|
}
|
|
1273
|
-
var
|
|
1273
|
+
var b = Or;
|
|
1274
1274
|
function we(e, t) {
|
|
1275
1275
|
var r = [];
|
|
1276
1276
|
return e[t].forEach(function(i) {
|
|
@@ -1280,7 +1280,7 @@ function we(e, t) {
|
|
|
1280
1280
|
}), r[n] = i;
|
|
1281
1281
|
}), r;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function Rr() {
|
|
1284
1284
|
var e = {
|
|
1285
1285
|
scalar: {},
|
|
1286
1286
|
sequence: {},
|
|
@@ -1305,7 +1305,7 @@ function te(e) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
te.prototype.extend = function(e) {
|
|
1307
1307
|
var t = [], r = [];
|
|
1308
|
-
if (e instanceof
|
|
1308
|
+
if (e instanceof b)
|
|
1309
1309
|
r.push(e);
|
|
1310
1310
|
else if (Array.isArray(e))
|
|
1311
1311
|
r = r.concat(e);
|
|
@@ -1314,58 +1314,58 @@ te.prototype.extend = function(e) {
|
|
|
1314
1314
|
else
|
|
1315
1315
|
throw new L("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1316
1316
|
t.forEach(function(n) {
|
|
1317
|
-
if (!(n instanceof
|
|
1317
|
+
if (!(n instanceof b))
|
|
1318
1318
|
throw new L("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1319
1319
|
if (n.loadKind && n.loadKind !== "scalar")
|
|
1320
1320
|
throw new L("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1321
1321
|
if (n.multi)
|
|
1322
1322
|
throw new L("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1323
1323
|
}), r.forEach(function(n) {
|
|
1324
|
-
if (!(n instanceof
|
|
1324
|
+
if (!(n instanceof b))
|
|
1325
1325
|
throw new L("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1326
1326
|
});
|
|
1327
1327
|
var i = Object.create(te.prototype);
|
|
1328
|
-
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = we(i, "implicit"), i.compiledExplicit = we(i, "explicit"), i.compiledTypeMap =
|
|
1328
|
+
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = we(i, "implicit"), i.compiledExplicit = we(i, "explicit"), i.compiledTypeMap = Rr(i.compiledImplicit, i.compiledExplicit), i;
|
|
1329
1329
|
};
|
|
1330
|
-
var
|
|
1330
|
+
var Lr = te, Dr = new b("tag:yaml.org,2002:str", {
|
|
1331
1331
|
kind: "scalar",
|
|
1332
1332
|
construct: function(e) {
|
|
1333
1333
|
return e !== null ? e : "";
|
|
1334
1334
|
}
|
|
1335
|
-
}),
|
|
1335
|
+
}), jr = new b("tag:yaml.org,2002:seq", {
|
|
1336
1336
|
kind: "sequence",
|
|
1337
1337
|
construct: function(e) {
|
|
1338
1338
|
return e !== null ? e : [];
|
|
1339
1339
|
}
|
|
1340
|
-
}),
|
|
1340
|
+
}), $r = new b("tag:yaml.org,2002:map", {
|
|
1341
1341
|
kind: "mapping",
|
|
1342
1342
|
construct: function(e) {
|
|
1343
1343
|
return e !== null ? e : {};
|
|
1344
1344
|
}
|
|
1345
|
-
}),
|
|
1345
|
+
}), zr = new Lr({
|
|
1346
1346
|
explicit: [
|
|
1347
|
-
Lr,
|
|
1348
1347
|
Dr,
|
|
1349
|
-
jr
|
|
1348
|
+
jr,
|
|
1349
|
+
$r
|
|
1350
1350
|
]
|
|
1351
1351
|
});
|
|
1352
|
-
function
|
|
1352
|
+
function Pr(e) {
|
|
1353
1353
|
if (e === null)
|
|
1354
1354
|
return !0;
|
|
1355
1355
|
var t = e.length;
|
|
1356
1356
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function Ur() {
|
|
1359
1359
|
return null;
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function Fr(e) {
|
|
1362
1362
|
return e === null;
|
|
1363
1363
|
}
|
|
1364
|
-
var
|
|
1364
|
+
var Vr = new b("tag:yaml.org,2002:null", {
|
|
1365
1365
|
kind: "scalar",
|
|
1366
|
-
resolve:
|
|
1367
|
-
construct:
|
|
1368
|
-
predicate:
|
|
1366
|
+
resolve: Pr,
|
|
1367
|
+
construct: Ur,
|
|
1368
|
+
predicate: Fr,
|
|
1369
1369
|
represent: {
|
|
1370
1370
|
canonical: function() {
|
|
1371
1371
|
return "~";
|
|
@@ -1385,23 +1385,23 @@ var Fr = new _("tag:yaml.org,2002:null", {
|
|
|
1385
1385
|
},
|
|
1386
1386
|
defaultStyle: "lowercase"
|
|
1387
1387
|
});
|
|
1388
|
-
function
|
|
1388
|
+
function Kr(e) {
|
|
1389
1389
|
if (e === null)
|
|
1390
1390
|
return !1;
|
|
1391
1391
|
var t = e.length;
|
|
1392
1392
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1394
|
+
function Br(e) {
|
|
1395
1395
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Gr(e) {
|
|
1398
1398
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1399
1399
|
}
|
|
1400
|
-
var
|
|
1400
|
+
var Mr = new b("tag:yaml.org,2002:bool", {
|
|
1401
1401
|
kind: "scalar",
|
|
1402
|
-
resolve:
|
|
1403
|
-
construct:
|
|
1404
|
-
predicate:
|
|
1402
|
+
resolve: Kr,
|
|
1403
|
+
construct: Br,
|
|
1404
|
+
predicate: Gr,
|
|
1405
1405
|
represent: {
|
|
1406
1406
|
lowercase: function(e) {
|
|
1407
1407
|
return e ? "true" : "false";
|
|
@@ -1415,16 +1415,16 @@ var Gr = new _("tag:yaml.org,2002:bool", {
|
|
|
1415
1415
|
},
|
|
1416
1416
|
defaultStyle: "lowercase"
|
|
1417
1417
|
});
|
|
1418
|
-
function
|
|
1418
|
+
function Hr(e) {
|
|
1419
1419
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function Yr(e) {
|
|
1422
1422
|
return 48 <= e && e <= 55;
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function Zr(e) {
|
|
1425
1425
|
return 48 <= e && e <= 57;
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function Wr(e) {
|
|
1428
1428
|
if (e === null)
|
|
1429
1429
|
return !1;
|
|
1430
1430
|
var t = e.length, r = 0, i = !1, n;
|
|
@@ -1445,7 +1445,7 @@ function Zr(e) {
|
|
|
1445
1445
|
if (n === "x") {
|
|
1446
1446
|
for (r++; r < t; r++)
|
|
1447
1447
|
if (n = e[r], n !== "_") {
|
|
1448
|
-
if (!
|
|
1448
|
+
if (!Hr(e.charCodeAt(r)))
|
|
1449
1449
|
return !1;
|
|
1450
1450
|
i = !0;
|
|
1451
1451
|
}
|
|
@@ -1454,7 +1454,7 @@ function Zr(e) {
|
|
|
1454
1454
|
if (n === "o") {
|
|
1455
1455
|
for (r++; r < t; r++)
|
|
1456
1456
|
if (n = e[r], n !== "_") {
|
|
1457
|
-
if (!
|
|
1457
|
+
if (!Yr(e.charCodeAt(r)))
|
|
1458
1458
|
return !1;
|
|
1459
1459
|
i = !0;
|
|
1460
1460
|
}
|
|
@@ -1465,13 +1465,13 @@ function Zr(e) {
|
|
|
1465
1465
|
return !1;
|
|
1466
1466
|
for (; r < t; r++)
|
|
1467
1467
|
if (n = e[r], n !== "_") {
|
|
1468
|
-
if (!
|
|
1468
|
+
if (!Zr(e.charCodeAt(r)))
|
|
1469
1469
|
return !1;
|
|
1470
1470
|
i = !0;
|
|
1471
1471
|
}
|
|
1472
1472
|
return !(!i || n === "_");
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Jr(e) {
|
|
1475
1475
|
var t = e, r = 1, i;
|
|
1476
1476
|
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")
|
|
1477
1477
|
return 0;
|
|
@@ -1485,14 +1485,14 @@ function Wr(e) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
return r * parseInt(t, 10);
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1488
|
+
function Qr(e) {
|
|
1489
1489
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !oe.isNegativeZero(e);
|
|
1490
1490
|
}
|
|
1491
|
-
var
|
|
1491
|
+
var Xr = new b("tag:yaml.org,2002:int", {
|
|
1492
1492
|
kind: "scalar",
|
|
1493
|
-
resolve:
|
|
1494
|
-
construct:
|
|
1495
|
-
predicate:
|
|
1493
|
+
resolve: Wr,
|
|
1494
|
+
construct: Jr,
|
|
1495
|
+
predicate: Qr,
|
|
1496
1496
|
represent: {
|
|
1497
1497
|
binary: function(e) {
|
|
1498
1498
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1515,21 +1515,21 @@ var Qr = new _("tag:yaml.org,2002:int", {
|
|
|
1515
1515
|
decimal: [10, "dec"],
|
|
1516
1516
|
hexadecimal: [16, "hex"]
|
|
1517
1517
|
}
|
|
1518
|
-
}),
|
|
1518
|
+
}), en = new RegExp(
|
|
1519
1519
|
// 2.5e4, 2.5 and integers
|
|
1520
1520
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1521
1521
|
);
|
|
1522
|
-
function
|
|
1523
|
-
return !(e === null || !
|
|
1522
|
+
function tn(e) {
|
|
1523
|
+
return !(e === null || !en.test(e) || // Quick hack to not allow integers end with `_`
|
|
1524
1524
|
// Probably should update regexp & check speed
|
|
1525
1525
|
e[e.length - 1] === "_");
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function rn(e) {
|
|
1528
1528
|
var t, r;
|
|
1529
1529
|
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);
|
|
1530
1530
|
}
|
|
1531
|
-
var
|
|
1532
|
-
function
|
|
1531
|
+
var nn = /^[-+]?[0-9]+e/;
|
|
1532
|
+
function an(e, t) {
|
|
1533
1533
|
var r;
|
|
1534
1534
|
if (isNaN(e))
|
|
1535
1535
|
switch (t) {
|
|
@@ -1560,34 +1560,34 @@ function nn(e, t) {
|
|
|
1560
1560
|
}
|
|
1561
1561
|
else if (oe.isNegativeZero(e))
|
|
1562
1562
|
return "-0.0";
|
|
1563
|
-
return r = e.toString(10),
|
|
1563
|
+
return r = e.toString(10), nn.test(r) ? r.replace("e", ".e") : r;
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1565
|
+
function on(e) {
|
|
1566
1566
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || oe.isNegativeZero(e));
|
|
1567
1567
|
}
|
|
1568
|
-
var
|
|
1568
|
+
var sn = new b("tag:yaml.org,2002:float", {
|
|
1569
1569
|
kind: "scalar",
|
|
1570
|
-
resolve:
|
|
1571
|
-
construct:
|
|
1572
|
-
predicate:
|
|
1573
|
-
represent:
|
|
1570
|
+
resolve: tn,
|
|
1571
|
+
construct: rn,
|
|
1572
|
+
predicate: on,
|
|
1573
|
+
represent: an,
|
|
1574
1574
|
defaultStyle: "lowercase"
|
|
1575
|
-
}),
|
|
1575
|
+
}), ln = zr.extend({
|
|
1576
1576
|
implicit: [
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1577
|
+
Vr,
|
|
1578
|
+
Mr,
|
|
1579
|
+
Xr,
|
|
1580
|
+
sn
|
|
1581
1581
|
]
|
|
1582
|
-
}),
|
|
1582
|
+
}), cn = ln, Ke = new RegExp(
|
|
1583
1583
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1584
1584
|
), Be = new RegExp(
|
|
1585
1585
|
"^([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]))?))?$"
|
|
1586
1586
|
);
|
|
1587
|
-
function
|
|
1587
|
+
function un(e) {
|
|
1588
1588
|
return e === null ? !1 : Ke.exec(e) !== null || Be.exec(e) !== null;
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1590
|
+
function pn(e) {
|
|
1591
1591
|
var t, r, i, n, o, a, s, l = 0, f = null, p, c, y;
|
|
1592
1592
|
if (t = Ke.exec(e), t === null && (t = Be.exec(e)), t === null)
|
|
1593
1593
|
throw new Error("Date resolve error");
|
|
@@ -1600,25 +1600,25 @@ function un(e) {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
return t[9] && (p = +t[10], c = +(t[11] || 0), f = (p * 60 + c) * 6e4, t[9] === "-" && (f = -f)), y = new Date(Date.UTC(r, i, n, o, a, s, l)), f && y.setTime(y.getTime() - f), y;
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function dn(e) {
|
|
1604
1604
|
return e.toISOString();
|
|
1605
1605
|
}
|
|
1606
|
-
var
|
|
1606
|
+
var yn = new b("tag:yaml.org,2002:timestamp", {
|
|
1607
1607
|
kind: "scalar",
|
|
1608
|
-
resolve:
|
|
1609
|
-
construct:
|
|
1608
|
+
resolve: un,
|
|
1609
|
+
construct: pn,
|
|
1610
1610
|
instanceOf: Date,
|
|
1611
|
-
represent:
|
|
1611
|
+
represent: dn
|
|
1612
1612
|
});
|
|
1613
|
-
function
|
|
1613
|
+
function fn(e) {
|
|
1614
1614
|
return e === "<<" || e === null;
|
|
1615
1615
|
}
|
|
1616
|
-
var
|
|
1616
|
+
var hn = new b("tag:yaml.org,2002:merge", {
|
|
1617
1617
|
kind: "scalar",
|
|
1618
|
-
resolve:
|
|
1618
|
+
resolve: fn
|
|
1619
1619
|
}), se = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1620
1620
|
\r`;
|
|
1621
|
-
function
|
|
1621
|
+
function gn(e) {
|
|
1622
1622
|
if (e === null)
|
|
1623
1623
|
return !1;
|
|
1624
1624
|
var t, r, i = 0, n = e.length, o = se;
|
|
@@ -1630,37 +1630,37 @@ function hn(e) {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
return i % 8 === 0;
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function mn(e) {
|
|
1634
1634
|
var t, r, i = e.replace(/[\r\n=]/g, ""), n = i.length, o = se, a = 0, s = [];
|
|
1635
1635
|
for (t = 0; t < n; t++)
|
|
1636
1636
|
t % 4 === 0 && t && (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
|
|
1637
1637
|
return r = n % 4 * 6, r === 0 ? (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)) : r === 18 ? (s.push(a >> 10 & 255), s.push(a >> 2 & 255)) : r === 12 && s.push(a >> 4 & 255), new Uint8Array(s);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function vn(e) {
|
|
1640
1640
|
var t = "", r = 0, i, n, o = e.length, a = se;
|
|
1641
1641
|
for (i = 0; i < o; i++)
|
|
1642
1642
|
i % 3 === 0 && i && (t += a[r >> 18 & 63], t += a[r >> 12 & 63], t += a[r >> 6 & 63], t += a[r & 63]), r = (r << 8) + e[i];
|
|
1643
1643
|
return n = o % 3, n === 0 ? (t += a[r >> 18 & 63], t += a[r >> 12 & 63], t += a[r >> 6 & 63], t += a[r & 63]) : n === 2 ? (t += a[r >> 10 & 63], t += a[r >> 4 & 63], t += a[r << 2 & 63], t += a[64]) : n === 1 && (t += a[r >> 2 & 63], t += a[r << 4 & 63], t += a[64], t += a[64]), t;
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1645
|
+
function _n(e) {
|
|
1646
1646
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1647
1647
|
}
|
|
1648
|
-
var bn = new
|
|
1648
|
+
var bn = new b("tag:yaml.org,2002:binary", {
|
|
1649
1649
|
kind: "scalar",
|
|
1650
|
-
resolve:
|
|
1651
|
-
construct:
|
|
1652
|
-
predicate:
|
|
1653
|
-
represent:
|
|
1654
|
-
}),
|
|
1655
|
-
function
|
|
1650
|
+
resolve: gn,
|
|
1651
|
+
construct: mn,
|
|
1652
|
+
predicate: _n,
|
|
1653
|
+
represent: vn
|
|
1654
|
+
}), wn = Object.prototype.hasOwnProperty, kn = Object.prototype.toString;
|
|
1655
|
+
function Sn(e) {
|
|
1656
1656
|
if (e === null)
|
|
1657
1657
|
return !0;
|
|
1658
1658
|
var t = [], r, i, n, o, a, s = e;
|
|
1659
1659
|
for (r = 0, i = s.length; r < i; r += 1) {
|
|
1660
|
-
if (n = s[r], a = !1,
|
|
1660
|
+
if (n = s[r], a = !1, kn.call(n) !== "[object Object]")
|
|
1661
1661
|
return !1;
|
|
1662
1662
|
for (o in n)
|
|
1663
|
-
if (
|
|
1663
|
+
if (wn.call(n, o))
|
|
1664
1664
|
if (!a)
|
|
1665
1665
|
a = !0;
|
|
1666
1666
|
else
|
|
@@ -1674,26 +1674,26 @@ function kn(e) {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
return !0;
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function xn(e) {
|
|
1678
1678
|
return e !== null ? e : [];
|
|
1679
1679
|
}
|
|
1680
|
-
var
|
|
1680
|
+
var In = new b("tag:yaml.org,2002:omap", {
|
|
1681
1681
|
kind: "sequence",
|
|
1682
|
-
resolve:
|
|
1683
|
-
construct:
|
|
1684
|
-
}),
|
|
1685
|
-
function
|
|
1682
|
+
resolve: Sn,
|
|
1683
|
+
construct: xn
|
|
1684
|
+
}), Tn = Object.prototype.toString;
|
|
1685
|
+
function An(e) {
|
|
1686
1686
|
if (e === null)
|
|
1687
1687
|
return !0;
|
|
1688
1688
|
var t, r, i, n, o, a = e;
|
|
1689
1689
|
for (o = new Array(a.length), t = 0, r = a.length; t < r; t += 1) {
|
|
1690
|
-
if (i = a[t],
|
|
1690
|
+
if (i = a[t], Tn.call(i) !== "[object Object]" || (n = Object.keys(i), n.length !== 1))
|
|
1691
1691
|
return !1;
|
|
1692
1692
|
o[t] = [n[0], i[n[0]]];
|
|
1693
1693
|
}
|
|
1694
1694
|
return !0;
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function Cn(e) {
|
|
1697
1697
|
if (e === null)
|
|
1698
1698
|
return [];
|
|
1699
1699
|
var t, r, i, n, o, a = e;
|
|
@@ -1701,59 +1701,59 @@ function An(e) {
|
|
|
1701
1701
|
i = a[t], n = Object.keys(i), o[t] = [n[0], i[n[0]]];
|
|
1702
1702
|
return o;
|
|
1703
1703
|
}
|
|
1704
|
-
var
|
|
1704
|
+
var En = new b("tag:yaml.org,2002:pairs", {
|
|
1705
1705
|
kind: "sequence",
|
|
1706
|
-
resolve:
|
|
1707
|
-
construct:
|
|
1708
|
-
}),
|
|
1709
|
-
function
|
|
1706
|
+
resolve: An,
|
|
1707
|
+
construct: Cn
|
|
1708
|
+
}), qn = Object.prototype.hasOwnProperty;
|
|
1709
|
+
function Nn(e) {
|
|
1710
1710
|
if (e === null)
|
|
1711
1711
|
return !0;
|
|
1712
1712
|
var t, r = e;
|
|
1713
1713
|
for (t in r)
|
|
1714
|
-
if (
|
|
1714
|
+
if (qn.call(r, t) && r[t] !== null)
|
|
1715
1715
|
return !1;
|
|
1716
1716
|
return !0;
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1718
|
+
function On(e) {
|
|
1719
1719
|
return e !== null ? e : {};
|
|
1720
1720
|
}
|
|
1721
|
-
var
|
|
1721
|
+
var Rn = new b("tag:yaml.org,2002:set", {
|
|
1722
1722
|
kind: "mapping",
|
|
1723
|
-
resolve:
|
|
1724
|
-
construct:
|
|
1723
|
+
resolve: Nn,
|
|
1724
|
+
construct: On
|
|
1725
1725
|
});
|
|
1726
|
-
|
|
1726
|
+
cn.extend({
|
|
1727
1727
|
implicit: [
|
|
1728
|
-
|
|
1729
|
-
|
|
1728
|
+
yn,
|
|
1729
|
+
hn
|
|
1730
1730
|
],
|
|
1731
1731
|
explicit: [
|
|
1732
1732
|
bn,
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1733
|
+
In,
|
|
1734
|
+
En,
|
|
1735
|
+
Rn
|
|
1736
1736
|
]
|
|
1737
1737
|
});
|
|
1738
1738
|
function ke(e) {
|
|
1739
1739
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1740
1740
|
` : 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" : "";
|
|
1741
1741
|
}
|
|
1742
|
-
var
|
|
1742
|
+
var Ln = new Array(256), Dn = new Array(256);
|
|
1743
1743
|
for (var z = 0; z < 256; z++)
|
|
1744
|
-
|
|
1745
|
-
const Se = "24px",
|
|
1744
|
+
Ln[z] = ke(z) ? 1 : 0, Dn[z] = ke(z);
|
|
1745
|
+
const Se = "24px", jn = (e, t) => {
|
|
1746
1746
|
const r = e.__vccOpts || e;
|
|
1747
1747
|
for (const [i, n] of t)
|
|
1748
1748
|
r[i] = n;
|
|
1749
1749
|
return r;
|
|
1750
|
-
},
|
|
1750
|
+
}, $n = (e) => (Ze("data-v-13f41aa3"), e = e(), We(), e), zn = ["aria-hidden"], Pn = {
|
|
1751
1751
|
key: 0,
|
|
1752
1752
|
"data-testid": "kui-icon-svg-title"
|
|
1753
|
-
},
|
|
1753
|
+
}, Un = /* @__PURE__ */ $n(() => /* @__PURE__ */ V("path", {
|
|
1754
1754
|
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",
|
|
1755
1755
|
fill: "currentColor"
|
|
1756
|
-
}, null, -1)),
|
|
1756
|
+
}, null, -1)), Fn = /* @__PURE__ */ E({
|
|
1757
1757
|
__name: "CopyIcon",
|
|
1758
1758
|
props: {
|
|
1759
1759
|
/** The accessibility text provided to screen readers */
|
|
@@ -1839,20 +1839,20 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1839
1839
|
width: "100%",
|
|
1840
1840
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1841
1841
|
}, [
|
|
1842
|
-
e.title ? (h(), C("title",
|
|
1843
|
-
|
|
1844
|
-
], 8,
|
|
1842
|
+
e.title ? (h(), C("title", Pn, F(e.title), 1)) : B("", !0),
|
|
1843
|
+
Un
|
|
1844
|
+
], 8, zn))
|
|
1845
1845
|
]),
|
|
1846
1846
|
_: 1
|
|
1847
1847
|
}, 8, ["aria-hidden", "style"]));
|
|
1848
1848
|
}
|
|
1849
|
-
}),
|
|
1849
|
+
}), Vn = /* @__PURE__ */ jn(Fn, [["__scopeId", "data-v-13f41aa3"]]), Kn = {
|
|
1850
1850
|
class: "kong-ui-public-entity-link",
|
|
1851
1851
|
"data-testid": "entity-link-parent"
|
|
1852
|
-
},
|
|
1852
|
+
}, Bn = {
|
|
1853
1853
|
key: 0,
|
|
1854
1854
|
class: "deleted-entity"
|
|
1855
|
-
},
|
|
1855
|
+
}, Gn = { key: 1 }, Mn = ["onClick"], Hn = /* @__PURE__ */ E({
|
|
1856
1856
|
__name: "EntityLink",
|
|
1857
1857
|
props: {
|
|
1858
1858
|
entityLinkData: {
|
|
@@ -1876,15 +1876,15 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
},
|
|
1878
1878
|
setup(e) {
|
|
1879
|
-
const t = e, r = m(), { isTruncated: i } =
|
|
1879
|
+
const t = e, r = m(), { isTruncated: i } = be.useTruncationDetector(r), { i18n: { t: n } } = be.useI18n(), o = n("global.actions.copyId"), a = m(o), s = v(() => t.entityLinkData.deleted ?? !1), l = v(() => t.entityLinkData.id.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id), f = v(() => `${l.value.toString().slice(0, 5)} (deleted)`), p = async (c) => {
|
|
1880
1880
|
await c(l.value || "") && (a.value = n("global.actions.copyToClipboard"), setTimeout(() => {
|
|
1881
1881
|
a.value = o;
|
|
1882
1882
|
}, 1800));
|
|
1883
1883
|
};
|
|
1884
1884
|
return (c, y) => {
|
|
1885
|
-
const d = U("KTooltip"), w = U("KExternalLink"),
|
|
1886
|
-
return h(), C("div",
|
|
1887
|
-
s.value ? (h(), C("div",
|
|
1885
|
+
const d = U("KTooltip"), w = U("KExternalLink"), _ = U("KClipboardProvider");
|
|
1886
|
+
return h(), C("div", Kn, [
|
|
1887
|
+
s.value ? (h(), C("div", Bn, F(f.value), 1)) : l.value ? l.value ? (h(), T(w, {
|
|
1888
1888
|
key: 2,
|
|
1889
1889
|
class: "entity-link",
|
|
1890
1890
|
"hide-icon": !e.newWindow,
|
|
@@ -1906,7 +1906,7 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1906
1906
|
}, 8, ["text"])
|
|
1907
1907
|
]),
|
|
1908
1908
|
_: 1
|
|
1909
|
-
}, 8, ["hide-icon", "href", "target"])) : B("", !0) : (h(), C("div",
|
|
1909
|
+
}, 8, ["hide-icon", "href", "target"])) : B("", !0) : (h(), C("div", Gn, F(" – "))),
|
|
1910
1910
|
l.value && e.allowCopy ? (h(), T(d, {
|
|
1911
1911
|
key: a.value,
|
|
1912
1912
|
class: "copy-uuid-tooltip",
|
|
@@ -1915,19 +1915,19 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1915
1915
|
text: a.value
|
|
1916
1916
|
}, {
|
|
1917
1917
|
default: S(() => [
|
|
1918
|
-
q(
|
|
1918
|
+
q(_, null, {
|
|
1919
1919
|
default: S(({ copyToClipboard: N }) => [
|
|
1920
1920
|
V("span", {
|
|
1921
1921
|
class: "entity-link-copy-id",
|
|
1922
1922
|
onClick: He((j) => p(N), ["stop"])
|
|
1923
1923
|
}, [
|
|
1924
|
-
q(g(
|
|
1924
|
+
q(g(Vn), {
|
|
1925
1925
|
class: "copy-icon",
|
|
1926
|
-
color: g(
|
|
1926
|
+
color: g(gr),
|
|
1927
1927
|
"data-testid": "copy-id",
|
|
1928
|
-
size: g(
|
|
1928
|
+
size: g(mr)
|
|
1929
1929
|
}, null, 8, ["color", "size"])
|
|
1930
|
-
], 8,
|
|
1930
|
+
], 8, Mn)
|
|
1931
1931
|
]),
|
|
1932
1932
|
_: 1
|
|
1933
1933
|
})
|
|
@@ -1937,7 +1937,7 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1937
1937
|
]);
|
|
1938
1938
|
};
|
|
1939
1939
|
}
|
|
1940
|
-
}),
|
|
1940
|
+
}), Yn = /* @__PURE__ */ hr(Hn, [["__scopeId", "data-v-ff8e5179"]]), Zn = /* @__PURE__ */ E({
|
|
1941
1941
|
__name: "TopNTableRenderer",
|
|
1942
1942
|
props: {
|
|
1943
1943
|
query: {},
|
|
@@ -1972,7 +1972,7 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1972
1972
|
t.chartOptions.entityLink ? {
|
|
1973
1973
|
name: "name",
|
|
1974
1974
|
fn: S(({ record: a }) => [
|
|
1975
|
-
q(g(
|
|
1975
|
+
q(g(Yn), {
|
|
1976
1976
|
"entity-link-data": {
|
|
1977
1977
|
id: a.id,
|
|
1978
1978
|
label: a.name,
|
|
@@ -1988,7 +1988,7 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
1988
1988
|
_: 1
|
|
1989
1989
|
}, 8, ["context", "query", "query-ready"]));
|
|
1990
1990
|
}
|
|
1991
|
-
}),
|
|
1991
|
+
}), Wn = { class: "tile-boundary" }, Jn = /* @__PURE__ */ E({
|
|
1992
1992
|
__name: "DashboardTile",
|
|
1993
1993
|
props: {
|
|
1994
1994
|
definition: {},
|
|
@@ -2000,12 +2000,12 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
2000
2000
|
a16bb866: `${o.height}px`
|
|
2001
2001
|
}));
|
|
2002
2002
|
const t = parseInt(je, 10), r = e, i = {
|
|
2003
|
-
[I.TimeseriesLine]:
|
|
2003
|
+
[I.TimeseriesLine]: Ut,
|
|
2004
2004
|
[I.HorizontalBar]: ye,
|
|
2005
2005
|
[I.VerticalBar]: ye,
|
|
2006
|
-
[I.Gauge]:
|
|
2007
|
-
[I.GoldenSignals]:
|
|
2008
|
-
[I.TopN]:
|
|
2006
|
+
[I.Gauge]: Dt,
|
|
2007
|
+
[I.GoldenSignals]: Kt,
|
|
2008
|
+
[I.TopN]: Zn,
|
|
2009
2009
|
[I.Slottable]: void 0
|
|
2010
2010
|
}, n = v(() => {
|
|
2011
2011
|
const o = i[r.definition.chart.type];
|
|
@@ -2021,11 +2021,11 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
2021
2021
|
}
|
|
2022
2022
|
};
|
|
2023
2023
|
});
|
|
2024
|
-
return (o, a) => (h(), C("div",
|
|
2024
|
+
return (o, a) => (h(), C("div", Wn, [
|
|
2025
2025
|
n.value ? (h(), T(Ae(n.value.component), Te(Qe({ key: 0 }, n.value.rendererProps)), null, 16)) : B("", !0)
|
|
2026
2026
|
]));
|
|
2027
2027
|
}
|
|
2028
|
-
}),
|
|
2028
|
+
}), Qn = /* @__PURE__ */ D(Jn, [["__scopeId", "data-v-3d6e352f"]]), Xn = /* @__PURE__ */ E({
|
|
2029
2029
|
__name: "GridLayout",
|
|
2030
2030
|
props: {
|
|
2031
2031
|
gridSize: {
|
|
@@ -2085,10 +2085,10 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
2085
2085
|
], 6))), 128))
|
|
2086
2086
|
], 512));
|
|
2087
2087
|
}
|
|
2088
|
-
}),
|
|
2088
|
+
}), ei = /* @__PURE__ */ D(Xn, [["__scopeId", "data-v-371c2765"]]), ti = { class: "kong-ui-public-dashboard-renderer" }, ri = {
|
|
2089
2089
|
key: 0,
|
|
2090
2090
|
class: "tile-container"
|
|
2091
|
-
},
|
|
2091
|
+
}, ni = /* @__PURE__ */ E({
|
|
2092
2092
|
__name: "DashboardRenderer",
|
|
2093
2093
|
props: {
|
|
2094
2094
|
context: {},
|
|
@@ -2108,17 +2108,17 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
2108
2108
|
});
|
|
2109
2109
|
return (a, s) => {
|
|
2110
2110
|
const l = U("KAlert");
|
|
2111
|
-
return h(), C("div",
|
|
2112
|
-
g(i) ? (h(), T(
|
|
2111
|
+
return h(), C("div", ti, [
|
|
2112
|
+
g(i) ? (h(), T(ei, {
|
|
2113
2113
|
key: 1,
|
|
2114
2114
|
"grid-size": a.config.gridSize,
|
|
2115
2115
|
"tile-height": a.config.tileHeight,
|
|
2116
2116
|
tiles: n.value
|
|
2117
2117
|
}, {
|
|
2118
2118
|
tile: S(({ tile: f }) => [
|
|
2119
|
-
f.meta.chart.type === g(I).Slottable ? (h(), C("div",
|
|
2119
|
+
f.meta.chart.type === g(I).Slottable ? (h(), C("div", ri, [
|
|
2120
2120
|
ne(a.$slots, f.meta.chart.id, {}, void 0, !0)
|
|
2121
|
-
])) : (h(), T(
|
|
2121
|
+
])) : (h(), T(Qn, {
|
|
2122
2122
|
key: 1,
|
|
2123
2123
|
class: "tile-container",
|
|
2124
2124
|
context: o.value,
|
|
@@ -2139,24 +2139,25 @@ const Se = "24px", Dn = (e, t) => {
|
|
|
2139
2139
|
]);
|
|
2140
2140
|
};
|
|
2141
2141
|
}
|
|
2142
|
-
}),
|
|
2142
|
+
}), fi = /* @__PURE__ */ D(ni, [["__scopeId", "data-v-1af70010"]]);
|
|
2143
2143
|
export {
|
|
2144
2144
|
dt as CP_ID_TOKEN,
|
|
2145
2145
|
I as ChartTypes,
|
|
2146
2146
|
Y as DEFAULT_TILE_HEIGHT,
|
|
2147
|
-
|
|
2147
|
+
yt as DEFAULT_TILE_REFRESH_INTERVAL_MS,
|
|
2148
|
+
fi as DashboardRenderer,
|
|
2148
2149
|
de as ENTITY_ID_TOKEN,
|
|
2149
|
-
|
|
2150
|
+
ei as GridLayout,
|
|
2150
2151
|
Ne as INJECT_QUERY_PROVIDER,
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2152
|
+
ht as barChartSchema,
|
|
2153
|
+
yi as dashboardConfigSchema,
|
|
2154
|
+
St as exploreV4QuerySchema,
|
|
2155
|
+
mt as gaugeChartSchema,
|
|
2156
|
+
_t as metricCardSchema,
|
|
2157
|
+
ft as slottableSchema,
|
|
2158
|
+
Tt as tileConfigSchema,
|
|
2159
|
+
xt as tileDefinitionSchema,
|
|
2160
|
+
It as tileLayoutSchema,
|
|
2161
|
+
gt as timeseriesChartSchema,
|
|
2162
|
+
vt as topNTableSchema
|
|
2162
2163
|
};
|