@kong-ui-public/entities-consumer-credentials 1.1.64 → 2.0.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ae, ref as b, computed as I, watch as ne, renderSlot as z, createCommentVNode as H, unref as v, resolveComponent as U, openBlock as j, createBlock as W, withCtx as s, createVNode as m, createSlots as Ce, withDirectives as Ue, createElementVNode as Z, createElementBlock as J, vShow as Le, renderList as _e, createTextVNode as R, toDisplayString as N, onMounted as Re, onUnmounted as Be, onBeforeMount as Me, Fragment as qe, withModifiers as De } from "vue";
|
|
2
2
|
import { createI18n as Se, i18nTComponent as Te } from "@kong-ui-public/i18n";
|
|
3
|
-
import
|
|
4
|
-
import { ToastManager as
|
|
3
|
+
import We from "axios";
|
|
4
|
+
import { ToastManager as ze } from "@kong/kongponents";
|
|
5
5
|
import "vue-router";
|
|
6
6
|
const He = {
|
|
7
7
|
title: "Consumer Credentials",
|
|
@@ -163,10 +163,10 @@ const Ye = {
|
|
|
163
163
|
kongManager: "/{workspace}/consumers/{consumerId}/{plugin}"
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
var
|
|
167
|
-
function
|
|
166
|
+
var Ae = /* @__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))(Ae || {}), Y = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Y || {});
|
|
167
|
+
function oe(e = {}) {
|
|
168
168
|
return {
|
|
169
|
-
axiosInstance:
|
|
169
|
+
axiosInstance: We.create({
|
|
170
170
|
withCredentials: !0,
|
|
171
171
|
timeout: 3e4,
|
|
172
172
|
...e
|
|
@@ -175,46 +175,46 @@ function se(e = {}) {
|
|
|
175
175
|
}
|
|
176
176
|
function Ze() {
|
|
177
177
|
return {
|
|
178
|
-
debounce: (e,
|
|
178
|
+
debounce: (e, r) => {
|
|
179
179
|
let t;
|
|
180
|
-
return (...
|
|
180
|
+
return (...a) => {
|
|
181
181
|
clearTimeout(t), t = window == null ? void 0 : window.setTimeout(() => {
|
|
182
|
-
e(...
|
|
183
|
-
},
|
|
182
|
+
e(...a);
|
|
183
|
+
}, r);
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
const ie = "khcp-user-table-preferences",
|
|
188
|
+
const ie = "khcp-user-table-preferences", Xe = {
|
|
189
189
|
pageSize: 30,
|
|
190
190
|
sortColumnKey: void 0,
|
|
191
191
|
sortColumnOrder: void 0
|
|
192
192
|
};
|
|
193
|
-
function
|
|
193
|
+
function Qe() {
|
|
194
194
|
const e = (t) => {
|
|
195
195
|
if (typeof t == "string")
|
|
196
196
|
try {
|
|
197
197
|
return JSON.parse(t);
|
|
198
|
-
} catch (
|
|
199
|
-
console.error("useTablePreferences(tryParseJson)",
|
|
198
|
+
} catch (a) {
|
|
199
|
+
console.error("useTablePreferences(tryParseJson)", a);
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
|
-
},
|
|
202
|
+
}, r = () => {
|
|
203
203
|
const t = e(localStorage.getItem(ie));
|
|
204
204
|
return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
|
|
205
205
|
};
|
|
206
206
|
return {
|
|
207
|
-
setTablePreferences: (t,
|
|
207
|
+
setTablePreferences: (t, a) => {
|
|
208
208
|
try {
|
|
209
|
-
const n =
|
|
210
|
-
n.set(t,
|
|
209
|
+
const n = r();
|
|
210
|
+
n.set(t, a), localStorage.setItem(ie, JSON.stringify(Object.fromEntries(n.entries())));
|
|
211
211
|
} catch (n) {
|
|
212
212
|
console.error("useTablePreferences(setTablePreferences)", n);
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
getTablePreferences: (t) => {
|
|
216
|
-
const
|
|
217
|
-
return (
|
|
216
|
+
const a = r();
|
|
217
|
+
return (a == null ? void 0 : a.get(t)) || void 0 || Xe;
|
|
218
218
|
},
|
|
219
219
|
deleteAllTablePreferences: () => {
|
|
220
220
|
localStorage.removeItem(ie);
|
|
@@ -231,7 +231,7 @@ const et = {
|
|
|
231
231
|
}, tt = {
|
|
232
232
|
message: "Are you sure you want to delete this {entityType}?",
|
|
233
233
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
234
|
-
},
|
|
234
|
+
}, rt = {
|
|
235
235
|
actions: {
|
|
236
236
|
save: "Save",
|
|
237
237
|
cancel: "Cancel",
|
|
@@ -240,7 +240,7 @@ const et = {
|
|
|
240
240
|
errors: {
|
|
241
241
|
edit: "The entity could not be edited at this time."
|
|
242
242
|
}
|
|
243
|
-
},
|
|
243
|
+
}, at = {
|
|
244
244
|
emptyState: {
|
|
245
245
|
noSearchResultsTitle: "No results found",
|
|
246
246
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
@@ -294,10 +294,10 @@ const et = {
|
|
|
294
294
|
fetch: "Could not fetch available items",
|
|
295
295
|
invalid: "Please select a valid value"
|
|
296
296
|
}
|
|
297
|
-
},
|
|
297
|
+
}, st = {
|
|
298
298
|
unexpected: "An unexpected error has occurred",
|
|
299
299
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
300
|
-
},
|
|
300
|
+
}, ot = {
|
|
301
301
|
enable: {
|
|
302
302
|
title: "Enable {entityType}",
|
|
303
303
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -311,13 +311,13 @@ const et = {
|
|
|
311
311
|
}, ct = {
|
|
312
312
|
global: et,
|
|
313
313
|
deleteModal: tt,
|
|
314
|
-
baseForm:
|
|
315
|
-
baseTable:
|
|
314
|
+
baseForm: rt,
|
|
315
|
+
baseTable: at,
|
|
316
316
|
baseConfigCard: nt,
|
|
317
317
|
filter: it,
|
|
318
318
|
debouncedFilter: lt,
|
|
319
|
-
errors:
|
|
320
|
-
toggleModal:
|
|
319
|
+
errors: st,
|
|
320
|
+
toggleModal: ot
|
|
321
321
|
};
|
|
322
322
|
function ce() {
|
|
323
323
|
const e = Se("en-us", ct);
|
|
@@ -327,13 +327,13 @@ function ce() {
|
|
|
327
327
|
// Translation component <i18n-t>
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
const e = (t,
|
|
332
|
-
if (t.length !==
|
|
330
|
+
function Ne() {
|
|
331
|
+
const e = (t, a) => (a == null ? void 0 : a[t]) ?? void 0, r = (t, a) => {
|
|
332
|
+
if (t.length !== a.length)
|
|
333
333
|
return !1;
|
|
334
|
-
const n = /* @__PURE__ */ new Set([...t, ...
|
|
334
|
+
const n = /* @__PURE__ */ new Set([...t, ...a]);
|
|
335
335
|
for (const i of n) {
|
|
336
|
-
const l = t.filter((d) => d === i).length, c =
|
|
336
|
+
const l = t.filter((d) => d === i).length, c = a.filter((d) => d === i).length;
|
|
337
337
|
if (l !== c)
|
|
338
338
|
return !1;
|
|
339
339
|
}
|
|
@@ -341,16 +341,16 @@ function Ie() {
|
|
|
341
341
|
};
|
|
342
342
|
return {
|
|
343
343
|
getPropValue: e,
|
|
344
|
-
objectsAreEqual: (t,
|
|
344
|
+
objectsAreEqual: (t, a, n) => {
|
|
345
345
|
if (n) {
|
|
346
|
-
if (Object.keys(t).length === Object.keys(
|
|
346
|
+
if (Object.keys(t).length === Object.keys(a).length)
|
|
347
347
|
for (const i in t)
|
|
348
|
-
if (Array.isArray(t[i]) && Array.isArray(
|
|
349
|
-
if (
|
|
348
|
+
if (Array.isArray(t[i]) && Array.isArray(a[i])) {
|
|
349
|
+
if (r(t[i], a[i]))
|
|
350
350
|
continue;
|
|
351
351
|
return !1;
|
|
352
352
|
} else {
|
|
353
|
-
if (t[i] ===
|
|
353
|
+
if (t[i] === a[i])
|
|
354
354
|
continue;
|
|
355
355
|
return !1;
|
|
356
356
|
}
|
|
@@ -359,63 +359,63 @@ function Ie() {
|
|
|
359
359
|
return !0;
|
|
360
360
|
}
|
|
361
361
|
try {
|
|
362
|
-
return JSON.stringify(t) === JSON.stringify(
|
|
362
|
+
return JSON.stringify(t) === JSON.stringify(a);
|
|
363
363
|
} catch {
|
|
364
364
|
return !1;
|
|
365
365
|
}
|
|
366
366
|
},
|
|
367
|
-
sortAlpha: (t) => (
|
|
368
|
-
let i =
|
|
369
|
-
return Array.isArray(
|
|
367
|
+
sortAlpha: (t) => (a, n) => {
|
|
368
|
+
let i = a[t] === void 0 || a[t] === null ? "" : a[t], l = n[t] === void 0 || n[t] === null ? "" : n[t];
|
|
369
|
+
return Array.isArray(a[t]) && (i = a[t][0]), Array.isArray(n[t]) && (l = n[t][0]), i.localeCompare(l);
|
|
370
370
|
},
|
|
371
371
|
isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function ut(e,
|
|
374
|
+
function ut(e, r, t, a = {
|
|
375
375
|
fetchedItemsKey: "data",
|
|
376
376
|
searchKeys: ["id"]
|
|
377
377
|
}) {
|
|
378
378
|
t || (t = "100");
|
|
379
|
-
const { axiosInstance: n } =
|
|
379
|
+
const { axiosInstance: n } = oe({
|
|
380
380
|
headers: e.requestHeaders
|
|
381
|
-
}), { i18n: { t: i } } = ce(), { debounce: l } = Ze(), c = l(async (
|
|
382
|
-
await p(
|
|
383
|
-
}, 200), d =
|
|
381
|
+
}), { i18n: { t: i } } = ce(), { debounce: l } = Ze(), c = l(async (o) => {
|
|
382
|
+
await p(o);
|
|
383
|
+
}, 200), d = b(!1), u = b(""), k = b(""), h = b([]), T = b([]), w = b(void 0), P = v(r);
|
|
384
384
|
let y = `${e.apiBaseUrl}${P}`;
|
|
385
385
|
e.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
386
|
-
const { isValidUuid:
|
|
386
|
+
const { isValidUuid: A } = Ne(), F = async () => {
|
|
387
387
|
try {
|
|
388
388
|
d.value = !0;
|
|
389
|
-
const { data:
|
|
390
|
-
|
|
389
|
+
const { data: o } = await n.get(`${y}?size=${t}`);
|
|
390
|
+
o != null && o.next || (w.value = a.fetchedItemsKey in o ? o[a.fetchedItemsKey] : []), T.value = a.fetchedItemsKey in o ? o[a.fetchedItemsKey] : [], h.value = T.value;
|
|
391
391
|
} catch {
|
|
392
392
|
h.value = [], u.value = i("debouncedFilter.errors.fetch");
|
|
393
393
|
} finally {
|
|
394
394
|
d.value = !1;
|
|
395
395
|
}
|
|
396
|
-
},
|
|
397
|
-
var
|
|
398
|
-
if (
|
|
399
|
-
if (
|
|
396
|
+
}, X = b(""), p = async (o) => {
|
|
397
|
+
var B, V, Q;
|
|
398
|
+
if (X.value !== o)
|
|
399
|
+
if (X.value = o || "", w.value === void 0)
|
|
400
400
|
try {
|
|
401
401
|
if (d.value = !0, u.value = "", k.value = "", e.app === "konnect") {
|
|
402
402
|
let x = y + "";
|
|
403
|
-
|
|
403
|
+
o && (x += `/${o}`);
|
|
404
404
|
const { data: E } = await n.get(`${x}?size=${t}`);
|
|
405
|
-
|
|
406
|
-
} else if (
|
|
405
|
+
a.fetchedItemsKey in E ? h.value = E[a.fetchedItemsKey] : E != null && E.id ? h.value = [E] : h.value = [];
|
|
406
|
+
} else if (o) {
|
|
407
407
|
const x = [];
|
|
408
|
-
|
|
409
|
-
const { data: _ } = await n.get(`${y}/${
|
|
410
|
-
return [_[
|
|
408
|
+
A(o) && a.searchKeys.includes("id") ? x.push((async () => {
|
|
409
|
+
const { data: _ } = await n.get(`${y}/${o}`);
|
|
410
|
+
return [_[a.fetchedItemsKey] ?? _];
|
|
411
411
|
})()) : x.push(
|
|
412
|
-
...
|
|
413
|
-
const { data: O } = await n.get(`${y}?${_}=${
|
|
414
|
-
return O[
|
|
412
|
+
...a.searchKeys.filter((_) => _ !== "id").map(async (_) => {
|
|
413
|
+
const { data: O } = await n.get(`${y}?${_}=${o}`);
|
|
414
|
+
return O[a.fetchedItemsKey];
|
|
415
415
|
})
|
|
416
416
|
);
|
|
417
417
|
const E = await Promise.all(x), $ = /* @__PURE__ */ new Set();
|
|
418
|
-
h.value = [], (
|
|
418
|
+
h.value = [], (B = E == null ? void 0 : E.forEach) == null || B.call(E, (_) => {
|
|
419
419
|
var O;
|
|
420
420
|
(O = _ == null ? void 0 : _.forEach) == null || O.call(_, (f) => {
|
|
421
421
|
$.has(f.id) || ($.add(f.id), h.value.push(f));
|
|
@@ -429,12 +429,12 @@ function ut(e, a, t, r = {
|
|
|
429
429
|
d.value = !1;
|
|
430
430
|
}
|
|
431
431
|
else
|
|
432
|
-
d.value = !0, k.value = "",
|
|
432
|
+
d.value = !0, k.value = "", o ? (h.value = (Q = w.value) == null ? void 0 : Q.filter((x) => {
|
|
433
433
|
var E;
|
|
434
434
|
let $ = !1;
|
|
435
|
-
for (const _ of
|
|
435
|
+
for (const _ of a.searchKeys) {
|
|
436
436
|
const O = typeof x[_] == "string" ? (E = x[_]) == null ? void 0 : E.toLowerCase() : x[_];
|
|
437
|
-
O != null && O.includes(
|
|
437
|
+
O != null && O.includes(o.toLowerCase()) && ($ = !0);
|
|
438
438
|
}
|
|
439
439
|
return $;
|
|
440
440
|
}), (!h.value || !h.value.length) && (k.value = i("debouncedFilter.errors.invalid"))) : h.value = w.value, d.value = !1;
|
|
@@ -449,56 +449,56 @@ function ut(e, a, t, r = {
|
|
|
449
449
|
debouncedQueryChange: c
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
|
-
function dt(e,
|
|
453
|
-
const t =
|
|
452
|
+
function dt(e, r) {
|
|
453
|
+
const t = v(r), a = I(
|
|
454
454
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
455
455
|
);
|
|
456
|
-
return
|
|
456
|
+
return a.value.search = "", (n) => `${a.value.href}/${n}`;
|
|
457
457
|
}
|
|
458
458
|
function pt() {
|
|
459
459
|
const { i18n: { t: e } } = ce();
|
|
460
460
|
return {
|
|
461
|
-
getMessageFromError: (
|
|
462
|
-
var t,
|
|
463
|
-
if (!
|
|
461
|
+
getMessageFromError: (r) => {
|
|
462
|
+
var t, a, n;
|
|
463
|
+
if (!r)
|
|
464
464
|
return e("errors.unexpected");
|
|
465
|
-
if ((t =
|
|
466
|
-
if (
|
|
467
|
-
return
|
|
468
|
-
if ((
|
|
469
|
-
return
|
|
465
|
+
if ((t = r == null ? void 0 : r.response) != null && t.data) {
|
|
466
|
+
if (r.response.data.detail)
|
|
467
|
+
return r.response.data.detail;
|
|
468
|
+
if ((a = r.response.data.details) != null && a.length)
|
|
469
|
+
return r.response.data.details.map((i) => {
|
|
470
470
|
let l = e("errors.unexpected");
|
|
471
471
|
return i.messages && typeof i.messages == "object" && i.messages.length && (l = i.messages.join(", ")), i.field ? `${i.field} - ${l}` : l;
|
|
472
472
|
}).join("; ");
|
|
473
|
-
if (
|
|
474
|
-
const { message: i } =
|
|
473
|
+
if (r.response.data.message) {
|
|
474
|
+
const { message: i } = r.response.data;
|
|
475
475
|
return Array.isArray(i) ? (n = i[0]) != null && n.constraints ? Object.values(i[0].constraints)[0] : i[0] : i;
|
|
476
476
|
}
|
|
477
|
-
if (typeof
|
|
478
|
-
return
|
|
479
|
-
if (typeof
|
|
480
|
-
return Object.keys(
|
|
477
|
+
if (typeof r.response.data == "string")
|
|
478
|
+
return r.response.data;
|
|
479
|
+
if (typeof r.response.data == "object")
|
|
480
|
+
return Object.keys(r.response.data).map((i) => `${i} ${r.response.data[i]}`).join(", ");
|
|
481
481
|
}
|
|
482
|
-
return
|
|
482
|
+
return r.message || e("errors.unexpected");
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
486
|
function ft(e) {
|
|
487
|
-
const
|
|
487
|
+
const r = window.location.origin, t = r.endsWith("/") ? r : `${r}/`;
|
|
488
488
|
try {
|
|
489
|
-
const
|
|
489
|
+
const a = e.join("/"), n = `${t}${a}`, i = e.some((l) => l.trim() === "");
|
|
490
490
|
if (!/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(n) && !i && new URL(n))
|
|
491
|
-
return `${t}${
|
|
491
|
+
return `${t}${a}`;
|
|
492
492
|
throw new Error("Invalid url");
|
|
493
|
-
} catch (
|
|
494
|
-
return console.warn("Failed to build valid URL:",
|
|
493
|
+
} catch (a) {
|
|
494
|
+
return console.warn("Failed to build valid URL:", a), "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
498
|
-
const t = v(
|
|
497
|
+
function Ie(e, r) {
|
|
498
|
+
const t = b(v(e)), a = b(v(r)), n = I(
|
|
499
499
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
500
|
-
), i =
|
|
501
|
-
() =>
|
|
500
|
+
), i = I(
|
|
501
|
+
() => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
|
|
502
502
|
);
|
|
503
503
|
return (l) => {
|
|
504
504
|
const { page: c, pageSize: d, offset: u, sortColumnKey: k, sortColumnOrder: h, query: T } = l;
|
|
@@ -508,14 +508,14 @@ function Ae(e, a) {
|
|
|
508
508
|
w.searchParams.append(y, P);
|
|
509
509
|
}), k && w.searchParams.append("sort_by", k), h === "desc" && w.searchParams.append("sort_desc", "1"), w.searchParams.append("size", String(d))), u && c !== 1 && w.searchParams.append("offset", String(u)), w.href;
|
|
510
510
|
} catch (w) {
|
|
511
|
-
return console.error("RouteList(fetcher)", w),
|
|
511
|
+
return console.error("RouteList(fetcher)", w), a.value;
|
|
512
512
|
}
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function yt(e,
|
|
516
|
-
const
|
|
515
|
+
function yt(e, r, t = "data") {
|
|
516
|
+
const a = v(r), { axiosInstance: n } = oe({
|
|
517
517
|
headers: e.requestHeaders
|
|
518
|
-
}), i =
|
|
518
|
+
}), i = Ie(e, a), l = b({
|
|
519
519
|
status: Y.Idle
|
|
520
520
|
});
|
|
521
521
|
return { fetcher: async (c) => {
|
|
@@ -555,41 +555,41 @@ function yt(e, a, t = "data") {
|
|
|
555
555
|
}, fetcherState: l };
|
|
556
556
|
}
|
|
557
557
|
function ht() {
|
|
558
|
-
const e = (t,
|
|
558
|
+
const e = (t, a = "_") => t ? t.split(a).map((n) => n.toLowerCase() === "id" ? n.toUpperCase() : n.charAt(0).toUpperCase() + n.substring(1)).join(" ") : "", r = /(?:^|[\s-:'"])\w/g;
|
|
559
559
|
return {
|
|
560
|
-
capitalize: (t) => t ? t.replace(
|
|
560
|
+
capitalize: (t) => t ? t.replace(r, (a) => a.toUpperCase()) : "",
|
|
561
561
|
convertKeyToTitle: e
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
564
|
const xe = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ye = (e) => {
|
|
565
565
|
if (typeof e != "string")
|
|
566
566
|
throw new TypeError("Invalid argument expected string");
|
|
567
|
-
const
|
|
568
|
-
if (!
|
|
567
|
+
const r = e.match(xe);
|
|
568
|
+
if (!r)
|
|
569
569
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
570
|
-
return
|
|
570
|
+
return r.shift(), r;
|
|
571
571
|
}, he = (e) => e === "*" || e === "x" || e === "X", ge = (e) => {
|
|
572
|
-
const
|
|
573
|
-
return isNaN(
|
|
574
|
-
}, gt = (e,
|
|
575
|
-
if (he(e) || he(
|
|
572
|
+
const r = parseInt(e, 10);
|
|
573
|
+
return isNaN(r) ? e : r;
|
|
574
|
+
}, gt = (e, r) => typeof e != typeof r ? [String(e), String(r)] : [e, r], mt = (e, r) => {
|
|
575
|
+
if (he(e) || he(r))
|
|
576
576
|
return 0;
|
|
577
|
-
const [t,
|
|
578
|
-
return t >
|
|
579
|
-
}, me = (e,
|
|
580
|
-
for (let t = 0; t < Math.max(e.length,
|
|
581
|
-
const
|
|
582
|
-
if (
|
|
583
|
-
return
|
|
577
|
+
const [t, a] = gt(ge(e), ge(r));
|
|
578
|
+
return t > a ? 1 : t < a ? -1 : 0;
|
|
579
|
+
}, me = (e, r) => {
|
|
580
|
+
for (let t = 0; t < Math.max(e.length, r.length); t++) {
|
|
581
|
+
const a = mt(e[t] || "0", r[t] || "0");
|
|
582
|
+
if (a !== 0)
|
|
583
|
+
return a;
|
|
584
584
|
}
|
|
585
585
|
return 0;
|
|
586
|
-
},
|
|
587
|
-
const t = ye(e),
|
|
586
|
+
}, vt = (e, r) => {
|
|
587
|
+
const t = ye(e), a = ye(r), n = t.pop(), i = a.pop(), l = me(t, a);
|
|
588
588
|
return l !== 0 ? l : n && i ? me(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
|
|
589
|
-
},
|
|
590
|
-
|
|
591
|
-
const
|
|
592
|
-
return Ee[t].includes(
|
|
589
|
+
}, ve = (e, r, t) => {
|
|
590
|
+
bt(t);
|
|
591
|
+
const a = vt(e, r);
|
|
592
|
+
return Ee[t].includes(a);
|
|
593
593
|
}, Ee = {
|
|
594
594
|
">": [1],
|
|
595
595
|
">=": [0, 1],
|
|
@@ -597,96 +597,96 @@ const xe = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
597
597
|
"<=": [-1, 0],
|
|
598
598
|
"<": [-1],
|
|
599
599
|
"!=": [-1, 1]
|
|
600
|
-
},
|
|
600
|
+
}, be = Object.keys(Ee), bt = (e) => {
|
|
601
601
|
if (typeof e != "string")
|
|
602
602
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
603
|
-
if (
|
|
604
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
603
|
+
if (be.indexOf(e) === -1)
|
|
604
|
+
throw new Error(`Invalid operator, expected one of ${be.join("|")}`);
|
|
605
605
|
}, wt = (e) => typeof e == "string" && /^[v\d]/.test(e) && xe.test(e);
|
|
606
606
|
function kt(e) {
|
|
607
|
-
const { gatewayInfo:
|
|
608
|
-
if (!
|
|
607
|
+
const { gatewayInfo: r, supportedRange: t } = e;
|
|
608
|
+
if (!r)
|
|
609
609
|
return !0;
|
|
610
|
-
const { edition:
|
|
610
|
+
const { edition: a, version: n } = r;
|
|
611
611
|
if (!wt(n))
|
|
612
612
|
return console.error("Invalid version"), !1;
|
|
613
|
-
const i = t[
|
|
613
|
+
const i = t[a];
|
|
614
614
|
if (!i)
|
|
615
615
|
return !1;
|
|
616
616
|
const [l, c] = i;
|
|
617
|
-
return !(l &&
|
|
617
|
+
return !(l && ve(n, l, "<") || c && ve(n, c, ">"));
|
|
618
618
|
}
|
|
619
619
|
function Ct(e) {
|
|
620
|
-
const
|
|
620
|
+
const r = b(0), t = b(0), a = b(!1);
|
|
621
621
|
return ne(e, (n) => {
|
|
622
|
-
n && !
|
|
622
|
+
n && !a.value && (r.value = n.offsetWidth, t.value = n.scrollWidth, a.value = !0);
|
|
623
623
|
}), {
|
|
624
|
-
isTruncated:
|
|
624
|
+
isTruncated: I(() => r.value < t.value)
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
|
-
const _t = new
|
|
627
|
+
const _t = new ze();
|
|
628
628
|
function St() {
|
|
629
629
|
return {
|
|
630
630
|
notify: async (e) => {
|
|
631
|
-
const
|
|
631
|
+
const r = {
|
|
632
632
|
appearance: "success",
|
|
633
633
|
message: "Success",
|
|
634
634
|
timeoutMilliseconds: 3e3
|
|
635
635
|
};
|
|
636
636
|
_t.open({
|
|
637
|
-
...
|
|
637
|
+
...r,
|
|
638
638
|
...e
|
|
639
639
|
});
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
643
|
const ue = {
|
|
644
|
-
useAxios:
|
|
644
|
+
useAxios: oe,
|
|
645
645
|
useDebouncedFilter: ut,
|
|
646
646
|
useDeleteUrlBuilder: dt,
|
|
647
647
|
useErrors: pt,
|
|
648
648
|
useExternalLinkCreator: ft,
|
|
649
649
|
useFetcher: yt,
|
|
650
|
-
useFetchUrlBuilder:
|
|
651
|
-
useHelpers:
|
|
650
|
+
useFetchUrlBuilder: Ie,
|
|
651
|
+
useHelpers: Ne,
|
|
652
652
|
useStringHelpers: ht,
|
|
653
653
|
useI18n: ce,
|
|
654
654
|
useGatewayFeatureSupported: kt,
|
|
655
655
|
useTruncationDetector: Ct,
|
|
656
656
|
useToaster: St
|
|
657
|
-
}, de = (e,
|
|
657
|
+
}, de = (e, r) => {
|
|
658
658
|
const t = e.__vccOpts || e;
|
|
659
|
-
for (const [
|
|
660
|
-
t[
|
|
659
|
+
for (const [a, n] of r)
|
|
660
|
+
t[a] = n;
|
|
661
661
|
return t;
|
|
662
662
|
}, Tt = "#3a3f51";
|
|
663
663
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
664
664
|
function Oe(e) {
|
|
665
665
|
return typeof e > "u" || e === null;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function At(e) {
|
|
668
668
|
return typeof e == "object" && e !== null;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Nt(e) {
|
|
671
671
|
return Array.isArray(e) ? e : Oe(e) ? [] : [e];
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
var t,
|
|
675
|
-
if (
|
|
676
|
-
for (i = Object.keys(
|
|
677
|
-
n = i[t], e[n] =
|
|
673
|
+
function It(e, r) {
|
|
674
|
+
var t, a, n, i;
|
|
675
|
+
if (r)
|
|
676
|
+
for (i = Object.keys(r), t = 0, a = i.length; t < a; t += 1)
|
|
677
|
+
n = i[t], e[n] = r[n];
|
|
678
678
|
return e;
|
|
679
679
|
}
|
|
680
|
-
function xt(e,
|
|
681
|
-
var t = "",
|
|
682
|
-
for (
|
|
680
|
+
function xt(e, r) {
|
|
681
|
+
var t = "", a;
|
|
682
|
+
for (a = 0; a < r; a += 1)
|
|
683
683
|
t += e;
|
|
684
684
|
return t;
|
|
685
685
|
}
|
|
686
686
|
function Et(e) {
|
|
687
687
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
688
688
|
}
|
|
689
|
-
var Ot = Oe, jt =
|
|
689
|
+
var Ot = Oe, jt = At, Kt = Nt, $t = xt, Pt = Et, Ft = It, pe = {
|
|
690
690
|
isNothing: Ot,
|
|
691
691
|
isObject: jt,
|
|
692
692
|
toArray: Kt,
|
|
@@ -694,21 +694,21 @@ var Ot = Oe, jt = Nt, Kt = It, $t = xt, Pt = Et, Ft = At, pe = {
|
|
|
694
694
|
isNegativeZero: Pt,
|
|
695
695
|
extend: Ft
|
|
696
696
|
};
|
|
697
|
-
function je(e,
|
|
698
|
-
var t = "",
|
|
699
|
-
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !
|
|
697
|
+
function je(e, r) {
|
|
698
|
+
var t = "", a = e.reason || "(unknown reason)";
|
|
699
|
+
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !r && e.mark.snippet && (t += `
|
|
700
700
|
|
|
701
|
-
` + e.mark.snippet),
|
|
701
|
+
` + e.mark.snippet), a + " " + t) : a;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
704
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark =
|
|
703
|
+
function re(e, r) {
|
|
704
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = je(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
705
705
|
}
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
706
|
+
re.prototype = Object.create(Error.prototype);
|
|
707
|
+
re.prototype.constructor = re;
|
|
708
|
+
re.prototype.toString = function(e) {
|
|
709
709
|
return this.name + ": " + je(this, e);
|
|
710
710
|
};
|
|
711
|
-
var G =
|
|
711
|
+
var G = re, Ut = [
|
|
712
712
|
"kind",
|
|
713
713
|
"multi",
|
|
714
714
|
"resolve",
|
|
@@ -724,36 +724,36 @@ var G = ae, Ut = [
|
|
|
724
724
|
"sequence",
|
|
725
725
|
"mapping"
|
|
726
726
|
];
|
|
727
|
-
function
|
|
728
|
-
var
|
|
727
|
+
function Rt(e) {
|
|
728
|
+
var r = {};
|
|
729
729
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
730
|
-
e[t].forEach(function(
|
|
731
|
-
|
|
730
|
+
e[t].forEach(function(a) {
|
|
731
|
+
r[String(a)] = t;
|
|
732
732
|
});
|
|
733
|
-
}),
|
|
733
|
+
}), r;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
736
|
-
if (
|
|
735
|
+
function Bt(e, r) {
|
|
736
|
+
if (r = r || {}, Object.keys(r).forEach(function(t) {
|
|
737
737
|
if (Ut.indexOf(t) === -1)
|
|
738
738
|
throw new G('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
739
|
-
}), this.options =
|
|
739
|
+
}), this.options = r, this.tag = e, this.kind = r.kind || null, this.resolve = r.resolve || function() {
|
|
740
740
|
return !0;
|
|
741
|
-
}, this.construct =
|
|
741
|
+
}, this.construct = r.construct || function(t) {
|
|
742
742
|
return t;
|
|
743
|
-
}, this.instanceOf =
|
|
743
|
+
}, this.instanceOf = r.instanceOf || null, this.predicate = r.predicate || null, this.represent = r.represent || null, this.representName = r.representName || null, this.defaultStyle = r.defaultStyle || null, this.multi = r.multi || !1, this.styleAliases = Rt(r.styleAliases || null), Lt.indexOf(this.kind) === -1)
|
|
744
744
|
throw new G('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
745
745
|
}
|
|
746
|
-
var K =
|
|
747
|
-
function we(e,
|
|
746
|
+
var K = Bt;
|
|
747
|
+
function we(e, r) {
|
|
748
748
|
var t = [];
|
|
749
|
-
return e[
|
|
749
|
+
return e[r].forEach(function(a) {
|
|
750
750
|
var n = t.length;
|
|
751
751
|
t.forEach(function(i, l) {
|
|
752
|
-
i.tag ===
|
|
753
|
-
}), t[n] =
|
|
752
|
+
i.tag === a.tag && i.kind === a.kind && i.multi === a.multi && (n = l);
|
|
753
|
+
}), t[n] = a;
|
|
754
754
|
}), t;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function Mt() {
|
|
757
757
|
var e = {
|
|
758
758
|
scalar: {},
|
|
759
759
|
sequence: {},
|
|
@@ -765,28 +765,28 @@ function qt() {
|
|
|
765
765
|
mapping: [],
|
|
766
766
|
fallback: []
|
|
767
767
|
}
|
|
768
|
-
},
|
|
769
|
-
function
|
|
768
|
+
}, r, t;
|
|
769
|
+
function a(n) {
|
|
770
770
|
n.multi ? (e.multi[n.kind].push(n), e.multi.fallback.push(n)) : e[n.kind][n.tag] = e.fallback[n.tag] = n;
|
|
771
771
|
}
|
|
772
|
-
for (
|
|
773
|
-
arguments[
|
|
772
|
+
for (r = 0, t = arguments.length; r < t; r += 1)
|
|
773
|
+
arguments[r].forEach(a);
|
|
774
774
|
return e;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function se(e) {
|
|
777
777
|
return this.extend(e);
|
|
778
778
|
}
|
|
779
|
-
|
|
780
|
-
var
|
|
779
|
+
se.prototype.extend = function(e) {
|
|
780
|
+
var r = [], t = [];
|
|
781
781
|
if (e instanceof K)
|
|
782
782
|
t.push(e);
|
|
783
783
|
else if (Array.isArray(e))
|
|
784
784
|
t = t.concat(e);
|
|
785
785
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
|
|
786
|
-
e.implicit && (
|
|
786
|
+
e.implicit && (r = r.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
|
|
787
787
|
else
|
|
788
788
|
throw new G("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
789
|
-
|
|
789
|
+
r.forEach(function(n) {
|
|
790
790
|
if (!(n instanceof K))
|
|
791
791
|
throw new G("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
792
792
|
if (n.loadKind && n.loadKind !== "scalar")
|
|
@@ -797,36 +797,36 @@ oe.prototype.extend = function(e) {
|
|
|
797
797
|
if (!(n instanceof K))
|
|
798
798
|
throw new G("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
799
799
|
});
|
|
800
|
-
var
|
|
801
|
-
return
|
|
800
|
+
var a = Object.create(se.prototype);
|
|
801
|
+
return a.implicit = (this.implicit || []).concat(r), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = we(a, "implicit"), a.compiledExplicit = we(a, "explicit"), a.compiledTypeMap = Mt(a.compiledImplicit, a.compiledExplicit), a;
|
|
802
802
|
};
|
|
803
|
-
var
|
|
803
|
+
var qt = se, Dt = new K("tag:yaml.org,2002:str", {
|
|
804
804
|
kind: "scalar",
|
|
805
805
|
construct: function(e) {
|
|
806
806
|
return e !== null ? e : "";
|
|
807
807
|
}
|
|
808
|
-
}),
|
|
808
|
+
}), Wt = new K("tag:yaml.org,2002:seq", {
|
|
809
809
|
kind: "sequence",
|
|
810
810
|
construct: function(e) {
|
|
811
811
|
return e !== null ? e : [];
|
|
812
812
|
}
|
|
813
|
-
}),
|
|
813
|
+
}), zt = new K("tag:yaml.org,2002:map", {
|
|
814
814
|
kind: "mapping",
|
|
815
815
|
construct: function(e) {
|
|
816
816
|
return e !== null ? e : {};
|
|
817
817
|
}
|
|
818
|
-
}), Ht = new
|
|
818
|
+
}), Ht = new qt({
|
|
819
819
|
explicit: [
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
820
|
+
Dt,
|
|
821
|
+
Wt,
|
|
822
|
+
zt
|
|
823
823
|
]
|
|
824
824
|
});
|
|
825
825
|
function Jt(e) {
|
|
826
826
|
if (e === null)
|
|
827
827
|
return !0;
|
|
828
|
-
var
|
|
829
|
-
return
|
|
828
|
+
var r = e.length;
|
|
829
|
+
return r === 1 && e === "~" || r === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
830
830
|
}
|
|
831
831
|
function Vt() {
|
|
832
832
|
return null;
|
|
@@ -861,20 +861,20 @@ var Gt = new K("tag:yaml.org,2002:null", {
|
|
|
861
861
|
function Zt(e) {
|
|
862
862
|
if (e === null)
|
|
863
863
|
return !1;
|
|
864
|
-
var
|
|
865
|
-
return
|
|
864
|
+
var r = e.length;
|
|
865
|
+
return r === 4 && (e === "true" || e === "True" || e === "TRUE") || r === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Xt(e) {
|
|
868
868
|
return e === "true" || e === "True" || e === "TRUE";
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function Qt(e) {
|
|
871
871
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
872
872
|
}
|
|
873
|
-
var
|
|
873
|
+
var er = new K("tag:yaml.org,2002:bool", {
|
|
874
874
|
kind: "scalar",
|
|
875
875
|
resolve: Zt,
|
|
876
|
-
construct:
|
|
877
|
-
predicate:
|
|
876
|
+
construct: Xt,
|
|
877
|
+
predicate: Qt,
|
|
878
878
|
represent: {
|
|
879
879
|
lowercase: function(e) {
|
|
880
880
|
return e ? "true" : "false";
|
|
@@ -888,84 +888,84 @@ var ea = new K("tag:yaml.org,2002:bool", {
|
|
|
888
888
|
},
|
|
889
889
|
defaultStyle: "lowercase"
|
|
890
890
|
});
|
|
891
|
-
function
|
|
891
|
+
function tr(e) {
|
|
892
892
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function rr(e) {
|
|
895
895
|
return 48 <= e && e <= 55;
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function ar(e) {
|
|
898
898
|
return 48 <= e && e <= 57;
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function nr(e) {
|
|
901
901
|
if (e === null)
|
|
902
902
|
return !1;
|
|
903
|
-
var
|
|
904
|
-
if (!
|
|
903
|
+
var r = e.length, t = 0, a = !1, n;
|
|
904
|
+
if (!r)
|
|
905
905
|
return !1;
|
|
906
906
|
if (n = e[t], (n === "-" || n === "+") && (n = e[++t]), n === "0") {
|
|
907
|
-
if (t + 1 ===
|
|
907
|
+
if (t + 1 === r)
|
|
908
908
|
return !0;
|
|
909
909
|
if (n = e[++t], n === "b") {
|
|
910
|
-
for (t++; t <
|
|
910
|
+
for (t++; t < r; t++)
|
|
911
911
|
if (n = e[t], n !== "_") {
|
|
912
912
|
if (n !== "0" && n !== "1")
|
|
913
913
|
return !1;
|
|
914
|
-
|
|
914
|
+
a = !0;
|
|
915
915
|
}
|
|
916
|
-
return
|
|
916
|
+
return a && n !== "_";
|
|
917
917
|
}
|
|
918
918
|
if (n === "x") {
|
|
919
|
-
for (t++; t <
|
|
919
|
+
for (t++; t < r; t++)
|
|
920
920
|
if (n = e[t], n !== "_") {
|
|
921
|
-
if (!
|
|
921
|
+
if (!tr(e.charCodeAt(t)))
|
|
922
922
|
return !1;
|
|
923
|
-
|
|
923
|
+
a = !0;
|
|
924
924
|
}
|
|
925
|
-
return
|
|
925
|
+
return a && n !== "_";
|
|
926
926
|
}
|
|
927
927
|
if (n === "o") {
|
|
928
|
-
for (t++; t <
|
|
928
|
+
for (t++; t < r; t++)
|
|
929
929
|
if (n = e[t], n !== "_") {
|
|
930
|
-
if (!
|
|
930
|
+
if (!rr(e.charCodeAt(t)))
|
|
931
931
|
return !1;
|
|
932
|
-
|
|
932
|
+
a = !0;
|
|
933
933
|
}
|
|
934
|
-
return
|
|
934
|
+
return a && n !== "_";
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
937
|
if (n === "_")
|
|
938
938
|
return !1;
|
|
939
|
-
for (; t <
|
|
939
|
+
for (; t < r; t++)
|
|
940
940
|
if (n = e[t], n !== "_") {
|
|
941
|
-
if (!
|
|
941
|
+
if (!ar(e.charCodeAt(t)))
|
|
942
942
|
return !1;
|
|
943
|
-
|
|
943
|
+
a = !0;
|
|
944
944
|
}
|
|
945
|
-
return !(!
|
|
945
|
+
return !(!a || n === "_");
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
var
|
|
949
|
-
if (
|
|
947
|
+
function ir(e) {
|
|
948
|
+
var r = e, t = 1, a;
|
|
949
|
+
if (r.indexOf("_") !== -1 && (r = r.replace(/_/g, "")), a = r[0], (a === "-" || a === "+") && (a === "-" && (t = -1), r = r.slice(1), a = r[0]), r === "0")
|
|
950
950
|
return 0;
|
|
951
|
-
if (
|
|
952
|
-
if (
|
|
953
|
-
return t * parseInt(
|
|
954
|
-
if (
|
|
955
|
-
return t * parseInt(
|
|
956
|
-
if (
|
|
957
|
-
return t * parseInt(
|
|
951
|
+
if (a === "0") {
|
|
952
|
+
if (r[1] === "b")
|
|
953
|
+
return t * parseInt(r.slice(2), 2);
|
|
954
|
+
if (r[1] === "x")
|
|
955
|
+
return t * parseInt(r.slice(2), 16);
|
|
956
|
+
if (r[1] === "o")
|
|
957
|
+
return t * parseInt(r.slice(2), 8);
|
|
958
958
|
}
|
|
959
|
-
return t * parseInt(
|
|
959
|
+
return t * parseInt(r, 10);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function lr(e) {
|
|
962
962
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !pe.isNegativeZero(e);
|
|
963
963
|
}
|
|
964
|
-
var
|
|
964
|
+
var sr = new K("tag:yaml.org,2002:int", {
|
|
965
965
|
kind: "scalar",
|
|
966
|
-
resolve:
|
|
967
|
-
construct:
|
|
968
|
-
predicate:
|
|
966
|
+
resolve: nr,
|
|
967
|
+
construct: ir,
|
|
968
|
+
predicate: lr,
|
|
969
969
|
represent: {
|
|
970
970
|
binary: function(e) {
|
|
971
971
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -988,24 +988,24 @@ var oa = new K("tag:yaml.org,2002:int", {
|
|
|
988
988
|
decimal: [10, "dec"],
|
|
989
989
|
hexadecimal: [16, "hex"]
|
|
990
990
|
}
|
|
991
|
-
}),
|
|
991
|
+
}), or = new RegExp(
|
|
992
992
|
// 2.5e4, 2.5 and integers
|
|
993
993
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
994
994
|
);
|
|
995
|
-
function
|
|
996
|
-
return !(e === null || !
|
|
995
|
+
function cr(e) {
|
|
996
|
+
return !(e === null || !or.test(e) || // Quick hack to not allow integers end with `_`
|
|
997
997
|
// Probably should update regexp & check speed
|
|
998
998
|
e[e.length - 1] === "_");
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1001
|
-
var
|
|
1002
|
-
return
|
|
1000
|
+
function ur(e) {
|
|
1001
|
+
var r, t;
|
|
1002
|
+
return r = e.replace(/_/g, "").toLowerCase(), t = r[0] === "-" ? -1 : 1, "+-".indexOf(r[0]) >= 0 && (r = r.slice(1)), r === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : r === ".nan" ? NaN : t * parseFloat(r, 10);
|
|
1003
1003
|
}
|
|
1004
|
-
var
|
|
1005
|
-
function
|
|
1004
|
+
var dr = /^[-+]?[0-9]+e/;
|
|
1005
|
+
function pr(e, r) {
|
|
1006
1006
|
var t;
|
|
1007
1007
|
if (isNaN(e))
|
|
1008
|
-
switch (
|
|
1008
|
+
switch (r) {
|
|
1009
1009
|
case "lowercase":
|
|
1010
1010
|
return ".nan";
|
|
1011
1011
|
case "uppercase":
|
|
@@ -1014,7 +1014,7 @@ function pa(e, a) {
|
|
|
1014
1014
|
return ".NaN";
|
|
1015
1015
|
}
|
|
1016
1016
|
else if (Number.POSITIVE_INFINITY === e)
|
|
1017
|
-
switch (
|
|
1017
|
+
switch (r) {
|
|
1018
1018
|
case "lowercase":
|
|
1019
1019
|
return ".inf";
|
|
1020
1020
|
case "uppercase":
|
|
@@ -1023,7 +1023,7 @@ function pa(e, a) {
|
|
|
1023
1023
|
return ".Inf";
|
|
1024
1024
|
}
|
|
1025
1025
|
else if (Number.NEGATIVE_INFINITY === e)
|
|
1026
|
-
switch (
|
|
1026
|
+
switch (r) {
|
|
1027
1027
|
case "lowercase":
|
|
1028
1028
|
return "-.inf";
|
|
1029
1029
|
case "uppercase":
|
|
@@ -1033,192 +1033,192 @@ function pa(e, a) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
else if (pe.isNegativeZero(e))
|
|
1035
1035
|
return "-0.0";
|
|
1036
|
-
return t = e.toString(10),
|
|
1036
|
+
return t = e.toString(10), dr.test(t) ? t.replace("e", ".e") : t;
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function fr(e) {
|
|
1039
1039
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || pe.isNegativeZero(e));
|
|
1040
1040
|
}
|
|
1041
|
-
var
|
|
1041
|
+
var yr = new K("tag:yaml.org,2002:float", {
|
|
1042
1042
|
kind: "scalar",
|
|
1043
|
-
resolve:
|
|
1044
|
-
construct:
|
|
1045
|
-
predicate:
|
|
1046
|
-
represent:
|
|
1043
|
+
resolve: cr,
|
|
1044
|
+
construct: ur,
|
|
1045
|
+
predicate: fr,
|
|
1046
|
+
represent: pr,
|
|
1047
1047
|
defaultStyle: "lowercase"
|
|
1048
|
-
}),
|
|
1048
|
+
}), hr = Ht.extend({
|
|
1049
1049
|
implicit: [
|
|
1050
1050
|
Gt,
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1051
|
+
er,
|
|
1052
|
+
sr,
|
|
1053
|
+
yr
|
|
1054
1054
|
]
|
|
1055
|
-
}),
|
|
1055
|
+
}), gr = hr, Ke = new RegExp(
|
|
1056
1056
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1057
1057
|
), $e = new RegExp(
|
|
1058
1058
|
"^([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]))?))?$"
|
|
1059
1059
|
);
|
|
1060
|
-
function
|
|
1060
|
+
function mr(e) {
|
|
1061
1061
|
return e === null ? !1 : Ke.exec(e) !== null || $e.exec(e) !== null;
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1064
|
-
var
|
|
1065
|
-
if (
|
|
1063
|
+
function vr(e) {
|
|
1064
|
+
var r, t, a, n, i, l, c, d = 0, u = null, k, h, T;
|
|
1065
|
+
if (r = Ke.exec(e), r === null && (r = $e.exec(e)), r === null)
|
|
1066
1066
|
throw new Error("Date resolve error");
|
|
1067
|
-
if (t = +
|
|
1068
|
-
return new Date(Date.UTC(t,
|
|
1069
|
-
if (i = +
|
|
1070
|
-
for (d =
|
|
1067
|
+
if (t = +r[1], a = +r[2] - 1, n = +r[3], !r[4])
|
|
1068
|
+
return new Date(Date.UTC(t, a, n));
|
|
1069
|
+
if (i = +r[4], l = +r[5], c = +r[6], r[7]) {
|
|
1070
|
+
for (d = r[7].slice(0, 3); d.length < 3; )
|
|
1071
1071
|
d += "0";
|
|
1072
1072
|
d = +d;
|
|
1073
1073
|
}
|
|
1074
|
-
return
|
|
1074
|
+
return r[9] && (k = +r[10], h = +(r[11] || 0), u = (k * 60 + h) * 6e4, r[9] === "-" && (u = -u)), T = new Date(Date.UTC(t, a, n, i, l, c, d)), u && T.setTime(T.getTime() - u), T;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function br(e) {
|
|
1077
1077
|
return e.toISOString();
|
|
1078
1078
|
}
|
|
1079
|
-
var
|
|
1079
|
+
var wr = new K("tag:yaml.org,2002:timestamp", {
|
|
1080
1080
|
kind: "scalar",
|
|
1081
|
-
resolve:
|
|
1082
|
-
construct:
|
|
1081
|
+
resolve: mr,
|
|
1082
|
+
construct: vr,
|
|
1083
1083
|
instanceOf: Date,
|
|
1084
|
-
represent:
|
|
1084
|
+
represent: br
|
|
1085
1085
|
});
|
|
1086
|
-
function
|
|
1086
|
+
function kr(e) {
|
|
1087
1087
|
return e === "<<" || e === null;
|
|
1088
1088
|
}
|
|
1089
|
-
var
|
|
1089
|
+
var Cr = new K("tag:yaml.org,2002:merge", {
|
|
1090
1090
|
kind: "scalar",
|
|
1091
|
-
resolve:
|
|
1091
|
+
resolve: kr
|
|
1092
1092
|
}), fe = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1093
1093
|
\r`;
|
|
1094
|
-
function
|
|
1094
|
+
function _r(e) {
|
|
1095
1095
|
if (e === null)
|
|
1096
1096
|
return !1;
|
|
1097
|
-
var
|
|
1097
|
+
var r, t, a = 0, n = e.length, i = fe;
|
|
1098
1098
|
for (t = 0; t < n; t++)
|
|
1099
|
-
if (
|
|
1100
|
-
if (
|
|
1099
|
+
if (r = i.indexOf(e.charAt(t)), !(r > 64)) {
|
|
1100
|
+
if (r < 0)
|
|
1101
1101
|
return !1;
|
|
1102
|
-
|
|
1102
|
+
a += 6;
|
|
1103
1103
|
}
|
|
1104
|
-
return
|
|
1104
|
+
return a % 8 === 0;
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1107
|
-
var
|
|
1108
|
-
for (
|
|
1109
|
-
|
|
1106
|
+
function Sr(e) {
|
|
1107
|
+
var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i = fe, l = 0, c = [];
|
|
1108
|
+
for (r = 0; r < n; r++)
|
|
1109
|
+
r % 4 === 0 && r && (c.push(l >> 16 & 255), c.push(l >> 8 & 255), c.push(l & 255)), l = l << 6 | i.indexOf(a.charAt(r));
|
|
1110
1110
|
return t = n % 4 * 6, t === 0 ? (c.push(l >> 16 & 255), c.push(l >> 8 & 255), c.push(l & 255)) : t === 18 ? (c.push(l >> 10 & 255), c.push(l >> 2 & 255)) : t === 12 && c.push(l >> 4 & 255), new Uint8Array(c);
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
var
|
|
1114
|
-
for (
|
|
1115
|
-
|
|
1116
|
-
return n = i % 3, n === 0 ? (
|
|
1112
|
+
function Tr(e) {
|
|
1113
|
+
var r = "", t = 0, a, n, i = e.length, l = fe;
|
|
1114
|
+
for (a = 0; a < i; a++)
|
|
1115
|
+
a % 3 === 0 && a && (r += l[t >> 18 & 63], r += l[t >> 12 & 63], r += l[t >> 6 & 63], r += l[t & 63]), t = (t << 8) + e[a];
|
|
1116
|
+
return n = i % 3, n === 0 ? (r += l[t >> 18 & 63], r += l[t >> 12 & 63], r += l[t >> 6 & 63], r += l[t & 63]) : n === 2 ? (r += l[t >> 10 & 63], r += l[t >> 4 & 63], r += l[t << 2 & 63], r += l[64]) : n === 1 && (r += l[t >> 2 & 63], r += l[t << 4 & 63], r += l[64], r += l[64]), r;
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function Ar(e) {
|
|
1119
1119
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1120
1120
|
}
|
|
1121
|
-
var
|
|
1121
|
+
var Nr = new K("tag:yaml.org,2002:binary", {
|
|
1122
1122
|
kind: "scalar",
|
|
1123
|
-
resolve:
|
|
1124
|
-
construct:
|
|
1125
|
-
predicate:
|
|
1126
|
-
represent:
|
|
1127
|
-
}),
|
|
1128
|
-
function
|
|
1123
|
+
resolve: _r,
|
|
1124
|
+
construct: Sr,
|
|
1125
|
+
predicate: Ar,
|
|
1126
|
+
represent: Tr
|
|
1127
|
+
}), Ir = Object.prototype.hasOwnProperty, xr = Object.prototype.toString;
|
|
1128
|
+
function Er(e) {
|
|
1129
1129
|
if (e === null)
|
|
1130
1130
|
return !0;
|
|
1131
|
-
var
|
|
1132
|
-
for (t = 0,
|
|
1133
|
-
if (n = c[t], l = !1,
|
|
1131
|
+
var r = [], t, a, n, i, l, c = e;
|
|
1132
|
+
for (t = 0, a = c.length; t < a; t += 1) {
|
|
1133
|
+
if (n = c[t], l = !1, xr.call(n) !== "[object Object]")
|
|
1134
1134
|
return !1;
|
|
1135
1135
|
for (i in n)
|
|
1136
|
-
if (
|
|
1136
|
+
if (Ir.call(n, i))
|
|
1137
1137
|
if (!l)
|
|
1138
1138
|
l = !0;
|
|
1139
1139
|
else
|
|
1140
1140
|
return !1;
|
|
1141
1141
|
if (!l)
|
|
1142
1142
|
return !1;
|
|
1143
|
-
if (
|
|
1144
|
-
|
|
1143
|
+
if (r.indexOf(i) === -1)
|
|
1144
|
+
r.push(i);
|
|
1145
1145
|
else
|
|
1146
1146
|
return !1;
|
|
1147
1147
|
}
|
|
1148
1148
|
return !0;
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Or(e) {
|
|
1151
1151
|
return e !== null ? e : [];
|
|
1152
1152
|
}
|
|
1153
|
-
var
|
|
1153
|
+
var jr = new K("tag:yaml.org,2002:omap", {
|
|
1154
1154
|
kind: "sequence",
|
|
1155
|
-
resolve:
|
|
1156
|
-
construct:
|
|
1157
|
-
}),
|
|
1158
|
-
function $
|
|
1155
|
+
resolve: Er,
|
|
1156
|
+
construct: Or
|
|
1157
|
+
}), Kr = Object.prototype.toString;
|
|
1158
|
+
function $r(e) {
|
|
1159
1159
|
if (e === null)
|
|
1160
1160
|
return !0;
|
|
1161
|
-
var
|
|
1162
|
-
for (i = new Array(l.length),
|
|
1163
|
-
if (
|
|
1161
|
+
var r, t, a, n, i, l = e;
|
|
1162
|
+
for (i = new Array(l.length), r = 0, t = l.length; r < t; r += 1) {
|
|
1163
|
+
if (a = l[r], Kr.call(a) !== "[object Object]" || (n = Object.keys(a), n.length !== 1))
|
|
1164
1164
|
return !1;
|
|
1165
|
-
i[
|
|
1165
|
+
i[r] = [n[0], a[n[0]]];
|
|
1166
1166
|
}
|
|
1167
1167
|
return !0;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function Pr(e) {
|
|
1170
1170
|
if (e === null)
|
|
1171
1171
|
return [];
|
|
1172
|
-
var
|
|
1173
|
-
for (i = new Array(l.length),
|
|
1174
|
-
|
|
1172
|
+
var r, t, a, n, i, l = e;
|
|
1173
|
+
for (i = new Array(l.length), r = 0, t = l.length; r < t; r += 1)
|
|
1174
|
+
a = l[r], n = Object.keys(a), i[r] = [n[0], a[n[0]]];
|
|
1175
1175
|
return i;
|
|
1176
1176
|
}
|
|
1177
|
-
var
|
|
1177
|
+
var Fr = new K("tag:yaml.org,2002:pairs", {
|
|
1178
1178
|
kind: "sequence",
|
|
1179
|
-
resolve: $
|
|
1180
|
-
construct:
|
|
1181
|
-
}),
|
|
1182
|
-
function
|
|
1179
|
+
resolve: $r,
|
|
1180
|
+
construct: Pr
|
|
1181
|
+
}), Ur = Object.prototype.hasOwnProperty;
|
|
1182
|
+
function Lr(e) {
|
|
1183
1183
|
if (e === null)
|
|
1184
1184
|
return !0;
|
|
1185
|
-
var
|
|
1186
|
-
for (
|
|
1187
|
-
if (
|
|
1185
|
+
var r, t = e;
|
|
1186
|
+
for (r in t)
|
|
1187
|
+
if (Ur.call(t, r) && t[r] !== null)
|
|
1188
1188
|
return !1;
|
|
1189
1189
|
return !0;
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function Rr(e) {
|
|
1192
1192
|
return e !== null ? e : {};
|
|
1193
1193
|
}
|
|
1194
|
-
var
|
|
1194
|
+
var Br = new K("tag:yaml.org,2002:set", {
|
|
1195
1195
|
kind: "mapping",
|
|
1196
|
-
resolve:
|
|
1197
|
-
construct:
|
|
1196
|
+
resolve: Lr,
|
|
1197
|
+
construct: Rr
|
|
1198
1198
|
});
|
|
1199
|
-
|
|
1199
|
+
gr.extend({
|
|
1200
1200
|
implicit: [
|
|
1201
|
-
|
|
1202
|
-
|
|
1201
|
+
wr,
|
|
1202
|
+
Cr
|
|
1203
1203
|
],
|
|
1204
1204
|
explicit: [
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1205
|
+
Nr,
|
|
1206
|
+
jr,
|
|
1207
|
+
Fr,
|
|
1208
|
+
Br
|
|
1209
1209
|
]
|
|
1210
1210
|
});
|
|
1211
1211
|
function ke(e) {
|
|
1212
1212
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1213
1213
|
` : 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" : "";
|
|
1214
1214
|
}
|
|
1215
|
-
var
|
|
1215
|
+
var Mr = new Array(256), qr = new Array(256);
|
|
1216
1216
|
for (var te = 0; te < 256; te++)
|
|
1217
|
-
|
|
1218
|
-
const
|
|
1217
|
+
Mr[te] = ke(te) ? 1 : 0, qr[te] = ke(te);
|
|
1218
|
+
const Dr = {
|
|
1219
1219
|
key: 0,
|
|
1220
1220
|
"data-testid": "first-col"
|
|
1221
|
-
},
|
|
1221
|
+
}, Wr = /* @__PURE__ */ ae({
|
|
1222
1222
|
__name: "EntityBaseTableCell",
|
|
1223
1223
|
props: {
|
|
1224
1224
|
keyName: {
|
|
@@ -1231,68 +1231,68 @@ const Ra = {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
},
|
|
1233
1233
|
setup(e) {
|
|
1234
|
-
const
|
|
1234
|
+
const r = e, t = I(() => {
|
|
1235
1235
|
var y;
|
|
1236
|
-
return ((y =
|
|
1237
|
-
}),
|
|
1236
|
+
return ((y = r.rowEl) == null ? void 0 : y.querySelector(`[data-testid="${r.keyName}"]`)) || null;
|
|
1237
|
+
}), a = I(() => {
|
|
1238
1238
|
var y;
|
|
1239
1239
|
return ((y = t.value) == null ? void 0 : y.querySelector('[data-testid="first-col"]')) || null;
|
|
1240
|
-
}), n =
|
|
1241
|
-
var y,
|
|
1242
|
-
const F = (y =
|
|
1243
|
-
return F ? ((
|
|
1240
|
+
}), n = I(() => {
|
|
1241
|
+
var y, A;
|
|
1242
|
+
const F = (y = r.rowEl) == null ? void 0 : y.querySelectorAll("td");
|
|
1243
|
+
return F ? ((A = F[0]) == null ? void 0 : A.getAttribute("data-testid")) === r.keyName : !1;
|
|
1244
1244
|
});
|
|
1245
1245
|
let i;
|
|
1246
1246
|
const l = () => {
|
|
1247
1247
|
i && (i.disconnect(), i = void 0);
|
|
1248
1248
|
}, c = () => {
|
|
1249
|
-
var y,
|
|
1250
|
-
u.value = ((y =
|
|
1251
|
-
}, d =
|
|
1249
|
+
var y, A, F;
|
|
1250
|
+
u.value = ((y = a.value) == null ? void 0 : y.getBoundingClientRect().width) || 0, k.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, h.value = ((F = d.value) == null ? void 0 : F.innerText) || "";
|
|
1251
|
+
}, d = b({}), u = b(0), k = b(0), h = b(""), T = I(() => [a.value, t.value]), w = ne(
|
|
1252
1252
|
T,
|
|
1253
1253
|
(y) => {
|
|
1254
1254
|
if (n.value && (l(), "ResizeObserver" in window && window)) {
|
|
1255
|
-
i = new ResizeObserver((
|
|
1255
|
+
i = new ResizeObserver((A) => {
|
|
1256
1256
|
window.requestAnimationFrame(() => {
|
|
1257
|
-
!Array.isArray(
|
|
1257
|
+
!Array.isArray(A) || !A.length || c();
|
|
1258
1258
|
});
|
|
1259
1259
|
});
|
|
1260
|
-
for (const
|
|
1261
|
-
|
|
1260
|
+
for (const A of y)
|
|
1261
|
+
A && i.observe(A);
|
|
1262
1262
|
}
|
|
1263
1263
|
},
|
|
1264
1264
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
1265
|
-
), P =
|
|
1266
|
-
return
|
|
1265
|
+
), P = I(() => n.value ? u.value > k.value : !1);
|
|
1266
|
+
return Re(() => {
|
|
1267
1267
|
c();
|
|
1268
|
-
}),
|
|
1268
|
+
}), Be(() => {
|
|
1269
1269
|
w();
|
|
1270
|
-
}), (y,
|
|
1270
|
+
}), (y, A) => {
|
|
1271
1271
|
const F = U("KTooltip");
|
|
1272
1272
|
return j(), J("span", {
|
|
1273
1273
|
ref_key: "contentRef",
|
|
1274
1274
|
ref: d,
|
|
1275
1275
|
class: "content-wrapper"
|
|
1276
1276
|
}, [
|
|
1277
|
-
n.value ? (j(), J("span",
|
|
1277
|
+
n.value ? (j(), J("span", Dr, [
|
|
1278
1278
|
m(F, {
|
|
1279
1279
|
label: P.value ? h.value : "",
|
|
1280
1280
|
"max-width": "300",
|
|
1281
1281
|
placement: "bottomStart"
|
|
1282
1282
|
}, {
|
|
1283
|
-
default:
|
|
1284
|
-
|
|
1283
|
+
default: s(() => [
|
|
1284
|
+
z(y.$slots, "default", {}, void 0, !0)
|
|
1285
1285
|
]),
|
|
1286
1286
|
_: 3
|
|
1287
1287
|
}, 8, ["label"])
|
|
1288
|
-
])) :
|
|
1288
|
+
])) : z(y.$slots, "default", { key: 1 }, void 0, !0)
|
|
1289
1289
|
], 512);
|
|
1290
1290
|
};
|
|
1291
1291
|
}
|
|
1292
|
-
}),
|
|
1292
|
+
}), zr = /* @__PURE__ */ de(Wr, [["__scopeId", "data-v-e42a20c9"]]), Hr = { class: "toolbar-container" }, Jr = {
|
|
1293
1293
|
key: 0,
|
|
1294
1294
|
class: "toolbar-button-container"
|
|
1295
|
-
},
|
|
1295
|
+
}, Vr = ["data-testid"], Yr = /* @__PURE__ */ ae({
|
|
1296
1296
|
__name: "EntityBaseTable",
|
|
1297
1297
|
props: {
|
|
1298
1298
|
// table header configuration
|
|
@@ -1400,15 +1400,15 @@ const Ra = {
|
|
|
1400
1400
|
}
|
|
1401
1401
|
},
|
|
1402
1402
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
1403
|
-
setup(e, { emit:
|
|
1404
|
-
const t = e, { i18n: { t:
|
|
1403
|
+
setup(e, { emit: r }) {
|
|
1404
|
+
const t = e, { i18n: { t: a } } = ue.useI18n(), n = I(() => t.cacheIdentifier || t.preferencesStorageKey), i = (p) => p.hasData || !!t.query, l = I(() => {
|
|
1405
1405
|
const p = [];
|
|
1406
|
-
return Object.keys(t.tableHeaders).forEach((
|
|
1407
|
-
const
|
|
1406
|
+
return Object.keys(t.tableHeaders).forEach((o) => {
|
|
1407
|
+
const B = t.tableHeaders[o];
|
|
1408
1408
|
p.push({
|
|
1409
|
-
label:
|
|
1410
|
-
key:
|
|
1411
|
-
sortable:
|
|
1409
|
+
label: B.label ?? o,
|
|
1410
|
+
key: o,
|
|
1411
|
+
sortable: B.sortable ?? !1
|
|
1412
1412
|
});
|
|
1413
1413
|
}), t.enableEntityActions && p.push({
|
|
1414
1414
|
key: "actions",
|
|
@@ -1418,43 +1418,43 @@ const Ra = {
|
|
|
1418
1418
|
"data-rowid": p.id,
|
|
1419
1419
|
"data-testid": p.name,
|
|
1420
1420
|
...t.rowAttributes(p)
|
|
1421
|
-
}), d =
|
|
1422
|
-
var
|
|
1423
|
-
return (
|
|
1421
|
+
}), d = b({}), u = (p) => {
|
|
1422
|
+
var o;
|
|
1423
|
+
return (o = d.value) == null ? void 0 : o.$el.querySelector(`[data-rowid="${p.id}"]`);
|
|
1424
1424
|
}, k = (p) => {
|
|
1425
|
-
const
|
|
1425
|
+
const o = {
|
|
1426
1426
|
"data-testid": p.headerKey,
|
|
1427
1427
|
...t.cellAttributes(p)
|
|
1428
1428
|
};
|
|
1429
|
-
return p.colIndex === 0 && (
|
|
1429
|
+
return p.colIndex === 0 && (o.style = {
|
|
1430
1430
|
maxWidth: "250px",
|
|
1431
1431
|
overflowX: "hidden",
|
|
1432
1432
|
textOverflow: "ellipsis"
|
|
1433
|
-
}),
|
|
1433
|
+
}), o;
|
|
1434
1434
|
}, h = () => {
|
|
1435
|
-
|
|
1435
|
+
r("empty-state-cta-clicked"), T();
|
|
1436
1436
|
}, T = () => {
|
|
1437
|
-
|
|
1438
|
-
}, w =
|
|
1439
|
-
|
|
1437
|
+
r("clear-search-input");
|
|
1438
|
+
}, w = I(() => t.disableRowClick ? void 0 : (p, o) => {
|
|
1439
|
+
r("click:row", o);
|
|
1440
1440
|
}), P = (p) => {
|
|
1441
|
-
|
|
1442
|
-
}, { setTablePreferences: y, getTablePreferences:
|
|
1443
|
-
const p =
|
|
1441
|
+
r("sort", p);
|
|
1442
|
+
}, { setTablePreferences: y, getTablePreferences: A } = Qe(), F = I(() => {
|
|
1443
|
+
const p = A(t.preferencesStorageKey);
|
|
1444
1444
|
return {
|
|
1445
1445
|
...t.initialFetcherParams,
|
|
1446
1446
|
...p
|
|
1447
1447
|
};
|
|
1448
|
-
}),
|
|
1448
|
+
}), X = (p) => {
|
|
1449
1449
|
t.preferencesStorageKey && y(t.preferencesStorageKey, p);
|
|
1450
1450
|
};
|
|
1451
|
-
return (p,
|
|
1452
|
-
const
|
|
1453
|
-
return j(),
|
|
1451
|
+
return (p, o) => {
|
|
1452
|
+
const B = U("KIcon"), V = U("KButton"), Q = U("KDropdown"), x = U("KTable"), E = U("KCard");
|
|
1453
|
+
return j(), W(E, {
|
|
1454
1454
|
class: "kong-ui-entity-base-table",
|
|
1455
1455
|
title: e.title
|
|
1456
1456
|
}, {
|
|
1457
|
-
body:
|
|
1457
|
+
body: s(() => [
|
|
1458
1458
|
m(x, {
|
|
1459
1459
|
ref_key: "tableRefs",
|
|
1460
1460
|
ref: d,
|
|
@@ -1463,12 +1463,12 @@ const Ra = {
|
|
|
1463
1463
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
1464
1464
|
"disable-sorting": e.disableSorting,
|
|
1465
1465
|
"empty-state-action-button-icon": e.query ? "" : "plus",
|
|
1466
|
-
"empty-state-action-message": e.query ?
|
|
1466
|
+
"empty-state-action-message": e.query ? v(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
1467
1467
|
"empty-state-action-route": e.query ? "" : e.emptyStateOptions.ctaPath,
|
|
1468
1468
|
"empty-state-icon": e.query ? "stateNoSearchResults" : "stateGruceo",
|
|
1469
1469
|
"empty-state-icon-size": "96",
|
|
1470
|
-
"empty-state-message": e.query ?
|
|
1471
|
-
"empty-state-title": e.query ?
|
|
1470
|
+
"empty-state-message": e.query ? v(a)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
1471
|
+
"empty-state-title": e.query ? v(a)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
1472
1472
|
"enable-client-sort": e.enableClientSort,
|
|
1473
1473
|
"error-state-title": e.errorMessage,
|
|
1474
1474
|
fetcher: e.fetcher,
|
|
@@ -1483,44 +1483,44 @@ const Ra = {
|
|
|
1483
1483
|
"search-input": e.query,
|
|
1484
1484
|
onKtableEmptyStateCtaClicked: h,
|
|
1485
1485
|
"onRow:click": w.value,
|
|
1486
|
-
onSort:
|
|
1487
|
-
"onUpdate:tablePreferences":
|
|
1486
|
+
onSort: o[0] || (o[0] = ($) => P($)),
|
|
1487
|
+
"onUpdate:tablePreferences": X
|
|
1488
1488
|
}, Ce({
|
|
1489
|
-
toolbar:
|
|
1490
|
-
Ue(Z("div",
|
|
1491
|
-
|
|
1492
|
-
p.$slots["toolbar-button"] ? (j(), J("div",
|
|
1493
|
-
|
|
1489
|
+
toolbar: s(({ state: $ }) => [
|
|
1490
|
+
Ue(Z("div", Hr, [
|
|
1491
|
+
z(p.$slots, "toolbar-filter", {}, void 0, !0),
|
|
1492
|
+
p.$slots["toolbar-button"] ? (j(), J("div", Jr, [
|
|
1493
|
+
z(p.$slots, "toolbar-button", {}, void 0, !0)
|
|
1494
1494
|
])) : H("", !0)
|
|
1495
1495
|
], 512), [
|
|
1496
1496
|
[Le, i($)]
|
|
1497
1497
|
])
|
|
1498
1498
|
]),
|
|
1499
|
-
actions:
|
|
1499
|
+
actions: s(({ row: $, rowKey: _, rowValue: O }) => [
|
|
1500
1500
|
Z("div", {
|
|
1501
1501
|
class: "actions-container",
|
|
1502
1502
|
"data-testid": $.name
|
|
1503
1503
|
}, [
|
|
1504
|
-
m(
|
|
1504
|
+
m(Q, {
|
|
1505
1505
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
1506
1506
|
width: e.dropdownMenuWidth
|
|
1507
1507
|
}, {
|
|
1508
|
-
items:
|
|
1509
|
-
|
|
1508
|
+
items: s(() => [
|
|
1509
|
+
z(p.$slots, "actions", {
|
|
1510
1510
|
row: $,
|
|
1511
1511
|
rowKey: _,
|
|
1512
1512
|
rowValue: O
|
|
1513
1513
|
}, void 0, !0)
|
|
1514
1514
|
]),
|
|
1515
|
-
default:
|
|
1515
|
+
default: s(() => [
|
|
1516
1516
|
m(V, {
|
|
1517
1517
|
class: "actions-trigger",
|
|
1518
1518
|
"data-testid": "overflow-actions-button",
|
|
1519
1519
|
size: "small"
|
|
1520
1520
|
}, {
|
|
1521
|
-
icon:
|
|
1522
|
-
m(
|
|
1523
|
-
color:
|
|
1521
|
+
icon: s(() => [
|
|
1522
|
+
m(B, {
|
|
1523
|
+
color: v(Tt),
|
|
1524
1524
|
icon: "more",
|
|
1525
1525
|
size: "16"
|
|
1526
1526
|
}, null, 8, ["color"])
|
|
@@ -1530,24 +1530,24 @@ const Ra = {
|
|
|
1530
1530
|
]),
|
|
1531
1531
|
_: 2
|
|
1532
1532
|
}, 1032, ["width"])
|
|
1533
|
-
], 8,
|
|
1533
|
+
], 8, Vr)
|
|
1534
1534
|
]),
|
|
1535
1535
|
_: 2
|
|
1536
1536
|
}, [
|
|
1537
1537
|
_e(e.tableHeaders, ($, _) => ({
|
|
1538
1538
|
name: _,
|
|
1539
|
-
fn:
|
|
1540
|
-
m(
|
|
1539
|
+
fn: s(({ row: O, rowKey: f, rowValue: S }) => [
|
|
1540
|
+
m(zr, {
|
|
1541
1541
|
"key-name": String(_),
|
|
1542
1542
|
"row-el": u(O)
|
|
1543
1543
|
}, {
|
|
1544
|
-
default:
|
|
1545
|
-
|
|
1544
|
+
default: s(() => [
|
|
1545
|
+
z(p.$slots, _, {
|
|
1546
1546
|
row: O,
|
|
1547
1547
|
rowKey: f,
|
|
1548
1548
|
rowValue: S
|
|
1549
1549
|
}, () => [
|
|
1550
|
-
|
|
1550
|
+
R(N(S), 1)
|
|
1551
1551
|
], !0)
|
|
1552
1552
|
]),
|
|
1553
1553
|
_: 2
|
|
@@ -1560,13 +1560,13 @@ const Ra = {
|
|
|
1560
1560
|
}, 8, ["title"]);
|
|
1561
1561
|
};
|
|
1562
1562
|
}
|
|
1563
|
-
}),
|
|
1563
|
+
}), Gr = /* @__PURE__ */ de(Yr, [["__scopeId", "data-v-86d2d2a3"]]), Zr = {
|
|
1564
1564
|
key: 0,
|
|
1565
1565
|
class: "kong-ui-entity-delete-error"
|
|
1566
|
-
},
|
|
1566
|
+
}, Xr = {
|
|
1567
1567
|
key: 1,
|
|
1568
1568
|
class: "description"
|
|
1569
|
-
},
|
|
1569
|
+
}, Qr = /* @__PURE__ */ ae({
|
|
1570
1570
|
__name: "EntityDeleteModal",
|
|
1571
1571
|
props: {
|
|
1572
1572
|
visible: {
|
|
@@ -1604,15 +1604,15 @@ const Ra = {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
},
|
|
1606
1606
|
emits: ["cancel", "proceed"],
|
|
1607
|
-
setup(e, { emit:
|
|
1608
|
-
const t = e, { i18nT:
|
|
1609
|
-
|
|
1607
|
+
setup(e, { emit: r }) {
|
|
1608
|
+
const t = e, { i18nT: a } = ue.useI18n(), n = I(() => t.needConfirm ? t.entityName : ""), i = () => {
|
|
1609
|
+
r("cancel");
|
|
1610
1610
|
}, l = () => {
|
|
1611
|
-
|
|
1611
|
+
r("proceed");
|
|
1612
1612
|
};
|
|
1613
1613
|
return (c, d) => {
|
|
1614
1614
|
const u = U("KAlert"), k = U("KPrompt");
|
|
1615
|
-
return j(),
|
|
1615
|
+
return j(), W(k, {
|
|
1616
1616
|
"action-button-text": "Yes, delete",
|
|
1617
1617
|
"action-pending": e.actionPending,
|
|
1618
1618
|
class: "kong-ui-entity-delete-modal",
|
|
@@ -1623,36 +1623,36 @@ const Ra = {
|
|
|
1623
1623
|
onCanceled: i,
|
|
1624
1624
|
onProceed: l
|
|
1625
1625
|
}, {
|
|
1626
|
-
"body-content":
|
|
1627
|
-
e.error ? (j(), J("div",
|
|
1626
|
+
"body-content": s(() => [
|
|
1627
|
+
e.error ? (j(), J("div", Zr, [
|
|
1628
1628
|
m(u, { appearance: "danger" }, {
|
|
1629
|
-
alertMessage:
|
|
1630
|
-
|
|
1629
|
+
alertMessage: s(() => [
|
|
1630
|
+
R(N(e.error), 1)
|
|
1631
1631
|
]),
|
|
1632
1632
|
_: 1
|
|
1633
1633
|
})
|
|
1634
1634
|
])) : H("", !0),
|
|
1635
|
-
m(
|
|
1635
|
+
m(v(a), {
|
|
1636
1636
|
class: "message",
|
|
1637
1637
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
1638
1638
|
tag: "p"
|
|
1639
1639
|
}, Ce({
|
|
1640
|
-
entityType:
|
|
1641
|
-
|
|
1640
|
+
entityType: s(() => [
|
|
1641
|
+
R(N(t.entityType), 1)
|
|
1642
1642
|
]),
|
|
1643
1643
|
_: 2
|
|
1644
1644
|
}, [
|
|
1645
1645
|
t.entityName ? {
|
|
1646
1646
|
name: "entityName",
|
|
1647
|
-
fn:
|
|
1648
|
-
Z("strong", null,
|
|
1647
|
+
fn: s(() => [
|
|
1648
|
+
Z("strong", null, N(t.entityName), 1)
|
|
1649
1649
|
]),
|
|
1650
1650
|
key: "0"
|
|
1651
1651
|
} : void 0
|
|
1652
1652
|
]), 1032, ["keypath"]),
|
|
1653
|
-
t.description || c.$slots.description ? (j(), J("div",
|
|
1654
|
-
|
|
1655
|
-
Z("p", null,
|
|
1653
|
+
t.description || c.$slots.description ? (j(), J("div", Xr, [
|
|
1654
|
+
z(c.$slots, "description", {}, () => [
|
|
1655
|
+
Z("p", null, N(t.description), 1)
|
|
1656
1656
|
], !0)
|
|
1657
1657
|
])) : H("", !0)
|
|
1658
1658
|
]),
|
|
@@ -1660,7 +1660,7 @@ const Ra = {
|
|
|
1660
1660
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
1661
1661
|
};
|
|
1662
1662
|
}
|
|
1663
|
-
}),
|
|
1663
|
+
}), ea = /* @__PURE__ */ de(Qr, [["__scopeId", "data-v-1c9a2a07"]]), le = /* @__PURE__ */ ae({
|
|
1664
1664
|
__name: "PermissionsWrapper",
|
|
1665
1665
|
props: {
|
|
1666
1666
|
/**
|
|
@@ -1682,16 +1682,16 @@ const Ra = {
|
|
|
1682
1682
|
}
|
|
1683
1683
|
},
|
|
1684
1684
|
setup(e) {
|
|
1685
|
-
const
|
|
1686
|
-
return ne(() =>
|
|
1687
|
-
t.value = await
|
|
1688
|
-
}, { immediate: !0 }), (n, i) =>
|
|
1685
|
+
const r = e, t = b(void 0), a = I(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
|
|
1686
|
+
return ne(() => r.authFunction, async () => {
|
|
1687
|
+
t.value = await r.authFunction();
|
|
1688
|
+
}, { immediate: !0 }), (n, i) => a.value ? z(n.$slots, "default", {
|
|
1689
1689
|
key: 0,
|
|
1690
1690
|
isAllowed: t.value
|
|
1691
1691
|
}) : H("", !0);
|
|
1692
1692
|
}
|
|
1693
|
-
}), { useAxios:
|
|
1694
|
-
const
|
|
1693
|
+
}), { useAxios: ta, useDeleteUrlBuilder: ra, useErrors: fa, useExternalLinkCreator: ya, useFetchUrlBuilder: ha, useFetcher: aa, useDebouncedFilter: ga, useStringHelpers: ma, useHelpers: va, useGatewayFeatureSupported: ba, useTruncationDetector: wa } = ue;
|
|
1694
|
+
const na = { class: "kong-ui-entities-consumer-credentials-list" }, ia = { key: 1 }, la = /* @__PURE__ */ ae({
|
|
1695
1695
|
__name: "ConsumerCredentialList",
|
|
1696
1696
|
props: {
|
|
1697
1697
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1725,116 +1725,116 @@ const nr = { class: "kong-ui-entities-consumer-credentials-list" }, ir = { key:
|
|
|
1725
1725
|
}
|
|
1726
1726
|
},
|
|
1727
1727
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
1728
|
-
setup(e, { emit:
|
|
1729
|
-
const t = e, { i18n: { t:
|
|
1728
|
+
setup(e, { emit: r }) {
|
|
1729
|
+
const t = e, { i18n: { t: a, formatUnixTimeStamp: n } } = Ye.useI18n(), { axiosInstance: i } = ta({
|
|
1730
1730
|
headers: t.config.requestHeaders
|
|
1731
|
-
}), l =
|
|
1731
|
+
}), l = b(1), c = {
|
|
1732
1732
|
acls: {
|
|
1733
|
-
group: { label:
|
|
1734
|
-
created_at: { label:
|
|
1735
|
-
tags: { label:
|
|
1733
|
+
group: { label: a("credentials.list.table_headers.acls.group") },
|
|
1734
|
+
created_at: { label: a("credentials.list.table_headers.acls.created_at") },
|
|
1735
|
+
tags: { label: a("credentials.list.table_headers.acls.tags") }
|
|
1736
1736
|
},
|
|
1737
1737
|
"basic-auth": {
|
|
1738
|
-
password: { label:
|
|
1739
|
-
username: { label:
|
|
1740
|
-
created_at: { label:
|
|
1741
|
-
tags: { label:
|
|
1738
|
+
password: { label: a("credentials.list.table_headers.basic-auth.password") },
|
|
1739
|
+
username: { label: a("credentials.list.table_headers.basic-auth.username") },
|
|
1740
|
+
created_at: { label: a("credentials.list.table_headers.basic-auth.created_at") },
|
|
1741
|
+
tags: { label: a("credentials.list.table_headers.basic-auth.tags") }
|
|
1742
1742
|
},
|
|
1743
1743
|
"key-auth": {
|
|
1744
|
-
key: { label:
|
|
1745
|
-
created_at: { label:
|
|
1746
|
-
tags: { label:
|
|
1744
|
+
key: { label: a("credentials.list.table_headers.key-auth.key") },
|
|
1745
|
+
created_at: { label: a("credentials.list.table_headers.key-auth.created_at") },
|
|
1746
|
+
tags: { label: a("credentials.list.table_headers.key-auth.tags") }
|
|
1747
1747
|
},
|
|
1748
1748
|
"key-auth-enc": {
|
|
1749
|
-
key: { label:
|
|
1750
|
-
created_at: { label:
|
|
1751
|
-
tags: { label:
|
|
1749
|
+
key: { label: a("credentials.list.table_headers.key-auth-enc.key") },
|
|
1750
|
+
created_at: { label: a("credentials.list.table_headers.key-auth-enc.created_at") },
|
|
1751
|
+
tags: { label: a("credentials.list.table_headers.key-auth-enc.tags") }
|
|
1752
1752
|
},
|
|
1753
1753
|
oauth2: {
|
|
1754
|
-
name: { label:
|
|
1755
|
-
client_id: { label:
|
|
1756
|
-
client_secret: { label:
|
|
1757
|
-
created_at: { label:
|
|
1758
|
-
tags: { label:
|
|
1754
|
+
name: { label: a("credentials.list.table_headers.oauth2.name") },
|
|
1755
|
+
client_id: { label: a("credentials.list.table_headers.oauth2.client_id") },
|
|
1756
|
+
client_secret: { label: a("credentials.list.table_headers.oauth2.client_secret") },
|
|
1757
|
+
created_at: { label: a("credentials.list.table_headers.oauth2.created_at") },
|
|
1758
|
+
tags: { label: a("credentials.list.table_headers.oauth2.tags") }
|
|
1759
1759
|
},
|
|
1760
1760
|
"hmac-auth": {
|
|
1761
|
-
username: { label:
|
|
1762
|
-
secret: { label:
|
|
1763
|
-
created_at: { label:
|
|
1764
|
-
tags: { label:
|
|
1761
|
+
username: { label: a("credentials.list.table_headers.hmac-auth.username") },
|
|
1762
|
+
secret: { label: a("credentials.list.table_headers.hmac-auth.secret") },
|
|
1763
|
+
created_at: { label: a("credentials.list.table_headers.hmac-auth.created_at") },
|
|
1764
|
+
tags: { label: a("credentials.list.table_headers.hmac-auth.tags") }
|
|
1765
1765
|
},
|
|
1766
1766
|
jwt: {
|
|
1767
|
-
key: { label:
|
|
1768
|
-
algorithm: { label:
|
|
1769
|
-
created_at: { label:
|
|
1770
|
-
tags: { label:
|
|
1767
|
+
key: { label: a("credentials.list.table_headers.jwt.key") },
|
|
1768
|
+
algorithm: { label: a("credentials.list.table_headers.jwt.algorithm") },
|
|
1769
|
+
created_at: { label: a("credentials.list.table_headers.jwt.created_at") },
|
|
1770
|
+
tags: { label: a("credentials.list.table_headers.jwt.tags") }
|
|
1771
1771
|
}
|
|
1772
|
-
}, d =
|
|
1772
|
+
}, d = I(() => c[t.config.plugin]), u = I(() => {
|
|
1773
1773
|
let f = `${t.config.apiBaseUrl}${Ge.list[t.config.app]}`;
|
|
1774
1774
|
return t.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, t.config.controlPlaneId || "").replace(/{consumerId}/gi, t.config.consumerId || "").replace(/{plugin}/gi, t.config.plugin || "") : t.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, t.config.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, t.config.consumerId || "").replace(/{plugin}/gi, t.config.plugin || "")), f;
|
|
1775
|
-
}), { fetcher: k, fetcherState: h } =
|
|
1775
|
+
}), { fetcher: k, fetcherState: h } = aa(t.config, u), T = () => {
|
|
1776
1776
|
l.value++;
|
|
1777
|
-
}, w =
|
|
1778
|
-
const
|
|
1779
|
-
if (!
|
|
1777
|
+
}, w = b(""), P = (f, S, q) => {
|
|
1778
|
+
const M = S ? f[S] : JSON.stringify(f);
|
|
1779
|
+
if (!q(M)) {
|
|
1780
1780
|
F(f, S);
|
|
1781
1781
|
return;
|
|
1782
1782
|
}
|
|
1783
|
-
|
|
1784
|
-
}, y = (f, S,
|
|
1785
|
-
const { type:
|
|
1786
|
-
|
|
1787
|
-
},
|
|
1788
|
-
|
|
1783
|
+
A(f, S);
|
|
1784
|
+
}, y = (f, S, q) => {
|
|
1785
|
+
const { type: M } = f;
|
|
1786
|
+
M === "success" ? A(S, q) : F(S, q);
|
|
1787
|
+
}, A = (f, S) => {
|
|
1788
|
+
r("copy:success", {
|
|
1789
1789
|
entity: f,
|
|
1790
1790
|
field: S,
|
|
1791
|
-
message: S ?
|
|
1791
|
+
message: S ? a("credentials.copy.success", { val: f[S] }) : a("credentials.copy.success_brief")
|
|
1792
1792
|
});
|
|
1793
1793
|
}, F = (f, S) => {
|
|
1794
|
-
|
|
1794
|
+
r("copy:error", {
|
|
1795
1795
|
entity: f,
|
|
1796
1796
|
field: S,
|
|
1797
|
-
message:
|
|
1797
|
+
message: a("credentials.error.copy")
|
|
1798
1798
|
});
|
|
1799
|
-
},
|
|
1800
|
-
label:
|
|
1799
|
+
}, X = (f) => ({
|
|
1800
|
+
label: a("credentials.actions.edit"),
|
|
1801
1801
|
to: t.config.getEditRoute(f)
|
|
1802
|
-
}), p =
|
|
1803
|
-
p.value = f,
|
|
1802
|
+
}), p = b(void 0), o = b(!1), B = b(!1), V = b(""), Q = ra(t.config, u.value), x = I(() => Ae[t.config.plugin]), E = (f) => {
|
|
1803
|
+
p.value = f, o.value = !0;
|
|
1804
1804
|
}, $ = () => {
|
|
1805
|
-
|
|
1805
|
+
o.value = !1;
|
|
1806
1806
|
}, _ = async () => {
|
|
1807
|
-
var f, S,
|
|
1807
|
+
var f, S, q;
|
|
1808
1808
|
if ((f = p.value) != null && f.id) {
|
|
1809
|
-
|
|
1809
|
+
B.value = !0;
|
|
1810
1810
|
try {
|
|
1811
|
-
await i.delete(
|
|
1812
|
-
} catch (
|
|
1813
|
-
V.value = ((
|
|
1811
|
+
await i.delete(Q(p.value.id)), B.value = !1, o.value = !1, l.value++, r("delete:success", p.value);
|
|
1812
|
+
} catch (M) {
|
|
1813
|
+
V.value = ((q = (S = M.response) == null ? void 0 : S.data) == null ? void 0 : q.message) || M.message || a("credentials.error.delete"), r("error", M);
|
|
1814
1814
|
} finally {
|
|
1815
|
-
|
|
1815
|
+
B.value = !1;
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
1818
|
};
|
|
1819
1819
|
ne(h, (f) => {
|
|
1820
1820
|
if (f.status === Y.Error) {
|
|
1821
|
-
w.value =
|
|
1821
|
+
w.value = a("credentials.error.general"), r("error", f.error);
|
|
1822
1822
|
return;
|
|
1823
1823
|
}
|
|
1824
1824
|
w.value = "";
|
|
1825
1825
|
});
|
|
1826
|
-
const O =
|
|
1826
|
+
const O = b({
|
|
1827
1827
|
ctaPath: t.config.createRoute,
|
|
1828
1828
|
ctaText: void 0,
|
|
1829
1829
|
message: "",
|
|
1830
|
-
title:
|
|
1830
|
+
title: a("credentials.title")
|
|
1831
1831
|
});
|
|
1832
|
-
return
|
|
1833
|
-
await t.canCreate() && (O.value.title =
|
|
1832
|
+
return Me(async () => {
|
|
1833
|
+
await t.canCreate() && (O.value.title = a(`credentials.list.empty_state.${t.config.plugin}.title`), O.value.ctaText = a(`credentials.list.empty_state.${t.config.plugin}.cta`));
|
|
1834
1834
|
}), (f, S) => {
|
|
1835
|
-
const
|
|
1836
|
-
return j(), J("div",
|
|
1837
|
-
m(
|
|
1835
|
+
const q = U("KButton"), M = U("CopyUuid"), Pe = U("KBadge"), Fe = U("KTruncate"), D = U("KDropdownItem"), ee = U("KClipboardProvider");
|
|
1836
|
+
return j(), J("div", na, [
|
|
1837
|
+
m(v(Gr), {
|
|
1838
1838
|
"cache-identifier": e.cacheIdentifier,
|
|
1839
1839
|
"disable-pagination-page-jump": "",
|
|
1840
1840
|
"disable-row-click": "",
|
|
@@ -1842,26 +1842,26 @@ const nr = { class: "kong-ui-entities-consumer-credentials-list" }, ir = { key:
|
|
|
1842
1842
|
"empty-state-options": O.value,
|
|
1843
1843
|
"enable-entity-actions": "",
|
|
1844
1844
|
"error-message": w.value,
|
|
1845
|
-
fetcher:
|
|
1845
|
+
fetcher: v(k),
|
|
1846
1846
|
"fetcher-cache-key": l.value,
|
|
1847
1847
|
"pagination-type": "offset",
|
|
1848
1848
|
"preferences-storage-key": "kong-ui-entities-consumer-credentials-list",
|
|
1849
1849
|
"table-headers": d.value,
|
|
1850
1850
|
onSort: T
|
|
1851
1851
|
}, {
|
|
1852
|
-
"toolbar-button":
|
|
1853
|
-
m(
|
|
1852
|
+
"toolbar-button": s(() => [
|
|
1853
|
+
m(v(le), {
|
|
1854
1854
|
"auth-function": () => e.canCreate()
|
|
1855
1855
|
}, {
|
|
1856
|
-
default:
|
|
1857
|
-
m(
|
|
1856
|
+
default: s(() => [
|
|
1857
|
+
m(q, {
|
|
1858
1858
|
appearance: "primary",
|
|
1859
1859
|
"data-testid": "toolbar-add-credential",
|
|
1860
1860
|
icon: "plus",
|
|
1861
1861
|
to: e.config.createRoute
|
|
1862
1862
|
}, {
|
|
1863
|
-
default:
|
|
1864
|
-
|
|
1863
|
+
default: s(() => [
|
|
1864
|
+
R(N(v(a)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
|
|
1865
1865
|
]),
|
|
1866
1866
|
_: 1
|
|
1867
1867
|
}, 8, ["to"])
|
|
@@ -1869,128 +1869,128 @@ const nr = { class: "kong-ui-entities-consumer-credentials-list" }, ir = { key:
|
|
|
1869
1869
|
_: 1
|
|
1870
1870
|
}, 8, ["auth-function"])
|
|
1871
1871
|
]),
|
|
1872
|
-
group:
|
|
1873
|
-
Z("b", null,
|
|
1872
|
+
group: s(({ rowValue: g }) => [
|
|
1873
|
+
Z("b", null, N(g ?? "-"), 1)
|
|
1874
1874
|
]),
|
|
1875
|
-
name:
|
|
1876
|
-
Z("b", null,
|
|
1875
|
+
name: s(({ rowValue: g }) => [
|
|
1876
|
+
Z("b", null, N(g ?? "-"), 1)
|
|
1877
1877
|
]),
|
|
1878
|
-
username:
|
|
1879
|
-
Z("span", null,
|
|
1878
|
+
username: s(({ rowValue: g }) => [
|
|
1879
|
+
Z("span", null, N(g ?? "-"), 1)
|
|
1880
1880
|
]),
|
|
1881
|
-
password:
|
|
1882
|
-
m(
|
|
1881
|
+
password: s(({ row: g, rowValue: C }) => [
|
|
1882
|
+
m(M, {
|
|
1883
1883
|
format: "redacted",
|
|
1884
1884
|
notify: (L) => y(L, g, "password"),
|
|
1885
1885
|
uuid: C
|
|
1886
1886
|
}, null, 8, ["notify", "uuid"])
|
|
1887
1887
|
]),
|
|
1888
|
-
key:
|
|
1889
|
-
m(
|
|
1888
|
+
key: s(({ row: g, rowValue: C }) => [
|
|
1889
|
+
m(M, {
|
|
1890
1890
|
format: "redacted",
|
|
1891
1891
|
notify: (L) => y(L, g, "key"),
|
|
1892
1892
|
uuid: C
|
|
1893
1893
|
}, null, 8, ["notify", "uuid"])
|
|
1894
1894
|
]),
|
|
1895
|
-
client_secret:
|
|
1896
|
-
m(
|
|
1895
|
+
client_secret: s(({ row: g, rowValue: C }) => [
|
|
1896
|
+
m(M, {
|
|
1897
1897
|
format: "redacted",
|
|
1898
1898
|
notify: (L) => y(L, g, "client_secret"),
|
|
1899
1899
|
uuid: C
|
|
1900
1900
|
}, null, 8, ["notify", "uuid"])
|
|
1901
1901
|
]),
|
|
1902
|
-
secret:
|
|
1903
|
-
m(
|
|
1902
|
+
secret: s(({ row: g, rowValue: C }) => [
|
|
1903
|
+
m(M, {
|
|
1904
1904
|
format: "redacted",
|
|
1905
1905
|
notify: (L) => y(L, g, "secret"),
|
|
1906
1906
|
uuid: C
|
|
1907
1907
|
}, null, 8, ["notify", "uuid"])
|
|
1908
1908
|
]),
|
|
1909
|
-
created_at:
|
|
1910
|
-
|
|
1909
|
+
created_at: s(({ rowValue: g }) => [
|
|
1910
|
+
R(N(v(n)(g)), 1)
|
|
1911
1911
|
]),
|
|
1912
|
-
tags:
|
|
1913
|
-
(g == null ? void 0 : g.length) > 0 ? (j(),
|
|
1914
|
-
default:
|
|
1915
|
-
(j(!0), J(
|
|
1912
|
+
tags: s(({ rowValue: g }) => [
|
|
1913
|
+
(g == null ? void 0 : g.length) > 0 ? (j(), W(Fe, { key: 0 }, {
|
|
1914
|
+
default: s(() => [
|
|
1915
|
+
(j(!0), J(qe, null, _e(g, (C) => (j(), W(Pe, {
|
|
1916
1916
|
key: C,
|
|
1917
|
-
onClick: S[0] || (S[0] =
|
|
1917
|
+
onClick: S[0] || (S[0] = De(() => {
|
|
1918
1918
|
}, ["stop"]))
|
|
1919
1919
|
}, {
|
|
1920
|
-
default:
|
|
1921
|
-
|
|
1920
|
+
default: s(() => [
|
|
1921
|
+
R(N(C), 1)
|
|
1922
1922
|
]),
|
|
1923
1923
|
_: 2
|
|
1924
1924
|
}, 1024))), 128))
|
|
1925
1925
|
]),
|
|
1926
1926
|
_: 2
|
|
1927
|
-
}, 1024)) : (j(), J("span",
|
|
1927
|
+
}, 1024)) : (j(), J("span", ia, "-"))
|
|
1928
1928
|
]),
|
|
1929
|
-
actions:
|
|
1929
|
+
actions: s(({ row: g }) => [
|
|
1930
1930
|
m(ee, null, {
|
|
1931
|
-
default:
|
|
1932
|
-
m(
|
|
1931
|
+
default: s(({ copyToClipboard: C }) => [
|
|
1932
|
+
m(D, {
|
|
1933
1933
|
"data-testid": "action-entity-copy-id",
|
|
1934
1934
|
onClick: (L) => P(g, "id", C)
|
|
1935
1935
|
}, {
|
|
1936
|
-
default:
|
|
1937
|
-
|
|
1936
|
+
default: s(() => [
|
|
1937
|
+
R(N(v(a)("credentials.actions.copy_id")), 1)
|
|
1938
1938
|
]),
|
|
1939
1939
|
_: 2
|
|
1940
1940
|
}, 1032, ["onClick"])
|
|
1941
1941
|
]),
|
|
1942
1942
|
_: 2
|
|
1943
1943
|
}, 1024),
|
|
1944
|
-
e.config.plugin === "basic-auth" ? (j(),
|
|
1945
|
-
default:
|
|
1946
|
-
m(
|
|
1944
|
+
e.config.plugin === "basic-auth" ? (j(), W(ee, { key: 0 }, {
|
|
1945
|
+
default: s(({ copyToClipboard: C }) => [
|
|
1946
|
+
m(D, {
|
|
1947
1947
|
"data-testid": "action-entity-copy-credential",
|
|
1948
1948
|
onClick: (L) => P(g, "password", C)
|
|
1949
1949
|
}, {
|
|
1950
|
-
default:
|
|
1951
|
-
|
|
1950
|
+
default: s(() => [
|
|
1951
|
+
R(N(v(a)("credentials.actions.copy_credential")), 1)
|
|
1952
1952
|
]),
|
|
1953
1953
|
_: 2
|
|
1954
1954
|
}, 1032, ["onClick"])
|
|
1955
1955
|
]),
|
|
1956
1956
|
_: 2
|
|
1957
1957
|
}, 1024)) : H("", !0),
|
|
1958
|
-
["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (j(),
|
|
1959
|
-
default:
|
|
1960
|
-
m(
|
|
1958
|
+
["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (j(), W(ee, { key: 1 }, {
|
|
1959
|
+
default: s(({ copyToClipboard: C }) => [
|
|
1960
|
+
m(D, {
|
|
1961
1961
|
"data-testid": "action-entity-copy-key",
|
|
1962
1962
|
onClick: (L) => P(g, "key", C)
|
|
1963
1963
|
}, {
|
|
1964
|
-
default:
|
|
1965
|
-
|
|
1964
|
+
default: s(() => [
|
|
1965
|
+
R(N(v(a)("credentials.actions.copy_key")), 1)
|
|
1966
1966
|
]),
|
|
1967
1967
|
_: 2
|
|
1968
1968
|
}, 1032, ["onClick"])
|
|
1969
1969
|
]),
|
|
1970
1970
|
_: 2
|
|
1971
1971
|
}, 1024)) : H("", !0),
|
|
1972
|
-
e.config.plugin === "oauth2" ? (j(),
|
|
1973
|
-
default:
|
|
1974
|
-
m(
|
|
1972
|
+
e.config.plugin === "oauth2" ? (j(), W(ee, { key: 2 }, {
|
|
1973
|
+
default: s(({ copyToClipboard: C }) => [
|
|
1974
|
+
m(D, {
|
|
1975
1975
|
"data-testid": "action-entity-copy-secret",
|
|
1976
1976
|
onClick: (L) => P(g, "client_secret", C)
|
|
1977
1977
|
}, {
|
|
1978
|
-
default:
|
|
1979
|
-
|
|
1978
|
+
default: s(() => [
|
|
1979
|
+
R(N(v(a)("credentials.actions.copy_secret")), 1)
|
|
1980
1980
|
]),
|
|
1981
1981
|
_: 2
|
|
1982
1982
|
}, 1032, ["onClick"])
|
|
1983
1983
|
]),
|
|
1984
1984
|
_: 2
|
|
1985
1985
|
}, 1024)) : H("", !0),
|
|
1986
|
-
e.config.plugin === "hmac-auth" ? (j(),
|
|
1987
|
-
default:
|
|
1988
|
-
m(
|
|
1986
|
+
e.config.plugin === "hmac-auth" ? (j(), W(ee, { key: 3 }, {
|
|
1987
|
+
default: s(({ copyToClipboard: C }) => [
|
|
1988
|
+
m(D, {
|
|
1989
1989
|
"data-testid": "action-entity-copy-secret",
|
|
1990
1990
|
onClick: (L) => P(g, "secret", C)
|
|
1991
1991
|
}, {
|
|
1992
|
-
default:
|
|
1993
|
-
|
|
1992
|
+
default: s(() => [
|
|
1993
|
+
R(N(v(a)("credentials.actions.copy_secret")), 1)
|
|
1994
1994
|
]),
|
|
1995
1995
|
_: 2
|
|
1996
1996
|
}, 1032, ["onClick"])
|
|
@@ -1998,43 +1998,43 @@ const nr = { class: "kong-ui-entities-consumer-credentials-list" }, ir = { key:
|
|
|
1998
1998
|
_: 2
|
|
1999
1999
|
}, 1024)) : H("", !0),
|
|
2000
2000
|
m(ee, null, {
|
|
2001
|
-
default:
|
|
2002
|
-
m(
|
|
2001
|
+
default: s(({ copyToClipboard: C }) => [
|
|
2002
|
+
m(D, {
|
|
2003
2003
|
"data-testid": "action-entity-copy-json",
|
|
2004
2004
|
onClick: (L) => P(g, void 0, C)
|
|
2005
2005
|
}, {
|
|
2006
|
-
default:
|
|
2007
|
-
|
|
2006
|
+
default: s(() => [
|
|
2007
|
+
R(N(v(a)("credentials.actions.copy_json")), 1)
|
|
2008
2008
|
]),
|
|
2009
2009
|
_: 2
|
|
2010
2010
|
}, 1032, ["onClick"])
|
|
2011
2011
|
]),
|
|
2012
2012
|
_: 2
|
|
2013
2013
|
}, 1024),
|
|
2014
|
-
m(
|
|
2014
|
+
m(v(le), {
|
|
2015
2015
|
"auth-function": () => e.canEdit(g)
|
|
2016
2016
|
}, {
|
|
2017
|
-
default:
|
|
2018
|
-
m(
|
|
2017
|
+
default: s(() => [
|
|
2018
|
+
m(D, {
|
|
2019
2019
|
"data-testid": "action-entity-edit",
|
|
2020
2020
|
"has-divider": "",
|
|
2021
|
-
item:
|
|
2021
|
+
item: X(g.id)
|
|
2022
2022
|
}, null, 8, ["item"])
|
|
2023
2023
|
]),
|
|
2024
2024
|
_: 2
|
|
2025
2025
|
}, 1032, ["auth-function"]),
|
|
2026
|
-
m(
|
|
2026
|
+
m(v(le), {
|
|
2027
2027
|
"auth-function": () => e.canDelete(g)
|
|
2028
2028
|
}, {
|
|
2029
|
-
default:
|
|
2030
|
-
m(
|
|
2029
|
+
default: s(() => [
|
|
2030
|
+
m(D, {
|
|
2031
|
+
danger: "",
|
|
2031
2032
|
"data-testid": "action-entity-delete",
|
|
2032
2033
|
"has-divider": "",
|
|
2033
|
-
"is-dangerous": "",
|
|
2034
2034
|
onClick: (C) => E(g)
|
|
2035
2035
|
}, {
|
|
2036
|
-
default:
|
|
2037
|
-
|
|
2036
|
+
default: s(() => [
|
|
2037
|
+
R(N(v(a)("credentials.actions.delete")), 1)
|
|
2038
2038
|
]),
|
|
2039
2039
|
_: 2
|
|
2040
2040
|
}, 1032, ["onClick"])
|
|
@@ -2044,13 +2044,13 @@ const nr = { class: "kong-ui-entities-consumer-credentials-list" }, ir = { key:
|
|
|
2044
2044
|
]),
|
|
2045
2045
|
_: 1
|
|
2046
2046
|
}, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers"]),
|
|
2047
|
-
m(
|
|
2048
|
-
"action-pending":
|
|
2049
|
-
description:
|
|
2047
|
+
m(v(ea), {
|
|
2048
|
+
"action-pending": B.value,
|
|
2049
|
+
description: v(a)("credentials.delete.description"),
|
|
2050
2050
|
"entity-type": x.value,
|
|
2051
2051
|
error: V.value,
|
|
2052
|
-
title:
|
|
2053
|
-
visible:
|
|
2052
|
+
title: v(a)(`credentials.delete.${e.config.plugin}.title`),
|
|
2053
|
+
visible: o.value,
|
|
2054
2054
|
onCancel: $,
|
|
2055
2055
|
onProceed: _
|
|
2056
2056
|
}, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"])
|
|
@@ -2058,12 +2058,12 @@ const nr = { class: "kong-ui-entities-consumer-credentials-list" }, ir = { key:
|
|
|
2058
2058
|
};
|
|
2059
2059
|
}
|
|
2060
2060
|
});
|
|
2061
|
-
const
|
|
2061
|
+
const sa = (e, r) => {
|
|
2062
2062
|
const t = e.__vccOpts || e;
|
|
2063
|
-
for (const [
|
|
2064
|
-
t[
|
|
2063
|
+
for (const [a, n] of r)
|
|
2064
|
+
t[a] = n;
|
|
2065
2065
|
return t;
|
|
2066
|
-
},
|
|
2066
|
+
}, ka = /* @__PURE__ */ sa(la, [["__scopeId", "data-v-4a1ad610"]]);
|
|
2067
2067
|
export {
|
|
2068
|
-
|
|
2068
|
+
ka as ConsumerCredentialList
|
|
2069
2069
|
};
|