@kong-ui-public/entities-consumer-credentials 3.2.30 → 3.2.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as X, computed as k, openBlock as _, createBlock as U, resolveDynamicComponent as fe, normalizeStyle as ye, withCtx as l, createElementBlock as
|
|
2
|
-
import { createI18n as
|
|
1
|
+
import { defineComponent as X, computed as k, openBlock as _, createBlock as U, resolveDynamicComponent as fe, normalizeStyle as ye, withCtx as l, createElementBlock as M, toDisplayString as A, createCommentVNode as z, pushScopeId as ge, popScopeId as he, createElementVNode as H, ref as C, watch as se, renderSlot as G, unref as b, toValue as Ze, resolveComponent as L, createVNode as v, createSlots as $e, withDirectives as je, vShow as Ke, renderList as Fe, createTextVNode as R, inject as Ge, onMounted as Xe, onUnmounted as Qe, onBeforeMount as et, Teleport as tt, Fragment as rt, withModifiers as at } from "vue";
|
|
2
|
+
import { createI18n as qe, i18nTComponent as Me } from "@kong-ui-public/i18n";
|
|
3
3
|
import ke from "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
const _e = "24px",
|
|
6
|
+
const _e = "24px", nt = (e, t) => {
|
|
7
7
|
const r = e.__vccOpts || e;
|
|
8
8
|
for (const [a, n] of t)
|
|
9
9
|
r[a] = n;
|
|
10
10
|
return r;
|
|
11
|
-
},
|
|
11
|
+
}, it = (e) => (ge("data-v-c1f7c39c"), e = e(), he(), e), ot = ["aria-hidden"], lt = {
|
|
12
12
|
key: 0,
|
|
13
13
|
"data-testid": "kui-icon-svg-title"
|
|
14
|
-
},
|
|
14
|
+
}, st = /* @__PURE__ */ it(() => /* @__PURE__ */ H("path", {
|
|
15
15
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
16
16
|
fill: "currentColor"
|
|
17
|
-
}, null, -1)),
|
|
17
|
+
}, null, -1)), ct = /* @__PURE__ */ X({
|
|
18
18
|
__name: "AddIcon",
|
|
19
19
|
props: {
|
|
20
20
|
/** The accessibility text provided to screen readers */
|
|
@@ -91,7 +91,7 @@ const _e = "24px", at = (e, t) => {
|
|
|
91
91
|
style: ye(a.value)
|
|
92
92
|
}, {
|
|
93
93
|
default: l(() => [
|
|
94
|
-
(_(),
|
|
94
|
+
(_(), M("svg", {
|
|
95
95
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
96
96
|
"data-testid": "kui-icon-svg-add-icon",
|
|
97
97
|
fill: "none",
|
|
@@ -101,14 +101,14 @@ const _e = "24px", at = (e, t) => {
|
|
|
101
101
|
width: "100%",
|
|
102
102
|
xmlns: "http://www.w3.org/2000/svg"
|
|
103
103
|
}, [
|
|
104
|
-
e.title ? (_(),
|
|
105
|
-
|
|
106
|
-
], 8,
|
|
104
|
+
e.title ? (_(), M("title", lt, A(e.title), 1)) : z("", !0),
|
|
105
|
+
st
|
|
106
|
+
], 8, ot))
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}, 8, ["aria-hidden", "style"]));
|
|
110
110
|
}
|
|
111
|
-
}),
|
|
111
|
+
}), ut = /* @__PURE__ */ nt(ct, [["__scopeId", "data-v-c1f7c39c"]]), dt = {
|
|
112
112
|
title: "Consumer Credentials",
|
|
113
113
|
list: {
|
|
114
114
|
toolbar_actions: {
|
|
@@ -249,31 +249,32 @@ const _e = "24px", at = (e, t) => {
|
|
|
249
249
|
success: "Copied {val} to clipboard",
|
|
250
250
|
success_brief: "Successfully copied to clipboard"
|
|
251
251
|
}
|
|
252
|
-
},
|
|
253
|
-
credentials:
|
|
252
|
+
}, pt = {
|
|
253
|
+
credentials: dt
|
|
254
254
|
};
|
|
255
|
-
function
|
|
256
|
-
const e =
|
|
255
|
+
function ft() {
|
|
256
|
+
const e = qe("en-us", pt);
|
|
257
257
|
return {
|
|
258
258
|
i18n: e,
|
|
259
|
-
i18nT:
|
|
259
|
+
i18nT: Me(e)
|
|
260
260
|
// Translation component <i18n-t>
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
|
-
const
|
|
264
|
-
useI18n:
|
|
265
|
-
},
|
|
263
|
+
const yt = {
|
|
264
|
+
useI18n: ft
|
|
265
|
+
}, gt = {
|
|
266
266
|
list: {
|
|
267
267
|
konnect: "/v2/control-planes/{controlPlaneId}/core-entities/consumers/{consumerId}/{plugin}",
|
|
268
268
|
kongManager: "/{workspace}/consumers/{consumerId}/{plugin}"
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
|
-
var
|
|
272
|
-
|
|
271
|
+
var Pe = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e))(Pe || {}), ee = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(ee || {}), Re = /* @__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))(Re || {});
|
|
272
|
+
Object.values(Re);
|
|
273
|
+
function ht() {
|
|
273
274
|
return {
|
|
274
275
|
getAxiosInstance: (e = {}) => {
|
|
275
276
|
try {
|
|
276
|
-
const t =
|
|
277
|
+
const t = Ge("get-axios-instance", void 0);
|
|
277
278
|
return typeof t == "function" ? t(e) : ke.create({
|
|
278
279
|
withCredentials: !0,
|
|
279
280
|
timeout: 3e4,
|
|
@@ -293,7 +294,7 @@ function gt() {
|
|
|
293
294
|
}
|
|
294
295
|
};
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function mt() {
|
|
297
298
|
return {
|
|
298
299
|
debounce: (e, t) => {
|
|
299
300
|
let r;
|
|
@@ -305,14 +306,14 @@ function ht() {
|
|
|
305
306
|
}
|
|
306
307
|
};
|
|
307
308
|
}
|
|
308
|
-
const ue = "khcp-user-table-preferences",
|
|
309
|
+
const ue = "khcp-user-table-preferences", vt = {
|
|
309
310
|
pageSize: 30,
|
|
310
311
|
sortColumnKey: void 0,
|
|
311
312
|
sortColumnOrder: void 0,
|
|
312
313
|
columnWidths: {},
|
|
313
314
|
columnVisibility: {}
|
|
314
315
|
};
|
|
315
|
-
function
|
|
316
|
+
function bt() {
|
|
316
317
|
const e = (r) => {
|
|
317
318
|
if (typeof r == "string")
|
|
318
319
|
try {
|
|
@@ -336,7 +337,7 @@ function vt() {
|
|
|
336
337
|
},
|
|
337
338
|
getTablePreferences: (r) => {
|
|
338
339
|
const a = t();
|
|
339
|
-
return (a == null ? void 0 : a.get(r)) || void 0 ||
|
|
340
|
+
return (a == null ? void 0 : a.get(r)) || void 0 || vt;
|
|
340
341
|
},
|
|
341
342
|
deleteAllTablePreferences: () => {
|
|
342
343
|
localStorage.removeItem(ue);
|
|
@@ -344,22 +345,22 @@ function vt() {
|
|
|
344
345
|
};
|
|
345
346
|
}
|
|
346
347
|
function me(e = {}) {
|
|
347
|
-
const { getAxiosInstance: t } =
|
|
348
|
+
const { getAxiosInstance: t } = ht();
|
|
348
349
|
return {
|
|
349
350
|
axiosInstance: t(e)
|
|
350
351
|
};
|
|
351
352
|
}
|
|
352
|
-
const
|
|
353
|
+
const wt = {
|
|
353
354
|
actions: {
|
|
354
355
|
copyId: "Copy ID",
|
|
355
356
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
356
357
|
copyToClipboard: "Copied successfully!",
|
|
357
358
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
358
359
|
}
|
|
359
|
-
},
|
|
360
|
+
}, Ct = {
|
|
360
361
|
message: "Are you sure you want to delete this {entityType}?",
|
|
361
362
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
362
|
-
},
|
|
363
|
+
}, kt = {
|
|
363
364
|
actions: {
|
|
364
365
|
viewConfiguration: "View Configuration",
|
|
365
366
|
save: "Save",
|
|
@@ -370,18 +371,19 @@ const bt = {
|
|
|
370
371
|
title: "Configuration",
|
|
371
372
|
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.",
|
|
372
373
|
yaml: "YAML",
|
|
373
|
-
json: "JSON"
|
|
374
|
+
json: "JSON",
|
|
375
|
+
terraform: "Terraform"
|
|
374
376
|
},
|
|
375
377
|
errors: {
|
|
376
378
|
edit: "The entity could not be edited at this time."
|
|
377
379
|
}
|
|
378
|
-
},
|
|
380
|
+
}, _t = {
|
|
379
381
|
emptyState: {
|
|
380
382
|
noSearchResultsTitle: "No results found",
|
|
381
383
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
382
384
|
noSearchResultsCtaText: "Clear"
|
|
383
385
|
}
|
|
384
|
-
},
|
|
386
|
+
}, St = {
|
|
385
387
|
title: "Configuration",
|
|
386
388
|
actions: {
|
|
387
389
|
copy: "Copy JSON"
|
|
@@ -416,7 +418,7 @@ const bt = {
|
|
|
416
418
|
entryTitle: "Entry {index}",
|
|
417
419
|
structuredFormat: "Structured"
|
|
418
420
|
}
|
|
419
|
-
},
|
|
421
|
+
}, xt = {
|
|
420
422
|
filterButtonText: "Filter",
|
|
421
423
|
fieldLabel: "Filter by:",
|
|
422
424
|
inputPlaceholder: "Enter a value",
|
|
@@ -424,17 +426,17 @@ const bt = {
|
|
|
424
426
|
applyButtonText: "Apply",
|
|
425
427
|
clearButtonText: "Clear",
|
|
426
428
|
clearAllButtonText: "Clear all filters"
|
|
427
|
-
},
|
|
429
|
+
}, Nt = {
|
|
428
430
|
errors: {
|
|
429
431
|
fetch: "Could not fetch available items",
|
|
430
432
|
invalid: "Please select a valid value"
|
|
431
433
|
}
|
|
432
|
-
},
|
|
434
|
+
}, It = {
|
|
433
435
|
unexpected: "An unexpected error has occurred",
|
|
434
436
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
435
437
|
}, At = {
|
|
436
438
|
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
437
|
-
},
|
|
439
|
+
}, Tt = {
|
|
438
440
|
enable: {
|
|
439
441
|
title: "Enable {entityType}",
|
|
440
442
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -445,27 +447,27 @@ const bt = {
|
|
|
445
447
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
446
448
|
confirmText: "Yes, disable"
|
|
447
449
|
}
|
|
448
|
-
},
|
|
449
|
-
global:
|
|
450
|
-
deleteModal:
|
|
451
|
-
baseForm:
|
|
452
|
-
baseTable:
|
|
453
|
-
baseConfigCard:
|
|
454
|
-
filter:
|
|
455
|
-
debouncedFilter:
|
|
456
|
-
errors:
|
|
450
|
+
}, Et = {
|
|
451
|
+
global: wt,
|
|
452
|
+
deleteModal: Ct,
|
|
453
|
+
baseForm: kt,
|
|
454
|
+
baseTable: _t,
|
|
455
|
+
baseConfigCard: St,
|
|
456
|
+
filter: xt,
|
|
457
|
+
debouncedFilter: Nt,
|
|
458
|
+
errors: It,
|
|
457
459
|
validationErrors: At,
|
|
458
|
-
toggleModal:
|
|
460
|
+
toggleModal: Tt
|
|
459
461
|
};
|
|
460
462
|
function ce() {
|
|
461
|
-
const e =
|
|
463
|
+
const e = qe("en-us", Et);
|
|
462
464
|
return {
|
|
463
465
|
i18n: e,
|
|
464
|
-
i18nT:
|
|
466
|
+
i18nT: Me(e)
|
|
465
467
|
// Translation component <i18n-t>
|
|
466
468
|
};
|
|
467
469
|
}
|
|
468
|
-
function
|
|
470
|
+
function Le() {
|
|
469
471
|
const e = (r, a) => (a == null ? void 0 : a[r]) ?? void 0, t = (r, a) => {
|
|
470
472
|
if (r.length !== a.length) return !1;
|
|
471
473
|
const n = /* @__PURE__ */ new Set([...r, ...a]);
|
|
@@ -507,28 +509,28 @@ function Be() {
|
|
|
507
509
|
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
|
|
508
510
|
};
|
|
509
511
|
}
|
|
510
|
-
function
|
|
512
|
+
function Ot(e, t, r, a = {
|
|
511
513
|
fetchedItemsKey: "data",
|
|
512
514
|
searchKeys: ["id"]
|
|
513
515
|
}) {
|
|
514
516
|
r || (r = "1000");
|
|
515
|
-
const { axiosInstance: n } = me(e.axiosRequestConfig), { i18n: { t: o } } = ce(), { debounce: i } =
|
|
516
|
-
await
|
|
517
|
-
}, 200), y = C(!1), S = C(""), u = C(""), d = C([]), h = C([]), w = C(void 0),
|
|
517
|
+
const { axiosInstance: n } = me(e.axiosRequestConfig), { i18n: { t: o } } = ce(), { debounce: i } = mt(), s = i(async (g) => {
|
|
518
|
+
await q(g);
|
|
519
|
+
}, 200), y = C(!1), S = C(""), u = C(""), d = C([]), h = C([]), w = C(void 0), I = k(() => {
|
|
518
520
|
const g = `${e.apiBaseUrl}${b(t)}`;
|
|
519
521
|
return e.app === "konnect" ? g.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? g.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : g;
|
|
520
|
-
}), { isValidUuid:
|
|
522
|
+
}), { isValidUuid: $ } = Le(), N = async () => {
|
|
521
523
|
try {
|
|
522
524
|
y.value = !0;
|
|
523
|
-
const { data: g } = await n.get(`${
|
|
525
|
+
const { data: g } = await n.get(`${I.value}?size=${r}`);
|
|
524
526
|
g != null && g.next || (w.value = a.fetchedItemsKey in g ? g[a.fetchedItemsKey] : []), h.value = a.fetchedItemsKey in g ? g[a.fetchedItemsKey] : [], d.value = h.value;
|
|
525
527
|
} catch {
|
|
526
528
|
d.value = [], S.value = o("debouncedFilter.errors.fetch");
|
|
527
529
|
} finally {
|
|
528
530
|
y.value = !1;
|
|
529
531
|
}
|
|
530
|
-
}, E = C(""),
|
|
531
|
-
var
|
|
532
|
+
}, E = C(""), q = async (g) => {
|
|
533
|
+
var B, J, c;
|
|
532
534
|
if (E.value !== g) {
|
|
533
535
|
if (E.value = g ?? "", !g) {
|
|
534
536
|
d.value = h.value;
|
|
@@ -537,24 +539,24 @@ function Et(e, t, r, a = {
|
|
|
537
539
|
if (w.value === void 0)
|
|
538
540
|
try {
|
|
539
541
|
if (y.value = !0, S.value = "", u.value = "", e.app === "konnect") {
|
|
540
|
-
const p = `${
|
|
542
|
+
const p = `${I.value}/${g}`, { data: T } = await n.get(`${p}?size=${r}`);
|
|
541
543
|
a.fetchedItemsKey in T ? d.value = T[a.fetchedItemsKey] : T != null && T[a.exactMatchKey ?? "id"] ? d.value = [T] : d.value = [];
|
|
542
544
|
} else {
|
|
543
545
|
const p = [];
|
|
544
|
-
|
|
545
|
-
const { data: O } = await n.get(`${
|
|
546
|
+
$(g) && a.searchKeys.includes("id") ? p.push((async () => {
|
|
547
|
+
const { data: O } = await n.get(`${I.value}/${g}`);
|
|
546
548
|
return [O[a.fetchedItemsKey] ?? O];
|
|
547
549
|
})()) : p.push(
|
|
548
550
|
...a.searchKeys.filter((O) => O !== "id").map(async (O) => {
|
|
549
|
-
const { data: D } = await n.get(`${
|
|
551
|
+
const { data: D } = await n.get(`${I.value}?${O}=${g}`);
|
|
550
552
|
return D[a.fetchedItemsKey];
|
|
551
553
|
})
|
|
552
554
|
);
|
|
553
|
-
const T = await Promise.all(p),
|
|
554
|
-
d.value = [], (
|
|
555
|
+
const T = await Promise.all(p), Y = /* @__PURE__ */ new Set();
|
|
556
|
+
d.value = [], (B = T == null ? void 0 : T.forEach) == null || B.call(T, (O) => {
|
|
555
557
|
var D;
|
|
556
558
|
(D = O == null ? void 0 : O.forEach) == null || D.call(O, (K) => {
|
|
557
|
-
|
|
559
|
+
Y.has(K.id) || (Y.add(K.id), d.value.push(K));
|
|
558
560
|
});
|
|
559
561
|
});
|
|
560
562
|
}
|
|
@@ -566,12 +568,12 @@ function Et(e, t, r, a = {
|
|
|
566
568
|
else
|
|
567
569
|
y.value = !0, u.value = "", d.value = (c = w.value) == null ? void 0 : c.filter((p) => {
|
|
568
570
|
var T;
|
|
569
|
-
let
|
|
571
|
+
let Y = !1;
|
|
570
572
|
for (const O of a.searchKeys) {
|
|
571
573
|
const D = typeof p[O] == "string" ? (T = p[O]) == null ? void 0 : T.toLowerCase() : p[O];
|
|
572
|
-
D != null && D.includes(g.toLowerCase()) && (
|
|
574
|
+
D != null && D.includes(g.toLowerCase()) && (Y = !0);
|
|
573
575
|
}
|
|
574
|
-
return
|
|
576
|
+
return Y;
|
|
575
577
|
}), (!d.value || !d.value.length) && (u.value = o("debouncedFilter.errors.invalid")), y.value = !1;
|
|
576
578
|
}
|
|
577
579
|
};
|
|
@@ -585,7 +587,7 @@ function Et(e, t, r, a = {
|
|
|
585
587
|
debouncedQueryChange: s
|
|
586
588
|
};
|
|
587
589
|
}
|
|
588
|
-
function
|
|
590
|
+
function $t(e, t) {
|
|
589
591
|
const r = b(t), a = k(
|
|
590
592
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r)
|
|
591
593
|
);
|
|
@@ -621,7 +623,7 @@ function jt() {
|
|
|
621
623
|
}
|
|
622
624
|
};
|
|
623
625
|
}
|
|
624
|
-
function
|
|
626
|
+
function Kt(e) {
|
|
625
627
|
const t = window.location.origin, r = t.endsWith("/") ? t : `${t}/`;
|
|
626
628
|
try {
|
|
627
629
|
const a = e.join("/"), n = `${r}${a}`, o = e.some((i) => i.trim() === "");
|
|
@@ -632,7 +634,7 @@ function $t(e) {
|
|
|
632
634
|
return console.warn("Failed to build valid URL:", a), "";
|
|
633
635
|
}
|
|
634
636
|
}
|
|
635
|
-
function
|
|
637
|
+
function Be(e, t) {
|
|
636
638
|
const r = C(b(e)), a = C(b(t)), n = k(
|
|
637
639
|
() => !!(r.value.app === "konnect" || r.value.isExactMatch)
|
|
638
640
|
), o = k(
|
|
@@ -642,21 +644,21 @@ function Pe(e, t) {
|
|
|
642
644
|
const { page: s, pageSize: y, offset: S, sortColumnKey: u, sortColumnOrder: d, query: h } = i;
|
|
643
645
|
try {
|
|
644
646
|
let w = new URL(o.value.href);
|
|
645
|
-
return n.value && h ? (w.search = "", w = r.value.isExactMatch ? new URL(`${w.href}/${h}/`) : new URL(`${w.href}?filter[name][contains]=${h}`)) : (n.value || new URLSearchParams(h).forEach((
|
|
646
|
-
w.searchParams.append(
|
|
647
|
+
return n.value && h ? (w.search = "", w = r.value.isExactMatch ? new URL(`${w.href}/${h}/`) : new URL(`${w.href}?filter[name][contains]=${h}`)) : (n.value || new URLSearchParams(h).forEach((I, $) => {
|
|
648
|
+
w.searchParams.append($, I);
|
|
647
649
|
}), u && w.searchParams.append("sort_by", u), d === "desc" && w.searchParams.append("sort_desc", "1"), w.searchParams.append("size", String(y))), S && s !== 1 && w.searchParams.append("offset", String(S)), w.href;
|
|
648
650
|
} catch (w) {
|
|
649
651
|
return console.error("RouteList(fetcher)", w), a.value;
|
|
650
652
|
}
|
|
651
653
|
};
|
|
652
654
|
}
|
|
653
|
-
function
|
|
654
|
-
const a = b(t), { axiosInstance: n } = me(e.axiosRequestConfig), o =
|
|
655
|
+
function Ft(e, t, r) {
|
|
656
|
+
const a = b(t), { axiosInstance: n } = me(e.axiosRequestConfig), o = Be(e, a), i = C({
|
|
655
657
|
status: ee.Idle
|
|
656
658
|
});
|
|
657
659
|
return { fetcher: async (s) => {
|
|
658
660
|
var y;
|
|
659
|
-
const S =
|
|
661
|
+
const S = Ze(r) || "data";
|
|
660
662
|
try {
|
|
661
663
|
i.value = { status: ee.Loading };
|
|
662
664
|
let u = o(s);
|
|
@@ -665,11 +667,11 @@ function Kt(e, t, r) {
|
|
|
665
667
|
if (d.status >= 400)
|
|
666
668
|
throw d;
|
|
667
669
|
const h = d.data, w = S && S.replace(/[^\w-_]/gi, "");
|
|
668
|
-
let
|
|
669
|
-
h[w] ?
|
|
670
|
-
const
|
|
671
|
-
data:
|
|
672
|
-
total:
|
|
670
|
+
let I;
|
|
671
|
+
h[w] ? I = Array.isArray(h[w]) ? h[w] : [h[w]] : Array.isArray(h) ? I = h : I = Object.keys(h).length ? [h] : [];
|
|
672
|
+
const $ = {
|
|
673
|
+
data: I,
|
|
674
|
+
total: I.length,
|
|
673
675
|
...h.offset ? {
|
|
674
676
|
pagination: {
|
|
675
677
|
offset: h.offset
|
|
@@ -678,8 +680,8 @@ function Kt(e, t, r) {
|
|
|
678
680
|
};
|
|
679
681
|
return i.value = {
|
|
680
682
|
status: ee.Idle,
|
|
681
|
-
response:
|
|
682
|
-
},
|
|
683
|
+
response: $
|
|
684
|
+
}, $;
|
|
683
685
|
} catch (u) {
|
|
684
686
|
const d = {
|
|
685
687
|
data: [],
|
|
@@ -697,69 +699,69 @@ function Kt(e, t, r) {
|
|
|
697
699
|
}
|
|
698
700
|
}, fetcherState: i };
|
|
699
701
|
}
|
|
700
|
-
function
|
|
702
|
+
function qt() {
|
|
701
703
|
const e = (r, a = "_") => r ? r.split(a).map((n) => n.toLowerCase() === "id" ? n.toUpperCase() : n.charAt(0).toUpperCase() + n.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
702
704
|
return {
|
|
703
705
|
capitalize: (r) => r ? r.replace(t, (a) => a.toUpperCase()) : "",
|
|
704
706
|
convertKeyToTitle: e
|
|
705
707
|
};
|
|
706
708
|
}
|
|
707
|
-
const
|
|
709
|
+
const Ue = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Se = (e) => {
|
|
708
710
|
if (typeof e != "string")
|
|
709
711
|
throw new TypeError("Invalid argument expected string");
|
|
710
|
-
const t = e.match(
|
|
712
|
+
const t = e.match(Ue);
|
|
711
713
|
if (!t)
|
|
712
714
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
713
715
|
return t.shift(), t;
|
|
714
716
|
}, xe = (e) => e === "*" || e === "x" || e === "X", Ne = (e) => {
|
|
715
717
|
const t = parseInt(e, 10);
|
|
716
718
|
return isNaN(t) ? e : t;
|
|
717
|
-
},
|
|
719
|
+
}, Mt = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Pt = (e, t) => {
|
|
718
720
|
if (xe(e) || xe(t))
|
|
719
721
|
return 0;
|
|
720
|
-
const [r, a] =
|
|
722
|
+
const [r, a] = Mt(Ne(e), Ne(t));
|
|
721
723
|
return r > a ? 1 : r < a ? -1 : 0;
|
|
722
|
-
},
|
|
724
|
+
}, Ie = (e, t) => {
|
|
723
725
|
for (let r = 0; r < Math.max(e.length, t.length); r++) {
|
|
724
|
-
const a =
|
|
726
|
+
const a = Pt(e[r] || "0", t[r] || "0");
|
|
725
727
|
if (a !== 0)
|
|
726
728
|
return a;
|
|
727
729
|
}
|
|
728
730
|
return 0;
|
|
729
|
-
},
|
|
730
|
-
const r = Se(e), a = Se(t), n = r.pop(), o = a.pop(), i =
|
|
731
|
-
return i !== 0 ? i : n && o ?
|
|
732
|
-
},
|
|
733
|
-
|
|
734
|
-
const a =
|
|
735
|
-
return
|
|
736
|
-
},
|
|
731
|
+
}, Rt = (e, t) => {
|
|
732
|
+
const r = Se(e), a = Se(t), n = r.pop(), o = a.pop(), i = Ie(r, a);
|
|
733
|
+
return i !== 0 ? i : n && o ? Ie(n.split("."), o.split(".")) : n || o ? n ? -1 : 1 : 0;
|
|
734
|
+
}, Ae = (e, t, r) => {
|
|
735
|
+
Lt(r);
|
|
736
|
+
const a = Rt(e, t);
|
|
737
|
+
return De[r].includes(a);
|
|
738
|
+
}, De = {
|
|
737
739
|
">": [1],
|
|
738
740
|
">=": [0, 1],
|
|
739
741
|
"=": [0],
|
|
740
742
|
"<=": [-1, 0],
|
|
741
743
|
"<": [-1],
|
|
742
744
|
"!=": [-1, 1]
|
|
743
|
-
}, Te = Object.keys(
|
|
745
|
+
}, Te = Object.keys(De), Lt = (e) => {
|
|
744
746
|
if (typeof e != "string")
|
|
745
747
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
746
748
|
if (Te.indexOf(e) === -1)
|
|
747
749
|
throw new Error(`Invalid operator, expected one of ${Te.join("|")}`);
|
|
748
|
-
},
|
|
749
|
-
function
|
|
750
|
+
}, Bt = (e) => typeof e == "string" && /^[v\d]/.test(e) && Ue.test(e);
|
|
751
|
+
function Ut(e) {
|
|
750
752
|
const { gatewayInfo: t, supportedRange: r } = e;
|
|
751
753
|
if (!t)
|
|
752
754
|
return !0;
|
|
753
755
|
const { edition: a, version: n } = t;
|
|
754
|
-
if (!
|
|
756
|
+
if (!Bt(n))
|
|
755
757
|
return console.error("Invalid version"), !1;
|
|
756
758
|
const o = r[a];
|
|
757
759
|
if (!o)
|
|
758
760
|
return !1;
|
|
759
761
|
const [i, s] = o;
|
|
760
|
-
return !(i &&
|
|
762
|
+
return !(i && Ae(n, i, "<") || s && Ae(n, s, ">"));
|
|
761
763
|
}
|
|
762
|
-
function
|
|
764
|
+
function Dt(e) {
|
|
763
765
|
const t = C(0), r = C(0), a = C(!1);
|
|
764
766
|
return se(e, (n) => {
|
|
765
767
|
n && !a.value && (t.value = n.offsetWidth, r.value = n.scrollWidth, a.value = !0);
|
|
@@ -767,7 +769,7 @@ function Ut(e) {
|
|
|
767
769
|
isTruncated: k(() => t.value < r.value)
|
|
768
770
|
};
|
|
769
771
|
}
|
|
770
|
-
function
|
|
772
|
+
function zt() {
|
|
771
773
|
const { i18n: { t: e } } = ce();
|
|
772
774
|
return {
|
|
773
775
|
utf8Name: (t) => /^[\p{N}\p{L}.\-_~]*$/u.test(t) ? "" : e("validationErrors.utf8Name")
|
|
@@ -775,18 +777,18 @@ function Dt() {
|
|
|
775
777
|
}
|
|
776
778
|
const ve = {
|
|
777
779
|
useAxios: me,
|
|
778
|
-
useDebouncedFilter:
|
|
779
|
-
useDeleteUrlBuilder:
|
|
780
|
+
useDebouncedFilter: Ot,
|
|
781
|
+
useDeleteUrlBuilder: $t,
|
|
780
782
|
useErrors: jt,
|
|
781
|
-
useExternalLinkCreator:
|
|
782
|
-
useFetcher:
|
|
783
|
-
useFetchUrlBuilder:
|
|
784
|
-
useHelpers:
|
|
785
|
-
useStringHelpers:
|
|
783
|
+
useExternalLinkCreator: Kt,
|
|
784
|
+
useFetcher: Ft,
|
|
785
|
+
useFetchUrlBuilder: Be,
|
|
786
|
+
useHelpers: Le,
|
|
787
|
+
useStringHelpers: qt,
|
|
786
788
|
useI18n: ce,
|
|
787
|
-
useGatewayFeatureSupported:
|
|
788
|
-
useTruncationDetector:
|
|
789
|
-
useValidators:
|
|
789
|
+
useGatewayFeatureSupported: Ut,
|
|
790
|
+
useTruncationDetector: Dt,
|
|
791
|
+
useValidators: zt
|
|
790
792
|
}, be = (e, t) => {
|
|
791
793
|
const r = e.__vccOpts || e;
|
|
792
794
|
for (const [a, n] of t)
|
|
@@ -794,23 +796,23 @@ const ve = {
|
|
|
794
796
|
return r;
|
|
795
797
|
};
|
|
796
798
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
797
|
-
function
|
|
799
|
+
function ze(e) {
|
|
798
800
|
return typeof e > "u" || e === null;
|
|
799
801
|
}
|
|
800
|
-
function
|
|
802
|
+
function Vt(e) {
|
|
801
803
|
return typeof e == "object" && e !== null;
|
|
802
804
|
}
|
|
803
|
-
function
|
|
804
|
-
return Array.isArray(e) ? e :
|
|
805
|
+
function Ht(e) {
|
|
806
|
+
return Array.isArray(e) ? e : ze(e) ? [] : [e];
|
|
805
807
|
}
|
|
806
|
-
function
|
|
808
|
+
function Jt(e, t) {
|
|
807
809
|
var r, a, n, o;
|
|
808
810
|
if (t)
|
|
809
811
|
for (o = Object.keys(t), r = 0, a = o.length; r < a; r += 1)
|
|
810
812
|
n = o[r], e[n] = t[n];
|
|
811
813
|
return e;
|
|
812
814
|
}
|
|
813
|
-
function
|
|
815
|
+
function Yt(e, t) {
|
|
814
816
|
var r = "", a;
|
|
815
817
|
for (a = 0; a < t; a += 1)
|
|
816
818
|
r += e;
|
|
@@ -819,29 +821,29 @@ function Jt(e, t) {
|
|
|
819
821
|
function Wt(e) {
|
|
820
822
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
821
823
|
}
|
|
822
|
-
var
|
|
823
|
-
isNothing:
|
|
824
|
-
isObject:
|
|
825
|
-
toArray:
|
|
826
|
-
repeat:
|
|
827
|
-
isNegativeZero:
|
|
828
|
-
extend:
|
|
824
|
+
var Zt = ze, Gt = Vt, Xt = Ht, Qt = Yt, er = Wt, tr = Jt, we = {
|
|
825
|
+
isNothing: Zt,
|
|
826
|
+
isObject: Gt,
|
|
827
|
+
toArray: Xt,
|
|
828
|
+
repeat: Qt,
|
|
829
|
+
isNegativeZero: er,
|
|
830
|
+
extend: tr
|
|
829
831
|
};
|
|
830
|
-
function
|
|
832
|
+
function Ve(e, t) {
|
|
831
833
|
var r = "", a = e.reason || "(unknown reason)";
|
|
832
834
|
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 += `
|
|
833
835
|
|
|
834
836
|
` + e.mark.snippet), a + " " + r) : a;
|
|
835
837
|
}
|
|
836
838
|
function ie(e, t) {
|
|
837
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
839
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Ve(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
838
840
|
}
|
|
839
841
|
ie.prototype = Object.create(Error.prototype);
|
|
840
842
|
ie.prototype.constructor = ie;
|
|
841
843
|
ie.prototype.toString = function(e) {
|
|
842
|
-
return this.name + ": " +
|
|
844
|
+
return this.name + ": " + Ve(this, e);
|
|
843
845
|
};
|
|
844
|
-
var te = ie,
|
|
846
|
+
var te = ie, rr = [
|
|
845
847
|
"kind",
|
|
846
848
|
"multi",
|
|
847
849
|
"resolve",
|
|
@@ -852,12 +854,12 @@ var te = ie, tr = [
|
|
|
852
854
|
"representName",
|
|
853
855
|
"defaultStyle",
|
|
854
856
|
"styleAliases"
|
|
855
|
-
],
|
|
857
|
+
], ar = [
|
|
856
858
|
"scalar",
|
|
857
859
|
"sequence",
|
|
858
860
|
"mapping"
|
|
859
861
|
];
|
|
860
|
-
function
|
|
862
|
+
function nr(e) {
|
|
861
863
|
var t = {};
|
|
862
864
|
return e !== null && Object.keys(e).forEach(function(r) {
|
|
863
865
|
e[r].forEach(function(a) {
|
|
@@ -865,18 +867,18 @@ function ar(e) {
|
|
|
865
867
|
});
|
|
866
868
|
}), t;
|
|
867
869
|
}
|
|
868
|
-
function
|
|
870
|
+
function ir(e, t) {
|
|
869
871
|
if (t = t || {}, Object.keys(t).forEach(function(r) {
|
|
870
|
-
if (
|
|
872
|
+
if (rr.indexOf(r) === -1)
|
|
871
873
|
throw new te('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
|
|
872
874
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
873
875
|
return !0;
|
|
874
876
|
}, this.construct = t.construct || function(r) {
|
|
875
877
|
return r;
|
|
876
|
-
}, 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 =
|
|
878
|
+
}, 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), ar.indexOf(this.kind) === -1)
|
|
877
879
|
throw new te('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
878
880
|
}
|
|
879
|
-
var
|
|
881
|
+
var j = ir;
|
|
880
882
|
function Ee(e, t) {
|
|
881
883
|
var r = [];
|
|
882
884
|
return e[t].forEach(function(a) {
|
|
@@ -886,7 +888,7 @@ function Ee(e, t) {
|
|
|
886
888
|
}), r[n] = a;
|
|
887
889
|
}), r;
|
|
888
890
|
}
|
|
889
|
-
function
|
|
891
|
+
function or() {
|
|
890
892
|
var e = {
|
|
891
893
|
scalar: {},
|
|
892
894
|
sequence: {},
|
|
@@ -911,7 +913,7 @@ function pe(e) {
|
|
|
911
913
|
}
|
|
912
914
|
pe.prototype.extend = function(e) {
|
|
913
915
|
var t = [], r = [];
|
|
914
|
-
if (e instanceof
|
|
916
|
+
if (e instanceof j)
|
|
915
917
|
r.push(e);
|
|
916
918
|
else if (Array.isArray(e))
|
|
917
919
|
r = r.concat(e);
|
|
@@ -920,57 +922,57 @@ pe.prototype.extend = function(e) {
|
|
|
920
922
|
else
|
|
921
923
|
throw new te("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
922
924
|
t.forEach(function(n) {
|
|
923
|
-
if (!(n instanceof
|
|
925
|
+
if (!(n instanceof j))
|
|
924
926
|
throw new te("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
925
927
|
if (n.loadKind && n.loadKind !== "scalar")
|
|
926
928
|
throw new te("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
927
929
|
if (n.multi)
|
|
928
930
|
throw new te("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
929
931
|
}), r.forEach(function(n) {
|
|
930
|
-
if (!(n instanceof
|
|
932
|
+
if (!(n instanceof j))
|
|
931
933
|
throw new te("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
932
934
|
});
|
|
933
935
|
var a = Object.create(pe.prototype);
|
|
934
|
-
return a.implicit = (this.implicit || []).concat(t), a.explicit = (this.explicit || []).concat(r), a.compiledImplicit = Ee(a, "implicit"), a.compiledExplicit = Ee(a, "explicit"), a.compiledTypeMap =
|
|
936
|
+
return a.implicit = (this.implicit || []).concat(t), a.explicit = (this.explicit || []).concat(r), a.compiledImplicit = Ee(a, "implicit"), a.compiledExplicit = Ee(a, "explicit"), a.compiledTypeMap = or(a.compiledImplicit, a.compiledExplicit), a;
|
|
935
937
|
};
|
|
936
|
-
var
|
|
938
|
+
var lr = pe, sr = new j("tag:yaml.org,2002:str", {
|
|
937
939
|
kind: "scalar",
|
|
938
940
|
construct: function(e) {
|
|
939
941
|
return e !== null ? e : "";
|
|
940
942
|
}
|
|
941
|
-
}),
|
|
943
|
+
}), cr = new j("tag:yaml.org,2002:seq", {
|
|
942
944
|
kind: "sequence",
|
|
943
945
|
construct: function(e) {
|
|
944
946
|
return e !== null ? e : [];
|
|
945
947
|
}
|
|
946
|
-
}),
|
|
948
|
+
}), ur = new j("tag:yaml.org,2002:map", {
|
|
947
949
|
kind: "mapping",
|
|
948
950
|
construct: function(e) {
|
|
949
951
|
return e !== null ? e : {};
|
|
950
952
|
}
|
|
951
|
-
}),
|
|
953
|
+
}), dr = new lr({
|
|
952
954
|
explicit: [
|
|
953
|
-
lr,
|
|
954
955
|
sr,
|
|
955
|
-
cr
|
|
956
|
+
cr,
|
|
957
|
+
ur
|
|
956
958
|
]
|
|
957
959
|
});
|
|
958
|
-
function
|
|
960
|
+
function pr(e) {
|
|
959
961
|
if (e === null) return !0;
|
|
960
962
|
var t = e.length;
|
|
961
963
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
962
964
|
}
|
|
963
|
-
function
|
|
965
|
+
function fr() {
|
|
964
966
|
return null;
|
|
965
967
|
}
|
|
966
|
-
function
|
|
968
|
+
function yr(e) {
|
|
967
969
|
return e === null;
|
|
968
970
|
}
|
|
969
|
-
var
|
|
971
|
+
var gr = new j("tag:yaml.org,2002:null", {
|
|
970
972
|
kind: "scalar",
|
|
971
|
-
resolve:
|
|
972
|
-
construct:
|
|
973
|
-
predicate:
|
|
973
|
+
resolve: pr,
|
|
974
|
+
construct: fr,
|
|
975
|
+
predicate: yr,
|
|
974
976
|
represent: {
|
|
975
977
|
canonical: function() {
|
|
976
978
|
return "~";
|
|
@@ -990,22 +992,22 @@ var yr = new $("tag:yaml.org,2002:null", {
|
|
|
990
992
|
},
|
|
991
993
|
defaultStyle: "lowercase"
|
|
992
994
|
});
|
|
993
|
-
function
|
|
995
|
+
function hr(e) {
|
|
994
996
|
if (e === null) return !1;
|
|
995
997
|
var t = e.length;
|
|
996
998
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
997
999
|
}
|
|
998
|
-
function
|
|
1000
|
+
function mr(e) {
|
|
999
1001
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1000
1002
|
}
|
|
1001
|
-
function
|
|
1003
|
+
function vr(e) {
|
|
1002
1004
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1003
1005
|
}
|
|
1004
|
-
var
|
|
1006
|
+
var br = new j("tag:yaml.org,2002:bool", {
|
|
1005
1007
|
kind: "scalar",
|
|
1006
|
-
resolve:
|
|
1007
|
-
construct:
|
|
1008
|
-
predicate:
|
|
1008
|
+
resolve: hr,
|
|
1009
|
+
construct: mr,
|
|
1010
|
+
predicate: vr,
|
|
1009
1011
|
represent: {
|
|
1010
1012
|
lowercase: function(e) {
|
|
1011
1013
|
return e ? "true" : "false";
|
|
@@ -1019,16 +1021,16 @@ var vr = new $("tag:yaml.org,2002:bool", {
|
|
|
1019
1021
|
},
|
|
1020
1022
|
defaultStyle: "lowercase"
|
|
1021
1023
|
});
|
|
1022
|
-
function
|
|
1024
|
+
function wr(e) {
|
|
1023
1025
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1024
1026
|
}
|
|
1025
|
-
function
|
|
1027
|
+
function Cr(e) {
|
|
1026
1028
|
return 48 <= e && e <= 55;
|
|
1027
1029
|
}
|
|
1028
|
-
function
|
|
1030
|
+
function kr(e) {
|
|
1029
1031
|
return 48 <= e && e <= 57;
|
|
1030
1032
|
}
|
|
1031
|
-
function
|
|
1033
|
+
function _r(e) {
|
|
1032
1034
|
if (e === null) return !1;
|
|
1033
1035
|
var t = e.length, r = 0, a = !1, n;
|
|
1034
1036
|
if (!t) return !1;
|
|
@@ -1045,7 +1047,7 @@ function kr(e) {
|
|
|
1045
1047
|
if (n === "x") {
|
|
1046
1048
|
for (r++; r < t; r++)
|
|
1047
1049
|
if (n = e[r], n !== "_") {
|
|
1048
|
-
if (!
|
|
1050
|
+
if (!wr(e.charCodeAt(r))) return !1;
|
|
1049
1051
|
a = !0;
|
|
1050
1052
|
}
|
|
1051
1053
|
return a && n !== "_";
|
|
@@ -1053,7 +1055,7 @@ function kr(e) {
|
|
|
1053
1055
|
if (n === "o") {
|
|
1054
1056
|
for (r++; r < t; r++)
|
|
1055
1057
|
if (n = e[r], n !== "_") {
|
|
1056
|
-
if (!
|
|
1058
|
+
if (!Cr(e.charCodeAt(r))) return !1;
|
|
1057
1059
|
a = !0;
|
|
1058
1060
|
}
|
|
1059
1061
|
return a && n !== "_";
|
|
@@ -1062,13 +1064,13 @@ function kr(e) {
|
|
|
1062
1064
|
if (n === "_") return !1;
|
|
1063
1065
|
for (; r < t; r++)
|
|
1064
1066
|
if (n = e[r], n !== "_") {
|
|
1065
|
-
if (!
|
|
1067
|
+
if (!kr(e.charCodeAt(r)))
|
|
1066
1068
|
return !1;
|
|
1067
1069
|
a = !0;
|
|
1068
1070
|
}
|
|
1069
1071
|
return !(!a || n === "_");
|
|
1070
1072
|
}
|
|
1071
|
-
function
|
|
1073
|
+
function Sr(e) {
|
|
1072
1074
|
var t = e, r = 1, a;
|
|
1073
1075
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), a = t[0], (a === "-" || a === "+") && (a === "-" && (r = -1), t = t.slice(1), a = t[0]), t === "0") return 0;
|
|
1074
1076
|
if (a === "0") {
|
|
@@ -1078,14 +1080,14 @@ function _r(e) {
|
|
|
1078
1080
|
}
|
|
1079
1081
|
return r * parseInt(t, 10);
|
|
1080
1082
|
}
|
|
1081
|
-
function
|
|
1083
|
+
function xr(e) {
|
|
1082
1084
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !we.isNegativeZero(e);
|
|
1083
1085
|
}
|
|
1084
|
-
var
|
|
1086
|
+
var Nr = new j("tag:yaml.org,2002:int", {
|
|
1085
1087
|
kind: "scalar",
|
|
1086
|
-
resolve:
|
|
1087
|
-
construct:
|
|
1088
|
-
predicate:
|
|
1088
|
+
resolve: _r,
|
|
1089
|
+
construct: Sr,
|
|
1090
|
+
predicate: xr,
|
|
1089
1091
|
represent: {
|
|
1090
1092
|
binary: function(e) {
|
|
1091
1093
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1108,21 +1110,21 @@ var xr = new $("tag:yaml.org,2002:int", {
|
|
|
1108
1110
|
decimal: [10, "dec"],
|
|
1109
1111
|
hexadecimal: [16, "hex"]
|
|
1110
1112
|
}
|
|
1111
|
-
}),
|
|
1113
|
+
}), Ir = new RegExp(
|
|
1112
1114
|
// 2.5e4, 2.5 and integers
|
|
1113
1115
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1114
1116
|
);
|
|
1115
1117
|
function Ar(e) {
|
|
1116
|
-
return !(e === null || !
|
|
1118
|
+
return !(e === null || !Ir.test(e) || // Quick hack to not allow integers end with `_`
|
|
1117
1119
|
// Probably should update regexp & check speed
|
|
1118
1120
|
e[e.length - 1] === "_");
|
|
1119
1121
|
}
|
|
1120
|
-
function
|
|
1122
|
+
function Tr(e) {
|
|
1121
1123
|
var t, r;
|
|
1122
1124
|
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);
|
|
1123
1125
|
}
|
|
1124
|
-
var
|
|
1125
|
-
function
|
|
1126
|
+
var Er = /^[-+]?[0-9]+e/;
|
|
1127
|
+
function Or(e, t) {
|
|
1126
1128
|
var r;
|
|
1127
1129
|
if (isNaN(e))
|
|
1128
1130
|
switch (t) {
|
|
@@ -1153,36 +1155,36 @@ function Er(e, t) {
|
|
|
1153
1155
|
}
|
|
1154
1156
|
else if (we.isNegativeZero(e))
|
|
1155
1157
|
return "-0.0";
|
|
1156
|
-
return r = e.toString(10),
|
|
1158
|
+
return r = e.toString(10), Er.test(r) ? r.replace("e", ".e") : r;
|
|
1157
1159
|
}
|
|
1158
|
-
function
|
|
1160
|
+
function $r(e) {
|
|
1159
1161
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || we.isNegativeZero(e));
|
|
1160
1162
|
}
|
|
1161
|
-
var jr = new
|
|
1163
|
+
var jr = new j("tag:yaml.org,2002:float", {
|
|
1162
1164
|
kind: "scalar",
|
|
1163
1165
|
resolve: Ar,
|
|
1164
|
-
construct:
|
|
1165
|
-
predicate:
|
|
1166
|
-
represent:
|
|
1166
|
+
construct: Tr,
|
|
1167
|
+
predicate: $r,
|
|
1168
|
+
represent: Or,
|
|
1167
1169
|
defaultStyle: "lowercase"
|
|
1168
|
-
}),
|
|
1170
|
+
}), Kr = dr.extend({
|
|
1169
1171
|
implicit: [
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1172
|
+
gr,
|
|
1173
|
+
br,
|
|
1174
|
+
Nr,
|
|
1173
1175
|
jr
|
|
1174
1176
|
]
|
|
1175
|
-
}),
|
|
1177
|
+
}), Fr = Kr, He = new RegExp(
|
|
1176
1178
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1177
|
-
),
|
|
1179
|
+
), Je = new RegExp(
|
|
1178
1180
|
"^([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]))?))?$"
|
|
1179
1181
|
);
|
|
1180
|
-
function
|
|
1181
|
-
return e === null ? !1 :
|
|
1182
|
+
function qr(e) {
|
|
1183
|
+
return e === null ? !1 : He.exec(e) !== null || Je.exec(e) !== null;
|
|
1182
1184
|
}
|
|
1183
|
-
function
|
|
1185
|
+
function Mr(e) {
|
|
1184
1186
|
var t, r, a, n, o, i, s, y = 0, S = null, u, d, h;
|
|
1185
|
-
if (t =
|
|
1187
|
+
if (t = He.exec(e), t === null && (t = Je.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1186
1188
|
if (r = +t[1], a = +t[2] - 1, n = +t[3], !t[4])
|
|
1187
1189
|
return new Date(Date.UTC(r, a, n));
|
|
1188
1190
|
if (o = +t[4], i = +t[5], s = +t[6], t[7]) {
|
|
@@ -1192,25 +1194,25 @@ function Lr(e) {
|
|
|
1192
1194
|
}
|
|
1193
1195
|
return t[9] && (u = +t[10], d = +(t[11] || 0), S = (u * 60 + d) * 6e4, t[9] === "-" && (S = -S)), h = new Date(Date.UTC(r, a, n, o, i, s, y)), S && h.setTime(h.getTime() - S), h;
|
|
1194
1196
|
}
|
|
1195
|
-
function
|
|
1197
|
+
function Pr(e) {
|
|
1196
1198
|
return e.toISOString();
|
|
1197
1199
|
}
|
|
1198
|
-
var
|
|
1200
|
+
var Rr = new j("tag:yaml.org,2002:timestamp", {
|
|
1199
1201
|
kind: "scalar",
|
|
1200
|
-
resolve:
|
|
1201
|
-
construct:
|
|
1202
|
+
resolve: qr,
|
|
1203
|
+
construct: Mr,
|
|
1202
1204
|
instanceOf: Date,
|
|
1203
|
-
represent:
|
|
1205
|
+
represent: Pr
|
|
1204
1206
|
});
|
|
1205
|
-
function
|
|
1207
|
+
function Lr(e) {
|
|
1206
1208
|
return e === "<<" || e === null;
|
|
1207
1209
|
}
|
|
1208
|
-
var
|
|
1210
|
+
var Br = new j("tag:yaml.org,2002:merge", {
|
|
1209
1211
|
kind: "scalar",
|
|
1210
|
-
resolve:
|
|
1212
|
+
resolve: Lr
|
|
1211
1213
|
}), Ce = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1212
1214
|
\r`;
|
|
1213
|
-
function
|
|
1215
|
+
function Ur(e) {
|
|
1214
1216
|
if (e === null) return !1;
|
|
1215
1217
|
var t, r, a = 0, n = e.length, o = Ce;
|
|
1216
1218
|
for (r = 0; r < n; r++)
|
|
@@ -1220,35 +1222,35 @@ function Rr(e) {
|
|
|
1220
1222
|
}
|
|
1221
1223
|
return a % 8 === 0;
|
|
1222
1224
|
}
|
|
1223
|
-
function
|
|
1225
|
+
function Dr(e) {
|
|
1224
1226
|
var t, r, a = e.replace(/[\r\n=]/g, ""), n = a.length, o = Ce, i = 0, s = [];
|
|
1225
1227
|
for (t = 0; t < n; t++)
|
|
1226
1228
|
t % 4 === 0 && t && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | o.indexOf(a.charAt(t));
|
|
1227
1229
|
return r = n % 4 * 6, r === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : r === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : r === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
|
|
1228
1230
|
}
|
|
1229
|
-
function
|
|
1231
|
+
function zr(e) {
|
|
1230
1232
|
var t = "", r = 0, a, n, o = e.length, i = Ce;
|
|
1231
1233
|
for (a = 0; a < o; a++)
|
|
1232
1234
|
a % 3 === 0 && a && (t += i[r >> 18 & 63], t += i[r >> 12 & 63], t += i[r >> 6 & 63], t += i[r & 63]), r = (r << 8) + e[a];
|
|
1233
1235
|
return n = o % 3, n === 0 ? (t += i[r >> 18 & 63], t += i[r >> 12 & 63], t += i[r >> 6 & 63], t += i[r & 63]) : n === 2 ? (t += i[r >> 10 & 63], t += i[r >> 4 & 63], t += i[r << 2 & 63], t += i[64]) : n === 1 && (t += i[r >> 2 & 63], t += i[r << 4 & 63], t += i[64], t += i[64]), t;
|
|
1234
1236
|
}
|
|
1235
|
-
function
|
|
1237
|
+
function Vr(e) {
|
|
1236
1238
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1237
1239
|
}
|
|
1238
|
-
var
|
|
1240
|
+
var Hr = new j("tag:yaml.org,2002:binary", {
|
|
1239
1241
|
kind: "scalar",
|
|
1240
|
-
resolve:
|
|
1241
|
-
construct:
|
|
1242
|
-
predicate:
|
|
1243
|
-
represent:
|
|
1244
|
-
}),
|
|
1242
|
+
resolve: Ur,
|
|
1243
|
+
construct: Dr,
|
|
1244
|
+
predicate: Vr,
|
|
1245
|
+
represent: zr
|
|
1246
|
+
}), Jr = Object.prototype.hasOwnProperty, Yr = Object.prototype.toString;
|
|
1245
1247
|
function Wr(e) {
|
|
1246
1248
|
if (e === null) return !0;
|
|
1247
1249
|
var t = [], r, a, n, o, i, s = e;
|
|
1248
1250
|
for (r = 0, a = s.length; r < a; r += 1) {
|
|
1249
|
-
if (n = s[r], i = !1,
|
|
1251
|
+
if (n = s[r], i = !1, Yr.call(n) !== "[object Object]") return !1;
|
|
1250
1252
|
for (o in n)
|
|
1251
|
-
if (
|
|
1253
|
+
if (Jr.call(n, o))
|
|
1252
1254
|
if (!i) i = !0;
|
|
1253
1255
|
else return !1;
|
|
1254
1256
|
if (!i) return !1;
|
|
@@ -1257,82 +1259,82 @@ function Wr(e) {
|
|
|
1257
1259
|
}
|
|
1258
1260
|
return !0;
|
|
1259
1261
|
}
|
|
1260
|
-
function
|
|
1262
|
+
function Zr(e) {
|
|
1261
1263
|
return e !== null ? e : [];
|
|
1262
1264
|
}
|
|
1263
|
-
var
|
|
1265
|
+
var Gr = new j("tag:yaml.org,2002:omap", {
|
|
1264
1266
|
kind: "sequence",
|
|
1265
1267
|
resolve: Wr,
|
|
1266
|
-
construct:
|
|
1267
|
-
}),
|
|
1268
|
-
function
|
|
1268
|
+
construct: Zr
|
|
1269
|
+
}), Xr = Object.prototype.toString;
|
|
1270
|
+
function Qr(e) {
|
|
1269
1271
|
if (e === null) return !0;
|
|
1270
1272
|
var t, r, a, n, o, i = e;
|
|
1271
1273
|
for (o = new Array(i.length), t = 0, r = i.length; t < r; t += 1) {
|
|
1272
|
-
if (a = i[t],
|
|
1274
|
+
if (a = i[t], Xr.call(a) !== "[object Object]" || (n = Object.keys(a), n.length !== 1)) return !1;
|
|
1273
1275
|
o[t] = [n[0], a[n[0]]];
|
|
1274
1276
|
}
|
|
1275
1277
|
return !0;
|
|
1276
1278
|
}
|
|
1277
|
-
function
|
|
1279
|
+
function ea(e) {
|
|
1278
1280
|
if (e === null) return [];
|
|
1279
1281
|
var t, r, a, n, o, i = e;
|
|
1280
1282
|
for (o = new Array(i.length), t = 0, r = i.length; t < r; t += 1)
|
|
1281
1283
|
a = i[t], n = Object.keys(a), o[t] = [n[0], a[n[0]]];
|
|
1282
1284
|
return o;
|
|
1283
1285
|
}
|
|
1284
|
-
var
|
|
1286
|
+
var ta = new j("tag:yaml.org,2002:pairs", {
|
|
1285
1287
|
kind: "sequence",
|
|
1286
|
-
resolve:
|
|
1287
|
-
construct:
|
|
1288
|
-
}),
|
|
1289
|
-
function
|
|
1288
|
+
resolve: Qr,
|
|
1289
|
+
construct: ea
|
|
1290
|
+
}), ra = Object.prototype.hasOwnProperty;
|
|
1291
|
+
function aa(e) {
|
|
1290
1292
|
if (e === null) return !0;
|
|
1291
1293
|
var t, r = e;
|
|
1292
1294
|
for (t in r)
|
|
1293
|
-
if (
|
|
1295
|
+
if (ra.call(r, t) && r[t] !== null)
|
|
1294
1296
|
return !1;
|
|
1295
1297
|
return !0;
|
|
1296
1298
|
}
|
|
1297
|
-
function
|
|
1299
|
+
function na(e) {
|
|
1298
1300
|
return e !== null ? e : {};
|
|
1299
1301
|
}
|
|
1300
|
-
var
|
|
1302
|
+
var ia = new j("tag:yaml.org,2002:set", {
|
|
1301
1303
|
kind: "mapping",
|
|
1302
|
-
resolve:
|
|
1303
|
-
construct:
|
|
1304
|
+
resolve: aa,
|
|
1305
|
+
construct: na
|
|
1304
1306
|
});
|
|
1305
|
-
|
|
1307
|
+
Fr.extend({
|
|
1306
1308
|
implicit: [
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
+
Rr,
|
|
1310
|
+
Br
|
|
1309
1311
|
],
|
|
1310
1312
|
explicit: [
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1313
|
+
Hr,
|
|
1314
|
+
Gr,
|
|
1315
|
+
ta,
|
|
1316
|
+
ia
|
|
1315
1317
|
]
|
|
1316
1318
|
});
|
|
1317
1319
|
function Oe(e) {
|
|
1318
1320
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1319
1321
|
` : 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" : "";
|
|
1320
1322
|
}
|
|
1321
|
-
var
|
|
1323
|
+
var oa = new Array(256), la = new Array(256);
|
|
1322
1324
|
for (var ae = 0; ae < 256; ae++)
|
|
1323
|
-
|
|
1324
|
-
const le = "24px",
|
|
1325
|
+
oa[ae] = Oe(ae) ? 1 : 0, la[ae] = Oe(ae);
|
|
1326
|
+
const le = "24px", Ye = (e, t) => {
|
|
1325
1327
|
const r = e.__vccOpts || e;
|
|
1326
1328
|
for (const [a, n] of t)
|
|
1327
1329
|
r[a] = n;
|
|
1328
1330
|
return r;
|
|
1329
|
-
},
|
|
1331
|
+
}, sa = (e) => (ge("data-v-c1f7c39c"), e = e(), he(), e), ca = ["aria-hidden"], ua = {
|
|
1330
1332
|
key: 0,
|
|
1331
1333
|
"data-testid": "kui-icon-svg-title"
|
|
1332
|
-
},
|
|
1334
|
+
}, da = /* @__PURE__ */ sa(() => /* @__PURE__ */ H("path", {
|
|
1333
1335
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
1334
1336
|
fill: "currentColor"
|
|
1335
|
-
}, null, -1)),
|
|
1337
|
+
}, null, -1)), pa = /* @__PURE__ */ X({
|
|
1336
1338
|
__name: "AddIcon",
|
|
1337
1339
|
props: {
|
|
1338
1340
|
/** The accessibility text provided to screen readers */
|
|
@@ -1409,7 +1411,7 @@ const le = "24px", Je = (e, t) => {
|
|
|
1409
1411
|
style: ye(a.value)
|
|
1410
1412
|
}, {
|
|
1411
1413
|
default: l(() => [
|
|
1412
|
-
(_(),
|
|
1414
|
+
(_(), M("svg", {
|
|
1413
1415
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1414
1416
|
"data-testid": "kui-icon-svg-add-icon",
|
|
1415
1417
|
fill: "none",
|
|
@@ -1419,20 +1421,20 @@ const le = "24px", Je = (e, t) => {
|
|
|
1419
1421
|
width: "100%",
|
|
1420
1422
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1421
1423
|
}, [
|
|
1422
|
-
e.title ? (_(),
|
|
1423
|
-
|
|
1424
|
-
], 8,
|
|
1424
|
+
e.title ? (_(), M("title", ua, A(e.title), 1)) : z("", !0),
|
|
1425
|
+
da
|
|
1426
|
+
], 8, ca))
|
|
1425
1427
|
]),
|
|
1426
1428
|
_: 1
|
|
1427
1429
|
}, 8, ["aria-hidden", "style"]));
|
|
1428
1430
|
}
|
|
1429
|
-
}),
|
|
1431
|
+
}), fa = /* @__PURE__ */ Ye(pa, [["__scopeId", "data-v-c1f7c39c"]]), ya = (e) => (ge("data-v-d9894a05"), e = e(), he(), e), ga = ["aria-hidden"], ha = {
|
|
1430
1432
|
key: 0,
|
|
1431
1433
|
"data-testid": "kui-icon-svg-title"
|
|
1432
|
-
},
|
|
1434
|
+
}, ma = /* @__PURE__ */ ya(() => /* @__PURE__ */ H("path", {
|
|
1433
1435
|
d: "M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",
|
|
1434
1436
|
fill: "currentColor"
|
|
1435
|
-
}, null, -1)),
|
|
1437
|
+
}, null, -1)), va = /* @__PURE__ */ X({
|
|
1436
1438
|
__name: "MoreIcon",
|
|
1437
1439
|
props: {
|
|
1438
1440
|
/** The accessibility text provided to screen readers */
|
|
@@ -1509,7 +1511,7 @@ const le = "24px", Je = (e, t) => {
|
|
|
1509
1511
|
style: ye(a.value)
|
|
1510
1512
|
}, {
|
|
1511
1513
|
default: l(() => [
|
|
1512
|
-
(_(),
|
|
1514
|
+
(_(), M("svg", {
|
|
1513
1515
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
1514
1516
|
"data-testid": "kui-icon-svg-more-icon",
|
|
1515
1517
|
fill: "none",
|
|
@@ -1519,14 +1521,14 @@ const le = "24px", Je = (e, t) => {
|
|
|
1519
1521
|
width: "100%",
|
|
1520
1522
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1521
1523
|
}, [
|
|
1522
|
-
e.title ? (_(),
|
|
1523
|
-
|
|
1524
|
-
], 8,
|
|
1524
|
+
e.title ? (_(), M("title", ha, A(e.title), 1)) : z("", !0),
|
|
1525
|
+
ma
|
|
1526
|
+
], 8, ga))
|
|
1525
1527
|
]),
|
|
1526
1528
|
_: 1
|
|
1527
1529
|
}, 8, ["aria-hidden", "style"]));
|
|
1528
1530
|
}
|
|
1529
|
-
}),
|
|
1531
|
+
}), ba = /* @__PURE__ */ Ye(va, [["__scopeId", "data-v-d9894a05"]]), wa = ["data-truncate"], Ca = /* @__PURE__ */ X({
|
|
1530
1532
|
__name: "EntityBaseTableCell",
|
|
1531
1533
|
props: {
|
|
1532
1534
|
keyName: {
|
|
@@ -1551,21 +1553,21 @@ const le = "24px", Je = (e, t) => {
|
|
|
1551
1553
|
return ((N = r.value) == null ? void 0 : N.querySelector('[data-truncate="true"]')) || null;
|
|
1552
1554
|
}), n = k(() => {
|
|
1553
1555
|
var N, E;
|
|
1554
|
-
const
|
|
1555
|
-
return
|
|
1556
|
+
const q = (N = t.rowEl) == null ? void 0 : N.querySelectorAll("td");
|
|
1557
|
+
return q ? ((E = q[0]) == null ? void 0 : E.getAttribute("data-testid")) === t.keyName : !0;
|
|
1556
1558
|
}), o = k(() => n.value || t.tooltip);
|
|
1557
1559
|
let i;
|
|
1558
1560
|
const s = () => {
|
|
1559
1561
|
i && (i.disconnect(), i = void 0);
|
|
1560
1562
|
}, y = () => {
|
|
1561
|
-
var N, E,
|
|
1563
|
+
var N, E, q;
|
|
1562
1564
|
let g = ((N = r.value) == null ? void 0 : N.clientWidth) || 0;
|
|
1563
1565
|
if (r.value && "getComputedStyle" in window) {
|
|
1564
|
-
const
|
|
1565
|
-
g -= (parseFloat(
|
|
1566
|
+
const B = window.getComputedStyle(r.value);
|
|
1567
|
+
g -= (parseFloat(B.paddingLeft) || 0) + (parseFloat(B.paddingRight) || 0);
|
|
1566
1568
|
}
|
|
1567
|
-
u.value = ((E = a.value) == null ? void 0 : E.getBoundingClientRect().width) || 0, d.value = g, h.value = ((
|
|
1568
|
-
}, S = C({}), u = C(0), d = C(0), h = C(""), w = k(() => [a.value, r.value]),
|
|
1569
|
+
u.value = ((E = a.value) == null ? void 0 : E.getBoundingClientRect().width) || 0, d.value = g, h.value = ((q = S.value) == null ? void 0 : q.innerText) || "";
|
|
1570
|
+
}, S = C({}), u = C(0), d = C(0), h = C(""), w = k(() => [a.value, r.value]), I = se(
|
|
1569
1571
|
w,
|
|
1570
1572
|
(N) => {
|
|
1571
1573
|
if (o.value && (s(), "ResizeObserver" in window && window)) {
|
|
@@ -1579,40 +1581,40 @@ const le = "24px", Je = (e, t) => {
|
|
|
1579
1581
|
}
|
|
1580
1582
|
},
|
|
1581
1583
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
1582
|
-
),
|
|
1583
|
-
return
|
|
1584
|
+
), $ = k(() => o.value ? u.value > d.value : !1);
|
|
1585
|
+
return Xe(() => {
|
|
1584
1586
|
y();
|
|
1585
|
-
}),
|
|
1586
|
-
|
|
1587
|
+
}), Qe(() => {
|
|
1588
|
+
I();
|
|
1587
1589
|
}), (N, E) => {
|
|
1588
|
-
const
|
|
1589
|
-
return _(),
|
|
1590
|
+
const q = L("KTooltip");
|
|
1591
|
+
return _(), M("span", {
|
|
1590
1592
|
ref_key: "contentRef",
|
|
1591
1593
|
ref: S,
|
|
1592
1594
|
class: "content-wrapper"
|
|
1593
1595
|
}, [
|
|
1594
|
-
o.value ? (_(),
|
|
1596
|
+
o.value ? (_(), M("span", {
|
|
1595
1597
|
key: 0,
|
|
1596
1598
|
"data-truncate": o.value || void 0
|
|
1597
1599
|
}, [
|
|
1598
|
-
v(
|
|
1600
|
+
v(q, {
|
|
1599
1601
|
"max-width": "300",
|
|
1600
1602
|
placement: "bottom-start",
|
|
1601
|
-
text:
|
|
1603
|
+
text: $.value ? h.value : ""
|
|
1602
1604
|
}, {
|
|
1603
1605
|
default: l(() => [
|
|
1604
1606
|
G(N.$slots, "default", {}, void 0, !0)
|
|
1605
1607
|
]),
|
|
1606
1608
|
_: 3
|
|
1607
1609
|
}, 8, ["text"])
|
|
1608
|
-
], 8,
|
|
1610
|
+
], 8, wa)) : G(N.$slots, "default", { key: 1 }, void 0, !0)
|
|
1609
1611
|
], 512);
|
|
1610
1612
|
};
|
|
1611
1613
|
}
|
|
1612
|
-
}),
|
|
1614
|
+
}), ka = /* @__PURE__ */ be(Ca, [["__scopeId", "data-v-b252463e"]]), _a = { class: "toolbar-container" }, Sa = {
|
|
1613
1615
|
key: 0,
|
|
1614
1616
|
class: "toolbar-button-container"
|
|
1615
|
-
},
|
|
1617
|
+
}, xa = ["data-testid"], Na = /* @__PURE__ */ X({
|
|
1616
1618
|
__name: "EntityBaseTable",
|
|
1617
1619
|
props: {
|
|
1618
1620
|
// table header configuration
|
|
@@ -1773,15 +1775,15 @@ const le = "24px", Je = (e, t) => {
|
|
|
1773
1775
|
textOverflow: "ellipsis"
|
|
1774
1776
|
}), p;
|
|
1775
1777
|
}, w = () => {
|
|
1776
|
-
a("empty-state-cta-clicked"),
|
|
1777
|
-
},
|
|
1778
|
+
a("empty-state-cta-clicked"), I();
|
|
1779
|
+
}, I = () => {
|
|
1778
1780
|
a("clear-search-input");
|
|
1779
|
-
},
|
|
1781
|
+
}, $ = k(() => r.disableRowClick ? void 0 : (c, p) => {
|
|
1780
1782
|
a("click:row", p);
|
|
1781
1783
|
}), N = (c) => {
|
|
1782
1784
|
a("sort", c);
|
|
1783
|
-
}, { setTablePreferences: E, getTablePreferences:
|
|
1784
|
-
const c =
|
|
1785
|
+
}, { setTablePreferences: E, getTablePreferences: q } = bt(), g = C(q(i.value)), B = k(() => {
|
|
1786
|
+
const c = q(i.value);
|
|
1785
1787
|
return {
|
|
1786
1788
|
...r.initialFetcherParams,
|
|
1787
1789
|
...c
|
|
@@ -1792,7 +1794,7 @@ const le = "24px", Je = (e, t) => {
|
|
|
1792
1794
|
}), i.value && E(i.value, c);
|
|
1793
1795
|
};
|
|
1794
1796
|
return (c, p) => {
|
|
1795
|
-
const T =
|
|
1797
|
+
const T = L("KButton"), Y = L("KDropdown"), O = L("KTable"), D = L("KCard");
|
|
1796
1798
|
return _(), U(D, {
|
|
1797
1799
|
class: "kong-ui-entity-base-table",
|
|
1798
1800
|
title: e.title,
|
|
@@ -1818,7 +1820,7 @@ const le = "24px", Je = (e, t) => {
|
|
|
1818
1820
|
"fetcher-cache-key": String(e.fetcherCacheKey),
|
|
1819
1821
|
headers: y.value,
|
|
1820
1822
|
"hide-pagination-when-optional": "",
|
|
1821
|
-
"initial-fetcher-params":
|
|
1823
|
+
"initial-fetcher-params": B.value,
|
|
1822
1824
|
loading: e.isLoading,
|
|
1823
1825
|
"pagination-offset": e.paginationType === "offset",
|
|
1824
1826
|
"resize-columns": "",
|
|
@@ -1828,33 +1830,33 @@ const le = "24px", Je = (e, t) => {
|
|
|
1828
1830
|
sortable: !e.disableSorting,
|
|
1829
1831
|
"table-preferences": g.value,
|
|
1830
1832
|
onEmptyStateActionClick: w,
|
|
1831
|
-
"onRow:click":
|
|
1833
|
+
"onRow:click": $.value,
|
|
1832
1834
|
onSort: p[0] || (p[0] = (K) => N(K)),
|
|
1833
1835
|
"onUpdate:tablePreferences": J
|
|
1834
|
-
},
|
|
1836
|
+
}, $e({
|
|
1835
1837
|
toolbar: l(({ state: K }) => [
|
|
1836
|
-
|
|
1838
|
+
je(H("div", _a, [
|
|
1837
1839
|
G(c.$slots, "toolbar-filter", {}, void 0, !0),
|
|
1838
|
-
c.$slots["toolbar-button"] ? (_(),
|
|
1840
|
+
c.$slots["toolbar-button"] ? (_(), M("div", Sa, [
|
|
1839
1841
|
G(c.$slots, "toolbar-button", {}, void 0, !0)
|
|
1840
1842
|
])) : z("", !0)
|
|
1841
1843
|
], 512), [
|
|
1842
1844
|
[Ke, s(K)]
|
|
1843
1845
|
])
|
|
1844
1846
|
]),
|
|
1845
|
-
actions: l(({ row: K, rowKey:
|
|
1847
|
+
actions: l(({ row: K, rowKey: W, rowValue: Q }) => [
|
|
1846
1848
|
H("div", {
|
|
1847
1849
|
class: "actions-container",
|
|
1848
1850
|
"data-testid": K.name
|
|
1849
1851
|
}, [
|
|
1850
|
-
v(
|
|
1852
|
+
v(Y, {
|
|
1851
1853
|
"kpop-attributes": { placement: "bottom-end" },
|
|
1852
1854
|
width: e.dropdownMenuWidth
|
|
1853
1855
|
}, {
|
|
1854
1856
|
items: l(() => [
|
|
1855
1857
|
G(c.$slots, "actions", {
|
|
1856
1858
|
row: K,
|
|
1857
|
-
rowKey:
|
|
1859
|
+
rowKey: W,
|
|
1858
1860
|
rowValue: Q
|
|
1859
1861
|
}, void 0, !0)
|
|
1860
1862
|
]),
|
|
@@ -1867,32 +1869,32 @@ const le = "24px", Je = (e, t) => {
|
|
|
1867
1869
|
size: "small"
|
|
1868
1870
|
}, {
|
|
1869
1871
|
default: l(() => [
|
|
1870
|
-
v(b(
|
|
1872
|
+
v(b(ba))
|
|
1871
1873
|
]),
|
|
1872
1874
|
_: 1
|
|
1873
1875
|
})
|
|
1874
1876
|
]),
|
|
1875
1877
|
_: 2
|
|
1876
1878
|
}, 1032, ["width"])
|
|
1877
|
-
], 8,
|
|
1879
|
+
], 8, xa)
|
|
1878
1880
|
]),
|
|
1879
1881
|
_: 2
|
|
1880
1882
|
}, [
|
|
1881
|
-
Fe(e.tableHeaders, (K,
|
|
1882
|
-
name:
|
|
1883
|
+
Fe(e.tableHeaders, (K, W) => ({
|
|
1884
|
+
name: W,
|
|
1883
1885
|
fn: l(({ row: Q, rowKey: f, rowValue: x }) => [
|
|
1884
|
-
v(
|
|
1885
|
-
"key-name": String(
|
|
1886
|
+
v(ka, {
|
|
1887
|
+
"key-name": String(W),
|
|
1886
1888
|
"row-el": d(Q),
|
|
1887
1889
|
tooltip: K.tooltip
|
|
1888
1890
|
}, {
|
|
1889
1891
|
default: l(() => [
|
|
1890
|
-
G(c.$slots,
|
|
1892
|
+
G(c.$slots, W, {
|
|
1891
1893
|
row: Q,
|
|
1892
1894
|
rowKey: f,
|
|
1893
1895
|
rowValue: x
|
|
1894
1896
|
}, () => [
|
|
1895
|
-
|
|
1897
|
+
R(A(x), 1)
|
|
1896
1898
|
], !0)
|
|
1897
1899
|
]),
|
|
1898
1900
|
_: 2
|
|
@@ -1902,7 +1904,7 @@ const le = "24px", Je = (e, t) => {
|
|
|
1902
1904
|
e.query ? void 0 : {
|
|
1903
1905
|
name: "empty-state-action-icon",
|
|
1904
1906
|
fn: l(() => [
|
|
1905
|
-
v(b(
|
|
1907
|
+
v(b(fa))
|
|
1906
1908
|
]),
|
|
1907
1909
|
key: "0"
|
|
1908
1910
|
}
|
|
@@ -1912,13 +1914,13 @@ const le = "24px", Je = (e, t) => {
|
|
|
1912
1914
|
}, 8, ["title", "title-tag"]);
|
|
1913
1915
|
};
|
|
1914
1916
|
}
|
|
1915
|
-
}),
|
|
1917
|
+
}), Ia = /* @__PURE__ */ be(Na, [["__scopeId", "data-v-71b4425a"]]), Aa = {
|
|
1916
1918
|
key: 0,
|
|
1917
1919
|
class: "kong-ui-entity-delete-error"
|
|
1918
|
-
},
|
|
1920
|
+
}, Ta = {
|
|
1919
1921
|
key: 1,
|
|
1920
1922
|
class: "description"
|
|
1921
|
-
},
|
|
1923
|
+
}, Ea = /* @__PURE__ */ X({
|
|
1922
1924
|
__name: "EntityDeleteModal",
|
|
1923
1925
|
props: {
|
|
1924
1926
|
visible: {
|
|
@@ -1963,7 +1965,7 @@ const le = "24px", Je = (e, t) => {
|
|
|
1963
1965
|
n("proceed");
|
|
1964
1966
|
};
|
|
1965
1967
|
return (y, S) => {
|
|
1966
|
-
const u =
|
|
1968
|
+
const u = L("KAlert"), d = L("KPrompt");
|
|
1967
1969
|
return _(), U(d, {
|
|
1968
1970
|
"action-button-appearance": "danger",
|
|
1969
1971
|
"action-button-disabled": e.actionPending,
|
|
@@ -1976,10 +1978,10 @@ const le = "24px", Je = (e, t) => {
|
|
|
1976
1978
|
onProceed: s
|
|
1977
1979
|
}, {
|
|
1978
1980
|
default: l(() => [
|
|
1979
|
-
e.error ? (_(),
|
|
1981
|
+
e.error ? (_(), M("div", Aa, [
|
|
1980
1982
|
v(u, { appearance: "danger" }, {
|
|
1981
1983
|
default: l(() => [
|
|
1982
|
-
|
|
1984
|
+
R(A(e.error), 1)
|
|
1983
1985
|
]),
|
|
1984
1986
|
_: 1
|
|
1985
1987
|
})
|
|
@@ -1988,23 +1990,23 @@ const le = "24px", Je = (e, t) => {
|
|
|
1988
1990
|
class: "message",
|
|
1989
1991
|
keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
1990
1992
|
tag: "p"
|
|
1991
|
-
},
|
|
1993
|
+
}, $e({
|
|
1992
1994
|
entityType: l(() => [
|
|
1993
|
-
|
|
1995
|
+
R(A(a.entityType), 1)
|
|
1994
1996
|
]),
|
|
1995
1997
|
_: 2
|
|
1996
1998
|
}, [
|
|
1997
1999
|
a.entityName ? {
|
|
1998
2000
|
name: "entityName",
|
|
1999
2001
|
fn: l(() => [
|
|
2000
|
-
H("strong", null,
|
|
2002
|
+
H("strong", null, A(a.entityName), 1)
|
|
2001
2003
|
]),
|
|
2002
2004
|
key: "0"
|
|
2003
2005
|
} : void 0
|
|
2004
2006
|
]), 1032, ["keypath"]),
|
|
2005
|
-
a.description || y.$slots.description ? (_(),
|
|
2007
|
+
a.description || y.$slots.description ? (_(), M("div", Ta, [
|
|
2006
2008
|
G(y.$slots, "description", {}, () => [
|
|
2007
|
-
H("p", null,
|
|
2009
|
+
H("p", null, A(a.description), 1)
|
|
2008
2010
|
], !0)
|
|
2009
2011
|
])) : z("", !0)
|
|
2010
2012
|
]),
|
|
@@ -2012,7 +2014,7 @@ const le = "24px", Je = (e, t) => {
|
|
|
2012
2014
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
2013
2015
|
};
|
|
2014
2016
|
}
|
|
2015
|
-
}),
|
|
2017
|
+
}), Oa = /* @__PURE__ */ be(Ea, [["__scopeId", "data-v-4361d622"]]), de = /* @__PURE__ */ X({
|
|
2016
2018
|
__name: "PermissionsWrapper",
|
|
2017
2019
|
props: {
|
|
2018
2020
|
/**
|
|
@@ -2042,11 +2044,11 @@ const le = "24px", Je = (e, t) => {
|
|
|
2042
2044
|
isAllowed: r.value
|
|
2043
2045
|
}) : z("", !0);
|
|
2044
2046
|
}
|
|
2045
|
-
}),
|
|
2047
|
+
}), $a = [];
|
|
2046
2048
|
for (let e = 0; e < 256; ++e)
|
|
2047
|
-
|
|
2049
|
+
$a.push((e + 256).toString(16).slice(1));
|
|
2048
2050
|
typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
2049
|
-
const { useAxios: ja, useDeleteUrlBuilder:
|
|
2051
|
+
const { useAxios: ja, useDeleteUrlBuilder: Ka, useErrors: Va, useExternalLinkCreator: Ha, useFetchUrlBuilder: Ja, useFetcher: Fa, useDebouncedFilter: Ya, useStringHelpers: Wa, useHelpers: Za, useGatewayFeatureSupported: Ga, useTruncationDetector: Xa, useValidators: Qa } = ve, qa = { class: "kong-ui-entities-consumer-credentials-list" }, Ma = { key: 1 }, Pa = /* @__PURE__ */ X({
|
|
2050
2052
|
__name: "ConsumerCredentialList",
|
|
2051
2053
|
props: {
|
|
2052
2054
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2087,7 +2089,7 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2087
2089
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
2088
2090
|
setup(e, { emit: t }) {
|
|
2089
2091
|
var Q;
|
|
2090
|
-
const r = t, a = e, { i18n: { t: n, formatUnixTimeStamp: o } } =
|
|
2092
|
+
const r = t, a = e, { i18n: { t: n, formatUnixTimeStamp: o } } = yt.useI18n(), { axiosInstance: i } = ja((Q = a.config) == null ? void 0 : Q.axiosRequestConfig), s = C(1), y = {
|
|
2091
2093
|
acls: {
|
|
2092
2094
|
group: { label: n("credentials.list.table_headers.acls.group") },
|
|
2093
2095
|
created_at: { label: n("credentials.list.table_headers.acls.created_at") },
|
|
@@ -2129,13 +2131,13 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2129
2131
|
tags: { label: n("credentials.list.table_headers.jwt.tags") }
|
|
2130
2132
|
}
|
|
2131
2133
|
}, S = k(() => y[a.config.plugin]), u = k(() => {
|
|
2132
|
-
let f = `${a.config.apiBaseUrl}${
|
|
2134
|
+
let f = `${a.config.apiBaseUrl}${gt.list[a.config.app]}`;
|
|
2133
2135
|
return a.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, a.config.controlPlaneId || "").replace(/{consumerId}/gi, a.config.consumerId || "").replace(/{plugin}/gi, a.config.plugin || "") : a.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, a.config.workspace ? `/${a.config.workspace}` : "").replace(/{consumerId}/gi, a.config.consumerId || "").replace(/{plugin}/gi, a.config.plugin || "")), f;
|
|
2134
|
-
}), { fetcher: d, fetcherState: h } =
|
|
2136
|
+
}), { fetcher: d, fetcherState: h } = Fa(a.config, u), w = () => {
|
|
2135
2137
|
s.value++;
|
|
2136
|
-
},
|
|
2137
|
-
const
|
|
2138
|
-
if (!V(
|
|
2138
|
+
}, I = C(null), $ = (f, x, V) => {
|
|
2139
|
+
const P = x ? f[x] : JSON.stringify(f);
|
|
2140
|
+
if (!V(P)) {
|
|
2139
2141
|
E(f, x);
|
|
2140
2142
|
return;
|
|
2141
2143
|
}
|
|
@@ -2152,55 +2154,55 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2152
2154
|
field: x,
|
|
2153
2155
|
message: n("credentials.error.copy")
|
|
2154
2156
|
});
|
|
2155
|
-
},
|
|
2157
|
+
}, q = (f) => ({
|
|
2156
2158
|
label: n("credentials.actions.edit"),
|
|
2157
2159
|
to: a.config.getEditRoute(f)
|
|
2158
|
-
}), g = C(void 0),
|
|
2159
|
-
g.value = f,
|
|
2160
|
+
}), g = C(void 0), B = C(!1), J = C(!1), c = C(""), p = Ka(a.config, u.value), T = k(() => Pe[a.config.plugin]), Y = (f) => {
|
|
2161
|
+
g.value = f, B.value = !0;
|
|
2160
2162
|
}, O = () => {
|
|
2161
|
-
|
|
2163
|
+
B.value = !1;
|
|
2162
2164
|
}, D = async () => {
|
|
2163
2165
|
var f, x, V;
|
|
2164
2166
|
if ((f = g.value) != null && f.id) {
|
|
2165
2167
|
J.value = !0;
|
|
2166
2168
|
try {
|
|
2167
|
-
await i.delete(p(g.value.id)), J.value = !1,
|
|
2168
|
-
} catch (
|
|
2169
|
-
c.value = ((V = (x =
|
|
2169
|
+
await i.delete(p(g.value.id)), J.value = !1, B.value = !1, s.value++, r("delete:success", g.value);
|
|
2170
|
+
} catch (P) {
|
|
2171
|
+
c.value = ((V = (x = P.response) == null ? void 0 : x.data) == null ? void 0 : V.message) || P.message || n("credentials.error.delete"), r("error", P);
|
|
2170
2172
|
} finally {
|
|
2171
2173
|
J.value = !1;
|
|
2172
2174
|
}
|
|
2173
2175
|
}
|
|
2174
2176
|
}, K = C(!1);
|
|
2175
2177
|
se(h, (f) => {
|
|
2176
|
-
var x, V,
|
|
2178
|
+
var x, V, P, oe;
|
|
2177
2179
|
if (Array.isArray((x = f == null ? void 0 : f.response) == null ? void 0 : x.data) && (K.value = f.response.data.length > 0), f.status === ee.Error) {
|
|
2178
|
-
|
|
2180
|
+
I.value = {
|
|
2179
2181
|
title: n("credentials.error.general")
|
|
2180
|
-
}, (oe = (
|
|
2182
|
+
}, (oe = (P = (V = f.error) == null ? void 0 : V.response) == null ? void 0 : P.data) != null && oe.message && (I.value.message = f.error.response.data.message), r("error", f.error);
|
|
2181
2183
|
return;
|
|
2182
2184
|
}
|
|
2183
|
-
|
|
2185
|
+
I.value = null;
|
|
2184
2186
|
});
|
|
2185
|
-
const
|
|
2187
|
+
const W = C({
|
|
2186
2188
|
ctaPath: a.config.createRoute,
|
|
2187
2189
|
ctaText: void 0,
|
|
2188
2190
|
message: "",
|
|
2189
2191
|
title: n("credentials.title")
|
|
2190
2192
|
});
|
|
2191
|
-
return
|
|
2192
|
-
await a.canCreate() && (
|
|
2193
|
+
return et(async () => {
|
|
2194
|
+
await a.canCreate() && (W.value.title = n(`credentials.list.empty_state.${a.config.plugin}.title`), W.value.ctaText = n(`credentials.list.empty_state.${a.config.plugin}.cta`));
|
|
2193
2195
|
}), (f, x) => {
|
|
2194
|
-
const V =
|
|
2195
|
-
return _(),
|
|
2196
|
-
v(b(
|
|
2196
|
+
const V = L("KButton"), P = L("KCopy"), oe = L("KBadge"), We = L("KTruncate"), Z = L("KDropdownItem"), re = L("KClipboardProvider");
|
|
2197
|
+
return _(), M("div", qa, [
|
|
2198
|
+
v(b(Ia), {
|
|
2197
2199
|
"cache-identifier": e.cacheIdentifier,
|
|
2198
2200
|
"disable-pagination-page-jump": "",
|
|
2199
2201
|
"disable-row-click": "",
|
|
2200
2202
|
"disable-sorting": "",
|
|
2201
|
-
"empty-state-options":
|
|
2203
|
+
"empty-state-options": W.value,
|
|
2202
2204
|
"enable-entity-actions": "",
|
|
2203
|
-
"error-message":
|
|
2205
|
+
"error-message": I.value,
|
|
2204
2206
|
fetcher: b(d),
|
|
2205
2207
|
"fetcher-cache-key": s.value,
|
|
2206
2208
|
"pagination-type": "offset",
|
|
@@ -2210,7 +2212,7 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2210
2212
|
onSort: w
|
|
2211
2213
|
}, {
|
|
2212
2214
|
"toolbar-button": l(() => [
|
|
2213
|
-
(_(), U(
|
|
2215
|
+
(_(), U(tt, {
|
|
2214
2216
|
disabled: !e.useActionOutside,
|
|
2215
2217
|
to: "#kong-ui-app-page-header-action-button"
|
|
2216
2218
|
}, [
|
|
@@ -2218,15 +2220,15 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2218
2220
|
"auth-function": () => e.canCreate()
|
|
2219
2221
|
}, {
|
|
2220
2222
|
default: l(() => [
|
|
2221
|
-
|
|
2223
|
+
je(v(V, {
|
|
2222
2224
|
appearance: "primary",
|
|
2223
2225
|
"data-testid": "toolbar-add-credential",
|
|
2224
2226
|
size: "large",
|
|
2225
2227
|
to: e.config.createRoute
|
|
2226
2228
|
}, {
|
|
2227
2229
|
default: l(() => [
|
|
2228
|
-
v(b(
|
|
2229
|
-
|
|
2230
|
+
v(b(ut)),
|
|
2231
|
+
R(" " + A(b(n)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
|
|
2230
2232
|
]),
|
|
2231
2233
|
_: 1
|
|
2232
2234
|
}, 8, ["to"]), [
|
|
@@ -2238,71 +2240,71 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2238
2240
|
], 8, ["disabled"]))
|
|
2239
2241
|
]),
|
|
2240
2242
|
group: l(({ rowValue: m }) => [
|
|
2241
|
-
H("b", null,
|
|
2243
|
+
H("b", null, A(m ?? "-"), 1)
|
|
2242
2244
|
]),
|
|
2243
2245
|
name: l(({ rowValue: m }) => [
|
|
2244
|
-
H("b", null,
|
|
2246
|
+
H("b", null, A(m ?? "-"), 1)
|
|
2245
2247
|
]),
|
|
2246
2248
|
username: l(({ rowValue: m }) => [
|
|
2247
|
-
H("span", null,
|
|
2249
|
+
H("span", null, A(m ?? "-"), 1)
|
|
2248
2250
|
]),
|
|
2249
2251
|
password: l(({ rowValue: m }) => [
|
|
2250
|
-
v(
|
|
2252
|
+
v(P, {
|
|
2251
2253
|
format: "redacted",
|
|
2252
2254
|
text: m,
|
|
2253
2255
|
truncate: ""
|
|
2254
2256
|
}, null, 8, ["text"])
|
|
2255
2257
|
]),
|
|
2256
2258
|
key: l(({ rowValue: m }) => [
|
|
2257
|
-
v(
|
|
2259
|
+
v(P, {
|
|
2258
2260
|
format: "redacted",
|
|
2259
2261
|
text: m,
|
|
2260
2262
|
truncate: ""
|
|
2261
2263
|
}, null, 8, ["text"])
|
|
2262
2264
|
]),
|
|
2263
2265
|
client_secret: l(({ rowValue: m }) => [
|
|
2264
|
-
v(
|
|
2266
|
+
v(P, {
|
|
2265
2267
|
format: "redacted",
|
|
2266
2268
|
text: m,
|
|
2267
2269
|
truncate: ""
|
|
2268
2270
|
}, null, 8, ["text"])
|
|
2269
2271
|
]),
|
|
2270
2272
|
secret: l(({ rowValue: m }) => [
|
|
2271
|
-
v(
|
|
2273
|
+
v(P, {
|
|
2272
2274
|
format: "redacted",
|
|
2273
2275
|
text: m,
|
|
2274
2276
|
truncate: ""
|
|
2275
2277
|
}, null, 8, ["text"])
|
|
2276
2278
|
]),
|
|
2277
2279
|
created_at: l(({ rowValue: m }) => [
|
|
2278
|
-
|
|
2280
|
+
R(A(b(o)(m)), 1)
|
|
2279
2281
|
]),
|
|
2280
2282
|
tags: l(({ rowValue: m }) => [
|
|
2281
2283
|
(m == null ? void 0 : m.length) > 0 ? (_(), U(We, { key: 0 }, {
|
|
2282
2284
|
default: l(() => [
|
|
2283
|
-
(_(!0),
|
|
2285
|
+
(_(!0), M(rt, null, Fe(m, (F) => (_(), U(oe, {
|
|
2284
2286
|
key: F,
|
|
2285
|
-
onClick: x[0] || (x[0] =
|
|
2287
|
+
onClick: x[0] || (x[0] = at(() => {
|
|
2286
2288
|
}, ["stop"]))
|
|
2287
2289
|
}, {
|
|
2288
2290
|
default: l(() => [
|
|
2289
|
-
|
|
2291
|
+
R(A(F), 1)
|
|
2290
2292
|
]),
|
|
2291
2293
|
_: 2
|
|
2292
2294
|
}, 1024))), 128))
|
|
2293
2295
|
]),
|
|
2294
2296
|
_: 2
|
|
2295
|
-
}, 1024)) : (_(),
|
|
2297
|
+
}, 1024)) : (_(), M("span", Ma, "-"))
|
|
2296
2298
|
]),
|
|
2297
2299
|
actions: l(({ row: m }) => [
|
|
2298
2300
|
v(re, null, {
|
|
2299
2301
|
default: l(({ copyToClipboard: F }) => [
|
|
2300
2302
|
v(Z, {
|
|
2301
2303
|
"data-testid": "action-entity-copy-id",
|
|
2302
|
-
onClick: (ne) =>
|
|
2304
|
+
onClick: (ne) => $(m, "id", F)
|
|
2303
2305
|
}, {
|
|
2304
2306
|
default: l(() => [
|
|
2305
|
-
|
|
2307
|
+
R(A(b(n)("credentials.actions.copy_id")), 1)
|
|
2306
2308
|
]),
|
|
2307
2309
|
_: 2
|
|
2308
2310
|
}, 1032, ["onClick"])
|
|
@@ -2313,10 +2315,10 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2313
2315
|
default: l(({ copyToClipboard: F }) => [
|
|
2314
2316
|
v(Z, {
|
|
2315
2317
|
"data-testid": "action-entity-copy-credential",
|
|
2316
|
-
onClick: (ne) =>
|
|
2318
|
+
onClick: (ne) => $(m, "password", F)
|
|
2317
2319
|
}, {
|
|
2318
2320
|
default: l(() => [
|
|
2319
|
-
|
|
2321
|
+
R(A(b(n)("credentials.actions.copy_credential")), 1)
|
|
2320
2322
|
]),
|
|
2321
2323
|
_: 2
|
|
2322
2324
|
}, 1032, ["onClick"])
|
|
@@ -2327,10 +2329,10 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2327
2329
|
default: l(({ copyToClipboard: F }) => [
|
|
2328
2330
|
v(Z, {
|
|
2329
2331
|
"data-testid": "action-entity-copy-key",
|
|
2330
|
-
onClick: (ne) =>
|
|
2332
|
+
onClick: (ne) => $(m, "key", F)
|
|
2331
2333
|
}, {
|
|
2332
2334
|
default: l(() => [
|
|
2333
|
-
|
|
2335
|
+
R(A(b(n)("credentials.actions.copy_key")), 1)
|
|
2334
2336
|
]),
|
|
2335
2337
|
_: 2
|
|
2336
2338
|
}, 1032, ["onClick"])
|
|
@@ -2341,10 +2343,10 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2341
2343
|
default: l(({ copyToClipboard: F }) => [
|
|
2342
2344
|
v(Z, {
|
|
2343
2345
|
"data-testid": "action-entity-copy-secret",
|
|
2344
|
-
onClick: (ne) =>
|
|
2346
|
+
onClick: (ne) => $(m, "client_secret", F)
|
|
2345
2347
|
}, {
|
|
2346
2348
|
default: l(() => [
|
|
2347
|
-
|
|
2349
|
+
R(A(b(n)("credentials.actions.copy_secret")), 1)
|
|
2348
2350
|
]),
|
|
2349
2351
|
_: 2
|
|
2350
2352
|
}, 1032, ["onClick"])
|
|
@@ -2355,10 +2357,10 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2355
2357
|
default: l(({ copyToClipboard: F }) => [
|
|
2356
2358
|
v(Z, {
|
|
2357
2359
|
"data-testid": "action-entity-copy-secret",
|
|
2358
|
-
onClick: (ne) =>
|
|
2360
|
+
onClick: (ne) => $(m, "secret", F)
|
|
2359
2361
|
}, {
|
|
2360
2362
|
default: l(() => [
|
|
2361
|
-
|
|
2363
|
+
R(A(b(n)("credentials.actions.copy_secret")), 1)
|
|
2362
2364
|
]),
|
|
2363
2365
|
_: 2
|
|
2364
2366
|
}, 1032, ["onClick"])
|
|
@@ -2369,10 +2371,10 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2369
2371
|
default: l(({ copyToClipboard: F }) => [
|
|
2370
2372
|
v(Z, {
|
|
2371
2373
|
"data-testid": "action-entity-copy-json",
|
|
2372
|
-
onClick: (ne) =>
|
|
2374
|
+
onClick: (ne) => $(m, void 0, F)
|
|
2373
2375
|
}, {
|
|
2374
2376
|
default: l(() => [
|
|
2375
|
-
|
|
2377
|
+
R(A(b(n)("credentials.actions.copy_json")), 1)
|
|
2376
2378
|
]),
|
|
2377
2379
|
_: 2
|
|
2378
2380
|
}, 1032, ["onClick"])
|
|
@@ -2386,7 +2388,7 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2386
2388
|
v(Z, {
|
|
2387
2389
|
"data-testid": "action-entity-edit",
|
|
2388
2390
|
"has-divider": "",
|
|
2389
|
-
item:
|
|
2391
|
+
item: q(m.id)
|
|
2390
2392
|
}, null, 8, ["item"])
|
|
2391
2393
|
]),
|
|
2392
2394
|
_: 2
|
|
@@ -2399,10 +2401,10 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2399
2401
|
danger: "",
|
|
2400
2402
|
"data-testid": "action-entity-delete",
|
|
2401
2403
|
"has-divider": "",
|
|
2402
|
-
onClick: (F) =>
|
|
2404
|
+
onClick: (F) => Y(m)
|
|
2403
2405
|
}, {
|
|
2404
2406
|
default: l(() => [
|
|
2405
|
-
|
|
2407
|
+
R(A(b(n)("credentials.actions.delete")), 1)
|
|
2406
2408
|
]),
|
|
2407
2409
|
_: 2
|
|
2408
2410
|
}, 1032, ["onClick"])
|
|
@@ -2412,25 +2414,25 @@ const { useAxios: ja, useDeleteUrlBuilder: $a, useErrors: za, useExternalLinkCre
|
|
|
2412
2414
|
]),
|
|
2413
2415
|
_: 1
|
|
2414
2416
|
}, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers", "use-action-outside"]),
|
|
2415
|
-
v(b(
|
|
2417
|
+
v(b(Oa), {
|
|
2416
2418
|
"action-pending": J.value,
|
|
2417
2419
|
description: b(n)("credentials.delete.description"),
|
|
2418
2420
|
"entity-type": T.value,
|
|
2419
2421
|
error: c.value,
|
|
2420
2422
|
title: b(n)(`credentials.delete.${e.config.plugin}.title`),
|
|
2421
|
-
visible:
|
|
2423
|
+
visible: B.value,
|
|
2422
2424
|
onCancel: O,
|
|
2423
2425
|
onProceed: D
|
|
2424
2426
|
}, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"])
|
|
2425
2427
|
]);
|
|
2426
2428
|
};
|
|
2427
2429
|
}
|
|
2428
|
-
}),
|
|
2430
|
+
}), Ra = (e, t) => {
|
|
2429
2431
|
const r = e.__vccOpts || e;
|
|
2430
2432
|
for (const [a, n] of t)
|
|
2431
2433
|
r[a] = n;
|
|
2432
2434
|
return r;
|
|
2433
|
-
},
|
|
2435
|
+
}, en = /* @__PURE__ */ Ra(Pa, [["__scopeId", "data-v-4450bd28"]]);
|
|
2434
2436
|
export {
|
|
2435
|
-
|
|
2437
|
+
en as ConsumerCredentialList
|
|
2436
2438
|
};
|