@kong-ui-public/entities-consumer-credentials 2.1.11 → 2.1.12
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,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { createI18n as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as ie, ref as v, computed as N, watch as se, renderSlot as Y, createCommentVNode as G, unref as m, resolveComponent as M, openBlock as j, createBlock as H, withCtx as s, createVNode as g, createSlots as Ae, withDirectives as Te, createElementVNode as ee, createElementBlock as V, vShow as Ne, renderList as Ie, createTextVNode as L, toDisplayString as x, onMounted as Re, onUnmounted as Be, onBeforeMount as qe, Teleport as ze, Fragment as He, withModifiers as We } from "vue";
|
|
2
|
+
import { createI18n as xe, i18nTComponent as Ee } from "@kong-ui-public/i18n";
|
|
3
|
+
import Je from "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
const
|
|
6
|
+
const Ye = {
|
|
7
7
|
title: "Consumer Credentials",
|
|
8
8
|
list: {
|
|
9
9
|
toolbar_actions: {
|
|
@@ -144,29 +144,29 @@ const Je = {
|
|
|
144
144
|
success: "Copied {val} to clipboard",
|
|
145
145
|
success_brief: "Successfully copied to clipboard"
|
|
146
146
|
}
|
|
147
|
-
},
|
|
148
|
-
credentials:
|
|
147
|
+
}, Ge = {
|
|
148
|
+
credentials: Ye
|
|
149
149
|
};
|
|
150
150
|
function Ve() {
|
|
151
|
-
const e =
|
|
151
|
+
const e = xe("en-us", Ge);
|
|
152
152
|
return {
|
|
153
153
|
i18n: e,
|
|
154
|
-
i18nT:
|
|
154
|
+
i18nT: Ee(e)
|
|
155
155
|
// Translation component <i18n-t>
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const Ze = {
|
|
159
159
|
useI18n: Ve
|
|
160
|
-
},
|
|
160
|
+
}, Qe = {
|
|
161
161
|
list: {
|
|
162
162
|
konnect: "/api/runtime_groups/{controlPlaneId}/consumers/{consumerId}/{plugin}",
|
|
163
163
|
kongManager: "/{workspace}/consumers/{consumerId}/{plugin}"
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
var
|
|
167
|
-
function
|
|
166
|
+
var Oe = /* @__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))(Oe || {}), Q = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Q || {});
|
|
167
|
+
function de(e = {}) {
|
|
168
168
|
return {
|
|
169
|
-
axiosInstance:
|
|
169
|
+
axiosInstance: Je.create({
|
|
170
170
|
withCredentials: !0,
|
|
171
171
|
timeout: 3e4,
|
|
172
172
|
...e
|
|
@@ -185,12 +185,12 @@ function Xe() {
|
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const oe = "khcp-user-table-preferences", et = {
|
|
189
189
|
pageSize: 30,
|
|
190
190
|
sortColumnKey: void 0,
|
|
191
191
|
sortColumnOrder: void 0
|
|
192
192
|
};
|
|
193
|
-
function
|
|
193
|
+
function tt() {
|
|
194
194
|
const e = (t) => {
|
|
195
195
|
if (typeof t == "string")
|
|
196
196
|
try {
|
|
@@ -200,38 +200,38 @@ function et() {
|
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
202
|
}, r = () => {
|
|
203
|
-
const t = e(localStorage.getItem(
|
|
203
|
+
const t = e(localStorage.getItem(oe));
|
|
204
204
|
return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
|
|
205
205
|
};
|
|
206
206
|
return {
|
|
207
207
|
setTablePreferences: (t, a) => {
|
|
208
208
|
try {
|
|
209
209
|
const n = r();
|
|
210
|
-
n.set(t, a), localStorage.setItem(
|
|
210
|
+
n.set(t, a), localStorage.setItem(oe, 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
216
|
const a = r();
|
|
217
|
-
return (a == null ? void 0 : a.get(t)) || void 0 ||
|
|
217
|
+
return (a == null ? void 0 : a.get(t)) || void 0 || et;
|
|
218
218
|
},
|
|
219
219
|
deleteAllTablePreferences: () => {
|
|
220
|
-
localStorage.removeItem(
|
|
220
|
+
localStorage.removeItem(oe);
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
const
|
|
224
|
+
const rt = {
|
|
225
225
|
actions: {
|
|
226
226
|
copyId: "Copy ID",
|
|
227
227
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
228
228
|
copyToClipboard: "Copied successfully!",
|
|
229
229
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
230
230
|
}
|
|
231
|
-
},
|
|
231
|
+
}, at = {
|
|
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
|
+
}, nt = {
|
|
235
235
|
actions: {
|
|
236
236
|
save: "Save",
|
|
237
237
|
cancel: "Cancel",
|
|
@@ -240,13 +240,13 @@ const tt = {
|
|
|
240
240
|
errors: {
|
|
241
241
|
edit: "The entity could not be edited at this time."
|
|
242
242
|
}
|
|
243
|
-
},
|
|
243
|
+
}, it = {
|
|
244
244
|
emptyState: {
|
|
245
245
|
noSearchResultsTitle: "No results found",
|
|
246
246
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
247
247
|
noSearchResultsCtaText: "Clear"
|
|
248
248
|
}
|
|
249
|
-
},
|
|
249
|
+
}, lt = {
|
|
250
250
|
title: "Configuration",
|
|
251
251
|
actions: {
|
|
252
252
|
copy: "Copy JSON"
|
|
@@ -281,7 +281,7 @@ const tt = {
|
|
|
281
281
|
entryTitle: "Entry {index}",
|
|
282
282
|
structuredFormat: "Structured"
|
|
283
283
|
}
|
|
284
|
-
},
|
|
284
|
+
}, st = {
|
|
285
285
|
filterButtonText: "Filter",
|
|
286
286
|
fieldLabel: "Filter by:",
|
|
287
287
|
inputPlaceholder: "Enter a value",
|
|
@@ -289,15 +289,15 @@ const tt = {
|
|
|
289
289
|
applyButtonText: "Apply",
|
|
290
290
|
clearButtonText: "Clear",
|
|
291
291
|
clearAllButtonText: "Clear all filters"
|
|
292
|
-
},
|
|
292
|
+
}, ot = {
|
|
293
293
|
errors: {
|
|
294
294
|
fetch: "Could not fetch available items",
|
|
295
295
|
invalid: "Please select a valid value"
|
|
296
296
|
}
|
|
297
|
-
},
|
|
297
|
+
}, ct = {
|
|
298
298
|
unexpected: "An unexpected error has occurred",
|
|
299
299
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
300
|
-
},
|
|
300
|
+
}, ut = {
|
|
301
301
|
enable: {
|
|
302
302
|
title: "Enable {entityType}",
|
|
303
303
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -308,33 +308,33 @@ const tt = {
|
|
|
308
308
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
309
309
|
confirmText: "Yes, disable"
|
|
310
310
|
}
|
|
311
|
-
},
|
|
312
|
-
global:
|
|
313
|
-
deleteModal:
|
|
314
|
-
baseForm:
|
|
315
|
-
baseTable:
|
|
316
|
-
baseConfigCard:
|
|
317
|
-
filter:
|
|
318
|
-
debouncedFilter:
|
|
319
|
-
errors:
|
|
320
|
-
toggleModal:
|
|
311
|
+
}, dt = {
|
|
312
|
+
global: rt,
|
|
313
|
+
deleteModal: at,
|
|
314
|
+
baseForm: nt,
|
|
315
|
+
baseTable: it,
|
|
316
|
+
baseConfigCard: lt,
|
|
317
|
+
filter: st,
|
|
318
|
+
debouncedFilter: ot,
|
|
319
|
+
errors: ct,
|
|
320
|
+
toggleModal: ut
|
|
321
321
|
};
|
|
322
|
-
function
|
|
323
|
-
const e =
|
|
322
|
+
function pe() {
|
|
323
|
+
const e = xe("en-us", dt);
|
|
324
324
|
return {
|
|
325
325
|
i18n: e,
|
|
326
|
-
i18nT:
|
|
326
|
+
i18nT: Ee(e)
|
|
327
327
|
// Translation component <i18n-t>
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function je() {
|
|
331
331
|
const e = (t, a) => (a == null ? void 0 : a[t]) ?? void 0, r = (t, a) => {
|
|
332
332
|
if (t.length !== a.length)
|
|
333
333
|
return !1;
|
|
334
334
|
const n = /* @__PURE__ */ new Set([...t, ...a]);
|
|
335
335
|
for (const i of n) {
|
|
336
|
-
const l = t.filter((
|
|
337
|
-
if (l !==
|
|
336
|
+
const l = t.filter((d) => d === i).length, o = a.filter((d) => d === i).length;
|
|
337
|
+
if (l !== o)
|
|
338
338
|
return !1;
|
|
339
339
|
}
|
|
340
340
|
return !0;
|
|
@@ -371,92 +371,92 @@ function Oe() {
|
|
|
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
|
|
374
|
+
function pt(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 } = de({
|
|
380
380
|
headers: e.requestHeaders
|
|
381
|
-
}), { i18n: { t: i } } =
|
|
382
|
-
await
|
|
383
|
-
}, 200),
|
|
381
|
+
}), { i18n: { t: i } } = pe(), { debounce: l } = Xe(), o = l(async (w) => {
|
|
382
|
+
await ae(w);
|
|
383
|
+
}, 200), d = v(!1), p = v(""), b = v(""), y = v([]), A = v([]), _ = v(void 0), U = m(r);
|
|
384
384
|
let f = `${e.apiBaseUrl}${U}`;
|
|
385
385
|
e.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
386
|
-
const { isValidUuid:
|
|
386
|
+
const { isValidUuid: T } = je(), P = async () => {
|
|
387
387
|
try {
|
|
388
|
-
|
|
389
|
-
const { data:
|
|
390
|
-
|
|
388
|
+
d.value = !0;
|
|
389
|
+
const { data: w } = await n.get(`${f}?size=${t}`);
|
|
390
|
+
w != null && w.next || (_.value = a.fetchedItemsKey in w ? w[a.fetchedItemsKey] : []), A.value = a.fetchedItemsKey in w ? w[a.fetchedItemsKey] : [], y.value = A.value;
|
|
391
391
|
} catch {
|
|
392
|
-
y.value = [],
|
|
392
|
+
y.value = [], p.value = i("debouncedFilter.errors.fetch");
|
|
393
393
|
} finally {
|
|
394
|
-
|
|
394
|
+
d.value = !1;
|
|
395
395
|
}
|
|
396
|
-
},
|
|
397
|
-
var
|
|
398
|
-
if (
|
|
399
|
-
if (
|
|
396
|
+
}, Z = v(""), ae = async (w) => {
|
|
397
|
+
var c, k, q;
|
|
398
|
+
if (Z.value !== w)
|
|
399
|
+
if (Z.value = w || "", _.value === void 0)
|
|
400
400
|
try {
|
|
401
|
-
if (
|
|
402
|
-
let
|
|
403
|
-
|
|
404
|
-
const { data:
|
|
405
|
-
a.fetchedItemsKey in
|
|
406
|
-
} else if (
|
|
407
|
-
const
|
|
408
|
-
|
|
409
|
-
const { data:
|
|
410
|
-
return [
|
|
411
|
-
})()) :
|
|
412
|
-
...a.searchKeys.filter((
|
|
413
|
-
const { data:
|
|
414
|
-
return
|
|
401
|
+
if (d.value = !0, p.value = "", b.value = "", e.app === "konnect") {
|
|
402
|
+
let E = f + "";
|
|
403
|
+
w && (E += `/${w}`);
|
|
404
|
+
const { data: K } = await n.get(`${E}?size=${t}`);
|
|
405
|
+
a.fetchedItemsKey in K ? y.value = K[a.fetchedItemsKey] : K != null && K.id ? y.value = [K] : y.value = [];
|
|
406
|
+
} else if (w) {
|
|
407
|
+
const E = [];
|
|
408
|
+
T(w) && a.searchKeys.includes("id") ? E.push((async () => {
|
|
409
|
+
const { data: I } = await n.get(`${f}/${w}`);
|
|
410
|
+
return [I[a.fetchedItemsKey] ?? I];
|
|
411
|
+
})()) : E.push(
|
|
412
|
+
...a.searchKeys.filter((I) => I !== "id").map(async (I) => {
|
|
413
|
+
const { data: O } = await n.get(`${f}?${I}=${w}`);
|
|
414
|
+
return O[a.fetchedItemsKey];
|
|
415
415
|
})
|
|
416
416
|
);
|
|
417
|
-
const
|
|
418
|
-
y.value = [], (
|
|
419
|
-
var
|
|
420
|
-
(
|
|
421
|
-
|
|
417
|
+
const K = await Promise.all(E), z = /* @__PURE__ */ new Set();
|
|
418
|
+
y.value = [], (c = K == null ? void 0 : K.forEach) == null || c.call(K, (I) => {
|
|
419
|
+
var O;
|
|
420
|
+
(O = I == null ? void 0 : I.forEach) == null || O.call(I, (R) => {
|
|
421
|
+
z.has(R.id) || (z.add(R.id), y.value.push(R));
|
|
422
422
|
});
|
|
423
423
|
});
|
|
424
424
|
} else
|
|
425
|
-
y.value =
|
|
426
|
-
} catch (
|
|
427
|
-
((
|
|
425
|
+
y.value = A.value;
|
|
426
|
+
} catch (E) {
|
|
427
|
+
((k = E == null ? void 0 : E.response) == null ? void 0 : k.status) === 404 ? b.value = i("debouncedFilter.errors.invalid") : (y.value = [], p.value = i("debouncedFilter.errors.fetch"));
|
|
428
428
|
} finally {
|
|
429
|
-
|
|
429
|
+
d.value = !1;
|
|
430
430
|
}
|
|
431
431
|
else
|
|
432
|
-
|
|
433
|
-
var
|
|
434
|
-
let
|
|
435
|
-
for (const
|
|
436
|
-
const
|
|
437
|
-
|
|
432
|
+
d.value = !0, b.value = "", w ? (y.value = (q = _.value) == null ? void 0 : q.filter((E) => {
|
|
433
|
+
var K;
|
|
434
|
+
let z = !1;
|
|
435
|
+
for (const I of a.searchKeys) {
|
|
436
|
+
const O = typeof E[I] == "string" ? (K = E[I]) == null ? void 0 : K.toLowerCase() : E[I];
|
|
437
|
+
O != null && O.includes(w.toLowerCase()) && (z = !0);
|
|
438
438
|
}
|
|
439
|
-
return
|
|
440
|
-
}), (!y.value || !y.value.length) && (
|
|
439
|
+
return z;
|
|
440
|
+
}), (!y.value || !y.value.length) && (b.value = i("debouncedFilter.errors.invalid"))) : y.value = _.value, d.value = !1;
|
|
441
441
|
};
|
|
442
442
|
return {
|
|
443
|
-
loading:
|
|
444
|
-
error:
|
|
445
|
-
validationError:
|
|
443
|
+
loading: d,
|
|
444
|
+
error: p,
|
|
445
|
+
validationError: b,
|
|
446
446
|
results: y,
|
|
447
|
-
allRecords:
|
|
448
|
-
loadItems:
|
|
449
|
-
debouncedQueryChange:
|
|
447
|
+
allRecords: _,
|
|
448
|
+
loadItems: P,
|
|
449
|
+
debouncedQueryChange: o
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
const t =
|
|
452
|
+
function ft(e, r) {
|
|
453
|
+
const t = m(r), a = N(
|
|
454
454
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
455
455
|
);
|
|
456
456
|
return a.value.search = "", (n) => `${a.value.href}/${n}`;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
const { i18n: { t: e } } =
|
|
458
|
+
function yt() {
|
|
459
|
+
const { i18n: { t: e } } = pe();
|
|
460
460
|
return {
|
|
461
461
|
getMessageFromError: (r) => {
|
|
462
462
|
var t, a, n;
|
|
@@ -483,7 +483,7 @@ function ft() {
|
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function ht(e) {
|
|
487
487
|
const r = window.location.origin, t = r.endsWith("/") ? r : `${r}/`;
|
|
488
488
|
try {
|
|
489
489
|
const a = e.join("/"), n = `${t}${a}`, i = e.some((l) => l.trim() === "");
|
|
@@ -494,204 +494,204 @@ function yt(e) {
|
|
|
494
494
|
return console.warn("Failed to build valid URL:", a), "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
498
|
-
const t =
|
|
497
|
+
function Ke(e, r) {
|
|
498
|
+
const t = v(m(e)), a = v(m(r)), n = N(
|
|
499
499
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
500
500
|
), i = N(
|
|
501
501
|
() => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
|
|
502
502
|
);
|
|
503
503
|
return (l) => {
|
|
504
|
-
const { page:
|
|
504
|
+
const { page: o, pageSize: d, offset: p, sortColumnKey: b, sortColumnOrder: y, query: A } = l;
|
|
505
505
|
try {
|
|
506
|
-
let
|
|
507
|
-
return n.value &&
|
|
508
|
-
|
|
509
|
-
}),
|
|
510
|
-
} catch (
|
|
511
|
-
return console.error("RouteList(fetcher)",
|
|
506
|
+
let _ = new URL(i.value.href);
|
|
507
|
+
return n.value && A ? (_.search = "", _ = t.value.app === "konnect" ? new URL(`${_.href}?filter[name][contains]=${A}`) : new URL(`${_.href}/${A}/`)) : (n.value || new URLSearchParams(A).forEach((U, f) => {
|
|
508
|
+
_.searchParams.append(f, U);
|
|
509
|
+
}), b && _.searchParams.append("sort_by", b), y === "desc" && _.searchParams.append("sort_desc", "1"), _.searchParams.append("size", String(d))), p && o !== 1 && _.searchParams.append("offset", String(p)), _.href;
|
|
510
|
+
} catch (_) {
|
|
511
|
+
return console.error("RouteList(fetcher)", _), a.value;
|
|
512
512
|
}
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
const a =
|
|
515
|
+
function gt(e, r, t = "data") {
|
|
516
|
+
const a = m(r), { axiosInstance: n } = de({
|
|
517
517
|
headers: e.requestHeaders
|
|
518
|
-
}), i =
|
|
519
|
-
status:
|
|
518
|
+
}), i = Ke(e, a), l = v({
|
|
519
|
+
status: Q.Idle
|
|
520
520
|
});
|
|
521
|
-
return { fetcher: async (
|
|
521
|
+
return { fetcher: async (o) => {
|
|
522
522
|
try {
|
|
523
|
-
l.value = { status:
|
|
524
|
-
const
|
|
523
|
+
l.value = { status: Q.Loading };
|
|
524
|
+
const d = i(o), { data: p } = await n.get(d), b = t && t.replace(/[^\w-_]/gi, "");
|
|
525
525
|
let y;
|
|
526
|
-
|
|
527
|
-
const
|
|
526
|
+
p[b] && Array.isArray(p[b]) ? y = p[b] : Array.isArray(p) ? y = p : y = Object.keys(p).length ? [p] : [];
|
|
527
|
+
const A = {
|
|
528
528
|
data: y,
|
|
529
529
|
total: y.length,
|
|
530
|
-
...
|
|
530
|
+
...p.offset ? {
|
|
531
531
|
pagination: {
|
|
532
|
-
offset:
|
|
532
|
+
offset: p.offset
|
|
533
533
|
}
|
|
534
534
|
} : null
|
|
535
535
|
};
|
|
536
536
|
return l.value = {
|
|
537
|
-
status:
|
|
538
|
-
response:
|
|
539
|
-
},
|
|
540
|
-
} catch (
|
|
541
|
-
const
|
|
537
|
+
status: Q.Idle,
|
|
538
|
+
response: A
|
|
539
|
+
}, A;
|
|
540
|
+
} catch (d) {
|
|
541
|
+
const p = {
|
|
542
542
|
data: [],
|
|
543
543
|
total: 0
|
|
544
544
|
};
|
|
545
|
-
return
|
|
546
|
-
status:
|
|
547
|
-
response:
|
|
548
|
-
error:
|
|
549
|
-
},
|
|
550
|
-
status:
|
|
551
|
-
response:
|
|
552
|
-
error:
|
|
553
|
-
},
|
|
545
|
+
return o.query && d.response.status === 404 ? (l.value = {
|
|
546
|
+
status: Q.NoResults,
|
|
547
|
+
response: p,
|
|
548
|
+
error: d
|
|
549
|
+
}, p) : (l.value = {
|
|
550
|
+
status: Q.Error,
|
|
551
|
+
response: p,
|
|
552
|
+
error: d
|
|
553
|
+
}, p);
|
|
554
554
|
}
|
|
555
555
|
}, fetcherState: l };
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function mt() {
|
|
558
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
560
|
capitalize: (t) => t ? t.replace(r, (a) => a.toUpperCase()) : "",
|
|
561
561
|
convertKeyToTitle: e
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
|
-
const
|
|
564
|
+
const $e = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, me = (e) => {
|
|
565
565
|
if (typeof e != "string")
|
|
566
566
|
throw new TypeError("Invalid argument expected string");
|
|
567
|
-
const r = e.match(
|
|
567
|
+
const r = e.match($e);
|
|
568
568
|
if (!r)
|
|
569
569
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
570
570
|
return r.shift(), r;
|
|
571
|
-
},
|
|
571
|
+
}, ve = (e) => e === "*" || e === "x" || e === "X", be = (e) => {
|
|
572
572
|
const r = parseInt(e, 10);
|
|
573
573
|
return isNaN(r) ? e : r;
|
|
574
|
-
},
|
|
575
|
-
if (
|
|
574
|
+
}, vt = (e, r) => typeof e != typeof r ? [String(e), String(r)] : [e, r], bt = (e, r) => {
|
|
575
|
+
if (ve(e) || ve(r))
|
|
576
576
|
return 0;
|
|
577
|
-
const [t, a] =
|
|
577
|
+
const [t, a] = vt(be(e), be(r));
|
|
578
578
|
return t > a ? 1 : t < a ? -1 : 0;
|
|
579
|
-
},
|
|
579
|
+
}, we = (e, r) => {
|
|
580
580
|
for (let t = 0; t < Math.max(e.length, r.length); t++) {
|
|
581
|
-
const a =
|
|
581
|
+
const a = bt(e[t] || "0", r[t] || "0");
|
|
582
582
|
if (a !== 0)
|
|
583
583
|
return a;
|
|
584
584
|
}
|
|
585
585
|
return 0;
|
|
586
|
-
},
|
|
587
|
-
const t =
|
|
588
|
-
return l !== 0 ? l : n && i ?
|
|
589
|
-
},
|
|
590
|
-
|
|
591
|
-
const a =
|
|
592
|
-
return
|
|
593
|
-
},
|
|
586
|
+
}, wt = (e, r) => {
|
|
587
|
+
const t = me(e), a = me(r), n = t.pop(), i = a.pop(), l = we(t, a);
|
|
588
|
+
return l !== 0 ? l : n && i ? we(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
|
|
589
|
+
}, ke = (e, r, t) => {
|
|
590
|
+
kt(t);
|
|
591
|
+
const a = wt(e, r);
|
|
592
|
+
return Fe[t].includes(a);
|
|
593
|
+
}, Fe = {
|
|
594
594
|
">": [1],
|
|
595
595
|
">=": [0, 1],
|
|
596
596
|
"=": [0],
|
|
597
597
|
"<=": [-1, 0],
|
|
598
598
|
"<": [-1],
|
|
599
599
|
"!=": [-1, 1]
|
|
600
|
-
},
|
|
600
|
+
}, Ce = Object.keys(Fe), kt = (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 ${
|
|
605
|
-
},
|
|
606
|
-
function
|
|
603
|
+
if (Ce.indexOf(e) === -1)
|
|
604
|
+
throw new Error(`Invalid operator, expected one of ${Ce.join("|")}`);
|
|
605
|
+
}, Ct = (e) => typeof e == "string" && /^[v\d]/.test(e) && $e.test(e);
|
|
606
|
+
function _t(e) {
|
|
607
607
|
const { gatewayInfo: r, supportedRange: t } = e;
|
|
608
608
|
if (!r)
|
|
609
609
|
return !0;
|
|
610
610
|
const { edition: a, version: n } = r;
|
|
611
|
-
if (!
|
|
611
|
+
if (!Ct(n))
|
|
612
612
|
return console.error("Invalid version"), !1;
|
|
613
613
|
const i = t[a];
|
|
614
614
|
if (!i)
|
|
615
615
|
return !1;
|
|
616
|
-
const [l,
|
|
617
|
-
return !(l &&
|
|
616
|
+
const [l, o] = i;
|
|
617
|
+
return !(l && ke(n, l, "<") || o && ke(n, o, ">"));
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
const r =
|
|
621
|
-
return
|
|
619
|
+
function St(e) {
|
|
620
|
+
const r = v(0), t = v(0), a = v(!1);
|
|
621
|
+
return se(e, (n) => {
|
|
622
622
|
n && !a.value && (r.value = n.offsetWidth, t.value = n.scrollWidth, a.value = !0);
|
|
623
623
|
}), {
|
|
624
624
|
isTruncated: N(() => r.value < t.value)
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
|
-
const
|
|
628
|
-
useAxios:
|
|
629
|
-
useDebouncedFilter:
|
|
630
|
-
useDeleteUrlBuilder:
|
|
631
|
-
useErrors:
|
|
632
|
-
useExternalLinkCreator:
|
|
633
|
-
useFetcher:
|
|
634
|
-
useFetchUrlBuilder:
|
|
635
|
-
useHelpers:
|
|
636
|
-
useStringHelpers:
|
|
637
|
-
useI18n:
|
|
638
|
-
useGatewayFeatureSupported:
|
|
639
|
-
useTruncationDetector:
|
|
640
|
-
},
|
|
627
|
+
const fe = {
|
|
628
|
+
useAxios: de,
|
|
629
|
+
useDebouncedFilter: pt,
|
|
630
|
+
useDeleteUrlBuilder: ft,
|
|
631
|
+
useErrors: yt,
|
|
632
|
+
useExternalLinkCreator: ht,
|
|
633
|
+
useFetcher: gt,
|
|
634
|
+
useFetchUrlBuilder: Ke,
|
|
635
|
+
useHelpers: je,
|
|
636
|
+
useStringHelpers: mt,
|
|
637
|
+
useI18n: pe,
|
|
638
|
+
useGatewayFeatureSupported: _t,
|
|
639
|
+
useTruncationDetector: St
|
|
640
|
+
}, ye = (e, r) => {
|
|
641
641
|
const t = e.__vccOpts || e;
|
|
642
642
|
for (const [a, n] of r)
|
|
643
643
|
t[a] = n;
|
|
644
644
|
return t;
|
|
645
|
-
},
|
|
645
|
+
}, At = "#3a3f51";
|
|
646
646
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
647
|
-
function
|
|
647
|
+
function Pe(e) {
|
|
648
648
|
return typeof e > "u" || e === null;
|
|
649
649
|
}
|
|
650
650
|
function Tt(e) {
|
|
651
651
|
return typeof e == "object" && e !== null;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
return Array.isArray(e) ? e :
|
|
653
|
+
function Nt(e) {
|
|
654
|
+
return Array.isArray(e) ? e : Pe(e) ? [] : [e];
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function It(e, r) {
|
|
657
657
|
var t, a, n, i;
|
|
658
658
|
if (r)
|
|
659
659
|
for (i = Object.keys(r), t = 0, a = i.length; t < a; t += 1)
|
|
660
660
|
n = i[t], e[n] = r[n];
|
|
661
661
|
return e;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function xt(e, r) {
|
|
664
664
|
var t = "", a;
|
|
665
665
|
for (a = 0; a < r; a += 1)
|
|
666
666
|
t += e;
|
|
667
667
|
return t;
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function Et(e) {
|
|
670
670
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
671
671
|
}
|
|
672
|
-
var
|
|
673
|
-
isNothing:
|
|
674
|
-
isObject:
|
|
675
|
-
toArray:
|
|
676
|
-
repeat:
|
|
677
|
-
isNegativeZero:
|
|
678
|
-
extend:
|
|
672
|
+
var Ot = Pe, jt = Tt, Kt = Nt, $t = xt, Ft = Et, Pt = It, he = {
|
|
673
|
+
isNothing: Ot,
|
|
674
|
+
isObject: jt,
|
|
675
|
+
toArray: Kt,
|
|
676
|
+
repeat: $t,
|
|
677
|
+
isNegativeZero: Ft,
|
|
678
|
+
extend: Pt
|
|
679
679
|
};
|
|
680
|
-
function
|
|
680
|
+
function Me(e, r) {
|
|
681
681
|
var t = "", a = e.reason || "(unknown reason)";
|
|
682
682
|
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 += `
|
|
683
683
|
|
|
684
684
|
` + e.mark.snippet), a + " " + t) : a;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
687
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message =
|
|
686
|
+
function ne(e, r) {
|
|
687
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = Me(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
688
688
|
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
return this.name + ": " +
|
|
689
|
+
ne.prototype = Object.create(Error.prototype);
|
|
690
|
+
ne.prototype.constructor = ne;
|
|
691
|
+
ne.prototype.toString = function(e) {
|
|
692
|
+
return this.name + ": " + Me(this, e);
|
|
693
693
|
};
|
|
694
|
-
var
|
|
694
|
+
var X = ne, Mt = [
|
|
695
695
|
"kind",
|
|
696
696
|
"multi",
|
|
697
697
|
"resolve",
|
|
@@ -702,12 +702,12 @@ var Z = ae, Ft = [
|
|
|
702
702
|
"representName",
|
|
703
703
|
"defaultStyle",
|
|
704
704
|
"styleAliases"
|
|
705
|
-
],
|
|
705
|
+
], Dt = [
|
|
706
706
|
"scalar",
|
|
707
707
|
"sequence",
|
|
708
708
|
"mapping"
|
|
709
709
|
];
|
|
710
|
-
function
|
|
710
|
+
function Lt(e) {
|
|
711
711
|
var r = {};
|
|
712
712
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
713
713
|
e[t].forEach(function(a) {
|
|
@@ -715,19 +715,19 @@ function Mt(e) {
|
|
|
715
715
|
});
|
|
716
716
|
}), r;
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function Ut(e, r) {
|
|
719
719
|
if (r = r || {}, Object.keys(r).forEach(function(t) {
|
|
720
|
-
if (
|
|
721
|
-
throw new
|
|
720
|
+
if (Mt.indexOf(t) === -1)
|
|
721
|
+
throw new X('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
722
722
|
}), this.options = r, this.tag = e, this.kind = r.kind || null, this.resolve = r.resolve || function() {
|
|
723
723
|
return !0;
|
|
724
724
|
}, this.construct = r.construct || function(t) {
|
|
725
725
|
return t;
|
|
726
|
-
}, 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 =
|
|
727
|
-
throw new
|
|
726
|
+
}, 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 = Lt(r.styleAliases || null), Dt.indexOf(this.kind) === -1)
|
|
727
|
+
throw new X('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
728
728
|
}
|
|
729
|
-
var
|
|
730
|
-
function
|
|
729
|
+
var $ = Ut;
|
|
730
|
+
function _e(e, r) {
|
|
731
731
|
var t = [];
|
|
732
732
|
return e[r].forEach(function(a) {
|
|
733
733
|
var n = t.length;
|
|
@@ -756,72 +756,72 @@ function Rt() {
|
|
|
756
756
|
arguments[r].forEach(a);
|
|
757
757
|
return e;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function ue(e) {
|
|
760
760
|
return this.extend(e);
|
|
761
761
|
}
|
|
762
|
-
|
|
762
|
+
ue.prototype.extend = function(e) {
|
|
763
763
|
var r = [], t = [];
|
|
764
|
-
if (e instanceof
|
|
764
|
+
if (e instanceof $)
|
|
765
765
|
t.push(e);
|
|
766
766
|
else if (Array.isArray(e))
|
|
767
767
|
t = t.concat(e);
|
|
768
768
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
|
|
769
769
|
e.implicit && (r = r.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
|
|
770
770
|
else
|
|
771
|
-
throw new
|
|
771
|
+
throw new X("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
772
772
|
r.forEach(function(n) {
|
|
773
|
-
if (!(n instanceof
|
|
774
|
-
throw new
|
|
773
|
+
if (!(n instanceof $))
|
|
774
|
+
throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
775
775
|
if (n.loadKind && n.loadKind !== "scalar")
|
|
776
|
-
throw new
|
|
776
|
+
throw new X("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
777
777
|
if (n.multi)
|
|
778
|
-
throw new
|
|
778
|
+
throw new X("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
779
779
|
}), t.forEach(function(n) {
|
|
780
|
-
if (!(n instanceof
|
|
781
|
-
throw new
|
|
780
|
+
if (!(n instanceof $))
|
|
781
|
+
throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
782
782
|
});
|
|
783
|
-
var a = Object.create(
|
|
784
|
-
return a.implicit = (this.implicit || []).concat(r), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit =
|
|
783
|
+
var a = Object.create(ue.prototype);
|
|
784
|
+
return a.implicit = (this.implicit || []).concat(r), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = _e(a, "implicit"), a.compiledExplicit = _e(a, "explicit"), a.compiledTypeMap = Rt(a.compiledImplicit, a.compiledExplicit), a;
|
|
785
785
|
};
|
|
786
|
-
var
|
|
786
|
+
var Bt = ue, qt = new $("tag:yaml.org,2002:str", {
|
|
787
787
|
kind: "scalar",
|
|
788
788
|
construct: function(e) {
|
|
789
789
|
return e !== null ? e : "";
|
|
790
790
|
}
|
|
791
|
-
}),
|
|
791
|
+
}), zt = new $("tag:yaml.org,2002:seq", {
|
|
792
792
|
kind: "sequence",
|
|
793
793
|
construct: function(e) {
|
|
794
794
|
return e !== null ? e : [];
|
|
795
795
|
}
|
|
796
|
-
}), Ht = new
|
|
796
|
+
}), Ht = new $("tag:yaml.org,2002:map", {
|
|
797
797
|
kind: "mapping",
|
|
798
798
|
construct: function(e) {
|
|
799
799
|
return e !== null ? e : {};
|
|
800
800
|
}
|
|
801
|
-
}), Wt = new
|
|
801
|
+
}), Wt = new Bt({
|
|
802
802
|
explicit: [
|
|
803
|
-
Bt,
|
|
804
803
|
qt,
|
|
804
|
+
zt,
|
|
805
805
|
Ht
|
|
806
806
|
]
|
|
807
807
|
});
|
|
808
|
-
function
|
|
808
|
+
function Jt(e) {
|
|
809
809
|
if (e === null)
|
|
810
810
|
return !0;
|
|
811
811
|
var r = e.length;
|
|
812
812
|
return r === 1 && e === "~" || r === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function Yt() {
|
|
815
815
|
return null;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Gt(e) {
|
|
818
818
|
return e === null;
|
|
819
819
|
}
|
|
820
|
-
var Vt = new
|
|
820
|
+
var Vt = new $("tag:yaml.org,2002:null", {
|
|
821
821
|
kind: "scalar",
|
|
822
|
-
resolve:
|
|
823
|
-
construct:
|
|
824
|
-
predicate:
|
|
822
|
+
resolve: Jt,
|
|
823
|
+
construct: Yt,
|
|
824
|
+
predicate: Gt,
|
|
825
825
|
represent: {
|
|
826
826
|
canonical: function() {
|
|
827
827
|
return "~";
|
|
@@ -841,22 +841,22 @@ var Vt = new K("tag:yaml.org,2002:null", {
|
|
|
841
841
|
},
|
|
842
842
|
defaultStyle: "lowercase"
|
|
843
843
|
});
|
|
844
|
-
function
|
|
844
|
+
function Zt(e) {
|
|
845
845
|
if (e === null)
|
|
846
846
|
return !1;
|
|
847
847
|
var r = e.length;
|
|
848
848
|
return r === 4 && (e === "true" || e === "True" || e === "TRUE") || r === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function Qt(e) {
|
|
851
851
|
return e === "true" || e === "True" || e === "TRUE";
|
|
852
852
|
}
|
|
853
853
|
function Xt(e) {
|
|
854
854
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
855
855
|
}
|
|
856
|
-
var
|
|
856
|
+
var er = new $("tag:yaml.org,2002:bool", {
|
|
857
857
|
kind: "scalar",
|
|
858
|
-
resolve:
|
|
859
|
-
construct:
|
|
858
|
+
resolve: Zt,
|
|
859
|
+
construct: Qt,
|
|
860
860
|
predicate: Xt,
|
|
861
861
|
represent: {
|
|
862
862
|
lowercase: function(e) {
|
|
@@ -871,16 +871,16 @@ var Qt = new K("tag:yaml.org,2002:bool", {
|
|
|
871
871
|
},
|
|
872
872
|
defaultStyle: "lowercase"
|
|
873
873
|
});
|
|
874
|
-
function
|
|
874
|
+
function tr(e) {
|
|
875
875
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function rr(e) {
|
|
878
878
|
return 48 <= e && e <= 55;
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function ar(e) {
|
|
881
881
|
return 48 <= e && e <= 57;
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function nr(e) {
|
|
884
884
|
if (e === null)
|
|
885
885
|
return !1;
|
|
886
886
|
var r = e.length, t = 0, a = !1, n;
|
|
@@ -901,7 +901,7 @@ function ar(e) {
|
|
|
901
901
|
if (n === "x") {
|
|
902
902
|
for (t++; t < r; t++)
|
|
903
903
|
if (n = e[t], n !== "_") {
|
|
904
|
-
if (!
|
|
904
|
+
if (!tr(e.charCodeAt(t)))
|
|
905
905
|
return !1;
|
|
906
906
|
a = !0;
|
|
907
907
|
}
|
|
@@ -910,7 +910,7 @@ function ar(e) {
|
|
|
910
910
|
if (n === "o") {
|
|
911
911
|
for (t++; t < r; t++)
|
|
912
912
|
if (n = e[t], n !== "_") {
|
|
913
|
-
if (!
|
|
913
|
+
if (!rr(e.charCodeAt(t)))
|
|
914
914
|
return !1;
|
|
915
915
|
a = !0;
|
|
916
916
|
}
|
|
@@ -921,13 +921,13 @@ function ar(e) {
|
|
|
921
921
|
return !1;
|
|
922
922
|
for (; t < r; t++)
|
|
923
923
|
if (n = e[t], n !== "_") {
|
|
924
|
-
if (!
|
|
924
|
+
if (!ar(e.charCodeAt(t)))
|
|
925
925
|
return !1;
|
|
926
926
|
a = !0;
|
|
927
927
|
}
|
|
928
928
|
return !(!a || n === "_");
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function ir(e) {
|
|
931
931
|
var r = e, t = 1, a;
|
|
932
932
|
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")
|
|
933
933
|
return 0;
|
|
@@ -941,14 +941,14 @@ function nr(e) {
|
|
|
941
941
|
}
|
|
942
942
|
return t * parseInt(r, 10);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
944
|
+
function lr(e) {
|
|
945
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !he.isNegativeZero(e);
|
|
946
946
|
}
|
|
947
|
-
var
|
|
947
|
+
var sr = new $("tag:yaml.org,2002:int", {
|
|
948
948
|
kind: "scalar",
|
|
949
|
-
resolve:
|
|
950
|
-
construct:
|
|
951
|
-
predicate:
|
|
949
|
+
resolve: nr,
|
|
950
|
+
construct: ir,
|
|
951
|
+
predicate: lr,
|
|
952
952
|
represent: {
|
|
953
953
|
binary: function(e) {
|
|
954
954
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -971,21 +971,21 @@ var lr = new K("tag:yaml.org,2002:int", {
|
|
|
971
971
|
decimal: [10, "dec"],
|
|
972
972
|
hexadecimal: [16, "hex"]
|
|
973
973
|
}
|
|
974
|
-
}),
|
|
974
|
+
}), or = new RegExp(
|
|
975
975
|
// 2.5e4, 2.5 and integers
|
|
976
976
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
977
977
|
);
|
|
978
|
-
function
|
|
979
|
-
return !(e === null || !
|
|
978
|
+
function cr(e) {
|
|
979
|
+
return !(e === null || !or.test(e) || // Quick hack to not allow integers end with `_`
|
|
980
980
|
// Probably should update regexp & check speed
|
|
981
981
|
e[e.length - 1] === "_");
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function ur(e) {
|
|
984
984
|
var r, t;
|
|
985
985
|
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);
|
|
986
986
|
}
|
|
987
|
-
var
|
|
988
|
-
function
|
|
987
|
+
var dr = /^[-+]?[0-9]+e/;
|
|
988
|
+
function pr(e, r) {
|
|
989
989
|
var t;
|
|
990
990
|
if (isNaN(e))
|
|
991
991
|
switch (r) {
|
|
@@ -1014,70 +1014,70 @@ function dr(e, r) {
|
|
|
1014
1014
|
case "camelcase":
|
|
1015
1015
|
return "-.Inf";
|
|
1016
1016
|
}
|
|
1017
|
-
else if (
|
|
1017
|
+
else if (he.isNegativeZero(e))
|
|
1018
1018
|
return "-0.0";
|
|
1019
|
-
return t = e.toString(10),
|
|
1019
|
+
return t = e.toString(10), dr.test(t) ? t.replace("e", ".e") : t;
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1022
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
1021
|
+
function fr(e) {
|
|
1022
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || he.isNegativeZero(e));
|
|
1023
1023
|
}
|
|
1024
|
-
var
|
|
1024
|
+
var yr = new $("tag:yaml.org,2002:float", {
|
|
1025
1025
|
kind: "scalar",
|
|
1026
|
-
resolve:
|
|
1027
|
-
construct:
|
|
1028
|
-
predicate:
|
|
1029
|
-
represent:
|
|
1026
|
+
resolve: cr,
|
|
1027
|
+
construct: ur,
|
|
1028
|
+
predicate: fr,
|
|
1029
|
+
represent: pr,
|
|
1030
1030
|
defaultStyle: "lowercase"
|
|
1031
|
-
}),
|
|
1031
|
+
}), hr = Wt.extend({
|
|
1032
1032
|
implicit: [
|
|
1033
1033
|
Vt,
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1034
|
+
er,
|
|
1035
|
+
sr,
|
|
1036
|
+
yr
|
|
1037
1037
|
]
|
|
1038
|
-
}),
|
|
1038
|
+
}), gr = hr, De = new RegExp(
|
|
1039
1039
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1040
|
-
),
|
|
1040
|
+
), Le = new RegExp(
|
|
1041
1041
|
"^([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]))?))?$"
|
|
1042
1042
|
);
|
|
1043
|
-
function gr(e) {
|
|
1044
|
-
return e === null ? !1 : Pe.exec(e) !== null || Me.exec(e) !== null;
|
|
1045
|
-
}
|
|
1046
1043
|
function mr(e) {
|
|
1047
|
-
|
|
1048
|
-
|
|
1044
|
+
return e === null ? !1 : De.exec(e) !== null || Le.exec(e) !== null;
|
|
1045
|
+
}
|
|
1046
|
+
function vr(e) {
|
|
1047
|
+
var r, t, a, n, i, l, o, d = 0, p = null, b, y, A;
|
|
1048
|
+
if (r = De.exec(e), r === null && (r = Le.exec(e)), r === null)
|
|
1049
1049
|
throw new Error("Date resolve error");
|
|
1050
1050
|
if (t = +r[1], a = +r[2] - 1, n = +r[3], !r[4])
|
|
1051
1051
|
return new Date(Date.UTC(t, a, n));
|
|
1052
|
-
if (i = +r[4], l = +r[5],
|
|
1053
|
-
for (
|
|
1054
|
-
|
|
1055
|
-
|
|
1052
|
+
if (i = +r[4], l = +r[5], o = +r[6], r[7]) {
|
|
1053
|
+
for (d = r[7].slice(0, 3); d.length < 3; )
|
|
1054
|
+
d += "0";
|
|
1055
|
+
d = +d;
|
|
1056
1056
|
}
|
|
1057
|
-
return r[9] && (
|
|
1057
|
+
return r[9] && (b = +r[10], y = +(r[11] || 0), p = (b * 60 + y) * 6e4, r[9] === "-" && (p = -p)), A = new Date(Date.UTC(t, a, n, i, l, o, d)), p && A.setTime(A.getTime() - p), A;
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function br(e) {
|
|
1060
1060
|
return e.toISOString();
|
|
1061
1061
|
}
|
|
1062
|
-
var
|
|
1062
|
+
var wr = new $("tag:yaml.org,2002:timestamp", {
|
|
1063
1063
|
kind: "scalar",
|
|
1064
|
-
resolve:
|
|
1065
|
-
construct:
|
|
1064
|
+
resolve: mr,
|
|
1065
|
+
construct: vr,
|
|
1066
1066
|
instanceOf: Date,
|
|
1067
|
-
represent:
|
|
1067
|
+
represent: br
|
|
1068
1068
|
});
|
|
1069
|
-
function
|
|
1069
|
+
function kr(e) {
|
|
1070
1070
|
return e === "<<" || e === null;
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1072
|
+
var Cr = new $("tag:yaml.org,2002:merge", {
|
|
1073
1073
|
kind: "scalar",
|
|
1074
|
-
resolve:
|
|
1075
|
-
}),
|
|
1074
|
+
resolve: kr
|
|
1075
|
+
}), ge = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1076
1076
|
\r`;
|
|
1077
|
-
function
|
|
1077
|
+
function _r(e) {
|
|
1078
1078
|
if (e === null)
|
|
1079
1079
|
return !1;
|
|
1080
|
-
var r, t, a = 0, n = e.length, i =
|
|
1080
|
+
var r, t, a = 0, n = e.length, i = ge;
|
|
1081
1081
|
for (t = 0; t < n; t++)
|
|
1082
1082
|
if (r = i.indexOf(e.charAt(t)), !(r > 64)) {
|
|
1083
1083
|
if (r < 0)
|
|
@@ -1086,14 +1086,14 @@ function Cr(e) {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
return a % 8 === 0;
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1090
|
-
var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i =
|
|
1089
|
+
function Sr(e) {
|
|
1090
|
+
var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i = ge, l = 0, o = [];
|
|
1091
1091
|
for (r = 0; r < n; r++)
|
|
1092
|
-
r % 4 === 0 && r && (
|
|
1093
|
-
return t = n % 4 * 6, t === 0 ? (
|
|
1092
|
+
r % 4 === 0 && r && (o.push(l >> 16 & 255), o.push(l >> 8 & 255), o.push(l & 255)), l = l << 6 | i.indexOf(a.charAt(r));
|
|
1093
|
+
return t = n % 4 * 6, t === 0 ? (o.push(l >> 16 & 255), o.push(l >> 8 & 255), o.push(l & 255)) : t === 18 ? (o.push(l >> 10 & 255), o.push(l >> 2 & 255)) : t === 12 && o.push(l >> 4 & 255), new Uint8Array(o);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
var r = "", t = 0, a, n, i = e.length, l =
|
|
1095
|
+
function Ar(e) {
|
|
1096
|
+
var r = "", t = 0, a, n, i = e.length, l = ge;
|
|
1097
1097
|
for (a = 0; a < i; a++)
|
|
1098
1098
|
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];
|
|
1099
1099
|
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;
|
|
@@ -1101,22 +1101,22 @@ function Sr(e) {
|
|
|
1101
1101
|
function Tr(e) {
|
|
1102
1102
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1103
1103
|
}
|
|
1104
|
-
var
|
|
1104
|
+
var Nr = new $("tag:yaml.org,2002:binary", {
|
|
1105
1105
|
kind: "scalar",
|
|
1106
|
-
resolve:
|
|
1107
|
-
construct:
|
|
1106
|
+
resolve: _r,
|
|
1107
|
+
construct: Sr,
|
|
1108
1108
|
predicate: Tr,
|
|
1109
|
-
represent:
|
|
1110
|
-
}),
|
|
1111
|
-
function
|
|
1109
|
+
represent: Ar
|
|
1110
|
+
}), Ir = Object.prototype.hasOwnProperty, xr = Object.prototype.toString;
|
|
1111
|
+
function Er(e) {
|
|
1112
1112
|
if (e === null)
|
|
1113
1113
|
return !0;
|
|
1114
|
-
var r = [], t, a, n, i, l,
|
|
1115
|
-
for (t = 0, a =
|
|
1116
|
-
if (n =
|
|
1114
|
+
var r = [], t, a, n, i, l, o = e;
|
|
1115
|
+
for (t = 0, a = o.length; t < a; t += 1) {
|
|
1116
|
+
if (n = o[t], l = !1, xr.call(n) !== "[object Object]")
|
|
1117
1117
|
return !1;
|
|
1118
1118
|
for (i in n)
|
|
1119
|
-
if (
|
|
1119
|
+
if (Ir.call(n, i))
|
|
1120
1120
|
if (!l)
|
|
1121
1121
|
l = !0;
|
|
1122
1122
|
else
|
|
@@ -1130,26 +1130,26 @@ function xr(e) {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
return !0;
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function Or(e) {
|
|
1134
1134
|
return e !== null ? e : [];
|
|
1135
1135
|
}
|
|
1136
|
-
var
|
|
1136
|
+
var jr = new $("tag:yaml.org,2002:omap", {
|
|
1137
1137
|
kind: "sequence",
|
|
1138
|
-
resolve:
|
|
1139
|
-
construct:
|
|
1140
|
-
}),
|
|
1141
|
-
function
|
|
1138
|
+
resolve: Er,
|
|
1139
|
+
construct: Or
|
|
1140
|
+
}), Kr = Object.prototype.toString;
|
|
1141
|
+
function $r(e) {
|
|
1142
1142
|
if (e === null)
|
|
1143
1143
|
return !0;
|
|
1144
1144
|
var r, t, a, n, i, l = e;
|
|
1145
1145
|
for (i = new Array(l.length), r = 0, t = l.length; r < t; r += 1) {
|
|
1146
|
-
if (a = l[r],
|
|
1146
|
+
if (a = l[r], Kr.call(a) !== "[object Object]" || (n = Object.keys(a), n.length !== 1))
|
|
1147
1147
|
return !1;
|
|
1148
1148
|
i[r] = [n[0], a[n[0]]];
|
|
1149
1149
|
}
|
|
1150
1150
|
return !0;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function Fr(e) {
|
|
1153
1153
|
if (e === null)
|
|
1154
1154
|
return [];
|
|
1155
1155
|
var r, t, a, n, i, l = e;
|
|
@@ -1157,51 +1157,51 @@ function $r(e) {
|
|
|
1157
1157
|
a = l[r], n = Object.keys(a), i[r] = [n[0], a[n[0]]];
|
|
1158
1158
|
return i;
|
|
1159
1159
|
}
|
|
1160
|
-
var
|
|
1160
|
+
var Pr = new $("tag:yaml.org,2002:pairs", {
|
|
1161
1161
|
kind: "sequence",
|
|
1162
|
-
resolve:
|
|
1163
|
-
construct:
|
|
1164
|
-
}),
|
|
1165
|
-
function
|
|
1162
|
+
resolve: $r,
|
|
1163
|
+
construct: Fr
|
|
1164
|
+
}), Mr = Object.prototype.hasOwnProperty;
|
|
1165
|
+
function Dr(e) {
|
|
1166
1166
|
if (e === null)
|
|
1167
1167
|
return !0;
|
|
1168
1168
|
var r, t = e;
|
|
1169
1169
|
for (r in t)
|
|
1170
|
-
if (
|
|
1170
|
+
if (Mr.call(t, r) && t[r] !== null)
|
|
1171
1171
|
return !1;
|
|
1172
1172
|
return !0;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function Lr(e) {
|
|
1175
1175
|
return e !== null ? e : {};
|
|
1176
1176
|
}
|
|
1177
|
-
var
|
|
1177
|
+
var Ur = new $("tag:yaml.org,2002:set", {
|
|
1178
1178
|
kind: "mapping",
|
|
1179
|
-
resolve:
|
|
1180
|
-
construct:
|
|
1179
|
+
resolve: Dr,
|
|
1180
|
+
construct: Lr
|
|
1181
1181
|
});
|
|
1182
|
-
|
|
1182
|
+
gr.extend({
|
|
1183
1183
|
implicit: [
|
|
1184
|
-
|
|
1185
|
-
|
|
1184
|
+
wr,
|
|
1185
|
+
Cr
|
|
1186
1186
|
],
|
|
1187
1187
|
explicit: [
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1188
|
+
Nr,
|
|
1189
|
+
jr,
|
|
1190
|
+
Pr,
|
|
1191
|
+
Ur
|
|
1192
1192
|
]
|
|
1193
1193
|
});
|
|
1194
|
-
function
|
|
1194
|
+
function Se(e) {
|
|
1195
1195
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1196
1196
|
` : 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" : "";
|
|
1197
1197
|
}
|
|
1198
|
-
var Rr = new Array(256),
|
|
1198
|
+
var Rr = new Array(256), Br = new Array(256);
|
|
1199
1199
|
for (var re = 0; re < 256; re++)
|
|
1200
|
-
Rr[re] =
|
|
1201
|
-
const
|
|
1200
|
+
Rr[re] = Se(re) ? 1 : 0, Br[re] = Se(re);
|
|
1201
|
+
const qr = {
|
|
1202
1202
|
key: 0,
|
|
1203
1203
|
"data-testid": "first-col"
|
|
1204
|
-
},
|
|
1204
|
+
}, zr = /* @__PURE__ */ ie({
|
|
1205
1205
|
__name: "EntityBaseTableCell",
|
|
1206
1206
|
props: {
|
|
1207
1207
|
keyName: {
|
|
@@ -1221,61 +1221,61 @@ const Br = {
|
|
|
1221
1221
|
var f;
|
|
1222
1222
|
return ((f = t.value) == null ? void 0 : f.querySelector('[data-testid="first-col"]')) || null;
|
|
1223
1223
|
}), n = N(() => {
|
|
1224
|
-
var f,
|
|
1225
|
-
const
|
|
1226
|
-
return
|
|
1224
|
+
var f, T;
|
|
1225
|
+
const P = (f = r.rowEl) == null ? void 0 : f.querySelectorAll("td");
|
|
1226
|
+
return P ? ((T = P[0]) == null ? void 0 : T.getAttribute("data-testid")) === r.keyName : !1;
|
|
1227
1227
|
});
|
|
1228
1228
|
let i;
|
|
1229
1229
|
const l = () => {
|
|
1230
1230
|
i && (i.disconnect(), i = void 0);
|
|
1231
|
-
},
|
|
1232
|
-
var f,
|
|
1233
|
-
|
|
1234
|
-
},
|
|
1235
|
-
|
|
1231
|
+
}, o = () => {
|
|
1232
|
+
var f, T, P;
|
|
1233
|
+
p.value = ((f = a.value) == null ? void 0 : f.getBoundingClientRect().width) || 0, b.value = ((T = t.value) == null ? void 0 : T.clientWidth) || 0, y.value = ((P = d.value) == null ? void 0 : P.innerText) || "";
|
|
1234
|
+
}, d = v({}), p = v(0), b = v(0), y = v(""), A = N(() => [a.value, t.value]), _ = se(
|
|
1235
|
+
A,
|
|
1236
1236
|
(f) => {
|
|
1237
1237
|
if (n.value && (l(), "ResizeObserver" in window && window)) {
|
|
1238
|
-
i = new ResizeObserver((
|
|
1238
|
+
i = new ResizeObserver((T) => {
|
|
1239
1239
|
window.requestAnimationFrame(() => {
|
|
1240
|
-
!Array.isArray(
|
|
1240
|
+
!Array.isArray(T) || !T.length || o();
|
|
1241
1241
|
});
|
|
1242
1242
|
});
|
|
1243
|
-
for (const
|
|
1244
|
-
|
|
1243
|
+
for (const T of f)
|
|
1244
|
+
T && i.observe(T);
|
|
1245
1245
|
}
|
|
1246
1246
|
},
|
|
1247
1247
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
1248
|
-
), U = N(() => n.value ?
|
|
1248
|
+
), U = N(() => n.value ? p.value > b.value : !1);
|
|
1249
1249
|
return Re(() => {
|
|
1250
|
-
|
|
1251
|
-
}),
|
|
1252
|
-
|
|
1253
|
-
}), (f,
|
|
1254
|
-
const
|
|
1255
|
-
return
|
|
1250
|
+
o();
|
|
1251
|
+
}), Be(() => {
|
|
1252
|
+
_();
|
|
1253
|
+
}), (f, T) => {
|
|
1254
|
+
const P = M("KTooltip");
|
|
1255
|
+
return j(), V("span", {
|
|
1256
1256
|
ref_key: "contentRef",
|
|
1257
|
-
ref:
|
|
1257
|
+
ref: d,
|
|
1258
1258
|
class: "content-wrapper"
|
|
1259
1259
|
}, [
|
|
1260
|
-
n.value ? (
|
|
1261
|
-
g(
|
|
1260
|
+
n.value ? (j(), V("span", qr, [
|
|
1261
|
+
g(P, {
|
|
1262
1262
|
label: U.value ? y.value : "",
|
|
1263
1263
|
"max-width": "300",
|
|
1264
1264
|
placement: "bottomStart"
|
|
1265
1265
|
}, {
|
|
1266
|
-
default:
|
|
1267
|
-
|
|
1266
|
+
default: s(() => [
|
|
1267
|
+
Y(f.$slots, "default", {}, void 0, !0)
|
|
1268
1268
|
]),
|
|
1269
1269
|
_: 3
|
|
1270
1270
|
}, 8, ["label"])
|
|
1271
|
-
])) :
|
|
1271
|
+
])) : Y(f.$slots, "default", { key: 1 }, void 0, !0)
|
|
1272
1272
|
], 512);
|
|
1273
1273
|
};
|
|
1274
1274
|
}
|
|
1275
|
-
}), Hr = /* @__PURE__ */
|
|
1275
|
+
}), Hr = /* @__PURE__ */ ye(zr, [["__scopeId", "data-v-e42a20c9"]]), Wr = { class: "toolbar-container" }, Jr = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "toolbar-button-container"
|
|
1278
|
-
},
|
|
1278
|
+
}, Yr = ["data-testid"], Gr = /* @__PURE__ */ ie({
|
|
1279
1279
|
__name: "EntityBaseTable",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
// table header configuration
|
|
@@ -1385,138 +1385,138 @@ const Br = {
|
|
|
1385
1385
|
},
|
|
1386
1386
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
1387
1387
|
setup(e, { emit: r }) {
|
|
1388
|
-
const t = e, { i18n: { t:
|
|
1389
|
-
var
|
|
1388
|
+
const t = e, a = r, { i18n: { t: n } } = fe.useI18n(), i = N(() => {
|
|
1389
|
+
var c, k;
|
|
1390
1390
|
return typeof t.errorMessage == "string" ? {
|
|
1391
1391
|
hasError: !!t.errorMessage,
|
|
1392
1392
|
title: t.errorMessage,
|
|
1393
1393
|
message: void 0
|
|
1394
1394
|
} : {
|
|
1395
1395
|
hasError: !!t.errorMessage,
|
|
1396
|
-
title: (
|
|
1397
|
-
message: (
|
|
1396
|
+
title: (c = t.errorMessage) == null ? void 0 : c.title,
|
|
1397
|
+
message: (k = t.errorMessage) == null ? void 0 : k.message
|
|
1398
1398
|
};
|
|
1399
|
-
}),
|
|
1400
|
-
const
|
|
1401
|
-
return Object.keys(t.tableHeaders).forEach((
|
|
1402
|
-
const
|
|
1403
|
-
|
|
1404
|
-
label:
|
|
1405
|
-
key:
|
|
1406
|
-
sortable:
|
|
1399
|
+
}), l = N(() => t.cacheIdentifier || t.preferencesStorageKey), o = (c) => c.hasData || !!t.query, d = N(() => {
|
|
1400
|
+
const c = [];
|
|
1401
|
+
return Object.keys(t.tableHeaders).forEach((k) => {
|
|
1402
|
+
const q = t.tableHeaders[k];
|
|
1403
|
+
c.push({
|
|
1404
|
+
label: q.label ?? k,
|
|
1405
|
+
key: k,
|
|
1406
|
+
sortable: q.sortable ?? !1
|
|
1407
1407
|
});
|
|
1408
|
-
}), t.enableEntityActions &&
|
|
1408
|
+
}), t.enableEntityActions && c.push({
|
|
1409
1409
|
key: "actions",
|
|
1410
1410
|
hideLabel: !0
|
|
1411
|
-
}),
|
|
1412
|
-
}), p = (
|
|
1413
|
-
"data-rowid":
|
|
1414
|
-
"data-testid":
|
|
1415
|
-
...t.rowAttributes(
|
|
1416
|
-
}),
|
|
1417
|
-
var
|
|
1418
|
-
return (
|
|
1419
|
-
},
|
|
1420
|
-
const
|
|
1421
|
-
"data-testid":
|
|
1422
|
-
...t.cellAttributes(
|
|
1411
|
+
}), c;
|
|
1412
|
+
}), p = (c) => ({
|
|
1413
|
+
"data-rowid": c.id,
|
|
1414
|
+
"data-testid": c.name,
|
|
1415
|
+
...t.rowAttributes(c)
|
|
1416
|
+
}), b = v({}), y = (c) => {
|
|
1417
|
+
var k;
|
|
1418
|
+
return (k = b.value) == null ? void 0 : k.$el.querySelector(`[data-rowid="${c.id}"]`);
|
|
1419
|
+
}, A = (c) => {
|
|
1420
|
+
const k = {
|
|
1421
|
+
"data-testid": c.headerKey,
|
|
1422
|
+
...t.cellAttributes(c)
|
|
1423
1423
|
};
|
|
1424
|
-
return
|
|
1424
|
+
return c.colIndex === 0 && (k.style = {
|
|
1425
1425
|
maxWidth: "250px",
|
|
1426
1426
|
overflowX: "hidden",
|
|
1427
1427
|
textOverflow: "ellipsis"
|
|
1428
|
-
}),
|
|
1429
|
-
},
|
|
1430
|
-
|
|
1431
|
-
},
|
|
1432
|
-
|
|
1433
|
-
},
|
|
1434
|
-
|
|
1435
|
-
}),
|
|
1436
|
-
|
|
1437
|
-
}, { setTablePreferences:
|
|
1438
|
-
const
|
|
1428
|
+
}), k;
|
|
1429
|
+
}, _ = () => {
|
|
1430
|
+
a("empty-state-cta-clicked"), U();
|
|
1431
|
+
}, U = () => {
|
|
1432
|
+
a("clear-search-input");
|
|
1433
|
+
}, f = N(() => t.disableRowClick ? void 0 : (c, k) => {
|
|
1434
|
+
a("click:row", k);
|
|
1435
|
+
}), T = (c) => {
|
|
1436
|
+
a("sort", c);
|
|
1437
|
+
}, { setTablePreferences: P, getTablePreferences: Z } = tt(), ae = N(() => {
|
|
1438
|
+
const c = Z(t.preferencesStorageKey);
|
|
1439
1439
|
return {
|
|
1440
1440
|
...t.initialFetcherParams,
|
|
1441
|
-
...
|
|
1441
|
+
...c
|
|
1442
1442
|
};
|
|
1443
|
-
}),
|
|
1444
|
-
t.preferencesStorageKey &&
|
|
1443
|
+
}), w = (c) => {
|
|
1444
|
+
t.preferencesStorageKey && P(t.preferencesStorageKey, c);
|
|
1445
1445
|
};
|
|
1446
|
-
return (
|
|
1447
|
-
const
|
|
1448
|
-
return
|
|
1446
|
+
return (c, k) => {
|
|
1447
|
+
const q = M("KIcon"), E = M("KButton"), K = M("KDropdown"), z = M("KTable"), I = M("KCard");
|
|
1448
|
+
return j(), H(I, {
|
|
1449
1449
|
class: "kong-ui-entity-base-table",
|
|
1450
1450
|
title: e.title
|
|
1451
1451
|
}, {
|
|
1452
|
-
default:
|
|
1453
|
-
g(
|
|
1452
|
+
default: s(() => [
|
|
1453
|
+
g(z, {
|
|
1454
1454
|
ref_key: "tableRefs",
|
|
1455
|
-
ref:
|
|
1456
|
-
"cache-identifier":
|
|
1457
|
-
"cell-attrs":
|
|
1455
|
+
ref: b,
|
|
1456
|
+
"cache-identifier": l.value,
|
|
1457
|
+
"cell-attrs": A,
|
|
1458
1458
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
1459
1459
|
"disable-sorting": e.disableSorting,
|
|
1460
1460
|
"empty-state-action-button-icon": e.query ? "" : "plus",
|
|
1461
|
-
"empty-state-action-message": e.query ?
|
|
1461
|
+
"empty-state-action-message": e.query ? m(n)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
1462
1462
|
"empty-state-action-route": e.query ? "" : e.emptyStateOptions.ctaPath,
|
|
1463
1463
|
"empty-state-icon": e.query ? "stateNoSearchResults" : "stateGruceo",
|
|
1464
1464
|
"empty-state-icon-size": "96",
|
|
1465
|
-
"empty-state-message": e.query ?
|
|
1466
|
-
"empty-state-title": e.query ?
|
|
1465
|
+
"empty-state-message": e.query ? m(n)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
1466
|
+
"empty-state-title": e.query ? m(n)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
1467
1467
|
"enable-client-sort": e.enableClientSort,
|
|
1468
|
-
"error-state-message":
|
|
1469
|
-
"error-state-title":
|
|
1468
|
+
"error-state-message": i.value.message,
|
|
1469
|
+
"error-state-title": i.value.title,
|
|
1470
1470
|
fetcher: e.fetcher,
|
|
1471
1471
|
"fetcher-cache-key": String(e.fetcherCacheKey),
|
|
1472
|
-
"has-error":
|
|
1473
|
-
headers:
|
|
1472
|
+
"has-error": i.value.hasError,
|
|
1473
|
+
headers: d.value,
|
|
1474
1474
|
"hide-pagination-when-optional": "",
|
|
1475
|
-
"initial-fetcher-params":
|
|
1475
|
+
"initial-fetcher-params": ae.value,
|
|
1476
1476
|
"is-loading": e.isLoading,
|
|
1477
1477
|
"pagination-type": e.paginationType,
|
|
1478
1478
|
"row-attrs": p,
|
|
1479
1479
|
"search-input": e.query,
|
|
1480
|
-
onKtableEmptyStateCtaClicked:
|
|
1481
|
-
"onRow:click":
|
|
1482
|
-
onSort:
|
|
1483
|
-
"onUpdate:tablePreferences":
|
|
1484
|
-
},
|
|
1485
|
-
toolbar:
|
|
1486
|
-
Te(
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
])) :
|
|
1480
|
+
onKtableEmptyStateCtaClicked: _,
|
|
1481
|
+
"onRow:click": f.value,
|
|
1482
|
+
onSort: k[0] || (k[0] = (O) => T(O)),
|
|
1483
|
+
"onUpdate:tablePreferences": w
|
|
1484
|
+
}, Ae({
|
|
1485
|
+
toolbar: s(({ state: O }) => [
|
|
1486
|
+
Te(ee("div", Wr, [
|
|
1487
|
+
Y(c.$slots, "toolbar-filter", {}, void 0, !0),
|
|
1488
|
+
c.$slots["toolbar-button"] ? (j(), V("div", Jr, [
|
|
1489
|
+
Y(c.$slots, "toolbar-button", {}, void 0, !0)
|
|
1490
|
+
])) : G("", !0)
|
|
1491
1491
|
], 512), [
|
|
1492
|
-
[
|
|
1492
|
+
[Ne, o(O)]
|
|
1493
1493
|
])
|
|
1494
1494
|
]),
|
|
1495
|
-
actions:
|
|
1496
|
-
|
|
1495
|
+
actions: s(({ row: O, rowKey: R, rowValue: W }) => [
|
|
1496
|
+
ee("div", {
|
|
1497
1497
|
class: "actions-container",
|
|
1498
|
-
"data-testid":
|
|
1498
|
+
"data-testid": O.name
|
|
1499
1499
|
}, [
|
|
1500
|
-
g(
|
|
1500
|
+
g(K, {
|
|
1501
1501
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
1502
1502
|
width: e.dropdownMenuWidth
|
|
1503
1503
|
}, {
|
|
1504
|
-
items:
|
|
1505
|
-
|
|
1506
|
-
row:
|
|
1507
|
-
rowKey:
|
|
1508
|
-
rowValue:
|
|
1504
|
+
items: s(() => [
|
|
1505
|
+
Y(c.$slots, "actions", {
|
|
1506
|
+
row: O,
|
|
1507
|
+
rowKey: R,
|
|
1508
|
+
rowValue: W
|
|
1509
1509
|
}, void 0, !0)
|
|
1510
1510
|
]),
|
|
1511
|
-
default:
|
|
1512
|
-
g(
|
|
1511
|
+
default: s(() => [
|
|
1512
|
+
g(E, {
|
|
1513
1513
|
class: "actions-trigger",
|
|
1514
1514
|
"data-testid": "overflow-actions-button",
|
|
1515
1515
|
size: "small"
|
|
1516
1516
|
}, {
|
|
1517
|
-
icon:
|
|
1518
|
-
g(
|
|
1519
|
-
color:
|
|
1517
|
+
icon: s(() => [
|
|
1518
|
+
g(q, {
|
|
1519
|
+
color: m(At),
|
|
1520
1520
|
icon: "more",
|
|
1521
1521
|
size: "16"
|
|
1522
1522
|
}, null, 8, ["color"])
|
|
@@ -1526,24 +1526,24 @@ const Br = {
|
|
|
1526
1526
|
]),
|
|
1527
1527
|
_: 2
|
|
1528
1528
|
}, 1032, ["width"])
|
|
1529
|
-
], 8,
|
|
1529
|
+
], 8, Yr)
|
|
1530
1530
|
]),
|
|
1531
1531
|
_: 2
|
|
1532
1532
|
}, [
|
|
1533
|
-
|
|
1534
|
-
name:
|
|
1535
|
-
fn:
|
|
1533
|
+
Ie(e.tableHeaders, (O, R) => ({
|
|
1534
|
+
name: R,
|
|
1535
|
+
fn: s(({ row: W, rowKey: u, rowValue: C }) => [
|
|
1536
1536
|
g(Hr, {
|
|
1537
|
-
"key-name": String(
|
|
1538
|
-
"row-el":
|
|
1537
|
+
"key-name": String(R),
|
|
1538
|
+
"row-el": y(W)
|
|
1539
1539
|
}, {
|
|
1540
|
-
default:
|
|
1541
|
-
|
|
1542
|
-
row:
|
|
1543
|
-
rowKey:
|
|
1544
|
-
rowValue:
|
|
1540
|
+
default: s(() => [
|
|
1541
|
+
Y(c.$slots, R, {
|
|
1542
|
+
row: W,
|
|
1543
|
+
rowKey: u,
|
|
1544
|
+
rowValue: C
|
|
1545
1545
|
}, () => [
|
|
1546
|
-
L(
|
|
1546
|
+
L(x(C), 1)
|
|
1547
1547
|
], !0)
|
|
1548
1548
|
]),
|
|
1549
1549
|
_: 2
|
|
@@ -1556,13 +1556,13 @@ const Br = {
|
|
|
1556
1556
|
}, 8, ["title"]);
|
|
1557
1557
|
};
|
|
1558
1558
|
}
|
|
1559
|
-
}), Vr = /* @__PURE__ */
|
|
1559
|
+
}), Vr = /* @__PURE__ */ ye(Gr, [["__scopeId", "data-v-57b5a97b"]]), Zr = {
|
|
1560
1560
|
key: 0,
|
|
1561
1561
|
class: "kong-ui-entity-delete-error"
|
|
1562
|
-
},
|
|
1562
|
+
}, Qr = {
|
|
1563
1563
|
key: 1,
|
|
1564
1564
|
class: "description"
|
|
1565
|
-
}, Xr = /* @__PURE__ */
|
|
1565
|
+
}, Xr = /* @__PURE__ */ ie({
|
|
1566
1566
|
__name: "EntityDeleteModal",
|
|
1567
1567
|
props: {
|
|
1568
1568
|
visible: {
|
|
@@ -1601,62 +1601,62 @@ const Br = {
|
|
|
1601
1601
|
},
|
|
1602
1602
|
emits: ["cancel", "proceed"],
|
|
1603
1603
|
setup(e, { emit: r }) {
|
|
1604
|
-
const
|
|
1605
|
-
|
|
1606
|
-
},
|
|
1607
|
-
|
|
1604
|
+
const { i18nT: t } = fe.useI18n(), a = e, n = r, i = N(() => a.needConfirm ? a.entityName : ""), l = () => {
|
|
1605
|
+
n("cancel");
|
|
1606
|
+
}, o = () => {
|
|
1607
|
+
n("proceed");
|
|
1608
1608
|
};
|
|
1609
|
-
return (
|
|
1610
|
-
const
|
|
1611
|
-
return
|
|
1609
|
+
return (d, p) => {
|
|
1610
|
+
const b = M("KAlert"), y = M("KPrompt");
|
|
1611
|
+
return j(), H(y, {
|
|
1612
1612
|
"action-button-text": "Yes, delete",
|
|
1613
1613
|
"action-pending": e.actionPending,
|
|
1614
1614
|
class: "kong-ui-entity-delete-modal",
|
|
1615
|
-
"confirmation-text":
|
|
1615
|
+
"confirmation-text": i.value,
|
|
1616
1616
|
"is-visible": e.visible,
|
|
1617
1617
|
title: e.title,
|
|
1618
1618
|
type: "danger",
|
|
1619
|
-
onCanceled:
|
|
1620
|
-
onProceed:
|
|
1619
|
+
onCanceled: l,
|
|
1620
|
+
onProceed: o
|
|
1621
1621
|
}, {
|
|
1622
|
-
"body-content":
|
|
1623
|
-
e.error ? (
|
|
1624
|
-
g(
|
|
1625
|
-
alertMessage:
|
|
1626
|
-
L(
|
|
1622
|
+
"body-content": s(() => [
|
|
1623
|
+
e.error ? (j(), V("div", Zr, [
|
|
1624
|
+
g(b, { appearance: "danger" }, {
|
|
1625
|
+
alertMessage: s(() => [
|
|
1626
|
+
L(x(e.error), 1)
|
|
1627
1627
|
]),
|
|
1628
1628
|
_: 1
|
|
1629
1629
|
})
|
|
1630
|
-
])) :
|
|
1631
|
-
g(
|
|
1630
|
+
])) : G("", !0),
|
|
1631
|
+
g(m(t), {
|
|
1632
1632
|
class: "message",
|
|
1633
|
-
keypath:
|
|
1633
|
+
keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
1634
1634
|
tag: "p"
|
|
1635
|
-
},
|
|
1636
|
-
entityType:
|
|
1637
|
-
L(
|
|
1635
|
+
}, Ae({
|
|
1636
|
+
entityType: s(() => [
|
|
1637
|
+
L(x(a.entityType), 1)
|
|
1638
1638
|
]),
|
|
1639
1639
|
_: 2
|
|
1640
1640
|
}, [
|
|
1641
|
-
|
|
1641
|
+
a.entityName ? {
|
|
1642
1642
|
name: "entityName",
|
|
1643
|
-
fn:
|
|
1644
|
-
|
|
1643
|
+
fn: s(() => [
|
|
1644
|
+
ee("strong", null, x(a.entityName), 1)
|
|
1645
1645
|
]),
|
|
1646
1646
|
key: "0"
|
|
1647
1647
|
} : void 0
|
|
1648
1648
|
]), 1032, ["keypath"]),
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1649
|
+
a.description || d.$slots.description ? (j(), V("div", Qr, [
|
|
1650
|
+
Y(d.$slots, "description", {}, () => [
|
|
1651
|
+
ee("p", null, x(a.description), 1)
|
|
1652
1652
|
], !0)
|
|
1653
|
-
])) :
|
|
1653
|
+
])) : G("", !0)
|
|
1654
1654
|
]),
|
|
1655
1655
|
_: 3
|
|
1656
1656
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
1657
1657
|
};
|
|
1658
1658
|
}
|
|
1659
|
-
}),
|
|
1659
|
+
}), ea = /* @__PURE__ */ ye(Xr, [["__scopeId", "data-v-1c9a2a07"]]), ce = /* @__PURE__ */ ie({
|
|
1660
1660
|
__name: "PermissionsWrapper",
|
|
1661
1661
|
props: {
|
|
1662
1662
|
/**
|
|
@@ -1678,15 +1678,15 @@ const Br = {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
},
|
|
1680
1680
|
setup(e) {
|
|
1681
|
-
const r = e, t =
|
|
1682
|
-
return
|
|
1681
|
+
const r = e, t = v(void 0), a = N(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
|
|
1682
|
+
return se(() => r.authFunction, async () => {
|
|
1683
1683
|
t.value = await r.authFunction();
|
|
1684
|
-
}, { immediate: !0 }), (n, i) => a.value ?
|
|
1684
|
+
}, { immediate: !0 }), (n, i) => a.value ? Y(n.$slots, "default", {
|
|
1685
1685
|
key: 0,
|
|
1686
1686
|
isAllowed: t.value
|
|
1687
|
-
}) :
|
|
1687
|
+
}) : G("", !0);
|
|
1688
1688
|
}
|
|
1689
|
-
}), { useAxios:
|
|
1689
|
+
}), { useAxios: ta, useDeleteUrlBuilder: ra, useErrors: fa, useExternalLinkCreator: ya, useFetchUrlBuilder: ha, useFetcher: aa, useDebouncedFilter: ga, useStringHelpers: ma, useHelpers: va, useGatewayFeatureSupported: ba, useTruncationDetector: wa } = fe, na = { class: "kong-ui-entities-consumer-credentials-list" }, ia = { key: 1 }, la = /* @__PURE__ */ ie({
|
|
1690
1690
|
__name: "ConsumerCredentialList",
|
|
1691
1691
|
props: {
|
|
1692
1692
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1726,326 +1726,326 @@ const Br = {
|
|
|
1726
1726
|
},
|
|
1727
1727
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
1728
1728
|
setup(e, { emit: r }) {
|
|
1729
|
-
const t = e, { i18n: { t:
|
|
1730
|
-
headers:
|
|
1731
|
-
}),
|
|
1729
|
+
const t = r, a = e, { i18n: { t: n, formatUnixTimeStamp: i } } = Ze.useI18n(), { axiosInstance: l } = ta({
|
|
1730
|
+
headers: a.config.requestHeaders
|
|
1731
|
+
}), o = v(1), d = {
|
|
1732
1732
|
acls: {
|
|
1733
|
-
group: { label:
|
|
1734
|
-
created_at: { label:
|
|
1735
|
-
tags: { label:
|
|
1733
|
+
group: { label: n("credentials.list.table_headers.acls.group") },
|
|
1734
|
+
created_at: { label: n("credentials.list.table_headers.acls.created_at") },
|
|
1735
|
+
tags: { label: n("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: n("credentials.list.table_headers.basic-auth.password") },
|
|
1739
|
+
username: { label: n("credentials.list.table_headers.basic-auth.username") },
|
|
1740
|
+
created_at: { label: n("credentials.list.table_headers.basic-auth.created_at") },
|
|
1741
|
+
tags: { label: n("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: n("credentials.list.table_headers.key-auth.key") },
|
|
1745
|
+
created_at: { label: n("credentials.list.table_headers.key-auth.created_at") },
|
|
1746
|
+
tags: { label: n("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: n("credentials.list.table_headers.key-auth-enc.key") },
|
|
1750
|
+
created_at: { label: n("credentials.list.table_headers.key-auth-enc.created_at") },
|
|
1751
|
+
tags: { label: n("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: n("credentials.list.table_headers.oauth2.name") },
|
|
1755
|
+
client_id: { label: n("credentials.list.table_headers.oauth2.client_id") },
|
|
1756
|
+
client_secret: { label: n("credentials.list.table_headers.oauth2.client_secret") },
|
|
1757
|
+
created_at: { label: n("credentials.list.table_headers.oauth2.created_at") },
|
|
1758
|
+
tags: { label: n("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: n("credentials.list.table_headers.hmac-auth.username") },
|
|
1762
|
+
secret: { label: n("credentials.list.table_headers.hmac-auth.secret") },
|
|
1763
|
+
created_at: { label: n("credentials.list.table_headers.hmac-auth.created_at") },
|
|
1764
|
+
tags: { label: n("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: n("credentials.list.table_headers.jwt.key") },
|
|
1768
|
+
algorithm: { label: n("credentials.list.table_headers.jwt.algorithm") },
|
|
1769
|
+
created_at: { label: n("credentials.list.table_headers.jwt.created_at") },
|
|
1770
|
+
tags: { label: n("credentials.list.table_headers.jwt.tags") }
|
|
1771
1771
|
}
|
|
1772
|
-
}, p = N(() =>
|
|
1773
|
-
let
|
|
1774
|
-
return
|
|
1775
|
-
}), { fetcher:
|
|
1776
|
-
|
|
1777
|
-
},
|
|
1778
|
-
const
|
|
1779
|
-
if (!
|
|
1780
|
-
|
|
1772
|
+
}, p = N(() => d[a.config.plugin]), b = N(() => {
|
|
1773
|
+
let u = `${a.config.apiBaseUrl}${Qe.list[a.config.app]}`;
|
|
1774
|
+
return a.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, a.config.controlPlaneId || "").replace(/{consumerId}/gi, a.config.consumerId || "").replace(/{plugin}/gi, a.config.plugin || "") : a.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, a.config.workspace ? `/${a.config.workspace}` : "").replace(/{consumerId}/gi, a.config.consumerId || "").replace(/{plugin}/gi, a.config.plugin || "")), u;
|
|
1775
|
+
}), { fetcher: y, fetcherState: A } = aa(a.config, b), _ = () => {
|
|
1776
|
+
o.value++;
|
|
1777
|
+
}, U = v(null), f = (u, C, B) => {
|
|
1778
|
+
const F = C ? u[C] : JSON.stringify(u);
|
|
1779
|
+
if (!B(F)) {
|
|
1780
|
+
Z(u, C);
|
|
1781
1781
|
return;
|
|
1782
1782
|
}
|
|
1783
|
-
|
|
1784
|
-
},
|
|
1785
|
-
const { type:
|
|
1786
|
-
|
|
1787
|
-
},
|
|
1788
|
-
|
|
1789
|
-
entity:
|
|
1790
|
-
field:
|
|
1791
|
-
message:
|
|
1783
|
+
P(u, C);
|
|
1784
|
+
}, T = (u, C, B) => {
|
|
1785
|
+
const { type: F } = u;
|
|
1786
|
+
F === "success" ? P(C, B) : Z(C, B);
|
|
1787
|
+
}, P = (u, C) => {
|
|
1788
|
+
t("copy:success", {
|
|
1789
|
+
entity: u,
|
|
1790
|
+
field: C,
|
|
1791
|
+
message: C ? n("credentials.copy.success", { val: u[C] }) : n("credentials.copy.success_brief")
|
|
1792
1792
|
});
|
|
1793
|
-
},
|
|
1794
|
-
|
|
1795
|
-
entity:
|
|
1796
|
-
field:
|
|
1797
|
-
message:
|
|
1793
|
+
}, Z = (u, C) => {
|
|
1794
|
+
t("copy:error", {
|
|
1795
|
+
entity: u,
|
|
1796
|
+
field: C,
|
|
1797
|
+
message: n("credentials.error.copy")
|
|
1798
1798
|
});
|
|
1799
|
-
},
|
|
1800
|
-
label:
|
|
1801
|
-
to:
|
|
1802
|
-
}),
|
|
1803
|
-
|
|
1804
|
-
},
|
|
1805
|
-
|
|
1806
|
-
},
|
|
1807
|
-
var
|
|
1808
|
-
if ((
|
|
1809
|
-
|
|
1799
|
+
}, ae = (u) => ({
|
|
1800
|
+
label: n("credentials.actions.edit"),
|
|
1801
|
+
to: a.config.getEditRoute(u)
|
|
1802
|
+
}), w = v(void 0), c = v(!1), k = v(!1), q = v(""), E = ra(a.config, b.value), K = N(() => Oe[a.config.plugin]), z = (u) => {
|
|
1803
|
+
w.value = u, c.value = !0;
|
|
1804
|
+
}, I = () => {
|
|
1805
|
+
c.value = !1;
|
|
1806
|
+
}, O = async () => {
|
|
1807
|
+
var u, C, B;
|
|
1808
|
+
if ((u = w.value) != null && u.id) {
|
|
1809
|
+
k.value = !0;
|
|
1810
1810
|
try {
|
|
1811
|
-
await
|
|
1812
|
-
} catch (
|
|
1813
|
-
|
|
1811
|
+
await l.delete(E(w.value.id)), k.value = !1, c.value = !1, o.value++, t("delete:success", w.value);
|
|
1812
|
+
} catch (F) {
|
|
1813
|
+
q.value = ((B = (C = F.response) == null ? void 0 : C.data) == null ? void 0 : B.message) || F.message || n("credentials.error.delete"), t("error", F);
|
|
1814
1814
|
} finally {
|
|
1815
|
-
|
|
1815
|
+
k.value = !1;
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
|
-
},
|
|
1819
|
-
|
|
1820
|
-
var
|
|
1821
|
-
if (Array.isArray((
|
|
1822
|
-
|
|
1823
|
-
title:
|
|
1824
|
-
}, (
|
|
1818
|
+
}, R = v(!0);
|
|
1819
|
+
se(A, (u) => {
|
|
1820
|
+
var C, B, F, le;
|
|
1821
|
+
if (Array.isArray((C = u == null ? void 0 : u.response) == null ? void 0 : C.data) && (R.value = u.response.data.length > 0), u.status === Q.Error) {
|
|
1822
|
+
U.value = {
|
|
1823
|
+
title: n("credentials.error.general")
|
|
1824
|
+
}, (le = (F = (B = u.error) == null ? void 0 : B.response) == null ? void 0 : F.data) != null && le.message && (U.value.message = u.error.response.data.message), t("error", u.error);
|
|
1825
1825
|
return;
|
|
1826
1826
|
}
|
|
1827
|
-
|
|
1827
|
+
U.value = null;
|
|
1828
1828
|
});
|
|
1829
|
-
const
|
|
1830
|
-
ctaPath:
|
|
1829
|
+
const W = v({
|
|
1830
|
+
ctaPath: a.config.createRoute,
|
|
1831
1831
|
ctaText: void 0,
|
|
1832
1832
|
message: "",
|
|
1833
|
-
title:
|
|
1833
|
+
title: n("credentials.title")
|
|
1834
1834
|
});
|
|
1835
|
-
return
|
|
1836
|
-
await
|
|
1837
|
-
}), (
|
|
1838
|
-
const
|
|
1839
|
-
return
|
|
1840
|
-
g(
|
|
1835
|
+
return qe(async () => {
|
|
1836
|
+
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`));
|
|
1837
|
+
}), (u, C) => {
|
|
1838
|
+
const B = M("KButton"), F = M("CopyUuid"), le = M("KBadge"), Ue = M("KTruncate"), J = M("KDropdownItem"), te = M("KClipboardProvider");
|
|
1839
|
+
return j(), V("div", na, [
|
|
1840
|
+
g(m(Vr), {
|
|
1841
1841
|
"cache-identifier": e.cacheIdentifier,
|
|
1842
1842
|
"disable-pagination-page-jump": "",
|
|
1843
1843
|
"disable-row-click": "",
|
|
1844
1844
|
"disable-sorting": "",
|
|
1845
|
-
"empty-state-options":
|
|
1845
|
+
"empty-state-options": W.value,
|
|
1846
1846
|
"enable-entity-actions": "",
|
|
1847
|
-
"error-message":
|
|
1848
|
-
fetcher:
|
|
1849
|
-
"fetcher-cache-key":
|
|
1847
|
+
"error-message": U.value,
|
|
1848
|
+
fetcher: m(y),
|
|
1849
|
+
"fetcher-cache-key": o.value,
|
|
1850
1850
|
"pagination-type": "offset",
|
|
1851
1851
|
"preferences-storage-key": "kong-ui-entities-consumer-credentials-list",
|
|
1852
1852
|
"table-headers": p.value,
|
|
1853
1853
|
"use-action-outside": e.useActionOutside,
|
|
1854
|
-
onSort:
|
|
1854
|
+
onSort: _
|
|
1855
1855
|
}, {
|
|
1856
|
-
"toolbar-button":
|
|
1857
|
-
(
|
|
1856
|
+
"toolbar-button": s(() => [
|
|
1857
|
+
(j(), H(ze, {
|
|
1858
1858
|
disabled: !e.useActionOutside,
|
|
1859
1859
|
to: "#kong-ui-app-page-header-action-button"
|
|
1860
1860
|
}, [
|
|
1861
|
-
g(
|
|
1861
|
+
g(m(ce), {
|
|
1862
1862
|
"auth-function": () => e.canCreate()
|
|
1863
1863
|
}, {
|
|
1864
|
-
default:
|
|
1865
|
-
Te(g(
|
|
1864
|
+
default: s(() => [
|
|
1865
|
+
Te(g(B, {
|
|
1866
1866
|
appearance: "primary",
|
|
1867
1867
|
"data-testid": "toolbar-add-credential",
|
|
1868
1868
|
icon: "plus",
|
|
1869
1869
|
to: e.config.createRoute
|
|
1870
1870
|
}, {
|
|
1871
|
-
default:
|
|
1872
|
-
L(
|
|
1871
|
+
default: s(() => [
|
|
1872
|
+
L(x(m(n)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)), 1)
|
|
1873
1873
|
]),
|
|
1874
1874
|
_: 1
|
|
1875
1875
|
}, 8, ["to"]), [
|
|
1876
|
-
[
|
|
1876
|
+
[Ne, R.value]
|
|
1877
1877
|
])
|
|
1878
1878
|
]),
|
|
1879
1879
|
_: 1
|
|
1880
1880
|
}, 8, ["auth-function"])
|
|
1881
1881
|
], 8, ["disabled"]))
|
|
1882
1882
|
]),
|
|
1883
|
-
group:
|
|
1884
|
-
|
|
1883
|
+
group: s(({ rowValue: h }) => [
|
|
1884
|
+
ee("b", null, x(h ?? "-"), 1)
|
|
1885
1885
|
]),
|
|
1886
|
-
name:
|
|
1887
|
-
|
|
1886
|
+
name: s(({ rowValue: h }) => [
|
|
1887
|
+
ee("b", null, x(h ?? "-"), 1)
|
|
1888
1888
|
]),
|
|
1889
|
-
username:
|
|
1890
|
-
|
|
1889
|
+
username: s(({ rowValue: h }) => [
|
|
1890
|
+
ee("span", null, x(h ?? "-"), 1)
|
|
1891
1891
|
]),
|
|
1892
|
-
password:
|
|
1893
|
-
g(
|
|
1892
|
+
password: s(({ row: h, rowValue: S }) => [
|
|
1893
|
+
g(F, {
|
|
1894
1894
|
format: "redacted",
|
|
1895
|
-
notify: (
|
|
1895
|
+
notify: (D) => T(D, h, "password"),
|
|
1896
1896
|
uuid: S
|
|
1897
1897
|
}, null, 8, ["notify", "uuid"])
|
|
1898
1898
|
]),
|
|
1899
|
-
key:
|
|
1900
|
-
g(
|
|
1899
|
+
key: s(({ row: h, rowValue: S }) => [
|
|
1900
|
+
g(F, {
|
|
1901
1901
|
format: "redacted",
|
|
1902
|
-
notify: (
|
|
1902
|
+
notify: (D) => T(D, h, "key"),
|
|
1903
1903
|
uuid: S
|
|
1904
1904
|
}, null, 8, ["notify", "uuid"])
|
|
1905
1905
|
]),
|
|
1906
|
-
client_secret:
|
|
1907
|
-
g(
|
|
1906
|
+
client_secret: s(({ row: h, rowValue: S }) => [
|
|
1907
|
+
g(F, {
|
|
1908
1908
|
format: "redacted",
|
|
1909
|
-
notify: (
|
|
1909
|
+
notify: (D) => T(D, h, "client_secret"),
|
|
1910
1910
|
uuid: S
|
|
1911
1911
|
}, null, 8, ["notify", "uuid"])
|
|
1912
1912
|
]),
|
|
1913
|
-
secret:
|
|
1914
|
-
g(
|
|
1913
|
+
secret: s(({ row: h, rowValue: S }) => [
|
|
1914
|
+
g(F, {
|
|
1915
1915
|
format: "redacted",
|
|
1916
|
-
notify: (
|
|
1916
|
+
notify: (D) => T(D, h, "secret"),
|
|
1917
1917
|
uuid: S
|
|
1918
1918
|
}, null, 8, ["notify", "uuid"])
|
|
1919
1919
|
]),
|
|
1920
|
-
created_at:
|
|
1921
|
-
L(
|
|
1920
|
+
created_at: s(({ rowValue: h }) => [
|
|
1921
|
+
L(x(m(i)(h)), 1)
|
|
1922
1922
|
]),
|
|
1923
|
-
tags:
|
|
1924
|
-
(h == null ? void 0 : h.length) > 0 ? (
|
|
1925
|
-
default:
|
|
1926
|
-
(
|
|
1923
|
+
tags: s(({ rowValue: h }) => [
|
|
1924
|
+
(h == null ? void 0 : h.length) > 0 ? (j(), H(Ue, { key: 0 }, {
|
|
1925
|
+
default: s(() => [
|
|
1926
|
+
(j(!0), V(He, null, Ie(h, (S) => (j(), H(le, {
|
|
1927
1927
|
key: S,
|
|
1928
|
-
onClick:
|
|
1928
|
+
onClick: C[0] || (C[0] = We(() => {
|
|
1929
1929
|
}, ["stop"]))
|
|
1930
1930
|
}, {
|
|
1931
|
-
default:
|
|
1932
|
-
L(
|
|
1931
|
+
default: s(() => [
|
|
1932
|
+
L(x(S), 1)
|
|
1933
1933
|
]),
|
|
1934
1934
|
_: 2
|
|
1935
1935
|
}, 1024))), 128))
|
|
1936
1936
|
]),
|
|
1937
1937
|
_: 2
|
|
1938
|
-
}, 1024)) : (
|
|
1938
|
+
}, 1024)) : (j(), V("span", ia, "-"))
|
|
1939
1939
|
]),
|
|
1940
|
-
actions:
|
|
1940
|
+
actions: s(({ row: h }) => [
|
|
1941
1941
|
g(te, null, {
|
|
1942
|
-
default:
|
|
1943
|
-
g(
|
|
1942
|
+
default: s(({ copyToClipboard: S }) => [
|
|
1943
|
+
g(J, {
|
|
1944
1944
|
"data-testid": "action-entity-copy-id",
|
|
1945
|
-
onClick: (
|
|
1945
|
+
onClick: (D) => f(h, "id", S)
|
|
1946
1946
|
}, {
|
|
1947
|
-
default:
|
|
1948
|
-
L(
|
|
1947
|
+
default: s(() => [
|
|
1948
|
+
L(x(m(n)("credentials.actions.copy_id")), 1)
|
|
1949
1949
|
]),
|
|
1950
1950
|
_: 2
|
|
1951
1951
|
}, 1032, ["onClick"])
|
|
1952
1952
|
]),
|
|
1953
1953
|
_: 2
|
|
1954
1954
|
}, 1024),
|
|
1955
|
-
e.config.plugin === "basic-auth" ? (
|
|
1956
|
-
default:
|
|
1957
|
-
g(
|
|
1955
|
+
e.config.plugin === "basic-auth" ? (j(), H(te, { key: 0 }, {
|
|
1956
|
+
default: s(({ copyToClipboard: S }) => [
|
|
1957
|
+
g(J, {
|
|
1958
1958
|
"data-testid": "action-entity-copy-credential",
|
|
1959
|
-
onClick: (
|
|
1959
|
+
onClick: (D) => f(h, "password", S)
|
|
1960
1960
|
}, {
|
|
1961
|
-
default:
|
|
1962
|
-
L(
|
|
1961
|
+
default: s(() => [
|
|
1962
|
+
L(x(m(n)("credentials.actions.copy_credential")), 1)
|
|
1963
1963
|
]),
|
|
1964
1964
|
_: 2
|
|
1965
1965
|
}, 1032, ["onClick"])
|
|
1966
1966
|
]),
|
|
1967
1967
|
_: 2
|
|
1968
|
-
}, 1024)) :
|
|
1969
|
-
["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (
|
|
1970
|
-
default:
|
|
1971
|
-
g(
|
|
1968
|
+
}, 1024)) : G("", !0),
|
|
1969
|
+
["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (j(), H(te, { key: 1 }, {
|
|
1970
|
+
default: s(({ copyToClipboard: S }) => [
|
|
1971
|
+
g(J, {
|
|
1972
1972
|
"data-testid": "action-entity-copy-key",
|
|
1973
|
-
onClick: (
|
|
1973
|
+
onClick: (D) => f(h, "key", S)
|
|
1974
1974
|
}, {
|
|
1975
|
-
default:
|
|
1976
|
-
L(
|
|
1975
|
+
default: s(() => [
|
|
1976
|
+
L(x(m(n)("credentials.actions.copy_key")), 1)
|
|
1977
1977
|
]),
|
|
1978
1978
|
_: 2
|
|
1979
1979
|
}, 1032, ["onClick"])
|
|
1980
1980
|
]),
|
|
1981
1981
|
_: 2
|
|
1982
|
-
}, 1024)) :
|
|
1983
|
-
e.config.plugin === "oauth2" ? (
|
|
1984
|
-
default:
|
|
1985
|
-
g(
|
|
1982
|
+
}, 1024)) : G("", !0),
|
|
1983
|
+
e.config.plugin === "oauth2" ? (j(), H(te, { key: 2 }, {
|
|
1984
|
+
default: s(({ copyToClipboard: S }) => [
|
|
1985
|
+
g(J, {
|
|
1986
1986
|
"data-testid": "action-entity-copy-secret",
|
|
1987
|
-
onClick: (
|
|
1987
|
+
onClick: (D) => f(h, "client_secret", S)
|
|
1988
1988
|
}, {
|
|
1989
|
-
default:
|
|
1990
|
-
L(
|
|
1989
|
+
default: s(() => [
|
|
1990
|
+
L(x(m(n)("credentials.actions.copy_secret")), 1)
|
|
1991
1991
|
]),
|
|
1992
1992
|
_: 2
|
|
1993
1993
|
}, 1032, ["onClick"])
|
|
1994
1994
|
]),
|
|
1995
1995
|
_: 2
|
|
1996
|
-
}, 1024)) :
|
|
1997
|
-
e.config.plugin === "hmac-auth" ? (
|
|
1998
|
-
default:
|
|
1999
|
-
g(
|
|
1996
|
+
}, 1024)) : G("", !0),
|
|
1997
|
+
e.config.plugin === "hmac-auth" ? (j(), H(te, { key: 3 }, {
|
|
1998
|
+
default: s(({ copyToClipboard: S }) => [
|
|
1999
|
+
g(J, {
|
|
2000
2000
|
"data-testid": "action-entity-copy-secret",
|
|
2001
|
-
onClick: (
|
|
2001
|
+
onClick: (D) => f(h, "secret", S)
|
|
2002
2002
|
}, {
|
|
2003
|
-
default:
|
|
2004
|
-
L(
|
|
2003
|
+
default: s(() => [
|
|
2004
|
+
L(x(m(n)("credentials.actions.copy_secret")), 1)
|
|
2005
2005
|
]),
|
|
2006
2006
|
_: 2
|
|
2007
2007
|
}, 1032, ["onClick"])
|
|
2008
2008
|
]),
|
|
2009
2009
|
_: 2
|
|
2010
|
-
}, 1024)) :
|
|
2010
|
+
}, 1024)) : G("", !0),
|
|
2011
2011
|
g(te, null, {
|
|
2012
|
-
default:
|
|
2013
|
-
g(
|
|
2012
|
+
default: s(({ copyToClipboard: S }) => [
|
|
2013
|
+
g(J, {
|
|
2014
2014
|
"data-testid": "action-entity-copy-json",
|
|
2015
|
-
onClick: (
|
|
2015
|
+
onClick: (D) => f(h, void 0, S)
|
|
2016
2016
|
}, {
|
|
2017
|
-
default:
|
|
2018
|
-
L(
|
|
2017
|
+
default: s(() => [
|
|
2018
|
+
L(x(m(n)("credentials.actions.copy_json")), 1)
|
|
2019
2019
|
]),
|
|
2020
2020
|
_: 2
|
|
2021
2021
|
}, 1032, ["onClick"])
|
|
2022
2022
|
]),
|
|
2023
2023
|
_: 2
|
|
2024
2024
|
}, 1024),
|
|
2025
|
-
g(
|
|
2025
|
+
g(m(ce), {
|
|
2026
2026
|
"auth-function": () => e.canEdit(h)
|
|
2027
2027
|
}, {
|
|
2028
|
-
default:
|
|
2029
|
-
g(
|
|
2028
|
+
default: s(() => [
|
|
2029
|
+
g(J, {
|
|
2030
2030
|
"data-testid": "action-entity-edit",
|
|
2031
2031
|
"has-divider": "",
|
|
2032
|
-
item:
|
|
2032
|
+
item: ae(h.id)
|
|
2033
2033
|
}, null, 8, ["item"])
|
|
2034
2034
|
]),
|
|
2035
2035
|
_: 2
|
|
2036
2036
|
}, 1032, ["auth-function"]),
|
|
2037
|
-
g(
|
|
2037
|
+
g(m(ce), {
|
|
2038
2038
|
"auth-function": () => e.canDelete(h)
|
|
2039
2039
|
}, {
|
|
2040
|
-
default:
|
|
2041
|
-
g(
|
|
2040
|
+
default: s(() => [
|
|
2041
|
+
g(J, {
|
|
2042
2042
|
danger: "",
|
|
2043
2043
|
"data-testid": "action-entity-delete",
|
|
2044
2044
|
"has-divider": "",
|
|
2045
|
-
onClick: (S) =>
|
|
2045
|
+
onClick: (S) => z(h)
|
|
2046
2046
|
}, {
|
|
2047
|
-
default:
|
|
2048
|
-
L(
|
|
2047
|
+
default: s(() => [
|
|
2048
|
+
L(x(m(n)("credentials.actions.delete")), 1)
|
|
2049
2049
|
]),
|
|
2050
2050
|
_: 2
|
|
2051
2051
|
}, 1032, ["onClick"])
|
|
@@ -2055,25 +2055,25 @@ const Br = {
|
|
|
2055
2055
|
]),
|
|
2056
2056
|
_: 1
|
|
2057
2057
|
}, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers", "use-action-outside"]),
|
|
2058
|
-
g(
|
|
2059
|
-
"action-pending":
|
|
2060
|
-
description:
|
|
2061
|
-
"entity-type":
|
|
2062
|
-
error:
|
|
2063
|
-
title:
|
|
2064
|
-
visible:
|
|
2065
|
-
onCancel:
|
|
2066
|
-
onProceed:
|
|
2058
|
+
g(m(ea), {
|
|
2059
|
+
"action-pending": k.value,
|
|
2060
|
+
description: m(n)("credentials.delete.description"),
|
|
2061
|
+
"entity-type": K.value,
|
|
2062
|
+
error: q.value,
|
|
2063
|
+
title: m(n)(`credentials.delete.${e.config.plugin}.title`),
|
|
2064
|
+
visible: c.value,
|
|
2065
|
+
onCancel: I,
|
|
2066
|
+
onProceed: O
|
|
2067
2067
|
}, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"])
|
|
2068
2068
|
]);
|
|
2069
2069
|
};
|
|
2070
2070
|
}
|
|
2071
|
-
}),
|
|
2071
|
+
}), sa = (e, r) => {
|
|
2072
2072
|
const t = e.__vccOpts || e;
|
|
2073
2073
|
for (const [a, n] of r)
|
|
2074
2074
|
t[a] = n;
|
|
2075
2075
|
return t;
|
|
2076
|
-
},
|
|
2076
|
+
}, ka = /* @__PURE__ */ sa(la, [["__scopeId", "data-v-f6c6d08c"]]);
|
|
2077
2077
|
export {
|
|
2078
|
-
|
|
2078
|
+
ka as ConsumerCredentialList
|
|
2079
2079
|
};
|